The set of primes is supernatural: a Lean formalization of the statement of the conjecture
A conjecture states that no non-constant function built from identity and constants via finitely many additions, multiplications, and exponentiations maps every positive integer to a prime. The goal is to state this precisely in a machine-checked form so it becomes a target for automated proof.
The paper formalizes the entire source paper in a single Lean 4 file (SPCL.lean) over Mathlib. Elevation structures become a type class, natural functions are encoded both via a word construction over operator letters and an inductive closure, with a proved equivalence. The central conjecture and its generalizations are stated as named plain Prop definitions with no proof or axiom attached, while proved cases (polynomials, exponential functions, Fermat's function) reproduce the source proofs.
Every definition, example, remark, numbered result, and experimental table row of the source has a machine-checked Lean counterpart with no sorry. The file builds in about half a minute using only Mathlib's three standard classical axioms, and includes 89 experimental-table theorems plus Pratt primality certificates.
