lean-source / README.md
MathCorpus's picture
Card: open licenses only
d96a2f4 verified
|
Raw History Blame
1.56 kB
---
license: other
license_name: per-repository
license_link: LICENSE.md
pretty_name: Corpus Mathematicum, Lean source
tags: [lean4, formal-mathematics, theorem-proving, mathlib]
configs:
- config_name: blobs
data_files: "blobs/**/*.parquet"
- config_name: manifests
data_files: "manifests/**/*.parquet"
- config_name: repos
data_files: "repos.parquet"
---
# Corpus Mathematicum: Lean source
The source of every public Lean 4 repository that
[Corpus Mathematicum](https://github.com/vmhazoglou/corpus-mathematicum) has read, stored by content.
| config | columns | |
|---|---|---|
| `blobs` | `hash`, `size`, `content` | each distinct file once (`hash` = sha256 of the bytes) |
| `manifests` | `repo`, `commit`, `path`, `hash`, `size` | which file was at which path in which commit |
| `repos` | `repo`, `commit`, `license`, `license_class`, `n_files`, `n_published`, `manifest` | one row per stored commit (`manifest` names the shard holding its rows) |
To rebuild a checkout, read the commit's manifest rows and join on `hash`.
**Licensing.** Only repositories under an open license are included: permissive (Apache-2.0, MIT,
BSD, ISC, CC0, CC-BY, MPL-2.0, ...) and share-alike (GPL, LGPL, CC-BY-SA, ...). Every file stays
under its repository's own license, given in `repos.license`; share-alike files must be
redistributed under the same terms. Repositories without a license, or with a non-commercial
or unrecognised one, are not included. To have a repository removed, open an issue at
https://github.com/vmhazoglou/corpus-mathematicum/issues.