Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By mutable-state-incv0.2.0MIT
Splits Lean 4 theorems into subgoals that parallel agents prove and share through Ensue Memory Network. Needs an Ensue API key, a Rust toolchain and a Mathlib-based Lean project.
Trending plugins
7-day copy clicks
Claude hands work to one, or you mention it with @.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
lean4, theorem-proving, mathlib, formal-verification, multi-agent, proof-automation, ensue
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Multi-agent collaborative theorem proving with Lean 4 and Ensue Memory Network.
Install elan (Lean version manager):
curl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh
Restart your terminal or source the environment:
source ~/.elan/env
Verify installation:
lean --version
lake --version
Your Lean project needs Mathlib. For a new project:
lake new my-project math
cd my-project
Install Mathlib from cache (recommended - saves hours of build time):
lake exe cache get
Then build:
lake build
For existing projects, add to your lakefile.lean:
require mathlib from git "https://github.com/leanprover-community/mathlib4"
Then run:
lake update
lake exe cache get
lake build
Install Rust:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Get an API key from ensue.dev.
git clone [email protected]:mutable-state-inc/lean-collab.git
cd lean-collab-plugin
make install
This compiles the Rust CLI and creates ./bin/lc.
echo "your-ensue-api-key" > .ensue-key
chmod 600 .ensue-key
Create .lean-collab.json in the plugin directory:
{
"theorem_id": "my-theorem",
"ensue_api_url": "https://api.ensue-network.ai",
"max_parallel_agents": 7,
"max_depth": 12,
"claim_ttl_seconds": 300,
"lean_project_root": "/absolute/path/to/your/lean/project"
}
| Field | Description | Default |
|---|---|---|
theorem_id | Unique identifier for your proof session | Required |
ensue_api_url | Ensue API endpoint | https://api.ensue-network.ai |
max_parallel_agents | Maximum concurrent worker agents | 12 |
max_depth | Maximum proof tree depth | 12 |
claim_ttl_seconds | Goal claim timeout in seconds | 300 |
lean_project_root | Absolute path to your Lean 4 project | Required |
Environment variables override config values:
export LEAN_COLLAB_MAX_PARALLEL_AGENTS=6
export LEAN_COLLAB_MAX_DEPTH=8
export LEAN_COLLAB_CLAIM_TTL=600
The CLI uses lake env lean to verify tactics against your Lean project. This requires:
lean_project_root pointing to a Lean 4 projectlake buildlake exe cache get for speed)# Initialize and create root goal
./bin/lc init --create-root \
--theorem "∀ x ∈ [0,π], sin(x) ≥ (2/π)x" \
--hypotheses "x : ℝ;;hx : x ∈ Set.Icc 0 Real.pi"
# Check proof progress
./bin/lc status # Overview of all goals
./bin/lc status <goal_id> # Details for specific goal
# Stream real-time events
./bin/lc listen --prefix proofs/
# Build final proof when ready
./bin/lc compose
./bin/lc claim <goal_id> # Claim a goal for work
./bin/lc unclaim <goal_id> # Release a goal
./bin/lc verify --goal <id> --tactic "..." # Verify a tactic
./bin/lc verify --goal <id> --tactic "..." --skeleton # Check types only (allows sorry)
./bin/lc decompose <id> --children X,Y --strategy S
./bin/lc backtrack <id> # Undo decomposition
./bin/lc abandon <id> # Give up on goal
./bin/lc axiomatize <id> --reason "..." # Accept as axiom (last resort)
./bin/lc search "query" --prefix tactics/ # Search collective intelligence
./bin/lc explore --goal <id> --tactic "..." # Test tactic interactively
./bin/lc suggest --goal <id> # Get tactic suggestions
Before running Claude, start the warm server in a separate terminal:
cd /path/to/lean-collab-plugin
./bin/lc warm
Keep this terminal open. The warm server:
/tmp/lean-warm.sockWithout the warm server, each verification cold-starts Lean and reloads Mathlib, which is very slow.
From the plugin directory (in a new terminal):
claude \
--plugin-dir /path/to/lean-collab-plugin \
--allowedTools "Bash,Read,Write,Edit,Task,Glob,Grep" \
--dangerously-skip-permissions
Once Claude is running, start the collaborative proving process:
Prove that <your theorem statement>.
Use /lean-collab to orchestrate.
Example:
7-day copy clicks
Generated from the plugin's indexed repository (mutable-state-inc/lean-collab) — no native marketplace selected
npx claudepluginhub p/mutable-state-inc-lean-collabBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground