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.Coordinates.Coefficients |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.Flow.SelfSimilar.Variation |
| 3 | |
| 4 | /-! |
| 5 | # Evolving metrics pulled back by a time-dependent negative gradient |
| 6 | |
| 7 | The derivative of the actual pullback combines the Ricci-flow metric |
| 8 | derivative with the negative gradient Lie derivative, giving minus twice |
| 9 | Ricci curvature minus twice the Hessian. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option maxSynthPendingDepth 8 |
| 15 | set_option maxHeartbeats 1000000 |
| 16 | |
| 17 | open Set Filter VectorField |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.RicciFlow |
| 21 | |
| 22 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 24 | |
| 25 | private theorem chartCoefficients_apply_chartDifferential |
| 26 | (g : RiemannianMetric n M) (a : M) {y : M} |
| 27 | (hy : y ∈ (extChartAt (𝓡 n) a).source) (v w : TangentSpace (𝓡 n) y) : |
| 28 | g.pullbackCoefficients (extChartAt (𝓡 n) a).symm (extChartAt (𝓡 n) a y) |
| 29 | (mfderiv (𝓡 n) (𝓡 n) (extChartAt (𝓡 n) a) y v) |
| 30 | (mfderiv (𝓡 n) (𝓡 n) (extChartAt (𝓡 n) a) y w) = g.inner y v w := by |
| 31 | have hid := mfderivWithin_extChartAt_symm_comp_mfderiv_extChartAt' (I := 𝓡 n) hy |
| 32 | simp only [ModelWithCorners.range_eq_univ, mfderivWithin_univ] at hid |
| 33 | have hidv := congrArg (fun L => L v) hid |
| 34 | have hidw := congrArg (fun L => L w) hid |
| 35 | simp only [ContinuousLinearMap.comp_apply] at hidv hidw |
| 36 | change g.inner ((extChartAt (𝓡 n) a).symm (extChartAt (𝓡 n) a y)) |
| 37 | (mfderiv (𝓡 n) (𝓡 n) (extChartAt (𝓡 n) a).symm (extChartAt (𝓡 n) a y) |
| 38 | (mfderiv (𝓡 n) (𝓡 n) (extChartAt (𝓡 n) a) y v)) |
| 39 | (mfderiv (𝓡 n) (𝓡 n) (extChartAt (𝓡 n) a).symm (extChartAt (𝓡 n) a y) |
| 40 | (mfderiv (𝓡 n) (𝓡 n) (extChartAt (𝓡 n) a) y w)) = _ |
| 41 | rw [hidv, hidw] |
| 42 | exact congrArg (fun z => g.inner z v w) ((extChartAt (𝓡 n) a).left_inv hy) |
| 43 | |
| 44 | private theorem metric_pullback_in_charts |
| 45 | (g : RiemannianMetric n M) {Ψ : M → M} {x : M} |
| 46 | (hΨ : ContMDiffAt (𝓡 n) (𝓡 n) ∞ Ψ x) |
| 47 | (a : M) (ha : Ψ x ∈ (extChartAt (𝓡 n) a).source) |
| 48 | (v w : TangentSpace (𝓡 n) x) : |
| 49 | let c := extChartAt (𝓡 n) a |
| 50 | let d := extChartAt (𝓡 n) x |
| 51 | g.pullbackCoefficients c.symm (c (Ψ x)) |
| 52 | (fderiv ℝ (c ∘ Ψ ∘ d.symm) (d x) v) |
| 53 | (fderiv ℝ (c ∘ Ψ ∘ d.symm) (d x) w) = |
| 54 | g.inner (Ψ x) (mfderiv (𝓡 n) (𝓡 n) Ψ x v) (mfderiv (𝓡 n) (𝓡 n) Ψ x w) := by |
| 55 | let c := extChartAt (𝓡 n) a |
| 56 | let d := extChartAt (𝓡 n) x |
| 57 | have hc : MDifferentiableAt (𝓡 n) (𝓡 n) c (Ψ x) := |
| 58 | mdifferentiableAt_extChartAt (by simpa only [extChartAt_source] using ha) |
| 59 | have hd : MDifferentiableAt (𝓡 n) (𝓡 n) d.symm (d x) := |
| 60 | ((contMDiffWithinAt_extChartAt_symm_target (I := 𝓡 n) (n := ∞) x |
| 61 | (mem_extChartAt_target x)).contMDiffAt |
| 62 | (extChartAt_target_mem_nhds x)).mdifferentiableAt (by simp) |
| 63 | have hdid : mfderiv (𝓡 n) (𝓡 n) d.symm (d x) = ContinuousLinearMap.id ℝ _ := by |
| 64 | simpa only [ModelWithCorners.range_eq_univ, mfderivWithin_univ] using |
| 65 | (mfderivWithin_range_extChartAt_symm (I := 𝓡 n) (x := x)) |
| 66 | have hΨd : MDifferentiableAt (𝓡 n) (𝓡 n) Ψ (d.symm (d x)) := by |
| 67 | simpa only [d, extChartAt_to_inv] using hΨ.mdifferentiableAt (by simp) |
| 68 | have hcd : MDifferentiableAt (𝓡 n) (𝓡 n) c (Ψ (d.symm (d x))) := by |
| 69 | simpa only [d, extChartAt_to_inv] using hc |
| 70 | have hderiv := mfderiv_comp (d x) hcd (hΨd.comp (d x) hd) |
| 71 | rw [mfderiv_comp (d x) hΨd hd, hdid, ContinuousLinearMap.comp_id] at hderiv |
| 72 | rw [mfderiv_eq_fderiv] at hderiv |
| 73 | change fderiv ℝ (c ∘ Ψ ∘ d.symm) (d x) = |
| 74 | (mfderiv (𝓡 n) (𝓡 n) c (Ψ (d.symm (d x)))).comp |
| 75 | (mfderiv (𝓡 n) (𝓡 n) Ψ (d.symm (d x))) at hderiv |
| 76 | rw [show d.symm (d x) = x from extChartAt_to_inv x] at hderiv |
| 77 | dsimp only |
| 78 | rw [hderiv] |
| 79 | exact chartCoefficients_apply_chartDifferential g a ha _ _ |
| 80 | |
| 81 | variable {J : Set ℝ} (F : RicciFlow n M J) |
| 82 | |
| 83 | /-- Pulling the actual evolving metric back by a supplied negative-gradient |
| 84 | family differentiates to minus twice its pulled-back Ricci tensor and Hessian. -/ |
| 85 | theorem hasDerivAt_negativeGradient_pullback_metric |
| 86 | (hJ : IsOpen J) {f : ℝ × M → ℝ} {Φ : ℝ → M → M} |
| 87 | (hf : ContMDiffOn (𝓘(ℝ, ℝ).prod (𝓡 n)) 𝓘(ℝ, ℝ) ∞ f (J ×ˢ univ)) |
| 88 | (hs : ContMDiffOn (𝓘(ℝ, ℝ).prod (𝓡 n)) (𝓡 n) ∞ |
| 89 | (fun z : ℝ × M => Φ z.1 z.2) (J ×ˢ univ)) |
| 90 | (hΦ : ∀ s ∈ J, ∀ y, HasMFDerivAt 𝓘(ℝ, ℝ) (𝓡 n) (fun r => Φ r y) s |
| 91 | ((1 : ℝ →L[ℝ] ℝ).smulRight |
| 92 | (-((F.connection s).gradient (fun z => f (s, z)) (Φ s y))))) |
| 93 | {t : ℝ} (ht : t ∈ J) (x : M) (v w : TangentSpace (𝓡 n) x) : |
| 94 | HasDerivAt (fun s => (F.metric s).inner (Φ s x) |
| 95 | (mfderiv (𝓡 n) (𝓡 n) (Φ s) x v) (mfderiv (𝓡 n) (𝓡 n) (Φ s) x w)) |
| 96 | (-2 * (F.connection t).ricci (Φ t x) |
| 97 | (mfderiv (𝓡 n) (𝓡 n) (Φ t) x v) (mfderiv (𝓡 n) (𝓡 n) (Φ t) x w) - |
| 98 | 2 * (F.connection t).hessian (fun y => f (t, y)) (Φ t x) |
| 99 | (mfderiv (𝓡 n) (𝓡 n) (Φ t) x v) (mfderiv (𝓡 n) (𝓡 n) (Φ t) x w)) t := by |
| 100 | let c := extChartAt (𝓡 n) (Φ t x) |
| 101 | let d := extChartAt (𝓡 n) x |
| 102 | let q : ℝ × EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n) := |
| 103 | fun z => c (Φ z.1 (d.symm z.2)) |
| 104 | let G : EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n) := |
| 105 | mpullback (𝓡 n) (𝓡 n) c.symm ((F.connection t).gradient (fun y => f (t, y))) |
| 106 | let B : ℝ × EuclideanSpace ℝ (Fin n) → |
| 107 | EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ := |
| 108 | fun z => (F.metric z.1).pullbackCoefficients c.symm z.2 |
| 109 | have hsAt {s : ℝ} (hsJ : s ∈ J) (y : M) : |
| 110 | ContMDiffAt (𝓘(ℝ, ℝ).prod (𝓡 n)) (𝓡 n) ∞ |
| 111 | (fun z : ℝ × M => Φ z.1 z.2) (s, y) := |
| 112 | hs.contMDiffAt ((hJ.prod isOpen_univ).mem_nhds ⟨hsJ, mem_univ y⟩) |
| 113 | have hF {s : ℝ} (hsJ : s ∈ J) : ContMDiff (𝓡 n) (𝓡 n) ∞ (Φ s) := |
| 114 | fun y => (hsAt hsJ y).comp y (contMDiffAt_const.prodMk contMDiffAt_id) |
| 115 | have hft : ContMDiff (𝓡 n) 𝓘(ℝ, ℝ) ∞ (fun y => f (t, y)) := |
| 116 | fun y => (hf.contMDiffAt ((hJ.prod isOpen_univ).mem_nhds ⟨ht, mem_univ y⟩)).comp |
| 117 | y (contMDiffAt_const.prodMk contMDiffAt_id) |
| 118 | have hdx : d.symm (d x) = x := extChartAt_to_inv x |
| 119 | have hqt : q (t, d x) = c (Φ t x) := by simp only [q, hdx] |
| 120 | have hct : q (t, d x) ∈ c.target := by rw [hqt]; exact mem_extChartAt_target _ |
| 121 | have hd : ContMDiffAt (𝓡 n) (𝓡 n) ∞ d.symm (d x) := |
| 122 | (contMDiffWithinAt_extChartAt_symm_target (I := 𝓡 n) (n := ∞) x |
| 123 | (mem_extChartAt_target x)).contMDiffAt (extChartAt_target_mem_nhds x) |
| 124 | have hfamily : ContMDiffAt 𝓘(ℝ, ℝ × EuclideanSpace ℝ (Fin n)) (𝓡 n) ∞ |
| 125 | (fun z : ℝ × EuclideanSpace ℝ (Fin n) => Φ z.1 (d.symm z.2)) (t, d x) := by |
| 126 | have hp : ContMDiffAt 𝓘(ℝ, ℝ × EuclideanSpace ℝ (Fin n)) |
| 127 | (𝓘(ℝ, ℝ).prod (𝓡 n)) ∞ |
| 128 | (fun z : ℝ × EuclideanSpace ℝ (Fin n) => (z.1, d.symm z.2)) (t, d x) := |
| 129 | (contMDiffAt_iff_contDiffAt.mpr contDiffAt_fst).prodMk |
| 130 | (hd.comp (t, d x) (contMDiffAt_iff_contDiffAt.mpr contDiffAt_snd)) |
| 131 | exact (hsAt ht _).comp (t, d x) hp |
| 132 | have hc : ContMDiffAt (𝓡 n) (𝓡 n) ∞ c (Φ t (d.symm (d x))) := by |
| 133 | rw [hdx] |
| 134 | exact contMDiffAt_extChartAt' (mem_chart_source _ _) |
| 135 | have hq : ContDiffAt ℝ ∞ q (t, d x) := |
| 136 | contMDiffAt_iff_contDiffAt.mp (hc.comp (t, d x) hfamily) |
| 137 | have hG : DifferentiableAt ℝ G (q (t, d x)) := |
| 138 | (RiemannianMetric.contDiffAt_mpullback_gradient hft (Φ t x) hct).differentiableAt (by simp) |
| 139 | have hB : DifferentiableAt ℝ B (t, q (t, d x)) := |
| 140 | ((F.contDiffOn_pullbackCoefficients hJ (isOpen_extChartAt_target (Φ t x)) |
| 141 | (contMDiffOn_extChartAt_symm (I := 𝓡 n) (Φ t x))).contDiffAt |
| 142 | ((hJ.prod (isOpen_extChartAt_target (Φ t x))).mem_nhds ⟨ht, hct⟩)).differentiableAt (by simp) |
| 143 | have hout : ∀ᶠ y in 𝓝 (d x), Φ t (d.symm y) ∈ c.source := |
| 144 | ((hF ht _).comp (d x) hd).continuousAt.preimage_mem_nhds |
| 145 | ((isOpen_extChartAt_source (I := 𝓡 n) (Φ t x)).mem_nhds |
| 146 | (by simpa only [Function.comp_apply, hdx] using mem_extChartAt_source (I := 𝓡 n) (Φ t x))) |
| 147 | have htime : ∀ᶠ y in 𝓝 (d x), |
| 148 | HasDerivAt (fun s => q (s, y)) (-G (q (t, y))) t := by |
| 149 | filter_upwards [hout] with y hy |
| 150 | have hc' := ((contMDiffAt_extChartAt' (I := 𝓡 n) (n := ∞) |
| 151 | (by simpa only [c, extChartAt_source] using hy)).mdifferentiableAt (by simp)).hasMFDerivAt |
| 152 | have hh := hc'.comp t (hΦ t ht (d.symm y)) |
| 153 | have hgrad := RiemannianMetric.mpullback_gradient_eq_chart_gradient |
| 154 | (D := F.connection t) (f := fun z => f (t, z)) (Φ t x) (c.map_source hy) |
| 155 | change G (c (Φ t (d.symm y))) = |
| 156 | mfderiv (𝓡 n) (𝓡 n) c (c.symm (c (Φ t (d.symm y)))) |
| 157 | ((F.connection t).gradient (fun z => f (t, z)) |
| 158 | (c.symm (c (Φ t (d.symm y))))) at hgrad |
| 159 | rw [c.left_inv hy] at hgrad |
| 160 | change HasDerivAt (fun s => c (Φ s (d.symm y))) (-G (c (Φ t (d.symm y)))) t |
| 161 | rw [hgrad, hasDerivAt_iff_hasFDerivAt, ← hasMFDerivAt_iff_hasFDerivAt] |
| 162 | apply hh.congr_mfderiv |
| 163 | ext |
| 164 | change (mfderiv (𝓡 n) (𝓡 n) c (Φ t (d.symm y))) |
| 165 | ((1 : ℝ) • -((F.connection t).gradient (fun z => f (t, z)) (Φ t (d.symm y)))) = |
| 166 | (1 : ℝ) • -((mfderiv (𝓡 n) (𝓡 n) c (Φ t (d.symm y))) |
| 167 | ((F.connection t).gradient (fun z => f (t, z)) (Φ t (d.symm y)))) |
| 168 | simp only [one_smul, map_neg] |
| 169 | have hqx : DifferentiableAt ℝ (fun y => q (t, y)) (d x) := |
| 170 | (hq.differentiableAt (by simp)).comp (d x) |
| 171 | ((differentiableAt_const t).prodMk differentiableAt_id) |
| 172 | have hcomp : fderiv ℝ (fun y => -G (q (t, y))) (d x) = |
| 173 | -((fderiv ℝ G (q (t, d x))).comp (fderiv ℝ (fun y => q (t, y)) (d x))) := by |
| 174 | rw [fderiv_fun_neg] |
| 175 | congr 1 |
| 176 | simpa only [Function.comp_def] using (hG.hasFDerivAt.comp (d x) hqx.hasFDerivAt).fderiv |
| 177 | have hv := CoordinateExponential.hasDerivAt_variation hq htime v |
| 178 | have hw := CoordinateExponential.hasDerivAt_variation hq htime w |
| 179 | rw [hcomp] at hv hw |
| 180 | have hBq := hB.hasFDerivAt.comp_hasDerivAt t |
| 181 | ((hasDerivAt_id t).prodMk htime.self_of_nhds) |
| 182 | have hm := (hBq.clm_apply hv).clm_apply hw |
| 183 | have hspace := (hB.hasFDerivAt.comp (q (t, d x)) |
| 184 | ((hasFDerivAt_const (c := t) _).prodMk (hasFDerivAt_id _))).fderiv |
| 185 | have hmetric := RiemannianMetric.coordinate_gradient_metric_derivative |
| 186 | (D := F.connection t) hft (Φ t x) hct |
| 187 | (fderiv ℝ (fun y => q (t, y)) (d x) v) |
| 188 | (fderiv ℝ (fun y => q (t, y)) (d x) w) |
| 189 | have hpoint : c.symm (q (t, d x)) = Φ t x := by rw [hqt]; exact extChartAt_to_inv _ |
| 190 | have hderiv : (mfderiv (𝓡 n) (𝓡 n) c.symm (q (t, d x))).comp |
| 191 | (fderiv ℝ (fun y => q (t, y)) (d x)) = mfderiv (𝓡 n) (𝓡 n) (Φ t) x := by |
| 192 | have hcancel : c.symm ∘ (fun y => q (t, y)) =ᶠ[𝓝 (d x)] Φ t ∘ d.symm := by |
| 193 | filter_upwards [hout] with y hy |
| 194 | exact c.left_inv hy |
| 195 | have hcs := (contMDiffWithinAt_extChartAt_symm_target (I := 𝓡 n) |
| 196 | (n := ∞) (Φ t x) hct).contMDiffAt (extChartAt_target_mem_nhds' hct) |
| 197 | have heq := hcancel.mfderiv_eq (I := 𝓡 n) (I' := 𝓡 n) |
| 198 | rw [mfderiv_comp (d x) (hcs.mdifferentiableAt (by simp)) |
| 199 | hqx.mdifferentiableAt, mfderiv_eq_fderiv] at heq |
| 200 | rw [mfderiv_comp (d x) ((hF ht).mdifferentiable (by simp) _) |
| 201 | (hd.mdifferentiableAt (by simp))] at heq |
| 202 | have hdi : mfderiv (𝓡 n) (𝓡 n) d.symm (d x) = ContinuousLinearMap.id ℝ _ := by |
| 203 | simpa only [ModelWithCorners.range_eq_univ, mfderivWithin_univ] using |
| 204 | (mfderivWithin_range_extChartAt_symm (I := 𝓡 n) (x := x)) |
| 205 | rw [hdi, ContinuousLinearMap.comp_id] at heq |
| 206 | change (mfderiv (𝓡 n) (𝓡 n) c.symm (q (t, d x)) : |
| 207 | EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n)).comp |
| 208 | (fderiv ℝ (fun y => q (t, y)) (d x)) = |
| 209 | (mfderiv (𝓡 n) (𝓡 n) (Φ t) (d.symm (d x)) : |
| 210 | EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n)) at heq |
| 211 | rw [hdx] at heq |
| 212 | exact heq |
| 213 | have hderivv := congrArg (fun L => L v) hderiv |
| 214 | have hderivw := congrArg (fun L => L w) hderiv |
| 215 | simp only [ContinuousLinearMap.comp_apply] at hderivv hderivw |
| 216 | have hBt := hB.hasFDerivAt.comp_hasDerivAt t |
| 217 | ((hasDerivAt_id t).prodMk (hasDerivAt_const t (q (t, d x)))) |
| 218 | have hBtvw := (hBt.clm_apply (hasDerivAt_const t |
| 219 | (fderiv ℝ (fun y => q (t, y)) (d x) v))).clm_apply |
| 220 | (hasDerivAt_const t (fderiv ℝ (fun y => q (t, y)) (d x) w)) |
| 221 | have hRic := ((F.equation t ht (c.symm (q (t, d x))) |
| 222 | (mfderiv (𝓡 n) (𝓡 n) c.symm (q (t, d x)) |
| 223 | (fderiv ℝ (fun y => q (t, y)) (d x) v)) |
| 224 | (mfderiv (𝓡 n) (𝓡 n) c.symm (q (t, d x)) |
| 225 | (fderiv ℝ (fun y => q (t, y)) (d x) w))).hasDerivAt (hJ.mem_nhds ht)).unique hBtvw |
| 226 | simp only [map_zero, add_zero] at hRic |
| 227 | erw [hpoint, hderivv, hderivw] at hRic |
| 228 | let H : M → EuclideanSpace ℝ (Fin n) → EuclideanSpace ℝ (Fin n) → ℝ := |
| 229 | (F.connection t).hessian (fun y => f (t, y)) |
| 230 | change fderiv ℝ (fun y => B (t, y)) (q (t, d x)) (G (q (t, d x))) |
| 231 | (fderiv ℝ (fun y => q (t, y)) (d x) v) |
| 232 | (fderiv ℝ (fun y => q (t, y)) (d x) w) + |
| 233 | B (t, q (t, d x)) (fderiv ℝ G (q (t, d x)) |
| 234 | (fderiv ℝ (fun y => q (t, y)) (d x) v)) |
| 235 | (fderiv ℝ (fun y => q (t, y)) (d x) w) + |
| 236 | B (t, q (t, d x)) (fderiv ℝ (fun y => q (t, y)) (d x) v) |
| 237 | (fderiv ℝ G (q (t, d x)) (fderiv ℝ (fun y => q (t, y)) (d x) w)) = |
| 238 | 2 * H (c.symm (q (t, d x))) |
| 239 | (mfderiv (𝓡 n) (𝓡 n) c.symm (q (t, d x)) |
| 240 | (fderiv ℝ (fun y => q (t, y)) (d x) v)) |
| 241 | (mfderiv (𝓡 n) (𝓡 n) c.symm (q (t, d x)) |
| 242 | (fderiv ℝ (fun y => q (t, y)) (d x) w)) at hmetric |
| 243 | erw [hpoint, hderivv, hderivw] at hmetric |
| 244 | have hspace' := congrArg (fun L => L (G (q (t, d x)))) hspace |
| 245 | simp only [ContinuousLinearMap.comp_apply, ContinuousLinearMap.prod_apply, |
| 246 | zero_apply, ContinuousLinearMap.id_apply] at hspace' |
| 247 | have hsplit : ((1 : ℝ), -G (q (t, d x))) = |
| 248 | (1, (0 : EuclideanSpace ℝ (Fin n))) - (0, G (q (t, d x))) := by simp |
| 249 | have hm' := hm.congr_deriv (show _ = |
| 250 | -2 * (F.connection t).ricci (Φ t x) |
| 251 | (mfderiv (𝓡 n) (𝓡 n) (Φ t) x v) (mfderiv (𝓡 n) (𝓡 n) (Φ t) x w) - |
| 252 | 2 * (F.connection t).hessian (fun y => f (t, y)) (Φ t x) |
| 253 | (mfderiv (𝓡 n) (𝓡 n) (Φ t) x v) (mfderiv (𝓡 n) (𝓡 n) (Φ t) x w) from by |
| 254 | simp only [ContinuousLinearMap.comp_apply, neg_apply, map_neg, add_apply] |
| 255 | erw [hsplit, map_sub] |
| 256 | simp only [sub_apply] |
| 257 | erw [← hspace'] |
| 258 | dsimp only [H, Function.comp_def, id_eq] at hmetric ⊢ |
| 259 | linear_combination -hRic - hmetric) |
| 260 | apply hm'.congr_of_eventuallyEq |
| 261 | have htx : ContinuousAt (fun s => Φ s x) t := by |
| 262 | have hi : ContinuousAt (fun s : ℝ => (s, x)) t := |
| 263 | continuousAt_id.prodMk continuousAt_const |
| 264 | have h := Filter.Tendsto.comp (hsAt ht x).continuousAt hi |
| 265 | exact h |
| 266 | filter_upwards [hJ.mem_nhds ht, htx.preimage_mem_nhds |
| 267 | ((isOpen_extChartAt_source (I := 𝓡 n) (Φ t x)).mem_nhds |
| 268 | (mem_extChartAt_source _))] with s hsJ hsx |
| 269 | simpa +instances only [q, B, c, d, Function.comp_def, extChartAt_to_inv, id_eq] using |
| 270 | (metric_pullback_in_charts (F.metric s) (hF hsJ x) (Φ t x) hsx v w).symm |
| 271 | |
| 272 | end PoincareMT.RicciFlow |