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-verification-gate); 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-verification-gate(trust base),@lean-mwe(isolation). - Handbook:
../../references/protocols/lean4-core-only-profile.md-- the core/Mathlib tactic boundary, the recursion-limit triage table, and the goal-introspection loop.
Detailed reference
- Layer-1 Fast Lookup Card (read first):
references/cards/lean-core-only-tables.mdFull encyclopedic reference, decision trees, and lookup tables live inreferences/handbooks/lean-core-only-handbook.md.
See also
../../references/handbooks/lean-core-only-handbook.md-- Completelean-core-onlyHandbook../lean-gateway/SKILL.md-- Top-level skill router
