Exact lifting criterion: absorbing an odd target after an even batch, with odd fourth-term helpers
ProvedErdos195.lifting_criterionA tree witness is a function on the nodes , , of the binary tree of residues. For distinct integers with , put iff . A finite word of integers is -safe if the sequence "the letters of in order, then all remaining integers in -order" contains no monotone -term arithmetic progression. The halves of a word are the subsequences of its even letters and of its odd letters, each mapped by . The half witnesses are and .
Theorem (exact lifting criterion). Let ("released" root). Let be a -safe word, a word of even integers, and an odd integer. Write . Then is -safe if and only if
- the even half of is -safe,
- the odd half of is -safe, and
- every even letter of satisfies
This sharpens the symmetric lifting lemma, where every even letter is reflected (), into an exact characterization. An even letter may instead be covered by an odd fourth-term helper that is already in , provided the odd letter does not precede it. So absorbing an odd target after an even batch into a released safe word reduces exactly to two half-safety problems plus this local helper condition.
Formalization note: treeLt θ is from Definitions.Def_Erdos195_tree, and Safe is from Definitions.Def_Erdos195_defs. Halves are filter by parity followed by map (· / 2). Positions are List.idxOf.
import Mathlib import Definitions.Def_Erdos195_tree
namespace Erdos195
theorem lifting_criterion (θ : ℕ → ℤ → Bool) (h00 : θ 0 0 = false) (S R : List ℤ) (y : ℤ)
(hS : Safe (treeLt θ) S) (hRe : ∀ r ∈ R, r % 2 = 0) (hy : y % 2 = 1) (hyS : y ∉ S) :
Safe (treeLt θ) (S ++ R ++ [y]) ↔
Safe (treeLt (fun k r => θ (k + 1) (2 * r)))
(((S ++ R).filter (fun x => decide (x % 2 = 0))).map (· / 2)) ∧
Safe (treeLt (fun k r => θ (k + 1) (2 * r + 1)))
(((S ++ [y]).filter (fun x => decide (x % 2 = 1))).map (· / 2)) ∧
(∀ a ∈ S ++ R, a % 2 = 0 → 2 * y - a ∈ S ++ R ∨
(3 * y - 2 * a ∈ S ∧
(2 * a - y ∈ S → (S ++ R).idxOf a < (S ++ R).idxOf (2 * a - y)))) := by sorry
end Erdos195