lean4-theorem-proving
CommunityMaster Lean 4 proofs. AI guides every step.
Education & Research#proof automation#formal verification#mathlib#theorem proving#lean 4#mathematics#type classes
Authorcameronfreer
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Lean 4 proof development is notoriously complex, time-consuming, and prone to errors, especially when dealing with type class inference, axiom management, and navigating the vast Mathlib. This Skill empowers you to overcome these challenges by providing battle-tested workflows, automation tools, and expert guidance, ensuring your formal proofs are correct and complete.
Core Features & Use Cases
- Systematic 4-Phase Workflow: Structure proofs before solving, build helper lemmas bottom-up, fill sorries incrementally, and manage type class instances effectively.
- 16 Automation Scripts: Leverage tools for searching Mathlib, analyzing proof complexity, tracking incomplete proofs (
sorrystatements), verifying axiom usage, and minimizing imports. - Comprehensive Reference Guides: Access in-depth documentation on essential tactics, Mathlib integration, common compilation errors, and domain-specific patterns for measure theory, probability, and algebra.
- Use Case: Automate the formalization of complex mathematical theorems, contribute to Mathlib, or debug persistent "failed to synthesize instance" errors, all while ensuring your proofs are axiom-free and fully verified.
Quick Start
Example: Get a quick report on all incomplete proofs (sorries)
scripts/sorry_analyzer.py src/ --format=markdown > SORRIES.md
Dependency Matrix
Required Modules
ripgrepcurljqpython3lean4
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: lean4-theorem-proving Download link: https://github.com/cameronfreer/lean4-skills/archive/main.zip#lean4-theorem-proving Please download this .zip file, extract it, and install it in the .claude/skills/ directory.