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.Continuation.Construction.MaximalRestart |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.RestartPinching |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.History |
| 4 | import PoincareLib.Geometry.RicciFlow.Local.Theory |
| 5 | import PoincareLib.Geometry.RicciFlow.Pinching.Conclusion |
| 6 | |
| 7 | /-! |
| 8 | # The unchanged local-flow and pinching inputs of continuation |
| 9 | |
| 10 | The declarations are relocated from the construction entry point to let the |
| 11 | terminal restart construction use them without a circular import. The |
| 12 | predecessor fields are unchanged from the pinned Mapher M33 proof branch. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | /-- The unchanged compact restart and pinching inputs of the Mapher M33 proof |
| 24 | branch. No continuation result is included in this predecessor interface. -/ |
| 25 | structure M33Predecessors : Prop where |
| 26 | local_flow : ∀ {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 28 | [T2Space M] [SecondCountableTopology M] [CompactSpace M], |
| 29 | RicciFlowLocalTheory 3 M |
| 30 | pinching : ∀ {M : Type u} [TopologicalSpace M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 32 | [T2Space M] [SecondCountableTopology M] [CompactSpace M], |
| 33 | ∀ a b : ℝ, 0 ≤ a → a < b → ∀ F : RicciFlow 3 M (Set.Ico a b), |
| 34 | HamiltonIveyPinchedAt (F.connection a) a → HamiltonIveyPinchingConclusion a b F |
| 35 | |
| 36 | /-- The frozen predecessors construct the pinched maximal ordinary segment |
| 37 | once the terminal compact carrier and its pinched metric have been constructed. -/ |
| 38 | theorem M33Predecessors.exists_pinched_restart |
| 39 | (P : M33Predecessors.{u}) {M : Type u} [TopologicalSpace M] |
| 40 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 41 | [T2Space M] [SecondCountableTopology M] [CompactSpace M] |
| 42 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) |
| 43 | (a : ℝ) (ha : 0 ≤ a) (hpinched : HamiltonIveyPinchedAt D a) : |
| 44 | ∃ b : ℝ≥0∞, ENNReal.ofReal a < b ∧ |
| 45 | ∃ F : RicciFlow 3 M {t : ℝ | a ≤ t ∧ ENNReal.ofReal t < b}, |
| 46 | F.metric a = g ∧ |
| 47 | (∀ t ∈ {s : ℝ | a ≤ s ∧ ENNReal.ofReal s < b}, |
| 48 | HamiltonIveyPinchedAt (F.connection t) t) ∧ |
| 49 | (∀ c : ℝ, a < c → ∀ G : RicciFlow 3 M (Set.Ico a c), |
| 50 | G.metric a = g → ENNReal.ofReal c ≤ b) ∧ |
| 51 | (b ≠ ⊤ → ∀ C s : ℝ, s < b.toReal → |
| 52 | ∃ t ∈ Set.Ioo (max a s) b.toReal, ∃ x : M, |
| 53 | C < (F.connection t).curvatureTensorNorm x) := by |
| 54 | obtain ⟨A⟩ := Surgery.OrdinaryRestart.nonempty_solution P.local_flow g |
| 55 | refine ⟨ENNReal.ofReal a + Surgery.OrdinaryRestart.lifetime g, |
| 56 | Surgery.OrdinaryRestart.absolute_lifetime_gt A a, |
| 57 | Surgery.OrdinaryRestart.absoluteFlow P.local_flow.2.1 A a ha, |
| 58 | Surgery.OrdinaryRestart.absoluteFlow_initial P.local_flow.2.1 A a ha, ?_, |
| 59 | ?_, Surgery.OrdinaryRestart.absolute_curvature_unbounded_tail P.local_flow A a ha⟩ |
| 60 | · exact Surgery.OrdinaryRestart.absoluteFlow_pinched P.local_flow.2.1 A a ha |
| 61 | (fun b hab F => P.pinching a b ha hab F) |
| 62 | (Surgery.OrdinaryRestart.absoluteFlow_initial_pinched P.local_flow.2.1 A a ha D hpinched) |
| 63 | · intro c hac G hG |
| 64 | exact Surgery.OrdinaryRestart.absolute_time_le_lifetime ha hac G hG |
| 65 | |
| 66 | /-- Construct every full finite regular history from the unchanged local-flow input. -/ |
| 67 | theorem M33Predecessors.regular_history (P : M33Predecessors.{u}) |
| 68 | (F : SurgeryFlowData.{u}) (W : M33RegularHistoryWindow F) : |
| 69 | Nonempty (M33RegularHistoryData W) := by |
| 70 | refine ⟨Surgery.RegularHistory.data W (fun t _ ht => ?_)⟩ |
| 71 | let : CompactSpace (F.slice t).carrier := |
| 72 | isCompact_univ_iff.mp (F.slices_compact t (W.time_subset ht)) |
| 73 | exact P.local_flow |
| 74 | |
| 75 | end PoincareMT |