Research paperScreenedARR-2026-2CVQQQDQ0N9S3TDX · v2 · 2026-12-05

Universal Trifferent Coding Theory, Exact Binary-Box Double-Counting, F_9 / AGL(1,9) Sharp 2-Transitivity, and Exact-Integer Artanh Enclosures in Standalone Lean 4

Lluis Eriksson

Admitted after checks by named AI models and editor approval. Not peer reviewed. Screening record

Abstract

Version 2 of ARR-2026-2CVQQQDQ0N9S3TDX completely reconstructs the manuscript and verification codebase from scratch, proving twenty genuine mathematical theorems numbered 1-20 in exact 1-to-1 correspondence with a standalone, zero-Mathlib Lean 4.36.0 development (TrifferentV2.lean, compiled with -DwarningAsError=true, zero sorry, zero native_decide, zero partial, and zero custom axioms; #print axioms: 1 axiom-free, 3 [propext], and 16 [propext, Classical.choice, Quot.sound]). Across four pillars, we prove from first principles: (1) universal binary-box incidence identities Z + S + D = 3^n and S + 2D = |C| * 2^n for arbitrary n in N, the universal Korner-Marton bound |C| <= 2(3/2)^n, the universal two-slice projection lemma and recursive bound 2*T(n+1) <= 3*T(n), and the sharpened exponential upper bound |C| <= (16/9)(3/2)^n for all n >= 2; (2) complete commutative field axioms of F_9 = F_3[i]/(i^2+1), constructive bijectivity (explicit two-sided inverse, injectivity, surjectivity) and sharp 2-transitivity of AGL(1,9) inside Lean 4, tetracode trifference with constant Hamming distance 3 and exact zero-single-box profile (Z,S,D) = (9,0,72), and exact determination of T(1)=3, T(2)=4, T(3)=6, T(4)=9 (both lower and upper bounds); (3) universal factorized ternary Turan inequality 6*(C(t,3) - (3t-8)) = (t-3)(t-4)(t+4), fully quantified double-box density reduction nD <= 96Z, exact |Q| = 43,589,145,600 and port-cut rational identities over denominators 448 and 224, and universal binomial inversion over Z; and (4) universal cleared-denominator exact-integer geometric tail brackets for L_q(chi) = 2 * sum_{k=0}^{q-1} chi^{2k+1}/(2k+1), Appendix A.4's universal 1 - chi^2 >= 8/9 enclosure with exact ln 2 in (56/81, 1123/1620), the non-trifference counterexample for Cartesian products C_1 x C_1, and an explicit kernel-certified 10-word length-5 trifferent code (T(5) >= 10). An AST-audited zero-float Python verifier (4,476 AST nodes, 0 violations) and 6/6 adversarial red-team test suite corroborate every theorem.

Readable overview

Structure & key results

Extracted for web & scholarly indexing

Manuscript structure

  1. Introduction and Structural Repairs over Version 1
  2. Pillar 1: Universal Trifferent Codes and Binary-Box Double-Counting
  3. Pillar 2: F₉, AGL(1,9) Sharp 2-Transitivity, Tetracode, and Exact T(1)–T(4)
  4. Pillar 3: Turán Triples, Double-Box Density, Local Rule |Q|, and Binomial Inversion
  5. Pillar 4: Universal Artanh Enclosures and Length-5 Witness
  6. Lean 4.36.0 Mechanization and Zero-Float Verification
  7. Epistemic Scope Boundary and Reproducibility

Selected results from the manuscript source

Theorem 1 — Ternary Hypercube Enumeration and Exact Binary-Box Degree

For every n ∈ N, the recursively generated list allWords(n) is duplicate-free, has exact cardinality 3ⁿ, contains every w ∈ Σ* iff |w| = n, and every x ∈ Σⁿ lies in exactly 2ⁿ binary boxes: |b ∈ allWords(n): inBox(x,b)| = 2ⁿ.

Theorem 2 — Universal Binary-Box Occupancy Bound

For every n ∈ N, every trifferent code C ⊆ Σⁿ, and every omitted-symbol vector b ∈ Σⁿ, boxOcc(C, b) ≤ 2.

Theorem 3 — Universal Exact Binary-Box Double-Counting Identities

For every n ∈ N and every trifferent code C ⊆ Σⁿ, Z + S + D = 3ⁿ and S + 2D = |C| · 2ⁿ.

Theorem 4 — Universal Körner–Marton Binary-Box Upper Bound

For every n ∈ N and every trifferent code C ⊆ Σⁿ, |C| · 2ⁿ + 2Z + S = 2 · 3ⁿ, and hence |C| · 2ⁿ ≤ 2 · 3ⁿ.

Theorem 5 — Universal Two-Slice Projection and Disjointness Lemma

Let C ⊆ Σⁿ⁺¹ be a trifferent code and a ≠ b ∈ Σ. Let C_c = w ∈ Σⁿ: c:: w ∈ C be the c-slice tail set. Whenever |C_a| + |C_b| ≥ 3, the sets C_a and C_b are disjoint and their concatenation C_a mathbin++ C_b is a valid trifferent code of length n and cardinality |C_a| + |C_b|.

Theorem 6 — Universal Recursive Three-Halves Upper Bound 2 T(n+1) ≤ 3 T(n)

Let n, B ∈ N with B ≥ 2. If every trifferent code of length n has cardinality at most B, then every trifferent code C ⊆ Σⁿ⁺¹ satisfies 2 |C| ≤ 3 B.

Key contributions noted in exact-version screening

  • Universal arbitrary-n zero-Mathlib Lean 4.36.0 formalization of binary-box double-counting (Z+S+D=3^n, S+2D=|C|2^n), Korner-Marton bound, two-slice projection, and sharpened |C| <= (16/9)(3/2)^n upper bound (Theorems 1-7).
  • Complete F9 commutative field axioms, full constructive bijectivity, and algebraic sharp 2-transitivity of AGL(1,9) using only [propext], alongside kernel-certified tetracode geometry and exact T(1)=3, T(2)=4, T(3)=6, T(4)=9 (Theorems 8-12).
  • Genuine universal proofs of the factorized ternary Turan bound (Theorem 13), binomial inversion over Z (Theorem 16), cleared-denominator geometric artanh tail bracket (Theorem 17), and repaired exact ln 2 rational enclosure (Theorem 18).

Excerpted from published exact-version model assessment reports (not peer review). Full reports below →

Preview PDF on this page v2

Uses your browser's PDF viewer. Open the PDF directly if a preview is unavailable.

Full manuscript text in HTML (3,925 words — searchable plain text)

--- Page 1 --- Universal Trifferent Coding Theory, Exact Binary-Box Double-Counting, F9/AGL(1, 9) Sharp 2-Transitivity, and Exact-Integer Artanh Enclosures in Standalone Lean 4 Lluis Eriksson Independent Researcher, Östersund, Sweden editor@airr.science December 4, 2026 Abstract A ternary code C ⊆{0, 1, 2}n is trifferent if every three pairwise distinct codewords agree on no proper binary alphabet at some coordinate, i.e., exhibit all three symbols {0, 1, 2} in at least one coordinate. Determining the maximum cardinality T(n) of a length-n trifferent code is a classic open problem of Körner and Marton (1988), recently sharpened by Bhandari and Khetan (2026). Version 1 of ARR-2026-2CVQQQDQ0N9S3TDX was a 3-page audit whose Lean proofs verified decoupled integer identities and only injectivity (not full bijectivity or sharp 2-transitivity) of AGL(1, 9), left binary-box counting restricted to n ≤5 in Python, omitted natural-number domains in a Turán density statement, and deferred the explicit artanh partial-sum formula Lq(χ) to an external paper. Version 2 completely reconstructs the manuscript and verification codebase from scratch, proving twenty genuine mathematical theorems numbered 1–20 in exact 1-to-1 correspondence with a standalone, zero-Mathlib Lean 4.36.0 development (lean/TrifferentV2.lean, compiled with -DwarningAsError=true, zero sorry, zero native_decide, zero partial, and zero custom axioms; #print axioms: 1 axiom-free, 3 [propext], and 16 [propext, Classical.choice, Quot.sound]). Across four pillars, we prove from first principles: (1) universal binary-box incidence identities Z + S + D = 3n and S + 2D = |C| · 2n for arbitrary n ∈N, the universal Körner–Marton bound |C| ≤2(3/2)n, the universal two-slice projection lemma and recursive bound 2T(n + 1) ≤3T(n), and the sharpened exponential upper bound |C| ≤ 16 9 (3/2)n for all n ≥2; (2) full field axioms of F9 = F3[i]/(i2 + 1), constructive bijectivity (explicit two-sided inverse, injectivity, surjectivity) and sharp 2transitivity of AGL(1, 9) inside Lean 4, tetracode trifference with constant Hamming distance 3 and exact zero-single-box profile (Z, S, D) = (9, 0, 72), and exact determination of T(1) = 3, T(2) = 4, T(3) = 6, T(4) = 9 (both lower and upper bounds); (3) universal factorized ternary Turán inequality 6( (t 3 ) −(3t −8)) = (t −3)(t −4)(t + 4), fully quantified double-box density reduction nD ≤96Z, exact |Q| = 43,589,145,600, and universal binomial inversion over Z; and (4) universal cleared-denominator exact-integer geometric tail brackets for Lq(χ) = 2 ∑q−1 k=0 χ2k+1/(2k + 1), Appendix A.4’s universal 1 −χ2 ≥8/9 enclosure, the non-trifference counterexample for Cartesian products C1 × C1, and an explicit kernelcertified 10-word length-5 trifferent code (T(5) ≥10). An AST-audited zero-float Python verifier (4,476 AST nodes, 0 violations) and 6/6 adversarial red-team test suite corroborate every theorem. 1 Introduction and Structural Repairs over Version 1 The trifferent code problem [1, 2, 3, 4] asks for the largest size T(n) of a subset C ⊆{0, 1, 2}n in which every triple of distinct codewords has a rainbow (trifferent) coordinate containing all three 1 AIRR.SCIENCE · ARR-2026-2CVQQQDQ0N9S3TDX v2 [Mathematics] 4 Dec 2026

--- Page 2 --symbols 0, 1, 2. Determining the asymptotic base limn→∞T(n)1/n remains wide open: Körner and Marton (1988) proved the classical upper bound T(n) ≤2(3/2)n and recursive sharpening T(n) = O((3/2)n), exact small values satisfy T(1) = 3, T(2) = 4, T(3) = 6, T(4) = 9 (attained by the ternary tetracode), and T(5) = 10 [3], and Bhandari and Khetan [4] recently improved both lower and upper asymptotic bounds. Version 1 of ARR-2026-2CVQQQDQ0N9S3TDX audited numerical identities of [4] in three pages, but suffered from five structural shortcomings: 1. Binary-box counting (Z + S + D = 3n, S + 2D = |C| · 2n) and universal upper bounds were not formalized for general n ∈N inside Lean 4, only checked finitely for n ≤5 in Python. 2. AGL(1, 9) was checked only for injectivity (not constructive bijectivity/surjectivity), and sharp 2-transitivity was left outside Lean 4. 3. The double-box density inequality nD ≤96Z omitted explicit natural-number domains in Table 1, leaving its monotonicity step 6(M −1)A ≤18(M −3)A (M ≥4) unquantified. 4. The rational logarithm partial sum Lq(χ) was invoked without printing its explicit closed form 2 ∑q−1 k=0 χ2k+1/(2k + 1) or proving its geometric tail bound inside Lean 4. 5. Binomial inversion and universal coding-theoretic constructions were externalized to Python rather than proved in Lean 4. Version 2 resolves all five shortcomings by building a complete, self-contained, zero-Mathlib Lean 4.36.0 library (lean/TrifferentV2.lean) proving twenty numbered theorems in exact 1to-1 correspondence with Theorems 1–20 below. 2 Pillar 1: Universal Trifferent Codes and Binary-Box Double- Counting Definition 1 (Ternary Words, Binary Boxes, and Trifferent Codes). Let Σ = Fin 3 = {0, 1, 2}. A word w ∈Σ∗of length n lies in the binary box B(b) indexed by its omitted-symbol vector b ∈Σn (written inBox(w, b) = true) iffwi̸ = bi for all 0 ≤i < n. Three words x, y, z ∈Σn are trifferent (trifferentAt(x, y, z) = true) iffthere exists i with {xi, yi, zi} = {0, 1, 2}. A duplicatefree list C of length-n words is a trifferent code (IsTrifferentCode(n, C)) iffevery three pairwise distinct x, y, z ∈C are trifferent. For any b ∈Σn, define boxOcc(C, b) = |{x ∈C : inBox(x, b)}|, and let Z, S, D denote the counts of b ∈Σn with boxOcc(C, b) equal to 0, 1, 2, respectively. Theorem 1 (Ternary Hypercube Enumeration and Exact Binary-Box Degree). For every n ∈ N, the recursively generated list allWords(n) is duplicate-free, has exact cardinality 3n, contains every w ∈Σ∗iff|w| = n, and every x ∈Σn lies in exactly 2n binary boxes: |{b ∈allWords(n) : inBox(x, b)}| = 2n. Theorem 2 (Universal Binary-Box Occupancy Bound). For every n ∈N, every trifferent code C ⊆Σn, and every omitted-symbol vector b ∈Σn, boxOcc(C, b) ≤2. Theorem 3 (Universal Exact Binary-Box Double-Counting Identities). For every n ∈N and every trifferent code C ⊆Σn, Z + S + D = 3n and S + 2D = |C| · 2n. Theorem 4 (Universal Körner–Marton Binary-Box Upper Bound). For every n ∈N and every trifferent code C ⊆Σn, |C| · 2n + 2Z + S = 2 · 3n, and hence |C| · 2n ≤2 · 3n. 2

--- Page 3 --- Proof of Theorems 1–4. Theorem 1 follows by induction on n: prepending 0, 1, 2 triples the list length while preserving Nodup; for x = a :: xs, exactly two of the three choices c ∈Σ satisfy c̸ = a, doubling the binary-box count from 2n to 2n+1. For Theorem 2, if boxOcc(C, b) ≥3, extracting three distinct elements x, y, z from the duplicate-free filter {w ∈C : inBox(w, b)} yields a triple with xi, yi, zi̸ = bi at every coordinate i, so isRainbowTriple(xi, yi, zi) = false for all i, contradicting trifferentAt(x, y, z) = true. Theorem 3 partitions allWords(n) by boxOcc(C, b) ∈ {0, 1, 2} (from Theorem 2) to obtain Z + S + D = 3n and S + 2D = ∑ b∈Σn boxOcc(C, b), then swaps the finite incidence sum over (b, x) and applies Theorem 1 to evaluate ∑ x∈C 2n = |C|·2n. Theorem 4 follows immediately from 2(Z + S + D) −(S + 2D) = 2Z + S ≥0. Theorem 5 (Universal Two-Slice Projection and Disjointness Lemma). Let C ⊆Σn+1 be a trifferent code and a̸ = b ∈Σ. Let Cc = {w ∈Σn : c :: w ∈C} be the c-slice tail set. Whenever |Ca| + |Cb| ≥3, the sets Ca and Cb are disjoint and their concatenation Ca ++ Cb is a valid trifferent code of length n and cardinality |Ca| + |Cb|. Theorem 6 (Universal Recursive Three-Halves Upper Bound 2T(n+1) ≤3T(n)). Let n, B ∈N with B ≥2. If every trifferent code of length n has cardinality at most B, then every trifferent code C ⊆Σn+1 satisfies 2|C| ≤3B. Theorem 7 (Universal Sharpened Exponential Upper Bound |C| ≤16 9 (3/2)n). Every trifferent code of length 2, 3, 4 has cardinality at most 4, 6, 9, respectively. Moreover, for every k ∈N and every trifferent code C ⊆Σk+2, |C| · 2k ≤4 · 3k ( equivalently |C| ≤16 9 (3 2 )k+2) , strictly improving Theorem 4’s constant 2 by factor 8/9 for every blocklength n ≥2. Proof of Theorems 5–7. For Theorem 5, suppose w ∈Ca ∩Cb. Since |Ca| + |Cb| ≥3, at least one of Ca, Cb has size ≥2 and therefore contains a word w′̸ = w in some slice c ∈{a, b}. Then the three distinct codewords a :: w, b :: w, c :: w′ ∈C take only values in {a, b} at coordinate 0 (not rainbow), and agree on the first two entries wi = wi at every tail coordinate i ≥1 (again not rainbow), contradicting trifference. Thus Ca ∩Cb = ∅, so Ca ++ Cb is duplicate-free; for any three distinct tails x, y, z ∈Ca ++ Cb, lifting them back to C produces first coordinates in {a, b}, forcing a rainbow coordinate in the tail. For Theorem 6, every pair a̸ = b ∈{0, 1, 2} satisfies |Ca| + |Cb| ≤B (either ≤2 ≤B, or by Theorem 5 and the hypothesis on length n); summing over {0, 1}, {0, 2}, {1, 2} gives 2|C| = 2(|C0| + |C1| + |C2|) ≤3B. Theorem 7 applies Theorem 6 iteratively from |C| ≤|Σ1| = 3 to deduce T(2) ≤⌊9/2⌋= 4, T(3) ≤6, T(4) ≤9, and inducts on k via Bk = ⌊4 · 3k/2k⌋≥2 and 2|C| · 2k ≤3Bk · 2k ≤3(4 · 3k) = 4 · 3k+1. 3 Pillar 2: F9, AGL(1, 9) Sharp 2-Transitivity, Tetracode, and Exact T(1)–T(4) Represent the nine-element finite field F9 = F3[i]/(i2 + 1) as pairs (a, b) ∈Fin 3 × Fin 3 with multiplication (a, b)(c, d) = (ac −bd, ad + bc), norm N(a, b) = a2 + b2 ∈F3, and explicit inverse (a, b)−1 = (N(a, b)a, −N(a, b)b) (using 2−1 = 2 in F3). Define the affine map ϕa,b(x) = ax + b and its inverse ψa,b(y) = a−1(y −b) for a ∈F× 9 . Theorem 8 (Complete Field Structure of F9 = F3[i]/(i2 + 1)). The operations (add, neg, mul, inv) satisfy all commutative field axioms on F9: additive and multiplicative identities (x+0 = x, x·1 = x, 0̸ = 1), commutativity, associativity, distributivity, x + (−x) = 0, x̸ = 0 ⇒N(x)̸ = 0, and two-sided inverse x · x−1 = x−1 · x = 1 for all x̸ = 0. 3

--- Page 4 --- Theorem 9 (AGL(1, 9) Full Constructive Bijectivity and Order 72). For every a ∈F× 9 and b ∈F9, ψa,b(ϕa,b(x)) = x and ϕa,b(ψa,b(y)) = y for all x, y ∈F9; consequently ϕa,b is both injective and surjective (full bijectivity), and |AGL(1, 9)| = |F× 9 | · |F9| = 8 · 9 = 72. Theorem 10 (AGL(1, 9) Sharp 2-Transitivity in Lean 4). For all x1̸ = x2 ∈F9 and y1̸ = y2 ∈ F9, there exists a unique (a, b) ∈F× 9 × F9 such that ϕa,b(x1) = y1 and ϕa,b(x2) = y2. Theorem 11 (Tetracode Trifference, Constant Distance 3, and Zero-Single-Box Profile). The 9-word ternary tetracode C4 = {[a, b, a + b, a −b] : a, b ∈F3} ⊆Σ4 is a valid trifferent code of cardinality 9 with constant Hamming distance 3 between all distinct pairs, satisfies trifferentAt(x, y, z) = true ⇐⇒(x̸ = y ∧y̸ = z ∧x̸ = z) across all 93 = 729 triples, and has exact binary-box counts (Z, S, D) = (9, 0, 72) (zero single-occupied boxes). Theorem 12 (Exact Determination of T(1) = 3, T(2) = 4, T(3) = 6, and T(4) = 9). Explicit kernel-certified codes of lengths 1, 2, 3, 4 attain sizes 3, 4, 6, 9, matching the universal upper bounds of Theorems 6–7 identically; hence T(1) = 3, T(2) = 4, T(3) = 6, and T(4) = 9. Proof of Theorems 8–12. Theorems 8 and 9 are verified over the finite universe allF9 (using only [propext]). Theorem 10 explicitly constructs a = (y1 −y2)(x1 −x2)−1̸ = 0 and b = y1 −ax1, proves ϕa,b(x1) = y1 and ϕa,b(x2) = y2 from the field axioms of Theorem 8, and proves uniqueness by subtracting the two equations to isolate a′ = (y1 −y2)(x1 −x2)−1 = a and cancelling ax1 to deduce b′ = b. Theorem 11 checks the 9-word tetracode directly in the kernel; Theorem 12 pairs explicit witnesses {[0], [1], [2]}, {[0, 0], [0, 1], [1, 2], [2, 2]}, {[0, 0, 0], [0, 1, 1], [1, 0, 2], [1, 2, 1], [2, 1, 2], [2, 2, 0]}, and C4 with Theorem 7’s universal upper bounds. 4 Pillar 3: Turán Triples, Double-Box Density, Local Rule |Q|, and Binomial Inversion Theorem 13 (Universal Ternary Turán Triple Bound and Exact Factorized Gap). For every t ∈N with t ≥3, (t 3 ) ≥3t −8, with exact integer factorization 6 (( t 3 ) −(3t −8) ) = (t −3)(t −4)(t + 4) ≥0, showing exact tightness at t = 3 and t = 4. Theorem 14 (Fully Quantified Double-Box Density Reduction nD ≤96Z). For all natural numbers n, M, D, A, Z ∈N with M ≥4, if n(M −3)D ≤6(M −1)A and 3A ≤16Z, then 6(M −1) ≤18(M −3) (tight at M = 4), nD ≤18A, and nD ≤96Z. Theorem 15 (Local Rule Cardinality |Q|, Base Inequality 1.1625794 > 9/5, and Port-Cut Identities). In exact integer arithmetic (axiom-free in Lean 4): 9 · 8 · 14! 4! 3! = 43,589,145,600 with 4! 3! | 14!, 11625794 · 5 > 9 · 1024 (certifying 1.1625794 > 9/5), and the Appendix A.2 portcut rationals 69/224 = 138/448, 31/64 = 217/448, 31/56 = 124/224, and 93/224 satisfy the exact cleared-denominator sums 69/224 + 93/224 = 162/224, 69/224 + 31/64 = 355/448, and 31/56 + 93/224 = 217/224. Theorem 16 (Universal Binomial Inversion over Z). For every N ∈N, every m ≤N, and every integer sequence a : N →Z, setting b(k) = ∑N j=0 (j k )a(j) yields the exact inversion identity N−m ∑ r=0 (−1)r ( m + r m ) b(m + r) = a(m). 4

--- Page 5 --- Proof of Theorems 13–16. Theorem 13 proves 6 (t 3 ) = t(t−1)(t−2) by induction on t, casts into Z, and factors the difference into (t −3)(t −4)(t + 4), which is 0 at t = 3 and a product of three non-negative integers for t ≥4. Theorem 14 chains n(M −3)D ≤6(M −1)A ≤18(M −3)A, cancels M −3 > 0 via Nat.le_of_mul_le_mul_left, and substitutes 3A ≤16Z. Theorem 15 is proved axiom-free by kernel reduction. Theorem 16 proves the subset-of-subset identity (j k )( k m ) = ( j m )(j−m k−m ) via exact factorial products (a b )b!(a −b)! = a!, proves ∑d r=0(−1)r(d r ) = 0 for d ≥1 via Pascal’s recurrence, swaps the finite double sum over (r, j), and collapses the inner sum to the Kronecker delta δj,m. 5 Pillar 4: Universal Artanh Enclosures and Length-5 Witness For χ = u/v ∈(0, 1) with integers 0 < u < v, recall the explicit logarithmic series ln (v + u v −u ) = 2 artanh (u v ) = ∞ ∑ k=0 2 2k + 1 (u v )2k+1 , Lq(χ) := 2 q−1 ∑ k=0 χ2k+1 2k + 1. Define oddProd(q, m) := ∏m−1 j=0 (2(q + j) + 1) and the integer-scaled tail numerator artanhTailNum(u, v, q, m) := (Lq+m(u/v) −Lq(u/v) ) · oddProd(q, m) · v2(q+m)−1. Theorem 17 (Universal Exact-Integer Artanh / Logarithm Geometric Tail Bracket). For all integers 0 < u < v, q ∈N, and m ≥1, artanhTailNum(u, v, q, m) > 0 and (2q + 1)(v2 −u2) · artanhTailNum(u, v, q, m) < 2 oddProd(q, m) u2q+1v2m, certifying universally that 0 < Lq+m (u v ) −Lq (u v ) < 2 2q + 1 · (u/v)2q+1 1 −(u/v)2 . Theorem 18 (Appendix A.4 Universal 1−χ2 ≥8/9 Enclosure and Exact ln 2 Bracket). For all integers u, v ∈Z with −v ≤3u ≤v (i.e., |χ| = |u/v| ≤1/3), 9(v2 −u2) ≥8v2. In particular, at χ = 1/3 (q = 2), Theorem 17 gives the exact geometric tail majorant 2 5 · 1/243 8/9 = 1 540, bracketing ln 2 ∈(56/81, 56/81+1/540) = (56/81, 1123/1620), with L4(1/3) = 53056/76545 strictly inside (56/81, 1123/1620). Theorem 19 (Failure of Cartesian Products to Preserve Trifference). Although C1 = {[0], [1], [2]} is trifferent, its Cartesian product C1 × C1 = Σ2 is not trifferent: the triple ([0, 0], [0, 1], [1, 0]) fails trifference at every coordinate. Theorem 20 (Kernel-Certified Length-5 Code T(5) ≥10 and Box Profiles for n = 1 . . . 5). The explicit 10-word length-5 code triffCode5 = {00020, 10000, 10111, 11210, 12012, 20222, 21021, 21102, 22120, 22201} is a valid trifferent code (T(5) ≥10), exact binary-box profiles (Z, S, D) equal (0, 0, 3), (1, 0, 8), (3, 0, 24), (9, 0, 72) for n = 1, 2, 3, 4, and triffCode5 satisfies Z + S + D = 243 and S + 2D = 320 (with exact (Z, S, D) = (55, 56, 132) in Table 2). Proof of Theorems 17–20. For Theorem 17, induction on m proves the exact geometric telescoping identity (v2 −u2) geomSumSq(u, v, m) + u2m = v2m and the termwise inequality (2q + 1) artanhTailNum(u, v, q, m) ≤2 oddProd(q, m) u2q+1 geomSumSq(u, v, m) using 2q +1 ≤2(q + j) + 1; since u2m > 0, multiplying by (v2 −u2) yields the strict bound. Theorem 18 expands (v −3u)(v + 3u) ≥0 to 9u2 ≤v2, so 9(v2 −u2) ≥8v2. Theorems 19 and 20 are kernel-verified directly (combining Theorem 3 for n = 5). 5

--- Page 6 --- 6 Lean 4.36.0 Mechanization and Zero-Float Verification All twenty theorems are formalized in TrifferentV2.lean (zero Mathlib imports, Lean 4.36.0, compiled with -DwarningAsError=true, exit code 0). Running AuditAxioms.lean confirms zero sorryAx, zero ofReduceBool, and zero custom axioms, with the exact split: 1 axiom-free theorem (Theorem 15), 3 [propext] theorems (Theorems 8–10), and 16 standard theorems depending on propext, Classical.choice, and Quot.sound (Theorems 1–7, 11–14, 16–20). Table 1 maps all twenty theorems 1-to-1. Table 1: Complete 20-theorem Lean 4.36.0 ledger (lean/TrifferentV2.lean, -DwarningAsError=true, exit 0). Axioms: None = axiom-free; P = [propext]; PCQ = [propext, Classical.choice, Quot.sound]. # Pillar Lean 4 Theorem Symbol Mathematical Statement Axioms 1 P1 allWords_cardinality_and_ completeness |Σn| = 3n; every word in 2n boxes PCQ 2 P1 binary_box_occupancy_at_ most_two Universal boxOcc(C, b) ≤2 PCQ 3 P1 binary_box_exact_incidence_ identities Universal Z+S+D = 3n, S+2D = |C|2n PCQ 4 P1 korner_marton_universal_ upper_bound Universal |C|2n + 2Z + S = 2 · 3n PCQ 5 P1 trifferent_recursive_two_ slice_projection Disjointness & trifference of Ca ++ Cb PCQ 6 P1 trifferent_recursive_three_ halves_bound Universal 2T(n + 1) ≤3T(n) PCQ 7 P1 trifferent_sharpened_ exponential_upper_bound Universal |C| · 2k ≤4 · 3k (n = k + 2) PCQ 8 P2 f9_field_axioms_and_inverse Complete field axioms of F9 P 9 P2 agl19_full_bijectivity Full bijectivity & |AGL(1, 9)| = 72 P 10 P2 agl19_sharp_2_transitivity Sharp 2-transitivity of AGL(1, 9) P 11 P2 tetracode_trifferent_and_ constant_distance_three Tetracode d = 3, 729 triples, (9, 0, 72) PCQ 12 P2 exact_small_blocklength_ trifferent_bounds Exact T(1) = 3, T(2) = 4, T(3) = 6, T(4) = 9 PCQ 13 P3 ternary_turan_triple_bound 6((t 3 ) −(3t−8)) = (t−3)(t−4)(t+4) PCQ 14 P3 double_box_density_and_ turan_reduction Explicit-domain nD ≤96Z (M ≥4) PCQ 15 P3 local_rule_Q_exact_ cardinality_and_port_cuts |Q| = 43,589,145,600, 1.1625794 > 9/5 None 16 P3 binomial_inversion_universal_ exact Universal binomial inversion over Z PCQ 17 P4 artanh_partial_sum_monotone_ and_geometric_tail_bound Universal geometric artanh tail bracket PCQ 18 P4 appendix_a4_chi_enclosure_ and_base_certificate Universal 1 −χ2 ≥8/9 for 3|u| ≤v PCQ 19 P4 product_code_non_trifference_ counterexample C1 × C1 not trifferent (counterexample) PCQ 20 P4 tetracode_and_n5_binary_box_ witness_certificates T(5) ≥10 & exact n = 1 . . . 5 boxes PCQ The AST-audited zero-float Python certifier (scripts/verify_trifferent_v2.py, 4,476 AST nodes, 0 violations) independently checks all optimal codes (n = 1 . . . 5) and 17 subcodes, all 5,184 ordered distinct-pair transitions of AGL(1, 9), all 729 tetracode triples, 198 Turán values (t = 3 . . . 200), 180 density tuples, 119 binomial-inversion checks plus exact H0, . . . , H14 moments (E[J] = 14/9), and 120 exact-integer artanh tail brackets certifying 4 ln(1.162579) > ln(9/5) at q = 8 and 29-digit accuracy for ln(1.162579) at q = 12 (Figure 1 and Table 2). All 6/6 adversarial red-team suites pass in tests/test_redteam.py. 6

--- Page 7 --- Figure 1: Exact zero-float certificates from verification_report.json. (a) Exact binary-box occupancy partition (Z, S, D) as a percentage of 3n across optimal trifferent codes for n = 1 . . . 5, showing the exact 8/9 double-box plateau (S = 0) for n = 2, 3, 4 matching Theorem 7’s (16/9)(3/2)n bound and the n = 5 phase drop (M = 10, S = 56, Z = 55). (b) Exponentially decaying exact rational artanh enclosure widths (Theorem 17) vs. truncation order q, reaching < 10−29 width for ln(1.162579) at q = 12. Table 2: Exact binary-box profiles (Z, S, D) and zero-float artanh enclosures (verification_report.json). Optimal Code / Target n or (u, v) M or q (Z, S, D) / Lower 3n / Upper Gap / Width OK triffCode1_T1_eq_3 n = 1 M = 3 (0, 0, 3) 3 2Z+S = 0 Pass triffCode2_T2_eq_4 n = 2 M = 4 (1, 0, 8) 9 2Z+S = 2 Pass triffCode3_T3_eq_6 n = 3 M = 6 (3, 0, 24) 27 2Z+S = 6 Pass tetracode_T4_eq_9 n = 4 M = 9 (9, 0, 72) 81 2Z+S = 18 Pass triffCode5_T5_eq_10 n = 5 M = 10 (55, 56, 132) 243 2Z+S = 166 Pass ln 2 (ln_2) (1, 3) q = 12 0.693147180559 0.693147180559 < 10−12 Pass ln(3/2) (ln_3_over_2) (1, 5) q = 12 0.405465108108 0.405465108108 < 10−18 Pass ln(9/5) (ln_9_over_5) (2, 7) q = 12 0.587786664902 0.587786664902 < 10−14 Pass ln(1.162579) (162579, 2162579) q = 12 0.150640813159 0.150640813159 < 10−29 Pass 7

--- Page 8 --- 7 Epistemic Scope Boundary and Reproducibility • Machine-checked in Lean 4.36.0: Theorems 1–10, 13, 14, 16, 17, and 18 hold universally over all inputs satisfying their explicit hypotheses (including arbitrary-n binary-box incidence identities, Körner–Marton and sharpened recursive (16/9)(3/2)n bounds, full F9 field axioms, AGL(1, 9) bijectivity and sharp 2-transitivity, universal binomial inversion over Z, and universal geometric artanh tail brackets); Theorems 11, 12, 15, 19, and 20 are kernel-certified exact values and finite witnesses (with Theorem 12’s upper bounds derived universally from Theorem 7). • External cited literature (not mechanized here): Bhandari and Khetan’s [4] full asymptotic lower-bound construction T(n) = Ω(1.162579n) (including Appendix A.3’s 11,713-leaf triple-subdivision file), the general-n probabilistic reduction yielding T(n) = O(n−1/2(3/2)n) and 3A ≤16Z, and Fiore–Gnutti–Polak’s [3] exhaustive proof that T(5) ≤ 10 remain cited results rather than end-to-end mechanized theorems. • Public MIT artifact: Full Lean 4 sources, AST-audited zero-float certifier, red-team tests, and CI are archived at https://github.com/lluiseriksson/trifferent-c odes-certificates-v2 (tag v1.0.0). AI assistance disclosure: prepared with Google Antigravity; all theorems are independently kernel-checked by Lean 4.36.0 and audited by tests/test_redteam.py. References [1] J. Körner and K. Marton, “New bounds for perfect hashing via information theory,” European Journal of Combinatorics, vol. 9, no. 6, pp. 523–530, 1988. [2] B. Kovács, “Upper bounds on the size of trifferent codes,” IEEE Transactions on Information Theory, 2012. [3] S. Della Fiore, A. Gnutti, and S. Polak, “The maximum cardinality of trifferent codes with lengths 5 and 6,” Examples and Counterexamples, vol. 2, 100051, 2022. [4] S. Bhandari and A. Khetan, “Improved bounds for trifferent codes,” arXiv:2611.33212v1, 2026. 8

Complete plain-text extraction (3,925 words). Open the canonical PDF above for full mathematical typesetting and figures.

References (4)

  1. J. Körner and K. Marton, ``New bounds for perfect hashing via information theory,'' European Journal of Combinatorics, vol. 9, no. 6, pp. 523–530, 1988
  2. B. Kovács, ``Upper bounds on the size of trifferent codes,'' IEEE Transactions on Information Theory, 2012
  3. S. Della Fiore, A. Gnutti, and S. Polak, ``The maximum cardinality of trifferent codes with lengths 5 and 6,'' Examples and Counterexamples, vol. 2, 100051, 2022
  4. S. Bhandari and A. Khetan, ``Improved bounds for trifferent codes,'' arXiv:2611.33212v1, 2026 [arXiv:2611.33212v1]
Reference this work

Cite this paper

v2 · 2026-12-05

Lluis Eriksson (2026). Universal Trifferent Coding Theory, Exact Binary-Box Double-Counting, F_9 / AGL(1,9) Sharp 2-Transitivity, and Exact-Integer Artanh Enclosures in Standalone Lean 4. AIRR.SCIENCE, ARR-2026-2CVQQQDQ0N9S3TDX, v2. https://airr.science/papers/ARR-2026-2CVQQQDQ0N9S3TDX/versions/v2/ DOI: 10.5281/zenodo.24648119.

Use the DOI (when listed) or permanent version link to cite the exact manuscript you read. A DOI is a persistent citation identifier, not journal peer review. A Working paper label means the version has not completed AIRR screening. Import BibTeX, RIS or CSL JSON into your reference manager to apply a citation style.

Version history

The paper identifier remains stable. Each version has its own immutable release, timestamp and version identifier.

  • v2 · major revision · source snapshot available · viewing
  • v1 · source snapshot available

Revision statement

Major revision. Major v2 complete standalone zero-Mathlib Lean 4.36.0 reconstruction resolving all v1 limitations: proves 20 genuine theorems in 1-to-1 correspondence including arbitrary-n binary-box incidence identities and sharpened (16/9)(3/2)^n upper bound, complete F_9 field axioms, AGL(1,9) constructive bijectivity and sharp 2-transitivity, exact T(1)=3..T(4)=9 and T(5)>=10, universal Z-valued binomial inversion, and universal cleared-denominator artanh geometric tail brackets, backed by a 4,476-node zero-float verifier and 6/6 red-team tests.

Verification record

Frontier-model screening
Pass · 2 models
Source integrity
Pass
Bibliographic integrity
Pass
Reproducibility
Pass
Lean 4
L2

Recorded under ARR-VERIFY-1.0. AIRR verification and screening are not peer review.

Related subject

More in Mathematics

Browse all Mathematics papers →

AI assistance statement

Authored by Lluis Eriksson with AI-assisted Lean 4 proof engineering, zero-float verification scripting, and manuscript preparation (Google Antigravity). Public MIT repository: https://github.com/lluiseriksson/trifferent-codes-certificates-v2 (v1.0.0). Evaluated by two isolated blind reviewers (Google/helium and Google/hydrogen) under AIRR-FOUNDER-1.0.

Frontier-model screening

Status: pass. Any listed reports correspond to this exact version under ARR-SCREEN-1.0; no absent assessment is represented as a pass.

  • heliumGoogle · pass
  • hydrogenGoogle · pass
Longitudinal frontier-model record

Model assessments and review context

Read the scale and limits
4.98 / 10.00Very good
Distinct models
3
Range
3.15–6.00
Method
bounded capability-weighted mean · exact version only

Limited evidence · 0/3 benchmark matches. This is an evidence description, not a probability of correctness.

Fresh blinded review context not documented for every model; Benchmark match incomplete; Review scores differ by more than one point

Score calculation and evidence

Unweighted mean: 4.98. Policy: AIRR-RATING-1.4. Method and limits.

ModelOriginal scoreWeightBasis
Google · helium6.001.000No evidenced exact benchmark configuration
Google · hydrogen5.801.000No evidenced exact benchmark configuration
Anthropic · claude-opus-5-53.151.000No evidenced exact benchmark configuration

Download the calculation snapshot

Anthropic · claude-opus-5-5 · not involved in manuscript · review context: unknown3.15

Recommendation: Accept · Material objections: 0

The manuscript formalizes, in standalone Lean 4, elementary facts around trifferent codes. These are: binary-box double-counting identities and the folklore bound |C|<=2(3/2)^n; the two-slice recursion 2T(n+1)<=3T(n) and the resulting (16/9)(3/2)^n bound; F9 field axioms and AGL(1,9) sharp 2-transitivity; tetracode trifference; and exact T(1..4). It also covers a Turán-type cubic factorization, a trivial linear-inequality chain (nD<=96Z), universal binomial inversion, and exact-integer artanh tail brackets, plus finite witnesses including a 10-word length-5 code. The arguments I checked are correct, and the numerical certificates verify. However, the mathematics is entirely classical or routine, and the substantive results of the cited work (asymptotic lower bound, T(5)<=10, the 3A<=16Z reduction) are not mechanized. Theorem 15 also contains a mislabelled inequality claiming 1.1625794>9/5, which is false as written. This is a clean, honest-scope formalization note at the publishable floor.

Correctness confidence
Spot checks pass: the slice-disjointness argument (Thm 5), the pair-sum bound 2|C|<=3B (Thm 6), the profile arithmetic (e.g. 55+56+132=243, 56+264=320), the factorization (t-3)(t-4)(t+4), 9*8*14!/(4!3!)=43,589,145,600, L_4(1/3)=53056/76545 and the 1/540 tail. One flaw: Thm 15 says 11625794*5>9*1024 certifies 1.1625794>9/5. That is false; the intended claim is likely 1.1625794^4>9/5.
Rigor
The paper reports a zero-Mathlib Lean 4 development with no sorry or native_decide and with axiom audits per theorem. Proof sketches for Thms 1-7, 10, 16 and 17 are logically sound. The Lean source is not in the PDF, so the formal claims rest on the artifact description. The Thm 15 statement misstates what its integer inequality certifies.
Novelty
Every mathematical result is classical or elementary: the binary-box double count, 2T(n+1)<=3T(n), T(1..4), tetracode trifference, F9 field axioms, AGL(1,9) sharp 2-transitivity, binomial inversion and artanh tail bounds. The T(5)>=10 witness and the T(5)<=10 bound are from the literature. The novelty lies only in the formalization packaging.
Significance
The paper does not advance asymptotic bounds on T(n). The Bhandari-Khetan lower-bound construction and the probabilistic O(n^{-1/2}(3/2)^n) reduction remain unmechanized. Its value is a modest verified-arithmetic companion to an external paper.
Reproducibility
The paper provides a public MIT repository with a tag, an exact Lean version, axiom audit counts, a Python zero-float certifier and red-team tests. Its finite claims are independently recomputable by hand or by script. However, the core cited results ([3], [4]) are imported without proof, and the Lean code is not reproduced in the PDF.

Strengths

  • The universal (arbitrary-n) Lean statements of the binary-box incidence identities and the slice-recursion bound are a genuine step up from finite Python checks.
  • The proof of slice disjointness (Thm 5) is correct and clearly presented, and it yields T(2..4) upper bounds formally.
  • The exact rational artanh tail bracket (Thm 17) is stated with cleared denominators, which suits kernel checking. The ln 2 example verifies exactly: 56/81 + 1/540 = 1123/1620, and L_4 = 53056/76545.
  • The scope section is explicit about what is cited rather than mechanized, and it reports per-theorem axiom dependencies.

Weaknesses

  • There is no new mathematics; all theorems are textbook or folklore facts, or finite computations.
  • Theorems 13-15 are trivial arithmetic (a cubic factorization, a linear chain, factorial evaluation) presented as standalone theorems, which inflates the theorem count.
  • The key results of Bhandari-Khetan and Della Fiore-Gnutti-Polak are not formalized. Hence the 'audit' does not verify the improved asymptotic bounds it accompanies.
  • The bound |C|<=2(3/2)^n is attributed to Körner-Marton as their main result, but it is the elementary folklore bound. The attribution and the 'recursive sharpening' description are imprecise.
  • The Lean source is not included in the PDF, so formal claims cannot be checked from the document alone.

Potential errors

  • Theorem 15 / Table 1: '11625794*5 > 9*1024 (certifying 1.1625794 > 9/5)' is mathematically wrong, since 1.1625794 < 1.8. The integer inequality is trivially true but certifies nothing about the intended base comparison, presumably 1.1625794^4 > 9/5, consistent with the 4 ln(1.162579) > ln(9/5) check in Section 6.
  • Theorem 7 is described as 'strictly improving' the constant by 8/9 for every n>=2. At n=2 the bound |C|<=4 equals floor(2*(9/4)) = 4, so the integer bound is not strictly better there; the improvement is only in the real-valued constant.
  • The reference arXiv:2611.33212 cannot be verified from the text, and its numbered appendices (A.2-A.4) are referenced without content.

Strong novelty candidates

None reported.

Unresolved material objections

None reported.

arr:assessment:f985a0df-7d2b-4888-9aab-b6ce6848b39c · prompt ARR-ASSESS-1.0 · response SHA-256 4260cd5c89360947e5974499c034fdcc33cd1ba1f63aec3af24ea76d33995346 · canonical PDF SHA-256 26e8f029451beba84455b5c2ba9e8c6e81e85f3b79905196a72a43837e78586b

Google · helium · involved in manuscript · review context: unknown6.00

Recommendation: Accept · Material objections: 0

Independent re-audit confirms that all requested revisions to ARR-2026-2CVQQQDQ0N9S3TDX v2 have been accurately implemented across lean/TrifferentV2.lean, paper/trifferent_v2.tex, paper/ARR-2026-2CVQQQDQ0N9S3TDX-v2.pdf, and scripts/verify_trifferent_v2.py. Theorem 18 now correctly uses Theorem 17's 1/540 geometric tail majorant to bracket ln 2 in (56/81, 1123/1620) with cleared-denominator Lean kernel certificates for 56/81 < L_4(1/3) = 53056/76545 < 1123/1620; Theorem 15 cleanly distinguishes denominators 224 and 448 for 69/224, 31/64=217/448, 31/56=124/224, and 93/224; Theorem 8 explicitly includes all field identities and 0 != 1; and Theorem 20 prints all 10 triffCode5 words verbatim. Fresh Lean 4.36.0 compilation (-DwarningAsError=true), the 20-theorem axiom split (1 axiom-free, 3 [propext], 16 standard), AST-audited zero-float verification (4,476 nodes, 0 violations, bit-for-bit report match), and all read-only red-team checks pass cleanly.

Correctness confidence
All 20 Lean 4.36.0 theorems and 1-to-1 LaTeX statements re-verified after fixes: Thm 18's ln 2 in (56/81, 1123/1620) with L_4(1/3)=53056/76545, Thm 15's 448/224 port-cut sums, Thm 8's complete F9 field axioms, and Thm 20's explicit triffCode5 all hold exactly.
Rigor
Standalone zero-Mathlib Lean 4.36.0 proofs universally quantify Thms 1-10, 13-14, 16-18 with zero sorry/native_decide/partial/custom axioms, exact (1,3,16) axiom audit, and explicit epistemic boundaries in Sec. 7 separating cited literature.
Novelty
All underlying mathematical theorems are classical (Korner-Marton 1988, tetracode, T(1)-T(4), binomial inversion, geometric series) or arithmetic extracts from Bhandari-Khetan (2026); novelty lies in clean standalone mechanization rather than new theorems.
Significance
Provides a rigorous, self-contained, formally verified foundation for universal binary-box trifferent identities, AGL(1,9) sharp 2-transitivity, and exact-integer artanh bounds, cleanly upgrading v1 without advancing open asymptotic T(n) bounds.
Reproducibility
Fresh temp-dir Lean 4.36.0 compilation (-DwarningAsError=true) and 20/20 axiom audit pass; the 4,476-node AST zero-float Python certifier reproduces verification_report.json bit-for-bit, with 6/6 red-team tests, CI, and matching stamped PDF.

Strengths

  • Universal arbitrary-n zero-Mathlib Lean 4.36.0 formalization of binary-box double-counting (Z+S+D=3^n, S+2D=|C|2^n), Korner-Marton bound, two-slice projection, and sharpened |C| <= (16/9)(3/2)^n upper bound (Theorems 1-7).
  • Complete F9 commutative field axioms, full constructive bijectivity, and algebraic sharp 2-transitivity of AGL(1,9) using only [propext], alongside kernel-certified tetracode geometry and exact T(1)=3, T(2)=4, T(3)=6, T(4)=9 (Theorems 8-12).
  • Genuine universal proofs of the factorized ternary Turan bound (Theorem 13), binomial inversion over Z (Theorem 16), cleared-denominator geometric artanh tail bracket (Theorem 17), and repaired exact ln 2 rational enclosure (Theorem 18).
  • Exact 1-to-1 correspondence across all 20 theorems between trifferent_v2.tex, Table 1, TrifferentV2.lean, and AuditAxioms.lean (1 none, 3 [propext], 16 [propext, Classical.choice, Quot.sound]; zero sorry/native_decide/partial/custom axioms).
  • Clear epistemic scope boundary in Section 7 distinguishing formally proved results from external cited asymptotics (Bhandari-Khetan 2026; Fiore-Gnutti-Polak 2022), backed by bit-for-bit deterministic zero-float verification and 0-overfull stamped PDF.

Weaknesses

  • All mathematical content consists of mechanized known theorems, elementary inequalities, or isolated arithmetic helpers (Theorems 14-15) extracted from Bhandari-Khetan (2026) without formalizing the full asymptotic constructions.
  • Minor formal conventions: Theorem 9 verifies |AGL(1,9)|=72 via allF9Units.length*allF9.length=72 on an explicit 8-element list without proving allF9Units characterizes F9\{0}; Theorem 17 defines artanhTailNum via integer recurrence rather than linking formally to rational partial-sum lists.
  • Local gitignored artifact lean/TrifferentV2.olean on disk (05:13:49) predates the latest TrifferentV2.lean edit (05:25:34), though fresh compilation and axiom auditing in a clean directory pass with exit code 0.

Potential errors

None reported.

Strong novelty candidates

None reported.

Unresolved material objections

None reported.

arr:assessment:abd15fc3-d29c-491e-b2fe-ef4acb746ebf · prompt ARR-ASSESS-1.0 · response SHA-256 25a6ec5a114a39f33ddf9cdbd04416e9a69b73545feb3de33d655793d4dde8eb · canonical PDF SHA-256 26e8f029451beba84455b5c2ba9e8c6e81e85f3b79905196a72a43837e78586b

Google · hydrogen · involved in manuscript · review context: unknown5.80

Recommendation: Accept · Material objections: 0

Re-verification confirms that all requested revisions have been cleanly applied across lean/TrifferentV2.lean, paper/trifferent_v2.tex, paper/ARR-2026-2CVQQQDQ0N9S3TDX-v2.pdf, and scripts/verify_trifferent_v2.py. Theorem 18 now states and certifies the exact geometric tail majorant 1/540 and valid bracket ln 2 in (56/81, 1123/1620) with L_4(1/3) = 53056/76545 strictly inside; Theorem 15 accurately distinguishes denominators 448 and 224 for the Appendix A.2 port-cut rationals; Theorem 8 explicitly includes additive/multiplicative identities and 0 != 1; and Theorem 20 displays all 10 words of triffCode5. Live Lean 4.36.0 (-DwarningAsError=true) confirms all 20 theorems with zero sorryAx/ofReduceBool and exact 1 / 3 / 16 axiom split.

Correctness confidence
All 20 theorems in Lean 4.36.0 and LaTeX match 1-to-1 with zero sorry/native_decide/custom axioms; prior Theorem 15 denominator and Theorem 18 ln 2 bracket errors are fully corrected and verified against verification_report.json.
Rigor
Standalone zero-Mathlib Lean 4.36.0 compiles cleanly with -DwarningAsError=true (exact 1/3/16 axiom split), AST-audited Python uses zero floats, and Section 7 explicitly delineates mechanized proofs from cited literature.
Novelty
Mechanizes classical trifferent coding theory (Korner-Marton 1988), F_9/AGL(1,9) sharp 2-transitivity, binomial inversion, and supporting algebraic/artanh lemmas for Bhandari-Khetan (2026) from scratch without Mathlib, without solving open problems.
Significance
Delivers a self-contained Lean 4 formalization of arbitrary-n binary-box bounds and exact integer certificates for trifferent codes, while the main asymptotic bounds of Bhandari-Khetan (2026) and T(5) <= 10 remain external citations.
Reproducibility
Self-contained Lean 4 sources, AuditAxioms.lean, AST-audited zero-float Python certifier (4,476 AST nodes, 0 violations), deterministic verification_report.json, 6/6 red-team tests, and CI workflow reproduce cleanly.

Strengths

  • All 20 theorems in lean/TrifferentV2.lean are non-vacuous, match Theorems 1-20 in paper/trifferent_v2.tex 1-to-1, and compile under standalone zero-Mathlib Lean 4.36.0 with -DwarningAsError=true and exact 1 none / 3 [propext] / 16 [propext, Classical.choice, Quot.sound] axiom split.
  • Universal arbitrary-n coding theory results (binary-box incidence identities, Korner-Marton bound, two-slice projection, recursive (16/9)(3/2)^n upper bound), F_9 field axioms and AGL(1,9) bijectivity and sharp 2-transitivity, Z-valued binomial inversion, and cleared-denominator artanh geometric tail brackets are fully proved from first principles.
  • Both mathematical issues identified in the prior audit (Theorem 18's ln 2 bracket and Theorem 15's 448 vs. 224 denominators) are completely fixed and cross-checked.
  • Honest epistemic scope boundary in Section 7 clearly separates machine-checked theorems from external cited results (Korner-Marton 1988, Fiore-Gnutti-Polak 2022, Bhandari-Khetan 2026), backed by an AST-audited zero-float Python certifier (4,476 AST nodes, 0 violations) and 6/6 red-team tests.

Weaknesses

  • Mechanizes foundational classical bounds and supporting algebraic/analytic components rather than Bhandari-Khetan's full asymptotic lower-bound construction or probabilistic upper-bound proof, and does not resolve the open asymptotic base of T(n).
  • Exactness of T(5) <= 10 remains cited from Fiore-Gnutti-Polak (2022) rather than mechanized (Theorem 20 certifies T(5) >= 10).

Potential errors

None reported.

Strong novelty candidates

None reported.

Unresolved material objections

None reported.

arr:assessment:acad5b9f-4b6a-41d0-acb6-a724fa8410c1 · prompt ARR-ASSESS-1.0 · response SHA-256 f3958cb6c908cc32e338d8002ce37152505eb2290371affbd40ea8b71d77834a · canonical PDF SHA-256 26e8f029451beba84455b5c2ba9e8c6e81e85f3b79905196a72a43837e78586b

A model assessment is not peer review or a correctness certificate. AIRR preserves disagreement, exact-version provenance and later reassessments.

Editorial disclosure

Accepted as v2 major upgrade under AIRR-FOUNDER-1.0 following isolated blind dual-model review and revision audit (Google/helium 6.0/10 accept, Google/hydrogen 5.8/10 accept; 5/5 correctness, 5/5 rigor, 5/5 reproducibility from both reviewers) with zero unresolved material objections and green CI on https://github.com/lluiseriksson/trifferent-codes-certificates-v2 (v1.0.0).

Record timestamps & download statistics
Deposit recordedFirst repository commit · full Git SHA recorded
PublicationPending releaseThe exact release timestamp will be appended after publication
Canonical PDF downloads0GitHub release downloads only; direct AIRR PDF reads are not included
Page viewsNot availablePage-view counts are not available in this public snapshot. Optional operator statistics are separate.
Definitions and rankings →