Category: Math

Mathematics

  • Exact Bounds for Set Systems with Strongly Restricted Intersections

    This paper establishes exact finite-dimensional bounds for set systems with prescribed intersection parities, extending recent asymptotic results on generalised Oddtown and Eventown problems.

    Three general theorems are proved, covering homogeneous parity prescriptions of arbitrary strength, their dual prescriptions, and a broad class of prescriptions with trailing zeros. A complete exact classification of all sixteen length-four parity prescriptions is obtained.

    The proofs combine graded rank bounds, modular inclusion-matrix ranks, Gram-matrix arguments and parity-sensitive transformations, with matching constructions establishing attainment. The results also yield exact minimum weights for a family of Reed–Muller cosets.

    Two discrepancies in the March 2025 preprint of Johnston and O’Neill’s A Few New Oddtown and Eventown Problems are identified and corrected.

    The analytical results are supported by extensive computational verification, including exhaustive minimum-weight calculations for small instances and checks of the general constructions. Reproducible Python and C++ verification scripts accompany the manuscript.

  • Minimum Distances and Minimum Words of Binary LCD Codes from Hamming Graphs of Odd Alphabet Sizes

    This paper determines the exact minimum distances of binary linear complementary dual (LCD) codes generated by the adjacency matrices of Hamming graphs of odd alphabet sizes, together with their dual codes.

    For every odd alphabet size of at least five and every dimension, explicit minimum-distance formulas are obtained, replacing previously published general bounds. A recursive theorem extends these results to Cartesian products of complete graphs with unequal odd orders.

    The proof reduces the minimum-distance problem to three competing constructions through a matrix-product decomposition with complementary constituent codes. The equality conditions yield a structural classification and exact enumeration of minimum-weight codewords.

    The paper also completes the minimum-word classification for ternary Hamming graphs, including exceptional configurations in dimensions three and four. In particular, the complementary adjacency code in dimension four has exactly 189 minimum-weight codewords, comprising 81 closed vertex neighbourhoods and 108 paired-permutation configurations.

    Connections with Berman-associated abelian codes, parity-weight Fourier supports, matrix-product codes and capacity achievement on the binary erasure channel are discussed. For distinct odd prime alphabet sizes, the results also determine the minimum distances of corresponding complementary cyclic codes.

    The principal results are established analytically, with computational verification of representative cases. The paper distinguishes its contributions from established results in the graph-code and abelian-code literature.

  • Minimum Rank And Optimal Selector Structures Of Binary Circulants

    This paper determines the minimum rational circulant rank of primitive binary words of odd squarefree period, extending the classical results of Ingleton (1956).

    A Fourier-type decomposition and Boolean additive separation reduce the problem to a weighted selector partition. A canonical partition theorem yields exact minimum ranks, structural classifications, labelled counts and quantitative stability results. The paper also completes the classification for periods with up to five distinct odd prime factors.

    Rational Fourier uncertainty and component concentration provide further exact results beyond the single-selector regime, including periods for which no minimiser has a separating coordinate. Spectral-price arguments establish connections with exact covering systems.

    For growing numbers of prime factors, the paper establishes a uniform asymptotic lower bound, matching constructions under selector-reservoir conditions, and the sharp leading constant of 4/9 for odd primorials. Arithmetic divisor gaps and geometric packing constraints yield further sharp asymptotic results and a capacity-driven transition for two-scale prime families.

    The mathematical proofs are supported by accompanying computational verification scripts, including exhaustive enumeration at small periods, exact Fourier-rank calculations and finite optimisation checks.

    The accompanying archive contains the complete LaTeX source, verification code and computational results.

  • How to Solve a Game by Paul Highway
    The Book

    How to Solve a Game

    Exact Search, Tablebases, Oracles and Computational Proof

    A practical guide to exact computational game solving, from state representation and exhaustive search through tablebases, exact oracles, proof search and independently checkable computational results.

    By Paul Highway

    Paperback available in the USA, UK, Europe and Australia.
    Paperback ISBN: 9781065430520
    eBook ISBN: 9781065430537

    Code and Computational Companion

    Code, examples and computational materials for How to Solve a Game: Exact Search, Tablebases, Oracles and Computational Proof.

    The book concentrates on the architecture of exact game solving: defining the state correctly, proving the rules engine, searching only where necessary, turning solved regions into reusable knowledge, and producing results that can be checked independently.

    This companion provides the runnable side of the project: short teaching programs, reproducible experiments, verification tools, downloadable code and material from the Fanorona solver.

    If you have a finite game of your own that you want to solve, the teaching packages below provide working Python examples corresponding to Chapters 1–14.

    Start here

    Work through the solver in stages

    The teaching code follows the same progression used throughout the book:

    rules → state → move generation → exhaustive search → memoisation → retrograde analysis → dense ranking → tablebase → oracle → proof search → certificate → verification

    The programs are deliberately small. They are intended to be read, altered and copied when building a solver for another game.

    Code downloads

    The current teaching material is divided into three downloadable packages. Each package contains source code, README files and runnable verification examples.

    Chapters 1–2

    What it means to solve a game; exact state values; winning moves; strong solving of a finite region; independent verification; canonical state representation; persistent and transient state; and an example of history-dependent state.

    v0.1
    SHA-256:
    8fe8f7dee99d19d08db5b394eacf1acbf6af4a9883c63d2d5bf26744d37d71b0

    Chapters 3–8

    Trusted rules engines and differential testing; exact forward search; memoisation; retrograde analysis; cycles and draws; dense ranking; and construction and verification of a persistent tablebase.

    v0.1
    SHA-256:
    f0bb6491d0009939413284c2cdf390f086ebd5752dd012bbe082ba0217755b53

    Chapters 9–14

    Exact oracles and explicit coverage; proof-number search; predecessor engineering; hybrid exact solving; diagnostic experiments; and strategy certificates with an independent checker.

    v0.1
    SHA-256:
    f4a64614d1ab6a0b303a6068567d2375475c41ba684992061e529410b81e80cd

    I have a game I want to solve

    Do not begin with the largest board, the fastest language or the most sophisticated search algorithm. Begin by making a small version of the game exact.

    1. Write the rules as executable transitions.
      Decide exactly what constitutes one persistent state and one complete legal move.
    2. Build a slow reference move generator.
      Make correctness easy to inspect before introducing clever optimisations.
    3. Choose a tiny version of the game.
      Reduce board size, material or another natural dimension until exhaustive search is practical.
    4. Solve that version by brute force.
      Establish an exact baseline against which later algorithms can be tested.
    5. Measure the graph.
      Count states, transpositions, cycles, branching and repeated subproblems.
    6. Decide where exact storage helps.
      A solved region may become a tablebase, specialised solver or oracle.
    7. Search only above the exact boundary.
      Do not repeatedly rediscover results that can be persisted and reused.
    8. Preserve evidence.
      Try to make the final claim independently checkable rather than dependent on trusting one large discovery program.

    Code by chapter

    The table below shows which download contains the material corresponding to each chapter.

    Book chapter Companion material Package
    1. What Does It Mean to Solve a Game? Exact state values, winning moves, strong solution of a finite region and independent checking. Chapters 1–2
    2. What Is a Game State? Canonicalisation, persistent versus transient state and history-dependent state. Chapters 1–2
    3. Prove the Rules Engine Before You Solve the Game Reference generator, faster generator and differential testing. Chapters 3–8
    4. Exact Forward Search Naive recursive search compared with memoised exact search. Chapters 3–8
    5. Retrograde Analysis Complete bottom-up solving of a finite state region. Chapters 3–8
    6. Cycles and Draws Exact WIN / LOSS propagation followed by classification of unresolved cyclic regions. Chapters 3–8
    7. Dense State Ranking Dense rank/unrank mapping and exhaustive round-trip tests. Chapters 3–8
    8. Building a Tablebase Persistent binary tablebase, reload and complete verification. Chapters 3–8
    9. Oracles Exact answers within a proved domain and explicit NOT_COVERED outside it. Chapters 9–14
    10. Proof-Number Search Compact pedagogical implementation of proof-number search. Chapters 9–14
    11. Predecessor Engineering Reverse generation proposes; forward generation confirms. Chapters 9–14
    12. Hybrid Exact Solving Exact composition of search with a solved oracle region. Chapters 9–14
    13. How Not to Solve a Game Measured examples of avoidable repeated work and poor solver architecture. Chapters 9–14
    14. Computational Proofs and Certificates Strategy certificate generation and checking by a separate verifier. Chapters 9–14
    15. Fanorona Production solver material, exact subgames, tablebases, repetition-aware proof search and checked certificates. Fanorona Laboratory v0.1

    Reference code and production code

    Reference code

    Short, readable and intended to expose the algorithm. This is the code to study or copy first when adapting the techniques to another game.

    Production code

    Designed to make the real computation practical. Production code may use dense storage, specialised representations, checkpointing, caches and other engineering that would obscure a teaching example.

    A result does not become more exact because the implementation is faster. The production implementation makes the computation affordable; validation makes the result trustworthy.

    Fanorona Laboratory

    Fanorona is the principal real-world case study in the book. The material here comes from the actual solver project rather than the simplified teaching examples above.

    Fanorona Laboratory v0.1 is a curated release of the real project archive. It contains selected production code, strong-solve and tablebase material, repetition-aware proof-search implementations, certificate builders and independent checkers, audit scripts, technical notes and selected result records.

    SHA-256:
    855a8918cd04c8bd084d04eeba111a5eee39aa0048c4f5cea2b88b987e7736ce

    The project has not independently solved the standard 5×9 initial position. Results are classified below according to what has actually been established.

    Strongly solved

    • 3×7 Fanorona
    • 5×5 Fanorona
    • Every history-free standard 5×9 position with seven or fewer pieces

    Independently validated

    • Move generation
    • Complete capture sequences
    • Terminal rules
    • Automatic third repetition
    • Certificate checking

    Independently certified

    • 567-history duplicate class
    • 546 directly supported parent obligations
    • 12 additional loss-position classes
    • Residual 1W5B layer
    • First terminal-only seven-piece exact-history certificate

    Prepared or experimental

    • Further prepared seven-piece cases
    • Learned move prior
    • Guided DFPN experiments
    • Frontier and scheduling experiments

    Open

    • Node65
    • Complete root certificate
    • Independent project result for the standard 5×9 initial position

    The laboratory package is intentionally curated rather than a raw dump of the complete research working directory. Large generated tablebases, checkpoints, caches and build artefacts are excluded.

    Reproducing the results

    Material intended to reproduce a result from the book should identify:

    • the program and release version;
    • the command used;
    • the expected output;
    • required input or data files;
    • the checksum where appropriate;
    • the precise rule set and state representation to which the result applies.

    Discovery machinery may be complicated; verification should be as small and explicit as practical.

    Version information

    Book:
    How to Solve a Game: Exact Search, Tablebases, Oracles and Computational Proof

    Edition: First edition, 2026

    Teaching-code release: v0.1

    Fanorona Laboratory release: v0.1

    Errata and updates

    The printed book is a fixed edition. This page is the living record for corrections, revised references, updated code and changes in the status of the Fanorona project.

    Date Location Correction or update
    2026 Historical prologue — references Kawano corrected to Using Similar Positions to Search Game Trees; the full Allis Connect-Four report title corrected to A Knowledge-Based Approach of Connect-Four: The Game is Over, White to Move Wins ; Haworth’s Ströhlein paper corrected to ICGA Journal 42(2–3), 2020, pp. 165–170.

    Source and licence

    The downloadable examples are intended to accompany the book and make the algorithms easy to inspect, reproduce and adapt.

    The teaching packages contain simplified reference implementations. Fanorona Laboratory v0.1 contains selected source and evidence from the actual production/research project used for the book’s Fanorona case study.

    Code and data licences are described within the distributed material. Third-party material retains its original licence and attribution.

  • Shadowed Faces and Residue-Affine Dynamics in Cone-Monotone Integer Relations

    This paper develops the exact arithmetic structure generated by shadowed bad faces in cone-monotone homogeneous integer equality relations. It identifies the first persistent boundary mechanism lying beyond finite Kleene convergence and shows that, in physical dimension two, this mechanism is governed by one-dimensional guarded residue-affine dynamics with a common expanding rational multiplier.

    The relations have the form Bλ = Aλ′, with nonnegative integer coefficient states and cone-monotone generator displacements. The analysis focuses on a bad closed ray whose canonical deterministic quotient is nonintegral. A rigidity theorem shows that every nontrivial such ray carries a unique common multiplier

    m / d,   with   m > d ≥ 2   and   gcd(m,d) = 1.

    A transverse height associated with the shadowed face is nondecreasing along every trajectory. Consequently, every infinite trajectory either escapes to unbounded transverse height or is eventually confined to a fixed height. The bounded-height branch admits a complete exact structural classification.

    At every fixed shadow layer, all nondeterminism arising from different factorizations along the face collapses to a single numerical-semigroup coordinate. Beyond an effectively computable conductor threshold, the resulting dynamics become a finite-control guarded residue-affine system of the form

    d n′ = m n + c,

    with finitely many branch constants and finite source-and-target residue guards. Thus apparently higher-dimensional factorization dynamics reduce exactly to a one-dimensional arithmetic survivor problem.

    The paper also gives a graph-directed base-d profinite description of the infinite flat survivor set. Finite arithmetic itineraries correspond to explicit residue cylinders modulo increasing powers of d, providing an exact connection between the geometric predecessor filtration and arithmetic congruence dynamics.

    A converse realization theorem shows that this arithmetic description is sharp. Every expanding finite-branch guarded common-multiplier residue-affine system satisfying the necessary congruence conditions can be realized exactly on a forward-invariant first-layer tail of a physical-dimension-two cone-monotone homogeneous equality relation. The construction can simultaneously preserve an integral full canonical quotient and produce a unique nonzero proper bad shadowed face.

    In the primitive factorization-independent case, the arithmetic specializes to the common-multiplier setting associated with the Lagarias–Sloane approximate-multiplication problem. For the stopped primitive construction, the complete Kleene predecessor filtration is linearly conjugate to a forbidden-residue survivor filtration. At depth ℓ, the surviving states form explicit residue cylinders modulo dℓ.

    The result therefore isolates persistent shadowing as an exact arithmetic boundary rather than merely providing an isolated Collatz-like example. The paper does not claim a general decision procedure for the resulting survivor problem. Instead, it identifies precisely which arithmetic dynamics are forced by a bad shadowed face and proves that the same arithmetic class can be realized conversely inside the geometric model.

    This classification supplies the arithmetic component used in the subsequent two-dimensional completeness theorem, where guarded common-multiplier survivor dynamics are shown to capture all residual non-Presburger complexity in the full physical-dimension-two cone-monotone equality class.

    Paper XVII of the Canonical Numeration and Positionality Research Programme.

    Download the paper (PDF)

    Zenodo record and DOI

    Related companion papers:

    • Closed-Face Integrality and Exact Conditional Termination for Cone-Monotone Integer Equality Relations
    • Beyond Finite Kleene Convergence: Integral Cores and a Collatz Barrier for Cone-Monotone Integer Relations
    • Arithmetic Completeness for Two-Dimensional Cone-Monotone Integer Relations
  • Arithmetic Completeness for Two-Dimensional Cone-Monotone Integer Relations

    This paper develops an exact structural theory of weakest nontermination for the full class of two-dimensional cone-monotone homogeneous integer equality relations of the form Bλ = Aλ′, with nonnegative integer coefficient states, pointed source cone and nonzero source columns.

    The full canonical deterministic quotient gives the first structural dichotomy. If it is nonintegral, an exact integral-core compression preserves weakest nontermination while strictly reducing physical dimension. In physical dimension two, this reduces the problem to dimension at most one, where weakest nontermination is effectively Presburger-definable. Nonintegral full quotients therefore create no genuinely new two-dimensional arithmetic obstruction.

    For the remaining integral-full-quotient branch, the paper removes the nonnegativity constraint and studies the resulting signed predecessor sequence as the forward-domain sequence of an additive linear relation on Zn. Finite attainment is characterized exactly: the signed sequence stabilizes after finitely many steps if and only if the canonical rational deterministic quotient is integral over Z. In the integral case, the stable signed lattice is effectively computable.

    Intersecting this stable lattice with the nonnegative orthant produces an affine semigroup. Normalization and conductor theory, combined with cone monotonicity, then give an exact deep-interior saturation theorem: beyond an effectively computable translated cone, weakest nontermination is precisely membership in the stable signed lattice. The entire deep interior is therefore effectively Presburger-definable.

    In physical dimension two, the complement of the conductor region decomposes into two bounded facet strips and a finite corner. Good strips have effectively Presburger weakest-nontermination sets. Every remaining bad strip reduces exactly, after a finite prefix, to a finite-branch guarded residue-affine system with one common expanding multiplier:

    d n′ = m n + c

    where m > d ≥ 2 and m and d are coprime.

    This yields an unconditional arithmetic reduction for the entire two-dimensional cone-monotone equality class. Every weakest-nontermination set is a finite union of effectively Presburger pieces and inverse images of survivor sets for guarded common-multiplier residue-affine systems. Conversely, every system in this residual arithmetic class is realized exactly on a forward-invariant first-layer tail of a two-dimensional cone-monotone equality relation with integral full canonical quotient.

    Consequently, universal semilinearity and effective Presburger synthesis for two-dimensional geometric weakest-nontermination sets are equivalent to the corresponding problems for the residual arithmetic survivor class. Pointwise membership is mutually reducible by finite disjunctive reductions.

    The result isolates the complete residual source of non-Presburger complexity in physical dimension two. Nonintegral ambient quotients collapse to lower-dimensional Presburger cases; the deep interior and all good boundary regions are tame; and every remaining arithmetic obstruction is forced onto a bad shadowed face and reduces to one-dimensional guarded common-multiplier dynamics. Within the stated cone-monotone equality class, no further two-dimensional geometric case remains to be classified.

    Paper XVIII of the Cone-Monotone Integer Relations research programme.

    Related companion papers:

    • Closed-Face Integrality and Exact Conditional Termination for Cone-Monotone Integer Equality Relations
    • Beyond Finite Kleene Convergence: Integral Cores and a Collatz Barrier for Cone-Monotone Integer Relations
    • Shadowed Faces and Residue-Affine Dynamics in Cone-Monotone Integer Relations: Global Shadow Normal Forms, Kleene Conjugacy, and a Lagarias-Sloane Barrier
  • Beyond Finite Kleene Convergence: Integral Cores and a Collatz Barrier for Cone-Monotone Integer Relations

    Beyond Finite Kleene Convergence: Integral Cores and a Collatz Barrier for Cone-Monotone Integer Relations

    This paper studies exact weakest nontermination for homogeneous nondeterministic integer relations of the form Bλ = Aλ′ under a cone-monotonicity condition.

    A companion paper characterized exactly when the descending predecessor sequence stabilizes after finitely many steps. Paper XI goes beyond that boundary. It identifies a strictly larger, effectively recognizable class for which the exact weakest nontermination set remains computable even when finite Kleene convergence fails.

    The main construction is a canonical core-face decomposition. When the full-cone deterministic quotient is nonintegral, the relation is compressed to its exact forward-integral coefficient core, retaining the lattice congruences required by infinite computations while strictly reducing physical dimension. When the ambient quotient is integral but nonintegral proper closed faces remain, shadow-free bad faces are isolated recursively and finite convergence is restored on their complement.

    For every core-face-decomposable system, the recursion terminates after at most the physical dimension and flattens to a finite exact normal form. The weakest nontermination precondition is therefore effectively definable in existential Presburger arithmetic and is effectively semilinear. The earlier finite-Kleene class appears exactly as the depth-zero case.

    The paper also develops explicit quantitative bounds for the size of the decomposition tree, the number and size of Hilbert-basis generators introduced during core reduction, and the syntactic size of the resulting Presburger formulas. An exhaustive exact census of 4,608 small two-dimensional systems shows that the new core-reduction and shadow-free mechanisms solve 646 of the 1,320 systems rejected by finite Kleene convergence, reducing the unresolved fraction by 48.94%.

    The boundary of the method is arithmetically significant. In physical dimension two, a shadowed bad face can already realize the integer map n ↦ floor(4n/3) on the first adjacent lattice layer. Exact nontermination for a specific explicit relation is thereby equivalent to an unresolved generalized-Collatz reachability problem. Physical dimension two is minimal for this obstruction.

    Main results:

    • canonical finite core-face decomposition;
    • exact dimension-reducing integral-core compression preserving lattice congruences;
    • relative finite convergence outside shadow-free bad faces;
    • finite exact normal form for the weakest nontermination set;
    • effective existential-Presburger and semilinear representation;
    • explicit decomposition-tree, Hilbert-basis and formula-size bounds;
    • complete classification in physical dimension one;
    • exhaustive 4,608-system computational census;
    • a dimensionally minimal generalized-Collatz barrier in physical dimension two.

    Verification material: The accompanying repository contains the exact-arithmetic verifier used to reproduce the 4,608-system census reported in Section 15. The computational results are validation data only; no theorem depends on the census.

  • Fixed-Start Nontermination in Homogeneous Nonnegative Equality Loops

    Fixed-Start Nontermination in Homogeneous Nonnegative Equality Loops: Continuation Cores, Arithmetic Obstructions, and Decidable Frontiers develops a structural and arithmetic theory for deciding whether a prescribed initial state in a homogeneous nonnegative equality loop can generate an infinite integer trajectory. The problem arises naturally from balance-loop representations in numeration systems, but also belongs to the broader theory of integer linear-constraint loops and termination.

    The paper introduces a span-relaxed continuation core, an effectively computable rational polyhedral cone that contains every infinite real or integer trajectory and stabilizes after at most rank(A) + 1 iterations. Within this core, failure of an exact integer successor is classified into three distinct mechanisms: a positive-cone obstruction, a lattice obstruction, or an affine-semigroup hole. A Hilbert-basis formulation also gives finite certificates for total viability of the continuation core.

    The principal decidability result proves fixed-start nontermination decidable whenever the intrinsic physical continuation rank is at most one, regardless of the ambient matrix dimensions. In the difficult expanding case, a maximal-slope Apéry construction gives uniformly efficient predecessors; once the viability gcd stabilizes, numerical-semigroup conductors become uniformly bounded, forcing exact finite stabilization of the integer viability filtration. The paper also proves decidability whenever the coefficient continuation dimension is at most two.

    Deterministic continuation cores are further connected to the Positivity Problem for integer linear recurrence sequences through an invariant orbit lattice. The resulting framework separates linear consistency, positive geometry, lattice congruences and semigroup holes, and identifies the first genuinely relational untreated case as a two-dimensional physical continuation core with one rational factorization degree of freedom.

  • Closed-Face Integrality and Exact Conditional Termination for Cone-Monotone Integer Equality Relations

    This paper gives an exact characterization of conditional termination for a class of nondeterministic homogeneous integer equality relations over nonnegative integer coefficient vectors.

    The central result identifies precisely when the descending predecessor sequence reaches the weakest nontermination precondition after finitely many steps. Under pointedness of the source cone, nonzero source generators and cone-monotone displacement, finite convergence occurs if and only if the canonical deterministic quotient associated with every closed face is integral over the integers. Equivalently, every closed-face quotient must have an integer characteristic polynomial.

    The proof separates the problem into three structural layers. On closed faces, continuation lattices stabilize exactly when an integral serial lattice exists, which is equivalent to integrality of the deterministic quotient. Nonclosed faces are handled by automatic ascent through the face map until a closed face is reached. Deep-rescue arguments and a finite-tube induction then convert these local arithmetic conditions into a global uniform bound on mortality depth.

    The theorem is effective. The closed faces can be enumerated, their deterministic quotients computed by exact rational linear algebra, and the integrality condition checked directly. When the criterion holds, repeated Presburger predecessor computation eventually produces the exact weakest nontermination precondition.

    The paper also develops a quantitative theory of convergence. For a closed face with integral serial lattice K, the continuation-lattice filtration stabilizes after at most the base-2 logarithm of the lattice index. Propagating conductor, residue and tube bounds through the proof gives a computable global upper bound on predecessor convergence. Conversely, an explicit fixed-dimensional family has exact mortal depth m + 1 and shows that predecessor convergence can grow exponentially in the binary input length even when the deterministic quotient is trivial.

    The resulting class is distinct from previously known exact conditional-termination classes such as octagonal relations and finite-monoid affine systems. It permits genuinely nondeterministic relations, arbitrary physical dimension and infinite ambient matrix monoids. The paper also places the result within the wider literature on linear-constraint loops, affine counter systems and deterministic linear-loop termination.

    Two geometric figures illustrate the closed-face mechanism and the finite-tube induction. A companion exact-arithmetic verification package reproduces the principal examples, the long-transient family and the exhaustive small-system computational checks reported in the paper.

    Topics: conditional termination, weakest nontermination preconditions, integer equality relations, affine semigroups, cone monotonicity, closed faces, lattice stabilization, Presburger arithmetic, nondeterministic systems and termination analysis.

  • Complete Noncoprime Classification of Minimal Kernel Dimension for Rational Floor Maps

    Paper XIII completes the noncoprime classification of minimal kernel dimension for rational floor maps in the fixed-control balance-loop model.

    Let d = gm and q = gn, where g ≥ 2, 1 ≤ n < m, and m and n are coprime. The paper determines exactly when the partial floor map Fd,q(x) = floor(qx/d), with multiples of d deleted, admits an exact proper realization of kernel dimension 2, 3 or 4.

    The complete classification is remarkably rigid. The exceptional map (d,q) = (4,2) has kernel dimension 2. Kernel dimension 3 occurs on the co-affine boundary n = m − 1, apart from that exception, and on the scaling boundary n = 1 when either g = 2 or m = 3. Every genuinely interior reduced noncoprime case, 1 < n < m − 1, has kernel dimension 4. Thus the universal kernel-four upper bound is attained throughout the interior.

    The principal new result is this interior maximality theorem. After bulk compression, any hypothetical kernel-three realization has four positive-control selectors. The proof classifies all such architectures according to the number of pure-control selectors. Two-pure architectures are reduced to two-generated numerical semigroups and excluded using Frobenius symmetry, Apéry coordinates, mechanical-word return structure and checkerboard substitutions. One-pure architectures are eliminated using residue rigidity, flat and rising edge structure, and bidirectional target shifts. Zero-pure architectures reduce to unimodular lattice paths and finite orthant obstructions.

    The paper also gives an explicit five-column kernel-three realization for the previously unresolved co-affine boundary n = m − 1, together with computational verification of representative constructions and the finite lattice classifications used in the proof.

    Conceptually, the invariant has a natural algebraic interpretation. For a fixed rank-two source/control configuration, kernel dimension equals the rank of its integer relation lattice, equivalently the codimension of the associated toric ideal. The problem can therefore be viewed as determining the minimum relation-lattice freedom, or restricted toric codimension, compatible with exact labeling of an entire fixed-control fibre by a rational floor map.

    The result sits at the intersection of integer factorization, affine and numerical semigroups, toric geometry, Christoffel and mechanical words, and mixed-integer formulation complexity. General floor-map representability is easy in broader Presburger and mixed-integer models; the difficulty here comes from the much stronger requirement that every nonnegative factorization on a fixed-control slice must produce the correct target.