Re-exports§
pub use artifact::classify_artifact;pub use artifact::validate_artifact;pub use artifact::ArtifactKind;pub use super::composition::ShapeContract;pub use super::composition::ShapeExpr;pub use super::kaizen::KaizenRecord;pub use super::kaizen::KAIZEN_STATUSES;
Modules§
- artifact
- What a
.yamlfile undercontracts/actually IS, and how to validate it. - composition
- kaizen
- Kaizen improvement records (
metadata.kind: kaizen).
Structs§
- Beat
- Parameters of a head-to-head BEAT benchmark (
metadata.kind: beat-benchmark, PMAT-741): a falsifiable, CI-wired claim that aprender meets-or-beats an incumbent (scikit-learn / PyTorch / Unsloth / Ollama·llama.cpp) on the incumbent’s own canonical task — the measurement backbone of the four-pillar “replace AND beat” mission. Required-shape is enforced byvalidate_beat_benchmarkin the validator (BEAT-001..007). - 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.
- Crux
Story - One row of the CRUX master registry’s
stories:list. - 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 - Beat
Outcome - The outcome of evaluating a measured value against a
Beat’s pinned threshold — the falsifiable verdict at the heart ofapr beat-run. - Contract
Kind - The kind of contract artifact. Determines which validation rules apply.
- Enforcement
Level - Per-contract enforcement level (gradual enforcement, Section 17).
- Intake
Status - Intake status of a CRUX competitive-research story (
metadata.intake_status). - Kani
Strategy - Lean
Status - Status of a Lean 4 proof.
- Obligation
Type
Constants§
- CONTRACT_
TOP_ LEVEL_ FIELDS - Every top-level key
Contractdeserializes, in declaration order.
Functions§
- is_
contract_ yaml - Is
patha.yamlfile the contract schema owns? - 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.