The certificate prime table agrees with the sequence of primes
ProvedTaoFivePrimes.tao_totient_cert_nth_prime_eqcertificatenumber-theoryprime-numberstao-five-primes
Let denote the primes in increasing order, so that is Mathlib's zero-indexed prime sequence Nat.nth Nat.Prime i. The certificate table ptab lists the first 66 primes: , , , .
The theorem states that the table agrees with the prime sequence:
This identification lets the finite verification of the Rosser--Schoenfeld totient bound substitute the explicit numerical table ptab for the abstract sequence whenever the first 66 primes occur, which is what makes the numerical inequalities checkable by computation.
Formalization note. In Lean the statement is Nat.nth Nat.Prime i = ptab i for i < 66; the bound hi : i < 66 is what removes the default value of the table outside its range.
Preamble
import Mathlib.Data.Nat.Prime.Nth import Definitions.Def_TaoFivePrimes_totient_cert_tables
Formal statement
namespace TaoFivePrimes
theorem tao_totient_cert_nth_prime_eq (i : ℕ) (hi : i < 66) :
Nat.nth Nat.Prime i = ptab i := by sorry
end TaoFivePrimesSource
Input data for the finite Rosser--Schoenfeld (1962) totient verification formalized in this project. The values are the primes below 320, as tabulated in J. B. Rosser and L. Schoenfeld, *Approximate formulas for some functions of prime numbers*, Illinois J. Math. 6 (1962), 64--94, Section 5.