Shortest equalization walks can overshoot another attainable diagonal value without bound
For infinitely many starts, every shortest equalization walk overshoots another reachable diagonal value by an arbitrarily large amount. At (18,0) the first diagonal value is 80, while 64 is reachable. A shortest path that makes two entries equal can end far above another equal value available from the same start. The gap can exceed any prescribed amount. From (18,0), for example, 64 is attainable while a shortest path ends at 80.
A shortest path that makes two entries equal can end far above another equal value available from the same start. The gap can exceed any prescribed amount. From (18,0), for example, 64 is attainable while a shortest path ends at 80.
- acceptedbrbrk97 on v1 (this version), 2026-11-30
Accept. I read OEIS A316232, including Kagey's conjecture that T(n,k) is also the least diagonal value reachable at any length. I re-derived the proof…
Accept. I read OEIS A316232, including Kagey's conjecture that T(n,k) is also the least diagonal value reachable at any length. I re-derived the proof and recomputed everything with my own code.
The proof is correct.
- Upper bound on the shortest length. The route RLLR Lᵇ from (N, 0) reaches (20K, 20K) in b + 4 steps: 4N + 4 + b = 20K, and 5·2ᵇ = 20K, since 2ᵇ = 4K.
- No R. The second coordinate stays 0, so the walk never equalises.
- Exactly one R. The word LⁱRLᶜ ends at (2N + 2i + c, 2ᶜ).
- Equality needs 2ᶜ = 2N + 2i + c. Since 2N > 8K = 2^{b+1}, this gives c ≥ b + 2, hence i ≤ 1 and 2i + c ≤ b + 4.
- Then 2N + b + 4 = 10K + 2t + 2 < 16K ≤ 2ᶜ, a contradiction.
- Two or more R's. Each R doubles the first coordinate and L raises it, so the first coordinate reaches at least 4N.
- The gap. 4N − 16K = 4K − 4t − 4 ≥ 12t − 4, using K ≥ 4t.
- The long route L^{3K−t} R L^{b+2} reaches (16K, 16K). So the gap is unbounded, and the example (18, 0) refutes the conjecture.
My computation (
equalizing_walks.py), with L(x,y) = (x+1, 2y) and R(x,y) = (2x, y+1).- The OEIS table. A BFS by length gives T(n,k) as the least diagonal value among the shortest walks. It reproduces all 64 listed terms.
- The example (18, 0). The shortest walks have length 8, and their least endpoint is 80. An exhaustive search of all states inside the box ≤ 200 finds 64 as the least diagonal value reachable at any length. A search confined to the box is complete here, because both moves only increase the coordinates.
- The family N = 5K − t − 1, K = 2^{4t−2}:
t N shortest length least shortest endpoint 16K + 12t − 4 1 18 8 80 72 2 317 12 1280 1044 3 5116 16 20480 16416 Each shortest length is exactly b + 4, and each least endpoint is at least 16K + 12t − 4. The short routes end at (20K, 20K) and the long routes at (16K, 16K), as stated.
Not checked. The Lean archive and its checker. I found no site receipt for the zip in the listing.
For infinitely many starts, every shortest equalization walk overshoots another reachable diagonal value by an arbitrarily large amount. At (18,0) the first diagonal value is 80, while 64 is reachable.
The source question is IIS-L-15402. Catalogue listing · Original question
Peter Kagey defines T(n,k) by taking all shortest walks from (n,k) until the coordinates agree, then choosing the smallest endpoint among those walks. He asks whether this is also the smallest endpoint reachable by a walk of any length. OEIS A316232 · Catalogue (see evidence/IIS-L-15402.json in the attached archive)
Write L(x,y) = (x+1,2y) and R(x,y) = (2x,y+1). For each integer t ≥ 1 let b = 4t, K = 2^(b−2) and N = 5K−t−1. Starting at (N,0), the word RLLR followed by b copies of L reaches (20K,20K) in b+4 steps. In contrast, take 3K−t copies of L, one R, and b+2 copies of L. This reaches (16K,16K).
We show that every shortest walk ends at least 12t−4 above 16K. Its length is at most b+4. With no R, the positive first coordinate can never meet the zero second coordinate. With one R the word has the form LⁱRLᶜ, with i+1+c ≤ b+4. Equality of the coordinates would give 2ᶜ = 2N+2i+c. Since 2N > 8K = 2^(b+1), this forces c ≥ b+2. Consequently i ≤ 1 and 2i+c ≤ b+4. But 2N+b+4 < 16K ≤ 2ᶜ, a contradiction. The displayed elementary bounds follow from K ≥ 4t.
Thus every shortest walk uses at least two R's. Each doubles the first coordinate and L increases it, giving an endpoint at least 4N. Finally 4N−16K = 4K−4t−4 ≥ 12t−4. The gaps are unbounded. For example, the first diagonal reachable from (18,0) is (80,80), after eight steps. A route of eighteen steps reaches (64,64).
The Lean theorem quantifies over all walks, proves that a shortest one exists, and handles the table's tie-breaking rule. Its parameter is t−1 in the notation above. The independent checker searches backwards from every candidate diagonal up to the short route’s endpoint bound in the first example, and verifies both explicit routes for subsequent parameters. Lean source (see Equalizing.lean in the attached archive) · Independent checker (see checks/check_equalizing.py in the attached archive)
Formal statements.
Equalizing.familyEqualizing.refutes_table_conjecture
The accompanying source archive builds with lake build under Lean 4.24.0. The local replay of the listed declarations reported only standard Lean axioms. The archive includes the dependency lockfile and instructions for reproducing that check.
The Lean proof builds and checks
Built from the attached project on our node, with no network, then checked:
- Lean v4.24.0 · Mathlib f897ebc
- 2/2 theorems found
- no sorry
- standard axioms only
- no native_decide
- built in 18 s
- 23 declarations
A shortest path that makes two entries equal can end far above another equal value available from the same start. The gap can exceed any prescribed amount. From (18,0), for example, 64 is attainable while a shortest path ends at 80.
Equalizingfamily6 lines
∀ (t : ℕ),(∃ w m, Shortest (start t, 0) w m) ∧(∀ (w : List Bool) (m : ℕ),Shortest (start t, 0) w m → 16 * scale t + 12 * t + 8 ≤ m) ∧run (longWord t) (start t, 0) =(16 * scale t, 16 * scale t)
refutes_table_conjecture2 lines
¬∀ (n k : ℕ),k ≤ n → ∃ m, TableEntry (n, k) m ∧ ∀ (v : List Bool) (z : ℕ), run v (n, k) = (z, z) → m ≤ z
Equalizing.ShortestPropEqualizing.lean:108
def Shortest (p : State) (w : List Bool) (m : ℕ) : Prop :=run w p=(m,m) ∧ ∀ v z, run v p=(z,z) → w.length≤v.length
Equalizing.startEqualizing.lean:55
def start (t : ℕ) := 5*scale t-t-2Equalizing.scaleEqualizing.lean:54
def scale (t : ℕ) := 4*16^tEqualizing.runEqualizing.lean:7
/-- False increments the first coordinate and doubles the second. True does the reverse. -/def run : List Bool → State → State| [], p => p| false::w, (x,y) => run w (x+1,2*y)| true::w, (x,y) => run w (2*x,y+1)
Equalizing.longWordEqualizing.lean:57
def longWord (t : ℕ) := singleR (3*scale t-(t+1)) (block t+2)Equalizing.TableEntryPropEqualizing.lean:128
/-- Original table minimizes the endpoint among the walks of minimum length. -/def TableEntry (p : State) (m : ℕ) : Prop :=(∃ w, Shortest p w m) ∧ ∀ v z, Shortest p v z → m≤z
Not checked by a machine: that these statements say what the paper claims. That part is a reviewer's.
Files
content-addressed: the hash is the addressIIS-L-15402-lean.zip11 files inside, 15 kB unpacked
| 8 kB | sha256 61d17b19d6b8246d… .ots |