| name | lean-autonomous-swarm |
| description | Run a user-approved Lean swarm with clear file ownership, verifier roles, and strict zero-sorry verification. |
Lean Autonomous Swarm
Use this skill only when the user explicitly enabled multi-agent execution for the workflow.
Objective
Drive the workflow until the target Lean code:
- compiles successfully,
- has clean diagnostics,
- has no open goals, and
- contains no
sorry.
Delegation Rules
- Delegate only when the subtask is concrete and bounded.
- Give each child a clear role:
- file-specific prover
- lemma extractor
- verifier / build checker
- Do not let two child agents edit the same file concurrently.
- Acquire a file lock before editing a shared Lean file.
- If a file is locked by another agent, choose a different task or wait.
Verification Rules
- Keep one path focused on final verification.
- Do not declare success from partial progress.
- If the swarm stalls, summarize the blocker precisely instead of hiding it.