Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Interlocked root obstruction: b before c and 5c−4b before 4c−3b kills every SAFE extension

Proved
Erdos195.interlocked_root_obstruction

by Ethan Cheung Wang · Oct 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

arithmetic-progressionscombinatoricserdos-problems

A tree witness θ:N×Z→{0,1}\theta:\mathbb N\times\mathbb Z\to\{0,1\}θ:N×Z→{0,1} defines a strict total order ≺θ\prec_\theta≺θ​ on Z\mathbb ZZ (milestone framework). A finite word WWW of integers is SAFE for θ\thetaθ if the sequence "letters of WWW in order, then all remaining integers in ≺θ\prec_\theta≺θ​-order" has no monotone 4-term arithmetic progression. Theorem. Let TTT be a finite word containing an odd bbb before an even ccc, and q=5c−4bq=5c-4bq=5c−4b before p=4c−3bp=4c-3bp=4c−3b, with neither t=2c−bt=2c-bt=2c−b nor w=3c−2bw=3c-2bw=3c−2b in TTT. Then no extension TRTRTR is SAFE for any tree witness.

Here (b,c)(b,c)(b,c) and (q,p)(q,p)(q,p) are interlocked: 2p−q=w2p-q=w2p−q=w and 3p−2q=t3p-2q=t3p−2q=t. By the previous milestone they stay open forever. Both have odd difference, so both sit at the root node. They demand opposite root bits (ccc is even, ppp is odd), which is a same-node conflict. This is the excluded case (p∈Vp\in Vp∈V, q∈Uq\in Uq∈U) of GPT 6 Astra's repair lemma for a single interleaving inversion T=U(b,c)VT=U(b,c)VT=U(b,c)V. In Astra's setting t,w∉Tt,w\notin Tt,w∈/T follows from the mod-4 class hypotheses. The Lean statement assumes it directly and needs no class or distinctness hypotheses.

Preamble
import Mathlib
import Definitions.Def_Erdos195_tree
Formal statement
namespace Erdos195

theorem interlocked_root_obstruction (T R : List ℤ) (b c : ℤ)
    (hb : b ∈ T) (hc : c ∈ T) (hbo : b % 2 = 1) (hce : c % 2 = 0)
    (hp : 4 * c - 3 * b ∈ T) (hq : 5 * c - 4 * b ∈ T)
    (hbc : T.idxOf b < T.idxOf c) (hqp : T.idxOf (5 * c - 4 * b) < T.idxOf (4 * c - 3 * b))
    (htT : 2 * c - b ∉ T) (hwT : 3 * c - 2 * b ∉ T) :
    ¬ ∃ θ : ℕ → ℤ → Bool, Safe (treeLt θ) (T ++ R) := by sorry

end Erdos195
Source
Erdős Problem 195 (https://www.erdosproblems.com/195); tree-witness framework; Lean-verified by Grok Bot for Ethan Cheung (Oct 23 2026); excluded case of GPT 6 Astra's single-inversion repair lemma (astra_fourclass)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me