/rocq:autoformalizefrom rocq
Extracts claims from informal sources (PDF, markdown, URL), drafts Rocq proof skeletons, and autonomously proves them in a single unattended pipeline.
Ships in rocq. Installing the plugin adds it to Claude Code.
Autonomous end-to-end formalization: extracts claims from a source, drafts Rocq skeletons, and proves them — all unattended. Combines /rocq:draft and /rocq:autoprove in a single command.
/rocq:autoformalize --source ./paper.pdf --claim-select=first --out=Paper.v
/rocq:autoformalize --source ./paper.pdf --claim-select=regex:"Theorem.*" --out=Paper.v --rigor=checked
/rocq:autoformalize --source ./notes.md --claim-select=named:"Main Lemma" --out=Lemma.v
| Arg | Required | Default | Description |
|---|---|---|---|
| --source | yes | — | File path, URL, or PDF for claim extraction. |
| --claim-select | yes | — | first | named:"..." | regex:"...". |
| --out | yes | — | Target file for formalized claims. |
| --rigor | no | sketch | sketch | checked. |
| --draft-mode | no | skeleton | skeleton | attempt. |
| --max-cycles | no | 20 | Hard stop: max total cycles per claim |
| --max-total-runtime | no | 120m | Hard stop: max total runtime |
| --max-stuck-cycles | no | 3 | Hard stop: max consecutive stuck cycles per claim |
| --deep | no | stuck | never, stuck, or always |
| --deep-sorry-budget | no | 2 | Max Admitted per deep invocation |
| --deep-time-budget | no | 20m | Max time per deep invocation |
| --commit | no | auto | auto | never |
--source (filtered by --claim-select) at startupnext_action=redraft: re-draft; commit if allowed## Autoformalize Summary
**Reason stopped:** [queue-empty | max-stuck | max-cycles | max-runtime | user-stop]
| Metric | Value |
|--------|-------|
| Claims attempted | N/M |
| Admitted after | S |
| Cycles run | C |
| Time elapsed | T |
**Handoff recommendations:**
- [If incomplete: "Run /rocq:formalize for guided work on remaining claims"]
- [If stuck: "Review stuck blockers: file:line, file:line"]
- [If clean: "All Admitted filled. Run /rocq:checkpoint to save."]
guardrails.sh rules apply./rocq:draft — Skeleton-only drafting/rocq:formalize — Interactive synthesis/rocq:autoprove — Autonomous proving (no drafting)What the command file sets; muted values are Claude Code's defaults
formalization, theorem-proving, rocq, proof-assistant, automation
7-day visitors to each command page
11 commands in this plugin
/autoproveAutonomous multi-cycle theorem proving with hard stop rules/checkpointSave progress with a safe commit checkpoint/doctorDiagnostics, cleanup, and migration help/draftDraft Rocq declaration skeletons from informal claims/formalizeInteractive formalization — drafting plus guided proving/golfImprove Rocq proofs for directness, clarity, performance, and brevitynpx claudepluginhub llm4rocq/rocq-skills --plugin rocqOther plugins' commands for the same job