Effectful verification in F
SkillSecurityUse when effectful, security-sensitive code needs refinement-typed, SMT-backed verification in F*, in the HACL* or Project Everest style.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the Effectful verification in F skill
What this skill tells your AI
The instructions your AI receives, as published by outlinedriven/odin-claude-plugin in plugins/odin-formal/skills/f-star-effectful-verification/SKILL.md and read by ahel’s review.
Contract
| Field | Bound contract |
|---|---|
| Trigger | The task is to verify effectful code with F* refinement types and the effect system, with obligations discharged to SMT, in the HACL* or Project Everest style. Methodology stays with proof-driven. |
| Authority | Reversible local: writes only F* source and interface files, extraction configuration, and project build files inside the target project; rollback is version control. No remote mutation. |
| Side effect | Local writes to .fst and .fsti files and to build or extraction configuration. No remote mutation. |
| Done | fstar.exe verifies the module with admit_smt_queries at its default false, the assume val ledger names every trust boundary, and extraction runs for the chosen codegen target. |
Inputs
- F* release v2026.08.30 (dated releases ship weekly), installed with
opam install fstaror fetched as the dated binary release. The binary package shipsbin/fstar.exeand its own Z3; a source install must supply Z3. - The module to verify, its interface (
.fsti) where the contract is split from the implementation, and the extraction target. - Editor support:
--idemode, fstar-mode for Emacs, fstar-vscode-assistant for VS Code.
Procedure
- Run the verifier on a trivial file. Verify with
fstar.exe File.fst: each failed obligation comes back as an error at a source span, for exampleSample.fst(11,26-11,31): (Error 19) Subtyping check failed, followed by the error count. Done when: a trivial module verifies with zero reported errors. - Type the fragment before proving it. Write refinements in the
x:t { e }form so invalid states fail to typecheck. Mark total definitions with the default effectTot, an abbreviation of the primitivePURE; keep specification-only computation inGHOST; give stateful code theMLeffect withrequiresandensurescontracts on the heap. Done when: the file typechecks, every definition's effect is stated, and each effect is minimal. - Discharge obligations one at a time. Read each error span, state the missing intermediate fact as an
assertor as a separatelemma, and re-run.--query_statsreports per-query SMT cost and is the first tool for a slow or failing query; scope option changes to a region with#push-options "..."/#pop-options. Done when: every reported obligation is discharged and the module verifies. - Gate against admitted queries. Keep
admit_smt_queriesat its default false for delivered code; a module that only verifies with it true is unproven. Eachassume valis a declared trust boundary: list it with its type and the plan to prove it or audit it. Done when: the module verifies at the defaults and theassume valledger names every trust boundary. - Extract. Extract with
--codegen OCamlor--codegen FSharp, adding search paths with--include PATH.GHOSTdefinitions stay out of extraction, so the emitted code carries only the verified computational content. Done when: extraction completes for the chosen target and the generated code matches the verified interfaces.
Failure and recovery
An SMT query fails or stalls: split it with intermediate asserts or a standalone lemma and inspect --query_stats before changing any option. Effect mismatch: the error names the heap operation, so add the missing requires or ensures, or purify the function. A caller cannot establish a precondition: strengthen the refinement on the definition rather than weakening the caller. Query admitted by mistake: re-run the module with admit_smt_queries false to expose it. Scope creep: stop and roll back to the last verified state.
Output
F* modules that verify with admit_smt_queries false, refinement-typed interfaces stating each definition's effect, the assume val ledger naming trust boundaries, and extracted output for the chosen codegen target.
Signals
- GitHub stars
- 35
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
f-star-effectful-verification- Source
- github.com/outlinedriven/odin-claude-plugin