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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.Geometry |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Spacetime.GeneralizedCylinderRestriction |
| 4 | |
| 5 | /-! |
| 6 | # Restriction of generalized flow cylinders |
| 7 | |
| 8 | M12 supplies the actual cylinder restrictions. Here we establish the time |
| 9 | domain consequences needed in the local limiting-flow construction of |
| 10 | Morgan--Tian Claim 10.10, printed p. 255, including at relative endpoints. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | namespace GeneralizedFlowCylinder |
| 20 | |
| 21 | variable {F : GeneralizedRicciFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 22 | {origin scale : ℝ} {I : Set ℝ} {U : Set C.carrier} |
| 23 | |
| 24 | /-- A cylinder with a source point has an actual target slice at every |
| 25 | time in its domain. See Morgan--Tian Definition 9.78, printed p. 232. -/ |
| 26 | theorem time_mem_interval (e : GeneralizedFlowCylinder F C origin scale I U) |
| 27 | (s : ℝ) (hs : s ∈ I) (x : C.carrier) : origin + s / scale ∈ F.interval := |
| 28 | (F.slice_nonempty_iff _).mp ⟨e.forward s hs x⟩ |
| 29 | |
| 30 | end GeneralizedFlowCylinder |
| 31 | |
| 32 | /-- A strong neck's own backward cylinder gives included physical times; |
| 33 | no separate earlier canonical certificate is used. See Morgan--Tian |
| 34 | Claim 10.10, printed p. 255. -/ |
| 35 | theorem GeneralizedStrongNeck.backward_time_mem |
| 36 | {F : GeneralizedRicciFlowData.{u}} {t epsilon : ℝ} |
| 37 | (N : GeneralizedStrongNeck F t epsilon) |
| 38 | {s : ℝ} (hs : s ∈ Set.Ioc (-1 : ℝ) 0) : |
| 39 | t + s / (N.scale⁻¹ ^ 2) ∈ F.interval := |
| 40 | N.time_cylinder.time_mem_interval s hs N.center |
| 41 | |
| 42 | /-- A strong neck cannot be centered at an included minimum of the flow |
| 43 | interval, since its backward cylinder contains earlier included times. |
| 44 | See Morgan--Tian Definition 9.78, printed p. 232, and the regular-time |
| 45 | boundary review of 2026-09-18. -/ |
| 46 | theorem GeneralizedStrongNeck.not_minimum |
| 47 | {F : GeneralizedRicciFlowData.{u}} {t epsilon : ℝ} |
| 48 | (N : GeneralizedStrongNeck F t epsilon) |
| 49 | (hmin : ∀ s ∈ F.interval, t ≤ s) : False := by |
| 50 | have htime := N.backward_time_mem (s := -(1 / 2 : ℝ)) (by constructor <;> norm_num) |
| 51 | have hle := hmin _ htime |
| 52 | have hscale : 0 < N.scale⁻¹ ^ 2 := N.time_cylinder.scale_pos |
| 53 | have hneg : -(1 / 2 : ℝ) / (N.scale⁻¹ ^ 2) < 0 := div_neg_of_neg_of_pos |
| 54 | (by norm_num) hscale |
| 55 | linarith |
| 56 | |
| 57 | end PoincareMT |