Start with Getting Started, then use the
Case Studies for complete file and IEx examples across the
public analysis workflows. Use Test Performance Calibration
to choose test-run job/thread settings. The guides below provide deeper detail. Interactive examples run in
iex -S mix; test commands run from the repository root.
| Guide | Purpose |
|---|---|
| Verify Lean declarations | Supply a proof for a translated function, including a module compiled in IEx |
| Compare cost contracts and reuse a verified bound | Derive an integer cost bound, compare contracts, and transfer the bound |
| Port models and supported clients | Check finite traces, conditional model completion, and a supported Core Erlang client |
| Public RPC verification workflow | Verify RPC models, conditional completion and restricted source bounds through the shared boundary |
| Restricted RPC source connection | Connect a helper-contracted Core client to finite normal-execution and conditional cost theorems |
| Conditional RPC completion | Prove termination or success under explicit continuation progress, separately from cost safety |
| RPC participant cost safety | Prove conditional participant bounds and replay unary integer server contracts |
| RPC mailbox and conditions | Check selective receive, ordered matching, queue retention and explicit message/count conditions |
| Initial RPC model | Check a supplied single-attempt protocol and correlation tokens without claiming mailbox semantics or cost bounds |
| Symbolic list bounds | Understand traversal bounds and find list, input-contract, and composition examples |
The module documentation contains additional API examples. The proof reference records what Lean checks and which conditions remain assumptions. The following cases reuse those proof rules:
| Verification case | Detailed account |
|---|---|
| Integer sizes, arithmetic, variance, and CRC expressions | Integer costs |
| Membership, reversal, and conditional reversal | List bounds guide |
| Map and struct operations | Map and struct proofs |
| One ring-buffer insertion | Single-insertion model |
| Consecutive ring-buffer insertions and FIFO contents | Insertion sequences |
| Fixed progress and periodic resets | Shared transition rule |
| Port outcomes, finite prefixes, and supported client correspondence | Port workflow |
| Contract comparison and verified bound reuse | Public API evaluation |
To print the integer workflow's upper-bound formulas, contracts, conditions, and checked theorem names:
REDUCTION_BOUNDS_REPORT=1 mix test --only cost_contract_workflow --trace
To print the Port workflow's formulas, conditions, completion assumptions, verification scopes, diagnostics, and checked theorem names:
REDUCTION_BOUNDS_REPORT=1 mix test --only port_workflow
To reproduce the tagged list and ring-buffer verification cases:
mix test --only case_study --trace
These commands evaluate mathematical cost models. They do not measure runtime reductions or execution time. See the roadmap for work beyond the checked prototype.