FormalConjectures/ErdosProblems/124.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
6 declarations, 5 contain sorry, 0 declared as axioms
Erdős Problem 124
References:
- erdosproblems.com/124
- [BEGL96] Burr, S. A. and Erdős, P. and Graham, R. L. and Li, W. Wen-Ching, Complete sequences of sets of integer powers. Acta Arith. (1996), 133-138.
Imports (1)
- def
Erdos124.sumsOfDistinctPowersThe set of integers which are the sum of distinct powersd ^ iwithi ≥ kline 36 sourceSource documentation
The set of integers which are the sum of distinct powers
d ^ iwithi ≥ k.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,SetProof uses:
Set.ofPred,Exists,Finset,And,Membership.mem,LE.le,Eq,Finset.sum,HPow.hPow8 instances, coercions and auxiliary constants left out.
def sumsOfDistinctPowers (d k : ℕ) : Set ℕ := …
- lemma
Erdos124.erdos124.zeroDocumented declaration: zero sorry line 48 sourceSource documentation
Let $3 \le d_1 < d_2 < \dots < d_r$ be integers such that $$\sum_{1 \le i \le r}\frac 1{d_i - 1} \ge 1.$$ Can all sufficiently large integers be written as a sum of the shape $\sum_i c_ia_i$ where $c_i \in \{0, 1\}$ and $a_i$ has only the digits $0, 1$ when written in base $d_i$?
Conjectured by Erdős [Er97], solved by Boris Alexeev using Aristotle.
depends on sorry what this means
Statement uses:
Iff,True,Finset,Nat,Membership.mem,LE.le,OfNat.ofNat,Rat,Finset.sum,Inv.inv,HSub.hSub,Filter.Eventually,Set, Erdos124.sumsOfDistinctPowers,Filter.atTopProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous32 instances, coercions and auxiliary constants left out.
lemma erdos124.zero : answer(True) ↔ ∀ D : Finset ℕ, (∀ d ∈ D, 3 ≤ d) → 1 ≤ ∑ d ∈ D, (d - 1 : ℚ)⁻¹ → ∀ᶠ n in atTop, n ∈ ∑ d ∈ D, sumsOfDistinctPowers d 0 := sorry …Mentions: Erdos124.sumsOfDistinctPowers
- lemma
Erdos124.erdos124.ne_zeroDocumented declaration: ne_zero sorry line 62 sourceSource documentation
Let $k \ne 0$ and $3\leq d_1 < d_2 < \cdots < d_r$ be integers of gcd equal to $1$ such that $$\sum_{1 \le i \le r}\frac 1{d_i - 1} \ge 1.$$ Can all sufficiently large integers be written as a sum of the shape $\sum_i c_ia_i$ where $c_i \in \{0, 1\}$ and $a_i$ is divisible by $d_i ^ k$ and has only the digits $0, 1$ when written in base $d_i$?
Conjectured by Burr, Erdős, Graham, and Li [BEGL96]
depends on sorry what this means
Statement uses:
Iff,True,Nat,Ne,OfNat.ofNat,Finset,Membership.mem,LE.le,Rat,Finset.sum,Inv.inv,HSub.hSub,Eq,Finset.gcd,id,Filter.Eventually,Set, Erdos124.sumsOfDistinctPowers,Filter.atTopProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous38 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
lemma erdos124.ne_zero : answer(sorry) ↔ ∀ k ≠ 0, ∀ D : Finset ℕ, (∀ d ∈ D, 3 ≤ d) → 1 ≤ ∑ d ∈ D, (d - 1 : ℚ)⁻¹ → D.gcd id = 1 → ∀ᶠ n in atTop, n ∈ ∑ d ∈ D, sumsOfDistinctPowers d k := by …Mentions: Erdos124.sumsOfDistinctPowers
- lemma
Erdos124.erdos124.ne_zero_three_four_sevenDocumented declaration: ne_zero_three_four_seven sorry line 75 sourceSource documentation
All sufficiently large integers can be written as $a + b + c$, where $a$, $b$, and $c$ are divisible by $3$, $4$, and $7$ respectively, and after division by that base have only the digits $0, 1$ in that base.
Proved by Burr, Erdős, Graham, and Li [BEGL96]
depends on sorry what this means
Statement uses:
Filter.Eventually,Nat,Membership.mem,Set,HAdd.hAdd, Erdos124.sumsOfDistinctPowers,OfNat.ofNat,Filter.atTopProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous12 instances, coercions and auxiliary constants left out.
lemma erdos124.ne_zero_three_four_seven : ∀ᶠ n in atTop, n ∈ sumsOfDistinctPowers 3 1 + sumsOfDistinctPowers 4 1 + sumsOfDistinctPowers 7 1 := …Mentions: Erdos124.sumsOfDistinctPowers
- lemma
Erdos124.erdos124.conversesorry line 90 sourcedepends on sorry what this means
Statement uses:
Finset,Nat,Membership.mem,LE.le,OfNat.ofNat,Filter.Eventually,Set,Finset.sum, Erdos124.sumsOfDistinctPowers,Filter.atTop,Rat,Inv.inv,HSub.hSubProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous32 instances, coercions and auxiliary constants left out.
- lemma
Erdos124.erdos124.melfi_constructionDocumented declaration: melfi_construction sorry line 107 sourceSource documentation
For any $\varepsilon > 0$, there exists an infinite sequence $2 \le d_0 < d_1 < \dots$ such that the series $\sum_{i=0}^{\infty} \frac{1}{d_i - 1}$ converges to a value at most $\varepsilon$, and yet for every $k \ne 0$ all sufficiently large integers can be written as $\sum_{i \in I} a_i$ for some finite set $I$, where each $a_i$ is divisible by $d_i^k$ and has only the digits $0, 1$ when written in base $d_i$.
The restriction $k \ne 0$ excludes the degenerate representation of $n$ as a sum of $n$ copies of $1 = d_i^0$ taken from $n$ distinct bases.
Proved by Melfi [Me04, Proposition 1]
depends on sorry what this means
Statement uses:
Real,LT.lt,OfNat.ofNat,Exists,Nat,And,StrictMono,LE.le,Summable,Inv.inv,HSub.hSub,SummationFilter.unconditional,tsum,Ne,Filter.Eventually,Finset,Membership.mem,Set, Erdos124.sumsOfDistinctPowers,Eqand 2 moreProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous44 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
lemma erdos124.melfi_construction {ε : ℝ} (hε : 0 < ε) : ∃ d : ℕ → ℕ, StrictMono d ∧ 2 ≤ d 0 ∧ Summable (fun i ↦ (d i - 1 : ℝ)⁻¹) ∧ ∑' i, (d i - 1 : ℝ)⁻¹ ≤ ε ∧ ∀ k ≠ 0, ∀ᶠ n in atTop, ∃ (I : Finset ℕ) (a : ℕ → ℕ), (∀ i ∈ I, a i ∈ sumsOfDistinctPowers (d i) k) ∧ ∑ i ∈ I, a i = n := by …Mentions: Erdos124.sumsOfDistinctPowers