Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

No exhaustive chain of safe words for the two's-complement order

Proved
Erdos195.twosComplement_no_exhaustive_safe_chain

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

arithmetic-progressionscombinatoricserdos-problems

There is no sequence P0,P1,P2,…P_0,P_1,P_2,\dotsP0​,P1​,P2​,… of finite lists of integers such that

  1. each PnP_nPn​ is safe for the two's-complement order ≺true\prec_{\mathrm{true}}≺true​,
  2. each PnP_nPn​ is a prefix of Pn+1P_{n+1}Pn+1​, and
  3. every integer occurs in some PnP_nPn​.

So Ho's construction cannot be carried out on Z\mathbb{Z}Z with the fixed completion order ≺true\prec_{\mathrm{true}}≺true​. A construction for the goal must change the completion order between stages or use different ideas.

Formalization Note compLt R P x y holds when both lie in P with x at a smaller index, or x ∈ P and y ∉ P, or neither lies in P and R x y. Safe R P says there are no a and r ≠ 0 with compLt R P a (a+r), compLt R P (a+r) (a+2r) and compLt R P (a+2r) (a+3r). epsLt ε x y is x ≠ y ∧ (x / 2^k % 2 = 1 ↔ ε k = true) with k = padicValInt 2 (y - x), i.e. k=ν2(y−x)k=\nu_2(y-x)k=ν2​(y−x); integer division is floor division, so x / 2^k % 2 is the kkk-th two's-complement digit of xxx.

Preamble
import Mathlib
import Definitions.Def_Erdos195_defs
Formal statement
namespace Erdos195

theorem twosComplement_no_exhaustive_safe_chain (P : ℕ → List ℤ)
    (hsafe : ∀ n, Safe (epsLt (fun _ => true)) (P n))
    (hpre : ∀ n, P n <+: P (n + 1)) (hcov : ∀ x, ∃ n, x ∈ P n) : False := by sorry

end Erdos195
Source
New to this mission (obstruction to transferring B. S. Ho, arXiv:2609.12780, proof of the Theorem, to ℤ)
Human review
  • Endorsed by Shuze Chen · Oct 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Ethan Cheung Wang · Oct 23, 2026

    Confirmed by the mission captain (proposal self-audit).

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