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.StandardCap.Existence.Construction.Curvature.TerminalCurvatureBounds |
| 2 | |
| 3 | /-! |
| 4 | # Uniform original-chart bounds for the terminal metric |
| 5 | |
| 6 | The closed flow's actual pullback jets are continuous at the included |
| 7 | terminal slice. Their old uniform bounds therefore persist with the |
| 8 | same constants, chosen before the initially isometric chart. Pointwise |
| 9 | coefficient convergence likewise retains uniform ellipticity. These are |
| 10 | the interpolation inputs for Morgan-Tian Theorem 12.5, pp. 296-297. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | -- Pullback metric jets have nested multilinear-map targets. |
| 16 | set_option maxSynthPendingDepth 8 |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Topology |
| 20 | |
| 21 | namespace PoincareMT.M34.PartialFlowTerminalJets |
| 22 | |
| 23 | variable {g0 : StandardInitialMetric} {F : PartialStandardCapFlow g0} {S : ℝ} |
| 24 | (L : PartialFlowTerminalJets F S) (P : RicciFlowCurvatureTheory.{0}) |
| 25 | (E0 : StandardCapEstimate g0) {B : ℝ} (hS : 0 < S) (hSF : S ≤ F.lifetime) (hB : 0 < B) |
| 26 | (hfull : ∀ t ∈ Ico 0 S, ∀ x : StandardCapSpace, |
| 27 | (F.flow.connection t).curvatureTensorNorm x ≤ B) |
| 28 | |
| 29 | /-- Uniform finite collections of pullback spatial-jet bounds persist |
| 30 | on the whole closed slab, with constants before all initial local |
| 31 | isometries and query points (Theorem 12.5, pp. 296-297). -/ |
| 32 | theorem closedFlow_compactPullback_spatialJet_bounds |
| 33 | {K : Set StandardCapSpace} (hK : IsCompact K) (m : ℕ) : |
| 34 | ∃ G : ℝ, 1 ≤ G ∧ ∀ j ≤ m, ∀ {U : Set StandardCapSpace}, IsOpen U → |
| 35 | ∀ {e : StandardCapSpace → StandardCapSpace}, ContMDiffOn (𝓡 3) (𝓡 3) ∞ e U → |
| 36 | (∀ x ∈ U, (mfderiv (𝓡 3) (𝓡 3) e x).IsInvertible) → |
| 37 | (∀ x ∈ U, ∀ u v : TangentSpace (𝓡 3) x, g0.metric.inner x u v = |
| 38 | g0.metric.inner (e x) (mfderiv (𝓡 3) (𝓡 3) e x u) |
| 39 | (mfderiv (𝓡 3) (𝓡 3) e x v)) → |
| 40 | ∀ t ∈ Icc 0 S, ∀ x ∈ K, x ∈ U → |
| 41 | ‖iteratedFDeriv ℝ j |
| 42 | (((L.closedFlow P E0 hS hSF hB hfull).metric t).pullbackCoefficients e) x‖ ≤ G := by |
| 43 | obtain ⟨G, hG, hbound⟩ := partialFlow_compactPullback_spatialJet_bounds |
| 44 | P E0 F hS hSF hB hfull hK m |
| 45 | refine ⟨G, hG, ?_⟩ |
| 46 | intro j hj U hU e he hinv hmetric t ht x hx hxU |
| 47 | let H := L.closedFlow P E0 hS hSF hB hfull |
| 48 | have hold (s : ℝ) (hs : s ∈ Ico 0 S) : |
| 49 | ‖iteratedFDeriv ℝ j ((H.metric s).pullbackCoefficients e) x‖ ≤ G := by |
| 50 | have heq : H.metric s = F.flow.metric s := |
| 51 | L.closedMetric_of_lt P E0 hS hSF hB hfull hs.2 |
| 52 | rw [heq] |
| 53 | exact hbound j hj hU he hinv hmetric s hs x hx hxU |
| 54 | rcases ht.2.eq_or_lt with heq | hlt |
| 55 | · subst t |
| 56 | have hcoeff := H.smooth.contDiffOn_spacetime_pullbackCoefficients hU he |
| 57 | have hjoint := hcoeff.iteratedFDeriv_snd_of_isOpen hU j |
| 58 | have hc : ContinuousOn |
| 59 | (fun s => ‖iteratedFDeriv ℝ j ((H.metric s).pullbackCoefficients e) x‖) |
| 60 | (Icc 0 S) := by |
| 61 | apply hjoint.continuousOn.norm.comp (continuous_id.prodMk continuous_const).continuousOn |
| 62 | exact fun _ hs => ⟨hs, hxU⟩ |
| 63 | have hleft : Tendsto (fun s : ℝ => s) (𝓝[<] S) (𝓝[Icc 0 S] S) := by |
| 64 | apply tendsto_nhdsWithin_iff.mpr |
| 65 | refine ⟨tendsto_id.mono_left nhdsWithin_le_nhds, ?_⟩ |
| 66 | filter_upwards [Ico_mem_nhdsLT hS] with s hs |
| 67 | exact ⟨hs.1, hs.2.le⟩ |
| 68 | apply le_of_tendsto ((hc S ⟨hS.le, le_rfl⟩).tendsto.comp hleft) |
| 69 | filter_upwards [Ico_mem_nhdsLT hS] with s hs |
| 70 | exact hold s hs |
| 71 | · exact hold t ⟨ht.1, hlt⟩ |
| 72 | |
| 73 | /-- The actual terminal metric has all uniform original-chart spatial |
| 74 | jet bounds, before the chart and point are selected (Theorem 12.5, pp. 296-297). -/ |
| 75 | theorem metric_compactPullback_spatialJet_bounds |
| 76 | {K : Set StandardCapSpace} (hK : IsCompact K) (m : ℕ) : |
| 77 | ∃ G : ℝ, 1 ≤ G ∧ ∀ j ≤ m, ∀ {U : Set StandardCapSpace}, IsOpen U → |
| 78 | ∀ {e : StandardCapSpace → StandardCapSpace}, ContMDiffOn (𝓡 3) (𝓡 3) ∞ e U → |
| 79 | (∀ x ∈ U, (mfderiv (𝓡 3) (𝓡 3) e x).IsInvertible) → |
| 80 | (∀ x ∈ U, ∀ u v : TangentSpace (𝓡 3) x, g0.metric.inner x u v = |
| 81 | g0.metric.inner (e x) (mfderiv (𝓡 3) (𝓡 3) e x u) |
| 82 | (mfderiv (𝓡 3) (𝓡 3) e x v)) → |
| 83 | ∀ x ∈ K, x ∈ U → ‖iteratedFDeriv ℝ j |
| 84 | ((L.metric P E0 hS hSF hB hfull).pullbackCoefficients e) x‖ ≤ G := by |
| 85 | obtain ⟨G, hG, hbound⟩ := L.closedFlow_compactPullback_spatialJet_bounds |
| 86 | P E0 hS hSF hB hfull hK m |
| 87 | refine ⟨G, hG, ?_⟩ |
| 88 | intro j hj U hU e he hinv hmetric x hx hxU |
| 89 | have h := hbound j hj hU he hinv hmetric S ⟨hS.le, le_rfl⟩ x hx hxU |
| 90 | change ‖iteratedFDeriv ℝ j |
| 91 | ((L.closedMetric P E0 hS hSF hB hfull S).pullbackCoefficients e) x‖ ≤ G at h |
| 92 | rwa [L.closedMetric_terminal] at h |
| 93 | |
| 94 | /-- Uniform initial-chart ellipticity passes to the terminal metric with |
| 95 | strictly positive lower constant (Theorem 12.5, pp. 296-297). -/ |
| 96 | theorem metric_compactPullback_ellipticity |
| 97 | {K : Set StandardCapSpace} (hK : IsCompact K) : |
| 98 | ∃ a b : ℝ, 0 < a ∧ 0 ≤ b ∧ ∀ x ∈ K, |
| 99 | ∀ e : StandardCapSpace → StandardCapSpace, |
| 100 | (∀ u v : TangentSpace (𝓡 3) x, g0.metric.inner x u v = |
| 101 | g0.metric.inner (e x) (mfderiv (𝓡 3) (𝓡 3) e x u) |
| 102 | (mfderiv (𝓡 3) (𝓡 3) e x v)) → |
| 103 | ∀ v : StandardCapSpace, |
| 104 | a * ‖v‖ ^ 2 ≤ (L.metric P E0 hS hSF hB hfull).pullbackCoefficients e x v v ∧ |
| 105 | (L.metric P E0 hS hSF hB hfull).pullbackCoefficients e x v v ≤ b * ‖v‖ ^ 2 := by |
| 106 | obtain ⟨a, b, ha, hb, hbound⟩ := partialFlow_compactPullback_ellipticity P F hSF hB.le hfull hK |
| 107 | refine ⟨a, b, ha, hb, ?_⟩ |
| 108 | intro x hx e he v |
| 109 | have hlim := L.coefficients_apply_tendsto (e x) |
| 110 | (mfderiv (𝓡 3) (𝓡 3) e x v) (mfderiv (𝓡 3) (𝓡 3) e x v) |
| 111 | have hineq : ∀ᶠ t in 𝓝[<] S, |
| 112 | a * ‖v‖ ^ 2 ≤ (F.flow.metric t).pullbackCoefficients e x v v ∧ |
| 113 | (F.flow.metric t).pullbackCoefficients e x v v ≤ b * ‖v‖ ^ 2 := by |
| 114 | filter_upwards [Ico_mem_nhdsLT hS] with t ht |
| 115 | exact hbound t ht x hx e he v |
| 116 | exact ⟨ge_of_tendsto hlim (hineq.mono fun _ h => h.1), |
| 117 | le_of_tendsto hlim (hineq.mono fun _ h => h.2)⟩ |
| 118 | |
| 119 | end PoincareMT.M34.PartialFlowTerminalJets |