Giverny

Writing Lean Proofs

Writes and reviews structured Lean 4 proofs and designs Lean libraries following Mathlib conventions.

by Trail of Bits★ 8,529Code review & quality

What Writing Lean Proofs does

Writes and reviews structured Lean 4 proofs and designs Lean libraries following Mathlib conventions. Use when proving theorems in Lean, formalizing mathematics or specifications in Lean 4, defining new types or definitions in a Lean library, reviewing Lean proofs for readability and maintainability, refactoring long tactic proofs into lemmas, filling in sorry placeholders in a Lean development, setting up CI or linters for a Lean project, diagnosing slow proofs or maxHeartbeats timeouts, or writing custom tactics, macros, or linters.

How to install Writing Lean Proofs in Claude Code

Giverny gives you a ready prompt with the exact install command from trailofbits/skills. Sign in with GitHub, copy the prompt and paste it into Claude Code; Claude installs the skill and confirms it loaded. To install by hand, clone trailofbits/skills and copy the plugins/writing-lean-proofs/skills/writing-lean-proofs folder into ~/.claude/skills/.

How to use it

Once installed, Claude loads Writing Lean Proofs on its own whenever your request matches what the skill does. You can also ask for it by name, for example: “Use the writing-lean-proofs skill on my current project.”

More Claude skills for code review & quality