The Alon-Tarsi conjecture at orders 26, 94 and 118

Primarily AI-generated textHuman understanding: some partsmath.CO — Combinatoricsmath.NT — Number Theory

Contributed by Nils Juenemann ↗

Version 1 / Nov 29, 2026 / CC BY 4.0

Abstract

The Alon–Tarsi conjecture says that for every even nn the numbers of even and odd Latin squares of order nn differ. It is known for n=p±1n = p \pm 1 with pp an odd prime, and n=26n = 26 has been the smallest open order. I prove it for n=26n = 26, 9494 and 118118, so that it holds for all even n≤118n \le 118. For n=p+3n = p + 3 the conjecture follows whenever 4K6(p)≢5(modp)4K_6(p) \not\equiv 5 \pmod{p}, where K6(p)=∑j<pj! 6−jK_6(p) = \sum_{j<p} j!\,6^{-j}; below 10610^6 this fails only for p=59729p = 59729. For n=p+mn = p + m I reduce the next pp-adic digit to a signed count of Latin rectangles with mm rows and write this count as a pairing in an algebra with commuting and anticommuting variables. For m=5m = 5 a computer-assisted closed form gives a Kurepa-type criterion, which settles n=94n = 94 and n=118n = 118 and, with Glynn's theorem for one exceptional prime, all n=p+5n = p + 5 with 7≤p≤3000007 \le p \le 300000.

Author comments: 38 pages, 9 figures, 2 tables. The results for the order 26 (Theorem 1.1, Corollary 1.2) and the structural results of Sections 2 to 7 are formalised in Lean 4 with Mathlib and checked by the kernel; sources at https://github.com/totallyunknown/latin-squares-lean (tag alon-tarsi-26-v1). The orders 94 and 118 (Theorem 1.3) are computer-assisted; the computations and their independent checks are described in Section 8 and Appendix B.

Provenance statement

The research, the proofs and most of the text were produced with AI assistance (Claude by Anthropic, Codex by OpenAI), steered by me in a continuous dialogue: I chose the problem and the approach, asked for proofs and computations, and reviewed the results. Verification has three layers: (1) Formal proof: the numbered results of Sections 2 to 6, Lemmas 7.1 and 7.2, Corollary 7.3, Theorems 7.4 and 7.5 and Proposition A.1, and with them Theorem 1.1 and the order 26 (Corollary 1.2), are formalised in Lean 4 with Mathlib and checked by the kernel (standard axioms only). Not formalised: Section 7.4, Lemmas 7.6 and 7.12, Theorems 7.13 and 7.14, the computations of Section 8 and the remaining parts of Appendix A. (2) Computation: the orders 94 and 118 rest on exact computer algebra. The closed form of Theorem 7.13 was obtained by two independently developed evaluations that agree, and was checked against direct enumeration for small N and against an independently computed exact value of D_12 (Appendix B). (3) Human reading: I have checked and understood [z. B.: the overall structure, Sections 1 to 4 and 6, and the reduction for n = 26]. I have not yet checked line by line [z. B.: the classification in Section 5.4 (covered by the Lean proof) and Sections 7.2 to 7.5, the pairing formula and the five-layer computation, which are supported by the computations above but not by a complete human reading].

Tools used

OpenAI
Codex
Anthropic
Claude Opus
Lean
Lean

References

  1. Noga Alon and Michael Tarsi. Colorings and orientations of graphs. Combinatorica , 12(2):125--134, 1992. doi:10.1007/BF01204715 (https://doi.org/10.1007/BF01204715).DOI
  2. Vladica Andreji ć , Alin Bostan, and Milos Tatarevic. Improved algorithms for left factorial residues. Information Processing Letters , 167:106078, 2021. doi:10.1016/j.ipl.2020.106078 (https://doi.org/10.1016/j.ipl.2020.106078).DOI
  3. Daniel Barsky and B é nali Benzaghou. Nombres de B ell et somme de factorielles. Journal de Th é orie des Nombres de Bordeaux , 16(1):1--17, 2004. doi:10.5802/jtnb.432 (https://doi.org/10.5802/jtnb.432).DOI
  4. Daniel Barsky and B é nali Benzaghou. Erratum à l'article N ombres de B ell et somme de factorielles. Journal de Th é orie des Nombres de Bordeaux , 23(2):527, 2011. doi:10.5802/jtnb.775 (https://doi.org/10.5802/jtnb.775).DOI
  5. Jochem Berndsen. Three problems in algebraic combinatorics. Master's thesis, Eindhoven University of Technology, 2012. URL: https://pure.tue.nl/ws/portalfiles/portal/47046131/739259-1.pdf.link
  6. Sergio Caracciolo, Alan D. Sokal, and Andrea Sportiello. Algebraic/combinatorial proofs of C ayley-type identities for derivatives of determinants and pfaffians. Advances in Applied Mathematics , 50(4):474--594, 2013. doi:10.1016/j.aam.2012.12.001 (https://doi.org/10.1016/j.aam.2012.12.001).DOI
  7. Seth Chaiken. A combinatorial proof of the all minors matrix tree theorem. SIAM Journal on Algebraic and Discrete Methods , 3(3):319--329, 1982. doi:10.1137/0603033 (https://doi.org/10.1137/0603033).DOI
  8. Leonardo de Moura and Sebastian Ullrich. The L ean 4 theorem prover and programming language. In Automated Deduction -- CADE 28 , volume 12699 of Lecture Notes in Computer Science , pages 625--635. Springer, 2021. doi:10.1007/978-3-030-79876-5_37 (https://doi.org/10.1007/978-3-030-79876-5_37).DOI
  9. Arthur A. Drisko. On the number of even and odd L atin squares of order p+1p+1. Advances in Mathematics , 128(1):20--35, 1997. doi:10.1006/aima.1997.1623 (https://doi.org/10.1006/aima.1997.1623).DOI
  10. Arthur A. Drisko. Proof of the A lon-- T arsi conjecture for n=2rpn=2^rp. The Electronic Journal of Combinatorics , 5:Research Paper 28, 1998. doi:10.37236/1366 (https://doi.org/10.37236/1366).DOI
Show all 32 referencesShow fewer references
  1. Benjamin Friedman and Sean McGuinness. The A lon-- T arsi conjecture: a perspective on the main results. Discrete Mathematics , 342(8):2234--2253, 2019. doi:10.1016/j.disc.2019.04.018 (https://doi.org/10.1016/j.disc.2019.04.018).DOI
  2. Ira M. Gessel. Counting L atin rectangles. Bulletin of the American Mathematical Society (N.S.) , 16(1):79--82, 1987. doi:10.1090/S0273-0979-1987-15465-6 (https://doi.org/10.1090/S0273-0979-1987-15465-6).DOI
  3. Ira M. Gessel. Enumerative applications of symmetric functions. In Actes du 17e S é minaire Lotharingien de Combinatoire , volume B17a of S é minaire Lotharingien de Combinatoire , pages 5--21. Publ. I.R.M.A. Strasbourg, 1987. URL: https://www.mat.univie.ac.at/~slc/opapers/s17gessel.html.link
  4. Ira M. Gessel. Symmetric functions and P -recursiveness. Journal of Combinatorial Theory, Series A , 53(2):257--285, 1990. doi:10.1016/0097-3165(90)90060-A (https://doi.org/10.1016/0097-3165(90)90060-A).DOI
  5. David G. Glynn. The conjectures of A lon-- T arsi and R ota in dimension prime minus one. SIAM Journal on Discrete Mathematics , 24(2):394--399, 2010. doi:10.1137/090773751 (https://doi.org/10.1137/090773751).DOI
  6. Roger Howe. Remarks on classical invariant theory. Transactions of the American Mathematical Society , 313(2):539--570, 1989. doi:10.1090/S0002-9947-1989-0986027-X (https://doi.org/10.1090/S0002-9947-1989-0986027-X).DOI
  7. Roger Howe and T ō ru Umeda. The C apelli identity, the double commutant theorem, and multiplicity-free actions. Mathematische Annalen , 290(1):565--619, 1991. doi:10.1007/BF01459261 (https://doi.org/10.1007/BF01459261).DOI
  8. Rosa Huang and Gian-Carlo Rota. On the relations of various conjectures on L atin squares and straightening coefficients. Discrete Mathematics , 128(1--3):225--236, 1994. doi:10.1016/0012-365X(94)90114-7 (https://doi.org/10.1016/0012-365X(94)90114-7).DOI
  9. Jeannette C. M. Janssen. On even and odd L atin squares. Journal of Combinatorial Theory, Series A , 69(1):173--181, 1995. doi:10.1016/0097-3165(95)90115-9 (https://doi.org/10.1016/0097-3165(95)90115-9).DOI
  10. Bertram Kostant and Siddhartha Sahi. The C apelli identity, tube domains, and the generalized L aplace transform. Advances in Mathematics , 87(1):71--92, 1991. doi:10.1016/0001-8708(91)90062-C (https://doi.org/10.1016/0001-8708(91)90062-C).DOI
  11. uro Kurepa. On the left factorial function !n!n. Mathematica Balkanica , 1:147--153, 1971.
  12. OEIS Foundation Inc. Sequence A065711 , The On-Line Encyclopedia of Integer Sequences . https://oeis.org/A065711. Accessed 13 October 2026.link
  13. Hubert Rubenthaler and G é rard Schiffmann. Op é rateurs diff é rentiels de S himura et espaces pr é homog è nes. Inventiones Mathematicae , 90(2):409--442, 1987. doi:10.1007/BF01388712 (https://doi.org/10.1007/BF01388712).DOI
  14. Zoran Š ami. On generalization of functions n!n! and !n!n. Publications de l'Institut Math é matique (Beograd) (N.S.) , 60(74):5--14, 1997.
  15. Wilfried Schmid. Die R andwerte holomorpher F unktionen auf hermitesch symmetrischen R ä umen. Inventiones Mathematicae , 9(1):61--80, 1969. doi:10.1007/BF01389889 (https://doi.org/10.1007/BF01389889).DOI
  16. Douglas S. Stones and Ian M. Wanless. Divisors of the number of L atin rectangles. Journal of Combinatorial Theory, Series A , 117(2):204--215, 2010. doi:10.1016/j.jcta.2009.03.019 (https://doi.org/10.1016/j.jcta.2009.03.019).DOI
  17. Douglas S. Stones and Ian M. Wanless. How not to prove the A lon-- T arsi conjecture. Nagoya Mathematical Journal , 205:1--24, 2012. doi:10.1215/00277630-1543769 (https://doi.org/10.1215/00277630-1543769).DOI
  18. The mathlib Community . The L ean mathematical library. In Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and Proofs (CPP 2020) , pages 367--381. ACM, 2020. doi:10.1145/3372885.3373824 (https://doi.org/10.1145/3372885.3373824).DOI
  19. Tatyana van Aardenne-Ehrenfest and Nicolaas G. de Bruijn. Circuits and trees in oriented linear graphs. Simon Stevin , 28:203--217, 1951.
  20. David Vere-Jones. A generalization of permanents and determinants. Linear Algebra and its Applications , 111:119--124, 1988. doi:10.1016/0024-3795(88)90053-5 (https://doi.org/10.1016/0024-3795(88)90053-5).DOI
  21. Ian M. Wanless. Cycle switches in L atin squares. Graphs and Combinatorics , 20(4):545--570, 2004. doi:10.1007/s00373-004-0567-7 (https://doi.org/10.1007/s00373-004-0567-7).DOI
  22. Paolo Zappa. The C ayley determinant of the determinant tensor and the A lon-- T arsi conjecture. Advances in Applied Mathematics , 19(1):31--44, 1997. doi:10.1006/aama.1996.0522 (https://doi.org/10.1006/aama.1996.0522).DOI

Version history

  1. v1 · 38 pagesSubmitted by Nils Juenemann38 pages, 9 figures, 2 tables. The results for the order 26 (Theorem 1.1, Corollary 1.2) and the structural results of Sections 2 to 7 are formalised in Lean 4 with Mathlib and checked by the kernel; sources at https://github.com/totallyunknown/latin-squares-lean (tag alon-tarsi-26-v1). The orders 94 and 118 (Theorem 1.3) are computer-assisted; the computations and their independent checks are described in Section 8 and Appendix B.CurrentNov 28, 2026