Install
$ agentstack add skill-r-irbe-proof-skills-lean-proof-review ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
lean-proof-review
> ⚠️ MANDATORY (hot-tier): layers L1 (soundness) and L2 (statement) are > hard gates — a failure at either MUST block sign-off, regardless of L3/L4. > Skipping Persist = incomplete.
Routing
- USE FOR: auditing a single Lean 4 proof or file across the 4-layer checklist (L1 soundness, L2 statement, L3 non-triviality, L4 quality); cross-checking that imported tactics from the project automation stack are used correctly; spotting common pitfalls (vacuous truth, unused hypothesis, broken simp set, scope drift).
- DO NOT USE FOR: authoring the proof (delegate to
@lean-proof); convening a multi-agent review (delegate to@lean-review-council); running the CI scripts (delegate to@lean-enforcement). - TRIGGERS: proof review, audit proof, verify Lean, 4-layer checklist, lean-pitfalls, proof quality.
Behavioural rules (G-*)
- G-1 (MUST): The reviewer MUST run the four layers in order (L1 → L2 → L3 → L4); a failure at L1 or L2 MUST halt the review. [Trace: AC-01]
- G-2 (MUST): The reviewer MUST verify the theorem statement matches the source spec / paper / requirement before judging the proof. [Trace: AC-02]
- G-3 (MUST NOT): The reviewer MUST NOT silently rewrite the proof; suggested rewrites MUST be flagged as suggestions for the author. [Trace: AC-03]
- G-4 (SHOULD): The reviewer SHOULD recommend the higher-quality tactic when a lower-priority one was used unnecessarily (see [
REFERENCE.md](./REFERENCE.md) "Proof Search Priority"). [Trace: AC-04] - G-5 (MUST): A non-trivial theorem with a one-tactic
decide/aesop/grindclose MUST be flagged for L3 (non-triviality) review. [Trace: AC-05] - G-6 (SHOULD NOT): The reviewer SHOULD NOT mark a proof "approved" without confirming
lake buildis green on the containing file. [Trace: AC-06] - G-7 (MUST): Every flagged finding MUST cite the layer, the line(s), and the rule from
REFERENCE.mdorGUARDRAILS.md. [Trace: AC-07] - G-8 (MUST): On any guard failure the skill MUST escalate per §Recovery & STOP. [Trace: AC-08]
Workflow
- Discover [discover] — read the target file, locate the theorem(s), find the source spec and any prior review record.
- L1 soundness [validate] — confirm no
sorry, noadmit, nosorryAx; defer to@lean-enforcementfor axiom audit if needed. - L2 statement [validate] — diff the theorem statement against the spec / paper; halt if it has drifted.
- L3 non-triviality [validate] — confirm the hypothesis is non-vacuous; spot pattern-match for hidden trivialities.
- L4 quality [validate] — apply the proof-search priority table; flag tactic mis-selection, unused hypothesis, fragile rewrite chains; suggest improvements but do NOT apply them.
- Persist [persist] (MANDATORY) — write the review record (per-layer status, findings, suggestions) to the repository's review log, link it from the theorem, update sign-off state. Skipping Persist = incomplete.
Recovery & STOP
- L1 fails (
sorry/admit/sorryAx) → STOP, do NOT proceed to L2-L4; escalate to author. - L2 fails (statement drift) → STOP, escalate to spec owner before any proof judgement.
lake buildred on containing file → STOP, ask author to fix build first.- Confidence AI agents commonly: rewrite the proof inline instead of suggesting changes;
> approve at L4 without confirming L1/L2 passed; miss vacuous-truth L3 > failures behind a clean aesop close; cite a pitfall without quoting line > numbers or the source rule. Full registry: GUARDRAILS.md §Agent failure > taxonomy.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: r-irbe
- Source: r-irbe/proof-skills
- License: Apache-2.0
- Homepage: https://github.com/r-irbe/proof-skills
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.