Documentation

Complexitylib

Complexitylib #

The root module: importing it brings in the library's complete public surface. Import an area module (Complexitylib.Models, Complexitylib.Classes, …) instead to keep dependencies smaller.

Headline theorems #

Machine-checked with no sorry and no custom axioms — CI audits every Complexitylib declaration for dependencies beyond propext, Classical.choice, and Quot.sound (scripts/AxiomGuard.lean).

Cook–Levin: SAT is NP-complete.

Universal simulation.

Deterministic time hierarchy.

Structural containments. Complexity.P_subset_NP, Complexity.P_subset_PSPACE, Complexity.RP_subset_NP, Complexity.BPP_subset_PP, and the rest of the Complexitylib.Classes.Containments index.

Circuit lower bounds. Shannon's counting bound, gate-elimination (Circuit.card_essentialInputs_le_mul_size), Schnorr's XOR bound (Complexity.sizeComplexity_xorBool_ge), and Valiant's depth reduction (Complexity.Valiant.depth_reduction).