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.Compactness.Convergence.Terminal.SpatialJets |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.ScalarRatio.Annular.SpacetimeBounds |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Regularity |
| 4 | |
| 5 | /-! |
| 6 | # Spatial metric jets through finite time endpoints |
| 7 | |
| 8 | The existing open-time estimate supplies one bound on every interior |
| 9 | subinterval. Actual closed-time smoothness extends its spatial-jet norm |
| 10 | and time-Lipschitz inequalities to both endpoints, with no new extraction. |
| 11 | |
| 12 | This is the fixed-coordinate endpoint step of Morgan--Tian Proposition |
| 13 | 5.14, pp. 90-91, used in Theorem 11.8, pp. 272-279. The reference time is |
| 14 | interior, and curvature derivative bounds are required on the full slab. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Manifold ContDiff Topology Bundle |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M30 |
| 26 | |
| 27 | set_option synthInstance.maxHeartbeats 100000 in |
| 28 | -- The dependent bilinear jet instances exceed the default synthesis allowance. |
| 29 | set_option maxHeartbeats 800000 in |
| 30 | -- The dependent bilinear jets need the same elaboration allowance as the donor. |
| 31 | /-- Fixed-chart spatial jets retain one uniform norm and time-Lipschitz |
| 32 | bound on a closed finite slab, including both endpoints (Proposition 5.14, |
| 33 | pp. 90-91). The constant precedes every geometric choice. -/ |
| 34 | theorem exists_closed_spatialJet_time_lipschitz_constant |
| 35 | (n d : ℕ) (K Z : ℕ → ℝ) (hK : ∀ j, 0 ≤ K j) |
| 36 | {a b : ℝ} (ha : 0 < a) (hb : 0 ≤ b) : |
| 37 | ∃ B : ℝ, 0 ≤ B ∧ |
| 38 | ∀ {M : Type u} [TopologicalSpace M] [T2Space M] |
| 39 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 40 | {T : ℝ}, 0 < T → T ≤ 1 → |
| 41 | ∀ (F : RicciFlow n M (Icc (-T) 0)) |
| 42 | {U : Set (EuclideanSpace ℝ (Fin n))}, IsOpen U → |
| 43 | ∀ {e : EuclideanSpace ℝ (Fin n) → M}, ContMDiffOn (𝓡 n) (𝓡 n) ∞ e U → |
| 44 | (∀ y ∈ U, (mfderiv (𝓡 n) (𝓡 n) e y).IsInvertible) → |
| 45 | ∀ {τ : ℝ}, τ ∈ Ioo (-T) 0 → |
| 46 | ∀ {x : EuclideanSpace ℝ (Fin n)}, x ∈ U → |
| 47 | (∀ t ∈ Icc (-T) 0, ∀ v, |
| 48 | a * ‖v‖ ^ 2 ≤ (F.metric t).pullbackCoefficients e x v v ∧ |
| 49 | (F.metric t).pullbackCoefficients e x v v ≤ b * ‖v‖ ^ 2) → |
| 50 | (∀ j ≤ d, ∀ t ∈ Icc (-T) 0, |
| 51 | (F.connection t).curvatureDerivativeNorm j (e x) ≤ K j) → |
| 52 | (∀ j ≤ d, ‖iteratedFDeriv ℝ j ((F.metric τ).pullbackCoefficients e) x‖ ≤ Z j) → |
| 53 | ∀ j ≤ d, |
| 54 | (∀ t ∈ Icc (-T) 0, |
| 55 | ‖iteratedFDeriv ℝ j ((F.metric t).pullbackCoefficients e) x‖ ≤ B) ∧ |
| 56 | (∀ s ∈ Icc (-T) 0, ∀ t ∈ Icc (-T) 0, |
| 57 | ‖iteratedFDeriv ℝ j ((F.metric t).pullbackCoefficients e) x - |
| 58 | iteratedFDeriv ℝ j ((F.metric s).pullbackCoefficients e) x‖ ≤ B * |t - s|) := by |
| 59 | obtain ⟨B, hB, hbound⟩ := |
| 60 | SpacetimeBounds.exists_spatialJet_time_lipschitz_constant.{u} n d K Z hK ha hb |
| 61 | refine ⟨B, hB, ?_⟩ |
| 62 | intro M _ _ _ _ T hT hT1 F U hU e he hi τ hτ x hx hell hcurv hinit |
| 63 | have htime : -T < (0 : ℝ) := neg_neg_of_pos hT |
| 64 | have hne : (Ioo (-T) 0).Nontrivial := by |
| 65 | refine ⟨-T / 2, ⟨by linarith, by linarith⟩, |
| 66 | -T / 4, ⟨by linarith, by linarith⟩, by linarith⟩ |
| 67 | let Fint := Poincare.Geometry.RicciFlow.Harnack.restrictFlow F |
| 68 | Ioo_subset_Icc_self ordConnected_Ioo hne |
| 69 | have hinterior {s t : ℝ} (hs : s ∈ Ioo (-T) 0) (ht : t ∈ Ioo (-T) 0) |
| 70 | (j : ℕ) (hj : j ≤ d) : |
| 71 | ‖iteratedFDeriv ℝ j ((F.metric t).pullbackCoefficients e) x‖ ≤ B ∧ |
| 72 | ‖iteratedFDeriv ℝ j ((F.metric t).pullbackCoefficients e) x - |
| 73 | iteratedFDeriv ℝ j ((F.metric s).pullbackCoefficients e) x‖ ≤ B * |t - s| := by |
| 74 | let l := min τ (min s t) |
| 75 | let r := max τ (max s t) |
| 76 | have hl : l ∈ Ioo (-T) 0 := |
| 77 | ⟨lt_min hτ.1 (lt_min hs.1 ht.1), (min_le_left _ _).trans_lt hτ.2⟩ |
| 78 | have hr : r ∈ Ioo (-T) 0 := |
| 79 | ⟨hτ.1.trans_le (le_max_left _ _), max_lt hτ.2 (max_lt hs.2 ht.2)⟩ |
| 80 | have hsub : Icc l r ⊆ Ioo (-T) 0 := |
| 81 | fun _ hv => ⟨hl.1.trans_le hv.1, hv.2.trans_lt hr.2⟩ |
| 82 | have hlen : r - l ≤ 1 := by linarith [hl.1, hr.2] |
| 83 | have hτlr : τ ∈ Icc l r := ⟨min_le_left _ _, le_max_left _ _⟩ |
| 84 | have hslr : s ∈ Icc l r := |
| 85 | ⟨(min_le_right _ _).trans (min_le_left _ _), |
| 86 | (le_max_left _ _).trans (le_max_right _ _)⟩ |
| 87 | have htlr : t ∈ Icc l r := |
| 88 | ⟨(min_le_right _ _).trans (min_le_right _ _), |
| 89 | (le_max_right _ _).trans (le_max_right _ _)⟩ |
| 90 | have h := hbound Fint isOpen_Ioo hU he hi hsub hlen hτlr hx |
| 91 | (fun v hv => hell v (Ioo_subset_Icc_self (hsub hv))) |
| 92 | (fun q hq v hv => hcurv q hq v (Ioo_subset_Icc_self (hsub hv))) hinit j hj |
| 93 | exact ⟨h.1 t htlr, h.2 s hslr t htlr⟩ |
| 94 | intro j hj |
| 95 | let f := fun t => iteratedFDeriv ℝ j ((F.metric t).pullbackCoefficients e) x |
| 96 | have hcont : ContinuousOn f (Icc (-T) 0) := by |
| 97 | have hjet := SpacetimeBounds.contDiffOn_spatialJet_within |
| 98 | (F.contDiffOn_pullbackCoefficients_within hU he) (uniqueDiffOn_Icc htime) hU j |
| 99 | intro t ht |
| 100 | exact ((hjet (t, x) ⟨ht, hx⟩).comp t |
| 101 | (show ContDiffWithinAt ℝ ∞ (fun s : ℝ => (s, x)) (Icc (-T) 0) t from |
| 102 | contDiffWithinAt_id.prodMk contDiffWithinAt_const) |
| 103 | (show MapsTo (fun s : ℝ => (s, x)) (Icc (-T) 0) (Icc (-T) 0 ×ˢ U) from |
| 104 | fun _ hs => ⟨hs, hx⟩)).continuousWithinAt |
| 105 | have hclosure {t : ℝ} (ht : t ∈ Icc (-T) 0) : t ∈ closure (Ioo (-T) 0) := by |
| 106 | rwa [closure_Ioo htime.ne] |
| 107 | change (∀ t ∈ Icc (-T) 0, ‖f t‖ ≤ B) ∧ |
| 108 | (∀ s ∈ Icc (-T) 0, ∀ t ∈ Icc (-T) 0, ‖f t - f s‖ ≤ B * |t - s|) |
| 109 | constructor |
| 110 | · intro t ht |
| 111 | apply ContinuousWithinAt.closure_le (hclosure ht) |
| 112 | ((hcont t ht).norm.mono Ioo_subset_Icc_self) continuousWithinAt_const |
| 113 | exact fun s hs => (hinterior hs hs j hj).1 |
| 114 | · have hone {s : ℝ} (hs : s ∈ Ioo (-T) 0) {t : ℝ} (ht : t ∈ Icc (-T) 0) : |
| 115 | ‖f t - f s‖ ≤ B * |t - s| := by |
| 116 | apply ContinuousWithinAt.closure_le (hclosure ht) |
| 117 | (((hcont t ht).sub continuousWithinAt_const).norm.mono Ioo_subset_Icc_self) |
| 118 | (by fun_prop) |
| 119 | exact fun v hv => (hinterior hs hv j hj).2 |
| 120 | intro s hs t ht |
| 121 | apply ContinuousWithinAt.closure_le (hclosure hs) |
| 122 | ((continuousWithinAt_const.sub (hcont s hs)).norm.mono Ioo_subset_Icc_self) |
| 123 | (by fun_prop) |
| 124 | exact fun v hv => hone hv ht |
| 125 | |
| 126 | end PoincareMT.M30 |