lean-verify
Claude Code skill: find bugs and prove optimizations equivalent with Lean 4
Install / Use
npx skills add hirosassa/lean-verifyInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of lean-verify
lean-verify scores 72/100 on our quality scale, 3840th of 4,722 Development & Engineering skills we index.
Its SKILL.md is 2.2 KB long, split into 7 sections with 4 code examples: moderately detailed.
It has 51 GitHub stars, a meaningful sign that others use it.
Maintenance, license and trust
- The repository was last updated 4 days ago, so lean-verify is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 95/100, with 1 caution from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-11-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
lean-verify compared with similar skills
All 4 of these similar skills score higher than lean-verify; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| lean-verify (this skill)by hirosassa | 72 | 51 | 4d ago | SKILL.md |
| taste-skillby Leonxlnx | 100 | 122.3k | 1d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 91.5k | today | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 73.7k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 47.6k | 7d ago | CLAUDE.md |
Frequently asked questions
- How do I install lean-verify?
- Run
npx skills add hirosassa/lean-verify. The install tabs above show the steps for each supported agent. - Which AI agents does lean-verify work with?
- It is written for Claude Code, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is lean-verify safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 95/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is lean-verify still maintained?
- The repository was last updated 4 days ago, so lean-verify is actively maintained.
Skill content
View source on GitHublean-verify
A Claude Code skill that uses the Lean 4 theorem prover as a small, practical tool for:
- Bug hunting: find integer overflow, bit-manipulation, and boundary-condition bugs with concrete counterexamples (
bv_decide). - Safe optimization: prove that an optimized or refactored version is equivalent to the naive one for all inputs.
It targets small functions and single rewrite rules, not whole-program verification. It is language-agnostic (Rust, C, Go, TypeScript, ...): you model the target in Lean, then translate any counterexample back to the original code.
Install
With the GitHub CLI (gh skill, preview):
gh skill install hirosassa/lean-verify lean-verify
# target a specific agent / scope if needed, e.g. --agent claude-code
With APM (Agent Package Manager):
apm install hirosassa/lean-verify
# deploys to .claude/skills/lean-verify (and/or other detected agents); pin with --target claude
Or clone manually:
git clone https://github.com/hirosassa/lean-verify /tmp/lean-verify
cp -r /tmp/lean-verify/skills/lean-verify ~/.claude/skills/
Lean itself is installed on demand by the skill (see references/setup.md), after asking you.
Layout
| Path | Contents |
|---|---|
| skills/lean-verify/SKILL.md | Skill entry point: when to use it, workflow, modeling pitfalls |
| skills/lean-verify/references/bug-hunting.md | Counterexample-driven bug hunting |
| skills/lean-verify/references/perf-equivalence.md | Proving optimizations equivalent |
| skills/lean-verify/references/tactics.md | Tactic cheat sheet (core-only first) |
| skills/lean-verify/references/setup.md | Installing Lean / elan, minimal lake project |
| skills/lean-verify/scripts/check_lean.sh | Checks the Lean environment |
| skills/lean-verify/assets/examples/ | Runnable Lean examples |
Try the examples
lean skills/lean-verify/assets/examples/induction_decide_omega.lean
lean skills/lean-verify/assets/examples/bv_overflow_and_strength_reduction.lean # bad_ng is expected to fail with a counterexample
License
MIT
Related Skills
taste-skill
122.3kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
hyperframes
91.5kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ai-job-search
73.7kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
47.6kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
