Isolated-minimum completion: appending the fourth term
ProvedErdos195.isolated_min_completionarithmetic-progressionscombinatoricserdos-problems
Tree orders: for a tree witness and distinct integers with , iff . A finite word is -safe if " in order, then all other integers in -order" has no monotone -term arithmetic progression. An in-order pair before in is open if . Let be -safe, with , , . Suppose is the -minimum of , is the only letter of in its class modulo , and for all before in . Let agree with except at the node , where . Then
This is an extremal completion lemma: the fourth term of a pair ending at an isolated minimum can always be appended.
Formalization note: treeLt is from Definitions.Def_Erdos195_tree; Safe, bitOne from Definitions.Def_Erdos195_defs; positions are List.idxOf, is padicValInt 2.
Preamble
import Mathlib import Definitions.Def_Erdos195_tree
Formal statement
namespace Erdos195
theorem isolated_min_completion (θ : ℕ → ℤ → Bool) (P : List ℤ) (a b : ℤ)
(hP : Safe (treeLt θ) P) (hb : b ∈ P) (hab : a ≠ b)
(hmin : ∀ x ∈ P, x ≠ b → treeLt θ b x)
(hiso : ∀ x ∈ P, x ≠ b → ¬ (2 : ℤ) ^ (padicValInt 2 (b - a) + 1) ∣ x - b)
(hno : ∀ u v : ℤ, u ∈ P → v ∈ P → P.idxOf u < P.idxOf v → 3 * b - 2 * a ≠ 2 * v - u) :
Safe (treeLt (fun k r => if k = padicValInt 2 (b - a) + 1 ∧ r = b % 2 ^ (padicValInt 2 (b - a) + 1)
then decide ((3 * b - 2 * a) / 2 ^ (padicValInt 2 (b - a) + 1) % 2 = 1) else θ k r))
(P ++ [3 * b - 2 * a]) := by sorry
end Erdos195Source
Erdős Problem 195 (https://www.erdosproblems.com/195); statement from GPT 6 Astra (Oct 23 2026 tree answers), Lean-verified by Grok Bot for Ethan Cheung