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.GlobalSchedule.Initial.InitialUnion |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.GlobalSchedule.Literal.LiteralTranslation |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.GlobalSchedule.Ordinary.OrdinaryGluing |
| 4 | |
| 5 | /-! |
| 6 | # A maximal ordinary start from the actual M03 service |
| 7 | |
| 8 | Morgan--Tian Theorem 3.11, pp. 39-40, Proposition 4.12, p. 68, and |
| 9 | Section 17.2, p. 409. The union of the initial solutions has an infinite |
| 10 | forward domain or a finite endpoint. A bounded terminal curvature collar |
| 11 | would extend the same initial metric beyond the supremum of its lifetimes. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.M51Ordinary |
| 22 | |
| 23 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 25 | |
| 26 | /-- Change only the domain's presentation, keeping both total representatives. -/ |
| 27 | noncomputable def onEqualDomain {J K : Set ℝ} (F : RicciFlow n M J) |
| 28 | (hJK : J = K) : RicciFlow n M K := hJK ▸ F |
| 29 | |
| 30 | @[simp] theorem onEqualDomain_metric {J K : Set ℝ} (F : RicciFlow n M J) |
| 31 | (hJK : J = K) (t : ℝ) : (onEqualDomain F hJK).metric t = F.metric t := by |
| 32 | subst K |
| 33 | rfl |
| 34 | |
| 35 | @[simp] theorem onEqualDomain_curvatureTensorNorm {J K : Set ℝ} |
| 36 | (F : RicciFlow n M J) (hJK : J = K) (t : ℝ) (x : M) : |
| 37 | ((onEqualDomain F hJK).connection t).curvatureTensorNorm x = |
| 38 | (F.connection t).curvatureTensorNorm x := by |
| 39 | subst K |
| 40 | rfl |
| 41 | |
| 42 | theorem initialDomain_eq_Ici (g0 : RiemannianMetric n M) |
| 43 | (hA : ¬ BddAbove (initialLifetimes g0)) : initialDomain g0 = Ici 0 := by |
| 44 | ext t |
| 45 | constructor |
| 46 | · exact fun ht => ht.1 |
| 47 | · intro ht |
| 48 | obtain ⟨T, hT, htT⟩ := not_bddAbove_iff.mp hA t |
| 49 | exact ⟨ht, T, hT, htT⟩ |
| 50 | |
| 51 | theorem initialLifetime_sup_pos (h03 : RicciFlowLocalTheory n M) |
| 52 | (g0 : RiemannianMetric n M) (hA : BddAbove (initialLifetimes g0)) : |
| 53 | 0 < sSup (initialLifetimes g0) := by |
| 54 | obtain ⟨T, hT⟩ := initialLifetimes_nonempty h03 g0 |
| 55 | exact hT.1.trans_le (le_csSup hA hT) |
| 56 | |
| 57 | theorem initialDomain_eq_Ico (h03 : RicciFlowLocalTheory n M) |
| 58 | (g0 : RiemannianMetric n M) (hA : BddAbove (initialLifetimes g0)) : |
| 59 | initialDomain g0 = Ico 0 (sSup (initialLifetimes g0)) := by |
| 60 | ext t |
| 61 | constructor |
| 62 | · rintro ⟨ht, T, hT, htT⟩ |
| 63 | exact ⟨ht, htT.trans_le (le_csSup hA hT)⟩ |
| 64 | · intro ht |
| 65 | obtain ⟨T, hT, htT⟩ := |
| 66 | exists_lt_of_lt_csSup (initialLifetimes_nonempty h03 g0) ht.2 |
| 67 | exact ⟨ht.1, T, hT, htT⟩ |
| 68 | |
| 69 | /-- A finite maximal lifetime has unbounded full curvature in every terminal collar. -/ |
| 70 | theorem initialUnion_terminal_curvature (h03 : RicciFlowLocalTheory n M) |
| 71 | (g0 : RiemannianMetric n M) (hA : BddAbove (initialLifetimes g0)) : |
| 72 | ∀ L s : ℝ, s < sSup (initialLifetimes g0) → |
| 73 | ∃ t ∈ Ioo (max 0 s) (sSup (initialLifetimes g0)), ∃ x : M, |
| 74 | L < ((initialUnion h03 g0).connection t).curvatureTensorNorm x := by |
| 75 | intro L s hs |
| 76 | by_contra h |
| 77 | push Not at h |
| 78 | let T := sSup (initialLifetimes g0) |
| 79 | have hT : 0 < T := initialLifetime_sup_pos h03 g0 hA |
| 80 | obtain ⟨a, ha, haT⟩ := exists_between (max_lt hT hs) |
| 81 | have ha0 : 0 < a := (le_max_left 0 s).trans_lt ha |
| 82 | let F := onEqualDomain (initialUnion h03 g0) (initialDomain_eq_Ico h03 g0 hA) |
| 83 | have hbound : ∀ t ∈ Ico a T, ∀ x : M, (F.connection t).curvatureTensorNorm x ≤ L := by |
| 84 | intro t ht x |
| 85 | simpa only [F, onEqualDomain_curvatureTensorNorm] using |
| 86 | h t ⟨ha.trans_le ht.1, ht.2⟩ x |
| 87 | obtain ⟨δ, hδT, R, hR⟩ := h03.2.2 (T - a) (sub_pos.mpr haT) |
| 88 | (tail F ha0.le haT) ⟨L, tail_curvature_bound F ha0.le haT hbound⟩ |
| 89 | have hδ : 0 < δ := (sub_pos.mpr haT).trans hδT |
| 90 | have hTB : T < a + δ := by linarith |
| 91 | let G := restart R hδ a |
| 92 | have hmetric : EqOn F.metric G.metric (Ico a T) := by |
| 93 | intro t ht |
| 94 | have htime : t - a ∈ Ico 0 (T - a) := ⟨sub_nonneg.mpr ht.1, sub_lt_sub_right ht.2 a⟩ |
| 95 | have hclock : a + (t - a) = t := by linarith |
| 96 | simpa only [tail_metric, G, restart_metric, hclock] using hR htime |
| 97 | obtain ⟨c, hac, hcT⟩ := exists_between haT |
| 98 | let extended := glueOverlap F G c ha0 ⟨hac, hcT⟩ hTB hmetric |
| 99 | have hinitial : extended.metric 0 = g0 := by |
| 100 | rw [show extended.metric 0 = F.metric 0 from |
| 101 | glueOverlap_initial_metric F G c ha0 ⟨hac, hcT⟩ hTB hmetric] |
| 102 | exact (onEqualDomain_metric _ _ 0).trans (initialUnion_initial_metric h03 g0) |
| 103 | have hlifetime : a + δ ∈ initialLifetimes g0 := |
| 104 | ⟨hT.trans hTB, extended, hinitial⟩ |
| 105 | exact (not_le_of_gt hTB) (le_csSup hA hlifetime) |
| 106 | |
| 107 | /-- From the actual local theory, obtain a genuine maximal ordinary start. |
| 108 | At a finite endpoint its full curvature is unbounded arbitrarily late. -/ |
| 109 | theorem exists_maximal_initial_flow (h03 : RicciFlowLocalTheory n M) |
| 110 | (g0 : RiemannianMetric n M) : |
| 111 | ∃ (J : Set ℝ) (F : RicciFlow n M J), |
| 112 | IsLeast J 0 ∧ F.metric 0 = g0 ∧ |
| 113 | (J = Ici 0 ∨ ∃ T : ℝ, 0 < T ∧ J = Ico 0 T ∧ |
| 114 | ∀ L s : ℝ, s < T → ∃ t ∈ Ioo (max 0 s) T, ∃ x : M, |
| 115 | L < (F.connection t).curvatureTensorNorm x) := by |
| 116 | refine ⟨initialDomain g0, initialUnion h03 g0, |
| 117 | initialDomain_isLeast h03 g0, initialUnion_initial_metric h03 g0, ?_⟩ |
| 118 | by_cases hA : BddAbove (initialLifetimes g0) |
| 119 | · exact Or.inr ⟨sSup (initialLifetimes g0), initialLifetime_sup_pos h03 g0 hA, |
| 120 | initialDomain_eq_Ico h03 g0 hA, initialUnion_terminal_curvature h03 g0 hA⟩ |
| 121 | · exact Or.inl (initialDomain_eq_Ici g0 hA) |
| 122 | |
| 123 | end PoincareMT.M51Ordinary |