FormalConjectures/Wikipedia/LegendreConjecture.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
3 declarations, 3 contain sorry, 0 declared as axioms
Legendre's conjecture
References:
Imports (1)
Imported by 1 file
- theorem
LegendreConjecture.legendre_conjectureDoes there always exist at least one prime between consecutive perfect squares? sorry line 38 sourceSource documentation
Does there always exist at least one prime between consecutive perfect squares?
depends on sorry what this means
Statement uses:
Iff,True,Nat,GE.ge,OfNat.ofNat,Exists,And,Membership.mem,Set,Set.Ioo,HPow.hPow,HAdd.hAdd,Nat.PrimeProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous20 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem legendre_conjecture : answer(sorry) ↔ ∀ n ≥ 1, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Nat.Prime p := by … - theorem
LegendreConjecture.bounded_gap_legendreDocumented declaration: bounded_gap_legendre sorry line 50 sourceSource documentation
If there exists a constant
c > 0such that(n + 1).nth Nat.Prime - n.nth Nat.Prime < (n.nth Nat.Prime) ^ (1 / 2 - c)for all largen, then Legendre's conjecture is asymptotically true.Formal proof linked here provided by AlphaProof.
depends on sorry what this means
Statement uses:
Exists,Real,And,GT.gt,OfNat.ofNat,Filter.Eventually,Nat,LT.lt,HSub.hSub,Nat.nth,Nat.Prime,HAdd.hAdd,HPow.hPow,HDiv.hDiv,Filter.atTop,Membership.mem,Set,Set.IooProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous50 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem bounded_gap_legendre (H : ∃ c > 0, ∀ᶠ n in atTop, (n + 1).nth Nat.Prime - n.nth Nat.Prime < (n.nth Nat.Prime : ℝ) ^ (1 / (2 : ℝ) - c)) : ∀ᶠ n in atTop, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Nat.Prime p := by …Mentions: c
- theorem
LegendreConjecture.legendre_conjecture.ferreira_large_nFerreira proved that the conjecture is true for sufficiently large n sorry line 60 sourceSource documentation
Ferreira proved that the conjecture is true for sufficiently large n.
depends on sorry what this means
Statement uses:
Filter.Eventually,Nat,Exists,And,Membership.mem,Set,Set.Ioo,HPow.hPow,OfNat.ofNat,HAdd.hAdd,Nat.Prime,Filter.atTopProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous18 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem legendre_conjecture.ferreira_large_n : ∀ᶠ n in atTop, ∃ p ∈ Set.Ioo (n ^ 2) ((n + 1) ^ 2), Nat.Prime p := by …