Datasets:
Initial dataset upload (anonymized for review)
Browse files- .gitattributes +11 -1
- README.md +232 -3
- edges.csv +3 -0
- experiments/holdout_decl_level.json +113 -0
- experiments/holdout_edge_level.json +63 -0
- experiments/premise_retrieval_hard_negatives.json +38 -0
- experiments/premise_retrieval_results.json +86 -0
- mathlib_edges.csv +3 -0
- mathlib_nodes.csv +3 -0
- mechanisms.ndjson +3 -0
- nodes.csv +3 -0
- summary.md +46 -0
- tactic_usage.ndjson +3 -0
- v2/declaration/metrics.csv +3 -0
- v2/declaration/nodes.csv +3 -0
- v2/module/edges.csv +0 -0
- v2/module/metrics.csv +0 -0
- v2/module/nodes.csv +0 -0
- v2/namespace/edges.csv +3 -0
- v2/namespace/metrics.csv +0 -0
- v2/namespace/nodes.csv +0 -0
- v2/summary.json +68 -0
.gitattributes
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
| 3 |
-
*.avro filter=lfs diff=lfs merge=lfs -text
|
| 4 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 5 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 6 |
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
|
@@ -58,3 +57,14 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 58 |
# Video files - compressed
|
| 59 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 60 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
*.7z filter=lfs diff=lfs merge=lfs -text
|
| 2 |
*.arrow filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 3 |
*.bin filter=lfs diff=lfs merge=lfs -text
|
| 4 |
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
| 5 |
*.ckpt filter=lfs diff=lfs merge=lfs -text
|
|
|
|
| 57 |
# Video files - compressed
|
| 58 |
*.mp4 filter=lfs diff=lfs merge=lfs -text
|
| 59 |
*.webm filter=lfs diff=lfs merge=lfs -text
|
| 60 |
+
nodes.csv filter=lfs diff=lfs merge=lfs -text
|
| 61 |
+
edges.csv filter=lfs diff=lfs merge=lfs -text
|
| 62 |
+
mathlib_nodes.csv filter=lfs diff=lfs merge=lfs -text
|
| 63 |
+
mathlib_edges.csv filter=lfs diff=lfs merge=lfs -text
|
| 64 |
+
tactic_usage.ndjson filter=lfs diff=lfs merge=lfs -text
|
| 65 |
+
mechanisms.ndjson filter=lfs diff=lfs merge=lfs -text
|
| 66 |
+
v2/mathlib_nodes_enriched.csv filter=lfs diff=lfs merge=lfs -text
|
| 67 |
+
v2/mathlib_namespace_edges_k2.csv filter=lfs diff=lfs merge=lfs -text
|
| 68 |
+
v2/declaration/nodes.csv filter=lfs diff=lfs merge=lfs -text
|
| 69 |
+
v2/namespace/edges.csv filter=lfs diff=lfs merge=lfs -text
|
| 70 |
+
v2/declaration/metrics.csv filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
|
@@ -1,3 +1,232 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
task_categories:
|
| 4 |
+
- graph-ml
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- mathematics
|
| 9 |
+
- lean4
|
| 10 |
+
- mathlib
|
| 11 |
+
- dependency-graph
|
| 12 |
+
- formal-verification
|
| 13 |
+
- network-analysis
|
| 14 |
+
size_categories:
|
| 15 |
+
- 100K<n<1M
|
| 16 |
+
---
|
| 17 |
+
|
| 18 |
+
# MathlibGraph: The Multinetwork of Mathlib
|
| 19 |
+
|
| 20 |
+
Dependency graph of [Mathlib](https://github.com/leanprover-community/mathlib4) (commit [`534cf0b`](https://github.com/leanprover-community/mathlib4/commit/534cf0b), 2 Feb 2026), the largest formal mathematics library for Lean 4 (`v4.28.0-rc1`).
|
| 21 |
+
|
| 22 |
+
Three dependency layers (declarations, modules, namespaces), each with nodes, edges, and precomputed network metrics.
|
| 23 |
+
|
| 24 |
+
## Quick Stats
|
| 25 |
+
|
| 26 |
+
| | Declarations | Modules | Namespaces (k=2) |
|
| 27 |
+
|---|---|---|---|
|
| 28 |
+
| Nodes | 308,129 | 7,564 | 10,097 |
|
| 29 |
+
| Edges | 8,436,366 | 20,881 | 332,081 (weighted) |
|
| 30 |
+
| DAG depth | 83 | 154 | 7 (after SCC condensation) |
|
| 31 |
+
| Louvain modularity | 0.478 | 0.610 | 0.270 |
|
| 32 |
+
| Synthesized edges | 74.2% | — | — |
|
| 33 |
+
| In cycles | 5,732 nodes | 0 (DAG) | 6,055 nodes (38 SCCs) |
|
| 34 |
+
|
| 35 |
+
## Files
|
| 36 |
+
|
| 37 |
+
### Raw Data (v1)
|
| 38 |
+
|
| 39 |
+
| File | Rows | Description |
|
| 40 |
+
|------|------|-------------|
|
| 41 |
+
| `mathlib_edges.csv` | 8,436,366 | Declaration dependency edges |
|
| 42 |
+
| `mathlib_nodes.csv` | 317,655 | Declarations before deduplication |
|
| 43 |
+
| `nodes.csv` / `edges.csv` | 633K / 10.9M | Full environment (Lean + Std + Mathlib) |
|
| 44 |
+
| `mechanisms.ndjson` | — | Lean language mechanism extractions |
|
| 45 |
+
| `tactic_usage.ndjson` | — | Per-declaration tactic usage profiles |
|
| 46 |
+
|
| 47 |
+
### Three-Layer Graphs (v2)
|
| 48 |
+
|
| 49 |
+
Each layer has `nodes.csv`, `edges.csv`, and `metrics.csv`:
|
| 50 |
+
|
| 51 |
+
| Folder | Nodes | Edges | Metrics | Description |
|
| 52 |
+
|--------|-------|-------|---------|-------------|
|
| 53 |
+
| `v2/declaration/` | 308,129 | (use root `mathlib_edges.csv`) | 308,129 x 11 | Theorems, definitions, and other named constants |
|
| 54 |
+
| `v2/module/` | 7,564 | 20,881 | 7,564 x 10 | Source files linked by `import` statements |
|
| 55 |
+
| `v2/namespace/` | 10,097 | 332,081 | 10,097 x 11 | Depth-2 dotted-name prefixes, weighted edges |
|
| 56 |
+
|
| 57 |
+
`v2/summary.json` contains headline statistics for all three levels.
|
| 58 |
+
|
| 59 |
+
## Quick Start
|
| 60 |
+
|
| 61 |
+
```python
|
| 62 |
+
from datasets import load_dataset
|
| 63 |
+
|
| 64 |
+
# Declaration level
|
| 65 |
+
decl = load_dataset("anon-d3a4/MathlibGraph",
|
| 66 |
+
data_files="v2/declaration/metrics.csv", split="train").to_pandas()
|
| 67 |
+
edges = load_dataset("anon-d3a4/MathlibGraph",
|
| 68 |
+
data_files="mathlib_edges.csv", split="train").to_pandas()
|
| 69 |
+
|
| 70 |
+
# Module level
|
| 71 |
+
mod_nodes = load_dataset("anon-d3a4/MathlibGraph",
|
| 72 |
+
data_files="v2/module/nodes.csv", split="train").to_pandas()
|
| 73 |
+
mod_edges = load_dataset("anon-d3a4/MathlibGraph",
|
| 74 |
+
data_files="v2/module/edges.csv", split="train").to_pandas()
|
| 75 |
+
|
| 76 |
+
# Namespace level
|
| 77 |
+
ns_nodes = load_dataset("anon-d3a4/MathlibGraph",
|
| 78 |
+
data_files="v2/namespace/nodes.csv", split="train").to_pandas()
|
| 79 |
+
ns_edges = load_dataset("anon-d3a4/MathlibGraph",
|
| 80 |
+
data_files="v2/namespace/edges.csv", split="train").to_pandas()
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
## Schema
|
| 84 |
+
|
| 85 |
+
### v2/declaration/nodes.csv
|
| 86 |
+
|
| 87 |
+
Deduplicated from `mathlib_nodes.csv` (317,655 to 308,129 rows; 9,526 `@[to_additive]` mirrors removed).
|
| 88 |
+
|
| 89 |
+
| Column | Type | Description |
|
| 90 |
+
|--------|------|-------------|
|
| 91 |
+
| name | str | Fully qualified declaration name |
|
| 92 |
+
| kind | str | theorem, definition, abbrev, inductive, constructor, opaque, axiom, or quotient |
|
| 93 |
+
| module | str | Parent namespace (null for 30,944 Lean core declarations) |
|
| 94 |
+
|
| 95 |
+
### v2/declaration/metrics.csv
|
| 96 |
+
|
| 97 |
+
All columns from `nodes.csv` plus:
|
| 98 |
+
|
| 99 |
+
| Column | Type | Description |
|
| 100 |
+
|--------|------|-------------|
|
| 101 |
+
| namespace_depth2 | str | First 2 dot-separated components (e.g., `Mathlib.Algebra`) |
|
| 102 |
+
| namespace_depth3 | str | First 3 dot-separated components |
|
| 103 |
+
| in_degree | int | Declarations that depend on this one |
|
| 104 |
+
| out_degree | int | Declarations this one depends on |
|
| 105 |
+
| pagerank | float | PageRank (alpha=0.85) |
|
| 106 |
+
| betweenness | float | Betweenness centrality (k=500, seed=42) |
|
| 107 |
+
| community_id | int | Louvain community |
|
| 108 |
+
| dag_layer | int | Topological depth; -1 for 5,732 nodes in cycles |
|
| 109 |
+
| file_module | str | Source file module (from Lean environment, 278K coverage) |
|
| 110 |
+
| is_tactic_proof | bool | Whether the proof uses tactics (78,315 declarations) |
|
| 111 |
+
| tactic_count | int | Number of tactics used in the proof |
|
| 112 |
+
| top_tactic | str | Most frequently used tactic in this proof |
|
| 113 |
+
| is_instance | bool | Whether this is a typeclass instance (26,415 declarations) |
|
| 114 |
+
| instance_class | str | Which typeclass this instance implements |
|
| 115 |
+
| is_coercion | bool | Whether this is a coercion (241 declarations) |
|
| 116 |
+
| to_additive_pair | str | Name of the corresponding additive/multiplicative variant |
|
| 117 |
+
| def_height | float | Definitional height in the kernel (42,935 declarations) |
|
| 118 |
+
|
| 119 |
+
### v2/module/nodes.csv
|
| 120 |
+
|
| 121 |
+
| Column | Type | Description |
|
| 122 |
+
|--------|------|-------------|
|
| 123 |
+
| module | str | Dotted module name (e.g., `Mathlib.Algebra.Group.Defs`) |
|
| 124 |
+
| decl_count | int | Declarations defined in this source file |
|
| 125 |
+
|
| 126 |
+
### v2/module/edges.csv
|
| 127 |
+
|
| 128 |
+
| Column | Type | Description |
|
| 129 |
+
|--------|------|-------------|
|
| 130 |
+
| source | str | Importing module |
|
| 131 |
+
| target | str | Imported module |
|
| 132 |
+
| is_exported | bool | Whether this is a public import (20,699 of 20,881) |
|
| 133 |
+
|
| 134 |
+
### v2/module/metrics.csv
|
| 135 |
+
|
| 136 |
+
| Column | Type | Description |
|
| 137 |
+
|--------|------|-------------|
|
| 138 |
+
| module | str | Module name |
|
| 139 |
+
| decl_count | int | Declarations in this module (full decl_module mapping, 499K coverage) |
|
| 140 |
+
| in_degree | int | Modules that import this one |
|
| 141 |
+
| out_degree | int | Modules this one imports |
|
| 142 |
+
| pagerank | float | PageRank on module import graph |
|
| 143 |
+
| betweenness | float | Betweenness centrality (exact) |
|
| 144 |
+
| dag_layer | int | Topological depth in module DAG |
|
| 145 |
+
| community_id | int | Louvain community |
|
| 146 |
+
| cohesion | float | Fraction of declaration edges staying within module |
|
| 147 |
+
| import_utilization_median | float | Median fraction of imported declarations used |
|
| 148 |
+
|
| 149 |
+
### v2/namespace/nodes.csv
|
| 150 |
+
|
| 151 |
+
| Column | Type | Description |
|
| 152 |
+
|--------|------|-------------|
|
| 153 |
+
| namespace | str | Depth-2 namespace (e.g., `Mathlib.Algebra`) |
|
| 154 |
+
| decl_count | int | Declarations in this namespace |
|
| 155 |
+
| in_cycle | bool | True if this namespace is in a strongly connected component |
|
| 156 |
+
| scc_id | int | SCC identifier (-1 if not in a cycle) |
|
| 157 |
+
|
| 158 |
+
### v2/namespace/edges.csv
|
| 159 |
+
|
| 160 |
+
| Column | Type | Description |
|
| 161 |
+
|--------|------|-------------|
|
| 162 |
+
| source | str | Source namespace |
|
| 163 |
+
| target | str | Target namespace |
|
| 164 |
+
| weight | int | Number of declaration-level edges between these namespaces |
|
| 165 |
+
|
| 166 |
+
### v2/namespace/metrics.csv
|
| 167 |
+
|
| 168 |
+
| Column | Type | Description |
|
| 169 |
+
|--------|------|-------------|
|
| 170 |
+
| namespace | str | Depth-2 namespace |
|
| 171 |
+
| decl_count | int | Declarations in this namespace |
|
| 172 |
+
| in_degree | int | Unweighted in-degree |
|
| 173 |
+
| out_degree | int | Unweighted out-degree |
|
| 174 |
+
| edge_weight_sum | int | Total declaration edges involving this namespace |
|
| 175 |
+
| pagerank | float | Weighted PageRank (alpha=0.85) |
|
| 176 |
+
| betweenness | float | Weighted betweenness (k=300, seed=42) |
|
| 177 |
+
| community_id | int | Louvain community (weighted undirected) |
|
| 178 |
+
| cross_ns_ratio | float | Fraction of edges crossing namespace boundaries |
|
| 179 |
+
| in_cycle | bool | In a strongly connected component (6,055 of 10,097) |
|
| 180 |
+
| scc_id | int | SCC identifier (-1 if acyclic) |
|
| 181 |
+
|
| 182 |
+
## Methodology
|
| 183 |
+
|
| 184 |
+
- **Extraction**: lean4export (nodes) + lean-training-data (edges) + importGraph (module graph) + jixia (metadata)
|
| 185 |
+
- **Deduplication**: by name, 317,655 to 308,129 rows (9,526 `@[to_additive]` mirrors)
|
| 186 |
+
- **Self-loops**: 4,755 constructor self-references filtered
|
| 187 |
+
- **PageRank**: alpha=0.85, max_iter=100, tol=1e-6
|
| 188 |
+
- **Betweenness**: declaration k=500, namespace k=300, module exact; seed=42
|
| 189 |
+
- **Communities**: Louvain, resolution=1.0, random_state=42, undirected projection
|
| 190 |
+
- **DAG layers**: Kahn's algorithm; cycle nodes get layer=-1; namespace graph condensed via SCC
|
| 191 |
+
- **Namespace cycles**: 6,055 of 10,097 namespaces in 38 SCCs (largest: 5,899 nodes)
|
| 192 |
+
|
| 193 |
+
## Hold-Out Experiments
|
| 194 |
+
|
| 195 |
+
We validate the premise retrieval results with two levels of hold-out experiments to assess information leakage. In the original experiment, all network features (degree, PageRank, betweenness, community, DAG layer) are precomputed on the full graph. Hold-out experiments recompute features on a reduced graph to test whether full-graph computation inflates AUC.
|
| 196 |
+
|
| 197 |
+
### Edge-level hold-out
|
| 198 |
+
- Randomly remove 20% of edges, recompute all features on remaining 80% graph
|
| 199 |
+
- Tests whether full-graph feature computation inflates AUC
|
| 200 |
+
|
| 201 |
+
### Declaration-level hold-out
|
| 202 |
+
- Split theorems 80/20, remove ALL edges (incoming and outgoing) of test theorems from training graph
|
| 203 |
+
- Test theorems have zero degree in training graph
|
| 204 |
+
- Simulates the real scenario: predicting premises for a brand new theorem
|
| 205 |
+
|
| 206 |
+
### Results (Split 1, seed=42)
|
| 207 |
+
|
| 208 |
+
| Method | AUC (original) | AUC (edge hold-out) | AUC (decl hold-out) |
|
| 209 |
+
|--------|---------------|---------------------|---------------------|
|
| 210 |
+
| Random | 0.499 | 0.497 | 0.500 |
|
| 211 |
+
| Same module | 0.563 | 0.562 | 0.563 |
|
| 212 |
+
| Same namespace | 0.590 | 0.590 | 0.592 |
|
| 213 |
+
| Same community | 0.768 | 0.755 | 0.500 |
|
| 214 |
+
| Network features | 0.991 | 0.988 | 0.978 |
|
| 215 |
+
| All features | 0.994 | 0.992 | 0.984 |
|
| 216 |
+
|
| 217 |
+
The community feature drops to random (0.500) in declaration-level hold-out because test declarations become isolated nodes with unique community IDs. Despite this, the combined network feature model retains AUC=0.978, confirming that degree, PageRank, and DAG position carry genuine predictive signal independent of information leakage.
|
| 218 |
+
|
| 219 |
+
Full 5-split results with mean and std are in `experiments/holdout_decl_level.json` (updated incrementally).
|
| 220 |
+
|
| 221 |
+
### Experiment Files
|
| 222 |
+
|
| 223 |
+
| File | Description |
|
| 224 |
+
|------|-------------|
|
| 225 |
+
| `experiments/premise_retrieval_results.json` | Original experiment: 6 methods, 4 metrics, 95% CI |
|
| 226 |
+
| `experiments/premise_retrieval_hard_negatives.json` | Hard negatives (same-community) variant |
|
| 227 |
+
| `experiments/holdout_edge_level.json` | Edge-level hold-out (1 split) |
|
| 228 |
+
| `experiments/holdout_decl_level.json` | Declaration-level hold-out (5 splits, incremental) |
|
| 229 |
+
|
| 230 |
+
## License
|
| 231 |
+
|
| 232 |
+
Apache 2.0
|
edges.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:78b20d6311388159bdab03ddfb68d5ef5687ced629ee04a99d9880bcd043a08f
|
| 3 |
+
size 753711915
|
experiments/holdout_decl_level.json
ADDED
|
@@ -0,0 +1,113 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"completed_splits": [
|
| 3 |
+
{
|
| 4 |
+
"seed": 42,
|
| 5 |
+
"results_uniform": {
|
| 6 |
+
"Random": {
|
| 7 |
+
"AUC": 0.5003,
|
| 8 |
+
"R@10": 0.1333,
|
| 9 |
+
"R@50": 0.676,
|
| 10 |
+
"MRR": 0.524,
|
| 11 |
+
"n_problems": 5000
|
| 12 |
+
},
|
| 13 |
+
"Same module": {
|
| 14 |
+
"AUC": 0.563,
|
| 15 |
+
"R@10": 0.1789,
|
| 16 |
+
"R@50": 0.642,
|
| 17 |
+
"MRR": 0.998,
|
| 18 |
+
"n_problems": 5000
|
| 19 |
+
},
|
| 20 |
+
"Same namespace": {
|
| 21 |
+
"AUC": 0.5922,
|
| 22 |
+
"R@10": 0.2233,
|
| 23 |
+
"R@50": 0.664,
|
| 24 |
+
"MRR": 0.966,
|
| 25 |
+
"n_problems": 5000
|
| 26 |
+
},
|
| 27 |
+
"Same community": {
|
| 28 |
+
"AUC": 0.5,
|
| 29 |
+
"R@10": 0.0683,
|
| 30 |
+
"R@50": 0.618,
|
| 31 |
+
"MRR": 1.0,
|
| 32 |
+
"n_problems": 5000
|
| 33 |
+
},
|
| 34 |
+
"Network features": {
|
| 35 |
+
"AUC": 0.9778,
|
| 36 |
+
"R@10": 0.5124,
|
| 37 |
+
"R@50": 0.937,
|
| 38 |
+
"MRR": 0.997,
|
| 39 |
+
"n_problems": 5000
|
| 40 |
+
},
|
| 41 |
+
"All features": {
|
| 42 |
+
"AUC": 0.9844,
|
| 43 |
+
"R@10": 0.5212,
|
| 44 |
+
"R@50": 0.94,
|
| 45 |
+
"MRR": 0.997,
|
| 46 |
+
"n_problems": 5000
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"results_hard": {
|
| 50 |
+
"Random": {
|
| 51 |
+
"AUC": 0.5003,
|
| 52 |
+
"R@10": 0.1333,
|
| 53 |
+
"R@50": 0.676,
|
| 54 |
+
"MRR": 0.524,
|
| 55 |
+
"n_problems": 5000
|
| 56 |
+
},
|
| 57 |
+
"Same module": {
|
| 58 |
+
"AUC": 0.563,
|
| 59 |
+
"R@10": 0.1789,
|
| 60 |
+
"R@50": 0.642,
|
| 61 |
+
"MRR": 0.997,
|
| 62 |
+
"n_problems": 5000
|
| 63 |
+
},
|
| 64 |
+
"Same namespace": {
|
| 65 |
+
"AUC": 0.5922,
|
| 66 |
+
"R@10": 0.2234,
|
| 67 |
+
"R@50": 0.664,
|
| 68 |
+
"MRR": 0.964,
|
| 69 |
+
"n_problems": 5000
|
| 70 |
+
},
|
| 71 |
+
"Same community": {
|
| 72 |
+
"AUC": 0.5,
|
| 73 |
+
"R@10": 0.0683,
|
| 74 |
+
"R@50": 0.618,
|
| 75 |
+
"MRR": 1.0,
|
| 76 |
+
"n_problems": 5000
|
| 77 |
+
},
|
| 78 |
+
"Network features": {
|
| 79 |
+
"AUC": 0.9776,
|
| 80 |
+
"R@10": 0.5097,
|
| 81 |
+
"R@50": 0.937,
|
| 82 |
+
"MRR": 0.997,
|
| 83 |
+
"n_problems": 5000
|
| 84 |
+
},
|
| 85 |
+
"All features": {
|
| 86 |
+
"AUC": 0.9842,
|
| 87 |
+
"R@10": 0.5191,
|
| 88 |
+
"R@50": 0.94,
|
| 89 |
+
"MRR": 0.997,
|
| 90 |
+
"n_problems": 5000
|
| 91 |
+
}
|
| 92 |
+
},
|
| 93 |
+
"diagnostics": {
|
| 94 |
+
"in_degree_pearson_r": 0.999851,
|
| 95 |
+
"out_degree_pearson_r": 0.999315,
|
| 96 |
+
"pagerank_pearson_r": 0.950683,
|
| 97 |
+
"betweenness_pearson_r": 0.712134,
|
| 98 |
+
"community_nmi": 0.7821,
|
| 99 |
+
"dag_layer_mean_shift": 2.9912,
|
| 100 |
+
"test_decl_mean_in_degree": 0.0,
|
| 101 |
+
"test_decl_mean_out_degree": 0.0,
|
| 102 |
+
"test_decl_mean_pagerank": 7.667e-07,
|
| 103 |
+
"n_wcc": 48812,
|
| 104 |
+
"largest_wcc_size": 259311,
|
| 105 |
+
"g_train_edges": 6727267,
|
| 106 |
+
"edges_removed_pct": 20.21
|
| 107 |
+
},
|
| 108 |
+
"n_train_decls": 194929,
|
| 109 |
+
"n_test_decls": 48733,
|
| 110 |
+
"elapsed_s": 2396
|
| 111 |
+
}
|
| 112 |
+
]
|
| 113 |
+
}
|
experiments/holdout_edge_level.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"completed_splits": [
|
| 3 |
+
{
|
| 4 |
+
"seed": 42,
|
| 5 |
+
"results": {
|
| 6 |
+
"Random": {
|
| 7 |
+
"AUC": 0.497,
|
| 8 |
+
"R@10": 0.179,
|
| 9 |
+
"R@50": 0.897,
|
| 10 |
+
"MRR": 0.25,
|
| 11 |
+
"n_problems": 5000
|
| 12 |
+
},
|
| 13 |
+
"Same module": {
|
| 14 |
+
"AUC": 0.562,
|
| 15 |
+
"R@10": 0.398,
|
| 16 |
+
"R@50": 0.973,
|
| 17 |
+
"MRR": 0.994,
|
| 18 |
+
"n_problems": 5000
|
| 19 |
+
},
|
| 20 |
+
"Same namespace": {
|
| 21 |
+
"AUC": 0.59,
|
| 22 |
+
"R@10": 0.431,
|
| 23 |
+
"R@50": 0.974,
|
| 24 |
+
"MRR": 0.93,
|
| 25 |
+
"n_problems": 5000
|
| 26 |
+
},
|
| 27 |
+
"Same community": {
|
| 28 |
+
"AUC": 0.755,
|
| 29 |
+
"R@10": 0.441,
|
| 30 |
+
"R@50": 0.98,
|
| 31 |
+
"MRR": 0.786,
|
| 32 |
+
"n_problems": 5000
|
| 33 |
+
},
|
| 34 |
+
"Network features": {
|
| 35 |
+
"AUC": 0.988,
|
| 36 |
+
"R@10": 0.919,
|
| 37 |
+
"R@50": 0.999,
|
| 38 |
+
"MRR": 0.976,
|
| 39 |
+
"n_problems": 5000
|
| 40 |
+
},
|
| 41 |
+
"All features": {
|
| 42 |
+
"AUC": 0.992,
|
| 43 |
+
"R@10": 0.926,
|
| 44 |
+
"R@50": 0.999,
|
| 45 |
+
"MRR": 0.984,
|
| 46 |
+
"n_problems": 5000
|
| 47 |
+
}
|
| 48 |
+
},
|
| 49 |
+
"diagnostics": {
|
| 50 |
+
"in_degree_pearson_r": 0.999991,
|
| 51 |
+
"out_degree_pearson_r": 0.996016,
|
| 52 |
+
"pagerank_pearson_r": 0.911671,
|
| 53 |
+
"betweenness_pearson_r": 0.658761,
|
| 54 |
+
"community_nmi": 0.6737,
|
| 55 |
+
"dag_layer_mean_shift": 3.1637,
|
| 56 |
+
"dag_layer_max_shift": 80,
|
| 57 |
+
"n_wcc": 363,
|
| 58 |
+
"largest_wcc_size": 307763
|
| 59 |
+
},
|
| 60 |
+
"elapsed_s": 2937
|
| 61 |
+
}
|
| 62 |
+
]
|
| 63 |
+
}
|
experiments/premise_retrieval_hard_negatives.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Random": {
|
| 3 |
+
"AUC": 0.5015032262104209,
|
| 4 |
+
"R@10": 0.1360585603981675,
|
| 5 |
+
"R@50": 0.6769906958015243,
|
| 6 |
+
"MRR": 0.5216367807667213
|
| 7 |
+
},
|
| 8 |
+
"Same module": {
|
| 9 |
+
"AUC": 0.562350943150883,
|
| 10 |
+
"R@10": 0.17716134828405006,
|
| 11 |
+
"R@50": 0.6429486391917959,
|
| 12 |
+
"MRR": 0.9893142857142857
|
| 13 |
+
},
|
| 14 |
+
"Same namespace": {
|
| 15 |
+
"AUC": 0.5803446516951352,
|
| 16 |
+
"R@10": 0.2057242294389468,
|
| 17 |
+
"R@50": 0.6591106708054222,
|
| 18 |
+
"MRR": 0.9167673885966564
|
| 19 |
+
},
|
| 20 |
+
"Same community": {
|
| 21 |
+
"AUC": 0.3601798080569178,
|
| 22 |
+
"R@10": 0.05207239139664216,
|
| 23 |
+
"R@50": 0.5079945224060302,
|
| 24 |
+
"MRR": 0.793327165399728
|
| 25 |
+
},
|
| 26 |
+
"Network features": {
|
| 27 |
+
"AUC": 0.9838247131236855,
|
| 28 |
+
"R@10": 0.5103782600858937,
|
| 29 |
+
"R@50": 0.9414442050593969,
|
| 30 |
+
"MRR": 0.9986583333333334
|
| 31 |
+
},
|
| 32 |
+
"All features": {
|
| 33 |
+
"AUC": 0.9894400400671409,
|
| 34 |
+
"R@10": 0.5203356738855442,
|
| 35 |
+
"R@50": 0.9426993462065937,
|
| 36 |
+
"MRR": 0.9986333333333334
|
| 37 |
+
}
|
| 38 |
+
}
|
experiments/premise_retrieval_results.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Random": {
|
| 3 |
+
"AUC": 0.4988464624381927,
|
| 4 |
+
"R@10": 0.13489873938604055,
|
| 5 |
+
"R@50": 0.675421720785031,
|
| 6 |
+
"MRR": 0.5177648872389418,
|
| 7 |
+
"AUC_ci_lo": 0.4976579056909061,
|
| 8 |
+
"AUC_ci_hi": 0.5025447127337402,
|
| 9 |
+
"R@10_ci_lo": 0.13314589782962657,
|
| 10 |
+
"R@10_ci_hi": 0.13807478534717094,
|
| 11 |
+
"R@50_ci_lo": 0.6708032287760948,
|
| 12 |
+
"R@50_ci_hi": 0.6822757937354658,
|
| 13 |
+
"MRR_ci_lo": 0.5097106183497658,
|
| 14 |
+
"MRR_ci_hi": 0.5304948072004493
|
| 15 |
+
},
|
| 16 |
+
"Same module": {
|
| 17 |
+
"AUC": 0.563252943150883,
|
| 18 |
+
"R@10": 0.17701251024723705,
|
| 19 |
+
"R@50": 0.6434465696480249,
|
| 20 |
+
"MRR": 0.9972,
|
| 21 |
+
"AUC_ci_lo": 0.5611102003189763,
|
| 22 |
+
"AUC_ci_hi": 0.5651486253506915,
|
| 23 |
+
"R@10_ci_lo": 0.17269307941264872,
|
| 24 |
+
"R@10_ci_hi": 0.18132900160478696,
|
| 25 |
+
"R@50_ci_lo": 0.6354730399715295,
|
| 26 |
+
"R@50_ci_hi": 0.6551981898656606,
|
| 27 |
+
"MRR_ci_lo": 0.9961949999999999,
|
| 28 |
+
"MRR_ci_hi": 0.9981
|
| 29 |
+
},
|
| 30 |
+
"Same namespace": {
|
| 31 |
+
"AUC": 0.5902006516951351,
|
| 32 |
+
"R@10": 0.2200081147938892,
|
| 33 |
+
"R@50": 0.6626223704593136,
|
| 34 |
+
"MRR": 0.9695453174603176,
|
| 35 |
+
"AUC_ci_lo": 0.5880529846813214,
|
| 36 |
+
"AUC_ci_hi": 0.5924840785351329,
|
| 37 |
+
"R@10_ci_lo": 0.21586994086758424,
|
| 38 |
+
"R@10_ci_hi": 0.22475987434791297,
|
| 39 |
+
"R@50_ci_lo": 0.6548427218687078,
|
| 40 |
+
"R@50_ci_hi": 0.6734164434880273,
|
| 41 |
+
"MRR_ci_lo": 0.9664740277777778,
|
| 42 |
+
"MRR_ci_hi": 0.9724816488095238
|
| 43 |
+
},
|
| 44 |
+
"Same community": {
|
| 45 |
+
"AUC": 0.7675738080569178,
|
| 46 |
+
"R@10": 0.2066798209803219,
|
| 47 |
+
"R@50": 0.8225669566396177,
|
| 48 |
+
"MRR": 0.889924414802174,
|
| 49 |
+
"AUC_ci_lo": 0.7636466473774499,
|
| 50 |
+
"AUC_ci_hi": 0.7701280102171949,
|
| 51 |
+
"R@10_ci_lo": 0.20206740759955272,
|
| 52 |
+
"R@10_ci_hi": 0.2099666022599327,
|
| 53 |
+
"R@50_ci_lo": 0.8168676201838171,
|
| 54 |
+
"R@50_ci_hi": 0.8301017721564548,
|
| 55 |
+
"MRR_ci_lo": 0.8825203088999172,
|
| 56 |
+
"MRR_ci_hi": 0.8968358562953322
|
| 57 |
+
},
|
| 58 |
+
"Network features": {
|
| 59 |
+
"AUC": 0.9910488074402863,
|
| 60 |
+
"R@10": 0.5200779274690902,
|
| 61 |
+
"R@50": 0.9440300907986493,
|
| 62 |
+
"MRR": 0.9978666666666666,
|
| 63 |
+
"AUC_ci_lo": 0.9906065336840136,
|
| 64 |
+
"AUC_ci_hi": 0.9915709117833958,
|
| 65 |
+
"R@10_ci_lo": 0.513202566369347,
|
| 66 |
+
"R@10_ci_hi": 0.5287072912456959,
|
| 67 |
+
"R@50_ci_lo": 0.9401626991702056,
|
| 68 |
+
"R@50_ci_hi": 0.9492015962873687,
|
| 69 |
+
"MRR_ci_lo": 0.9969158333333333,
|
| 70 |
+
"MRR_ci_hi": 0.9986
|
| 71 |
+
},
|
| 72 |
+
"All features": {
|
| 73 |
+
"AUC": 0.9935149509905005,
|
| 74 |
+
"R@10": 0.5246824912435099,
|
| 75 |
+
"R@50": 0.944575070939189,
|
| 76 |
+
"MRR": 0.9984,
|
| 77 |
+
"AUC_ci_lo": 0.9931381533391922,
|
| 78 |
+
"AUC_ci_hi": 0.9938923361368286,
|
| 79 |
+
"R@10_ci_lo": 0.51749162029253,
|
| 80 |
+
"R@10_ci_hi": 0.5334405006567039,
|
| 81 |
+
"R@50_ci_lo": 0.9407193927667646,
|
| 82 |
+
"R@50_ci_hi": 0.9497068095655786,
|
| 83 |
+
"MRR_ci_lo": 0.9975475,
|
| 84 |
+
"MRR_ci_hi": 0.999
|
| 85 |
+
}
|
| 86 |
+
}
|
mathlib_edges.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5e1426b2304a97924cca1e48fa22d76620e1cb7bbb496a1bd9dd742cc6906922
|
| 3 |
+
size 584463744
|
mathlib_nodes.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b222647e7f5871ae20603c2ef87ec0da58143f097e03babdd584c654061725cb
|
| 3 |
+
size 17813672
|
mechanisms.ndjson
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c8d0905876f58af256e2f56bc6ac3c8f90f6a6e5d4c0a4b7f921e3e113e123f9
|
| 3 |
+
size 86007387
|
nodes.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cf2578bb394a14efb77bb5ce31e3313e5f24498a86139aa35be1f2c8c5a685b2
|
| 3 |
+
size 51121872
|
summary.md
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# MathFactor Data Summary
|
| 2 |
+
|
| 3 |
+
**Validation**: WARNING - Some edges reference missing nodes
|
| 4 |
+
- Missing sources: 15914 (e.g., ['Set.preimage_add_preimage_subset', 'Left.add_neg_of_neg_of_nonpos', 'Hindman.FS.head'])
|
| 5 |
+
- Missing targets: 12885 (e.g., ['Set.preimage_add_preimage_subset', 'GroupSeminorm.instSupSet._proof_3._to_additive_1', 'dist_sub_eq_dist_add_right'])
|
| 6 |
+
|
| 7 |
+
## Nodes
|
| 8 |
+
|
| 9 |
+
**Total**: 633,364
|
| 10 |
+
|
| 11 |
+
| Kind | Count |
|
| 12 |
+
|------|-------|
|
| 13 |
+
| theorem | 441,230 |
|
| 14 |
+
| definition | 82,962 |
|
| 15 |
+
| abbrev | 79,627 |
|
| 16 |
+
| constructor | 9,070 |
|
| 17 |
+
| opaque | 7,356 |
|
| 18 |
+
| recursor | 6,614 |
|
| 19 |
+
| inductive | 6,494 |
|
| 20 |
+
| axiom | 7 |
|
| 21 |
+
| quotient | 4 |
|
| 22 |
+
|
| 23 |
+
## Edges
|
| 24 |
+
|
| 25 |
+
**Total**: 10,889,011
|
| 26 |
+
|
| 27 |
+
| Type | Count |
|
| 28 |
+
|------|-------|
|
| 29 |
+
| Explicit (*) | 3,248,395 |
|
| 30 |
+
| Simplifier (s) | 0 |
|
| 31 |
+
| Direct | 7,640,616 |
|
| 32 |
+
|
| 33 |
+
## Top Modules (by node count)
|
| 34 |
+
|
| 35 |
+
| Module | Count |
|
| 36 |
+
|--------|-------|
|
| 37 |
+
| | 31,302 |
|
| 38 |
+
| List | 5,233 |
|
| 39 |
+
| Set | 5,065 |
|
| 40 |
+
| Finset | 4,954 |
|
| 41 |
+
| Nat | 4,566 |
|
| 42 |
+
| MeasureTheory | 3,496 |
|
| 43 |
+
| CategoryTheory | 3,471 |
|
| 44 |
+
| Polynomial | 3,280 |
|
| 45 |
+
| Int | 2,929 |
|
| 46 |
+
| CategoryTheory.Limits | 2,757 |
|
tactic_usage.ndjson
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3927807af5920b626b687565f415233219df017b5b1555a074a073809bff4f84
|
| 3 |
+
size 45050618
|
v2/declaration/metrics.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0c88b5044db57d48ba150fbe0a3550d47684739ca9b97dbb141564c5ce7a5658
|
| 3 |
+
size 57521366
|
v2/declaration/nodes.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0d2ad9ce65b83b1b650455eebea408b9820e9eef2ac8524d2b70a496044247e
|
| 3 |
+
size 37905777
|
v2/module/edges.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
v2/module/metrics.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
v2/module/nodes.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
v2/namespace/edges.csv
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:83bfba3f35e645002b03877bd82cf0013b9ee79d858c9a7b6fbe6281981fbc92
|
| 3 |
+
size 10799848
|
v2/namespace/metrics.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
v2/namespace/nodes.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
v2/summary.json
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"snapshot": {
|
| 3 |
+
"mathlib_commit": "534cf0b",
|
| 4 |
+
"snapshot_date": "2026-02-02",
|
| 5 |
+
"lean_version": "leanprover/lean4:v4.28.0-rc1"
|
| 6 |
+
},
|
| 7 |
+
"declaration_graph": {
|
| 8 |
+
"node_count": 308129,
|
| 9 |
+
"edge_count_raw": 8436366,
|
| 10 |
+
"edge_count_no_self_loops": 8431611,
|
| 11 |
+
"self_loops": 4755,
|
| 12 |
+
"explicit_edge_count": 2178534,
|
| 13 |
+
"explicit_edge_ratio": 0.2582,
|
| 14 |
+
"synthesized_edge_ratio": 0.7418,
|
| 15 |
+
"dag_depth": 83,
|
| 16 |
+
"dag_layers": 84,
|
| 17 |
+
"nodes_in_cycles": 5732,
|
| 18 |
+
"louvain_modularity": 0.4778,
|
| 19 |
+
"louvain_num_communities": 89,
|
| 20 |
+
"nmi_namespace_vs_community": 0.3458,
|
| 21 |
+
"power_law_alpha_in": 1.781,
|
| 22 |
+
"power_law_alpha_in_source": "paper appendix-decl.tex table, xmin=20",
|
| 23 |
+
"power_law_alpha_out": 2.936,
|
| 24 |
+
"power_law_alpha_out_source": "paper appendix-decl.tex table"
|
| 25 |
+
},
|
| 26 |
+
"module_graph": {
|
| 27 |
+
"node_count": 7564,
|
| 28 |
+
"edge_count": 20881,
|
| 29 |
+
"dag_depth": 154,
|
| 30 |
+
"dag_layers": 155,
|
| 31 |
+
"louvain_modularity": 0.6101,
|
| 32 |
+
"louvain_num_communities": 15,
|
| 33 |
+
"transitive_redundancy_ratio": 0.175,
|
| 34 |
+
"transitive_redundancy_ratio_source": "paper contribution.tex",
|
| 35 |
+
"median_import_utilization": 0.016,
|
| 36 |
+
"median_import_utilization_source": "paper contribution.tex (per-edge median over all import edges)",
|
| 37 |
+
"critical_path_parallelism_ratio": 22.4,
|
| 38 |
+
"critical_path_parallelism_ratio_source": "paper appendix-module.tex"
|
| 39 |
+
},
|
| 40 |
+
"namespace_graph_k2": {
|
| 41 |
+
"node_count": 10097,
|
| 42 |
+
"edge_count": 332081,
|
| 43 |
+
"dag_depth": 7,
|
| 44 |
+
"dag_layers": 8,
|
| 45 |
+
"dag_note": "namespace graph has cycles; depth computed on condensed SCC graph",
|
| 46 |
+
"louvain_modularity": 0.2703,
|
| 47 |
+
"louvain_num_communities": 13,
|
| 48 |
+
"nmi_namespace_vs_community": 0.2456,
|
| 49 |
+
"cross_namespace_ratio": 0.8581,
|
| 50 |
+
"cross_namespace_ratio_note": "fraction of declaration edges crossing depth-2 namespace boundaries"
|
| 51 |
+
},
|
| 52 |
+
"edge_decompositions": {
|
| 53 |
+
"proof_only_ratio": 0.439,
|
| 54 |
+
"statement_only_ratio": 0.081,
|
| 55 |
+
"mixed_ratio": 0.48,
|
| 56 |
+
"source": "paper contribution.tex (requires Lean extraction not in current dataset)"
|
| 57 |
+
},
|
| 58 |
+
"kind_distribution": {
|
| 59 |
+
"theorem": 243725,
|
| 60 |
+
"definition": 48664,
|
| 61 |
+
"abbrev": 6667,
|
| 62 |
+
"constructor": 4755,
|
| 63 |
+
"inductive": 3813,
|
| 64 |
+
"opaque": 499,
|
| 65 |
+
"quotient": 3,
|
| 66 |
+
"axiom": 3
|
| 67 |
+
}
|
| 68 |
+
}
|