Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add drawthingsai/local-code-community --skill check_lean-and-lean-tools -a claude-code
Open on GitHub

What 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_lean to 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-code

2Manually: put the files in place

~/.claude/skills/check_lean-and-lean-tools/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/check_lean-and-lean-tools/

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.

Similar skills

All skills for Programming languages →
writing-lean-proofs trailofbits writing-lean-proofs is a Claude Code skill for writing and reviewing Lean 4 proofs in line with Mathlib conventions. It comes into play for theorem proving, library design, proof refactoring, and project checks. CX Codex +1 1,800installs lean-formalize wanshuiyin lean-formalize is a Claude Code skill that turns mathematical statements into verified Lean theorems. Runs when Lean verification or formal proof checking is needed. CX Codex +1 103installs proof-theory parcadei proof-theory — a skill for mathematical logic proofs and decision trees across strategies. Guides you through direct proof, proof by contradiction, case analysis, and induction; verifies soundness, completeness, and cut elimination. CX Codex +1 1installs create-formal-verification-skill backnotprop The create-formal-verification-skill skill selects code for formal verification and creates a project-local guide for checking it again after changes. Use it when tests leave important invariants or event orderings uncovered. CX Codex +1 6,200installs maintain-formal-verification-skill backnotprop maintain-formal-verification-skill is a Claude Code skill that updates formal checks to match code changes, reruns them, and classifies failures after merges or refactors. CX Codex +1 6,100installs LeanWarp Isagoge-Labs The LeanWarp MCP server for Claude Code checks Lean 4 proofs and reports errors, warnings, and proof goals. An agent can call it while working on formal proofs in a Lean project. CX Codex +1 ★ 7repo stars

From the same set20

The whole set →
office The office skill for Claude Code creates and modifies Word documents, Excel workbooks, and PowerPoint decks. It runs when generating or inspecting office files via local scripts. CX Codex +1 ★ 171repo stars introduce-local-code introduce-local-code is a Claude Code skill that explains the assistant and the Local Code app. It activates for questions about the app’s purpose, features, or operation. CX Codex +1 ★ 171repo stars answers-charts answers-charts is a Claude Code skill that builds Matplotlib charts and embeds them directly into answers. It outputs verified PNG and SVG files strictly from supplied numbers. CX Codex +1 ★ 171repo stars uikit-ui-common-setup uikit-ui-common-setup is a Claude Code skill for writing and refactoring UIKit interfaces. It applies to work involving Workflow, ViewController, SnapKit, and UI state. CX Codex +1 ★ 171repo stars use-draw-things-cli use-draw-things-cli is a Claude Code skill that creates or edits images and generates videos through draw-things-cli. It selects a model and its task-specific guidance. CX Codex +1 ★ 171repo stars use-mcp-with-mcporter use-mcp-with-mcporter is a Claude Code skill that routes Model Context Protocol requests through the MCPorter CLI. It triggers when an agent connects to MCP servers, reads schemas, or runs tools. CX Codex +1 ★ 171repo stars use-web-browse-cli use-web-browse-cli is a Claude Code skill that controls a WebKit browser for website checks. It runs on pages that require JavaScript, user interaction, or sign-in. CX Codex +1 ★ 171repo stars deploy-static-site-with-wrangler deploy-static-site-with-wrangler is a Claude Code skill that uploads static site builds to temporary public Cloudflare URLs. It triggers when someone asks to share or preview built HTML assets. CX Codex +1 ★ 171repo stars

Project sponsors

Companies that keep this analytics open