Self-banning rows (OEIS A398589): the periodic part replays the opening run n,n+1,…n,\allowbreak n+1,\allowbreak \dots for exactly 22, 33 or 44 terms, according as nn is odd, even but not divisible by 33, or divisible by 66 (all n≥3n \ge 3 except n=12n = 12)

Visual overview from the paper. Full size
Edition 3 · On this site since · Verify & co-author
Kind
Theorem (Lean 4 proof and exact computational checks)
Status
Proved and verified in Lean 4 (27 of 27 main results, 43 audited declarations, zero sorry, zero native_decide, standard axioms only); unrefereed
Headline in Lean
Unconditionally proved in Lean 4 (27/27 main results in pure-kernel Lean 4 across `lean/SelfBanningRowsOpeningRunDeparture/`, 43 audited declarations, zero sorry, zero native_decide, standard axioms only).
Lean share
27 of 27 main results in Lean (100%) · 7 of 7 abstract claims (100%) · 30 of 30 all paper claims (100%)
Preprint DOI
10.5281/zenodo.24733079 (Zenodo / CERN preprint, v3: 10.5281/zenodo.24733080)
Prior work
Not found in the searches logged; credited prior work includes J. B. Weinstein, Self-banning irregular triangle, OEIS entry A398589 (rev. 33, Sep 27 2026)
On this page
  1. The statement
  2. Check it yourself
  3. Status and who checked it
  4. Prior work
  5. Further reading

The statement

Row n≥1n \ge 1 of OEIS A398589 starts at an(0)=na_n(0) = n and for t≥1t \ge 1 takes the least integer v≥nv \ge n absent from the preceding vv terms. Every row satisfies an(t)≤(n+1)2a_n(t) \le (n+1)^2 and is eventually periodic, with purely periodic rows n=1n = 1 (least period 44) and n=2n = 2 (least period 3636). We prove that for every n≥3n \ge 3 and every aligned periodic multiple QQ, an(Q+i)=n+ia_n(Q + i) = n + i holds for i<s0(n)i < s_0(n) and fails at s0(n)s_0(n), where s0(12)=5s_0(12) = 5, and for n≠12n \ne 12, s0(n)=min⁡(m(n),4)s_0(n) = \min(m(n),\allowbreak 4) equals 22 (nn odd), 33 (even 3∤n3 \nmid n), or 44 (6∣n6 \mid n). The proof builds pure-periodic four-symbol clocks and eliminates late recurrence via backward chains. All 30 of 30 compared theorems are verified in pure Lean 4 without Mathlib, confirmed across 1010 full rows (3≤n≤123 \le n \le 12) and 3434 projected rows (n≤36n \le 36). AI systems produced the proof and formalization; no human has refereed it.

Check it yourself

  • Replay from the archive: the downloadable archive (checker.zip) holds the script papers/self-banning-rows-opening-run-departure/draft3/compute.py, but it was not run to completion from the archive alone: it stopped with an error. To check the Lean proofs, build lean/SelfBanningRowsOpeningRunDeparture/ in Lean 4.
  • Lean 4 kernel verification: the archive contains the Lean 4 sources (lean/SelfBanningRowsOpeningRunDeparture/), axiom audit output, and trust-boundary manifest linking every paper claim to its Lean declaration.

Status and who checked it

  • Verified in Lean 4. Verified unconditionally in Lean 4 (43 audited declarations, zero sorry, zero native_decide, standard axioms only, library lean/SelfBanningRowsOpeningRunDeparture/): 27 of 27 main results proved in the pure Lean kernel.
  • Unrefereed. All automated manuscript, citation, and statement-fidelity checks passed on the 9-page preprint. No human mathematician has yet refereed the proof.

Prior work

Searches run. Prior-work searches and full-text citation checks were logged alongside the preprint. The result was not found in the searches logged.

Credited. J. B. Weinstein, Self-banning irregular triangle, OEIS entry A398589 (rev. 33, Sep 27 2026); J. B. Weinstein, Row 2 of the self-banning triangle, OEIS entry A399708 (rev. 15, Sep 15 2026); J. B. Weinstein, Row 3 of the self-banning triangle, OEIS entry A399709 (rev. 10, Sep 15 2026); R. Cestnik, Repeat [1,2,1,3], OEIS entry A364447 (rev. 44, Sep 10 2026); J. Shallit, Least non-divisor of n, OEIS entry A007978 (rev. 67, Oct 19 2026); W. Goddard and H. Xu, The S-packing chromatic number of a graph, Discuss. Math. Graph Theory 32 (2012), 795–806; B. Brešar, J. Ferme, S. Klavžar and D. F. Rall, A survey on packing colorings, Discuss. Math. Graph Theory 40 (2020), 923–970; D. Gözüpek and I. Peterin, Grundy packing coloring of graphs, arXiv:2409.00697v2 (2024).

Still owed. MathSciNet, zbMATH, books in print, and paywalled journal articles not reachable in open-access full text.

Further reading

  • J. B. Weinstein, Self-banning irregular triangle, OEIS entry A398589 (rev. 33, Sep 27 2026)
  • J. B. Weinstein, Row 2 of the self-banning triangle, OEIS entry A399708 (rev. 15, Sep 15 2026)
  • J. B. Weinstein, Row 3 of the self-banning triangle, OEIS entry A399709 (rev. 10, Sep 15 2026)
  • R. Cestnik, Repeat [1,2,1,3], OEIS entry A364447 (rev. 44, Sep 10 2026)
  • J. Shallit, Least non-divisor of n, OEIS entry A007978 (rev. 67, Oct 19 2026)
  • W. Goddard and H. Xu, The S-packing chromatic number of a graph, Discuss. Math. Graph Theory 32 (2012), 795–806
  • B. Brešar, J. Ferme, S. Klavžar and D. F. Rall, A survey on packing colorings, Discuss. Math. Graph Theory 40 (2020), 923–970
  • D. Gözüpek and I. Peterin, Grundy packing coloring of graphs, arXiv:2409.00697v2 (2024)
  • levzzz5154, open-problems-lean, module SelfBanning (commit 5fac952e5e)
  • The Omega Institute, trureturing, pull request 11864: Prove eventual periodicity of every OEIS A398589 row (merged 2026-10-01)
  • L. de Moura and S. Ullrich, The Lean 4 theorem prover and programming language, Lecture Notes in Comput. Sci. 12699 (CADE-28), Springer (2021), 625–635
Short

Watch on YouTube ↗