Appending a letter below the whole word in tree order
ProvedErdos195.bottom_insert_safearithmetic-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 . If is -safe, , for every , and whenever precedes in with we have , then
So a letter placed below the whole word in the tail order can be appended once the 3-AP condition holds.
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 bottom_insert_safe (θ : ℕ → ℤ → Bool) (P : List ℤ) (t : ℤ) (hP : Safe (treeLt θ) P)
(ht : t ∉ P) (hbelow : ∀ a ∈ P, treeLt θ t a)
(hap : ∀ a b : ℤ, a ∈ P → b ∈ P → P.idxOf a < P.idxOf b → t = 2 * b - a → 3 * b - 2 * a ∈ P) :
Safe (treeLt θ) (P ++ [t]) := 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