Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

S-5: Trim the imports of one folder #15
Open
Needs. A build of the folder and what imports it; a folder near the leaves of the import graph is cheap.
Units. A folder of at most a hundred files each.
Do. For each file of your folder, remove the imports it does not need and replace an import of a large file by the smaller one that holds what is used. On two other large machine-written proofs this is where the measured gain in build time and memory came from (a quarter faster and a third less memory on the Riemann proof after one import fix; 1.6 times faster on the Navier–Stokes proof with fewer modules and trimmed imports). Change no statement and no proof.
Closes when your pull request has passed
challengeandbuild, changes import lines only, and names the folder. The issue stays open while folders remain.What it does not show. That the whole build is faster: the
buildcheck's time onmainshows the sum.