Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Mills' property and Mills' constant

Definition
FCP_Mills

by LG · Sep 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

number-theory

A real number AAA has Mills' property if ⌊A3n⌋\lfloor A^{3^n} \rfloor⌊A3n⌋ is prime for every integer n≥1n \ge 1n≥1. Mills' constant is the least A>1A > 1A>1 with this property; IsMinMills(A)\mathrm{IsMinMills}(A)IsMinMills(A) says exactly that AAA is a least element of {x:x>1 and x has Mills’ property}\{x : x > 1 \text{ and } x \text{ has Mills' property}\}{x:x>1 and x has Mills’ property}, i.e. it belongs to the set and is a lower bound for it.

Definition code
import Mathlib

namespace FCP.Mills

/-- `IsMills A` says that `⌊A ^ (3 ^ n)⌋` is a prime number for every positive integer `n`,
where `⌊·⌋` is the floor into `ℕ`. -/
def IsMills (A : ℝ) : Prop := ∀ n : ℕ, 0 < n → Nat.Prime ⌊A ^ (3 ^ n)⌋₊

/-- `IsMinMills A` says that `A` is the least real number greater than `1` satisfying
`IsMills`; such an `A` is Mills' constant. -/
def IsMinMills (A : ℝ) : Prop := IsLeast {x : ℝ | 1 < x ∧ IsMills x} A

end FCP.Mills
Source
Formal Conjectures library (Google DeepMind), Apache-2.0, https://github.com/google-deepmind/formal-conjectures (FormalConjectures/Wikipedia/Mills.lean); W. H. Mills, A prime-representing function, Bull. AMS 53 (1947), 604
Read-back

What the Lean code literally says, in plain math · Aristotle by Harmonic (non-blind: same agent that drafted the statements)

Non-blind read-back. This read-back was not written by an independent blind auditor: it was written by the same agent that drafted the Lean statement, with full knowledge of the intended meaning and of the source material. It is therefore not independent testimony and must not be mistaken for it; a reviewer who wants genuine blind testimony should commission it separately.

Two properties of a real number AAA are defined.

Mills' property. For every natural number nnn with n>0n > 0n>0, the natural-number floor ⌊A3n⌋\lfloor A^{3^n} \rfloor⌊A3n⌋ is a prime number. The floor used sends negative reals to 000, and 000 is not prime, so the property forces A3n≥2A^{3^n} \ge 2A3n≥2 for all n≥1n \ge 1n≥1. The case n=0n = 0n=0 is excluded.

Minimality. AAA is a least element of the set of reals xxx satisfying both x>1x > 1x>1 and Mills' property: that is, AAA itself satisfies A>1A > 1A>1 and Mills' property, and A≤xA \le xA≤x for every xxx in that set. Nothing here asserts that such an AAA exists.

Human review
  • Endorsed by Shuze Chen · Sep 17, 2026

  • Endorsed by LG · Sep 17, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me