Corpus definition canonical 2026-05-27T20:53:50+00:00
Corpus v3 · Definition cid001035DEF0033canonicalv1

Prime Enumeration and Sieve

Prime enumeration nthPrime(k) = p_k, prime counting pi(n), and prime index (inverse). The earned Sieve of Eratosthenes: computed entirely from rho-folds via is_prime_bool. Semantic orbit projection from pi-orbit to alpha-orbit values.

Payload

Prime Enumeration and Sieve

Prime enumeration nthPrime(k) = p_k, prime counting pi(n), and prime index (inverse). The earned Sieve of Eratosthenes: computed entirely from rho-folds via is_prime_bool. Semantic orbit projection from pi-orbit to alpha-orbit values.

Prime Enumeration and Sieve

Summary

Prime enumeration nthPrime(k) = p_k, prime counting pi(n), and prime index (inverse). The earned Sieve of Eratosthenes: computed entirely from rho-folds via is_prime_bool. Semantic orbit projection from pi-orbit to alpha-orbit values.

Statement

%
\label{def:prime-enumeration}
The \textbf{prime enumeration function}
$\mathrm{nthPrime} : \tau\text{-Idx} \to \tau\text{-Idx}$
maps each index $\underline{k}$ to the $k$-th prime
(zero-indexed):
\[
    \mathrm{nthPrime}(\underline{0}) = \underline{2}, \quad
    \mathrm{nthPrime}(\underline{1}) = \underline{3}, \quad
    \mathrm{nthPrime}(\underline{2}) = \underline{5}, \quad
    \mathrm{nthPrime}(\underline{3}) = \underline{7}, \quad \ldots
\]
The \textbf{prime counting function}
$\pi_\tau : \tau\text{-Idx} \to \tau\text{-Idx}$
counts primes up to a given bound:
\[
    \pi_\tau(\underline{n})
    = \#\{\, \underline{p} \in \mathbb{P}_\tau
        : \underline{p} \leq \underline{n} \,\}.
\]
The \textbf{prime index function}
$\mathrm{primeIdx} : \mathbb{P}_\tau \to \tau\text{-Idx}$
is the inverse of $\mathrm{nthPrime}$:
for each prime $\underline{p}$,
$\mathrm{primeIdx}(\underline{p}) = \underline{k}$
where $\mathrm{nthPrime}(\underline{k}) = \underline{p}$.

Proof / Justification

This item is definitional. No manuscript proof is required.

Source Context

  • Registry source: book-01.jsonl line 69
  • Manuscript source: 2nd-edition/book-i-categorical-foundations/02_mainmatter/part04/ch16-primes-divisibility.tex lines 364-391

Lean / Formalization Notes

  • Formalization: formalized
  • Module: TauLib.BookI.Coordinates.PrimeEnumeration
  • Name: Tau.Coordinates.nthPrime

Dependencies

  • Canonical: I.D19b

Generated by later projection phases.

Generated by later projection phases.

Revision Notes

  • 2026-04-24: Initial pilot migration.

Identifiers

  • Corpus ID cid001035
  • Primary alias DEF0033
  • Type Definition
  • Status canonical
  • Visibility public
  • Version v1

Aliases & legacy IDs

I.D19fprime-enumeration-and-sievedef:prime-enumeration

Release lines

corpus_v3_workingcorpus_v2

Relations

Appears in (1)

Sources

  • Monograph cid000023Book I, Part 4, Chapter 16 (Part IV)

Version & History

  • v1 · 2026-05-10 imported from v2 registry

Status disclaimer

A Corpus Item page reports the program's current internal record for this item. It does not imply external verification, scientific consensus, or final proof unless explicitly stated. Read it together with its dependencies, formalization status, and the program's overall stance.

Save or share this page for inspection

Download a portable dossier, copy a reviewer note, or send this page to someone who can inspect it.

Email to expert