lean-core-only
Skill3 starsChanged 24 days agoApache-2.0View on GitHub
USE FOR: Lean 4 work in a CORE-ONLY lane -- a project whose artifact may import nothing but the Lean toolchain (no Mathlib. DO NOT USE FOR: Mathlib-dependent proving (@lean-proof). TRIGGERS: core Lean, no Mathlib, unknown module prefix, unknown tactic.
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-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
Files
lean-core-only
MANDATORY (hot-tier): G-1 (prove the invocation), G-2 (no Mathlib-only
Routing
- USE FOR: a core-only lane's tactic choices (core
omegayes,linarithno);import Specfailing withunknown module prefix;unknown tacticfrom a Mathlib name;maximum recursion depth/maximum heartbeatson an otherwise correct-looking proof; project-root andlakefile.tomlinvocation questions; goal-state introspection without editing the artifact. - DO NOT USE FOR: anything where Mathlib is allowed (use
@lean-proofwith the@lean-math-analysisfamily); the axiom-closure audit itself (use@lean-axiom-closure); toolchain brokenness (use@lean-setup).
Workflow
- Discover [discover] -- establish the root and the invocation: which
directory holds
lakefile.lean/lakefile.toml, which toolchain is pinned, whether the package declares dependencies. Confirmlake env lean <file>resolves the artifact's own imports before touching any proof. - Plan [discover] -- pick the tactic set from the core list (G-2); for each
numeric step prefer
omega, for definitional stepsrw/simp onlywith an explicit lemma list, for case analysiscases/induction+omegaper branch. - Execute [execute] -- one tactic at a time, checking the goal out of band (G-5) instead of editing probes into the artifact.
- Validate [validate] --
lake buildat DEFAULT limits (no local
Recovery & STOP
- Environment --
unknown module prefixwhile the build is green: STOP, re-run throughlake env leanfrom the project root (G-1) before diagnosing anything else. - Tactic availability -- a needed step has no core-only equivalent: STOP and escalate. Do not smuggle in an import (G-3, G-7).
- Recursion limits -- the proof needs
maxRecDepth/maxHeartbeatsabove defaults to elaborate: STOP and hand the declaration to@lean-prooffor a
Handoffs
- Predecessors:
@lean-setup(toolchain),@lean-specification(statement). - Successors:
@lean-proof(structural fixes),@lean-build(build/CI mechanics),@lean-axiom-closure(trust base),@lean-mwe(isolation). - Handbook:
../../references/lean4-core-only-profile.md-- the core/Mathlib tactic boundary, the recursion-limit triage table, and the goal-introspection loop.
Detailed reference
Full encyclopedic reference, decision trees, and lookup tables live in
references/lean-core-only-handbook.md .
See also
../../references/lean-core-only-handbook.md-- Completelean-core-onlyHandbook../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.

