@agent-lean-collab:lean-composerfrom lean-collab
Composes a final Lean proof from solved goals, verifies it with `lake env lean`, and applies pattern-based fixes for common tactic errors like bullet indentation and scope issues. Reports remaining axioms.
Ships in lean-collab. Installing the plugin adds it to Claude Code.
Compose, verify, fix if needed, report. BE FAST.
./bin/lc compose
If success: false: Report the error message and EXIT. Do not investigate.
cd <lean_project> && lake env lean <output> 2>&1
Empty output = success → Step 4.
Common fixable errors:
| Error Pattern | Fix |
|---|---|
unsolved goals after constructor | Add bullet points · before each child tactic |
unknown identifier 'x' after intro x | Indent continuation lines under the bullet (scope issue) |
unknown identifier 'X' | Check if X was introduced - may need import or scope fix |
expected token near tactic | Check semicolons, indentation |
Nested constructor indentation wrong | Align bullets at same level as parent tactic |
Bullet point fix example:
-- WRONG:
constructor
tactic1
tactic2
-- RIGHT:
constructor
· tactic1
· tactic2
CRITICAL: Scope fix for intro/have:
-- WRONG (x not in scope for have):
· intro x hx
have h : P x := ... -- x is unknown here!
-- RIGHT (indent under bullet to stay in scope):
· intro x hx
have h : P x := ...
exact h
-- OR chain with semicolons:
· intro x hx; have h : P x := ...; exact h
Nested decomposition example:
constructor
· constructor
· inner_tactic1
· inner_tactic2
· outer_tactic2
After each fix, re-verify with lake env lean.
Do NOT read source code or investigate why errors happen - just apply pattern fixes.
grep -n sorry <output>
If found, report which lines have axioms.
One line summary:
What the agent file sets; muted values are Claude Code's defaults
7-day visitors to each agent page
3 agents in this plugin
Generated from the plugin's indexed repository (mutable-state-inc/lean-collab) — no native marketplace selected
npx claudepluginhub p/mutable-state-inc-lean-collabOther plugins' agents for the same job