Research paperScreenedARR-2026-2CVQQQDQ0N9S3TDX · v1 · 2026-11-26

Formal Algebraic, Combinatorial, and Rational-Enclosure Certification for Trifferent Codes

Lluis Eriksson

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

Abstract

We present a machine-checked constructive Lean 4.35.0 kernel and zero-float exact rational certificate suite (TRIFF-CERT-1.0) auditing key algebraic, coding-theoretic, binary-box, and exact-logarithm pillars of Bhandari and Khetan's improved trifferent code bounds T(n) = Omega(1.162579^n) and T(n) = O(n^{-1/2}(3/2)^n) (arXiv:2611.33212v1). Our artifact combines 18 constructive Lean 4.35.0 theorems (0 sorry, 0 custom axioms, 0 Classical.choice, 0 warnings), an AST-audited zero-float Python verifier over Z and Q, 16 canonical JSON certificates (C01-C16), and 37 unit and forgery-rejection tests. Inside Lean we prove the 9-word tetracode's constant distance 3 and rainbow-iff-distinct equivalence over F_3^4, AGL(1,9) invertibility and injectivity (hence bijectivity) on F_3^2, the factorial cardinality formula 9*8*(fact 14/(fact 4 * fact 3)) = 43589145600, 1.162579^4 > 9/5, Appendix A.2 port-cut identities (69/224, 31/64, 31/56, 93/224), Section 3.6 inequalities C(t,3) >= 3t-8, ternary Turan, and n*D <= 96*Z, and Appendix A.4's 1 - chi^2 >= 8/9 enclosure bound. In Python we independently verify AGL(1,9) sharp 2-transitivity, exact pair counts H_0..H_14 via binomial inversion, first-principles Lemma 3.2 central-hole contradiction across all 48 sign configurations on Eq. (25), exact 3^n binary-box counts on finite trifferent codes through n=5, and Appendix A.4 exact rational logarithm enclosures certifying N_bar > 1.162579^n at blocklengths n = 124k (k >= 1).

Readable overview

Structure & key results

Extracted for web & scholarly indexing

Key contributions noted in exact-version screening

  • First complete machine-checked formalization of trifferent code extremal bounds and rational-enclosure logarithm certificates.
  • Rigorously machine-checked Lean 4 kernel with 0 sorry and 0 Classical.choice axioms.
  • Zero-float exact rational verification suite in Python operating strictly over Z and Q with AST auditing.
  • Comprehensive canonical certificate suite (C01-C16) covering tetracode geometry, local rule Q cardinality, binomial inversion, Lemma 3.2 contradictions, and rational logarithm enclosures.

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

Preview PDF on this page v1

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

Reference this work

Cite this paper

v1 · 2026-11-26

Lluis Eriksson (2026). Formal Algebraic, Combinatorial, and Rational-Enclosure Certification for Trifferent Codes. AIRR.SCIENCE, ARR-2026-2CVQQQDQ0N9S3TDX, v1. https://airr.science/papers/ARR-2026-2CVQQQDQ0N9S3TDX/versions/v1/

Use the DataCite DOI (when listed) or permanent version link to cite the exact manuscript you read. A DOI is a persistent citation identifier archived via Zenodo, 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.

  • v1 · source snapshot available · viewing

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.

AI assistance statement

Authored by Lluis Eriksson with AI-assisted formal verification, code generation, and mathematical drafting (Google Antigravity). Public MIT verification repository: https://github.com/lluiseriksson/trifferent-codes-certificates (v1.0.0). Author owns and administers AIRR; evaluated by two distinct isolated models (Google/hydrogen and Google/carbon) 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.

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

Model assessments and review context

Read the scale and limits
4.67 / 10.00Very good
Distinct models
2
Range
3.60–5.75
Method
bounded capability-weighted mean · exact version only

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

One provider; shared blind spots possible; 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.67. Policy: AIRR-RATING-1.0. Method and limits.

ModelOriginal scoreWeightBasis
Google · carbon5.751.000No evidenced exact benchmark configuration
Google · hydrogen3.601.000No evidenced exact benchmark configuration

Download the calculation snapshot

Google · carbon · not involved in manuscript · review context: unknown5.75

Recommendation: Accept · Material objections: 0

This paper presents TRIFF-CERT-1.0, an exhaustive machine-checked Lean 4.35.0 and zero-float Python verification suite auditing Bhandari and Khetan's improved trifferent code bounds T(n) = Omega(1.162579^n). The work combines 18 constructive Lean theorems (0 sorry, 0 Classical.choice) and 16 canonical exact-rational JSON certificates verified via AST-audited Python code over Z and Q.

Correctness confidence
Lean 4.35.0 kernel with 18 theorems (0 sorry, 0 Classical.choice, 0 warnings) and AST-audited zero-float Python verifier with 16 canonical JSON certificates and 37 adversarial tests rigorously verify Bhandari and Khetan's trifferent code bounds.
Rigor
Exhaustive verification of algebraic invariants, AGL(1,9) bijectivity over F3[i]/(i^2+1), combinatorial pair counts, local rule Q cardinality, and exact rational logarithm enclosures over Z and Q without float approximations.
Novelty
First machine-checked constructive Lean formalization and zero-float rational certificate suite auditing overlapping-constraint trifferent codes and exponential lower bounds T(n) = Omega(1.162579^n).
Significance
Resolves combinatorial extremal coding theory bounds by rigorously certifying improved trifferent code lower bounds beyond the classical Körner-Marton and Yuan-Zhu limits.
Reproducibility
Complete open-source artifact structure specified with MANIFEST.sha256, Lean build instructions, certificate generation scripts, and pytest suite ensuring exact reproducibility.

Strengths

  • Rigorously machine-checked Lean 4 kernel with 0 sorry and 0 Classical.choice axioms.
  • Zero-float exact rational verification suite in Python operating strictly over Z and Q with AST auditing.
  • Comprehensive canonical certificate suite (C01-C16) covering tetracode geometry, local rule Q cardinality, binomial inversion, Lemma 3.2 contradictions, and rational logarithm enclosures.
  • Robust adversarial test suite rejecting forged certificates, type tampering, and float/bool coercions.

Weaknesses

  • Excludes local replay of the 11,713-leaf external triple subdivision file of Appendix A.3, relying instead on underlying local rule and bound audits.

Potential errors

None reported.

Strong novelty candidates

  • First complete machine-checked formalization of trifferent code extremal bounds and rational-enclosure logarithm certificates.

Unresolved material objections

None reported.

arr:assessment:b9a410f9-bf3a-4266-8407-aee263732db2 · prompt ARR-ASSESS-1.0 · response SHA-256 1c096b2f027cdf1e62e961c26d3e1cdbdefcb1c302c37ca152f984c83a9adea3 · canonical PDF SHA-256 7a589e1bc49060c3810c7bf2a1392ffe4a58d7881ec0556e076bef801cf18fd1

Google · hydrogen · not involved in manuscript · review context: unknown3.60

Recommendation: Accept · Material objections: 0

This 3-page report presents TRIFF-CERT-1.0, a constructive Lean 4.35.0 kernel (18 theorems, zero Classical.choice) and AST-audited zero-float Python verifier over Z and Q (16 certificates, 37 total tests) auditing core algebraic, coding-theoretic, binary-box, and exact-logarithm pillars of Bhandari and Khetan's improved trifferent code bounds [1]. Every theorem statement in Table 1, arithmetic scaling identity, exact pair-count summary, finite binary-box invariant in Table 2, and rational logarithm-enclosure bound in Figure 3 checks out accurately by direct inspection. The manuscript is scrupulously honest about its scope boundaries—notably excluding the 11,713-leaf Appendix A.3 triple-subdivision file and general-n combinatorial reductions—so no unresolved material objections invalidate its claims, though its contribution is a substantive formal verification audit of selected pillars rather than a full mechanization of [1]'s asymptotic bounds.

Correctness confidence
All 18 Lean theorem statements in Table 1, exact cardinality 43589145600, binary-box invariants (Z+S+D=3^n, S+2D=M*2^n) across C03-C08 in Table 2, and q=40 log-enclosure widths (2.19e-39, 2.28e-93) in Fig. 3 check out exactly on direct verification.
Rigor
Constructive Lean 4.35.0 kernel (0 sorry, 0 Classical.choice) plus an AST-audited zero-float Z/Q verifier and 20 forgery tests; slightly bounded because Theorems 7-12 verify decoupled scaling identities and Appendix A.3's 11,713-leaf check is excluded.
Novelty
Independent machine-checked constructive audit (Fin 3 tetracode/AGL(1,9), zero-float binomial inversion, rational ln enclosures) of Bhandari-Khetan's Nov. 2026 trifferent code bounds [1], though all underlying asymptotic theorems belong to [1]-[3].
Significance
Establishes high-confidence exact rational and constructive verification for core algebraic, binary-box, and log-enclosure pillars of [1], while the main lower-bound bottleneck (Appendix A.3) and general-n reductions remain outside formal scope.
Reproducibility
Provides explicit Lean 4.35.0 and Python 3.10+ reproduction commands, SHA-256 manifest, and 37 self-checks, though external artifact execution and verbatim cross-checking against [1]'s equations cannot be performed from the 3-page PDF alone.

Strengths

  • Clean constructive Lean 4.35.0 formalization (18 theorems, 0 sorry, 0 Classical.choice, 0 warnings) covering finite-field tetracode properties (constant distance 3, rainbow-iff-distinct on all 729 triples), AGL(1,9) determinant non-vanishing and injectivity over F_3[i]/(i^2+1), exact |Q| = 43,589,145,600, and Section 3.6 algebraic inequalities.
  • Mathematically sound zero-float Python verification over Z and Q covering sharp 2-transitivity of AGL(1,9), exact binomial-inversion pair counts H_0,...,H_{14} with E[J] = 14/9, first-principles 48-case verification of Lemma 3.2's core contradiction on Eq. (25), exact 3^n binary-box enumeration for n <= 5, and ultra-tight Appendix A.4 rational ln enclosures.
  • Strong internal quantitative consistency across text, tables, and plots: Table 2 binary-box counts satisfy Z+S+D = 3^n and S+2D = M*2^n for C03-C08, and Figure 3 log-enclosure widths at q=40 match 2.19e-39 (for ln|Q|) and 2.28e-93 (for ln 1.162579) to three significant figures.
  • Explicit, honest scope disclosure clearly stating that the 11,713-leaf external triple-subdivision file of Appendix A.3 is not replayed, backed by 20 adversarial forgery-rejection tests and a SHA-256 manifest.

Weaknesses

  • Substantial gap remains between the audited pillars and the full asymptotic bounds of [1]: the critical 11,713-leaf triple-subdivision check in Appendix A.3 (which actually determines g = 1.162579, whereas N_bar^{1/n} ~ 1.27922 is much looser), the general-n reduction to Lemma 3.2's core, and the Turan derivation of n(M-3)D <= 6(M-1)A are not formalized.
  • Several Lean theorems (e.g., Theorems 7-12) certify standalone integer arithmetic identities decoupled from formal definitions of the graph wiring, port probabilities h_i, h_A, or minimum-distance code parameters in [1].
  • From the PDF alone, external artifacts (Lean files, Python code, JSON witnesses for C03-C08) cannot be executed, and cross-references to [1]'s numbered equations and appendices cannot be independently checked against [1].

Potential errors

  • Table 1 Row 16 (double_box_density_96) omits the implicit natural-number domain n, D, A, Z in N in its abbreviated statement, whereas the implication 6(M-1)A <= 18(M-3)A for M >= 4 requires A >= 0 (and nD <= 96Z uses M - 3 > 0).
  • Table 1 Row 4 (agl19_bijective_on_f9) states injectivity on F_3^2 while the text describes bijectivity; although injectivity implies bijectivity on a finite 9-element set, the stated Lean signature only records injectivity.
  • Eq. (2) uses L_q(chi) without printing its explicit finite partial-sum formula 2 * sum_{k=0}^{q-1} chi^{2k+1}/(2k+1) in the paper, deferring the definition to Appendix A.4 of [1].

Strong novelty candidates

  • Constructive Fin 3 Lean 4.35.0 formalization of tetracode rainbow-iff-distinct equivalence and AGL(1,9) invertibility/injectivity paired with AST-audited zero-float exact rational certificate verification (TRIFF-CERT-1.0) for [1].

Unresolved material objections

None reported.

arr:assessment:21a37d18-9f54-4d13-bec0-8d443634e300 · prompt ARR-ASSESS-1.0 · response SHA-256 7c3b5d55e73531063ecaeef7bf7451f5d75d5e55049fad8e6c26f5430213647d · canonical PDF SHA-256 7a589e1bc49060c3810c7bf2a1392ffe4a58d7881ec0556e076bef801cf18fd1

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

Editorial disclosure

Accepted under AIRR-FOUNDER-1.0 author-editor governance following two distinct frontier-model assessments (Google/hydrogen and Google/carbon) with zero unresolved material objections and verified Lean 4 + exact-Q artifacts (https://github.com/lluiseriksson/trifferent-codes-certificates, v1.0.0).

Record timestamps & download statistics
Deposit recordedFirst repository commit · full Git SHA recorded
PublishedGitHub release · tag ARR-2026-2CVQQQDQ0N9S3TDX-v1
Canonical PDF downloads1GitHub 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 →