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 PlanarBoundaryOrientation's simp arguments as they were
Browse filesChecks
build Program · lake build and axioms
Details
challenge Program · challenge files and build config
Details
ci/docs
Details
+2 −2 PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/PlanarBoundaryOrientation.lean View file
| @@ -457,7 +457,7 @@ theorem planar_numbered_boundary_cross_parity_reverse | ||
| 457 | 457 | hord.ne |
| 458 | 458 | rw [hcross, hneg, hbase] |
| 459 | 459 | linear_combination (norm := ring_nf) hrev |
| 460 | - simp only [show (2 : ZMod 2) = 0 from rfl, mul_zero] | |
| 460 | + simp only [show (2 : ZMod 2) = 0 from rfl, mul_zero, sub_zero] | |
| 461 | 461 | |
| 462 | 462 | /-- The comparison with the numbered orientation applies to either ordering |
| 463 | 463 | of any actual edge and its remaining triangle vertex. -/ |
| @@ -582,7 +582,7 @@ theorem planar_sorted_cross_cancellation | ||
| 582 | 582 | rw [hpa, hqa, hpt, hqu] at hsign |
| 583 | 583 | unfold Dehn.orderedCofaceParity at hsign |
| 584 | 584 | linear_combination (norm := ring_nf) hsign |
| 585 | - simp only [show (2 : ZMod 2) = 0 from rfl, mul_zero] | |
| 585 | + simp only [show (2 : ZMod 2) = 0 from rfl, mul_zero, neg_zero] | |
| 586 | 586 | |
| 587 | 587 | /-- Construct the sorted planar determinant signs for all actual triangles, |
| 588 | 588 | retaining their formula and proving all-edge coherence. -/ |
+2 −1 routes/p1-surfaces-cuts/README.md View file
| @@ -41,7 +41,8 @@ Job 850 (fifth head) showed the same two section variables unused in `charted_re | ||
| 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 | 42 | dropped `sub_zero`, `add_zero` and `neg_zero` from all of them at once. Job 856 failed on that: in |
| 43 | 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. | |
| 44 | +back as it was. Job 859 then failed in `PlanarBoundaryOrientation.lean` (goal `-0 = 0` left in the proof at line | |
| 45 | +440), so that file is back as it was too. Where a zero lemma is unused there, a later log will say so line by line. | |
| 45 | 46 | |
| 46 | 47 | Only binder names, one tactic keyword, `omit` lines and unused simp arguments change; no statement changes. `python3 checks/challenge.py .` says ok. |
| 47 | 48 | |