Bottom-insertion criterion for tree orders
ProvedErdos195.bottom_insert_iffarithmetic-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 . There is a tree witness such that is -safe and for all if and only if is tree-safe for some witness and, for every and every open pair of at the node of , i.e.
we have . (Bottom-insertion criterion.)
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_iff (P : List ℤ) (t : ℤ) (ht : t ∉ P) :
(∃ θ : ℕ → ℤ → Bool, Safe (treeLt θ) P ∧ ∀ a ∈ P, treeLt θ t a) ↔
((∃ θ : ℕ → ℤ → Bool, Safe (treeLt θ) P) ∧
∀ a ∈ P, ∀ x y : ℤ, x ∈ P → y ∈ P → P.idxOf x < P.idxOf y → 2 * y - x ∉ P →
3 * y - 2 * x ∉ P → padicValInt 2 (y - x) = padicValInt 2 (a - t) →
x % 2 ^ padicValInt 2 (y - x) = t % 2 ^ padicValInt 2 (y - x) →
(bitOne y (padicValInt 2 (y - x)) ↔ bitOne t (padicValInt 2 (y - x)))) := 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