Expand description
Contract inference engine.
Scans a crate’s public API, matches against existing contract equations, and suggests bindings + new contracts for unbound functions.
Three matching strategies:
- Name match: function name ≈ equation name (Levenshtein + stemming)
- Module match: module path maps to contract tier/domain
- Signature match: parameter types imply domain (f32 slices → kernel)
Structs§
- Contract
Suggestion - A suggestion to create a new contract for a function with no match.
- Infer
Result - Result of running inference on a crate.
- Inferred
Binding - A suggested binding for an unbound function.
Enums§
- Match
Strategy - How a match was produced.
Functions§
- format_
binding_ entry - Generate a binding.yaml entry for an inferred binding.
- format_
contract_ stub - Generate a contract YAML stub for a new contract suggestion.
- infer
- Run inference: scan crate, match against contracts, suggest bindings.