Exterior records can be appended as the new tree-order minimum
ProvedErdos195.exterior_recordarithmetic-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; it is tree-safe if it is -safe for some . An in-order pair before in is open if . Let . Let be -safe, larger than every (), the -minimum of , and with for all before in . Let equal except . Then
(Exterior records: a new letter in a fresh residue class at level can be appended as the new minimum.)
Formalization note: treeLt is from Definitions.Def_Erdos195_tree; Safe, bitOne from Definitions.Def_Erdos195_defs; positions are List.idxOf, is padicValInt 2, L <+: Q means is a prefix of .
Preamble
import Mathlib import Definitions.Def_Erdos195_tree
Formal statement
namespace Erdos195
theorem exterior_record (θ : ℕ → ℤ → Bool) (P : List ℤ) (hP : Safe (treeLt θ) P) (K : ℕ)
(hK : ∀ a ∈ P, ∀ b ∈ P, a ≠ b → padicValInt 2 (b - a) < K) (p : ℤ) (hp : p ∈ P)
(hmin : ∀ a ∈ P, a ≠ p → treeLt θ p a) (w : ℤ)
(hw : w % 2 ^ (K + 1) = (p + 2 ^ K) % 2 ^ (K + 1))
(hw2 : ∀ a b : ℤ, a ∈ P → b ∈ P → P.idxOf a < P.idxOf b → w ≠ 2 * b - a) :
Safe (treeLt (fun k r => if k = K ∧ r = p % 2 ^ K then !decide (p / 2 ^ K % 2 = 1) else θ k r))
(P ++ [w]) ∧
∀ a ∈ P, treeLt (fun k r => if k = K ∧ r = p % 2 ^ K then !decide (p / 2 ^ K % 2 = 1)
else θ k r) w 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