{"success":true,"data":{"author":"Mathlib Initiative (extraction); leanprover-community Mathlib contributors","bucketAccessType":"public","bucketName":"mathlib-initiative/mathlib-const-dep","bucketPrefix":"","category":"Mathematics","cloudProvider":"huggingface","createdAt":"2026-11-21T22:16:38.580Z","description":"The direct dependency graph of Mathlib, the Lean 4 library of formalized mathematics. For each of about 807,000 declarations (theorems, lemmas, definitions, instances), the row lists the constants its statement and proof refer to directly. Fields are name, module, deps (the list of constants used) and allowCompletion. The graph was extracted with lean_scout from Mathlib commit fc4f59e5, the same commit as the Mathlib Types and Mathlib Tactics datasets, so the names join across all three. It supports premise selection (which earlier lemmas a proof needs), graph analyses of how a large body of mathematics is built, and dependency-aware retrieval for automated theorem provers. The data is in Parquet shards with a manifest.json; read it with pyarrow, pandas, polars or networkx after loading. Mathlib is Apache-2.0 licensed by the leanprover-community. Cite the Mathlib paper (CPP 2020, doi 10.1145/3372885.3373824).","displayTitle":"Mathlib Constant Dependencies: Dependency Graph of Lean 4 Theorems and Definitions (Mathlib Initiative)","huggingFaceUrl":"https://huggingface.co/datasets/mathlib-initiative/mathlib-const-dep","id":"67789800-2913-58c5-9380-61c616fbd969","license":"Apache-2.0","licenseEvidenceUrl":"https://github.com/leanprover-community/mathlib4/blob/master/LICENSE","objectCountEstimate":131,"probeStatus":"ok","referenceUrl":"https://doi.org/10.1145/3372885.3373824","region":"us","schemaCard":{"accessHints":[{"language":"python-datasets","snippet":"from datasets import load_dataset\nds = load_dataset(\"mathlib-initiative/mathlib-const-dep\")"},{"language":"python-hub","snippet":"from huggingface_hub import snapshot_download\nsnapshot_download(repo_id=\"mathlib-initiative/mathlib-const-dep\", repo_type=\"dataset\")"}],"caveats":["HuggingFace metadata: author=mathlib-initiative, license:apache-2.0, size_categories:100K<n<1M, format:parquet, downloads=1612"],"format":"mixed","generatedAt":"2026-11-21T22:31:54.237Z","layout":{"example":"part-000.parquet","pattern":"{repoId}/{filename}"},"mountPath":"/mnt/archive","sampleHeaders":[{"bytes":"50415231150415aaa60615dad4024c158010150012000028b52ffd6095c81da9021e9704ae0c4fa09669d301c06bc16bc2539827c7a337c61358665e7477aa1db3a0b88c4d96ec24b2c994447e4c64ef24bb4463e81122db47b791b6b5ff6e92755e23e031eb939959412b66767610af83c23a5a820c430cb30ca70cff2a9dd635b6cd8fb19ded71ae078bff1cbf94f4898148cbae77f32e376488b8ab76664020db5f294da644fff6af7db367dc7a78daf693ddb2cdf309aaf92595df3e596bd510fd43ae93989fcdec694591eb2486b3ec22ddf3699f9b3514523cdbe44daa09d72ed5f012b94e622496d3b43ea19a1fabfc46f96bab2f75c2daf9abad9e9a609e145c8c1042c58a57c1c6d916d2f859b0cff3eca56c9e4fb01010c81c3f35c142d4834df9d15a4b845b0dac38a7ec22d73dae32a04a4a99c276baeccd3cc0ad54b9e6c6d926f72b8c3fc64f6b79156ceb12d3e80ace656c70217bba0e5a6b2160bb4ddea8ed7681f10df9b31e4ed0a1ad4edf56d218457ef29373ca3815e71717367e5e53cdd6acd029506e66ade5801f268cc741cd53fbc1354fcd356b1a67db0f1e07356bb8e6a9869fcdedfc997dfa1527d5b57eb4d6a2014533038116ec37faa89412b7729df42ec11e7f09167dae2456d16ceb127beda8acb50ef02ae7505345fe2ba0686e93bfbea94ddef62b08b7bd71b64dcd0da455b26f761493","encoding":"hex","key":"part-000.parquet","truncatedAt":512}],"sampleObjects":["part-000.parquet","part-001.parquet","part-002.parquet","part-003.parquet","part-004.parquet"],"sidecars":[{"bytes":"---\nlicense: apache-2.0\nlanguage:\n  - en\ntags:\n  - lean4\n  - mathlib\n  - theorem-proving\n  - formal-mathematics\npretty_name: Mathlib Constant Dependencies\n---\n\n# Mathlib Constant Dependencies\n\nThis dataset contains direct constant dependency information for declarations in [Mathlib](https://github.com/leanprover-community/mathlib4/tree/fc4f59e577feb1a4956671bc04ac18aaaf8cd842), the mathematical library for the Lean 4 theorem prover, extracted with [lean_scout](https://github.com/mathlib-initiative/lean_scout).\n\nExtracted from the Mathlib commit with the following hash.\n```\nfc4f59e577feb1a4956671bc04ac18aaaf8cd842\n```\n\nThe dataset follows this schema:\n\n```yaml\nfields:\n- type:\n    datatype: string\n  nullable: false\n  name: name\n- type:\n    datatype: string\n  nullable: true\n  name: module\n- type:\n    item:\n      datatype: string\n    datatype: list\n  nullable: false\n  name: deps\n- type:\n    datatype: bool\n  nullable: false\n  name: allowCompletion\n```\n\n# Attribution\n\nThis dataset is derived from [Mathlib](https://github.com/leanprover-community/mathlib4), an open-source mathematical library developed by the [leanprover-community](https://leanprover-community.github.io/). If you use this dataset, please cite the [Mathlib paper](https://doi.org/10.1145/3372885.3373824) or the [Mathlib repository](https://github.com/leanprover-community/mathlib4).\n\nA full list of Mathlib contributors is available at: https://github.com/leanprover-community/mathlib4/graphs/contributors\n","encoding":"utf8","key":"README.md","name":"README.md","size":1485,"truncated":false},{"bytes":"{\n  \"datasetName\": \"const_dep-v4.36.0\",\n  \"datasetVersion\": 1,\n  \"files\": [\n    {\n      \"relativePath\": \"README.md\",\n      \"sizeBytes\": 1485\n    },\n    {\n      \"relativePath\": \"part-000.parquet\",\n      \"sizeBytes\": 1020225\n    },\n    {\n      \"relativePath\": \"part-001.parquet\",\n      \"sizeBytes\": 1011091\n    },\n    {\n      \"relativePath\": \"part-002.parquet\",\n      \"sizeBytes\": 1015127\n    },\n    {\n      \"relativePath\": \"part-003.parquet\",\n      \"sizeBytes\": 1025672\n    },\n    {\n      \"relativePath\": \"part-004.parquet\",\n      \"sizeBytes\": 1001821\n    },\n    {\n      \"relativePath\": \"part-005.parquet\",\n      \"sizeBytes\": 1006813\n    },\n    {\n      \"relativePath\": \"part-006.parquet\",\n      \"sizeBytes\": 961423\n    },\n    {\n      \"relativePath\": \"part-007.parquet\",\n      \"sizeBytes\": 1012744\n    },\n    {\n      \"relativePath\": \"part-008.parquet\",\n      \"sizeBytes\": 997608\n    },\n    {\n      \"relativePath\": \"part-009.parquet\",\n      \"sizeBytes\": 1023976\n    },\n    {\n      \"relativePath\": \"part-010.parquet\",\n      \"sizeBytes\": 1017738\n    },\n    {\n      \"relativePath\": \"part-011.parquet\",\n      \"sizeBytes\": 1023404\n    },\n    {\n      \"relativePath\": \"part-012.parquet\",\n      \"sizeBytes\": 1014040\n    },\n    {\n      \"relativePath\": \"part-013.parquet\",\n      \"sizeBytes\": 1019676\n    },\n    {\n      \"relativePath\": \"part-014.parquet\",\n      \"sizeBytes\": 991984\n    },\n    {\n      \"relativePath\": \"part-015.parquet\",\n      \"sizeBytes\": 1013759\n    },\n    {\n      \"relativePath\": \"part-016.parquet\",\n      \"sizeBytes\": 1004067\n    },\n    {\n      \"relativePath\": \"part-017.parquet\",\n      \"sizeBytes\": 1004503\n    },\n    {\n      \"relativePath\": \"part-018.parquet\",\n      \"sizeBytes\": 986515\n    },\n    {\n      \"relativePath\": \"part-019.parquet\",\n      \"sizeBytes\": 1010515\n    },\n    {\n      \"relativePath\": \"part-020.parquet\",\n      \"sizeBytes\": 1027998\n    },\n    {\n      \"relativePath\": \"part-021.parquet\",\n      \"sizeBytes\": 1002424\n    },\n    {\n      \"relativePath\": \"part-022.parquet\",\n      \"sizeBytes\": 1041783\n    },\n    {\n      \"relativePath\": \"part-023.parquet\",\n      \"sizeBytes\": 996748\n    },\n    {\n      \"relativePath\": \"part-024.parquet\",\n      \"sizeBytes\": 997072\n    },\n    {\n      \"relativePath\": \"part-025.parquet\",\n      \"sizeBytes\": 1007371\n    },\n    {\n      \"relativePath\": \"part-026.parquet\",\n      \"sizeBytes\": 990249\n    },\n    {\n      \"relativePath\": \"part-027.parquet\",\n      \"sizeBytes\": 1048081\n    },\n    {\n      \"relativePath\": \"part-028.parquet\",\n      \"sizeBytes\": 1033647\n    },\n    {\n      \"relativePath\": \"part-029.parquet\",\n      \"sizeBytes\": 1036710\n    },\n    {\n      \"relativePath\": \"part-030.parquet\",\n      \"sizeBytes\": 955975\n    },\n    {\n      \"relativePath\": \"part-031.parquet\",\n      \"sizeBytes\": 1026528\n    },\n    {\n      \"relativePath\": \"part-032.parquet\",\n      \"sizeBytes\": 1021488\n    },\n    {\n      \"relativePath\": \"part-033.parquet\",\n      \"sizeBytes\": 1029934\n    },\n    {\n      \"relativePath\": \"part-034.parquet\",\n      \"sizeBytes\": 1028856\n    },\n    {\n      \"relativePath\": \"part-035.parquet\",\n      \"sizeBytes\": 1011740\n    },\n    {\n      \"relativePath\": \"part-036.parquet\",\n      \"sizeBytes\": 995995\n    },\n    {\n      \"relativePath\": \"part-037.parquet\",\n      \"sizeBytes\": 1015247\n    },\n    {\n      \"relativePath\": \"part-038.parquet\",\n      \"sizeBytes\": 980321\n    },\n    {\n      \"relativePath\": \"part-039.parquet\",\n      \"sizeBytes\": 960101\n    },\n    {\n      \"relativePath\": \"part-040.parquet\",\n      \"sizeBytes\": 1010005\n    },\n    {\n      \"relativePath\": \"part-041.parquet\",\n      \"sizeBytes\": 987008\n    },\n    {\n      \"relativePath\": \"part-042.parquet\",\n      \"sizeBytes\": 1003474\n    },\n    {\n      \"relativePath\": \"part-043.parquet\",\n      \"sizeBytes\": 1018184\n    },\n    {\n      \"relativePath\": \"part-044.parquet\",\n      \"sizeBytes\": 1024738\n    },\n    {\n      \"relativePath\": \"part-045.parquet\",\n      \"sizeBytes\": 997203\n    },\n    {\n      \"relativePath\": \"part-046.parquet\",\n      \"sizeBytes\": 995137\n    },\n    {\n      \"relativePath\": \"part-047.parquet\",\n      \"sizeBytes\": 965697\n    },\n    {\n      \"relativePath\":","encoding":"utf8","key":"manifest.json","name":"manifest.json","size":12722,"truncated":true}],"sourceObjectKey":"part-000.parquet","starterCell":"from datasets import load_dataset\nds = load_dataset(\"mathlib-initiative/mathlib-const-dep\")\nprint(ds)","starterSamplePath":"part-000.parquet","totalObjects":131},"summary":"The direct dependency graph of Mathlib, the Lean 4 library of formalized mathematics. For each of about 807,000 declarations (theorems, lemmas, definitions, instances), the row…","title":"Mathlib Constant Dependencies: Dependency Graph of Lean 4 Theorems and Definitions (Mathlib Initiative)","updatedAt":"2026-11-22T01:01:43.912Z","visibility":"public","websiteUrl":"https://github.com/mathlib-initiative/lean_scout"}}