lean-pedagogical-exposition
Protocol for translating Lean 4 formalizations into clear, beautiful, textbook-quality mathematical exposition, interactive Lean Blueprint chapters, and pedagogical learning materials.
Routing
- USE FOR:
- De-formalizing Lean 4 definitions and theorems into intuitive, elegant standard mathematical prose.
- Converting proof scripts (towers of
have,calc,obtain,rcases) into structured narrative proofs with clear motivation. - Authoring Lean Blueprint LaTeX chapters with
\begin{theorem},\uses,\lean,\leanok, and informal proof sketches. - Designing pedagogical diagrams, flowcharts, and intuition pumps for complex formal proofs.
- Producing learning zettels and concept cards for the knowledge garden.
- DO NOT USE FOR:
Workflow
- Select Landmark: Identify target theorem or definition from
@lean-blueprint. - Extract Dependencies: Query
lean-lsp-mcpordep_graph.shto obtain the transitive premise set. - Draft Math Formulation: Translate Lean types and hypotheses into standard mathematical notation ($L^2$, $H^s$, $\nabla \times u$).
- Decompose Proof Skeleton: Identify the major intermediate lemmas (
havemilestones) and draft the narrative proof. - Format Blueprint Block: Write the LaTeX snippet with
\begin{theorem}[Name] \label{...} \lean{...} \uses{...} \leanok ... \end{theorem}. - Synthesize Zettel: Emit permanent concept note or reference zettel for the knowledge garden.
Recovery & STOP
- If an informal translation appears weaker or stronger than the formal Lean signature, re-check the exact
binder and hypothesis
types via
@lean-proof-reviewbefore publishing the exposition. - If dependency extraction is incomplete because
.ileanartifacts are missing, run a targeted build via@lean-buildfirst.
Handoffs
- Predecessors:
skill:lean-blueprint,skill:lean-blueprint - Successors:
skill:lean-retro-methodology(saving to knowledge graph),skill:lean-doc-sync(documentation polishing). - Reference Catalog:
references/protocols/lean_to_math_exposition_patterns.md
Detailed reference
- Layer-1 Fast Lookup Card (read first):
references/cards/lean-pedagogical-exposition-tables.mdFull encyclopedic reference, decision trees, and lookup tables live inreferences/handbooks/lean-pedagogical-exposition-handbook.md.
See also
Complete../../references/handbooks/lean-pedagogical-exposition-handbook.mdlean-pedagogical-expositionHandbook../lean-gateway/SKILL.md-- Top-level skill router
