lean-dag-visualizer
Skill3 starsChanged 24 days agoApache-2.0View on GitHub
USE FOR: launching interactive Lean 4 formalization DAG visualizers and Tufte proof-walk marginalia. DO NOT USE FOR: authoring new Lean proofs (@lean-proof), compiling PlasTeX PDFs (@lean-blueprint). TRIGGERS: dag-visualizer, proof-walk, visualize-formalization, lean-visualizer, show-dag.
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-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
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 37
Analyze Target: Run python3 scripts/lean/formalization_breakdown.py <target_path> --format summary to check module count, depth, and …
- Very specific: line 45
Headless Verification / Serving: Start launcher with --no-browser if HTTP API interaction is needed, or inspect node topology directly from …
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
1. Launch visualizer for any package
Authoritative protocol for generating, extracting, and interactively inspecting Lean 4 formalization DAGs and Tufte proof-walk cards across projects, subpackages, and monumental mathematical codebases.
Routing
- USE FOR:
- Launching the standalone zero-dependency HTML5/SVG formalization DAG visualizer for any Lean 4 project or directory.
- Inspecting topological layer depth, longest dependency paths, and landmark proof milestones.
- Visualizing mathematical engines for domain subpackages (
packages/stochastic-ccv,packages/agentic-safety,packages/cusp-catastrophe, etc.). - Visualizing primary formalization repositories (
MyProject,fermats-last-theorem,NavierStokesAndEuler). - Generating and caching visualizer-compatible graph JSONs (
nodesandedges) viaformalization_breakdown.py --json-graph.
Workflow
Workflow A: Autonomous AI Session Inspection
- Analyze Target: Run
python3 scripts/lean/formalization_breakdown.py <target_path> --format summaryto check module count, depth, and sorries. - Generate Graph JSON: Emit graph JSON to temporary or cached location:
python3 scripts/lean/formalization_breakdown.py <target_path> --json-graph .cache/graphs/<slug>.json - Headless Verification / Serving: Start launcher with
--no-browserif HTTP API interaction is needed, or inspect node topology directly from the JSON. - Synthesize Findings: Report topological depth, critical proof path, and key milestone declarations to the operator.
Workflow B: Interactive Human-in-the-Loop Visual Walk
- Launch Target:
Recovery & STOP
- If graph extraction reports an import cycle, stop rendering and resolve the circular dependency before ratifying the DAG cache.
- On headless or SSH hosts without a display server, pass
--no-browserand inspect.cache/graphs/<slug>.jsondirectly.
Handoffs
- Predecessors:
skill:lean-formalization-breakdown(static census and topological depth),skill:lean-blueprint(declaration LaTeX scaffolding). - Successors:
skill:lean-pedagogical-exposition(authoring mathematical narrative for nodes),skill:lean-enforcement(ratifying acyclicity in CI). - Tool Location:
tools/visualizer/
Detailed reference
Full reference and lookup tables:
references/lean-dag-visualizer-handbook.md.
See also
../../references/lean-dag-visualizer-handbook.md-- Handbook../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.

