check_lean-and-lean-tools — Claude Code skill: install
check_lean-and-lean-tools is a Claude Code skill that verifies Lean proofs for universal claims involving induction or recursion. It joins coding, debugging, review, or design tasks when a claim needs machine-checked lemmas.
GPL-3.0 ★ 171 updated 2026-11-17
npx skills add drawthingsai/local-code-community --skill check_lean-and-lean-tools -a claude-codeWhat check_lean-and-lean-tools does
The skill sends Lean source to the check_lean and lean commands to verify a significant claim across all inputs. For compact arithmetic, bitvector, or finite-state problems, it recommends check_smt; ordinary tests cover concrete cases.
Lean runs through Bash with bundled Init, Std, Lean, and Lake modules, which are loaded as imports call for them. Mathlib has a separate installation workflow. This is not a desktop Lean toolchain: lake and elan commands are unavailable, and importing a local .lean file does not compile it automatically.
check_lean takes source text; files can be passed through --stdin. Declarations do not carry over between calls, so each submission needs its definitions and helper lemmas. A conditional result relies on extra assumptions.
What it helps with
- prove a property across every depth of a recursive structure
- verify a function property by induction
- inspect which extra assumptions a theorem depends on
- distinguish a universal proof from a test of specific cases
Example prompts for the agent
- Use
check_leanto verify this claim about the recursive function. - Prove by induction that mirroring a tree twice returns the original tree.
- Check whether this theorem relies on additional axioms.
How to install check_lean-and-lean-tools
1Skills CLI (Vercel)
npx skills add drawthingsai/local-code-community --skill check_lean-and-lean-tools -a claude-code2Manually: put the files in place
~/.claude/skills/check_lean-and-lean-tools/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/check_lean-and-lean-tools/
1Skills CLI (Vercel)
npx skills add drawthingsai/local-code-community --skill check_lean-and-lean-tools -a codex2Manually: put the files in place
.agents/skills/check_lean-and-lean-tools/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add drawthingsai/local-code-community --skill check_lean-and-lean-tools -a cursor2Manually: put the files in place
.cursor/skills/check_lean-and-lean-tools/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install drawthingsai/local-code-community Apps/LocalCode/Resources/Skills/check_lean-and-lean-tools2Manually: put the files in place
.github/skills/check_lean-and-lean-tools/SKILL.md1Skills CLI (Vercel)
npx skills add drawthingsai/local-code-community --skill check_lean-and-lean-tools -a gemini-cli2Platform CLI
gemini skills install https://github.com/drawthingsai/local-code-community --path Apps/LocalCode/Resources/Skills/check_lean-and-lean-toolsManually: put the files in place
.devin/skills/check_lean-and-lean-tools/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about check_lean-and-lean-tools
How do I install check_lean-and-lean-tools in Claude Code?
Run npx skills add drawthingsai/local-code-community --skill check_lean-and-lean-tools -a claude-code. The skill file is at ~/.claude/skills/check_lean-and-lean-tools/SKILL.md.
What does check_lean-and-lean-tools do?
It helps submit Lean proofs for machine checking, including claims that require induction, recursive definitions, or several supporting lemmas. Ordinary tests are recommended for individual concrete cases.
Does check_lean-and-lean-tools require Mathlib?
No, its basic checks use bundled Lean modules. Mathlib has to be installed separately when a proof depends on it; its imports and tactics are not available beforehand.