Kernel-checked rank-one certificates #
This module is the small handwritten soundness layer for externally generated rank-one witnesses on a fixed finite graph. A certificate contains only passive data:
The Boolean checker evaluates degrees, Laplacians, and pointwise inequalities
inside Lean. The soundness theorem then turns a successful check into
BNExists G 1 d. Consequently a C (or other) program may search for and emit
the data, but it is not part of the trusted proof.
Our script convention agrees with ChipFiringWithLean.prin: the checked
residual is D - q + prin G sigma, equivalently D - q - L sigma.
An effective degree-one divisor consists of a single chip at one vertex.
Passive certificate data for a rank-one divisor on a fixed graph.
- divisor : CFDiv G
The proposed divisor whose rank is to be certified as at least one.
- scripts : G.V → firingScript G
The proposed firing script for each removed-chip vertex; residual effectivity is checked by
ValidAt.
Instances For
Executable pointwise effectivity test.
Equations
- Utilities.Certificate.RankOne.checkEffective D = decide (∀ (v : G.V), 0 ≤ D v)
Instances For
Executable check of the script associated to one removed chip.
Equations
- certificate.checkAt q = Utilities.Certificate.RankOne.checkEffective (certificate.residual q)