Re-exports§
pub use super::composition::ShapeContract;pub use super::composition::ShapeExpr;
Modules§
Structs§
- Contract
- A complete YAML kernel contract.
- CoqDefinition
- A Coq definition derived from a contract equation.
- CoqObligation
- A link between a proof obligation and a Coq lemma.
- CoqSpec
- Coq verification specification for a contract.
- Enforcement
Rule - An enforcement rule from the contract.
- Equation
- A mathematical equation extracted from a paper (Phase 1 output).
- Falsification
Test - A Popperian falsification test.
- Kani
Harness - A Kani bounded model checking harness definition.
- Kernel
Phase - Kernel
Structure - Kernel phase decomposition.
- Lean
Proof - Phase 7: Lean 4 theorem proving metadata for a proof obligation.
- Metadata
- Contract metadata block.
- Proof
Obligation - A proof obligation derived from an equation.
- QaGate
- QA gate definition for certeza integration.
- Type
Invariant - A type-level invariant (Meyer’s class invariant).
- Verification
Summary - Phase 7: Verification summary across all obligations in a contract.
Enums§
- Applies
To - Contract
Kind - The kind of contract artifact. Determines which validation rules apply.
- Enforcement
Level - Per-contract enforcement level (gradual enforcement, Section 17).
- Kani
Strategy - Lean
Status - Status of a Lean 4 proof.
- Obligation
Type
Functions§
- parse_
contract - Parse a YAML contract file into a
Contractstruct. - parse_
contract_ str - Parse a YAML contract from a string.
- validate_
contract - Validate a parsed contract for completeness and consistency.