# Source import audit (S-3) At [source snapshot `62cb8d0`](https://shoal.club/shoal/yang-mills-mass-gap/tree/62cb8d07e1f2316e822560baf2dbc19058636152), the [archived usage table](../../verification/module-usage.tsv) records 9,469 modules. A module is reached if its `used` column is positive. Of the 2,946 modules with zero used declarations, 873 are directly imported by a reached module and 2,073 are reached only through a chain of imports. Every zero-use module has an import path. The three largest areas by zero-use module count are: | Area | Direct | Transitive only | Unimported | Total | |---|---:|---:|---:|---:| | `YM/RG08` | 95 | 295 | 0 | 390 | | `YM/Push` | 92 | 236 | 0 | 328 | | `YM/Further` | 60 | 173 | 0 | 233 | | All 42 areas | 873 | 2,073 | 0 | 2,946 | - [Per-module table](unreached-modules.tsv): shortest import distance from any of the 6,523 reached modules. `imported_by` names the preceding module on one shortest path. Follow it through the table to trace the path back to a reached module. One edge is direct, two or more is transitive only, and an absent path leaves the distance and importer blank. - [Per-folder table](unreached-modules-by-folder.tsv): one row per containing directory with a zero-use module, plus an `area` column for grouping by the first subdirectory under `YM/`. From a Git checkout with Python 3.8 or later, run: ```sh python3 docs/tables/ym_import_graph.py --check ``` The script reads the Lean headers of all 9,477 tracked source files and recomputes both tables byte for byte. Omit `--check` to regenerate them. Only imports to modules with tracked source are followed in the graph. Files outside the archived usage table still participate in the graph, but only modules with a row in that table are classified. The usage table describes the environment loaded by [`verification/Usage.lean`](../../verification/Usage.lean). Its zero-use rows already belong to that imported environment. A source import can support elaboration, including instance search and notation. Use the paths to inspect those dependencies and rebuild any proposed deletion under [S-1](https://shoal.club/shoal/yang-mills-mass-gap/issues/26).