Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | # Added for the shared build cache (see ../CACHE.md). The rest of this file, up to the |
| 2 | # next such comment, is unchanged from grh-lean commit 72fead1. |
| 3 | platformIndependent = true |
| 4 | |
| 5 | name = "GRH" |
| 6 | srcDir = "src" |
| 7 | defaultTargets = ["Lib", "New", "Main"] |
| 8 | moreLeanArgs = ["--tstack=400000"] |
| 9 | |
| 10 | [leanOptions] |
| 11 | autoImplicit = false |
| 12 | relaxedAutoImplicit = false |
| 13 | maxSynthPendingDepth = 3 |
| 14 | pp.unicode.fun = true |
| 15 | maxHeartbeats = 4000000 |
| 16 | |
| 17 | [[require]] |
| 18 | name = "mathlib" |
| 19 | git = "https://github.com/leanprover-community/mathlib4" |
| 20 | rev = "31ce06eaadf4a200c0e1407c5f10953cf606b8f8" |
| 21 | |
| 22 | # Added for Tau Ceti (see CACHE.md): https://github.com/TauCetiProject/TauCeti at a commit of its |
| 23 | # main branch (2a9233e5, 27 Nov 2026) whose cache Tau Ceti has published, on the same Lean and |
| 24 | # Mathlib as its tag v4.37.0-rc1. Its cached oleans are only usable if it was built against the |
| 25 | # Mathlib commit above, so the two pins move together; `lake exe cache get` checks this |
| 26 | # (scripts/tauceti-cache-get.py). |
| 27 | [[require]] |
| 28 | name = "TauCeti" |
| 29 | git = "https://github.com/TauCetiProject/TauCeti" |
| 30 | rev = "2a9233e5be32675476ae438bef6f6dd4ba93eb64" |
| 31 | |
| 32 | # The rest of this file, up to the next "Added" comment, is unchanged from grh-lean commit 72fead1. |
| 33 | |
| 34 | [[lean_lib]] |
| 35 | name = "Lib" |
| 36 | globs = ["Lib.+"] |
| 37 | |
| 38 | [[lean_lib]] |
| 39 | name = "New" |
| 40 | globs = ["New.+"] |
| 41 | |
| 42 | [[lean_lib]] |
| 43 | name = "Main" |
| 44 | roots = ["Statements", "Main"] |
| 45 | |
| 46 | [[lean_lib]] |
| 47 | name = "Challenge" |
| 48 | srcDir = ".." |
| 49 | |
| 50 | # Added for the shared build cache. It is not part of the original project. |
| 51 | [[lean_exe]] |
| 52 | name = "cache" |
| 53 | root = "scripts.Cache" |
| 54 | srcDir = ".." |
| 55 | |
| 56 | # Stock Lake also reads this file as its cache-service configuration (LAKE_CONFIG). |
| 57 | [cache] |
| 58 | defaultService = "grh-lean" |
| 59 | |
| 60 | [[cache.service]] |
| 61 | name = "grh-lean" |
| 62 | kind = "s3" |
| 63 | artifactEndpoint = "https://rh-cache.taucetiproject.org/artifacts" |
| 64 | revisionEndpoint = "https://rh-cache.taucetiproject.org/grh-lean/revisions" |
| 65 | |
| 66 | # Added for Tau Ceti: its public, anonymous artifact cache. `lake exe cache get` fetches from it |
| 67 | # the oleans of the Tau Ceti modules imported under src (scripts/tauceti-cache-get.py). |
| 68 | [[cache.service]] |
| 69 | name = "tauceti-public" |
| 70 | kind = "s3" |
| 71 | artifactEndpoint = "https://cache.taucetiproject.org/artifacts" |
| 72 | revisionEndpoint = "https://cache.taucetiproject.org/revisions" |