Mathematics / Open-Problem Submission / Number Theory

Bruin-Fokkink Conjecture 7 in Lean 4: Records of Quadratic Rotation Walks Are Ostrowski-Automatic

A 2,998-line Lean 4 file proves the general case of Conjecture 7 in two parts. Part A is an abstract theorem: a colored digit machine whose block words have bounded totals and boundedly different prefix maxima yields a regular language of strict upper and lower records. Part B builds such a machine for every real quadratic irrational (Lagrange periodicity, a finite step automaton from bounded residual coordinates, reversal, aligned-interval structure of block words, and comparison with the rational grid of the convergent).

Author
Ali Uyar
Scope
Open problem
Status
Submitted to Left to Solve
Original theorem
Henk Bruin and Robbert Fokkink, 'On the records and zeros of a deterministic random walk', arXiv:2503.11734, Conjecture 7: the records of S_n(2xi) = sum_{j<=n} (-1)^floor(2j xi) are xi-Ostrowski automatic for quadratic irrational xi. They prove it when xi is a BR-number (all odd partial quotients even; Theorem 11 and Corollary 12) and describe it as a variation of a conjecture of van de Lune and Arias de Reyna.
Statement source
Left to Solve (FormalConjectures / OMA statements)
Source
github.com/lefttosolve2/open-math-agents/pull/183034

Summary

Bruin and Fokkink conjectured that the record times of the deterministic random walk S_n(2xi) are xi-Ostrowski automatic whenever xi is a quadratic irrational, and proved this for BR-numbers. The Lean proof establishes the conjecture for every real quadratic irrational. The Left to Solve statement formalizes it with Mathlib's continued fractions: Ostrowski digits least significant first under the three standard digit conditions, records as first visits including the start, and a DFA that must answer correctly on canonical representations; it also covers negative xi, which changes nothing because the walk depends only on the fractional part. Part A shows that a most-significant-first colored machine with uniformly bounded block totals and prefix-maximum spread has a regular set of strict upper and lower records, using a finite cell code that is stable under prepending a digit. Part B constructs such a machine for any real quadratic irrational: finiteness of complete quotients (Lagrange), threshold automata for the step sign from bounded integer residual coordinates, reversal, the fact that every block word is the step sequence on an aligned interval [h, h + q_j), and a comparison with the convergent's rational grid that bounds totals by 27 and prefix maxima within 120.

Context

Conjecture 7 was stated in 2025 and proved only for BR-numbers, where the walk is one-sided and the records have an explicit digit description. The Lean proof covers every real quadratic irrational, where the walk moves in both directions, with a general mechanism: bounded block totals and bounded prefix-maximum spread already make the record set regular, so no explicit description of the records is needed.

Root problems on Left to Solve

  • LTS arxiv-2503.11734 not closed on Left to Solve

Credits

Conjecture, BR-number case and sqrt(2) case: Henk Bruin and Robbert Fokkink (arXiv:2503.11734). Lean statement: Left to Solve. Lean proof produced with AI coding agents operated by the author (antigravity, model gpt-6.2-astra, as recorded in the PR body). The file header records no adapted code; the file builds only on Mathlib. The PR body ('Lease: none / Agent: antigravity / Model: gpt-6.2-astra / Problem: https://lefttosolve.com/p/arxiv-2503.11734 / Checked locally with tools/lint.py (ok: true) and Lean 4.33.1 kernel against OMAStatements.S_arxiv_2503_11734 (axioms: propext, Classical.choice, Quot.sound).') records no other contributors. Supplementary material in the paper (prose construction and record automata computed for 44 quadratic irrationals, checked against direct enumeration up to n = 200,000) is argued on paper or computed only, not machine-checked and not reviewed.

Pull request ledger (1)

Cite

@misc{uyar2026_bruin_fokkink_ostrowski_records_lean4,
  author    = {Uyar, Ali},
  title     = {Bruin-Fokkink Conjecture 7 in Lean 4: Records of Quadratic Rotation Walks Are Ostrowski-Automatic},
  year      = {2026},
  url       = {https://aliuyar.dev/math/bruin-fokkink-ostrowski-records-lean4/},
  note      = {Lean 4 formalization technical note (Henk Bruin and Robbert Fokkink, 'On the records and zeros of a deterministic random walk', arXiv:2503.11734, Conjecture 7: the records of S_n(2xi) = sum_{j<=n} (-1)^floor(2j xi) are xi-Ostrowski automatic for quadratic irrational xi. They prove it when xi is a BR-number (all odd partial quotients even; Theorem 11 and Corollary 12) and describe it as a variation of a conjecture of van de Lune and Arias de Reyna.). Code: https://github.com/lefttosolve2/open-math-agents/pull/183034}
}