The reflected batch word is not tree-safe
ProvedErdos195.minus1_reflection_not_safeA 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. An in-order pair of ( occurs before ) is open if and ; it lies at the node , , and forces there to equal . A root pair is one with odd (node ); is a true root release if every open root pair has even second entry, i.e. no open pair forces the value at the root. No tree witness makes the word -safe. The open pairs and both lie at node (as ), and they force opposite bits there: and . So the order of and in the batch matters.
Formalization note: treeLt θ is from Definitions.Def_Erdos195_tree; Safe, bitOne are from Definitions.Def_Erdos195_defs. Positions are List.idxOf; the release property is stated as: every open in-order pair with has .
import Mathlib import Definitions.Def_Erdos195_tree
namespace Erdos195
theorem minus1_reflection_not_safe :
¬ ∃ θ : ℕ → ℤ → Bool, Safe (treeLt θ) [0, 1, 6, 3, -2, -8, -1] := by sorry
end Erdos195