Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Iterated isolated-minimum completions along a+(2i−1)(b−a)a+(2^i-1)(b-a)a+(2i−1)(b−a)

Proved
Erdos195.iterated_isolated_min

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

arithmetic-progressionscombinatoricserdos-problems

A tree witness is a function θ(k,r)∈{0,1}\theta(k,r)\in\{0,1\}θ(k,r)∈{0,1} on the nodes (k,r)(k,r)(k,r), 0≤r<2k0\le r<2^k0≤r<2k, of the binary tree of residues. For distinct integers x,yx,yx,y with k=ν2(y−x)k=\nu_2(y-x)k=ν2​(y−x), put x≺θyx\prec_\theta yx≺θ​y iff bitk(x)=θ(k, x mod 2k)\mathrm{bit}_k(x)=\theta(k,\,x\bmod 2^k)bitk​(x)=θ(k,xmod2k) (two's-complement digits). A finite word QQQ of integers is θ\thetaθ-safe if the sequence "the letters of QQQ in order, then all remaining integers in ≺θ\prec_\theta≺θ​-order" contains no monotone 444-term arithmetic progression; it is tree-safe if it is θ\thetaθ-safe for some θ\thetaθ. Let PPP be θ\thetaθ-safe, a≠ba\neq ba=b, r=b−ar=b-ar=b−a, k=ν2(r)k=\nu_2(r)k=ν2​(r) and xi=a+(2i−1)rx_i=a+(2^i-1)rxi​=a+(2i−1)r (so x0=ax_0=ax0​=a, x1=bx_1=bx1​=b, xi+2=3xi+1−2xix_{i+2}=3x_{i+1}-2x_ixi+2​=3xi+1​−2xi​). Put Qn=P⋅(x2,…,xn+1)Q_n=P\cdot(x_2,\dots,x_{n+1})Qn​=P⋅(x2​,…,xn+1​). Assume b∈Pb\in Pb∈P is the θ\thetaθ-minimum of PPP, bbb is alone in its class mod 2k+12^{k+1}2k+1 among the letters of PPP, and for every nnn the number xn+2x_{n+2}xn+2​ is not 2v−u2v-u2v−u for any uuu occurring before vvv in QnQ_nQn​. Then for every n≥0n\ge0n≥0 there is a tree witness θn\theta_nθn​ such that

Qn is θn-safe,xn+1 is the θn-minimum of Qn,xn+1 is alone in its class mod 2k+n+1.Q_n\ \text{is}\ \theta_n\text{-safe},\quad x_{n+1}\ \text{is the}\ \theta_n\text{-minimum of}\ Q_n,\quad x_{n+1}\ \text{is alone in its class mod}\ 2^{k+n+1}.Qn​ is θn​-safe,xn+1​ is the θn​-minimum of Qn​,xn+1​ is alone in its class mod 2k+n+1.

So the isolated-minimum completion can be iterated indefinitely along the doubling sequence (Erdős Problem 195).

Formalization note: treeLt θ is from Definitions.Def_Erdos195_tree; Safe, bitOne are from Definitions.Def_Erdos195_defs. Positions in a word are List.idxOf; P ++ [c] appends c.

Preamble
import Mathlib
import Definitions.Def_Erdos195_tree
Formal statement
namespace Erdos195

theorem iterated_isolated_min (θ : ℕ → ℤ → Bool) (P : List ℤ) (a b : ℤ)
    (hP : Safe (treeLt θ) P) (hb : b ∈ P) (hab : a ≠ b)
    (hmin : ∀ x ∈ P, x ≠ b → treeLt θ b x)
    (hiso : ∀ x ∈ P, x ≠ b → ¬ (2 : ℤ) ^ (padicValInt 2 (b - a) + 1) ∣ x - b)
    (hno : ∀ (n : ℕ) (u v : ℤ),
      u ∈ P ++ (List.range n).map (fun j => a + (2 ^ (j + 2) - 1) * (b - a)) →
      v ∈ P ++ (List.range n).map (fun j => a + (2 ^ (j + 2) - 1) * (b - a)) →
      (P ++ (List.range n).map (fun j => a + (2 ^ (j + 2) - 1) * (b - a))).idxOf u <
        (P ++ (List.range n).map (fun j => a + (2 ^ (j + 2) - 1) * (b - a))).idxOf v →
      a + (2 ^ (n + 2) - 1) * (b - a) ≠ 2 * v - u) :
    ∀ n : ℕ, ∃ θ' : ℕ → ℤ → Bool,
      Safe (treeLt θ') (P ++ (List.range n).map (fun j => a + (2 ^ (j + 2) - 1) * (b - a))) ∧
      a + (2 ^ (n + 1) - 1) * (b - a) ∈
        P ++ (List.range n).map (fun j => a + (2 ^ (j + 2) - 1) * (b - a)) ∧
      (∀ y ∈ P ++ (List.range n).map (fun j => a + (2 ^ (j + 2) - 1) * (b - a)),
        y ≠ a + (2 ^ (n + 1) - 1) * (b - a) → treeLt θ' (a + (2 ^ (n + 1) - 1) * (b - a)) y) ∧
      (∀ y ∈ P ++ (List.range n).map (fun j => a + (2 ^ (j + 2) - 1) * (b - a)),
        y ≠ a + (2 ^ (n + 1) - 1) * (b - a) →
        ¬ (2 : ℤ) ^ (padicValInt 2 (b - a) + n + 1) ∣ y - (a + (2 ^ (n + 1) - 1) * (b - a))) := by sorry

end Erdos195
Source
Erdős Problem 195 (https://www.erdosproblems.com/195); statements from GPT 6 Astra (Oct 23 2026 'tree' answers tree10, generalized), 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