lean-replay-verification
Skill3 starsChanged 25 days agoApache-2.0View on GitHub
USE FOR: verifying that completed proofs are genuinely kernel-checked after `sorry` removal. DO NOT USE FOR: writing or fixing the proof itself (@lean-proof). TRIGGERS: sorry removed, proof completed, replay, fresh rebuild.
In this repository65 other files it gives its agents.
- AGENTS.mdAGENTS.md
- ai-guard-judge-evalSkill
- applied-data-information-securitySkill
- applied-engineering-disciplinesSkill
- applied-legal-reasoningSkill
- epistemic-discovery-engineSkill
- epistemic-mappingSkill
- hol-metamath-adapterSkill
- isabelle-isar-adapterSkill
- itp-cross-portingSkill
- lean-ai-formalizationSkill
- lean-applied-reasoningSkill
- lean-axiom-closureSkill
- lean-bigraph-modelingSkill
- lean-bisectSkill
- lean-blueprintSkill
- lean-buildSkill
- lean-causal-reasoningSkill
- lean-competitive-mathSkill
- lean-convergence-verificationSkill
- lean-core-onlySkill
- lean-dag-visualizerSkill
- lean-deep-auditSkill
- lean-doc-feedbackSkill
- lean-doc-improvementSkill
- lean-doc-requirementsSkill
- lean-enforcementSkill
- lean-formalization-breakdownSkill
- lean-gatewaySkill
- lean-integration-protocolSkill
- lean-knowledge-formalizationSkill
- lean-math-analysisSkill
- lean-math-discreteSkill
- lean-math-dynamicalSkill
- lean-math-foundationsSkill
- lean-math-optimizationSkill
- lean-math-stochasticSkill
- lean-mweSkill
- lean-nested-learningSkill
- lean-package-researchSkill
- lean-pedagogical-expositionSkill
- lean-proof-refactorSkill
- lean-proof-repairSkill
- lean-proof-reviewSkill
- lean-proofSkill
- lean-prSkill
- lean-quality-engineSkill
- lean-reportSkill
- lean-researchSkill
- lean-retroactive-auditSkill
- lean-retro-methodologySkill
- lean-review-councilSkill
- lean-security-formalizationSkill
- lean-setupSkill
- lean-specificationSkill
- lean-tautology-triageSkill
- lean-upstream-portingSkill
- lean-vendor-substrateSkill
- lean-zettelkastenSkill
- math-product-managementSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 23
Run R1 (cold full build); capture pin, job count, rc into the commit message or ledger.
- Distinctive: line 25
Run R2 against the expected-axioms allowlist.
- Distinctive: line 26
Check R3 status: is a newer pin available?
- Very specific: line 33
If R1 (lake clean + lake build) fails on a tree that passed incrementally, treat the proof as unverified and hand back to @lean-proof or …
- Very specific: line 37
If R2 surfaces sorryAx or an unexpected axiom in the closure, block acceptance and route to @lean-axiom-closure / @lean-proof.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Replay Verification After Sorry Removal
Operational dispatch contract for @lean-replay-verification.
Routing
- USE FOR: tasks routed to
@lean-replay-verification. - DO NOT USE FOR: out-of-scope tasks (delegate via
@lean-gateway).
Workflow
- Identify the proof-completion event (sorry removed / new theorem accepted as load-bearing).
- Run R1 (cold full build); capture pin, job count, rc into the commit message or ledger.
- Run R2 against the expected-axioms allowlist; quote the verdict.
- Check R3 status: is a newer pin available? Run it via the project's migration flow or record the deferral.
- For load-bearing batches, run R4 with trepplein or lean4lean and record checker + version + lineage caveat.
- Link the replay evidence from the review record (commit, ledger, or review file) so a later reader can re-derive it.
Recovery & STOP
- If R1 (
lake clean+lake build) fails on a tree that passed incrementally, treat the proof as unverified and hand back to@lean-proofor@lean-buildto fix the hidden stale-artifact dependency. - If R2 surfaces
sorryAxor an unexpected axiom in the closure, block acceptance and route to@lean-axiom-closure/@lean-proof.
Handoffs
- Predecessors:
@lean-proof(sorry removed),@lean-proof-review(single-proof review). - Successors:
@lean-axiom-closure(R2 compile-time lockdown),@lean-quality-engine(milestone QA gate).
Detailed reference
Full encyclopedic reference, decision trees, and lookup tables live in
references/lean-replay-verification-handbook.md .
See also
../../references/lean-replay-verification-handbook.md-- Completelean-replay-verificationHandbook../lean-gateway/SKILL.md-- Top-level skill router
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

