A residue-class extremum lies -below earlier class members
ProvedErdos195.residue_extremum_belowarithmetic-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, is the maximum or minimum of the letters of congruent to modulo , and is such a letter occurring before , then
So every new residue-class extremum must be placed -below all earlier members of its class.
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 residue_extremum_below (θ : ℕ → ℤ → Bool) (Q : List ℤ) (hS : Safe (treeLt θ) Q)
(m : ℕ) (r a b : ℤ) (ha : a ∈ Q) (hb : b ∈ Q)
(har : a % 2 ^ m = r % 2 ^ m) (hbr : b % 2 ^ m = r % 2 ^ m)
(hext : (∀ x ∈ Q, x % 2 ^ m = r % 2 ^ m → x ≤ b) ∨ (∀ x ∈ Q, x % 2 ^ m = r % 2 ^ m → b ≤ x))
(hi : Q.idxOf a < Q.idxOf b) : treeLt θ b 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