lean-formalization-breakdown
Skill3 starsChanged 24 days agoApache-2.0View on GitHub
USE FOR: architectural deconstruction of Lean 4 codebases, censuses, DAG analysis, and verification audits. DO NOT USE FOR: authoring new Lean proofs (@lean-proof), simple typo fixes (@lean-doc-improvement). TRIGGERS: formalization-breakdown, proof-breakdown, census, landmark-dag, lean-breakdown.
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-core-onlySkill
- lean-dag-visualizerSkill
- lean-deep-auditSkill
- lean-doc-feedbackSkill
- lean-doc-improvementSkill
- lean-doc-requirementsSkill
- lean-enforcementSkill
- 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
1. Run automated census and DAG topology analysis
Authoritative protocol for architectural deconstruction and multi-wave analysis of monumental Lean 4 formalizations (derived from the Fermat's Last Theorem 28-wave and Navier-Stokes & Euler 8-wave campaigns).
Routing
- USE FOR:
- Deconstructing monumental Lean 4 codebases (100 to 60,000+ modules) into structured, human-navigable mathematical layers.
- Running automated static and kernel censuses (modules, lines, theorems, lemmas, definitions, structures, axioms, sorries).
- Verifying import DAG topology, detecting cycles, computing topological layer depth and longest dependency paths.
- Identifying landmark theorems, boundary adapters, and comparator challenge interfaces.
- Decomposing mathematical proof engines into sequential multi-stage pipelines.
- Mapping formal mathematical substrates into downstream packages and domain libraries.
Workflow
+-----------------------------------------------------------------------------+
| Wave 1: Static Census & Macro Architecture |
| - scripts/lean/formalization_breakdown.py |
| - Module inventory, lines of code, declaration counts, DAG depth |
+-----------------------------------------------------------------------------+
|
v
+-----------------------------------------------------------------------------+
| Wave 2: Dual-Kernel Verification & Axiom Audit |
| - Zero-sorry validation, comparator challenge verification |
## Recovery & STOP
- If `formalization_breakdown.py` detects an import cycle or unresolvable path, halt downstream wave scaffolding and report the structural blocker first.
- If `sorry` declarations appear in implementation modules, isolate them in Wave 2 before claiming substrate readiness.
## Handoffs
- **Predecessors**: `agent:gateway`, `skill:lean-blueprint`
- **Successors**: `skill:lean-pedagogical-exposition` (human-readable math and pedagogical synthesis), `skill:lean-zettelkasten` (knowledge graph storage),
`skill:lean-enforcement` (CI gate enforcement).
- **Source Guide**: [`references/formalization_breakdown_guide.md`](../../references/formalization_breakdown_guide.md)
## Detailed reference
Full reference and lookup tables:
[`references/lean-formalization-breakdown-handbook.md`](../../references/lean-formalization-breakdown-handbook.md).
## See also
- [`../../references/lean-formalization-breakdown-handbook.md`](../../references/lean-formalization-breakdown-handbook.md) -- Handbook
- [`../lean-gateway/SKILL.md`](../lean-gateway/SKILL.md) -- Top-level skill routerDoes 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.

