{"success":true,"data":{"author":"Mathlib Initiative (extraction); leanprover-community Mathlib contributors","bucketAccessType":"public","bucketName":"mathlib-initiative/mathlib-types","bucketPrefix":"","category":"Mathematics","cloudProvider":"huggingface","createdAt":"2026-11-21T22:16:38.551Z","description":"The name, module, type signature and documentation string of every declaration in Mathlib, the Lean 4 library of formalized mathematics. That covers about 807,000 theorems, lemmas, definitions and structures, extracted with lean_scout from Mathlib commit fc4f59e5. Each row holds the fully qualified constant name, the Mathlib module that defines it, its pretty-printed type (for a theorem, the formal statement of what it proves), its docstring where one exists, and an allowCompletion flag. Researchers use it for formal-statement retrieval, autoformalization (translating informal mathematics into Lean), premise selection and building search engines over formal mathematics. It pairs with the Mathlib Constant Dependencies and Mathlib Tactics datasets from the same commit. The data is in Parquet shards with a manifest.json; read it with pyarrow, pandas or Hugging Face datasets. Mathlib is Apache-2.0 licensed by the leanprover-community. Cite the Mathlib paper (CPP 2020, doi 10.1145/3372885.3373824).","displayTitle":"Mathlib Types: Lean 4 Declaration Names, Type Signatures and Docstrings from Mathlib (Mathlib Initiative)","huggingFaceUrl":"https://huggingface.co/datasets/mathlib-initiative/mathlib-types","id":"610c96ea-f38e-56f2-8466-8b5cfa601f0b","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-types\")"},{"language":"python-hub","snippet":"from huggingface_hub import snapshot_download\nsnapshot_download(repo_id=\"mathlib-initiative/mathlib-types\", repo_type=\"dataset\")"}],"caveats":["HuggingFace metadata: author=mathlib-initiative, license:apache-2.0, size_categories:100K<n<1M, format:parquet, downloads=1911"],"format":"mixed","generatedAt":"2026-11-21T22:31:54.231Z","layout":{"example":"part-000.parquet","pattern":"{repoId}/{filename}"},"mountPath":"/mnt/archive","sampleHeaders":[{"bytes":"50415231150415aaa60615dcd4024c158010150012000028b52ffd6095c825a9024e9644ac0c4fa09669d301c06bc16bc2539827c7a337c61358665e7477aa1db3a0b88c4d96ec24b2c994447e4c64ef24bb4463e81122db47b791b6b5ff6e92755e23e031eb939959412b66767610af83c23a5a820c410cb00ca40cd3bac6b6f931b6b33dcef560f19fe397923e311069d9f56edee5860c1177d5ce0c0864fb2ba5c994e8dffeb56ff68c5b0f4fdb7eb25bb6793e4135bfa4f2db276bad1aa27fc87512f3b3993dad28729dc470965da47b3eed73b386428a679bbc4935e1daa51a5e22d7498cc4729ad62754f36395df287f6df5a54e583b7fb5d55313cc93828b1142a858f12ad838db421a3f0bf6799ebd94cdf30916020299e3a72658887ab0293f5a6b8970ab8115e7945de4bac7550654492953d84e97bd9907b8952ad7dc38dbe47e85f1c7f8692daf826d5d621a5dc1b98c0d2e644fd7416b2d046cb7c91bb5dd2e30be217fd6c3093ab4d5e9db4a1aa3c84f7e724e19a7e2fce2c2c6cf6baad99a153a05cacdacb51cf0c384f138a8796a3fb8e6a9b9664de36cfbc1e3a0660dd73cd5f0b3b99d3fb34fbfe2a4bad68fd65a34a0686620d082fd461f9552e256ae93de25d8e32fc1a2cf95c42a9a6d5d62af1d95b5d6015ee51c6aaac87f0514cd6df2d737b5c9db7e05e1b637ceb6a9b981b44af6cd8e62324553","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 Types\n---\n\n# Mathlib Types\n\nThis dataset contains information about types defined 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    datatype: string\n  nullable: false\n  name: type\n- type:\n    datatype: string\n  nullable: true\n  name: docString\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":1462,"truncated":false},{"bytes":"{\n  \"datasetName\": \"types-v4.36.0\",\n  \"datasetVersion\": 1,\n  \"files\": [\n    {\n      \"relativePath\": \"README.md\",\n      \"sizeBytes\": 1462\n    },\n    {\n      \"relativePath\": \"part-000.parquet\",\n      \"sizeBytes\": 794811\n    },\n    {\n      \"relativePath\": \"part-001.parquet\",\n      \"sizeBytes\": 815603\n    },\n    {\n      \"relativePath\": \"part-002.parquet\",\n      \"sizeBytes\": 829489\n    },\n    {\n      \"relativePath\": \"part-003.parquet\",\n      \"sizeBytes\": 819457\n    },\n    {\n      \"relativePath\": \"part-004.parquet\",\n      \"sizeBytes\": 793518\n    },\n    {\n      \"relativePath\": \"part-005.parquet\",\n      \"sizeBytes\": 794469\n    },\n    {\n      \"relativePath\": \"part-006.parquet\",\n      \"sizeBytes\": 774498\n    },\n    {\n      \"relativePath\": \"part-007.parquet\",\n      \"sizeBytes\": 806240\n    },\n    {\n      \"relativePath\": \"part-008.parquet\",\n      \"sizeBytes\": 793637\n    },\n    {\n      \"relativePath\": \"part-009.parquet\",\n      \"sizeBytes\": 806982\n    },\n    {\n      \"relativePath\": \"part-010.parquet\",\n      \"sizeBytes\": 818607\n    },\n    {\n      \"relativePath\": \"part-011.parquet\",\n      \"sizeBytes\": 818193\n    },\n    {\n      \"relativePath\": \"part-012.parquet\",\n      \"sizeBytes\": 797590\n    },\n    {\n      \"relativePath\": \"part-013.parquet\",\n      \"sizeBytes\": 810733\n    },\n    {\n      \"relativePath\": \"part-014.parquet\",\n      \"sizeBytes\": 799155\n    },\n    {\n      \"relativePath\": \"part-015.parquet\",\n      \"sizeBytes\": 810088\n    },\n    {\n      \"relativePath\": \"part-016.parquet\",\n      \"sizeBytes\": 789167\n    },\n    {\n      \"relativePath\": \"part-017.parquet\",\n      \"sizeBytes\": 784047\n    },\n    {\n      \"relativePath\": \"part-018.parquet\",\n      \"sizeBytes\": 788351\n    },\n    {\n      \"relativePath\": \"part-019.parquet\",\n      \"sizeBytes\": 794380\n    },\n    {\n      \"relativePath\": \"part-020.parquet\",\n      \"sizeBytes\": 810637\n    },\n    {\n      \"relativePath\": \"part-021.parquet\",\n      \"sizeBytes\": 810175\n    },\n    {\n      \"relativePath\": \"part-022.parquet\",\n      \"sizeBytes\": 816024\n    },\n    {\n      \"relativePath\": \"part-023.parquet\",\n      \"sizeBytes\": 789433\n    },\n    {\n      \"relativePath\": \"part-024.parquet\",\n      \"sizeBytes\": 2633691\n    },\n    {\n      \"relativePath\": \"part-025.parquet\",\n      \"sizeBytes\": 808795\n    },\n    {\n      \"relativePath\": \"part-026.parquet\",\n      \"sizeBytes\": 788559\n    },\n    {\n      \"relativePath\": \"part-027.parquet\",\n      \"sizeBytes\": 822025\n    },\n    {\n      \"relativePath\": \"part-028.parquet\",\n      \"sizeBytes\": 804929\n    },\n    {\n      \"relativePath\": \"part-029.parquet\",\n      \"sizeBytes\": 818119\n    },\n    {\n      \"relativePath\": \"part-030.parquet\",\n      \"sizeBytes\": 781486\n    },\n    {\n      \"relativePath\": \"part-031.parquet\",\n      \"sizeBytes\": 811347\n    },\n    {\n      \"relativePath\": \"part-032.parquet\",\n      \"sizeBytes\": 805816\n    },\n    {\n      \"relativePath\": \"part-033.parquet\",\n      \"sizeBytes\": 816347\n    },\n    {\n      \"relativePath\": \"part-034.parquet\",\n      \"sizeBytes\": 801412\n    },\n    {\n      \"relativePath\": \"part-035.parquet\",\n      \"sizeBytes\": 793002\n    },\n    {\n      \"relativePath\": \"part-036.parquet\",\n      \"sizeBytes\": 790541\n    },\n    {\n      \"relativePath\": \"part-037.parquet\",\n      \"sizeBytes\": 794620\n    },\n    {\n      \"relativePath\": \"part-038.parquet\",\n      \"sizeBytes\": 795585\n    },\n    {\n      \"relativePath\": \"part-039.parquet\",\n      \"sizeBytes\": 760477\n    },\n    {\n      \"relativePath\": \"part-040.parquet\",\n      \"sizeBytes\": 804904\n    },\n    {\n      \"relativePath\": \"part-041.parquet\",\n      \"sizeBytes\": 785432\n    },\n    {\n      \"relativePath\": \"part-042.parquet\",\n      \"sizeBytes\": 795914\n    },\n    {\n      \"relativePath\": \"part-043.parquet\",\n      \"sizeBytes\": 795679\n    },\n    {\n      \"relativePath\": \"part-044.parquet\",\n      \"sizeBytes\": 807368\n    },\n    {\n      \"relativePath\": \"part-045.parquet\",\n      \"sizeBytes\": 780388\n    },\n    {\n      \"relativePath\": \"part-046.parquet\",\n      \"sizeBytes\": 800193\n    },\n    {\n      \"relativePath\": \"part-047.parquet\",\n      \"sizeBytes\": 770310\n    },\n    {\n      \"relativePath\": \"part-048.parquet\",\n      \"sizeByte","encoding":"utf8","key":"manifest.json","name":"manifest.json","size":12693,"truncated":true}],"sourceObjectKey":"part-000.parquet","starterCell":"from datasets import load_dataset\nds = load_dataset(\"mathlib-initiative/mathlib-types\")\nprint(ds)","starterSamplePath":"part-000.parquet","totalObjects":131},"summary":"The name, module, type signature and documentation string of every declaration in Mathlib, the Lean 4 library of formalized mathematics.","title":"Mathlib Types: Lean 4 Declaration Names, Type Signatures and Docstrings from Mathlib (Mathlib Initiative)","updatedAt":"2026-11-22T01:02:06.550Z","visibility":"public","websiteUrl":"https://github.com/mathlib-initiative/lean_scout"}}