FormalConjectures/Wikipedia/Mills.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, 4 contain sorry, 0 declared as axioms
Mills' Theorem
There exists a real $A > 1$ such that $\lfloor A^{3^n}\rfloor$ is prime for every positive integer $n$, where $\lfloor\cdot\rfloor$ denotes the floor function.
The least such $A$ is known as Mills' constant. It is irrational, and assuming the Riemann hypothesis it is approximately $1.3063778838\ldots$.
References:
- Wikipedia, Mills' constant
- A prime-representing function by W. H. Mills, Bull. Amer. Math. Soc. 53 (1947), 604.
- Mills' constant on Wolfram MathWorld.
- Mills' constant is irrational by Kota Saito, Mathematika 71 (2025), no. 3, e70027, arXiv:2404.19461.
- Determining Mills' Constant .. by Chris K. Caldwell and Yuanyou Cheng, J. Integer Seq. 8 (2005), Article 05.4.1.
- OEIS A051021 (decimal expansion of Mills' constant)
Imports (1)
- abbrev
Mills.IsMillsGiven any real $A$,IsMills Aencodes the statement that $\lfloor A^{3^n}\rfloor,n > 0$ is prime line 49 sourceSource documentation
Given any real $A$,
IsMills Aencodes the statement that $\lfloor A^{3^n}\rfloor,n > 0$ is prime.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
RealProof uses:
PNat,Prime,Nat,Nat.floor,HPow.hPow,OfNat.ofNat14 instances, coercions and auxiliary constants left out.
abbrev IsMills (A : ℝ) : Prop := ∀ (n : ℕ+), Prime ⌊A ^ (3 ^ (n : ℕ))⌋₊ …
- theorem
Mills.exists'Mills' theorem (Mills, 1947) sorry line 56 sourceSource documentation
Mills' theorem (Mills, 1947). There is a real number $A > 1$ such that $\lfloor A^{3^n}\rfloor$ is prime.
depends on sorry what this means
Statement uses:
Exists,Real,And,GT.gt,OfNat.ofNat, Mills.IsMillsProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,Nat7 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem exists' : ∃ A > 1, IsMills A := by …
Mentions: Mills.IsMills
- abbrev
Mills.IsMinMillsFor a real $A$,IsMinMills Ais the smallest value satisfyingIsMills Aline 62 sourceSource documentation
For a real $A$,
IsMinMills Ais the smallest value satisfyingIsMills A.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
RealProof uses:
IsLeast,Set.ofPred,And,GT.gt,OfNat.ofNat, Mills.IsMills4 instances, coercions and auxiliary constants left out.
abbrev IsMinMills (A : ℝ) : Prop := IsLeast {x | x > 1 ∧ IsMills x} A …Mentions: Mills.IsMills
- theorem
Mills.exists_leastMills' constant sorry line 69 sourceSource documentation
Mills' constant. There is a least Mills number.
depends on sorry what this means
Statement uses:
Exists,Real, Mills.IsMinMillsProof 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 exists_least : ∃ A, IsMinMills A := by …
Mentions: Mills.IsMinMills
- theorem
Mills.irrationalMills' constant is irrational (Saito, 2024) sorry line 76 sourceSource documentation
Mills' constant is irrational (Saito, 2024).
depends on sorry what this means
Statement uses:
Real, Mills.IsMinMills,IrrationalProof 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 irrational {A} (hA : IsMinMills A) : Irrational A := by …Mentions: Mills.IsMinMills
- theorem
Mills.lower_bound_of_RHMills' constant lower bound (Caldwell–Cheng, 2005): assuming the Riemann hypothesis, Mills' constant begins at $1.3063778838\ldots$ sorry line 85 sourceSource documentation
Mills' constant lower bound (Caldwell–Cheng, 2005): assuming the Riemann hypothesis, Mills' constant begins at $1.3063778838\ldots$.
depends on sorry what this means
Statement uses:
RiemannHypothesis,Real, Mills.IsMinMills,Membership.mem,Set,Set.Ioo,OfScientific.ofScientific,Bool.trueProof uses:
sorryAx,Lean.Name,Bool.false,Lean.Name.num,Lean.Name.str,Lean.Name.anonymous,OfNat.ofNat,Nat9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
theorem lower_bound_of_RH (hRH : RiemannHypothesis) {A} (hA : IsMinMills A) : A ∈ Set.Ioo (1.3063778838 : ℝ) 1.3063778839 := by …Mentions: Mills.IsMinMills