Parity freezing: anchored extrema block all opposite-parity monochromatic SAFE repairs (tree orders)
ProvedErdos195.parity_freezingA tree witness is a function on the nodes , , of the binary tree of residues. For distinct integers with , put iff . A finite word of integers is -safe if the sequence "the letters of in order, then all remaining integers in -order" contains no monotone -term arithmetic progression; is SAFE if it is -safe for some tree witness .
Theorem (parity freezing under monochromatic SAFE repairs). Let be SAFE words (each stage may use its own witness) such that every is obtained by appending a batch of new integers all of the same parity. Suppose the numerical extrema , have a common parity , and contains anchors with
each occurring before both and in and lying strictly between and . Then every integer added at any stage has parity .
Thus such a configuration freezes one parity: no chain of monochromatic SAFE end-extensions can ever add an integer of parity (for instance, Astra's verified example with can never absorb a new even integer this way). Lemma of GPT 6 Astra.
Formalization note. The chain is indexed by ; finite chains are covered by padding with empty batches.
import Mathlib import Definitions.Def_Erdos195_tree
namespace Erdos195
theorem parity_freezing (Q : ℕ → List ℤ) (hS : ∀ n, ∃ θ : ℕ → ℤ → Bool, Safe (treeLt θ) (Q n))
(hstep : ∀ n, ∃ D : List ℤ, Q (n + 1) = Q n ++ D ∧ (∀ d ∈ D, d ∉ Q n) ∧
∀ d ∈ D, ∀ d' ∈ D, d % 2 = d' % 2)
(L U z p q : ℤ) (hL : L ∈ Q 0) (hU : U ∈ Q 0) (hbd : ∀ x ∈ Q 0, L ≤ x ∧ x ≤ U)
(hz : z ∈ Q 0) (hp : p ∈ Q 0) (hq : q ∈ Q 0)
(horder : ∀ x ∈ [z, p, q], (Q 0).idxOf x < (Q 0).idxOf L ∧ (Q 0).idxOf x < (Q 0).idxOf U)
(hin : ∀ x ∈ [z, p, q], L < x ∧ x < U)
(hUp : U % 2 = L % 2) (hzp : z % 2 ≠ L % 2) (hpp : p % 2 = L % 2) (hqp : q % 2 = L % 2)
(hpq : p % 4 ≠ q % 4) :
∀ n, ∀ x ∈ Q n, x ∉ Q 0 → x % 2 = L % 2 := by sorry
end Erdos195