Appending a decreasing block below an -safe word
ProvedErdos195.epsLt_safe_append_blockFix and the -adic total order on given by iff and the -th two's-complement digit of equals , where . A finite word of distinct integers is -safe if the sequence "the letters of in order, then all remaining integers in -order" contains no monotone -term arithmetic progression. Let be -safe and let be a list of integers not in such that
Then for every the word is -safe. Thus an entire block of letters lying -below a safe word can be appended in decreasing order, provided no in-order pair of has its -AP continuation in the block without its -AP continuation in . This is a step in Ho-style constructions of -AP-free permutations of (Erdős Problem 195).
Formalization note: Safe, epsLt are from Definitions.Def_Erdos195_defs; " before " is P.idxOf a < P.idxOf b; decreasing order is S.Pairwise (fun x y => epsLt ε y x); prefixes are S.take j.
import Mathlib import Definitions.Def_Erdos195_defs
namespace Erdos195
theorem epsLt_safe_append_block (ε : ℕ → Bool) (P S : List ℤ) (hS : Safe (epsLt ε) P)
(hdisj : ∀ s ∈ S, s ∉ P) (hbelow : ∀ s ∈ S, ∀ p ∈ P, epsLt ε s p)
(hdec : S.Pairwise (fun x y => epsLt ε y x))
(hF : ∀ a ∈ P, ∀ b ∈ P, P.idxOf a < P.idxOf b → 2 * b - a ∈ S → 3 * b - 2 * a ∈ P) :
∀ j : ℕ, Safe (epsLt ε) (P ++ S.take j) := by sorry
end Erdos195