File size: 2,590 Bytes
3a79400
 
 
 
 
 
 
aae6c35
 
3a79400
aae6c35
 
 
 
 
 
ee5c48f
 
 
 
 
 
 
 
 
 
 
aae6c35
 
 
142b551
aae6c35
 
 
 
 
 
3a79400
142b551
cd291d3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
license: apache-2.0
pretty_name: Lean builds
tags: [lean4, mathlib, formal-mathematics]
---
# Lean builds

Compiled builds of Lean 4 projects, each recorded with who built it and where it came from, with data read
from the compiled environment (dependencies, axioms, source ranges).

## Layout

- `builds/<origin>/<builder>/<owner__repo[__subfolder]>/<commit>/`: one build. `build.json` is the record
  (repository, commit, toolchain, license, builder, source); `manifest.jsonl` lists every compiled file (path,
  SHA-256, size); `derived/` holds data computed from exactly these files; each folder has its own README and
  the project's license files.
- `blobs/shards/<ab>/<id>.parquet`: the files, stored once by content, packed into Parquet files of about
  1 GB (columns `sha256`, `size`, `data`; sorted by `sha256`). `data` is the file's own bytes and Parquet
  compresses it (zstd, 1 MB pages, so similar files compress together). Files a publisher released already
  compressed, with their own hashes, are kept byte for byte in shards without Parquet compression.
- `blobs/index/<ab>/<id>.parquet`: the `sha256` and `size` of every file in shard `<id>`. Download
  `blobs/index/` to find which shard holds a file; each shard and its index are written once and never
  changed.

To get a build back: read its `manifest.jsonl`, find each SHA-256 in `blobs/index/`, read those rows from the
shards (filter on `sha256`), and check each file's SHA-256. `mathcorpus restore-build BUILD_ID DEST`
([builds.py](https://github.com/vmhazoglou/corpus-mathematicum/blob/main/mathcorpus/builds.py)) does this.

## Who built what

- `origin: mathcorpus-foundation`: compiled from source by MathCorpus. Lean's kernel checked every proof in our build.
- `origin: external`: someone else's published build, copied unchanged, with a link to where it came from.
  It shows that a build exists. We did not check it, so it does not count as verified.

Only projects whose license allows redistribution have their files here; for others, only the manifest.

| Build | Project |
|---|---|
| `builds/mathcorpus-foundation/modal/lsernau__grh-lean__grh-compact/72fead10…` | https://github.com/lsernau/grh-lean `grh-compact/`, Apache-2.0 |
| `builds/external/github-ci:leanprover-community__riemann-hypothesis/leanprover-community__riemann-hypothesis/756a7025…` | https://github.com/leanprover-community/riemann-hypothesis, Apache-2.0; the project's own CI build, downloaded unchanged (https://rh-cache.taucetiproject.org/ci/revisions/756a70250dcba9162b99d4ea35c186558434c17e.json): not checked by us |