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

P-1: keep sub_zero where OrientedDiskBoundary needs it
Browse filesChecks
build Program · lake build and axioms
Details
challenge Program · challenge files and build config
Details
ci/docs
Details
+1 −1 PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/OrientedDiskBoundary.lean View file
| @@ -209,7 +209,7 @@ theorem coherent_triangle_signs_global_difference | ||
| 209 | 209 | have hs := hsigma t u hne s hst hsu |
| 210 | 210 | have ht := htau t u hne s hst hsu |
| 211 | 211 | linear_combination (norm := ring_nf) hs + ht |
| 212 | - simp only [show (2 : ZMod 2) = 0 from rfl, mul_zero] | |
| 212 | + simp only [show (2 : ZMod 2) = 0 from rfl, mul_zero, sub_zero] | |
| 213 | 213 | have hwalk {t u} (w : (triangleGraph A).Walk t u) : |
| 214 | 214 | sigma t + tau t = sigma u + tau u := by |
| 215 | 215 | induction w with |
+3 −1 routes/p1-surfaces-cuts/README.md View file
| @@ -39,7 +39,9 @@ Job 850 (fifth head) showed the same two section variables unused in `charted_re | ||
| 39 | 39 | `sub_zero` unused in `simp only [show (2 : ZMod 2) = 0 from rfl, mul_zero, sub_zero]` at |
| 40 | 40 | `OriginalCutCoherentSigns.lean:306`, like line 127 before. That `simp only` closes the goal `linear_combination |
| 41 | 41 | (norm := ring_nf)` leaves in eleven places of the folder, and `ring_nf` leaves no `- 0`, `+ 0` or `-0` behind, so I |
| 42 | -dropped `sub_zero`, `add_zero` and `neg_zero` from all of them at once; `build` judges it. | |
| 42 | +dropped `sub_zero`, `add_zero` and `neg_zero` from all of them at once. Job 856 failed on that: in | |
| 43 | +`OrientedDiskBoundary.lean:212` the goal left is `0 - 0 - 0 - 0 - 0 = 0` and `sub_zero` is needed, so that line is | |
| 44 | +back as it was. | |
| 43 | 45 | |
| 44 | 46 | Only binder names, one tactic keyword, `omit` lines and unused simp arguments change; no statement changes. `python3 checks/challenge.py .` says ok. |
| 45 | 47 | |