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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"@context": {
|
| 3 |
+
"@language": "en",
|
| 4 |
+
"@vocab": "https://schema.org/",
|
| 5 |
+
"citeAs": "cr:citeAs",
|
| 6 |
+
"column": "cr:column",
|
| 7 |
+
"conformsTo": "dct:conformsTo",
|
| 8 |
+
"cr": "http://mlcommons.org/croissant/",
|
| 9 |
+
"rai": "http://mlcommons.org/croissant/RAI/",
|
| 10 |
+
"data": {
|
| 11 |
+
"@id": "cr:data",
|
| 12 |
+
"@type": "@json"
|
| 13 |
+
},
|
| 14 |
+
"dataType": {
|
| 15 |
+
"@id": "cr:dataType",
|
| 16 |
+
"@type": "@vocab"
|
| 17 |
+
},
|
| 18 |
+
"dct": "http://purl.org/dc/terms/",
|
| 19 |
+
"equivalentProperty": "cr:equivalentProperty",
|
| 20 |
+
"examples": {
|
| 21 |
+
"@id": "cr:examples",
|
| 22 |
+
"@type": "@json"
|
| 23 |
+
},
|
| 24 |
+
"extract": "cr:extract",
|
| 25 |
+
"field": "cr:field",
|
| 26 |
+
"fileProperty": "cr:fileProperty",
|
| 27 |
+
"fileObject": "cr:fileObject",
|
| 28 |
+
"fileSet": "cr:fileSet",
|
| 29 |
+
"format": "cr:format",
|
| 30 |
+
"includes": "cr:includes",
|
| 31 |
+
"isLiveDataset": "cr:isLiveDataset",
|
| 32 |
+
"jsonPath": "cr:jsonPath",
|
| 33 |
+
"key": "cr:key",
|
| 34 |
+
"md5": "cr:md5",
|
| 35 |
+
"parentField": "cr:parentField",
|
| 36 |
+
"path": "cr:path",
|
| 37 |
+
"recordSet": "cr:recordSet",
|
| 38 |
+
"references": "cr:references",
|
| 39 |
+
"regex": "cr:regex",
|
| 40 |
+
"repeated": "cr:repeated",
|
| 41 |
+
"replace": "cr:replace",
|
| 42 |
+
"samplingRate": "cr:samplingRate",
|
| 43 |
+
"sc": "https://schema.org/",
|
| 44 |
+
"separator": "cr:separator",
|
| 45 |
+
"source": "cr:source",
|
| 46 |
+
"subField": "cr:subField",
|
| 47 |
+
"transform": "cr:transform"
|
| 48 |
+
},
|
| 49 |
+
"@type": "sc:Dataset",
|
| 50 |
+
"conformsTo": "http://mlcommons.org/croissant/1.0",
|
| 51 |
+
"name": "MathlibGraph",
|
| 52 |
+
"description": "MathlibGraph is the multinetwork of Lean 4's Mathlib (commit 534cf0b, 2026-02-02; lean4 v4.28.0-rc1) released as analysis-ready CSV files. The dataset contains a three-layer dependency graph of formalized mathematics: 308,129 declarations with 8,436,366 dependency edges, 7,564 source modules with 20,881 import edges, and 10,097 depth-2 namespaces with 332,081 weighted edges. Each declaration node carries 20 attributes spanning structural metadata, graph metrics (degree, PageRank, betweenness, Louvain community, DAG layer), proof metadata (tactic usage), and type-system annotations (typeclass instances, coercions, definitional heights). The release also includes raw extractions (full Lean+Std+Mathlib environment, language-mechanism records, tactic-usage profiles) and per-level metric tables. The dataset is intended for network analysis of formal mathematics, premise retrieval, and structural studies of theorem-proving libraries.",
|
| 53 |
+
"license": "https://www.apache.org/licenses/LICENSE-2.0",
|
| 54 |
+
"url": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph",
|
| 55 |
+
"creator": {
|
| 56 |
+
"@type": "sc:Organization",
|
| 57 |
+
"name": "Anonymous Authors"
|
| 58 |
+
},
|
| 59 |
+
"datePublished": "2026-02-02",
|
| 60 |
+
"version": "2.0",
|
| 61 |
+
"keywords": [
|
| 62 |
+
"mathematics",
|
| 63 |
+
"lean4",
|
| 64 |
+
"mathlib",
|
| 65 |
+
"dependency-graph",
|
| 66 |
+
"formal-verification",
|
| 67 |
+
"network-analysis",
|
| 68 |
+
"premise-retrieval"
|
| 69 |
+
],
|
| 70 |
+
"isLiveDataset": false,
|
| 71 |
+
"rai:dataCollection": "Programmatically extracted from the open-source Mathlib repository (https://github.com/leanprover-community/mathlib4) at commit 534cf0b (2026-02-02). Extraction was performed with four complementary open-source tools: lean4export (declaration enumeration from the Lean environment), lean-training-data (premise-level dependency edges), importGraph (module-level import edges), and jixia (per-declaration metadata including tactic usage). A custom extraction script queried Lean's Environment API for language mechanisms (typeclass instances, coercions, structure inheritance, to_additive pairs, definitional heights) across all 499,732 constants in the environment.",
|
| 72 |
+
"rai:dataCollectionType": "Automated programmatic extraction from a public open-source software repository. No human subjects, no surveys, and no crowdsourcing were involved.",
|
| 73 |
+
"rai:dataCollectionTimeframe": "2026-02-02",
|
| 74 |
+
"rai:dataCollectionRawData": "Raw extractions are released alongside the analysis-ready files: nodes.csv and edges.csv contain the full Lean+Std+Mathlib environment (633,364 nodes, 10,889,011 edges), mechanisms.ndjson contains language-mechanism records, and tactic_usage.ndjson contains per-declaration tactic profiles.",
|
| 75 |
+
"rai:dataCollectionMissingData": "30,944 Lean core declarations have no module attribution (file_module is null). Several derived metrics have partial coverage: file_module is populated for 278K of 308K declarations, is_tactic_proof and tactic_count for 78,315 tactic proofs, and def_height for 42,935 declarations. The 4,755 constructor self-loops are filtered before metric computation.",
|
| 76 |
+
"rai:dataPreprocessingProtocol": "(1) Deduplication by declaration name reduces 317,655 raw rows to 308,129 unique declarations, removing 9,526 @[to_additive] mirrors. (2) 4,755 constructor self-loops are filtered. (3) PageRank computed with alpha=0.85, max_iter=100, tol=1e-6. (4) Betweenness centrality computed with k=500 (declaration), k=300 (namespace), exact (module); seed=42. (5) Louvain communities computed with resolution=1.0, random_state=42, on the undirected projection. (6) DAG layers computed via Kahn's algorithm; nodes in cycles assigned layer=-1; the namespace graph is condensed via SCC before layering. (7) The depth-2 namespace projection aggregates declaration edges by their first two dotted-name components and weights edges by underlying declaration-edge count.",
|
| 77 |
+
"rai:dataAnnotationProtocol": "No human annotation. All node and edge attributes are derived deterministically from the Lean kernel via the extraction tools listed under rai:dataCollection. Attribute provenance is documented in the dataset README.",
|
| 78 |
+
"rai:dataAnnotationPlatform": "Not applicable — no annotation platform was used.",
|
| 79 |
+
"rai:dataAnnotationAnalysis": "Not applicable — no human annotators were involved.",
|
| 80 |
+
"rai:annotationsPerItem": "Not applicable — no human annotation.",
|
| 81 |
+
"rai:annotatorDemographics": "Not applicable — no human annotators were involved.",
|
| 82 |
+
"rai:machineAnnotationTools": "lean4export (https://github.com/leanprover/lean4export), lean-training-data (https://github.com/semorrison/lean-training-data), importGraph (https://github.com/leanprover-community/mathlib4 importGraph utility), jixia (https://github.com/frenzymath/jixia), and a custom Python extraction script that queries Lean's Environment API.",
|
| 83 |
+
"rai:dataReleaseMaintenancePlan": "The dataset is a fixed snapshot pinned to Mathlib commit 534cf0b. Periodic refreshes aligned with Mathlib's stable releases are planned but not on a fixed schedule. The extraction pipeline is released so users can reproduce or refresh the snapshot for any later commit. Issues, schema changes, and version bumps will be tracked through the dataset's HuggingFace repository.",
|
| 84 |
+
"rai:personalSensitiveInformation": "None. The dataset contains only formal mathematical declarations, dependency relationships, and derived structural metrics extracted from a public open-source library. It contains no personal data, no identifying information about any individual, and no human-subject data.",
|
| 85 |
+
"rai:dataBiases": "The dataset reflects the structural and topical biases of the Mathlib library at the snapshot date: (1) areas of mathematics that are more thoroughly formalized (e.g., algebra, topology, analysis) are over-represented relative to less formalized areas; (2) declarations follow Lean 4 stylistic conventions and naming practices set by the Mathlib community; (3) the prevalence of tactic-driven proofs (78,315 of 308,129 declarations) reflects current Mathlib practice and may not generalize to other formal libraries (Coq, Isabelle, Agda); (4) cross-namespace coupling and import patterns reflect the social and architectural decisions of Mathlib maintainers and may not be representative of formal-mathematics libraries in general.",
|
| 86 |
+
"rai:dataLimitations": "(1) Single-snapshot dataset: the graph corresponds to one Mathlib commit and does not include temporal/version history. (2) Coverage gaps: file_module attribution is missing for 30,944 Lean core declarations; def_height is computed only for 42,935 declarations. (3) The depth-2 namespace projection is one of several reasonable aggregations; results at depths 1, 3, or full namespace would differ. (4) Centrality computations on declaration-level betweenness use sampling (k=500) rather than exact computation due to graph size. (5) Synthesized vs explicit edge decompositions rely on the lean-training-data convention and may not exactly match alternative extraction pipelines.",
|
| 87 |
+
"rai:dataUseCases": "Intended uses: (a) network analysis of formal mathematics libraries; (b) premise retrieval for automated theorem proving; (c) studies of how human-designed taxonomies (namespaces, modules) relate to logical dependency structure; (d) benchmarking centrality, community detection, and graph-learning methods on a large, real-world directed graph; (e) auditing Mathlib structure (over-imports, cross-namespace coupling, redundancy) for library-engineering research.",
|
| 88 |
+
"rai:dataSocialImpact": "The dataset enables quantitative study of formalized mathematics and supports research on automated theorem proving, which has potential to accelerate verified software, formal verification of safety-critical systems, and machine-checked mathematical research. The dataset is derived from a permissively licensed open-source library and adds no personally identifying information. We are not aware of foreseeable harms from release.",
|
| 89 |
+
"rai:hasSyntheticData": false,
|
| 90 |
+
"citeAs": "Anonymous Authors. The Multinetwork of Mathlib: Structure, Data, and Analysis. Submitted to NeurIPS 2026 Track on Evaluations and Datasets, 2026.",
|
| 91 |
+
"distribution": [
|
| 92 |
+
{
|
| 93 |
+
"@type": "cr:FileObject",
|
| 94 |
+
"@id": "mathlib_edges.csv",
|
| 95 |
+
"name": "mathlib_edges.csv",
|
| 96 |
+
"description": "Declaration-level dependency edges over the deduplicated Mathlib graph (8,436,366 edges).",
|
| 97 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/mathlib_edges.csv",
|
| 98 |
+
"encodingFormat": "text/csv",
|
| 99 |
+
"sha256": "5e1426b2304a97924cca1e48fa22d76620e1cb7bbb496a1bd9dd742cc6906922",
|
| 100 |
+
"contentSize": "584463744 B"
|
| 101 |
+
},
|
| 102 |
+
{
|
| 103 |
+
"@type": "cr:FileObject",
|
| 104 |
+
"@id": "mathlib_nodes.csv",
|
| 105 |
+
"name": "mathlib_nodes.csv",
|
| 106 |
+
"description": "Mathlib declaration nodes prior to deduplication (317,655 rows).",
|
| 107 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/mathlib_nodes.csv",
|
| 108 |
+
"encodingFormat": "text/csv",
|
| 109 |
+
"sha256": "b222647e7f5871ae20603c2ef87ec0da58143f097e03babdd584c654061725cb",
|
| 110 |
+
"contentSize": "17813672 B"
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"@type": "cr:FileObject",
|
| 114 |
+
"@id": "edges.csv",
|
| 115 |
+
"name": "edges.csv",
|
| 116 |
+
"description": "Full-environment dependency edges (Lean + Std + Mathlib, 10,889,011 edges).",
|
| 117 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/edges.csv",
|
| 118 |
+
"encodingFormat": "text/csv",
|
| 119 |
+
"sha256": "78b20d6311388159bdab03ddfb68d5ef5687ced629ee04a99d9880bcd043a08f",
|
| 120 |
+
"contentSize": "753711915 B"
|
| 121 |
+
},
|
| 122 |
+
{
|
| 123 |
+
"@type": "cr:FileObject",
|
| 124 |
+
"@id": "nodes.csv",
|
| 125 |
+
"name": "nodes.csv",
|
| 126 |
+
"description": "Full-environment declaration nodes (Lean + Std + Mathlib, 633,364 rows).",
|
| 127 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/nodes.csv",
|
| 128 |
+
"encodingFormat": "text/csv",
|
| 129 |
+
"sha256": "cf2578bb394a14efb77bb5ce31e3313e5f24498a86139aa35be1f2c8c5a685b2",
|
| 130 |
+
"contentSize": "51121872 B"
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"@type": "cr:FileObject",
|
| 134 |
+
"@id": "mechanisms.ndjson",
|
| 135 |
+
"name": "mechanisms.ndjson",
|
| 136 |
+
"description": "Lean language-mechanism extractions (typeclass instances, coercions, structure inheritance, to_additive pairs, definitional heights).",
|
| 137 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/mechanisms.ndjson",
|
| 138 |
+
"encodingFormat": "application/x-ndjson",
|
| 139 |
+
"sha256": "c8d0905876f58af256e2f56bc6ac3c8f90f6a6e5d4c0a4b7f921e3e113e123f9",
|
| 140 |
+
"contentSize": "86007387 B"
|
| 141 |
+
},
|
| 142 |
+
{
|
| 143 |
+
"@type": "cr:FileObject",
|
| 144 |
+
"@id": "tactic_usage.ndjson",
|
| 145 |
+
"name": "tactic_usage.ndjson",
|
| 146 |
+
"description": "Per-declaration tactic-usage profiles for 78,315 tactic-driven proofs.",
|
| 147 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/tactic_usage.ndjson",
|
| 148 |
+
"encodingFormat": "application/x-ndjson",
|
| 149 |
+
"sha256": "3927807af5920b626b687565f415233219df017b5b1555a074a073809bff4f84",
|
| 150 |
+
"contentSize": "45050618 B"
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"@type": "cr:FileObject",
|
| 154 |
+
"@id": "v2-decl-nodes",
|
| 155 |
+
"name": "v2/declaration/nodes.csv",
|
| 156 |
+
"description": "Deduplicated declaration nodes (308,129 rows; name, kind, module).",
|
| 157 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/v2/declaration/nodes.csv",
|
| 158 |
+
"encodingFormat": "text/csv",
|
| 159 |
+
"sha256": "c0d2ad9ce65b83b1b650455eebea408b9820e9eef2ac8524d2b70a496044247e",
|
| 160 |
+
"contentSize": "37905777 B"
|
| 161 |
+
},
|
| 162 |
+
{
|
| 163 |
+
"@type": "cr:FileObject",
|
| 164 |
+
"@id": "v2-decl-metrics",
|
| 165 |
+
"name": "v2/declaration/metrics.csv",
|
| 166 |
+
"description": "Declaration-level node attributes and precomputed network metrics (308,129 rows x 20 columns).",
|
| 167 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/v2/declaration/metrics.csv",
|
| 168 |
+
"encodingFormat": "text/csv",
|
| 169 |
+
"sha256": "0c88b5044db57d48ba150fbe0a3550d47684739ca9b97dbb141564c5ce7a5658",
|
| 170 |
+
"contentSize": "57521366 B"
|
| 171 |
+
},
|
| 172 |
+
{
|
| 173 |
+
"@type": "cr:FileObject",
|
| 174 |
+
"@id": "v2-mod-nodes",
|
| 175 |
+
"name": "v2/module/nodes.csv",
|
| 176 |
+
"description": "Module nodes: dotted module name and declarations defined in the source file (7,564 rows).",
|
| 177 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/v2/module/nodes.csv",
|
| 178 |
+
"encodingFormat": "text/csv",
|
| 179 |
+
"sha256": "0b75f986818fa25bd0df7a303a205eaa24c4e814fe5c5178aa57575852e15be7",
|
| 180 |
+
"contentSize": "323577 B"
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"@type": "cr:FileObject",
|
| 184 |
+
"@id": "v2-mod-edges",
|
| 185 |
+
"name": "v2/module/edges.csv",
|
| 186 |
+
"description": "Module import edges with public/private flag (20,881 rows; 99.1% public imports).",
|
| 187 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/v2/module/edges.csv",
|
| 188 |
+
"encodingFormat": "text/csv",
|
| 189 |
+
"sha256": "d0a660e41bf06a9d7381d435934c3484a0080b70747a06cb54565f13aa3fee80",
|
| 190 |
+
"contentSize": "1680350 B"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"@type": "cr:FileObject",
|
| 194 |
+
"@id": "v2-mod-metrics",
|
| 195 |
+
"name": "v2/module/metrics.csv",
|
| 196 |
+
"description": "Module-level network metrics including degree, PageRank, betweenness, DAG layer, Louvain community, cohesion, and median import utilization (7,564 rows).",
|
| 197 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/v2/module/metrics.csv",
|
| 198 |
+
"encodingFormat": "text/csv",
|
| 199 |
+
"sha256": "66175be8cd776e0483bae3ef12ba41ff2e3fe582b1f6a55575e95f32bd741966",
|
| 200 |
+
"contentSize": "987528 B"
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"@type": "cr:FileObject",
|
| 204 |
+
"@id": "v2-ns-nodes",
|
| 205 |
+
"name": "v2/namespace/nodes.csv",
|
| 206 |
+
"description": "Depth-2 namespace nodes with cycle annotations (10,097 rows; 6,055 namespaces in 38 SCCs).",
|
| 207 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/v2/namespace/nodes.csv",
|
| 208 |
+
"encodingFormat": "text/csv",
|
| 209 |
+
"sha256": "cb38403368388c8e1430530979ef01fdd1ad37d84953fda39bcb35a79a45cd83",
|
| 210 |
+
"contentSize": "308113 B"
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"@type": "cr:FileObject",
|
| 214 |
+
"@id": "v2-ns-edges",
|
| 215 |
+
"name": "v2/namespace/edges.csv",
|
| 216 |
+
"description": "Depth-2 namespace edges weighted by underlying declaration-edge count (332,081 rows).",
|
| 217 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/v2/namespace/edges.csv",
|
| 218 |
+
"encodingFormat": "text/csv",
|
| 219 |
+
"sha256": "83bfba3f35e645002b03877bd82cf0013b9ee79d858c9a7b6fbe6281981fbc92",
|
| 220 |
+
"contentSize": "10799848 B"
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"@type": "cr:FileObject",
|
| 224 |
+
"@id": "v2-ns-metrics",
|
| 225 |
+
"name": "v2/namespace/metrics.csv",
|
| 226 |
+
"description": "Depth-2 namespace network metrics including weighted PageRank, weighted betweenness, Louvain community, cross-namespace ratio, and SCC membership (10,097 rows).",
|
| 227 |
+
"contentUrl": "https://huggingface.co/datasets/anon-mlib-d3a4/MathlibGraph/resolve/main/v2/namespace/metrics.csv",
|
| 228 |
+
"encodingFormat": "text/csv",
|
| 229 |
+
"sha256": "edc9d78a0049af7196fc4a91909cf770c8d7134431b970949fe75a741b36350e",
|
| 230 |
+
"contentSize": "844078 B"
|
| 231 |
+
}
|
| 232 |
+
],
|
| 233 |
+
"recordSet": [
|
| 234 |
+
{
|
| 235 |
+
"@type": "cr:RecordSet",
|
| 236 |
+
"@id": "declaration-edges",
|
| 237 |
+
"name": "declaration-edges",
|
| 238 |
+
"description": "Declaration-to-declaration dependency edges over the deduplicated Mathlib graph.",
|
| 239 |
+
"field": [
|
| 240 |
+
{
|
| 241 |
+
"@type": "cr:Field",
|
| 242 |
+
"@id": "declaration-edges/source",
|
| 243 |
+
"name": "source",
|
| 244 |
+
"description": "Fully qualified name of the depending declaration.",
|
| 245 |
+
"dataType": "sc:Text",
|
| 246 |
+
"source": {
|
| 247 |
+
"fileObject": {"@id": "mathlib_edges.csv"},
|
| 248 |
+
"extract": {"column": "source"}
|
| 249 |
+
}
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"@type": "cr:Field",
|
| 253 |
+
"@id": "declaration-edges/target",
|
| 254 |
+
"name": "target",
|
| 255 |
+
"description": "Fully qualified name of the depended-upon declaration.",
|
| 256 |
+
"dataType": "sc:Text",
|
| 257 |
+
"source": {
|
| 258 |
+
"fileObject": {"@id": "mathlib_edges.csv"},
|
| 259 |
+
"extract": {"column": "target"}
|
| 260 |
+
}
|
| 261 |
+
}
|
| 262 |
+
]
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"@type": "cr:RecordSet",
|
| 266 |
+
"@id": "declaration-nodes",
|
| 267 |
+
"name": "declaration-nodes",
|
| 268 |
+
"description": "Deduplicated declaration nodes from v2/declaration/nodes.csv.",
|
| 269 |
+
"field": [
|
| 270 |
+
{
|
| 271 |
+
"@type": "cr:Field",
|
| 272 |
+
"@id": "declaration-nodes/name",
|
| 273 |
+
"name": "name",
|
| 274 |
+
"description": "Fully qualified declaration name.",
|
| 275 |
+
"dataType": "sc:Text",
|
| 276 |
+
"source": {
|
| 277 |
+
"fileObject": {"@id": "v2-decl-nodes"},
|
| 278 |
+
"extract": {"column": "name"}
|
| 279 |
+
}
|
| 280 |
+
},
|
| 281 |
+
{
|
| 282 |
+
"@type": "cr:Field",
|
| 283 |
+
"@id": "declaration-nodes/kind",
|
| 284 |
+
"name": "kind",
|
| 285 |
+
"description": "Declaration kind: theorem, definition, abbrev, inductive, constructor, opaque, axiom, or quotient.",
|
| 286 |
+
"dataType": "sc:Text",
|
| 287 |
+
"source": {
|
| 288 |
+
"fileObject": {"@id": "v2-decl-nodes"},
|
| 289 |
+
"extract": {"column": "kind"}
|
| 290 |
+
}
|
| 291 |
+
},
|
| 292 |
+
{
|
| 293 |
+
"@type": "cr:Field",
|
| 294 |
+
"@id": "declaration-nodes/module",
|
| 295 |
+
"name": "module",
|
| 296 |
+
"description": "Parent namespace; null for 30,944 Lean core declarations.",
|
| 297 |
+
"dataType": "sc:Text",
|
| 298 |
+
"source": {
|
| 299 |
+
"fileObject": {"@id": "v2-decl-nodes"},
|
| 300 |
+
"extract": {"column": "module"}
|
| 301 |
+
}
|
| 302 |
+
}
|
| 303 |
+
]
|
| 304 |
+
},
|
| 305 |
+
{
|
| 306 |
+
"@type": "cr:RecordSet",
|
| 307 |
+
"@id": "declaration-metrics",
|
| 308 |
+
"name": "declaration-metrics",
|
| 309 |
+
"description": "Per-declaration structural metadata, network metrics, proof metadata, and type-system annotations.",
|
| 310 |
+
"field": [
|
| 311 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/name", "name": "name", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "name"}}},
|
| 312 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/kind", "name": "kind", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "kind"}}},
|
| 313 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/module", "name": "module", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "module"}}},
|
| 314 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/namespace_depth2", "name": "namespace_depth2", "description": "First two dot-separated components of the declaration name.", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "namespace_depth2"}}},
|
| 315 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/namespace_depth3", "name": "namespace_depth3", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "namespace_depth3"}}},
|
| 316 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/in_degree", "name": "in_degree", "description": "Number of declarations that depend on this one.", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "in_degree"}}},
|
| 317 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/out_degree", "name": "out_degree", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "out_degree"}}},
|
| 318 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/pagerank", "name": "pagerank", "description": "PageRank with alpha=0.85.", "dataType": "sc:Float", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "pagerank"}}},
|
| 319 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/betweenness", "name": "betweenness", "description": "Betweenness centrality (k=500 sampling, seed=42).", "dataType": "sc:Float", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "betweenness"}}},
|
| 320 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/community_id", "name": "community_id", "description": "Louvain community on undirected projection.", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "community_id"}}},
|
| 321 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/dag_layer", "name": "dag_layer", "description": "Topological depth; -1 for 5,732 nodes in cycles.", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "dag_layer"}}},
|
| 322 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/file_module", "name": "file_module", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "file_module"}}},
|
| 323 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/is_tactic_proof", "name": "is_tactic_proof", "dataType": "sc:Boolean", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "is_tactic_proof"}}},
|
| 324 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/tactic_count", "name": "tactic_count", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "tactic_count"}}},
|
| 325 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/top_tactic", "name": "top_tactic", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "top_tactic"}}},
|
| 326 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/is_instance", "name": "is_instance", "dataType": "sc:Boolean", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "is_instance"}}},
|
| 327 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/instance_class", "name": "instance_class", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "instance_class"}}},
|
| 328 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/is_coercion", "name": "is_coercion", "dataType": "sc:Boolean", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "is_coercion"}}},
|
| 329 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/to_additive_pair", "name": "to_additive_pair", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "to_additive_pair"}}},
|
| 330 |
+
{"@type": "cr:Field", "@id": "declaration-metrics/def_height", "name": "def_height", "dataType": "sc:Float", "source": {"fileObject": {"@id": "v2-decl-metrics"}, "extract": {"column": "def_height"}}}
|
| 331 |
+
]
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"@type": "cr:RecordSet",
|
| 335 |
+
"@id": "module-nodes",
|
| 336 |
+
"name": "module-nodes",
|
| 337 |
+
"description": "Source-file (module) nodes with declaration counts.",
|
| 338 |
+
"field": [
|
| 339 |
+
{"@type": "cr:Field", "@id": "module-nodes/module", "name": "module", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-mod-nodes"}, "extract": {"column": "module"}}},
|
| 340 |
+
{"@type": "cr:Field", "@id": "module-nodes/decl_count", "name": "decl_count", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-mod-nodes"}, "extract": {"column": "decl_count"}}}
|
| 341 |
+
]
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"@type": "cr:RecordSet",
|
| 345 |
+
"@id": "module-edges",
|
| 346 |
+
"name": "module-edges",
|
| 347 |
+
"description": "Module-to-module import edges with public/private flag.",
|
| 348 |
+
"field": [
|
| 349 |
+
{"@type": "cr:Field", "@id": "module-edges/source", "name": "source", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-mod-edges"}, "extract": {"column": "source"}}},
|
| 350 |
+
{"@type": "cr:Field", "@id": "module-edges/target", "name": "target", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-mod-edges"}, "extract": {"column": "target"}}},
|
| 351 |
+
{"@type": "cr:Field", "@id": "module-edges/is_exported", "name": "is_exported", "description": "Whether the import is public; 20,699 of 20,881 are public.", "dataType": "sc:Boolean", "source": {"fileObject": {"@id": "v2-mod-edges"}, "extract": {"column": "is_exported"}}}
|
| 352 |
+
]
|
| 353 |
+
},
|
| 354 |
+
{
|
| 355 |
+
"@type": "cr:RecordSet",
|
| 356 |
+
"@id": "module-metrics",
|
| 357 |
+
"name": "module-metrics",
|
| 358 |
+
"description": "Module-level network metrics.",
|
| 359 |
+
"field": [
|
| 360 |
+
{"@type": "cr:Field", "@id": "module-metrics/module", "name": "module", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-mod-metrics"}, "extract": {"column": "module"}}},
|
| 361 |
+
{"@type": "cr:Field", "@id": "module-metrics/decl_count", "name": "decl_count", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-mod-metrics"}, "extract": {"column": "decl_count"}}},
|
| 362 |
+
{"@type": "cr:Field", "@id": "module-metrics/in_degree", "name": "in_degree", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-mod-metrics"}, "extract": {"column": "in_degree"}}},
|
| 363 |
+
{"@type": "cr:Field", "@id": "module-metrics/out_degree", "name": "out_degree", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-mod-metrics"}, "extract": {"column": "out_degree"}}},
|
| 364 |
+
{"@type": "cr:Field", "@id": "module-metrics/pagerank", "name": "pagerank", "dataType": "sc:Float", "source": {"fileObject": {"@id": "v2-mod-metrics"}, "extract": {"column": "pagerank"}}},
|
| 365 |
+
{"@type": "cr:Field", "@id": "module-metrics/betweenness", "name": "betweenness", "description": "Exact betweenness centrality on the module graph.", "dataType": "sc:Float", "source": {"fileObject": {"@id": "v2-mod-metrics"}, "extract": {"column": "betweenness"}}},
|
| 366 |
+
{"@type": "cr:Field", "@id": "module-metrics/dag_layer", "name": "dag_layer", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-mod-metrics"}, "extract": {"column": "dag_layer"}}},
|
| 367 |
+
{"@type": "cr:Field", "@id": "module-metrics/community_id", "name": "community_id", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-mod-metrics"}, "extract": {"column": "community_id"}}},
|
| 368 |
+
{"@type": "cr:Field", "@id": "module-metrics/cohesion", "name": "cohesion", "description": "Fraction of declaration edges contained within the module.", "dataType": "sc:Float", "source": {"fileObject": {"@id": "v2-mod-metrics"}, "extract": {"column": "cohesion"}}},
|
| 369 |
+
{"@type": "cr:Field", "@id": "module-metrics/import_utilization_median", "name": "import_utilization_median", "description": "Median fraction of imported declarations actually used.", "dataType": "sc:Float", "source": {"fileObject": {"@id": "v2-mod-metrics"}, "extract": {"column": "import_utilization_median"}}}
|
| 370 |
+
]
|
| 371 |
+
},
|
| 372 |
+
{
|
| 373 |
+
"@type": "cr:RecordSet",
|
| 374 |
+
"@id": "namespace-nodes",
|
| 375 |
+
"name": "namespace-nodes",
|
| 376 |
+
"description": "Depth-2 namespace nodes with strongly connected component annotations.",
|
| 377 |
+
"field": [
|
| 378 |
+
{"@type": "cr:Field", "@id": "namespace-nodes/namespace", "name": "namespace", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-ns-nodes"}, "extract": {"column": "namespace"}}},
|
| 379 |
+
{"@type": "cr:Field", "@id": "namespace-nodes/decl_count", "name": "decl_count", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-ns-nodes"}, "extract": {"column": "decl_count"}}},
|
| 380 |
+
{"@type": "cr:Field", "@id": "namespace-nodes/in_cycle", "name": "in_cycle", "description": "True if this namespace participates in an SCC.", "dataType": "sc:Boolean", "source": {"fileObject": {"@id": "v2-ns-nodes"}, "extract": {"column": "in_cycle"}}},
|
| 381 |
+
{"@type": "cr:Field", "@id": "namespace-nodes/scc_id", "name": "scc_id", "description": "SCC identifier; -1 if acyclic.", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-ns-nodes"}, "extract": {"column": "scc_id"}}}
|
| 382 |
+
]
|
| 383 |
+
},
|
| 384 |
+
{
|
| 385 |
+
"@type": "cr:RecordSet",
|
| 386 |
+
"@id": "namespace-edges",
|
| 387 |
+
"name": "namespace-edges",
|
| 388 |
+
"description": "Depth-2 namespace-to-namespace edges weighted by declaration-edge count.",
|
| 389 |
+
"field": [
|
| 390 |
+
{"@type": "cr:Field", "@id": "namespace-edges/source", "name": "source", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-ns-edges"}, "extract": {"column": "source"}}},
|
| 391 |
+
{"@type": "cr:Field", "@id": "namespace-edges/target", "name": "target", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-ns-edges"}, "extract": {"column": "target"}}},
|
| 392 |
+
{"@type": "cr:Field", "@id": "namespace-edges/weight", "name": "weight", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-ns-edges"}, "extract": {"column": "weight"}}}
|
| 393 |
+
]
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"@type": "cr:RecordSet",
|
| 397 |
+
"@id": "namespace-metrics",
|
| 398 |
+
"name": "namespace-metrics",
|
| 399 |
+
"description": "Depth-2 namespace network metrics with weighted centralities.",
|
| 400 |
+
"field": [
|
| 401 |
+
{"@type": "cr:Field", "@id": "namespace-metrics/namespace", "name": "namespace", "dataType": "sc:Text", "source": {"fileObject": {"@id": "v2-ns-metrics"}, "extract": {"column": "namespace"}}},
|
| 402 |
+
{"@type": "cr:Field", "@id": "namespace-metrics/decl_count", "name": "decl_count", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-ns-metrics"}, "extract": {"column": "decl_count"}}},
|
| 403 |
+
{"@type": "cr:Field", "@id": "namespace-metrics/in_degree", "name": "in_degree", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-ns-metrics"}, "extract": {"column": "in_degree"}}},
|
| 404 |
+
{"@type": "cr:Field", "@id": "namespace-metrics/out_degree", "name": "out_degree", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-ns-metrics"}, "extract": {"column": "out_degree"}}},
|
| 405 |
+
{"@type": "cr:Field", "@id": "namespace-metrics/edge_weight_sum", "name": "edge_weight_sum", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-ns-metrics"}, "extract": {"column": "edge_weight_sum"}}},
|
| 406 |
+
{"@type": "cr:Field", "@id": "namespace-metrics/pagerank", "name": "pagerank", "description": "Weighted PageRank with alpha=0.85.", "dataType": "sc:Float", "source": {"fileObject": {"@id": "v2-ns-metrics"}, "extract": {"column": "pagerank"}}},
|
| 407 |
+
{"@type": "cr:Field", "@id": "namespace-metrics/betweenness", "name": "betweenness", "description": "Weighted betweenness centrality (k=300 sampling, seed=42).", "dataType": "sc:Float", "source": {"fileObject": {"@id": "v2-ns-metrics"}, "extract": {"column": "betweenness"}}},
|
| 408 |
+
{"@type": "cr:Field", "@id": "namespace-metrics/community_id", "name": "community_id", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-ns-metrics"}, "extract": {"column": "community_id"}}},
|
| 409 |
+
{"@type": "cr:Field", "@id": "namespace-metrics/cross_ns_ratio", "name": "cross_ns_ratio", "description": "Fraction of declaration edges crossing namespace boundaries.", "dataType": "sc:Float", "source": {"fileObject": {"@id": "v2-ns-metrics"}, "extract": {"column": "cross_ns_ratio"}}},
|
| 410 |
+
{"@type": "cr:Field", "@id": "namespace-metrics/in_cycle", "name": "in_cycle", "dataType": "sc:Boolean", "source": {"fileObject": {"@id": "v2-ns-metrics"}, "extract": {"column": "in_cycle"}}},
|
| 411 |
+
{"@type": "cr:Field", "@id": "namespace-metrics/scc_id", "name": "scc_id", "dataType": "sc:Integer", "source": {"fileObject": {"@id": "v2-ns-metrics"}, "extract": {"column": "scc_id"}}}
|
| 412 |
+
]
|
| 413 |
+
}
|
| 414 |
+
]
|
| 415 |
+
}
|