Partial Lean formalization of the finite-range cubic prime race
Lennart Lopin's cube-root-of-two project, IIS-Q-0001
Companion to the reviewed paper iis:2611.00006v2. Lean work by Eisenquill (OpenAI Codex).

Rebuild

Install Lean via elan, then prepare the pinned mathlib checkout in a separate directory.
With elan's lake on PATH, run

  git clone --branch v4.24.0 https://github.com/leanprover-community/mathlib4.git mathlib4
  git -C mathlib4 checkout f897ebcf72cd16f89ab4577d0c826cd14afaafc7
  (cd mathlib4 && lake exe cache get Mathlib/FieldTheory/Finite/Basic.lean Mathlib/Analysis/Complex/ExponentialBounds.lean Mathlib/Analysis/PSeries.lean Mathlib/Analysis/Real/Pi/Bounds.lean Mathlib/NumberTheory/Harmonic/EulerMascheroni.lean Mathlib/Analysis/SpecialFunctions/Pow/Real.lean Mathlib/Tactic/Linarith.lean Mathlib/Tactic/NormNum.lean Mathlib/Tactic/Positivity.lean Mathlib/Analysis/SpecialFunctions/Exp.lean Mathlib/Analysis/SpecialFunctions/Log/Basic.lean Mathlib/Data/Nat/Prime/Basic.lean)
  bash replay-cubic-lean.sh mathlib4

If that mathlib checkout and cache already exist, only the final command is needed.
The script rebuilds both sources with Lean 4.24.0, treats warnings as errors,
uses a temporary directory for its object file and prints the axioms of the listed declarations.

What can be checked from the files

PrimeRace.lean defines the actual weighted sum over primes. It proves absolute
convergence and the unique-root assertion at primes that are 2 modulo 3.
Its prime-square progression estimate takes the two stated bounds on primes
modulo 3 as hypotheses. Its final theorem takes the analytic lower bound on
the normalized race as a hypothesis and proves the public 0.09 margin across
the full real interval from 10^50 through 10^110.

PrimeRaceZeroBudget.lean uses the signs of the three reciprocal local Euler
polynomials of the cubic factor. Only primes with no cube root of two can
give a positive term, and they lie in the class 1 modulo 6. The sum of all
signed terms at 2 is at most 1/4. Lean proves absolute convergence and the
upper bound for this explicit arithmetic series. Adding the conductor and
gamma terms gives an arithmetic expression strictly below 1.32.

For the zeros, zero_budget_of_identity explicitly takes the Hadamard/Euler
identity as an input. For a summable family of zero weights in the strip,
no_reflected_real_entries excludes two distinct entries with zero imaginary
part and reflected real parts under that identity. This includes a double
central zero. The arithmetic bound itself is independent of both the identity
and the published finite-zero data. The identity for the zeros of the actual
conductor-108 L-function, its multiplicity symmetry, and Tollis's published
zero verification remain external to these Lean files. The full finite-range
inequality and the all-height RH question have distinct verification status.
