FormalConjectures/ErdosProblems/538.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, 2 contain sorry, 0 declared as axioms
Erdős Problem 538
Reference: erdosproblems.com/538
Imports (1)
- def
Erdos538.representationsThe representationsm = p * awithpprime anda ∈ Aline 34 sourceSource documentation
The representations
m = p * awithpprime anda ∈ A.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Finset,Nat,ProdProof uses:
Finset.filter,And,Nat.Prime,Prod.fst,Eq,HMul.hMul,Prod.snd,SProd.sprod,Finset.range,HAdd.hAdd,OfNat.ofNat9 instances, coercions and auxiliary constants left out.
def representations (A : Finset ℕ) (m : ℕ) : Finset (ℕ × ℕ) := …
- def
Erdos538.AdmissibleA ⊆ {1, …, N}and everymhas at mostrrepresentationsm = p aline 38 sourceSource documentation
A ⊆ {1, …, N}and everymhas at mostrrepresentationsm = p a.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,FinsetProof uses:
And,Membership.mem,LE.le,OfNat.ofNat,Finset.card,Prod, Erdos538.representations4 instances, coercions and auxiliary constants left out.
def Admissible (r N : ℕ) (A : Finset ℕ) : Prop := …
- def
Erdos538.reciprocalMassThe reciprocal sum∑_{n ∈ A} 1/nof the problem line 42 sourceSource documentation
The reciprocal sum
∑_{n ∈ A} 1/nof the problem.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Finset,Nat,RatProof uses:
Finset.sum,HDiv.hDiv,OfNat.ofNat6 instances, coercions and auxiliary constants left out.
def reciprocalMass (A : Finset ℕ) : ℚ := ∑ a ∈ A, (1 : ℚ) / a
- def
Erdos538.maxMassThe largest reciprocal sum∑_{n ∈ A} 1/nover admissibleA ⊆ {1, …, N}line 45 sourceSource documentation
The largest reciprocal sum
∑_{n ∈ A} 1/nover admissibleA ⊆ {1, …, N}.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,RealProof uses:
SupSet.sSup,Set.image,Finset, Erdos538.reciprocalMass,Set.ofPred, Erdos538.Admissible3 instances, coercions and auxiliary constants left out.
noncomputable def maxMass (r N : ℕ) : ℝ := …
- theorem
Erdos538.erdos_538Let $r\geq 2$ and suppose that $A\subseteq\{1,\ldots,N\}$ is such that, for any $m$, there are at most $r$ solutions to $m=pa$ where $p$ is prime and $a\in A$ sorry line 59 sourceSource documentation
Let $r\geq 2$ and suppose that $A\subseteq\{1,\ldots,N\}$ is such that, for any $m$, there are at most $r$ solutions to $m=pa$ where $p$ is prime and $a\in A$. Give the best possible upper bound for $\sum_{n\in A}\frac{1}{n}$.
Erdős observed that $\sum_{n\in A}\frac{1}{n}\ll r\frac{\log N}{\log\log N}$, and the order
Θ_r(log N / loglog N)is known (seeerdos_538.matching_order). The best possible upper bound is the asymptotic size of the largest reciprocal summaxMass r Nover admissibleA.depends on sorry what this means
Statement uses:
Nat,Real,sorryAx,Bool.false,LE.le,OfNat.ofNat,Asymptotics.IsEquivalent,Filter.atTop, Erdos538.maxMassProof uses:
Lean.Name,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous16 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_538 : let f : ℕ → ℕ → ℝ := answer(sorry) … - theorem
Erdos538.erdos_538.matching_orderThe reciprocal sum has matching orderΘ_r(log N / loglog N): an explicit upper bound for every admissibleA, together with a witnessing construction achieving the same order sorry line 71 sourceSource documentation
The reciprocal sum has matching order
Θ_r(log N / loglog N): an explicit upper bound for every admissibleA, together with a witnessing construction achieving the same order. This pins the order (up to the one iterated-logarithm factor) but not the best possible upper bound asked for inerdos_538.depends on sorry what this means
Statement uses:
Nat,LE.le,OfNat.ofNat,And,Finset, Erdos538.Admissible,Real,HMul.hMul,Real.log,HAdd.hAdd, Erdos538.reciprocalMass,Exists,Nat.logProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous32 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_538.matching_order (r N : ℕ) (hr : 2 ≤ r) (hN : 2 ≤ N) : (∀ A : Finset ℕ, Admissible r N A → Real.log (Real.log (N + 1)) * (reciprocalMass A : ℝ) ≤ 2 * r * (1 + Real.log (N * N))) ∧ (∃ A : Finset ℕ, Admissible r N A ∧ Real.log (N + 1) ≤ 4 + (8192 * (Nat.log 2 (Nat.log 2 N) + 1) : ℝ) * (reciprocalMass A : ℝ)) := by …Mentions: Erdos538.Admissible, Erdos538.reciprocalMass