You can install this plugin from any of these themed marketplaces. Choose one, add it as a marketplace, then install the plugin.
Installation
Choose your preferred installation method below
A marketplace is a collection of plugins. Every plugin gets an auto-generated marketplace JSON for individual installation, plus inclusion in category and themed collections. Add a marketplace once (step 1), then install any plugin from it (step 2).
From All Plugins
Recommended
One-time setup for access to all plugins
When to use: If you plan to install multiple plugins now or later
A comprehensive Claude Skill for systematic development of formal proofs in Lean 4.
šÆ What is This?
This is a Claude Skill that teaches Claude how to work effectively with Lean 4 theorem proving. Claude Skills are custom tools that provide specialized knowledge and workflows, available across Claude.ai, API, and Code.
What this skill provides:
š Systematic workflow for proof development (structure ā helpers ā incremental filling)
š§ Type class management patterns for sub-Ļ-algebras and instance inference
The skill will automatically load when Claude detects you're working on Lean files!
Method 2: Manual Installation
Copy the skill to your local Claude skills directory:
# Clone the repository
git clone https://github.com/cameronfreer/lean4-theorem-proving-skill.git
cd lean4-theorem-proving-skill
# Copy to Claude skills directory
cp -r lean4-theorem-proving ~/.claude/skills/
# Verify installation
ls ~/.claude/skills/lean4-theorem-proving/
# Should show: SKILL.md
The skill is now available in all Claude sessions (Claude.ai, API, and Code)!
Method 3: Project-Specific (CLAUDE.md)
For project-specific use without installation:
Clone this repository
Copy relevant sections from lean4-theorem-proving/SKILL.md into your project's
CLAUDE.md
Or reference the skill file directly in your prompts
š Usage
Automatic Activation
Claude automatically loads this skill when you:
Work on .lean files
Mention Lean 4, theorem proving, or formal verification
Prove theorems or manage sorries/axioms
Ask about mathlib or type class issues
No manual invocation needed - Claude sees the skill in its chain of thought!
Explicit Invocation
You can explicitly request the skill if desired:
Use the lean4-theorem-proving skill to help me structure this proof
Query the Skill
Ask about specific guidance:
What does the Lean 4 skill recommend for managing sorries?
How should I handle type class inference issues?
š What the Skill Teaches
Core Workflow
Structure Before Solving - Outline proof strategy before writing tactics
Helper Lemmas First - Build infrastructure bottom-up
Incremental Filling - One sorry at a time, compile, commit, repeat
Type Class Management - Explicit instance handling for sub-structures
Key Principles
ā Always compile before commit (lake build is your test suite)
ā Document every sorry with strategy and dependencies
ā Search mathlib first before reproving standard results
ā Eliminate axioms systematically with documented plans
ā One change at a time - fill one sorry, compile, commit
Version: 1.3.0
Status: Production-ready
Last Updated: October 2025
Recent updates:
v1.3.0: Compressed by 33% (568ā382 lines) using 5 strategies: consolidated domain patterns, merged quality sections, table format for errors, condensed examples, unified axiom/sorry handling
v1.2.0: Optimized for balance and best practices - balanced coverage across algebra, topology, analysis, probability; compressed by 364 lines while maintaining quality
v1.1.0: Added simp tactic deep dive, interactive exploration commands, and 10 common error messages with fixes
v1.0.0: Initial release with core workflow and mathlib integration
ā FAQ
What are Claude Skills?
Claude Skills are custom tools announced by Anthropic in October 2025 that teach Claude specialized tasks. Skills are folders containing instructions, scripts, and resources that Claude loads dynamically when relevant. They work across Claude.ai, API, and Code.
Claude Code (marketplace): Available to all Claude Code users
Manual installation (~/.claude/skills): Available to all users
Claude.ai/API: Skills feature requires Pro, Max, Team, or Enterprise
Does this require Lean 4?
No! The skill teaches Claude how to work with Lean 4. You only need Lean 4 installed if you're actually working on Lean projects locally.
How is this different from Claude's general Lean knowledge?
Claude has general knowledge about Lean from training data. This skill provides:
Specific workflows (structure before solve, one sorry at a time)
Project patterns (type class management, mathlib integration)
Quality standards (compile before commit, document sorries)
Real-world patterns from successful projects
It's like having a Lean 4 expert mentor coaching Claude on best practices.
Can I modify the skill?
Absolutely! Clone this repo, modify lean4-theorem-proving/SKILL.md to add your project-specific patterns, and either:
Use your fork as a custom marketplace
Install locally from your modified version
Add custom content to your project's CLAUDE.md
Does this work with Superpowers?
While this is now packaged as an official Claude Skill, you can still use it with Superpowers by copying the skill folder to ~/.config/superpowers/skills/skills/. However, we recommend using the official Claude Skills installation for better integration.
Made with š§ for the Lean formalization community
If this helps your Lean 4 work, please ā star the repo and share with others working on formal mathematics!