npx claudepluginhub llm4rocq/rocq-skills --plugin rocq# Rocq Autoformalize 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. ## Usage ## Inputs | 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`. | | --draf...
/autoformalizeExtracts claims from PDFs/files/URLs via selectors, drafts Lean4 skeletons, auto-proves theorems iteratively, outputs to target .lean file.
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)