cameronfreercameronfreerCommunity·2 Agent Skills Included

lean4-skills

Lean 4 theorem proving, mathlib search, and proof debugging

Guides Lean 4 theorem proving through structured draft, prove, review, refactor, and golf workflows. Searches mathlib for existing lemmas, fills sorries, checks axioms, and fixes build errors automatically. Eliminates manual proof debugging and slow trial-and-error with live goal inspection and tactic testing. Works across Claude Code, Codex, Cursor, and other hosts with safety guardrails and checkpoints.
npx skills add cameronfreer/lean4-skills --all -g -y

All Skills in This Repository (2)

Pure Emerald Level Indicators

Frequently Asked Questions

FAQPage Schema
How to install lean4-skills?

Run `npx skills add cameronfreer/lean4-skills --all -g -y` in your terminal to install all skills in this suite globally.

How to prove theorems in Lean 4 with an AI agent?

Use the prove or autoprove workflows, which run a cycle of mathlib search, tactic attempts, and validation for each sorry in your file.

Can it formalize informal math into Lean 4?

Yes. The draft, formalize, and autoformalize workflows convert informal mathematical claims into Lean skeletons and then prove them step by step.

Does lean4-skills work with Claude Code and Codex?

Yes. It installs as a native plugin in Claude Code and Codex, and works skill-only in Cursor, Gemini CLI, and other hosts.

Can it find counterexamples to a Lean statement?

Yes. The disprove workflow runs a guided counterexample search and only reports a refutation once Lean typechecks the negation.

Related Repositories in Software Engineering

View All in Software Engineering