One-letter extension criterion for -safe words
ProvedErdos195.epsLt_safe_append_iffarithmetic-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. Let be -safe and let . Then the word (append ) is -safe if and only if
This reduces one step of a Ho-style construction of a -AP-free permutation of (Erdős Problem 195) to two finite checks involving only pairs that end at, or point to, the new letter.
Formalization note: Safe, epsLt are from Definitions.Def_Erdos195_defs; " before " is P.idxOf a < P.idxOf b.
Preamble
import Mathlib import Definitions.Def_Erdos195_defs
Formal statement
namespace Erdos195
theorem epsLt_safe_append_iff (ε : ℕ → Bool) (P : List ℤ) (t : ℤ)
(hS : Safe (epsLt ε) P) (htP : t ∉ P) :
Safe (epsLt ε) (P ++ [t]) ↔
(∀ a ∈ P, ∀ b ∈ P, P.idxOf a < P.idxOf b → t = 2 * b - a → 3 * b - 2 * a ∈ P) ∧
(∀ a ∈ P, epsLt ε a t → 2 * t - a ∈ P ∨ 3 * t - 2 * a ∈ P) := 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)