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.Singular.RegularLimit.Canonical.Component.DiameterLimit |
| 2 | |
| 3 | /-! |
| 4 | # The terminal controlled-component alternative |
| 5 | |
| 6 | Recurrent old-time controlled components through a positive regular worldline |
| 7 | give the actual terminal component, with the complete smooth topology and |
| 8 | strict sectional and intrinsic-diameter bounds at the doubled constant. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.SingularTimeAssumptions |
| 21 | |
| 22 | variable {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 24 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 25 | [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 26 | {F : GeneralizedRicciFlowData.{u}} {T : ℝ} |
| 27 | |
| 28 | /-- The complete controlled-component certificate is constructed on the |
| 29 | actual terminal metric and its actual Levi-Civita connection. -/ |
| 30 | def terminalCComponent (H : SingularTimeAssumptions F T M) |
| 31 | (P04 : RicciFlowCurvatureTheory.{u}) (x : H.regularRegion P04) |
| 32 | (hfreq : ∃ᶠ t in 𝓝[<] T, ∃ ht : t ∈ Ico H.reference.tMinus T, |
| 33 | ∃ N : SingularCComponent (F.metric t) (F.connection t) H.constant, |
| 34 | H.reference.forward t ht x ∈ N.carrier) |
| 35 | (hpos : 0 < (H.terminalConnection P04).scalarCurvature x) : |
| 36 | SingularCComponent (H.terminalMetric P04) (H.terminalConnection P04) |
| 37 | (2 * H.constant) where |
| 38 | constant_pos := mul_pos (by norm_num) H.constant_pos |
| 39 | basepoint := x |
| 40 | carrier := connectedComponent x |
| 41 | component_eq := rfl |
| 42 | compact := (H.terminal_topology_of_frequently_cComponent P04 x hfreq).1 |
| 43 | topology := (H.terminal_topology_of_frequently_cComponent P04 x hfreq).2 |
| 44 | positive_sectional y hy v w hvw := |
| 45 | (H.terminal_strict_sectional_bounds_of_frequently_cComponent P04 x hfreq hpos |
| 46 | y hy v w hvw).1 |
| 47 | sectional_lower y hy v w hvw := |
| 48 | (H.terminal_strict_sectional_bounds_of_frequently_cComponent P04 x hfreq hpos |
| 49 | y hy v w hvw).2 |
| 50 | diameter_lower := |
| 51 | (H.terminal_intrinsicDiameter_bounds_of_frequently_cComponent P04 x hfreq hpos).1 |
| 52 | diameter_upper := |
| 53 | (H.terminal_intrinsicDiameter_bounds_of_frequently_cComponent P04 x hfreq hpos).2 |
| 54 | |
| 55 | @[simp] theorem terminalCComponent_carrier (H : SingularTimeAssumptions F T M) |
| 56 | (P04 : RicciFlowCurvatureTheory.{u}) (x : H.regularRegion P04) |
| 57 | (hfreq : ∃ᶠ t in 𝓝[<] T, ∃ ht : t ∈ Ico H.reference.tMinus T, |
| 58 | ∃ N : SingularCComponent (F.metric t) (F.connection t) H.constant, |
| 59 | H.reference.forward t ht x ∈ N.carrier) |
| 60 | (hpos : 0 < (H.terminalConnection P04).scalarCurvature x) : |
| 61 | (H.terminalCComponent P04 x hfreq hpos).carrier = connectedComponent x := rfl |
| 62 | |
| 63 | /-- The recurrent old-time component branch produces the exact doubled |
| 64 | terminal alternative containing the specified regular point. -/ |
| 65 | theorem exists_terminal_cComponent_of_frequently |
| 66 | (H : SingularTimeAssumptions F T M) (P04 : RicciFlowCurvatureTheory.{u}) |
| 67 | (x : H.regularRegion P04) |
| 68 | (hfreq : ∃ᶠ t in 𝓝[<] T, ∃ ht : t ∈ Ico H.reference.tMinus T, |
| 69 | ∃ N : SingularCComponent (F.metric t) (F.connection t) H.constant, |
| 70 | H.reference.forward t ht x ∈ N.carrier) |
| 71 | (hpos : 0 < (H.terminalConnection P04).scalarCurvature x) : |
| 72 | ∃ N : SingularCComponent (H.terminalMetric P04) (H.terminalConnection P04) |
| 73 | (2 * H.constant), N.basepoint = x ∧ N.carrier = connectedComponent x ∧ x ∈ N.carrier := |
| 74 | ⟨H.terminalCComponent P04 x hfreq hpos, rfl, rfl, mem_connectedComponent⟩ |
| 75 | |
| 76 | end PoincareMT.SingularTimeAssumptions |