Pith. sign in
module module moderate

IndisputableMonolith.Foundation.PrimitiveRecognitionCalculus.PRCNativeCostMinimalityCertificate

show as:
view Lean formalization →

Certificate layer for native cost minimality in the Primitive Recognition Calculus. It introduces a Liouville-type sign on rational displays and a twist display built from it, together with the elementary multiplicative identities needed downstream. Anyone proving structural ledger identities for PRC native cost cites this module. The content is definitional plus short algebraic lemmas on prime-factor parity.

claimOn rationals, define the Liouville-type sign $\lambda(q)=(-1)^{\Omega(\mathrm{num})+\Omega(\mathrm{den})}$ of a reduced fraction $q$ (with $\lambda(0)=+1$), and the associated twist display. Then $\lambda$ is completely multiplicative on $\mathbb{Q}$, takes values in $\{\pm 1\}$, equals $-1$ on every prime, and satisfies the elementary identities $\lambda(q)^2=1$, $\lambda(1)=1$, $\lambda(-1)=1$, and $\lambda(q^{-1})=\lambda(q)$.

background

Primitive Recognition Calculus works with rational displays of recognition cost. Native cost minimality (imported from PRCNativeCostMinimality) needs a discrete parity invariant that tracks how numerator and denominator factor, without leaving the rational setting.

The Liouville-type sign is exactly that invariant: for a reduced fraction, raise $-1$ to the total number of prime factors counted with multiplicity in numerator and denominator. Mathlib's totalized big-Omega sends $0$ to $0$, so the sign is $+1$ at zero; on every prime it is $-1$, and everywhere it lands in ${\pm 1}$. The twist display packages this sign for ledger bookkeeping.

The module sits in the Foundation/PRC stack: it does not redefine $J$-cost or the forcing chain, but supplies the arithmetic certificate that later structural-ledger arguments consume when they compare native cost presentations.

proof idea

Most of the file is definitional: liouvilleSign via totalized cardFactors on num/den of a reduced rational, and liouvilleTwistDisplay built from it. The supporting lemmas are short algebraic facts: multiplicativity under product and inverse, evaluation at $0,1,-1$ and at prime naturals, non-vanishing, and $\lambda(q)^2=1$. Cross-multiplication identities for numerator/denominator under rational products close the bookkeeping. No deep analytic number theory; pure finite arithmetic on $\mathbb{Q}$.

why it matters in Recognition Science

PRCNativeCostStructuralLedger imports this module, so every structural ledger identity that needs a multiplicative $\pm 1$ certificate on rational cost displays routes through these definitions. In the Recognition stack this is bookkeeping infrastructure for native cost minimality certificates inside Primitive Recognition Calculus, not a forcing-chain step (T5–T8) itself. It keeps the parity of prime content available as a first-class Lean object so later ledger comparisons stay inside the native rational presentation rather than floating into real analysis.

scope and limits

used by (1)

From the project-wide theorem graph. These declarations reference this one in their body.

depends on (1)

Lean names referenced from this declaration's body.

declarations in this module (60)