lean-proof-mastery-with-epistemic-humility
Made by JeffConstructs, audits, repairs, simplifies, and extends Lean proofs. Use when formalizing a mathematical argument, reviewing .lean files, or diagnosing a proof gap.
From Jeffrey's Skills.md: professionally crafted skills for any AI agent, installed and kept in sync by the jsm CLI. Subscription only, $20/month.
Works With
Quality and Utility come from canonical skill metadata. Community ratings appear separately as stars when subscriber reviews exist.
Subscribe to download
Public previews are available, but downloads, CLI sync, and premium content require an active subscription.
Sign In to Subscribe- Full skill content with deterministic versioning
- CLI sync + local search index
- Access to Jeffrey’s premium library
Save to your account
Saved skills live in your cloud list. Run jsm sync on each machine to pull them locally.
What's New with this Skill
1Updates, enhancements, and release notes for this skill.
New skill: lean-proof-mastery-with-epistemic-humility, Lean proofs that prove what you meant
Anthropic published a machine-checked Lean proof of Fermat's Last Theorem: 29,511 agent-written theorems verified by Lean's kernel, a comparator, and a second kernel, with the repo's metadata still reading review: self-assessed. This skill mines that corpus for proof craft and ships the discipline that keeps an agent honest about what a green check means: kernel acceptance, prose fidelity, and independent review stay separate facts, enforced by a sandboxed checker and 41 Lean fixtures.
- Six modes on one loop: construct, audit-only, repair, simplify, expand, resume. Audit permits inspection and no edits; simplify must prove the statement unchanged; expand keeps the original obligation open. Every mode pins prose, normalized mathematics, and the elaborated Lean type first.
- check.py recompiles the candidate under bwrap or sandbox-exec, requires definitional equality with a reviewer-pinned statement whose hash lives outside the candidate, audits transitive axioms of target, guard, and bridge, and can replay with leanchecker --fresh. Distinct exit codes for each outcome.
- 41 Lean fixtures, each passing only when its expected outcome occurs for the intended reason. Negative cases: sorryAx hidden in an import, a target-equivalent axiom, native_decide trust, universe specialization, a Boolean proof field, a checksum-only verifier, a forged environment for fresh replay.
- 68 kernel-checked targets (27 original, 41 advanced) on Lean 4.33.1 and pinned Mathlib, adapted with Apache attribution from FLT slices: gcd transport through a^p + b^p = c^p, squarefree level lowering, quotient level maps, partition-of-one gluing, Weierstrass transport, Hecke eigenspaces.
- Kernel check, semantic review, independent review, replication, and novelty are separate fields. "Kernel accepted; semantic review pending" is a precise result; it is not yet FORMALLY_CHECKED, and no label, closed task, Boolean field, or self-written verifier can promote it.
- Corpus engineering measured on the pinned checkout: 1.3M have, 1.2M rw, 25 aesop in 11.9M lines; maxHeartbeats raised in 27% of files, with a scoping policy; 4.1M attribute [-simp]/[-instance] entries scrubbing leaks at module boundaries; statement and proof in separate files with a typed bridge.
- Thirty adversarial scenarios, each with explicit obligations: a locality string is not a local ring, n ≤ 10000 says nothing about 10001, a PSLQ relation is a candidate, a residual of 1.2e-80 is not zero, "clearly" does not make an injective self-map of ℕ surjective. Plus fifty failure modes.
- Nineteen Fermat case studies read from actual proof bodies at commit aa2d8b34, each stating what the source proves and where it stops: descent with the right induction hypothesis, an actual localization and its hypotheses, a common dual eigenspace shown to be a line.
- 32 operator cards with triggers, failure modes, and prompt modules, including SEARCH-LIBRARY, ISOLATE-ELABORATION, COMPARE-STATEMENTS, RECHECK-DEPENDENTS, and REFEREE-FROM-HELL; bounded subagent roles; resume from existing state without scaffolding a new campaign.
- Negative knowledge is kept in six fields: exact rejected claim, first unsupported step, witness, surviving lemmas, scope, reopening condition. A failed tactic is not a refutation, a timeout is not UNSAT, and a refuted route leaves independently checked facts standing.
Start from the mathematics you actually have. Give the agent an argument in ordinary mathematical language, a paper, or a half-finished .lean file, and choose one of six modes: construct, audit-only, repair, simplify, expand, or resume. Audit permits inspection and no edits. Simplify has to prove the statement unchanged; anything stronger or weaker gets its own name. Expand keeps the original obligation open until it is discharged. Every mode begins the same way: pin the original prose, the normalized mathematics with every change explained, and the elaborated Lean type, before substantial sea