FormalConjectures/ErdosProblems/10.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
9 declarations, 6 contain sorry, 0 declared as axioms
Erdős Problem 10
References:
- erdosproblems.com/10
- [Cr71] Crocker, R., On the sum of a prime and of two powers of two. Pacific J. Math. 36 (1971), 103-107.
- [Ga75] Gallagher, P. X., Primes and powers of 2. Acta Arith. 29 (1976), 353-370.
- [GrSo98] Granville, A. and Soundararajan, K., A binary additive problem of Erdős and the order of $2$ mod $p^2$. Ramanujan J. 2 (1998), 283-298.
Imports (1)
- abbrev
Erdos10.sumPrimeAndTwoPowsThe set of natural numbers that can be written as a sum of a prime and at most $k$ powers of $2$ line 42 sourceSource documentation
The set of natural numbers that can be written as a sum of a prime and at most $k$ powers of $2$.
standard axioms: Quot.sound, propext what this means
Statement uses:
Nat,SetProof uses:
Set.ofPred,Exists,Multiset,Nat.Prime,LE.le,Multiset.card,Eq,HAdd.hAdd,Multiset.sum,Multiset.map,HPow.hPow,OfNat.ofNat9 instances, coercions and auxiliary constants left out.
abbrev sumPrimeAndTwoPows (k : ℕ) : Set ℕ := …
- theorem
Erdos10.two_mem_sumPrimeAndTwoPows_zeroA prime is the sum of a prime and no powers of $2$ line 48 sourceSource documentation
A prime is the sum of a prime and no powers of $2$.
standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Membership.mem,Nat,Set, Erdos10.sumPrimeAndTwoPows,OfNat.ofNatProof uses:
Exists.intro,Exists,Multiset,Nat.Prime,LE.le,Multiset.card,Eq,HAdd.hAdd,Multiset.sum,Multiset.map,HPow.hPow,Nat.prime_two,of_eq_true,Eq.trans,True,congrFun',congrArg,add_zero,eq_self18 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
theorem two_mem_sumPrimeAndTwoPows_zero : 2 ∈ sumPrimeAndTwoPows 0 := …
Mentions: Erdos10.sumPrimeAndTwoPows
- theorem
Erdos10.one_not_mem_sumPrimeAndTwoPows$1$ is smaller than every prime, so it lies in nosumPrimeAndTwoPows kline 53 sourceSource documentation
$1$ is smaller than every prime, so it lies in no
sumPrimeAndTwoPows k.standard axioms: Quot.sound, propext what this means
Statement uses:
Nat,Not,Membership.mem,Set, Erdos10.sumPrimeAndTwoPows,OfNat.ofNatProof uses:
Exists,Multiset,Nat.Prime,LE.le,Multiset.card,Eq,HAdd.hAdd,Multiset.sum,Multiset.map,HPow.hPow,False,Nat.Prime.two_le14 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
theorem one_not_mem_sumPrimeAndTwoPows (k : ℕ) : 1 ∉ sumPrimeAndTwoPows k := by …
Mentions: Erdos10.sumPrimeAndTwoPows
- theorem
Erdos10.erdos_10Is there some $k$ such that every large integer is the sum of a prime and at most $k$ powers of $2$? sorry line 63 sourceSource documentation
Is there some $k$ such that every large integer is the sum of a prime and at most $k$ powers of $2$?
depends on sorry what this means
Statement uses:
Iff,True,Exists,Nat,Filter.Eventually,Membership.mem,Set, Erdos10.sumPrimeAndTwoPows,Filter.atTopProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat5 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_10 : answer(sorry) ↔ ∃ k, ∀ᶠ n : ℕ in atTop, n ∈ sumPrimeAndTwoPows k := by …
Mentions: Erdos10.sumPrimeAndTwoPows
- theorem
Erdos10.erdos_10.variants.gallagherDocumented declaration: gallagher sorry line 74 sourceSource documentation
Gallagher [Ga75] has shown that for any $ϵ > 0$ there exists $k(ϵ)$ such that the set of integers which are the sum of a prime and at most $k(ϵ)$ many powers of $2$ has lower density at least $1 - ϵ$.
Ref: Gallagher, P. X., Primes and powers of 2.
depends on sorry what this means
Statement uses:
Real,LT.lt,OfNat.ofNat,Exists,Nat,LE.le,HSub.hSub, Set.lowerDensity, Erdos10.sumPrimeAndTwoPows,Set.univProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous25 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_10.variants.gallagher (ε : ℝ) (hε : 0 < ε) : ∃ k, 1 - ε ≤ (sumPrimeAndTwoPows k).lowerDensity := by …Mentions: Erdos10.sumPrimeAndTwoPows
- theorem
Erdos10.erdos_10.variants.granville_soundararajan_oddGranville and Soundararajan [GrSo98] have conjectured that at most sorry line 86 sourceSource documentation
Granville and Soundararajan [GrSo98] have conjectured that at most $3$ powers of $2$ suffice for all odd integers, and hence at most $4$ powers of $2$ suffice for all even integers.
Ref: Granville, A. and Soundararajan, K., A Binary Additive Problem of Erdős and the Order of $2$ mod $p^2$
depends on sorry what this means
Statement uses:
And,LE.le,Set,Nat,Set.ofPred,Odd,LT.lt,OfNat.ofNat, Erdos10.sumPrimeAndTwoPows,Even,NeProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous10 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_10.variants.granville_soundararajan_odd : {n : ℕ | Odd n ∧ 1 < n} ⊆ sumPrimeAndTwoPows 3 ∧ {n : ℕ | Even n ∧ n ≠ 0} ⊆ sumPrimeAndTwoPows 4 := by …Mentions: Erdos10.sumPrimeAndTwoPows
- theorem
Erdos10.erdos_10.variants.grechuk_exampleBogdan Grechuk has observed that1117175146is not the sum of a prime and at most $3$ powers of $2$ sorry line 96 sourceSource documentation
Bogdan Grechuk has observed that
1117175146is not the sum of a prime and at most $3$ powers of $2$.depends on sorry what this means
Statement uses:
Not,Membership.mem,Nat,Set, Erdos10.sumPrimeAndTwoPows,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous4 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_10.variants.grechuk_example : 1117175146 ∉ sumPrimeAndTwoPows 3 := by …Mentions: Erdos10.sumPrimeAndTwoPows
- theorem
Erdos10.erdos_10.variants.two_powsThere are infinitely many even integers not the sum of a prime and $2$ powers of $2$ sorry line 104 sourceSource documentation
There are infinitely many even integers not the sum of a prime and $2$ powers of $2$
depends on sorry what this means
Statement uses:
Set.Infinite,Nat,SDiff.sdiff,Set,Set.ofPred,Even, Erdos10.sumPrimeAndTwoPows,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous6 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_10.variants.two_pows : Set.Infinite <| {n : ℕ | Even n} \ sumPrimeAndTwoPows 2 := by …Mentions: Erdos10.sumPrimeAndTwoPows
- theorem
Erdos10.erdos_10.variants.grechuksorry line 122 sourcedepends on sorry what this means
Statement uses:
Set.Infinite,Nat,SDiff.sdiff,Set,Set.ofPred,Even, Erdos10.sumPrimeAndTwoPows,OfNat.ofNatProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous6 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.