Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude loads one when your task matches it, or you run it by name.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Structured Lean 4 proof writing and library design following Mathlib conventions — for proofs and libraries that humans and LLMs can review, repair, and extend.
Guides Claude (and Codex, via marketplace compatibility) through a design-top-down, prove-bottom-up workflow:
sorry stubs (spec-driven development, as practiced by the
Liquid Tensor Experiment, PFR, and FLT projects), then the
have/suffices/calc skeleton inside each proof.show lines,
calc chains, simp discipline.Plus: the extraction ladder (when a have graduates to a lemma), Mathlib
naming so lemma names are guessable, an anti-pattern catalog mapped to the
linters that catch each one, and evidence-based techniques specific to
LLM-written proofs (goal-state annotation, typed-have skeletons,
verification in the loop).
Every principle is sourced from Mathlib's style/review/naming guides, the Mathlib maintenance papers, retrospectives of large formalizations (perfectoid spaces, LTE, PFR, FLT), Mathematics in Lean, Theorem Proving in Lean 4, and the ImProver paper (ICLR 2025) for LLM-specific techniques. The claims were verified against the primary sources; commonly overstated rules (e.g. turning Mathlib's general one-tactic-per-line recommendation into an absolute requirement) are qualified in the anti-patterns reference.
All paths below are relative to skills/writing-lean-proofs/:
SKILL.md — workflow, extraction ladder, quick-reference rulesreferences/library-design.md — definitions, APIs, abstraction
boundaries, project decompositionreferences/proof-style.md — tactic proof structurereferences/naming-conventions.md — Mathlib namingreferences/anti-patterns.md — anti-patterns → rationale → enforcing
linterreferences/llm-techniques.md — LLM-specific drafting techniquesreferences/linting.md — axiom audits, library versus self-contained CI
linter profiles, and project-specific lintersreferences/performance.md — proof and reduction-cost diagnosisreferences/tactics.md — safe, bounded, traceable tactic metaprogrammingevals/ contains a review-flow eval suite: Lean fixtures (derived from a
real formal-verification project) with known planted flaws and known
non-flaws, natural review prompts, per-case rubrics, and a runner that
compares a baseline arm against a skill arm using an LLM judge. See
evals/README.md; evals/run.sh --self-test verifies the
grader still detects a known-bad review.
Lean-as-programming-language work without proofs, other proof assistants (Coq/Isabelle/Agda), Lean 3 codebases, or projects with a conflicting house style (defer to their CONTRIBUTING).
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub bongkage/trailofbits-skills --plugin writing-lean-proofsPlugins from other owners that cover similar ground