lean-verification-gate
Skill3 starsChanged 13 days agoApache-2.0View on GitHub
USE FOR: deterministic Lean 4 CI gates: axiom-closure lockdown, cold kernel replay, and pre-review checks. DO NOT USE FOR: semantic proof review (@lean-proof-review) or council voting (@lean-review-council). TRIGGERS: verification gate, enforcement, axiom closure, print axioms, replay verification, CI gate.
In this repository43 other files it gives its agents.
- AGENTS.mdAGENTS.md
- counterexample-first-provingSkill
- hol-metamath-adapterSkill
- isabelle-isar-adapterSkill
- itp-cross-portingSkill
- lean-ai-formalizationSkill
- lean-asymptotic-algorithmsSkill
- lean-bisectSkill
- lean-blueprintSkill
- lean-buildSkill
- lean-computational-reflectionSkill
- lean-core-onlySkill
- lean-corpus-auditSkill
- lean-dependency-managementSkill
- lean-doc-syncSkill
- lean-egraph-cpsat-superoptSkill
- lean-gatewaySkill
- lean-kernel-optimizationSkill
- lean-knowledge-formalizationSkill
- lean-math-analysisSkill
- lean-math-discreteSkill
- lean-math-dynamicalSkill
- lean-math-foundationsSkill
- lean-math-optimizationSkill
- lean-math-stochasticSkill
- lean-mweSkill
- lean-pedagogical-expositionSkill
- lean-proof-refactorSkill
- lean-proof-repairSkill
- lean-proof-reviewSkill
- lean-proofSkill
- lean-researchSkill
- lean-retro-methodologySkill
- lean-review-councilSkill
- lean-security-formalizationSkill
- lean-setupSkill
- lean-specificationSkill
- lean-tautology-triageSkill
- lean-unboxed-limbs-swarSkill
- lean-upstream-prSkill
- lean-worker-wrapper-cpsSkill
- research-councilSkill
- rocq-proof-adapterSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 56
Always quote scanned declaration/module counts.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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
Lean 4 Deterministic Verification Gate (Enforcement, Axiom Closure & Replay)
Execute all deterministic, machine-verifiable trust gates over a Lean 4 build before semantic human/council review.
Routing
- USE FOR: project-wide
#print axiomslockdown ([propext, Classical.choice, Quot.sound]), cold kernel replay (lake build/lean4checker), zero-sorry/autoImplicit falselinting, and pre-council CI checks. - DO NOT USE FOR: single-file mathematical faithfulness review (
@lean-proof-review) or whole-corpus quality scoring (@lean-corpus-audit).
Workflow
- Static, Deprecation & Hygiene Gate -- Run
lean_diagnostics,lean-rules, andpaper_supplement_audit.pyto verify0 sorry,0 admit,0 @[deprecated]shims in.leansource,set_option autoImplicit false, scopedINV-001Unicode, and0forbiddennative_decide(Lean.ofReduceBool). - Fresh Manifest & Transitive Axiom Closure -- Regenerate
#print axiomsprobe scripts after any rename (axiom_audit.py --generate-script), invokelean_axiom_closure, and verify closures stay within[propext, Classical.choice, Quot.sound]. - Cold In-Process Kernel Replay -- Run
scripts/lean/replay_verify.sh/cold_kernel_replay.lean(Lean.Kernel.Environment.replay+Lean.collectAxiomsacross 100% of.oleanconstants on top of external imports alone) with0compiler warnings. - Emit Honest Gate Certificate -- Quote exact scanned module/constant counts, any coverage-gap notes, and only
verification tools physically executed on this host before handing off to
@lean-review-councilor@lean-doc-sync.
Recovery & STOP
- Any custom
axiom,sorryAx,@[deprecated]shim, or unapprovedLean.ofReduceBool/Lean.trustCompilerdependency is a hard blocker; return immediately to@lean-proofor@lean-kernel-optimization. - Always quote scanned declaration/module counts; never treat a stale manifest or unexecuted binary as a pass.
Handoffs
- Predecessors:
lean-proof,lean-kernel-optimization,lean-proof-repair. - Successors:
lean-proof-review,lean-review-council,lean-doc-sync.
Detailed reference
- Layer-1 Card:
../../references/cards/lean-verification-gate-tables.md - Handbook:
../../references/handbooks/lean-verification-gate-handbook.md - Supplement Protocol:
../../references/protocols/double-blind-paper-and-supplement-release.md - Template:
../../templates/core/Template_Verification.md
See also
../lean-proof-review/SKILL.md-- 4-layer semantic proof review../lean-corpus-audit/SKILL.md-- Whole-corpus 7-dimension audit
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.

