pub enum Commands {
Show 38 variants
Explain {
contract: PathBuf,
format: String,
binding: Option<PathBuf>,
},
Validate {
contract: PathBuf,
},
CheckParity {
contract: PathBuf,
},
Scaffold {
contract: PathBuf,
trait: bool,
output: Option<PathBuf>,
},
ExtractPytorch {
target: String,
output: Option<PathBuf>,
},
Codegen {
contract_dir: PathBuf,
output: Option<PathBuf>,
},
Kani {
contract: PathBuf,
},
Probar {
contract: PathBuf,
binding: Option<PathBuf>,
},
Status {
contract: PathBuf,
},
Audit {
contract: PathBuf,
binding: Option<PathBuf>,
coq: bool,
flux: bool,
},
Diff {
old: PathBuf,
new: PathBuf,
},
Coverage {
contract_dir: PathBuf,
binding: Option<PathBuf>,
fuzz: bool,
reverse: Option<PathBuf>,
enforcement: Option<PathBuf>,
},
Generate {
contract: PathBuf,
output: PathBuf,
binding: Option<PathBuf>,
readme: bool,
ci: bool,
},
Graph {
contract_dir: PathBuf,
format: String,
},
Equations {
contract: PathBuf,
format: String,
},
Lean {
contract: PathBuf,
output_dir: Option<PathBuf>,
},
LeanStatus {
path: PathBuf,
},
ProofStatus {
path: PathBuf,
binding: Option<PathBuf>,
verify_bindings: Option<PathBuf>,
format: String,
table: bool,
kind: Option<String>,
},
Lint {Show 26 fields
contract_dir: PathBuf,
min_score: f64,
binding: Option<PathBuf>,
format: Option<String>,
severity: Option<String>,
strict: bool,
suppress: Option<String>,
suppress_rule: Option<String>,
suppress_file: Option<String>,
rule: Vec<String>,
config: Option<PathBuf>,
diff_ref: Option<String>,
trend: bool,
show_trend: bool,
no_cache: bool,
cache_stats: bool,
suggest: bool,
baseline: Option<PathBuf>,
fix: bool,
watch: bool,
coverage: bool,
min_coverage: Option<f64>,
crate_dir: Option<PathBuf>,
min_level: Option<String>,
explain: Option<String>,
strict_test_binding: bool,
},
Score {
path: PathBuf,
binding: Option<PathBuf>,
format: String,
min_score: Option<f64>,
summary: bool,
top_gaps: usize,
weights: Option<String>,
exit_code: bool,
pvscore: bool,
},
Query(QueryArgs),
Invariants {
contract: PathBuf,
},
Coq {
contract: PathBuf,
},
Fuzz {
contract: PathBuf,
},
Mirai {
contract: PathBuf,
},
Flux {
contract: PathBuf,
},
Tla {
contract_dir: PathBuf,
},
Book {
contract_dir: PathBuf,
output: PathBuf,
update_summary: bool,
summary_path: Option<PathBuf>,
},
Infer {
crate_dir: PathBuf,
binding: PathBuf,
contract_dir: PathBuf,
top: usize,
},
Unlock {
contract: PathBuf,
reason: String,
},
Roofline {
contract_dir: PathBuf,
params: u64,
bits: u32,
hardware: String,
format: String,
},
Pipeline {
pipeline: PathBuf,
format: String,
},
Kaizen {
contract_dir: PathBuf,
src_root: Option<PathBuf>,
repo: Option<String>,
dry_run: bool,
codegen: bool,
fix: bool,
json: bool,
min_score: Option<f64>,
},
Certify {
contract_dir: PathBuf,
config: Option<PathBuf>,
output: Option<PathBuf>,
},
VerifyStructure {
contract_dir: PathBuf,
config: Option<PathBuf>,
model: Option<PathBuf>,
},
VerifyPipeline {
contract_dir: PathBuf,
format: String,
},
VerifyBindings {
binding: PathBuf,
output: Option<PathBuf>,
crate_name: Option<String>,
},
Migrate {
contract_dir: PathBuf,
dry_run: bool,
},
}Expand description
Available subcommands for the pv CLI
Variants§
Explain
Explain a contract in detail
Validate
Validate a YAML kernel contract
CheckParity
Execute cross_check_command per row of a parity-matrix contract (SEMANTIC gate)
Scaffold
Generate Rust trait + test scaffolding from a contract
ExtractPytorch
Extract kernel equations from PyTorch source into YAML
Codegen
Generate Rust debug_assert!() from YAML contracts
Kani
Generate Kani proof harnesses from a contract
Probar
Generate probar property tests from a contract
Fields
Status
Show contract status (equations, obligations, coverage)
Audit
Run traceability audit on a contract
Fields
Diff
Diff two contract versions and suggest semver bump
Fields
Coverage
Show cross-contract obligation coverage report
Fields
Generate
Generate all artifacts (scaffold, kani, probar) to disk
Fields
Graph
Show contract dependency graph
Fields
Equations
Display equations from a contract
Lean
Generate Lean 4 definitions and theorem stubs
LeanStatus
Report Lean 4 proof status across contracts
ProofStatus
Report hierarchical proof levels (L1–L5) across contracts
Fields
Lint
Run all contract quality gates (validate + audit + score)
Fields
strict_test_binding: boolEnable strict test-binding gate (PV-VER-002): cross-checks every
falsification_tests[].test cargo invocation against #[test] fns
in the source tree. Catches drift classes that PV-VER-001 misses
(suffix drift, module-path drift, convention drift, “or equivalent”
placeholders). Default emits Warning; combine with --strict to
promote to Error and fail CI. Issue #1510.
Score
Score contracts or a codebase directory
Fields
Query(QueryArgs)
Search contracts by intent, regex, or literal match
Invariants
Generate type invariant trait + Kani preservation harnesses
Coq
Generate Coq theorem stubs from a contract
Fuzz
Generate libfuzzer fuzz targets from a contract
Mirai
Generate MIRAI annotations from a contract
Flux
Generate Flux refinement types from a contract
Tla
Generate TLA+ specification from contract dependency DAG
Book
Generate mdBook pages for contracts
Fields
Infer
Infer contracts and bindings for unbound functions in a crate
Fields
Unlock
Remove enforcement level lock from a contract (requires –reason)
Fields
Roofline
Compute roofline ceilings from contract equations
Fields
Pipeline
Validate a pipeline contract (cross-repo verification)
Fields
Kaizen
Fleet-wide contract enforcement (kaizen loop)
Fields
Certify
Produce whole-model proof certificate (runs verify-pipeline + verify-structure)
VerifyStructure
Verify model architecture structure matches contracts
VerifyPipeline
Verify compositional shape flow across contract dependency graph
VerifyBindings
Generate a Rust test that verifies all bound functions exist
Fields
Migrate
Migrate old-format contract YAMLs to current schema (GH-67)
Trait Implementations§
Source§impl FromArgMatches for Commands
impl FromArgMatches for Commands
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§impl Subcommand for Commands
impl Subcommand for Commands
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Self can parse a specific subcommand