agentleFS
r-irber-irbe/proof-skills/skills/lean-verification-gate/SKILL.md

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.

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
  1. Distinctive:

    Always quote scanned declaration/module counts.

    line 56

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 axioms lockdown ([propext, Classical.choice, Quot.sound]), cold kernel replay (lake build / lean4checker), zero-sorry / autoImplicit false linting, 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

  1. Static, Deprecation & Hygiene Gate -- Run lean_diagnostics, lean-rules, and paper_supplement_audit.py to verify 0 sorry, 0 admit, 0 @[deprecated] shims in .lean source, set_option autoImplicit false, scoped INV-001 Unicode, and 0 forbidden native_decide (Lean.ofReduceBool).
  2. Fresh Manifest & Transitive Axiom Closure -- Regenerate #print axioms probe scripts after any rename (axiom_audit.py --generate-script), invoke lean_axiom_closure, and verify closures stay within [propext, Classical.choice, Quot.sound].
  3. Cold In-Process Kernel Replay -- Run scripts/lean/replay_verify.sh / cold_kernel_replay.lean (Lean.Kernel.Environment.replay + Lean.collectAxioms across 100% of .olean constants on top of external imports alone) with 0 compiler warnings.
  4. 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-council or @lean-doc-sync.

Recovery & STOP

  • Any custom axiom, sorryAx, @[deprecated] shim, or unapproved Lean.ofReduceBool / Lean.trustCompiler dependency is a hard blocker; return immediately to @lean-proof or @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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.