Midpoint confinement: an opposite-parity batch against an old root force
ProvedErdos195.midpoint_confinementA 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. The halves of a word are the subsequences of its even letters and of its odd letters, each mapped by ; the half witnesses are and .
Theorem (midpoint confinement for an opposite-parity batch). Let be a word containing an in-order pair with odd that is open in (). Suppose the numerical extrema and have the parity of . Let be a word of entries not in , all of the opposite parity. If is -safe for a tree witness , then every entry of satisfies
and if moreover , then is empty.
So an old root force toward the parity of both extrema cannot be overridden by a monochromatic batch of the other parity: such a batch has at most one value, the midpoint. It is the key step in Astra's (not yet formalized) argument that a safe enumeration of must use genuinely mixed-parity batches infinitely often. The old open pair cannot be retired because its fourth term has the parity of . A new entry beyond the midpoint would form an open root pair with an old extreme that forces the wrong parity. Lemma of GPT 6 Astra.
import Mathlib import Definitions.Def_Erdos195_tree
namespace Erdos195
theorem midpoint_confinement (θ : ℕ → ℤ → Bool) (Q D : List ℤ) (hS : Safe (treeLt θ) (Q ++ D))
(a b : ℤ) (ha : a ∈ Q) (hb : b ∈ Q) (hab : Q.idxOf a < Q.idxOf b) (hodd : (b - a) % 2 = 1)
(h2 : 2 * b - a ∉ Q) (h3 : 3 * b - 2 * a ∉ Q)
(L U : ℤ) (hL : L ∈ Q) (hU : U ∈ Q) (hbd : ∀ x ∈ Q, L ≤ x ∧ x ≤ U)
(hLp : L % 2 = b % 2) (hUp : U % 2 = b % 2)
(hD : ∀ z ∈ D, z % 2 ≠ b % 2) (hDQ : ∀ z ∈ D, z ∉ Q) :
(∀ z ∈ D, 2 * z = L + U) ∧ (L % 4 = U % 4 → D = []) := by sorry
end Erdos195