Machine-checked statements

A machine-checked mark says that the statement of a result has been written in Lean 4 against Mathlib and proved there. It says nothing about the Python implementation: a Lean build certifies a proposition, never the code that computes with it.

The specification file is frozen before the proof is attempted and audited on its own, so the question the audit answers is whether the Lean proposition is the registry statement, and only then does the proof have to go through. The workspace, its build instructions and its conventions are in the formal workspace README.

What is certified

StatementLean declarationFilesStatement audit
Proved hereExact weighted rank-two relocationD-RANK2-MOVEScoreQuantFormal.rank_two_relocationspec proofmatch after hardening
Proved hereExact finite D log-determinant gainD-LOGDET-GAINScoreQuantFormal.det_relocation_gainspec proofaudited, no verdict line
Derived from the literatureD leverage inequalityD-LEVERAGEScoreQuantFormal.leverage_inequalityspec proofmatch after hardening
Proved hereScalar core of the D exchange-violation lower boundD-EXCHANGE-SCALAR-COREScoreQuantFormal.scalarExchangeStrengthenedLowerBoundspec proofaudited, no verdict line
Proved hereFinite D exchange stability implies strict self-consistent VoronoiD-EXCHANGE-IMPLIES-VORONOIScoreQuantFormal.exchange_voronoispec proofmatch after hardening
Proved hereQuantitative D gain lower bound for a Voronoi violationD-EXCHANGE-VIOLATION-LOWER-BOUNDScoreQuantFormal.violation_log_gainspec proofmatch after hardening
Proved hereExact finite inductive closure / compilerD-FINITE-INDUCTIVE-CLOSUREScoreQuantFormal.closure_reproduces_labelsspec prooffixes verified with residue
Proved hereDuplicate rows inherit the merged atom's compiled labelD-CLOSURE-DUPLICATE-INHERITANCEScoreQuantFormal.closure_duplicatesspec prooffixes verified with residue
Proved hereMonotone exact D one-point exchangeD-EXCHANGE-TERMINATESScoreQuantFormal.d_exchange_terminatesspec prooffixes verified with residue

Every declaration above is checked by Lean 4.33.1 + Mathlib 4.33.1.

Outside the track

What the Lean build does not reach, and therefore does not certify:

  • Profiled Ds-optimality, whose finite geometry fails and whose certificates are brackets.
  • Population measure theory and every sample-to-population limit.
  • A solver stopping at a positive tolerance: the exact statements assume no gain is left on the table.
  • Geometric realizability is covered only in part, so its claim carries no machine-checked mark.
  • The Python and JAX implementation: a Lean build certifies a statement, never the code that computes it.
The proof chain and supporting modules

Each module is proved on the modules before it, so the last statement in the chain rests on every definition that precedes it. A dashed box is a module that is only partly done, and the claims it touches carry no mark.

The Lean modules in build order: Config, Relocation, DetGain, Leverage, ScalarExchange, ExchangeVoronoi, Merge, Closure, Termination, Corollaries, Counterexamples. Each rests on the modules before it.ConfigRelocationDetGainLeverageScalarExchangeExchangeVoronoiMergeClosureTerminationCorollariesCounterexamples
The Lean modules in build order.
Config

Weighted sample, cells, the binned information and the rank-one update identities.

Supporting definitions; it certifies no statement of its own.

Relocation

The exact rank-two relocation identity.

DetGain

The determinant ratio of a relocation, via Weinstein–Aronszajn.

ScalarExchange

The frozen scalar core of the exchange theorem.

Merge

Merging repeated rows changes none of the statistics the rule is built from.

Supporting definitions; it certifies no statement of its own.

Termination

Accepting only exact gains ascends, cannot cycle, and stops at a stable assignment.

Corollariesin part

Realizability of global optima, in part, and the earlier weaker termination fragments.

Counterexamples

Two exact boundary witnesses for the exchange theorem.

Supporting definitions; it certifies no statement of its own.

The axioms it is allowed

Every certified declaration is checked to depend on no axiom beyond propext, Classical.choice and Quot.sound, the ordinary classical foundation of Mathlib. Nothing in the chain is admitted by assumption.