/odin-formal:writing-rocq-proofsfrom ODIN Formal
Writes, reviews, and maintains Rocq 9.x (formerly Coq) proofs, including legacy Coq codebase migration through the rename. Covers proof loop, skeleton-first methodology, and axiom auditing.
Ships in ODIN Formal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
| Field | Bound contract |
|---|---|
| Trigger | The task is to write, review, or maintain Rocq 9.x proofs, or to migrate a legacy Coq codebase through the Coq to Rocq rename. Methodology stays with proof-driven. |
| Authority | Reversible local: writes only Rocq source files, project build files such as _CoqProject and opam files inside the target project, and scoped mechanical Rocq checks; rollback is version control. No remote mutation. |
| Side effect | Local writes to .v sources, project build files, and migration edits. No remote mutation. |
| Done | The project compiles under the pinned Rocq version, and Print Assumptions on each delivered theorem lists only the axioms the project declares. |
opam install rocq-prover.9.2.0 or as the Rocq Platform bundle. Docs: rocq-prover.org.rocq repl..v sources and theorem statements; for a migration, the legacy Coq project..v extension, rocq compile emits .vo files that are specific to the compiling Rocq version, and -Q directory dirpath maps a directory to a logical prefix so Require resolves.opam install rocq-prover.<version>, and prove in rocq repl or an editor session with VsCoq or Proof General. Compile with rocq compile file.v; for a project, generate a Makefile with rocq makefile -f _CoqProject -o CoqMakefile, where _CoqProject lists sources and -Q/-R mappings. Done when: the repl or editor runs against the project's pinned version and a Require of project code resolves.Admitted, and compile: the skeleton type-checks while each Admitted marks an independent work unit. Separate subgoals with focused bullets so each stays addressable. Done when: the skeleton compiles and every Admitted is an identified work unit.intros, decompose with destruct and induction, transform with rewrite and apply, and close with a terminal step such as exact or reflexivity. Prefer structured steps over long apply chains, and close every finished proof with Qed. Done when: every Admitted is replaced by a proof that closes with Qed.Print Assumptions <theorem> on each delivered theorem: it displays the axioms, parameters, and variables the theorem depends on. An Admitted helper or an Axiom declaration appears in that output, so the kernel report is the gate, not a text search. Done when: each delivered theorem's footprint matches the declared axioms and no Admitted remains.coq is replaced by rocq-core, the prover ships as rocq-prover, and ported packages take rocq-* names. Rewrite From Coq Require Import X to From Stdlib Require Import X, because the Coq.* standard-library namespace became Stdlib.* in 9.0. Compile and fix each deprecation at its site: 9.1 added the modular integer arithmetic theory with about 450 lemmas and deprecates the Rtauto and rtauto.Bintree plugins. The legacy coqc, coqtop, and coq_makefile shims still exist in 9.x; remove calls to them as the migration lands. Done when: the project builds under the pinned Rocq 9.x with rocq-* package names, Stdlib imports, and no deprecation warning on delivered files.Compile error: fix the source at the reported span and rebuild; do not widen scope. Stuck goal: record the goal, the hypotheses, and the tactics tried, then report them; do not close a delivered theorem with Admitted. Axiom leakage: Print Assumptions names an unexpected axiom, so trace it to its Axiom declaration or Admitted proof and remove it before delivery. A dependency has no Rocq 9 port: pin the last compatible version or port the dependent module; do not fake the import. Non-convergent proof: report the stuck goal and the evidence; do not weaken the statement.
.v sources that compile under the pinned Rocq version with proofs closed by Qed, delivered theorems whose Print Assumptions footprint matches the declared axioms, and for a migration, a build on rocq-* package names with Stdlib imports and no deprecation warning on delivered files.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
rocq, coq, proof-assistant, theorem-proving, formal-verification
npx claudepluginhub outlinedriven/odin-claude-plugin --plugin odin-formal9 skills in this plugin
/bounded-model-checking-cUse when C or C++ code needs memory-safety or undefined-behavior guarantees proved with CBMC, or ACSL contracts checked with Frama-C Eva or WP. Not for choosing the proof policy: use proof-driven./deductive-verification-with-dafny-and-why3Use when an imperative program needs pre-conditions, post-conditions, and loop invariants proved automatically by SMT in Dafny or Why3, short of a tactic prover./f-star-effectful-verificationUse when effectful, security-sensitive code needs refinement-typed, SMT-backed verification in F*, in the HACL* or Project Everest style./rust-formal-verificationUse when Rust code, especially unsafe or panic-critical paths, needs a Kani, Verus, or Creusot harness written, run, and its failure read. Not for choosing the proof policy: use proof-driven./smt-solving-with-z3-cvc5Use when a query needs direct SMT solving, an unsat core needs debugging, or another tool reports a solver timeout or unknown. Not for deciding what to prove: use proof-driven./writing-isabelle-proofsUse when a proof needs Isabelle/HOL, its Sledgehammer automation, or an AFP session. Not for Lean 4: use writing-lean-proofs.Other plugins' skills for the same job