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.ReducedGeometry.ReducedLength.Minimum.Variational.Recovery.Primitive |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Minimum.Variational.ActionLowerBound |
| 3 | |
| 4 | /-! |
| 5 | # Chart recovery and action convergence |
| 6 | |
| 7 | Weak chart primitives are recovered inside a compact chart core, lifted through |
| 8 | the inverse chart, and compared with the finite L-action by strong L2 |
| 9 | convergence. The construction has an explicit zero-length branch. |
| 10 | |
| 11 | Adapted from Mapher `Proofs/M08/PathRecovery.lean`, commit |
| 12 | `49331b7d7ecad38f53e4300c3b35d6a84b2cc648`. Scalar regularity is stated as |
| 13 | continuity of the literal potential, without any curvature-theory service. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open MeasureTheory Set Filter Topology |
| 20 | open scoped Manifold ContDiff Bundle intervalIntegral |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.ReducedLengthMinimum.Variational |
| 25 | |
| 26 | set_option maxHeartbeats 800000 in |
| 27 | set_option synthInstance.maxHeartbeats 200000 in |
| 28 | theorem chart_density_integrable {A E : Type*} [MeasurableSpace A] |
| 29 | [NormedAddCommGroup E] [NormedSpace ℝ E] {μ : Measure A} |
| 30 | (B : A → E →L[ℝ] E →L[ℝ] ℝ) (hB : MemLp B (⊤ : ENNReal) μ) |
| 31 | (v : Lp E 2 μ) : Integrable (fun s ↦ B s (v s) (v s)) μ := by |
| 32 | have hBv : MemLp (fun s ↦ B s (v s)) 2 μ := |
| 33 | by simpa only [ContinuousLinearMap.id_apply] using |
| 34 | (ContinuousLinearMap.memLp_of_bilin (𝕜 := ℝ) (E := E →L[ℝ] E →L[ℝ] ℝ) (F := E) |
| 35 | (G := E →L[ℝ] ℝ) 2 (ContinuousLinearMap.id ℝ (E →L[ℝ] E →L[ℝ] ℝ)) |
| 36 | hB (Lp.memLp v)) |
| 37 | exact memLp_one_iff_integrable.mp |
| 38 | (ContinuousLinearMap.memLp_of_bilin (𝕜 := ℝ) (E := E →L[ℝ] ℝ) (F := E) (G := ℝ) |
| 39 | 1 (ContinuousLinearMap.id ℝ (E →L[ℝ] ℝ)) hBv (Lp.memLp v)) |
| 40 | |
| 41 | theorem quadratic_form_tendsto {H : Type*} [NormedAddCommGroup H] [NormedSpace ℝ H] |
| 42 | (Qk : ℕ → H →L[ℝ] H →L[ℝ] ℝ) (Q : H →L[ℝ] H →L[ℝ] ℝ) |
| 43 | (v : ℕ → H) (w : H) (hQ : Tendsto Qk atTop (𝓝 Q)) (hv : Tendsto v atTop (𝓝 w)) : |
| 44 | Tendsto (fun k ↦ Qk k (v k) (v k)) atTop (𝓝 (Q w w)) := by |
| 45 | have heval : Continuous (fun z : (H →L[ℝ] H →L[ℝ] ℝ) × H ↦ z.1 z.2 z.2) := |
| 46 | (continuous_fst.clm_apply continuous_snd).clm_apply continuous_snd |
| 47 | exact (heval.tendsto (Q, w)).comp (hQ.prodMk_nhds hv) |
| 48 | |
| 49 | variable {n : ℕ} {M : Type u} [MetricSpace M] |
| 50 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 51 | |
| 52 | theorem smooth_chart_recovery_of_lt {a b : ℝ} (hab : a < b) (x : M) |
| 53 | (γ : ℝ → M) (hγ : ContinuousOn γ (Icc a b)) |
| 54 | (hsrc : MapsTo γ (Icc a b) (chartAt (EuclideanSpace ℝ (Fin n)) x).source) |
| 55 | (w : IntervalL2 (EuclideanSpace ℝ (Fin n)) a b) |
| 56 | (hprimitive : ∀ s ∈ Icc a b, |
| 57 | extChartAt (𝓡 n) x (γ s) = extChartAt (𝓡 n) x (γ a) + ∫ r in a..s, w r) : |
| 58 | ∃ (α : ℕ → ℝ → M) (d : ℕ → ℝ → EuclideanSpace ℝ (Fin n)) |
| 59 | (hdLp : ∀ k, MemLp (d k) 2 (volume.restrict (Icc a b))) (K : Set M), |
| 60 | IsCompact K ∧ K ⊆ (chartAt (EuclideanSpace ℝ (Fin n)) x).source ∧ |
| 61 | MapsTo γ (Icc a b) K ∧ |
| 62 | (∀ k, ContMDiff (𝓘(ℝ, ℝ)) (𝓡 n) ∞ (α k) ∧ |
| 63 | α k a = γ a ∧ α k b = γ b ∧ |
| 64 | (α k =ᶠ[𝓝 a] fun _ ↦ γ a) ∧ (α k =ᶠ[𝓝 b] fun _ ↦ γ b) ∧ |
| 65 | (∀ s, s ≤ a → α k s = γ a) ∧ (∀ s, b ≤ s → α k s = γ b) ∧ |
| 66 | MapsTo (α k) (Icc a b) K ∧ |
| 67 | ∀ s, HasDerivAt ((extChartAt (𝓡 n) x) ∘ α k) (d k s) s) ∧ |
| 68 | TendstoUniformlyOn α γ atTop (Icc a b) ∧ |
| 69 | Tendsto (fun k ↦ (hdLp k).toLp (d k)) atTop (𝓝 w) := by |
| 70 | classical |
| 71 | let e := extChartAt (𝓡 n) x |
| 72 | let u : ℝ → EuclideanSpace ℝ (Fin n) := e ∘ γ |
| 73 | have hsrc' : MapsTo γ (Icc a b) e.source := by |
| 74 | simpa only [e, extChartAt_source] using hsrc |
| 75 | have hu : ContinuousOn u (Icc a b) := |
| 76 | (continuousOn_extChartAt (I := 𝓡 n) x).comp hγ hsrc' |
| 77 | have hutarget : u '' Icc a b ⊆ e.target := by |
| 78 | rintro z ⟨s, hs, rfl⟩ |
| 79 | exact e.map_source (hsrc' hs) |
| 80 | obtain ⟨C, hC, huC, hCtarget⟩ := exists_compact_between |
| 81 | (isCompact_Icc.image_of_continuousOn hu) (isOpen_extChartAt_target (I := 𝓡 n) x) hutarget |
| 82 | have huC' : MapsTo u (Icc a b) C := |
| 83 | fun s hs ↦ interior_subset (huC (mem_image_of_mem u hs)) |
| 84 | obtain ⟨f, d, hdLp, hf, hunif, hdlim⟩ := |
| 85 | intervalL2_smooth_primitive_sequence hab u w hprimitive |
| 86 | obtain ⟨δ, hδ, hmargin⟩ := (isCompact_Icc.image_of_continuousOn hu).exists_cthickening_subset_open |
| 87 | isOpen_interior huC |
| 88 | have htail : ∀ᶠ k in atTop, MapsTo (f k) (Icc a b) C := by |
| 89 | filter_upwards [Metric.tendstoUniformlyOn_iff.mp hunif δ hδ] with k hk s hs |
| 90 | apply interior_subset (hmargin ?_) |
| 91 | exact Metric.mem_cthickening_of_dist_le _ (u s) _ _ |
| 92 | (mem_image_of_mem u hs) (by simpa only [dist_comm] using (hk s hs).le) |
| 93 | obtain ⟨N, hN⟩ := eventually_atTop.mp htail |
| 94 | have hCglobal (k : ℕ) (s : ℝ) : f (k + N) s ∈ C := by |
| 95 | by_cases hsa : s < a |
| 96 | · rw [(hf (k + N)).2.2.2.2.2.2.1 s hsa.le] |
| 97 | exact huC' ⟨le_rfl, hab.le⟩ |
| 98 | by_cases hbs : b < s |
| 99 | · rw [(hf (k + N)).2.2.2.2.2.2.2 s hbs.le] |
| 100 | exact huC' ⟨hab.le, le_rfl⟩ |
| 101 | exact hN (k + N) (Nat.le_add_left N k) ⟨le_of_not_gt hsa, le_of_not_gt hbs⟩ |
| 102 | let α : ℕ → ℝ → M := fun k ↦ e.symm ∘ f (k + N) |
| 103 | let K := e.symm '' C |
| 104 | have hKs : K ⊆ (chartAt (EuclideanSpace ℝ (Fin n)) x).source := by |
| 105 | rintro z ⟨y, hy, rfl⟩ |
| 106 | simpa only [e, extChartAt_source] using e.map_target (hCtarget hy) |
| 107 | have hK : IsCompact K := hC.image_of_continuousOn |
| 108 | ((continuousOn_extChartAt_symm (I := 𝓡 n) x).mono hCtarget) |
| 109 | have hγK : MapsTo γ (Icc a b) K := by |
| 110 | intro s hs |
| 111 | exact ⟨u s, huC' hs, e.left_inv (hsrc' hs)⟩ |
| 112 | have heq (k : ℕ) : e ∘ α k = f (k + N) := by |
| 113 | funext s |
| 114 | exact e.right_inv (hCtarget (hCglobal k s)) |
| 115 | have hα (k : ℕ) : ContMDiff (𝓘(ℝ, ℝ)) (𝓡 n) ∞ (α k) := by |
| 116 | rw [← contMDiffOn_univ] |
| 117 | exact (contMDiffOn_extChartAt_symm (I := 𝓡 n) x).comp |
| 118 | (hf (k + N)).1.contMDiff.contMDiffOn (fun s _ ↦ hCtarget (hCglobal k s)) |
| 119 | have hαa (k : ℕ) : α k a = γ a := by |
| 120 | change e.symm (f (k + N) a) = γ a |
| 121 | rw [(hf (k + N)).2.1] |
| 122 | exact e.left_inv (hsrc' ⟨le_rfl, hab.le⟩) |
| 123 | have hαb (k : ℕ) : α k b = γ b := by |
| 124 | change e.symm (f (k + N) b) = γ b |
| 125 | rw [(hf (k + N)).2.2.1] |
| 126 | exact e.left_inv (hsrc' ⟨hab.le, le_rfl⟩) |
| 127 | have hshift : StrictMono (fun k : ℕ ↦ k + N) := fun _ _ h ↦ Nat.add_lt_add_right h N |
| 128 | have hfunif : TendstoUniformlyOn (fun k ↦ f (k + N)) u atTop (Icc a b) := by |
| 129 | intro U hU |
| 130 | exact hshift.tendsto_atTop.eventually (hunif U hU) |
| 131 | have hαlim : TendstoUniformlyOn α γ atTop (Icc a b) := by |
| 132 | have h := UniformContinuousOn.comp_tendstoUniformlyOn_eventually |
| 133 | (F := fun k ↦ f (k + N)) (f := u) (g := e.symm) |
| 134 | (Eventually.of_forall (fun k s _ ↦ hCglobal k s)) huC' |
| 135 | (hC.uniformContinuousOn_of_continuous |
| 136 | ((continuousOn_extChartAt_symm (I := 𝓡 n) x).mono hCtarget)) hfunif |
| 137 | exact h.congr_right (fun s hs ↦ e.left_inv (hsrc' hs)) |
| 138 | refine ⟨α, fun k ↦ d (k + N), fun k ↦ hdLp (k + N), K, hK, hKs, hγK, |
| 139 | ?_, hαlim, hdlim.comp hshift.tendsto_atTop⟩ |
| 140 | intro k |
| 141 | refine ⟨hα k, hαa k, hαb k, ?_, ?_, ?_, ?_, ?_, ?_⟩ |
| 142 | · filter_upwards [(hf (k + N)).2.2.2.2.1] with s hs |
| 143 | change e.symm (f (k + N) s) = γ a |
| 144 | rw [hs] |
| 145 | exact e.left_inv (hsrc' ⟨le_rfl, hab.le⟩) |
| 146 | · filter_upwards [(hf (k + N)).2.2.2.2.2.1] with s hs |
| 147 | change e.symm (f (k + N) s) = γ b |
| 148 | rw [hs] |
| 149 | exact e.left_inv (hsrc' ⟨hab.le, le_rfl⟩) |
| 150 | · intro s hs |
| 151 | change e.symm (f (k + N) s) = γ a |
| 152 | rw [(hf (k + N)).2.2.2.2.2.2.1 s hs] |
| 153 | exact e.left_inv (hsrc' ⟨le_rfl, hab.le⟩) |
| 154 | · intro s hs |
| 155 | change e.symm (f (k + N) s) = γ b |
| 156 | rw [(hf (k + N)).2.2.2.2.2.2.2 s hs] |
| 157 | exact e.left_inv (hsrc' ⟨hab.le, le_rfl⟩) |
| 158 | · intro s _ |
| 159 | exact mem_image_of_mem e.symm (hCglobal k s) |
| 160 | · intro s |
| 161 | change HasDerivAt (e ∘ α k) _ s |
| 162 | rw [heq] |
| 163 | exact (hf (k + N)).2.2.2.1 s |
| 164 | |
| 165 | theorem smooth_chart_recovery {a b : ℝ} (hab : a ≤ b) (x : M) |
| 166 | (γ : ℝ → M) (hγ : ContinuousOn γ (Icc a b)) |
| 167 | (hsrc : MapsTo γ (Icc a b) (chartAt (EuclideanSpace ℝ (Fin n)) x).source) |
| 168 | (w : IntervalL2 (EuclideanSpace ℝ (Fin n)) a b) |
| 169 | (hprimitive : ∀ s ∈ Icc a b, |
| 170 | extChartAt (𝓡 n) x (γ s) = extChartAt (𝓡 n) x (γ a) + ∫ r in a..s, w r) : |
| 171 | ∃ (α : ℕ → ℝ → M) (d : ℕ → ℝ → EuclideanSpace ℝ (Fin n)) |
| 172 | (hdLp : ∀ k, MemLp (d k) 2 (volume.restrict (Icc a b))) (K : Set M), |
| 173 | IsCompact K ∧ K ⊆ (chartAt (EuclideanSpace ℝ (Fin n)) x).source ∧ |
| 174 | MapsTo γ (Icc a b) K ∧ |
| 175 | (∀ k, ContMDiff (𝓘(ℝ, ℝ)) (𝓡 n) ∞ (α k) ∧ |
| 176 | α k a = γ a ∧ α k b = γ b ∧ |
| 177 | (α k =ᶠ[𝓝 a] fun _ ↦ γ a) ∧ (α k =ᶠ[𝓝 b] fun _ ↦ γ b) ∧ |
| 178 | (∀ s, s ≤ a → α k s = γ a) ∧ (∀ s, b ≤ s → α k s = γ b) ∧ |
| 179 | MapsTo (α k) (Icc a b) K ∧ |
| 180 | ∀ s, HasDerivAt ((extChartAt (𝓡 n) x) ∘ α k) (d k s) s) ∧ |
| 181 | TendstoUniformlyOn α γ atTop (Icc a b) ∧ |
| 182 | Tendsto (fun k ↦ (hdLp k).toLp (d k)) atTop (𝓝 w) := by |
| 183 | rcases hab.lt_or_eq with hab | rfl |
| 184 | · exact smooth_chart_recovery_of_lt hab x γ hγ hsrc w hprimitive |
| 185 | · have hw : w = 0 := by |
| 186 | apply Lp.ext |
| 187 | simp [Filter.EventuallyEq] |
| 188 | have hzLp : MemLp (fun _ : ℝ ↦ (0 : EuclideanSpace ℝ (Fin n))) 2 |
| 189 | (volume.restrict (Icc a a)) := MemLp.zero' |
| 190 | refine ⟨fun _ _ ↦ γ a, fun _ _ ↦ 0, fun _ ↦ hzLp, {γ a}, |
| 191 | isCompact_singleton, ?_, ?_, ?_, ?_, ?_⟩ |
| 192 | · simpa using hsrc (show a ∈ Icc a a from ⟨le_rfl, le_rfl⟩) |
| 193 | · intro s hs |
| 194 | have hs' : s = a := le_antisymm hs.2 hs.1 |
| 195 | simp only [hs', mem_singleton_iff] |
| 196 | · intro k |
| 197 | exact ⟨contMDiff_const, rfl, rfl, Filter.EventuallyEq.rfl, |
| 198 | Filter.EventuallyEq.rfl, fun _ _ ↦ rfl, fun _ _ ↦ rfl, |
| 199 | fun _ _ ↦ mem_singleton _, fun s ↦ hasDerivAt_const s _⟩ |
| 200 | · apply Metric.tendstoUniformlyOn_iff.mpr |
| 201 | intro ε hε |
| 202 | apply Eventually.of_forall |
| 203 | intro k s hs |
| 204 | have hs' : s = a := le_antisymm hs.2 hs.1 |
| 205 | simpa only [hs', dist_self] using hε |
| 206 | · have heq : hzLp.toLp (fun _ ↦ 0) = w := by |
| 207 | rw [hw] |
| 208 | exact hzLp.toLp_zero |
| 209 | simpa only [heq] using (tendsto_const_nhds (x := w) : Tendsto |
| 210 | (fun _ : ℕ ↦ w) atTop (𝓝 w)) |
| 211 | |
| 212 | set_option maxHeartbeats 800000 in |
| 213 | set_option synthInstance.maxHeartbeats 200000 in |
| 214 | theorem chart_piece_integrable {J : Set ℝ} (F : RicciFlow n M J) |
| 215 | (T : ℝ) {a b : ℝ} (hab : a ≤ b) |
| 216 | (x : M) (α : ℝ → M) (hα : ContinuousOn α (Icc a b)) |
| 217 | (hreg : ContMDiffOn (𝓘(ℝ, ℝ)) (𝓡 n) 1 α (Ioo a b)) |
| 218 | (hsrc : MapsTo α (Icc a b) (chartAt (EuclideanSpace ℝ (Fin n)) x).source) |
| 219 | (htime : ∀ s ∈ Icc a b, T - s ^ 2 ∈ J) |
| 220 | (hpotential : ContinuousOn |
| 221 | (fun s => 2 * s ^ 2 * (F.connection (T - s ^ 2)).scalarCurvature (α s)) (Icc a b)) |
| 222 | (v : IntervalL2 (EuclideanSpace ℝ (Fin n)) a b) |
| 223 | (hv : (v : ℝ → EuclideanSpace ℝ (Fin n)) =ᵐ[volume.restrict (Icc a b)] |
| 224 | deriv ((extChartAt (𝓡 n) x) ∘ α)) : |
| 225 | IntervalIntegrable (regularizedLIntegrand F T α) volume a b := by |
| 226 | let E := EuclideanSpace ℝ (Fin n) |
| 227 | let μ := volume.restrict (Icc a b) |
| 228 | let B : ℝ → E →L[ℝ] E →L[ℝ] ℝ := fun s ↦ regularizedChartMetric F T x (s, α s) |
| 229 | have hBcont : ContinuousOn B (Icc a b) := |
| 230 | (regularizedChartMetric_continuousOn F T x htime (Subset.rfl)).comp |
| 231 | (continuousOn_id.prodMk hα) (fun s hs ↦ ⟨hs, hsrc hs⟩) |
| 232 | have hB : MemLp B (⊤ : ENNReal) μ := |
| 233 | continuousOn_memLp_top_Icc (f := B) (a := a) (b := b) hBcont |
| 234 | have hkin : Integrable (fun s ↦ B s (v s) (v s)) μ := |
| 235 | chart_density_integrable B hB v |
| 236 | let V := fun s ↦ 2 * s ^ 2 * (F.connection (T - s ^ 2)).scalarCurvature (α s) |
| 237 | have hV : ContinuousOn V (Icc a b) := hpotential |
| 238 | apply (intervalIntegrable_iff_integrableOn_Icc_of_le hab).mpr |
| 239 | apply (hkin.add (hV.integrableOn_Icc)).congr |
| 240 | have hmem : ∀ᵐ s ∂μ, s ∈ Ioo a b := by |
| 241 | dsimp only [μ] |
| 242 | rw [← restrict_Ioo_eq_restrict_Icc] |
| 243 | exact ae_restrict_mem measurableSet_Ioo |
| 244 | filter_upwards [hv, hmem] with s hs hsI |
| 245 | simp only [Pi.add_apply] |
| 246 | rw [hs] |
| 247 | have hdiff := ((hreg s hsI).contMDiffAt (isOpen_Ioo.mem_nhds hsI)).mdifferentiableAt |
| 248 | (by norm_num) |
| 249 | change (1 / 2 : ℝ) * metricInChart (F.metric (T - s ^ 2)) x (α s) |
| 250 | (deriv ((extChartAt (𝓡 n) x) ∘ α) s) (deriv ((extChartAt (𝓡 n) x) ∘ α) s) + V s = _ |
| 251 | rw [metricInChart_deriv _ (hsrc (Ioo_subset_Icc_self hsI)) hdiff] |
| 252 | exact add_comm _ _ |
| 253 | |
| 254 | set_option maxHeartbeats 800000 in |
| 255 | set_option synthInstance.maxHeartbeats 200000 in |
| 256 | theorem chart_piece_action_tendsto {J : Set ℝ} (F : RicciFlow n M J) |
| 257 | (T : ℝ) {a b : ℝ} (hab : a ≤ b) |
| 258 | (x : M) {K : Set M} (hK : IsCompact K) |
| 259 | (hsrc : K ⊆ (chartAt (EuclideanSpace ℝ (Fin n)) x).source) |
| 260 | (htime : ∀ s ∈ Icc a b, T - s ^ 2 ∈ J) |
| 261 | (hpotential : ContinuousOn |
| 262 | (fun z : ℝ × M => 2 * z.1 ^ 2 * |
| 263 | (F.connection (T - z.1 ^ 2)).scalarCurvature z.2) (Icc a b ×ˢ K)) |
| 264 | (α : ℕ → ℝ → M) (γ : ℝ → M) |
| 265 | (hα : ∀ k, ContinuousOn (α k) (Icc a b)) (hγ : ContinuousOn γ (Icc a b)) |
| 266 | (hαK : ∀ k, MapsTo (α k) (Icc a b) K) (hγK : MapsTo γ (Icc a b) K) |
| 267 | (hlim : TendstoUniformlyOn α γ atTop (Icc a b)) |
| 268 | (v : ℕ → IntervalL2 (EuclideanSpace ℝ (Fin n)) a b) |
| 269 | (w : IntervalL2 (EuclideanSpace ℝ (Fin n)) a b) (hv : Tendsto v atTop (𝓝 w)) : |
| 270 | Tendsto (fun k ↦ |
| 271 | (∫ s in a..b, regularizedChartMetric F T x (s, α k s) (v k s) (v k s)) + |
| 272 | ∫ s in a..b, 2 * s ^ 2 * (F.connection (T - s ^ 2)).scalarCurvature (α k s)) |
| 273 | atTop (𝓝 ((∫ s in a..b, regularizedChartMetric F T x (s, γ s) (w s) (w s)) + |
| 274 | ∫ s in a..b, 2 * s ^ 2 * (F.connection (T - s ^ 2)).scalarCurvature (γ s))) := by |
| 275 | let B k s := regularizedChartMetric F T x (s, α k s) |
| 276 | let D s := regularizedChartMetric F T x (s, γ s) |
| 277 | have hB (k : ℕ) : MemLp (B k) (⊤ : ENNReal) (volume.restrict (Icc a b)) := |
| 278 | continuousOn_memLp_top_Icc (f := B k) (a := a) (b := b) |
| 279 | ((regularizedChartMetric_continuousOn F T x htime hsrc).comp |
| 280 | (continuousOn_id.prodMk (hα k)) (fun s hs ↦ ⟨hs, hαK k hs⟩)) |
| 281 | have hD : MemLp D (⊤ : ENNReal) (volume.restrict (Icc a b)) := |
| 282 | continuousOn_memLp_top_Icc (f := D) (a := a) (b := b) |
| 283 | ((regularizedChartMetric_continuousOn F T x htime hsrc).comp |
| 284 | (continuousOn_id.prodMk hγ) (fun s hs ↦ ⟨hs, hγK hs⟩)) |
| 285 | let Qk k := integratedFormMap _ ((hB k).toLp (B k)) |
| 286 | let Q := integratedFormMap _ (hD.toLp D) |
| 287 | have hQ : Tendsto Qk atTop (𝓝 Q) := by |
| 288 | apply (tendsto_iff_norm_sub_tendsto_zero (f := Qk) (b := Q)).mpr |
| 289 | apply integratedForm_tendsto_of_uniform B D hB hD |
| 290 | exact uniform_composition_on_compact_core hK _ |
| 291 | (regularizedChartMetric_continuousOn F T x htime hsrc) α γ |
| 292 | (Eventually.of_forall hαK) hγK hlim |
| 293 | have hQeq (z : IntervalL2 (EuclideanSpace ℝ (Fin n)) a b) : |
| 294 | Q z z = ∫ s in a..b, D s (z s) (z s) := by |
| 295 | rw [intervalIntegral.integral_of_le hab, ← integral_Icc_eq_integral_Ioc, |
| 296 | integratedFormMap_apply] |
| 297 | apply integral_congr_ae |
| 298 | filter_upwards [MemLp.coeFn_toLp |
| 299 | (E := EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) |
| 300 | hD] with s hs |
| 301 | rw [hs] |
| 302 | have hQkeq (k : ℕ) : Qk k (v k) (v k) = ∫ s in a..b, B k s (v k s) (v k s) := by |
| 303 | rw [intervalIntegral.integral_of_le hab, ← integral_Icc_eq_integral_Ioc, |
| 304 | integratedFormMap_apply] |
| 305 | apply integral_congr_ae |
| 306 | filter_upwards [MemLp.coeFn_toLp |
| 307 | (E := EuclideanSpace ℝ (Fin n) →L[ℝ] EuclideanSpace ℝ (Fin n) →L[ℝ] ℝ) |
| 308 | (hB k)] with s hs |
| 309 | rw [hs] |
| 310 | have hkin : Tendsto (fun k ↦ Qk k (v k) (v k)) atTop (𝓝 (Q w w)) := |
| 311 | quadratic_form_tendsto Qk Q v w hQ hv |
| 312 | let V : ℝ × M → ℝ := fun z ↦ |
| 313 | 2 * z.1 ^ 2 * (F.connection (T - z.1 ^ 2)).scalarCurvature z.2 |
| 314 | have hV : ContinuousOn V (Icc a b ×ˢ K) := hpotential |
| 315 | have hpot : Tendsto (fun k ↦ ∫ s in a..b, V (s, α k s)) atTop |
| 316 | (𝓝 (∫ s in a..b, V (s, γ s))) := by |
| 317 | apply TendstoUniformlyOn.tendsto_intervalIntegral_of_continuousOn |
| 318 | · apply Eventually.of_forall |
| 319 | intro k |
| 320 | rw [uIcc_of_le hab] |
| 321 | exact hV.comp (continuousOn_id.prodMk (hα k)) (fun s hs ↦ ⟨hs, hαK k hs⟩) |
| 322 | · rw [uIcc_of_le hab] |
| 323 | exact uniform_composition_on_compact_core hK V hV α γ |
| 324 | (Eventually.of_forall hαK) hγK hlim |
| 325 | simpa only [hQeq, hQkeq, B, D, V] using hkin.add hpot |
| 326 | |
| 327 | end PoincareMT.ReducedLengthMinimum.Variational |
| 328 |