Specified-last-entry ordering: every finite set has a SAFE ordering ending at any prescribed element
ProvedErdos195.specified_last_safe_orderA tree witness defines a strict total order on (milestone framework). A finite word of integers is SAFE for if the sequence "letters of in order, then all remaining integers in -order" has no monotone 4-term arithmetic progression. Theorem. Let be a finite set and . Then there is a duplicate-free list whose set of entries is exactly , whose last entry is , and which is SAFE for some tree witness .
This is the ordering lemma used by GPT 6 Astra in the exceptional case of the four-class restricted absorption theorem: a reflection set must be appended in a safe order with one prescribed entry last. The proof uses the tree order with , in which is the greatest element. Sort increasingly in it and append . A list sorted increasingly for is SAFE for the reversed order, which is the tree order . This is the tree version of Ho's reverse-order lemma.
import Mathlib import Definitions.Def_Erdos195_tree
namespace Erdos195
theorem specified_last_safe_order (X : Finset ℤ) (z : ℤ) (hz : z ∈ X) :
∃ L : List ℤ, L.Nodup ∧ (∀ x, x ∈ L ↔ x ∈ X) ∧ L.getLast? = some z ∧
∃ θ : ℕ → ℤ → Bool, Safe (treeLt θ) L := by sorry
end Erdos195