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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.SourceGeometry.CriticalBall.SourceCriticalBallBackwardLimit |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.Geometry.CoordinateCurvature |
| 4 | |
| 5 | /-! |
| 6 | # Actual curvature tensors of the included-time backward limit |
| 7 | |
| 8 | The retained mixed within jets restrict to spatial metric jets at every |
| 9 | included time. Their actual tensors converge in the same canonical chart, |
| 10 | including terminal time zero. Morgan--Tian Proposition 5.14 and Claim 10.11, |
| 11 | pp. 90-91 and 255; M28 derivation 78. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option maxSynthPendingDepth 12 |
| 17 | |
| 18 | open Set Filter PoincareMT.ChartDistance PoincareMT.SpacetimeBounds |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M28.CounterexampleNeckFamily.CriticalBallBackwardChartData |
| 24 | |
| 25 | variable {epsilon C A : ℝ} |
| 26 | {E : ∀ n : ℕ, SameTimeCounterexample.{u} epsilon C A |
| 27 | ((n : ℝ) + 1) ((n : ℝ) + 1)} |
| 28 | {H : CounterexampleNeckFamily E} {T : ∀ k, SourceTubeData (H.segment k)} |
| 29 | {A1 : ℝ} {hA1 : 0 < A1} {phi : ℕ → ℕ} |
| 30 | {G : RegularPointedMetricConvergence |
| 31 | (fun k => H.tubeCriticalMetric T A1 (phi k)) |
| 32 | (fun k => H.tubeCriticalBase T A1 hA1 (phi k))} |
| 33 | {q : G.limitCarrier.carrier} {a : ℝ} |
| 34 | (D : CriticalBallBackwardChartData H T A1 hA1 phi G q a) |
| 35 | |
| 36 | /-- The smaller actual source parametrization is smooth throughout its |
| 37 | open domain (Proposition 5.14; derivation 78). -/ |
| 38 | theorem limitParametrization_smooth (k : ℕ) : |
| 39 | ContMDiffOn (𝓡 3) (𝓡 3) ∞ (D.limitParametrization k) D.limitDomain := by |
| 40 | let := D.limitDomain_open.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 41 | exact contMDiffOn_chartParametrization (fun _ : Unit => D.limitDomain) |
| 42 | (fun _ => D.limitDomain_open) (D.limitNeckMap_localDiffeomorph k).contMDiff |
| 43 | |
| 44 | set_option maxHeartbeats 1000000 in |
| 45 | -- The germ identity retains the original dependent neck map. |
| 46 | /-- Restricting the canonical source map preserves its invertible |
| 47 | derivative at every interior point (Proposition 5.14; derivation 78). -/ |
| 48 | theorem limitParametrization_invertible (k : ℕ) {x : EuclideanSpace ℝ (Fin 3)} |
| 49 | (hx : x ∈ D.limitDomain) : |
| 50 | (mfderiv (𝓡 3) (𝓡 3) (D.limitParametrization k) x).IsInvertible := by |
| 51 | have heq : D.limitParametrization k =ᶠ[𝓝 x] D.parametrization k := |
| 52 | Filter.mem_of_superset (D.limitDomain_open.mem_nhds hx) (D.limitParametrization_eq k) |
| 53 | rw [heq.mfderiv_eq] |
| 54 | exact D.parametrization_invertible k (D.limitDomain_subset_domain hx) |
| 55 | |
| 56 | variable {D} |
| 57 | |
| 58 | set_option synthInstance.maxHeartbeats 200000 in |
| 59 | -- The source coefficient family retains the dependent original neck index. |
| 60 | set_option maxHeartbeats 1800000 in |
| 61 | -- Convert mixed within jets to the three actual spatial coefficient derivatives. |
| 62 | /-- All three spatial metric jets converge at every included time and |
| 63 | interior chart point, using the same extraction (derivation 78). -/ |
| 64 | theorem BackwardChartLimit.spatial_twoJets (L : BackwardChartLimit D) |
| 65 | (t : ℝ) (ht : t ∈ Icc (-(a / 8)) 0) {x : EuclideanSpace ℝ (Fin 3)} |
| 66 | (hx : x ∈ D.limitDomain) : |
| 67 | Tendsto (fun k => metricTwoJet |
| 68 | (((D.sourceFlow (L.subsequence k)).metric t).pullbackCoefficients |
| 69 | (D.limitParametrization (L.subsequence k))) x) atTop |
| 70 | (𝓝 (metricTwoJet (fun y => L.coefficients (t, y)) x)) := by |
| 71 | have hJ : UniqueDiffOn ℝ (Icc (-(a / 8)) 0) := |
| 72 | uniqueDiffOn_Icc (by linarith [D.scale_pos]) |
| 73 | have hs (k : ℕ) : ContDiffOn ℝ ∞ |
| 74 | (fun z : ℝ × EuclideanSpace ℝ (Fin 3) => |
| 75 | ((D.sourceFlow k).metric z.1).pullbackCoefficients (D.limitParametrization k) z.2) |
| 76 | (Icc (-(a / 8)) 0 ×ˢ D.limitDomain) := |
| 77 | (D.sourceFlow k).smooth.contDiffOn_spacetime_pullbackCoefficients_within |
| 78 | D.limitDomain_open (D.limitParametrization_smooth k) |
| 79 | apply tendsto_metricTwoJet_of_uniform_bilinear_jets (K := {x}) _ (mem_singleton x) |
| 80 | intro m _ |
| 81 | have hsub : {(t, x)} ⊆ Icc (-(a / 8)) 0 ×ˢ D.limitDomain := |
| 82 | singleton_subset_iff.mpr ⟨ht, hx⟩ |
| 83 | have h := (L.jets m {(t, x)} isCompact_singleton hsub).iteratedFDeriv_spatial_slice |
| 84 | hJ D.limitDomain_open hsub (Eventually.of_forall fun k => hs (L.subsequence k)) |
| 85 | L.coefficients_smooth (by exact_mod_cast (show (m : ℕ∞) ≤ ⊤ from le_top)) |
| 86 | apply (h.comp (fun y => (t, y))).mono |
| 87 | intro y hy |
| 88 | rcases mem_singleton_iff.mp hy with rfl |
| 89 | exact mem_singleton (t, y) |
| 90 | |
| 91 | set_option synthInstance.maxHeartbeats 200000 in |
| 92 | -- Source and limit tangent coordinates use different carrier universes. |
| 93 | set_option maxHeartbeats 2400000 in |
| 94 | -- Identify the limiting metric germ and the canonical inverse-chart derivative. |
| 95 | /-- The actual pulled-back source curvature tensors converge to the |
| 96 | actual backward-limit tensor, also at terminal time (derivation 78). -/ |
| 97 | theorem BackwardChartLimit.curvatureTensor_tendsto (L : BackwardChartLimit D) : |
| 98 | letI := D.limitDomain_open.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 99 | letI := D.limitDomain_open.isOpenEmbedding_subtypeVal.isManifold_singleton |
| 100 | (I := 𝓡 3) (n := ∞) |
| 101 | ∀ t ∈ Icc (-(a / 8)) 0, ∀ (x : D.limitDomain) (v w y z : EuclideanSpace ℝ (Fin 3)), |
| 102 | Tendsto (fun k => ((D.sourceFlow (L.subsequence k)).connection t).curvatureTensor |
| 103 | (D.limitParametrization (L.subsequence k) x) |
| 104 | (mfderiv (𝓡 3) (𝓡 3) (D.limitParametrization (L.subsequence k)) x v) |
| 105 | (mfderiv (𝓡 3) (𝓡 3) (D.limitParametrization (L.subsequence k)) x w) |
| 106 | (mfderiv (𝓡 3) (𝓡 3) (D.limitParametrization (L.subsequence k)) x y) |
| 107 | (mfderiv (𝓡 3) (𝓡 3) (D.limitParametrization (L.subsequence k)) x z)) atTop |
| 108 | (𝓝 ((L.flow.connection t).curvatureTensor x v w y z)) := by |
| 109 | let := D.limitDomain_open.isOpenEmbedding_subtypeVal.singletonChartedSpace |
| 110 | let := D.limitDomain_open.isOpenEmbedding_subtypeVal.isManifold_singleton |
| 111 | (I := 𝓡 3) (n := ∞) |
| 112 | intro t ht x v w y z |
| 113 | let c := extChartAt (𝓡 3) x |
| 114 | have hc : c.target = D.limitDomain := |
| 115 | canonical_extChartAt_target (fun _ : Unit => D.limitDomain) |
| 116 | (fun _ => D.limitDomain_open) () x |
| 117 | have hs : ContMDiffOn (𝓡 3) (𝓡 3) ∞ c.symm D.limitDomain := by |
| 118 | exact (contMDiffOn_extChartAt_symm x).mono (fun _ hp => hc.symm ▸ hp) |
| 119 | have hi (p) (hp : p ∈ D.limitDomain) : |
| 120 | (mfderiv (𝓡 3) (𝓡 3) c.symm p).IsInvertible := by |
| 121 | have hp' : p ∈ c.target := hc.symm ▸ hp |
| 122 | simpa only [ModelWithCorners.range_eq_univ, mfderivWithin_univ] using |
| 123 | isInvertible_mfderivWithin_extChartAt_symm hp' |
| 124 | have hnear : (L.flow.metric t).pullbackCoefficients c.symm =ᶠ[𝓝 (x.val)] |
| 125 | (fun p => L.coefficients (t, p)) := by |
| 126 | filter_upwards [D.limitDomain_open.mem_nhds x.property] with p hp |
| 127 | rw [RiemannianMetric.pullbackCoefficients_canonicalChart D.limitDomain |
| 128 | D.limitDomain_open (L.flow.metric t) x ⟨p, hp⟩] |
| 129 | ext u v |
| 130 | exact L.metric_coefficients t ht ⟨p, hp⟩ u v |
| 131 | have hj := L.spatial_twoJets t ht x.property |
| 132 | have hconv := tendsto_curvatureTensor_of_pullback_jets |
| 133 | (fun k => (D.sourceFlow (L.subsequence k)).connection t) (L.flow.connection t) |
| 134 | D.limitDomain_open x.property |
| 135 | (fun k => D.limitParametrization_smooth (L.subsequence k)) |
| 136 | (fun k _ hp => D.limitParametrization_invertible (L.subsequence k) hp) hs hi |
| 137 | (by simpa only [metricTwoJet, hnear.self_of_nhds] using hj.fst_nhds) |
| 138 | (by simpa only [metricTwoJet, hnear.fderiv_eq] using hj.snd_nhds.fst_nhds) |
| 139 | (by simpa only [metricTwoJet, hnear.fderiv.fderiv_eq] |
| 140 | using hj.snd_nhds.snd_nhds) v w y z |
| 141 | have hd := mfderivWithin_range_extChartAt_symm (I := 𝓡 3) (x := x) |
| 142 | rw [ModelWithCorners.range_eq_univ, mfderivWithin_univ] at hd |
| 143 | change mfderiv (𝓡 3) (𝓡 3) c.symm (x.val) = ContinuousLinearMap.id ℝ _ at hd |
| 144 | have hx : c.symm x.val = x := (extChartAt (𝓡 3) x).left_inv (mem_extChartAt_source x) |
| 145 | have hvalue : (L.flow.connection t).curvatureTensor (c.symm x.val) |
| 146 | (mfderiv (𝓡 3) (𝓡 3) c.symm x.val v) (mfderiv (𝓡 3) (𝓡 3) c.symm x.val w) |
| 147 | (mfderiv (𝓡 3) (𝓡 3) c.symm x.val y) (mfderiv (𝓡 3) (𝓡 3) c.symm x.val z) = |
| 148 | (L.flow.connection t).curvatureTensor x v w y z := by |
| 149 | rw [hd] |
| 150 | change (L.flow.connection t).curvatureTensor (c.symm x.val) v w y z = _ |
| 151 | exact congrArg (fun p : D.limitDomain => (L.flow.connection t).curvatureTensor p |
| 152 | (show EuclideanSpace ℝ (Fin 3) from v) w y z) hx |
| 153 | simpa only [hvalue] using hconv |
| 154 | |
| 155 | end PoincareMT.M28.CounterexampleNeckFamily.CriticalBallBackwardChartData |