lean-axiom-closure
Skill3 starsChanged 25 days agoApache-2.0View on GitHub
USE FOR: enforcing a project-wide axiom lockdown: verifying that EVERY declaration's transitive axiom closure restricts. DO NOT USE FOR: writing or fixing a proof (@lean-proof). TRIGGERS: axiom closure, axiom lockdown, FinalCheck, print axioms.
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-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-replay-verificationSkill
- 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
4 rules. About 0 are common, 0 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 23
Create the consumer file (FinalCheckAll.lean.tmpl): import the audit module + the project root, then #guard_msgs (drop info) in #eval …
- Very specific: line 26
Keep the consumer file INSIDE the library's source globs so the project's normal build runs it.
- Very specific: line 34
If Audit.axiomClosureAudit reports sorryAx, trace the offending declaration via #print axioms and hand off to @lean-proof to close the open …
- Very specific: line 38
If Lean.ofReduceBool appears, replace native_decide with kernel-checked decide / omega or obtain explicit owner sign-off before widening …
≈ “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
Axiom-Closure Audit (the FinalCheck discipline)
Operational dispatch contract for @lean-axiom-closure.
Routing
- USE FOR: tasks routed to
@lean-axiom-closure. - DO NOT USE FOR: out-of-scope tasks (delegate via
@lean-gateway).
Workflow
- Vendor
AxiomClosure.lean.tmplinto the project (e.g.<root>/Audit/AxiomClosure.lean), adjusting only the module path of the example. - Create the consumer file (
FinalCheckAll.lean.tmpl): import the audit module + the project root, then#guard_msgs (drop info) in #eval Audit.axiomClosureAudit <root> #[...allowlist]. - Keep the consumer file INSIDE the library's source globs so the
project's normal build runs it.
#guard_msgs (drop info)drops the summary info line; any violation error - and only a violation error - fails the build. - The allowlist is the project's DECLARED trust base. Default:
#[propext,Quot.sound,Classical.choice]`. Tighten it to exactly the axioms the project is willing to assume; every extra entry must
Recovery & STOP
- If
Audit.axiomClosureAuditreportssorryAx, trace the offending declaration via#print axiomsand hand off to@lean-proofto close the open subgoal. - If
Lean.ofReduceBoolappears, replacenative_decidewith kernel-checkeddecide/omegaor obtain explicit owner sign-off before widening the allowlist.
Handoffs
- Predecessors:
@lean-replay-verification(R2 cadence),@lean-deep-audit(P1 trust-base lockdown). - Successors:
@lean-proof-review(single-module audit),@lean-enforcement(CI gate execution).
Detailed reference
Full encyclopedic reference, decision trees, and lookup tables live in
references/lean-axiom-closure-handbook.md .
See also
../../references/lean-axiom-closure-handbook.md-- Completelean-axiom-closureHandbook../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.

