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

| 1 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Generalized.GeneralizedBridgeNeck |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Generalized.GeneralizedBridgeCap |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Generalized.GeneralizedBridgeComponent |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Generalized.GeneralizedBridgeRound |
| 5 | |
| 6 | /-! |
| 7 | # Full canonical control on the actual regular generalized slice |
| 8 | |
| 9 | Every alternative is a genuine transported geometric certificate. The |
| 10 | strong neck retains its full earlier cylinder; the three static carriers |
| 11 | use the actual global slice isometry at a nonsurgery time. |
| 12 | Source: Morgan--Tian Definition 9.78 and Proposition 14.12. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M47 |
| 20 | |
| 21 | /-- Actual surgery canonical control transports at a regular included |
| 22 | time with its identical epsilon and C. -/ |
| 23 | theorem regular_history_canonical_control |
| 24 | {F : SurgeryFlowData.{u}} {W : M33RegularHistoryWindow F} |
| 25 | (H : M33RegularHistoryData W) {t : ℝ} (ht : t ∈ H.generalized.interval) |
| 26 | (hregular : t ∉ F.surgery_times) {epsilon C : ℝ} |
| 27 | (x : (H.generalized.slice t).carrier) |
| 28 | (hcanonical : SurgeryCanonicalControl F t (H.history.forward t ht x) epsilon C) : |
| 29 | Nonempty (GeneralizedCanonicalControl (F := H.generalized) t x epsilon C) := by |
| 30 | cases hcanonical with |
| 31 | | neck N hcenter => exact regular_history_neck_control H ht x N hcenter |
| 32 | | cap N he hC _ hx => exact regular_history_cap_control H ht hregular x N he hC hx |
| 33 | | component N hx => exact regular_history_component_control H ht hregular x N hx |
| 34 | | round N hx => exact regular_history_round_control H ht hregular x N hx |
| 35 | |
| 36 | end PoincareMT.M47 |