Compiled oleans for the alpo.ge Lean development

The mathematics and its Lean formalization are the work of Levent Alpöge, working with Claude. His note announcing it is alpo.ge/remark.pdf, and the Lean source is the fourteen parts alpo.ge/lean.tar.gz.part01 … part14. This page only hosts files built from that source.

The .olean file of every one of the 175,187 modules in the Lean development posted at alpo.ge/lean.tar.gz.part01 … part14, which states a proof of the Riemann Hypothesis, together with the Mathlib .oleans it was compiled against. They are here so that independent kernels and checkers can be run on it without first spending about 530 CPU-hours compiling.

Made possible by the support of Grant 63750, “Explaining Universal Truths”, from the John Templeton Foundation. Additional support from research funds of the Laboratory for Social Minds and from the Survival and Flourishing Fund.

These are build products of someone else’s code, which we have not reviewed. Sharing them is not a statement about whether the proof is correct. Nothing here is an export: run lean4export, or whatever your checker reads, against these files yourself.
Modules
175,187
Compiled
175,187, 0 errors
Download
14 archives, 31.9 GiB
Unpacked
89 GiB + 6 GiB deps
Lean
v4.33.1
Mathlib
tag v4.33.1
Built
2026-11-20, x86_64 Linux

Checks run on this build

Two checks have been run here, both with Lean v4.33.1 itself. Neither involves an export or a second kernel; the files below are there so that others can do that.

Axioms

The output of #print axioms for the five theorems stated in Main.lean:

'riemannHypothesis' depends on axioms: [propext, Classical.choice, Quot.sound]
'riemannZeta_eq_zero_re' depends on axioms: [propext, Classical.choice, Quot.sound]
'LFunction_ne_zero_of_half_lt_re' depends on axioms: [propext, Classical.choice, Quot.sound]
'LFunction_eq_zero_re' depends on axioms: [propext, Classical.choice, Quot.sound]
'LFunction_eq_zero_re_of_isPrimitive' depends on axioms: [propext, Classical.choice, Quot.sound]

Each of the five is a theorem whose type is exactly the named statement: RiemannHypothesis as defined in Mathlib.NumberTheory.LSeries.RiemannZeta for the first, and the four definitions in Statements for the others. #print axioms reports what the compiled environment records. On its own it would not notice a declaration that had been written into an .olean without passing the kernel; the replay is the check for that.

Kernel replay

Every constant of every project module is added again through the Lean kernel, on top of that module’s imports, one module per process. This is the logic of leanchecker’s replayFromImports. As a control, a forged theorem : False compiled with kernel checking switched off is rejected by it. The replay covers the 175,187 project modules, not Mathlib’s own.

State
running
Passed
121,648
Failed
0
Not yet replayed
53,539
As of
2026-11-20 15:34 EST

These figures are refreshed from the machine doing the replay.

    Download

    Extract every archive into the same directory; they all unpack under alp-oleans/. Downloads support range requests, so a dropped transfer resumes rather than restarting. The plain-text README travels with the files and says the same things as this page.

    ArchiveContainsSizeSHA-256
    alp-oleans-CompanionTheory.tar.gzCompanionTheory304.1 MiB6cd33a39b6831f7741d115b0926fb685d765751ed8249e4ddc74dd2b2e16b712
    alp-oleans-deps-mathlib-etc.tar.gzMathlib and the other dependencies1.83 GiB42b22a8360d23db1e6b48d3b80b06895669ffd8e5c2c213872d66cd5412e0422
    alp-oleans-Development-AbelianVarietyTheory.tar.gzDevelopment/AbelianVarietyTheory15.82 GiB6278cb10de11727c127efe7ab23680e3523b543ef1e5ed66b46ff30a4805b365
    alp-oleans-Development-AutomorphicArithmetic.tar.gzDevelopment/AutomorphicArithmetic3.75 GiBc8ef226ff63ea71ac7ddb8ef4113611a7d4de49bbdfc97e8fbaafee5b83c842a
    alp-oleans-Development-AutomorphicSpectrum.tar.gzDevelopment/AutomorphicSpectrum1.81 GiBcae438628eb0ddb682a4c1bfeb1b9dc8cc64572be43427df98c4c9ed30130327
    alp-oleans-Development-DiscreteGroups.tar.gzDevelopment/DiscreteGroups33.9 MiB2212be7a7de78f677aba458ede8a46468c12410ceee27d9c7d75a86ecde0155d
    alp-oleans-Development-EtaleCohomology.tar.gzDevelopment/EtaleCohomology160.2 MiB8d93e01de9c18e3dc7a185a070fd0c907b2530f9cc9b1b7b3031fc2c740b07d8
    alp-oleans-Development-ResolutionOfSingularities.tar.gzDevelopment/ResolutionOfSingularities73.7 MiB2021ebdad4a707b30ec1c92bf35f3f76a0092c01dddbf85f843a8faefc6bc0f2
    alp-oleans-Development-WeilBound.tar.gzDevelopment/WeilBound1.55 GiB2343bd3d8e66aa149f4328423c13ca00f60310dd69a260e6c091b001645d1b33
    alp-oleans-Formalism.tar.gzFormalism4.48 GiB0b0d4af38463e5569008722bb0de00db581ee7cce041a8f9468f32ff0181f63c
    alp-oleans-GroundTheory.tar.gzGroundTheory1.30 GiB2c57b5d03a1ee5eb2c3ca5c69392eb841d7445e5a7a986d05f9b8b977b99bdea
    alp-oleans-Main-and-small.tar.gzMain, Statements, BuildAid, Lemmata, Supplements8.7 MiB31ed2ace3a3d2a3daff6dc689d7848c15f5d7ce77a71eb68d481b03e72b7cabe
    alp-oleans-PositivityTheory.tar.gzPositivityTheory92.9 MiBc629fdcff983224ff8bd7e7383606d9105f6207378ea0f57e5e38d258eda3f13
    alp-oleans-ReciprocityTheory.tar.gzReciprocityTheory730.9 MiBf146d6fb43922457aaf83058d0beb11352620e6597a3f369ecd632749681752e

    Checksums: SHA256SUMS covers the archives, and SHA256SUMS-project-oleans.txt.gz (8.5 MiB) gives the SHA-256 of each of the 175,187 project .oleans, for comparing against a build of your own.

    base=https://photos.proofsandreasons.io/alp-oleans-357309b5dd12
    curl -O $base/SHA256SUMS
    for f in $(awk '/tar.gz/ {print $2}' SHA256SUMS); do curl -C - -O $base/$f; done
    sha256sum -c SHA256SUMS
    for f in alp-oleans-*.tar.gz; do tar -xzf $f; done

    Layout

    alp-oleans/lib/<Module/Path>.oleanThe project’s modules. The entry points are lib/Main.olean and lib/Statements.olean.
    alp-oleans/deps/<package>/…The full build/lib/lean of mathlib, batteries, aesop, Qq, proofwidgets, importGraph, plausible and LeanSearchClient.

    LEAN_PATH, in the order used for the build, where R is the alp-oleans directory and T is the v4.33.1 toolchain:

    R/deps/batteries:R/deps/Qq:R/deps/aesop:R/deps/proofwidgets:R/deps/importGraph:
    R/deps/LeanSearchClient:R/deps/plausible:R/deps/mathlib:R/lib:T/lib/lean

    The project files are plain .oleans that do not use the module system; Mathlib’s are module-system ones (.olean, .olean.server, .olean.private). All of them are specific to Lean v4.33.1.

    How they were built

    Source. The fourteen parts concatenated, SHA-256 9631b4f020199e580ba86178cb56c6e9b09f690c2369a80dc4334aa93f49c7fc, with the toolchain and dependencies pinned by its own lean-toolchain and lake-manifest.json.

    Not with lake build. Lake does not scale to this tree: for each module it re-walks about 8,800 transitive imports and writes a setup file of about 6 MB. Each module was instead compiled by the pinned lean binary directly, one process per module, in dependency order:

    lean --tstack=400000 src/<Module/Path>.lean -o lib/<Module/Path>.olean --setup <json>

    with LEAN_PATH as above and this setup file:

    {"name": "<Module.Name>", "package": "tree", "isModule": false,
     "options": {"autoImplicit": false, "relaxedAutoImplicit": false, "maxSynthPendingDepth": 3,
                 "pp.unicode.fun": true, "maxHeartbeats": 4000000},
     "importArts": {}, "dynlibs": [], "plugins": []}

    Those are the lakefile’s options; modules under GroundTheory.LocalFields and GroundTheory.GlobalFields also get "synthInstance.maxHeartbeats": 400000, as the lakefile specifies. This is the command line, module name, package name and options that Lake itself passes, without the import table and without the -c and -i outputs. So there are no .ilean, .c or .ir files and no Lake .trace or .hash files, and Lake will not regard these as an up-to-date build.

    Dependencies were not rebuilt. The dependency .oleans are the ones lake exe cache get downloads for that Mathlib commit, from Mathlib’s official build cache.

    Result. All 175,187 modules compiled with no errors. One compiler process segfaulted inside the bundled allocator and the module succeeded on retry; 64 further recompiles of that module all gave a byte-identical .olean, identical to the one included here.

    Toolchain and dependencies

    Leanleanprover/lean4:v4.33.1, commit 819816b2e0a3bf405af45ae5c7af2491d8f5bee6 (official release binary)
    mathlib0df444a360eaa60ab8c11dca51a86af692955474 (tag v4.33.1)
    batteries4488d40d070b9700d4d5a6aa342f0d40c31b2a2d
    aesop3448c0bcc5ce01b2d1546e483ec3620e32df3d0e
    Qq92c15be17b7caf78c2ad767ec40f89052d908d81
    proofwidgets4be2e3d5087eeb272cf5a8853b8f9dd025ef5957
    importGraph16f02aa7642864af59f1ff0e384a015994db9118
    plausibleb7eb3304aeae834b12dda98993a37f6a41f6f0bb
    LeanSearchClient5f4d51b81cbd3f6b32b156bfad9056621a040404

    What to check

    Main.lean, in the source tarball, states five theorems. riemannHypothesis : RiemannHypothesis uses Mathlib’s own definition. The other four, riemannZeta_eq_zero_re, LFunction_ne_zero_of_half_lt_re, LFunction_eq_zero_re and LFunction_eq_zero_re_of_isPrimitive, use the definitions in Statements.lean, which imports only Mathlib.