Reverse-order safety for -orders
ProvedErdos195.epsLt_safe_of_reverseLet be a finite list of integers listed in strictly decreasing -order ( whenever ). Then is safe for : the completion order (first in list order, then the remaining integers in -order) contains no monotone -term progression.
This is the -version of Ho's Lemma 1, the base case of the extension procedure.
Formalization Note compLt R P x y holds when both lie in P with x at a smaller index, or x ∈ P and y ∉ P, or neither lies in P and R x y. Safe R P says there are no a and r ≠ 0 with compLt R P a (a+r), compLt R P (a+r) (a+2r) and compLt R P (a+2r) (a+3r). epsLt ε x y is x ≠ y ∧ (x / 2^k % 2 = 1 ↔ ε k = true) with k = padicValInt 2 (y - x), i.e. ; integer division is floor division, so x / 2^k % 2 is the -th two's-complement digit of .
import Mathlib import Definitions.Def_Erdos195_defs
namespace Erdos195
theorem epsLt_safe_of_reverse (ε : ℕ → Bool) (P : List ℤ)
(hP : P.Pairwise (fun x y => epsLt ε y x)) : Safe (epsLt ε) P := by sorry
end Erdos195Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.