FormalConjectures/ErdosProblems/254.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
4 declarations, 2 contain sorry, 0 declared as axioms
Erdős Problem 254
References:
- erdosproblems.com/254
- [Ca60] Cassels, J. W. S., On the representation of integers as the sums of distinct summands taken from a fixed set. Acta Sci. Math. (Szeged) (1960), 111-124.
Imports (1)
- def
Erdos254.IsSumOfDistinctAn integerncan be written as a sum of distinct elements ofAline 38 sourceSource documentation
An integer
ncan be written as a sum of distinct elements ofA.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,NatProof uses:
Exists,Finset,And,LE.le,Eq,Finset.sum4 instances, coercions and auxiliary constants left out.
def IsSumOfDistinct (A : Set ℕ) (n : ℕ) : Prop := …
- theorem
Erdos254.not_summable_iff_tendsto_partial_sumsDocumented declaration: not_summable_iff_tendsto_partial_sums line 46 sourceSource documentation
The hypothesis
¬ Summable (fun n : A ↦ distToNearestInt (θ * n))used below says exactly that the partial sums of‖θ n‖overn ∈ Adiverge, which is the form the linked proof uses.distToNearestIntis nonnegative, so this is an instance ofnot_summable_subtype_iff_tendsto_sum_indicator.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Nat,Real,Iff,Not,Summable, distToNearestInt,HMul.hMul,Membership.mem,SummationFilter.unconditional,Filter.Tendsto,Finset.sum,Finset.range,Set.indicator,Filter.atTopProof uses: not_summable_subtype_iff_tendsto_sum_indicator, distToNearestInt_nonneg
18 instances, coercions and auxiliary constants left out.
theorem not_summable_iff_tendsto_partial_sums (A : Set ℕ) (θ : ℝ) : ¬ Summable (fun n : A ↦ distToNearestInt (θ * (n : ℝ))) ↔ Tendsto (fun N : ℕ => ∑ n ∈ Finset.range N, A.indicator (fun n => distToNearestInt (θ * (n : ℝ))) n) atTop atTop := …Mentions: distToNearestInt
- theorem
Erdos254.erdos_254Documented declaration: erdos_254 sorry line 61 sourceSource documentation
Let $A\subseteq \mathbb{N}$ be such that $\lvert A\cap [1,2x]\rvert -\lvert A\cap [1,x]\rvert \to \infty\textrm{ as }x\to \infty$ and $\sum_{n\in A} \{ \theta n\}=\infty$ for every $\theta\in (0,1)$, where $\{x\}$ is the distance of $x$ from the nearest integer. Then every sufficiently large integer is the sum of distinct elements of $A$.
depends on sorry what this means
Statement uses:
Set,Nat,And,Filter.Tendsto,HSub.hSub,Set.ncard,Inter.inter,Set.Icc,OfNat.ofNat,HMul.hMul,Filter.atTop,Real,LT.lt,Not,Summable, distToNearestInt,Membership.mem,SummationFilter.unconditional,Filter.Eventually, Erdos254.IsSumOfDistinctProof 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.
theorem erdos_254 : ∀ (A : Set ℕ), (Tendsto (fun x : ℕ ↦ (A ∩ Icc 1 (2 * x)).ncard - (A ∩ Icc 1 x).ncard) atTop atTop) ∧ (∀ θ : ℝ, 0 < θ → θ < 1 → ¬ Summable (fun n : A ↦ distToNearestInt (θ * (n : ℝ)))) → ∀ᶠ m in atTop, IsSumOfDistinct A m := by …Mentions: distToNearestInt, Erdos254.IsSumOfDistinct
- theorem
Erdos254.erdos_254.variants.casselsCassels [Ca60] proved this under the alternative hypotheses sorry line 74 sourceSource documentation
Cassels [Ca60] proved this under the alternative hypotheses $\lim \frac{\lvert A\cap [1,2x]\rvert -\lvert A\cap [1,x]\rvert}{\log\log x}=\infty$ and $\sum_{n\in A} \{ \theta n\}^2=\infty$ for every $\theta\in (0,1)$.
depends on sorry what this means
Statement uses:
Set,Nat,And,Filter.Tendsto,Real,HDiv.hDiv,HSub.hSub,Set.ncard,Inter.inter,Set.Icc,OfNat.ofNat,HMul.hMul,Real.log,Filter.atTop,LT.lt,Not,Summable,HPow.hPow, distToNearestInt,Membership.memand 3 moreProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous60 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_254.variants.cassels : ∀ (A : Set ℕ), (Tendsto (fun x : ℕ ↦ (((A ∩ Icc 1 (2 * x)).ncard : ℝ) - ((A ∩ Icc 1 x).ncard : ℝ)) / Real.log (Real.log x)) atTop atTop) ∧ (∀ θ : ℝ, 0 < θ → θ < 1 → ¬ Summable (fun n : A ↦ (distToNearestInt (θ * (n : ℝ)))^2)) → ∀ᶠ m in atTop, IsSumOfDistinct A m := by …Mentions: distToNearestInt, Erdos254.IsSumOfDistinct