Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Extrema of an exhaustive chain of ε\varepsilonε-safe words converge 2-adically

Proved
Erdos195.epsLt_chain_extremes_congr

by Ethan Cheung Wang · Oct 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

arithmetic-progressionscombinatoricserdos-problems

Fix ε:N→{0,1}\varepsilon:\mathbb{N}\to\{0,1\}ε:N→{0,1} and let ≺ε\prec_\varepsilon≺ε​ be the associated 222-adic order on Z\mathbb{Z}Z (for x≠yx\neq yx=y with k=ν2(y−x)k=\nu_2(y-x)k=ν2​(y−x): x≺εyx\prec_\varepsilon yx≺ε​y iff the kkk-th two's-complement digit of xxx equals εk\varepsilon_kεk​). Let P0⊑P1⊑⋯P_0\sqsubseteq P_1\sqsubseteq\cdotsP0​⊑P1​⊑⋯ be finite duplicate-free words, each a prefix of the next, each safe for ≺ε\prec_\varepsilon≺ε​ (the completion "PnP_nPn​, then all other integers in ≺ε\prec_\varepsilon≺ε​-order" contains no monotone 444-term AP), and together containing every integer. Put

ek=∑j<kεj 2j.e_k=\sum_{j<k}\varepsilon_j\,2^j .ek​=j<k∑​εj​2j.

Then for every kkk there is NNN such that for all n≥Nn\ge Nn≥N, both max⁡Pn\max P_nmaxPn​ and min⁡Pn\min P_nminPn​ are congruent to eke_kek​ modulo 2k2^k2k.

In words: in any exhaustive chain of ε\varepsilonε-safe words, the stage maxima and minima converge 222-adically to ξε=∑jεj2j\xi_\varepsilon=\sum_j\varepsilon_j2^jξε​=∑j​εj​2j. This is a necessary condition that any Ho-style construction of a 4AP-free enumeration of Z\mathbb{Z}Z with a fixed completion order must satisfy (it does not by itself rule such constructions out, since the extrema can still tend to ±∞\pm\infty±∞).

Preamble
import Mathlib
import Definitions.Def_Erdos195_defs
Formal statement
namespace Erdos195

theorem epsLt_chain_extremes_congr (ε : ℕ → Bool) (P : ℕ → List ℤ)
    (hsafe : ∀ n, Safe (epsLt ε) (P n)) (hpre : ∀ n, P n <+: P (n + 1))
    (hcov : ∀ x, ∃ n, x ∈ P n) (k : ℕ) :
    ∃ N, ∀ n ≥ N, ∀ M ∈ P n, ((∀ y ∈ P n, y ≤ M) ∨ (∀ y ∈ P n, M ≤ y)) →
      (2 : ℤ) ^ k ∣ M - ∑ j ∈ Finset.range k, (if ε j then (2 : ℤ) ^ j else 0) := by sorry

end Erdos195
Source
Erdős Problem 195 (https://www.erdosproblems.com/195); side result found while working on this mission (idea suggested via GPT, Lean-verified by Grok Bot for Ethan Cheung)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me