FormalConjectures/ErdosProblems/521.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, 1 contain sorry, 0 declared as axioms
Erdős Problem 521
Reference: erdosproblems.com/521
Imports (1)
- def
Erdos521.signtrueencodes the sign+1,falsethe sign-1line 34 sourceSource documentation
trueencodes the sign+1,falsethe sign-1.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Bool,RealProof uses:
ite,Eq,Bool.true,OfNat.ofNat,Neg.neg4 instances, coercions and auxiliary constants left out.
def sign (b : Bool) : ℝ := if b then 1 else -1
- def
Erdos521.fairCoinOne fair coin: the uniform probability measure onBoolline 37 sourceSource documentation
One fair coin: the uniform probability measure on
Bool.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasureTheory.Measure,BoolProof uses:
HSMul.hSMul,ENNReal,Inv.inv,OfNat.ofNat,HAdd.hAdd,MeasureTheory.Measure.dirac,Bool.true,Bool.false18 instances, coercions and auxiliary constants left out.
noncomputable def fairCoin : Measure Bool := …
- theorem
Erdos521.fairCoin_applyfairCoingives each of the two signs mass1/2line 44 sourceSource documentation
fairCoingives each of the two signs mass1/2. Together withfairCoin_isProbabilityMeasurethis pins the definition down, so a proof stating the same problem with aBernoulli(1/2)measure is stating the same thing.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Bool,Eq,ENNReal,MeasureTheory.Measure,Set, Erdos521.fairCoin,Singleton.singleton,Inv.inv,OfNat.ofNat,NatProof uses:
Bool.false,of_eq_true,Eq.trans,True,congrFun',congrArg,HAdd.hAdd,HSMul.hSMul,MeasureTheory.Measure.dirac,Bool.true,smul_add,congr,Set.indicator,MeasureTheory.Measure.dirac_apply',MeasurableSet,Top.top,MeasurableSpace,Set.indicator_of_notMem,Not,Membership.memand 12 more71 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
theorem fairCoin_apply (b : Bool) : fairCoin {b} = 2⁻¹ := by …Mentions: Erdos521.fairCoin
- theorem
Erdos521.fairCoin_isProbabilityMeasurefairCoinis a probability measure line 49 sourceSource documentation
fairCoinis a probability measure.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasureTheory.IsProbabilityMeasure,Bool, Erdos521.fairCoinProof uses:
MeasureTheory.IsProbabilityMeasure.mk,Eq.mpr,Eq,ENNReal,MeasureTheory.Measure,Set,Set.univ,OfNat.ofNat,HAdd.hAdd,Inv.inv,id,congrFun',congrArg,Eq.trans,HSMul.hSMul,MeasureTheory.Measure.dirac,Bool.true,Bool.false,Insert.insert,Singleton.singletonand 23 more57 instances, coercions and auxiliary constants left out.
Tactic trace: 3 steps
Open to load the checked before-and-after goal states.
theorem fairCoin_isProbabilityMeasure : IsProbabilityMeasure fairCoin := by …
Mentions: Erdos521.fairCoin
- def
Erdos521.rademacherMeasureThe law of an infinite sequence of independent fair coins(ε_k)_{k ≥ 0}, each uniform on{-1, +1}line 56 sourceSource documentation
The law of an infinite sequence of independent fair coins
(ε_k)_{k ≥ 0}, each uniform on{-1, +1}.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
MeasureTheory.Measure,Nat,BoolProof uses:
MeasureTheory.Measure.infinitePi, Erdos521.fairCoin3 instances, coercions and auxiliary constants left out.
noncomputable def rademacherMeasure : Measure (ℕ → Bool) := …
- def
Erdos521.littlewoodPolynomialThe degree-nLittlewood polynomialf_n(z) = ∑_{0 ≤ k ≤ n} ε_k z^kline 60 sourceSource documentation
The degree-
nLittlewood polynomialf_n(z) = ∑_{0 ≤ k ≤ n} ε_k z^k.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Bool,Polynomial,RealProof uses:
Finset.sum,Finset.range,HAdd.hAdd,OfNat.ofNat,LinearMap,RingHom.id,Polynomial.monomial, Erdos521.sign12 instances, coercions and auxiliary constants left out.
noncomputable def littlewoodPolynomial (ω : ℕ → Bool) (n : ℕ) : ℝ[X] := …
- def
Erdos521.realRootCountR_n: the number of distinct real roots off_nline 64 sourceSource documentation
R_n: the number of distinct real roots off_n.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,BoolProof uses:
Set.ncard,Real,Polynomial.rootSet, Erdos521.littlewoodPolynomial4 instances, coercions and auxiliary constants left out.
noncomputable def realRootCount (ω : ℕ → Bool) (n : ℕ) : ℕ := …
- def
Erdos521.ClaimThe assertion asked about in Problem 521: almost surelyR_n / log n → 2/πline 68 sourceSource documentation
The assertion asked about in Problem 521: almost surely
R_n / log n → 2/π.standard axioms: Classical.choice, Quot.sound, propext what this means
Proof uses:
Filter.Eventually,Nat,Bool,Filter.Tendsto,Real,HDiv.hDiv, Erdos521.realRootCount,Real.log,Filter.atTop,nhds,OfNat.ofNat,Real.pi,MeasureTheory.ae,MeasureTheory.Measure, Erdos521.rademacherMeasure15 instances, coercions and auxiliary constants left out.
def Claim : Prop := …
- theorem
Erdos521.erdos_521Let $(\epsilon_k)_{k\geq 0}$ be independently uniformly chosen at random from $\{-1,1\}$ sorry line 84 sourceSource documentation
Let $(\epsilon_k)_{k\geq 0}$ be independently uniformly chosen at random from $\{-1,1\}$. If $R_n$ counts the number of real roots of $f_n(z)=\sum_{0\leq k\leq n}\epsilon_k z^k$ then is it true that, almost surely, $$\lim_{n\to \infty}\frac{R_n}{\log n}=\frac{2}{\pi}?$$
The answer is no: this almost-sure limit fails. This result was obtained first by others, who deserve the credit for the problem; the link is to an independent machine-checked proof by Star Fleet Math.
depends on sorry what this means
Statement uses:
Iff,False, Erdos521.ClaimProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat,Nat1 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem erdos_521 : answer(False) ↔ Claim := by …
Mentions: Erdos521.Claim