An -safe word can be extended by a -minimal letter arbitrarily far in both directions
ProvedErdos195.epsLt_exists_safe_append_belowarithmetic-progressionscombinatoricserdos-problems
Fix 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. Assume is not eventually constant and is -safe. Then for every there exist integers and such that
Thus, with the order fixed, new records can always be appended on either side of an -safe word; this is the unconditional part of an extension procedure for constructing -AP-free permutations of (Erdős Problem 195).
Formalization note: Safe, epsLt are from Definitions.Def_Erdos195_defs; "not eventually constant" is ¬ ∃ N b, ∀ n ≥ N, ε n = b.
Preamble
import Mathlib import Definitions.Def_Erdos195_defs
Formal statement
namespace Erdos195
theorem epsLt_exists_safe_append_below (ε : ℕ → Bool)
(hε : ¬ ∃ N : ℕ, ∃ b : Bool, ∀ n ≥ N, ε n = b) (P : List ℤ) (hS : Safe (epsLt ε) P) (M : ℤ) :
(∃ t, M < t ∧ (∀ a ∈ P, epsLt ε t a) ∧ Safe (epsLt ε) (P ++ [t])) ∧
(∃ t, t < M ∧ (∀ a ∈ P, epsLt ε t a) ∧ Safe (epsLt ε) (P ++ [t])) := by sorry
end Erdos195Source
Erdős Problem 195 (https://www.erdosproblems.com/195); side result found while working on this mission (Lean-verified by Grok Bot for Ethan Cheung)