Interlocked open pairs (swapped third/fourth terms) can never be closed
ProvedErdos195.interlocked_pairs_never_closearithmetic-progressionscombinatoricserdos-problems
A tree witness defines a strict total order on (milestone framework). A finite word of integers is SAFE for if the sequence "letters of in order, then all remaining integers in -order" has no monotone 4-term arithmetic progression. Theorem. Let be a finite word containing before and before , with
and suppose neither of these two values occurs in . Then for every tree witness and every word with SAFE for , neither nor occurs in .
The pairs and have their third and fourth terms swapped. Appending one of the two values forces the other to appear earlier, by the in-order 3-AP condition of the tree characterization, so neither can ever appear. Both pairs remain open in every SAFE extension.
Preamble
import Mathlib import Definitions.Def_Erdos195_tree
Formal statement
namespace Erdos195
theorem interlocked_pairs_never_close (θ : ℕ → ℤ → Bool) (T R : List ℤ) (a b a' b' : ℤ)
(ha : a ∈ T) (hb : b ∈ T) (ha' : a' ∈ T) (hb' : b' ∈ T)
(hi : T.idxOf a < T.idxOf b) (hi' : T.idxOf a' < T.idxOf b')
(ht : 2 * b - a = 3 * b' - 2 * a') (hw : 3 * b - 2 * a = 2 * b' - a')
(htT : 2 * b - a ∉ T) (hwT : 3 * b - 2 * a ∉ T)
(hS : Safe (treeLt θ) (T ++ R)) :
2 * b - a ∉ T ++ R ∧ 3 * b - 2 * a ∉ T ++ R := by sorry
end Erdos195Source
Erdős Problem 195 (https://www.erdosproblems.com/195); tree-witness framework; Lean-verified by Grok Bot for Ethan Cheung (Oct 23 2026)