Balanced-Sequence Repetition Threshold Refutation: Exact RTB(7) = 6/5, RTB(9) = 8/7, and RTB(10) = 9/8

Visual overview from the paper. Full size
Edition 1 · On this site since · Verify & co-author
Kind
Theorem (Lean 4 formal proof and exact-arithmetic witness replay)
Status
Proved and Lean-verified in Lean 4 + Mathlib (193 declarations across 13 files, 8,739 lines, zero sorry, zero native_decide, standard axioms only) covering all 6 main results and all 18 numbered statements; unrefereed
Lean share
6 of 6 main results (18 of 18 numbered statements in Lean 4) in Lean (100%); 0 outside Lean; cases d = 5, 6, 8 and d >= 11 are not addressed
Registry
PALOMAR-2026-11-25-000004 (Palomar Registry, v1, mechanical Lean check and automated editorial review)
Prior work
Refutes three of six values listed as established in Rampersad, Shallit and Vandomme (2019) and Dvořáková, Pelantová, Opočeňská and Shur (2022); 6 of 7 prior-work search logs pass (1 incomplete), so no completeness claim is made
On this page
  1. The statement
  2. Check it yourself
  3. Worked examples
  4. Status and who checked it
  5. Prior work
  6. Further reading

The statement

An infinite word w ⁣:N→{0,1,…,d−1}w \colon \mathbb{N} \to \{0,\allowbreak 1,\allowbreak \dots,\allowbreak d-1\} over a dd-letter alphabet is balanced if any two factors of equal length contain each letter a number of times differing by at most 1. Its critical exponent E(w)E(w) is the supremum of L/pL/p over all factors of length LL having period pp. The repetition threshold for balanced words is

RTB(d)=inf⁡{ E(w):w ⁣:N→{0,…,d−1} balanced },\mathrm{RTB}(d) = \inf \{\, E(w) : w \colon \mathbb{N} \to \{0, \dots, d-1\} \text{ balanced} \,\},

and RTB∗(d)\mathrm{RTB}^*(d) is the same infimum restricted to balanced words in which all dd letters occur.

Rampersad, Shallit and Vandomme (2019) constructed balanced words xkx_k for 3≤k≤103 \le k \le 10 with E(xk)=(k−2)/(k−3)E(x_k) = (k - 2)/(k - 3) for k≥5k \ge 5, and wrote that backtracking searches for 5≤k≤95 \le k \le 9 showed this would be the least possible critical exponent. Subsequent papers (including Dvořáková, Pelantová, Opočeňská and Shur 2022, which proved RTB(d)=(d−1)/(d−2)\mathrm{RTB}(d) = (d - 1)/(d - 2) for d=11d = 11 and even d≥12d \ge 12) listed RTB(d)=(d−2)/(d−3)\mathrm{RTB}(d) = (d - 2)/(d - 3) as known for d∈{5,6,7,8,9,10}d \in \{5,\allowbreak 6,\allowbreak 7,\allowbreak 8,\allowbreak 9,\allowbreak 10\}.

Theorem. For d∈{7,9,10}d \in \{7,\allowbreak 9,\allowbreak 10\}, the threshold equals (d−1)/(d−2)(d - 1)/(d - 2) and is strictly below the listed value:

  • RTB(7)=RTB∗(7)=6/5<5/4\mathrm{RTB}(7) = \mathrm{RTB}^*(7) = 6/5 < 5/4, attained by an explicit balanced word v7v_7;
  • RTB(9)=RTB∗(9)=8/7<7/6\mathrm{RTB}(9) = \mathrm{RTB}^*(9) = 8/7 < 7/6, attained by an explicit balanced word v9v_9;
  • RTB(10)=RTB∗(10)=9/8<8/7\mathrm{RTB}(10) = \mathrm{RTB}^*(10) = 9/8 < 8/7, attained by an explicit balanced word v10v_{10}.
dd Listed, (d−2)/(d−3)(d-2)/(d-3) Proved here Status
5 3/2 not re-examined calibration tree matches length 44 (5 words)
6 4/3 not re-examined outside scope
7 5/4 6/5 refuted (6/5<5/46/5 < 5/4, attained by v7v_7)
8 6/5 not re-examined outside scope
9 7/6 8/7 refuted (8/7<7/68/7 < 7/6, attained by v9v_9)
10 8/7 9/8 refuted (9/8<8/79/8 < 8/7, attained by v10v_{10})

The lower bound E(w)≥(d−1)/(d−2)E(w) \ge (d - 1)/(d - 2) is already in print (Dvořáková, Pelantová, Opočeňská and Shur 2022, Theorem 13 and footnote 3); our contribution on the lower-bound side is an independent finite-tree proof checked inside the Lean 4 kernel. What fails in the literature is the minimality of x7x_7, x9x_9, and x10x_{10}: their printed values E(xk)=(k−2)/(k−3)E(x_k) = (k - 2)/(k - 3) are not contradicted, and our control replay reproduces E(x7)=5/4E(x_7) = 5/4 at period 4.

Check it yourself

Each witness vd=colour(uαd,yd,yd′)v_d = \mathrm{colour}(u_{\alpha_d},\allowbreak y_d,\allowbreak y'_d) replaces the successive a\mathtt{a} letters of the Sturmian word uαd(n)=⌊(n+2)αd⌋−⌊(n+1)αd⌋u_{\alpha_d}(n) = \lfloor (n+2)\alpha_d \rfloor - \lfloor (n+1)\alpha_d \rfloor by the periodic word ydy_d and the successive b\mathtt{b} letters by yd′y'_d:

dd Slope αd\alpha_d Continued fraction ydy_d yd′y'_d Attaining factor
7 (11−10)/37(11 - \sqrt{10})/37 [0;4,1,2,1,1‾][0; 4,\allowbreak 1,\allowbreak \overline{2, 1, 1}] (5 6)ω(5\,6)^\omega (0 1 2 3 0 4 2 1 0 3 2 4)ω(0\,1\,2\,3\,0\,4\,2\,1\,0\,3\,2\,4)^\omega 0 1 2 5 3 0 at index 0 (L=6,p=5L = 6,\allowbreak p = 5)
9 (41−22)/239(41 - 2\sqrt{2})/239 [0;6,3,1,4‾][0; 6,\allowbreak 3,\allowbreak \overline{1, 4}] (0 1)ω(0\,1)^\omega (2 5 3 6 4 7 2 8 3 5 4 6 2 7 3 8 4 5 2 6 3 7 4 8)ω(2\,5\,3\,6\,4\,7\,2\,8\,3\,5\,4\,6\,2\,7\,3\,8\,4\,5\,2\,6\,3\,7\,4\,8)^\omega 2 5 3 6 4 0 7 2 at index 0 (L=8,p=7L = 8,\allowbreak p = 7)
10 (7+5)/22(7 + \sqrt{5})/22 [0;2,2,1‾][0; 2,\allowbreak 2,\allowbreak \overline{1}] (0 1 2 3 4)ω(0\,1\,2\,3\,4)^\omega (5 6 7 8 9)ω(5\,6\,7\,8\,9)^\omega 7 8 2 9 3 5 4 6 7 at index 4 (L=9,p=8L = 9,\allowbreak p = 8)
  • Initial 16 letters: v7v_7 begins 0 1 2 5 3 0 4 2 6 1 0 3 2 5 4 0, v9v_9 begins 2 5 3 6 4 0 7 2 8 3 5 1 4 6 2 7, and v10v_{10} begins 5 0 6 1 7 8 2 9 3 5 4 6 7 0 8 1.
  • Constant gaps give balance: every letter occurs in exactly one of yd,yd′y_d,\allowbreak y'_d with a constant spacing (gaps 2, 4, 6 for d=7d = 7; 2, 6, 8 for d=9d = 9; and 5 for d=10d = 10). Because every window of length LL in a Sturmian word contains MM or M+1M + 1 copies of a\mathtt{a}, each letter count varies by at most 1 across all windows of equal length.
  • Exact lower-bound trees: renaming letters by earliest appearance, the tree TdT_d of finite balanced words keeping every factor exponent strictly below (d−1)/(d−2)(d-1)/(d-2) terminates at length 38 for d=7d = 7 (454 non-empty words, 69 leaves, 10 longest words, 905 certificate nodes), length 57 for d=9d = 9 (1,473 words, 235 leaves, 5 longest words, 2,941 certificate nodes), and length 75 for d=10d = 10 (2,437 words, 426 leaves, 2 longest words, 4,868 certificate nodes).
  • Replay from the archive: unpack the checker ZIP and run python3 recompute.py to rebuild all three trees, confirm the Baranwal–Shallit d=5d = 5 calibration (longest length 44, 5 words), verify the x7x_7 control slope (44+10)/107(44 + \sqrt{10})/107 gives exponent 5/45/4 at p=4p = 4, and scan v7,v9,v10v_7,\allowbreak v_9,\allowbreak v_{10} through period 600 across 20,000 letters.

Worked examples

Figure 1. The initial 32 letters of v7v_7: top row is the Sturmian word uα7u_{\alpha_7} with α7=(11−10)/37\alpha_7 = (11 - \sqrt{10})/37; bottom row is the colouring v7v_7, with letters 5 and 6 placed on the a\mathtt{a} positions. The bracket marks the attaining factor 0 1 2 5 3 0 of length 6 and period 5 (exponent 6/5).Full size
Figure 2. Word counts by length in the finite trees T7T_7, T9T_9, and T10T_{10} of balanced words avoiding exponent (d−1)/(d−2)(d-1)/(d-2). The trees die out at lengths 38, 57, and 75, proving E(w)≥6/5E(w) \ge 6/5, 8/78/7, and 9/89/8 unconditionally.Full size

How the upper-bound proof works. A factor of length LL and period pp corresponds to a matching run of length r=L−pr = L - p at distance pp, so E(vd)≤(d−1)/(d−2)E(v_d) \le (d - 1)/(d - 2) reduces to proving (d−2)r≤p(d - 2)r \le p for every distance p≥1p \ge 1. Small distances (p<20p < 20 for d=7d = 7, p<42p < 42 for d=9d = 9, p<16p < 16 for d=10d = 10) are checked over all Sturmian factors of lengths 23, 47, and 17 derived from rational enclosures of αd\alpha_d (211/1000<α7<212/1000211/1000 < \alpha_7 < 212/1000, 1597/10000<α9<1598/100001597/10000 < \alpha_9 < 1598/10000, 419/1000<α10<420/1000419/1000 < \alpha_{10} < 420/1000). Large distances use a three-gap bound on the rotation by αd\alpha_d: because each αd\alpha_d is a quadratic irrational, its continued fraction is eventually periodic (periods 3, 2, and 1) and the convergent residues modulo the colouring periods are eventually periodic (periods 12, 8, and 20), reducing all p≥Pdp \ge P_d to finitely many residue classes verified inside the Lean 4 kernel.

Status and who checked it

  • Verified in Lean 4 + Mathlib (100% of main results and numbered statements): All 6 main results (Theorems 1–3 and Corollaries 1–3) and all 18 numbered statements in the preprint (including strict all-letter thresholds RTB∗(d)\mathrm{RTB}^*(d), all three lower-bound trees split into 19, 82, and 169 decide evaluations, balance, and every-period upper bounds) are proved unconditionally in BalancedRepetitionThreshold (193 public declarations across 13 files, 8,739 lines, zero sorry, zero native_decide, standard axioms propext, Classical.choice, and Quot.sound only; 4 declarations use no axioms).
  • Independent checks: recompute.py independently rebuilds all three lower-bound trees, verifies the Baranwal–Shallit d=5d = 5 calibration, replays the x7x_7 slope control, and scans v7,v9,v10v_7,\allowbreak v_9,\allowbreak v_{10} over p≤600p \le 600 in 20,000 letters (an earlier evidence scan checked periods up to 3,000 across 1,000,000 letters).
  • Scope limits: The cases d=5,6,8d = 5,\allowbreak 6,\allowbreak 8 and d≥11d \ge 11 are not addressed here. In particular, whether RTB(6)=4/3\mathrm{RTB}(6) = 4/3 and RTB(8)=6/5\mathrm{RTB}(8) = 6/5 hold (their published lower bounds trace back to the same backtracking searches as d=7d = 7 and d=9d = 9) remains open to check.
  • 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

Published colourings reused. For d=7d = 7 and d=9d = 9, the periodic colouring words yd,yd′y_d,\allowbreak y'_d are those of x7x_7 and x9x_9 in Table 1 of Rampersad, Shallit and Vandomme (2019) up to renaming letters; only the Sturmian slope αd\alpha_d changes. For d=10d = 10, the colouring (0 1 2 3 4)ω(0\,1\,2\,3\,4)^\omega / (5 6 7 8 9)ω(5\,6\,7\,8\,9)^\omega has the shape of Theorem 19 of Dvořáková, Pelantová, Opočeňská and Shur (2022) at parameter δ=5\delta = 5, outside that theorem's range δ≥7\delta \ge 7.

Searches run. Seven prior-work search logs were recorded across arXiv, Google Scholar, CORE, OpenAlex, Semantic Scholar, zbMATH, OEIS, and mathematics Q&A archives; 6 of 7 logs pass the checker, while 1 log lacks Google Scholar and CORE queries, so we make no completeness claim about whether these values appear elsewhere. The arXiv versions of Rampersad, Shallit and Vandomme (2019) and Dvořáková, Pelantová, Opočeňská and Shur (2022) were read in full; the other cited sources were read in part ([to check]).

Still owed: Journal and conference-proceedings versions of the cited papers, author theses, books, and full-text readings of Baranwal and Shallit (2019), Dolce, Dvořáková and Pelantová (2022), Dvořáková, Opočeňská and Pelantová (2022), Dvořáková and Pelantová (2022, 2023), and Hubert (2000).

Further reading