aprender-contracts-0.31.1 has been yanked.
aprender-contracts
Provable contracts for the Aprender ML framework — YAML contract parsing, validation, lint reporting, and falsification scaffolding. 968 contract files validated, 1,371 tests.
Previously published as
provable-contracts.
Install
[]
= "0.29"
Or with cargo-add:
Quick Start
use ;
use FalsificationTest;
// Generate falsification scaffold for a contract
let contract = loader.get?;
let tests: = contract.falsification_tests;
for test in &tests
Key Types
| Type | Description |
|---|---|
ContractLoader |
Loads and indexes YAML contracts from a directory tree |
LintReport |
Aggregated lint results: errors, warnings, contract count |
FalsificationTest |
A single (precondition, postcondition) pair for Kani harness generation |
ContractSchema |
Parsed representation of one YAML contract file |
Features
- YAML contract parsing with JSON Schema validation
- Lint rules: missing falsification conditions, placeholder preconditions, schema conformance
- Falsification test scaffolding for Kani harness generation
- Used by
apr qato enforce 405 provable contracts across all 70 crates
Documentation
License
MIT. See LICENSE.