Triangle Codes of Graphs: Exact Values on Seven and Eight Vertices, and the Dual Problem on n Vertices
- Kind
- Theorem (Lean 4 formal proof for 3 of 5 main results; written proofs for 2 of 5)
- Status
- Proved: 3 of 5 main results Lean-verified in Lean 4 + Mathlib (TriangleFreeCodeCap.PaperDraft1, 233 declarations, zero sorry, zero native_decide, standard axioms only) and 2 of 5 by written proof; unrefereed
- Lean share
- 3 of 5 main results in Lean (60%); 2 of 5 by written proof (exact dual maxima D_{K_3}(n) = D_{C_odd}(n) = 2^floor(n^2/4) for all n >= 0 and uniqueness of extremal linear dual families for n != 3); M_{K_3}(n) for n >= 9 stays open
- Prior work
- 1 of 12 cited sources read in full text and 11 marked [to check]; extends the small-n exact equality range of Alon, Gujgiczer, Körner, Milojević, and Simonyi (2023) to n = 7 and n = 8, while n >= 9 stays open
The statement
A family of graphs on labeled vertices is a triangle code if the symmetric difference of any two distinct members contains a triangle; let be the largest size of such a family, and let be the corresponding maximum requiring an odd cycle. Alon, Gujgiczer, Körner, Milojević, and Simonyi (2023) proved
established equality for on and for on , and asked whether equality holds for all or infinitely many .
Main results (3 of 5 in Lean 4, 2 by written proof).
- Exact values at and (Lean 4): and , achieved by explicit linear triangle codes of dimensions and . Equality therefore holds for ; stays open.
- Symmetry obstructions (Lean 4): No optimal linear triangle code on vertices is invariant under a transposition (), a 3-cycle (), or a double transposition (odd ).
- Two non-isomorphic codes on 8 vertices (Lean 4): There exist a permutation of order 7 on 8 vertices and two non-isomorphic optimal linear triangle codes of dimension 12 both invariant under .
- All- dual problem (written proof): When no symmetric difference of distinct members may contain a triangle (or an odd cycle), the maximum size is for every , and for the largest linear families are precisely the families of all subgraphs of a balanced complete bipartite graph.
Check it yourself
- Dimensions of optimal linear triangle codes: Over , the edge space of has dimension , while a balanced complete bipartite graph has edges. Thus an optimal linear triangle code on vertices has dimension (sizes 2, 4, 16, 64, 512, 4,096).
- Testing a linear witness: A linear subspace is a triangle code if and only if every nonzero graph in contains a triangle; checking all nonzero graphs at and all nonzero graphs at takes milliseconds.
- Replay from the archive: Unpack the verification archive and run
python3 recompute.pyto check the Lean witness bases for , verify every nonzero member contains a triangle, and confirm the two order-7-symmetric 8-vertex codes are non-isomorphic.
Status and who checked it
- Verified in Lean 4 + Mathlib (3 of 5 main results):
TriangleFreeCodeCap.PaperDraft1(233 audited declarations, zerosorry, zeronative_decide, standard axioms only) proves , , the symmetry obstructions, and the two non-isomorphic order-7-symmetric 8-vertex codes. - Written proofs (2 of 5 main results): The all- dual maximum and the classification of extremal linear dual families for are proved in writing in the 17-page Draft 1 manuscript (passed automated gates and cross-model blind referee review with
PASS, 0 blocking issues). - Scope limits: Whether holds for remains open.
- Unrefereed. AI research agents built and directed by Tyler B. Hughes generated and checked this work. No human mathematician has yet refereed the proof.
Prior work
Alon, Gujgiczer, Körner, Milojević, and Simonyi (2023) introduced graph codes, proved the upper bound , and settled through and through . For large , the dual bound follows from a theorem of Balogh (2006).
Searches run. Of 12 cited sources in references-checked.md, 1 was read in full text and 11 remain marked [to check]. Live identifier verification passed on all 12 citations.
Still owed: Full-text reading of the 11 [to check] paywalled and secondary references, plus exhaustive journal and monograph searches beyond open-access archives.
Further reading
- N. Alon, A. Gujgiczer, J. Körner, A. Milojević, and G. Simonyi, "Structured codes of graphs", SIAM J. Discrete Math. 37 (2023)
[to check] - N. Alon, "Graph-codes: questions, results and methods", Jpn. J. Math. (2026)
[to check] - B. Bai, Y. Gao, J. Ma, and Y. Wu, "Phase transitions of structured codes of graphs", arXiv:2307.08266 (2023)
[to check] - J. Balogh, "A remark on the number of edge colorings of graphs", European J. Combin. 27 (2006), 565–573
[to check]