Tool to analyse the import structure of lean projects.
import-graph is a tool for analyzing the import structure of Lean 4 projects. It generates visual representations of module dependencies in multiple formats including PDF, HTML, JSON, and DOT, with the HTML output providing an interactive visualization. The tool is built in Lean and uses Lake as its build system, optionally leveraging Graphviz for format conversion. It was originally extracted from the Mathlib project by Kim Morrison and other contributors, with the HTML visualization adapted from Eric Wieser's earlier Lean 3 version, and is currently maintained by Jon Eugster and the broader Lean community.