File size: 1,562 Bytes
1567ab6 13ecd2e a8434c8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ---
license: apache-2.0
tags: [lean4, mathlib, dependency-graph]
---
# Leanage Mathlib dependency store
Compact dependency graph of Mathlib, used by the Leanage explorer to compute complete dependency closures and axiom audits in the browser.
- Source: [mathlib-initiative/mathlib-const-dep](https://huggingface.co/datasets/mathlib-initiative/mathlib-const-dep) (Apache-2.0), Mathlib commit `fc4f59e577feb1a4956671bc04ac18aaaf8cd842`, Lean v4.36.0.
- 807,065 declarations, 21,494,898 edges (duplicates and self-edges removed). Edges are untyped.
- Files (each gzip-compressed): `names.txt` (sorted; line number is the node id), `modules.txt`, `node_module.u32`, `degrees.vbyte`, `targets.vbyte` (delta-coded LEB128 varints), `meta.json`.
- Built with `scripts/ingest_const_dep.py` in the Leanage repository. Axiom results matched real Lean `#print axioms` on 59 of 59 checked declarations.
- `tactics.u16.gz` + `tactics.json.gz` (optional): per-declaration bitmask of tactics found in the Mathlib source at the same commit, joined from [mathlib-initiative/mathlib-tactics](https://huggingface.co/datasets/mathlib-initiative/mathlib-tactics) by source position (239,553 declarations resolved; unresolved ones are unknown, not "no tactic"). Built with `scripts/ingest_tactics.py`.
- `flags.u8.gz` + `flags.json.gz` (optional): per-declaration byte of Lean flags (instance, projection, `@[coe]`, coe declaration, class, structure, structure constructor), extracted from Mathlib with Lean 4.36.0 by `scripts/extract_flags.lean`. Scoped instances are not included.
|