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 Mathlib.Analysis.Calculus.ContDiff.Defs |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.FTaylorSeries |
| 3 | import Mathlib.Analysis.Calculus.MeanValue |
| 4 | import Mathlib.Analysis.Calculus.UniformLimitsDeriv |
| 5 | import Mathlib.Analysis.InnerProductSpace.EuclideanDist |
| 6 | import Mathlib.LinearAlgebra.FiniteDimensional.Basic |
| 7 | import Mathlib.Topology.UniformSpace.Ascoli |
| 8 | import Mathlib.Topology.MetricSpace.Equicontinuity |
| 9 | import PoincareLib.Topology.Sequences.Diagonal |
| 10 | |
| 11 | /-! |
| 12 | # Smooth compactness on open subsets of Euclidean space |
| 13 | |
| 14 | Local eventual bounds on every derivative yield one strict subsequence |
| 15 | converging smoothly on compact subsets of an open Euclidean domain. The |
| 16 | conclusion uses the actual `iteratedFDeriv` of a smooth limit and is directly |
| 17 | compatible with the frozen `MetricJet` definition. |
| 18 | |
| 19 | Finite initial segments are absorbed into the compact bounds. Bounds on the |
| 20 | next derivative give equicontinuity, and Arzelà--Ascoli gives compact closures |
| 21 | in the spaces of continuous jet maps. These spaces are first countable by |
| 22 | compact exhaustion of the open domain. The countable diagonal API then gives |
| 23 | one subsequence, and the uniform derivative limit theorem identifies its jets. |
| 24 | |
| 25 | The analytic route is the one used in Morgan--Tian, Theorem 5.6, pp. 86--87, |
| 26 | and Proposition 5.14, pp. 90--91. |
| 27 | |
| 28 | ```bibtex |
| 29 | @book{MT2007, |
| 30 | author = {Morgan, John W. and Tian, Gang}, |
| 31 | title = {Ricci Flow and the Poincare Conjecture}, |
| 32 | series = {Clay Mathematics Monographs}, |
| 33 | volume = {3}, |
| 34 | publisher = {American Mathematical Society and Clay Mathematics Institute}, |
| 35 | year = {2007}, |
| 36 | isbn = {978-0-8218-4328-4}, |
| 37 | url = {https://www.claymath.org/wp-content/uploads/2022/03/Ricci-pdf.pdf} |
| 38 | } |
| 39 | ``` |
| 40 | -/ |
| 41 | |
| 42 | set_option autoImplicit false |
| 43 | |
| 44 | open Filter Set |
| 45 | open Metric |
| 46 | open scoped ContDiff Topology |
| 47 | |
| 48 | namespace Poincare.Analysis.Calculus |
| 49 | |
| 50 | /-- Identify the derivative of a locally uniform limit. |
| 51 | |
| 52 | This is the induction step used after Arzelà--Ascoli has supplied compact-open |
| 53 | limits for two adjacent jet orders. It is a named adapter around Mathlib's |
| 54 | uniform-limit theorem so callers can state the compatibility argument using |
| 55 | the same open domain and filter as the extraction theorem. |
| 56 | -/ |
| 57 | theorem limit_hasFDerivAt_of_tendstoLocallyUniformlyOn |
| 58 | {X Y : Type*} |
| 59 | [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 60 | [NormedAddCommGroup Y] [NormedSpace ℝ Y] |
| 61 | {s : Set X} {f : ℕ → X → Y} {g : X → Y} |
| 62 | {f' : ℕ → X → X →L[ℝ] Y} {g' : X → X →L[ℝ] Y} |
| 63 | (hs : IsOpen s) |
| 64 | (hf' : TendstoLocallyUniformlyOn f' g' atTop s) |
| 65 | (hf : ∀ n x, x ∈ s → HasFDerivAt (f n) (f' n x) x) |
| 66 | (hfg : ∀ x, x ∈ s → Tendsto (fun n ↦ f n x) atTop (𝓝 (g x))) : |
| 67 | ∀ x, x ∈ s → HasFDerivAt g (g' x) x := by |
| 68 | intro x hx |
| 69 | exact hasFDerivAt_of_tendstoLocallyUniformlyOn |
| 70 | (l := atTop) (f := f) (g := g) (f' := f') (g' := g') hs hf' hf hfg hx |
| 71 | |
| 72 | variable {d : ℕ} {E : Type*} |
| 73 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 74 | |
| 75 | /-- Local eventual bounds for every iterated Fréchet derivative of a sequence. |
| 76 | |
| 77 | The bound is stated pointwise on a compact set. This is equivalent to a |
| 78 | bound for the supremum seminorm and avoids introducing a second norm on the |
| 79 | space of continuous multilinear maps. |
| 80 | -/ |
| 81 | def LocallyEventuallyBoundedDerivatives (Ω : Set (EuclideanSpace ℝ (Fin d))) |
| 82 | (f : ℕ → EuclideanSpace ℝ (Fin d) → E) : Prop := |
| 83 | ∀ K : Set (EuclideanSpace ℝ (Fin d)), IsCompact K → K ⊆ Ω → |
| 84 | ∀ m : ℕ, ∃ B : ℝ, ∀ᶠ j : ℕ in atTop, |
| 85 | ∀ x ∈ K, ‖iteratedFDeriv ℝ m (f j) x‖ ≤ B |
| 86 | |
| 87 | /-! A local consequence of the bounds, used in the compact-open extraction. -/ |
| 88 | |
| 89 | /-- Smoothness bounds the finitely many terms preceding an eventual uniform |
| 90 | bound, giving an all-index bound on every compact subset. -/ |
| 91 | theorem norm_iteratedFDeriv_le_on_compact |
| 92 | {Ω : Set (EuclideanSpace ℝ (Fin d))} |
| 93 | (hΩ : IsOpen Ω) (f : ℕ → EuclideanSpace ℝ (Fin d) → E) |
| 94 | (hf : ∀ j, ContDiffOn ℝ ∞ (f j) Ω) |
| 95 | (hbound : LocallyEventuallyBoundedDerivatives Ω f) |
| 96 | {K : Set (EuclideanSpace ℝ (Fin d))} (hK : IsCompact K) (hKΩ : K ⊆ Ω) |
| 97 | (m : ℕ) : ∃ B : ℝ, 0 ≤ B ∧ ∀ j x, x ∈ K → |
| 98 | ‖iteratedFDeriv ℝ m (f j) x‖ ≤ B := by |
| 99 | classical |
| 100 | have hc (j : ℕ) : ContinuousOn (iteratedFDeriv ℝ m (f j)) K := by |
| 101 | intro x hx |
| 102 | exact ((hf j x (hKΩ hx)).contDiffAt (hΩ.mem_nhds (hKΩ hx))).continuousAt_iteratedFDeriv |
| 103 | (by exact_mod_cast (show (m : ℕ∞) ≤ ⊤ from le_top)) |>.continuousWithinAt |
| 104 | choose b hb using fun j => hK.exists_bound_of_continuousOn (hc j) |
| 105 | obtain ⟨B, hB⟩ := hbound K hK hKΩ m |
| 106 | obtain ⟨N, hN⟩ := eventually_atTop.1 hB |
| 107 | let C := ∑ j ∈ Finset.range N, max (b j) 0 |
| 108 | have hC : 0 ≤ C := Finset.sum_nonneg fun j _ => le_max_right _ _ |
| 109 | refine ⟨max B 0 + C, add_nonneg (le_max_right _ _) hC, ?_⟩ |
| 110 | intro j x hx |
| 111 | by_cases hj : N ≤ j |
| 112 | · exact (hN j hj x hx).trans ((le_max_left _ _).trans (le_add_of_nonneg_right hC)) |
| 113 | · have hbj : max (b j) 0 ≤ C := |
| 114 | Finset.single_le_sum (fun i _ => le_max_right (b i) 0) |
| 115 | (Finset.mem_range.mpr (Nat.lt_of_not_ge hj)) |
| 116 | exact (hb j x hx).trans ((le_max_left _ _).trans |
| 117 | (hbj.trans (le_add_of_nonneg_left (le_max_right _ _)))) |
| 118 | |
| 119 | private theorem equicontinuous_iteratedFDeriv |
| 120 | {Ω : Set (EuclideanSpace ℝ (Fin d))} |
| 121 | (hΩ : IsOpen Ω) (f : ℕ → EuclideanSpace ℝ (Fin d) → E) |
| 122 | (hf : ∀ j, ContDiffOn ℝ ∞ (f j) Ω) |
| 123 | (hbound : LocallyEventuallyBoundedDerivatives Ω f) (m : ℕ) : |
| 124 | Equicontinuous (fun j (x : Ω) => iteratedFDeriv ℝ m (f j) x) := by |
| 125 | intro x |
| 126 | obtain ⟨r, hr, hball⟩ := Metric.isOpen_iff.1 hΩ x x.property |
| 127 | obtain ⟨C, hC, hCbound⟩ := norm_iteratedFDeriv_le_on_compact hΩ f hf hbound |
| 128 | (isCompact_closedBall (x : EuclideanSpace ℝ (Fin d)) (r / 2)) |
| 129 | ((closedBall_subset_ball (half_lt_self hr)).trans hball) (m + 1) |
| 130 | have hLip (j : ℕ) (y : EuclideanSpace ℝ (Fin d)) (hy : y ∈ closedBall (x : EuclideanSpace ℝ (Fin d)) (r / 2)) : |
| 131 | ‖iteratedFDeriv ℝ m (f j) (x : EuclideanSpace ℝ (Fin d)) - |
| 132 | iteratedFDeriv ℝ m (f j) y‖ ≤ C * ‖(x : EuclideanSpace ℝ (Fin d)) - y‖ := by |
| 133 | apply (convex_closedBall (x : EuclideanSpace ℝ (Fin d)) (r / 2)).norm_image_sub_le_of_norm_fderiv_le |
| 134 | (𝕜 := ℝ) (fun z hz => ?_) (fun z hz => ?_) hy (mem_closedBall_self (le_of_lt (half_pos hr))) |
| 135 | · exact ((hf j z (hball ((closedBall_subset_ball (half_lt_self hr)) hz))).contDiffAt |
| 136 | (hΩ.mem_nhds (hball ((closedBall_subset_ball (half_lt_self hr)) hz)))).differentiableAt_iteratedFDeriv |
| 137 | (ENat.natCast_lt_of_coe_top_le_withTop (N := (∞ : ℕ∞ω)) le_rfl m) |
| 138 | · rw [norm_fderiv_iteratedFDeriv] |
| 139 | exact hCbound j z hz |
| 140 | rw [Metric.equicontinuousAt_iff] |
| 141 | intro ε hε |
| 142 | refine ⟨min (r / 2) (ε / (C + 1)), lt_min (half_pos hr) (div_pos hε (by linarith)), ?_⟩ |
| 143 | intro y hy j |
| 144 | have hyr : (y : EuclideanSpace ℝ (Fin d)) ∈ closedBall (x : EuclideanSpace ℝ (Fin d)) (r / 2) := |
| 145 | (lt_of_lt_of_le hy (min_le_left _ _)).le |
| 146 | have hys : dist y x < ε / (C + 1) := lt_of_lt_of_le hy (min_le_right _ _) |
| 147 | calc |
| 148 | dist (iteratedFDeriv ℝ m (f j) (x : EuclideanSpace ℝ (Fin d))) |
| 149 | (iteratedFDeriv ℝ m (f j) (y : EuclideanSpace ℝ (Fin d))) |
| 150 | ≤ C * dist y x := by simpa only [dist_eq_norm, Subtype.dist_eq, norm_sub_rev] using hLip j y hyr |
| 151 | _ ≤ (C + 1) * dist y x := mul_le_mul_of_nonneg_right (by linarith) dist_nonneg |
| 152 | _ < ε := by simpa only [mul_comm] using (lt_div_iff₀ (by linarith : 0 < C + 1)).mp hys |
| 153 | |
| 154 | private theorem exists_locallyUniform_jet_limits |
| 155 | [FiniteDimensional ℝ E] |
| 156 | {Ω : Set (EuclideanSpace ℝ (Fin d))} |
| 157 | (hΩ : IsOpen Ω) (f : ℕ → EuclideanSpace ℝ (Fin d) → E) |
| 158 | (hf : ∀ j, ContDiffOn ℝ ∞ (f j) Ω) |
| 159 | (hbound : LocallyEventuallyBoundedDerivatives Ω f) : |
| 160 | ∃ σ : ℕ → ℕ, StrictMono σ ∧ |
| 161 | ∃ g : (m : ℕ) → EuclideanSpace ℝ (Fin d) → EuclideanSpace ℝ (Fin d) [×m]→L[ℝ] E, |
| 162 | ∀ m, TendstoLocallyUniformlyOn |
| 163 | (fun j => iteratedFDeriv ℝ m (f (σ j))) (g m) atTop Ω := by |
| 164 | classical |
| 165 | let X := EuclideanSpace ℝ (Fin d) |
| 166 | let J := fun m : ℕ => X [×m]→L[ℝ] E |
| 167 | let : LocallyCompactSpace Ω := hΩ.locallyCompactSpace |
| 168 | have : ∀ m, FiniteDimensional ℝ (J m) := by |
| 169 | intro m |
| 170 | induction m with |
| 171 | | zero => exact (continuousMultilinearCurryFin0 ℝ X E).symm.toLinearEquiv.finiteDimensional |
| 172 | | succ m ih => exact (continuousMultilinearCurryLeftEquiv ℝ |
| 173 | (fun _ : Fin (m + 1) => X) E).symm.toLinearEquiv.finiteDimensional |
| 174 | let u : ∀ m, ℕ → C(Ω, J m) := fun m j => |
| 175 | ⟨fun x => iteratedFDeriv ℝ m (f j) x, |
| 176 | (equicontinuous_iteratedFDeriv hΩ f hf hbound m).continuous j⟩ |
| 177 | have hc (m : ℕ) : IsCompact (closure (range (u m))) := by |
| 178 | apply ArzelaAscoli.isCompact_closure_of_isClosedEmbedding |
| 179 | (F := fun v : C(Ω, J m) => (v : Ω → J m)) |
| 180 | (𝔖 := {K | IsCompact K}) (fun _ h => h) |
| 181 | (show Topology.IsClosedEmbedding (ContinuousMap.toUniformOnFunIsCompact : |
| 182 | C(Ω, J m) → UniformOnFun Ω (J m) {K | IsCompact K}) from |
| 183 | ⟨ContinuousMap.isUniformEmbedding_toUniformOnFunIsCompact.isEmbedding, by |
| 184 | rw [ContinuousMap.range_toUniformOnFunIsCompact] |
| 185 | exact UniformOnFun.isClosed_setOfPred_continuous CompactlyCoherentSpace.isCoherentWith⟩) |
| 186 | · intro K hK |
| 187 | have heq : Equicontinuous (fun v : range (u m) => (v.val : Ω → J m)) := by |
| 188 | intro x V hV |
| 189 | filter_upwards [equicontinuous_iteratedFDeriv hΩ f hf hbound m x V hV] with y hy v |
| 190 | obtain ⟨j, hj⟩ := v.property |
| 191 | simpa only [← hj, u, ContinuousMap.coe_mk] using hy j |
| 192 | exact heq.equicontinuousOn K |
| 193 | · intro K hK x hx |
| 194 | obtain ⟨B, hB, hboundB⟩ := norm_iteratedFDeriv_le_on_compact hΩ f hf hbound |
| 195 | (isCompact_singleton (x := (x : X))) (singleton_subset_iff.mpr x.property) m |
| 196 | refine ⟨closedBall (0 : J m) B, isCompact_closedBall _ _, ?_⟩ |
| 197 | rintro v ⟨j, rfl⟩ |
| 198 | simpa only [mem_closedBall, dist_zero_right, u, ContinuousMap.coe_mk] using |
| 199 | hboundB j x (mem_singleton _) |
| 200 | have : SigmaCompactSpace Ω := inferInstance |
| 201 | have : ∀ m, FirstCountableTopology C(Ω, J m) := fun m => by |
| 202 | have : Filter.IsCountablyGenerated (uniformity C(Ω, J m)) := inferInstance |
| 203 | exact UniformSpace.firstCountableTopology C(Ω, J m) |
| 204 | obtain ⟨a, ha, σ, hσ, hlim⟩ := |
| 205 | Poincare.exists_strictMono_tendsto_of_eventually_mem_isCompact u |
| 206 | (fun m => closure (range (u m))) hc |
| 207 | (fun m => Eventually.of_forall fun j => subset_closure (mem_range_self j)) |
| 208 | let g : ∀ m, X → J m := fun m x => if hx : x ∈ Ω then a m ⟨x, hx⟩ else 0 |
| 209 | refine ⟨σ, hσ, g, fun m => ?_⟩ |
| 210 | rw [tendstoLocallyUniformlyOn_iff_tendstoLocallyUniformly_comp_coe] |
| 211 | have hg : g m ∘ Subtype.val = (a m : Ω → J m) := by |
| 212 | funext x |
| 213 | simp only [g, Function.comp_apply, dif_pos x.property] |
| 214 | rw [hg] |
| 215 | simpa only [u, Function.comp_apply, ContinuousMap.coe_mk] using |
| 216 | (ContinuousMap.tendsto_iff_tendstoLocallyUniformly.mp (hlim m)) |
| 217 | |
| 218 | private theorem exists_smooth_of_locallyUniform_jet_limits |
| 219 | {X Y : Type*} |
| 220 | [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 221 | [NormedAddCommGroup Y] [NormedSpace ℝ Y] |
| 222 | {Ω : Set X} (hΩ : IsOpen Ω) (f : ℕ → X → Y) |
| 223 | (hf : ∀ j, ContDiffOn ℝ ∞ (f j) Ω) |
| 224 | (g : (m : ℕ) → X → X [×m]→L[ℝ] Y) |
| 225 | (hg : ∀ m, TendstoLocallyUniformlyOn |
| 226 | (fun j ↦ iteratedFDeriv ℝ m (f j)) (g m) atTop Ω) : |
| 227 | ∃ F : X → Y, ContDiffOn ℝ ∞ F Ω ∧ |
| 228 | ∀ m, EqOn (iteratedFDeriv ℝ m F) (g m) Ω := by |
| 229 | have hderiv (m : ℕ) (x : X) (hx : x ∈ Ω) : |
| 230 | HasFDerivAt (g m) |
| 231 | (continuousMultilinearCurryLeftEquiv ℝ (fun _ : Fin (m + 1) ↦ X) Y |
| 232 | (g (m + 1) x)) x := by |
| 233 | apply limit_hasFDerivAt_of_tendstoLocallyUniformlyOn |
| 234 | (f := fun j ↦ iteratedFDeriv ℝ m (f j)) |
| 235 | (g := g m) (g' := fun y ↦ continuousMultilinearCurryLeftEquiv ℝ |
| 236 | (fun _ : Fin (m + 1) ↦ X) Y (g (m + 1) y)) hΩ |
| 237 | ((continuousMultilinearCurryLeftEquiv ℝ |
| 238 | (fun _ : Fin (m + 1) ↦ X) Y).isometry.uniformContinuous.comp_tendstoLocallyUniformlyOn |
| 239 | (hg (m + 1))) |
| 240 | · intro j y hy |
| 241 | have hd := ((hf j y hy).contDiffAt (hΩ.mem_nhds hy)).differentiableAt_iteratedFDeriv |
| 242 | (ENat.natCast_lt_of_coe_top_le_withTop (N := (∞ : ℕ∞ω)) le_rfl m) |
| 243 | simpa only [fderiv_iteratedFDeriv, Function.comp_apply] using hd.hasFDerivAt |
| 244 | · exact fun y hy ↦ (hg m).tendsto_at hy |
| 245 | · exact hx |
| 246 | let F : X → Y := fun x ↦ continuousMultilinearCurryFin0 ℝ X Y (g 0 x) |
| 247 | have heq (m : ℕ) : EqOn (iteratedFDeriv ℝ m F) (g m) Ω := by |
| 248 | induction m with |
| 249 | | zero => |
| 250 | intro x hx |
| 251 | simp [iteratedFDeriv_zero_eq_comp, F] |
| 252 | | succ m ih => |
| 253 | intro x hx |
| 254 | have hlocal : iteratedFDeriv ℝ m F =ᶠ[𝓝 x] g m := |
| 255 | Filter.eventuallyEq_of_mem (hΩ.mem_nhds hx) ih |
| 256 | simp only [iteratedFDeriv_succ_eq_comp_left, Function.comp_apply] |
| 257 | rw [hlocal.fderiv_eq, (hderiv m x hx).fderiv] |
| 258 | exact LinearIsometryEquiv.symm_apply_apply _ _ |
| 259 | have hdiff (m : ℕ) : DifferentiableOn ℝ (iteratedFDerivWithin ℝ m F Ω) Ω := by |
| 260 | apply (show DifferentiableOn ℝ (g m) Ω from |
| 261 | fun x hx ↦ (hderiv m x hx).differentiableAt.differentiableWithinAt).congr |
| 262 | intro x hx |
| 263 | exact (iteratedFDerivWithin_of_isOpen m hΩ hx).trans (heq m hx) |
| 264 | refine ⟨F, ?_, heq⟩ |
| 265 | exact contDiffOn_of_continuousOn_differentiableOn |
| 266 | (fun m _ ↦ (hdiff m).continuousOn) (fun m _ ↦ hdiff m) |
| 267 | |
| 268 | theorem eventually_norm_iteratedFDeriv_sub_le_of_closedBall |
| 269 | {Ω : Set (EuclideanSpace ℝ (Fin d))} |
| 270 | (hΩ : IsOpen Ω) (f : ℕ → EuclideanSpace ℝ (Fin d) → E) |
| 271 | (hf : ∀ j, ContDiffOn ℝ ∞ (f j) Ω) |
| 272 | (hbound : LocallyEventuallyBoundedDerivatives Ω f) |
| 273 | {x : EuclideanSpace ℝ (Fin d)} {r : ℝ} (_hr : 0 < r) |
| 274 | (hball : closedBall x r ⊆ Ω) (m : ℕ) : |
| 275 | ∃ N : ℕ, ∃ C : ℝ, 0 ≤ C ∧ |
| 276 | ∀ j ≥ N, ∀ y ∈ closedBall x r, ∀ z ∈ closedBall x r, |
| 277 | ‖iteratedFDeriv ℝ m (f j) y - iteratedFDeriv ℝ m (f j) z‖ ≤ |
| 278 | C * ‖y - z‖ := by |
| 279 | obtain ⟨B, hB⟩ := hbound (closedBall x r) (isCompact_closedBall x r) hball (m + 1) |
| 280 | rcases eventually_atTop.1 hB with ⟨N, hN⟩ |
| 281 | refine ⟨N, max B 0, le_max_right _ _, ?_⟩ |
| 282 | intro j hj y hy z hz |
| 283 | have hfj : ContDiffOn ℝ ∞ (f j) Ω := hf j |
| 284 | have hderiv : ∀ w ∈ closedBall x r, |
| 285 | DifferentiableAt ℝ (iteratedFDeriv ℝ m (f j)) w := by |
| 286 | intro w hw |
| 287 | exact (hfj w (hball hw)).contDiffAt (hΩ.mem_nhds (hball hw)) |>.differentiableAt_iteratedFDeriv |
| 288 | (ENat.natCast_lt_of_coe_top_le_withTop (N := (∞ : ℕ∞ω)) le_rfl m) |
| 289 | have hdiff : ∀ w ∈ closedBall x r, |
| 290 | ‖fderiv ℝ (iteratedFDeriv ℝ m (f j)) w‖ ≤ max B 0 := by |
| 291 | intro w hw |
| 292 | rw [norm_fderiv_iteratedFDeriv] |
| 293 | exact (hN j hj w hw).trans (le_max_left _ _) |
| 294 | exact (convex_closedBall x r).norm_image_sub_le_of_norm_fderiv_le hderiv hdiff hz hy |
| 295 | |
| 296 | /-- The compact-open `C^∞` conclusion of smooth subsequence extraction. -/ |
| 297 | structure SmoothSubsequenceExtraction |
| 298 | (Ω : Set (EuclideanSpace ℝ (Fin d))) |
| 299 | (f : ℕ → EuclideanSpace ℝ (Fin d) → E) where |
| 300 | /-- The selected indices. -/ |
| 301 | subsequence : ℕ → ℕ |
| 302 | /-- The selected indices are strictly increasing. -/ |
| 303 | subsequence_strictMono : StrictMono subsequence |
| 304 | /-- The actual smooth limit, not merely a compatible family of jets. -/ |
| 305 | limit : EuclideanSpace ℝ (Fin d) → E |
| 306 | /-- The limit is smooth on the open domain. -/ |
| 307 | limit_contDiffOn : ContDiffOn ℝ ∞ limit Ω |
| 308 | /-- Every iterated derivative converges uniformly on compact subsets. -/ |
| 309 | iteratedFDeriv_tendsto_uniformlyOn : |
| 310 | ∀ (m : ℕ) (K : Set (EuclideanSpace ℝ (Fin d))), IsCompact K → K ⊆ Ω → |
| 311 | TendstoUniformlyOn |
| 312 | (fun j x ↦ iteratedFDeriv ℝ m (f (subsequence j)) x) |
| 313 | (iteratedFDeriv ℝ m limit) atTop K |
| 314 | |
| 315 | /-- Unpack the convergence field in the extraction package. |
| 316 | |
| 317 | This small projection is useful at consumers that only need one jet order and |
| 318 | also makes explicit that the convergent object is `iteratedFDeriv` itself. |
| 319 | -/ |
| 320 | theorem SmoothSubsequenceExtraction.tendsto_iteratedFDeriv |
| 321 | {Ω : Set (EuclideanSpace ℝ (Fin d))} |
| 322 | {f : ℕ → EuclideanSpace ℝ (Fin d) → E} |
| 323 | (H : SmoothSubsequenceExtraction Ω f) |
| 324 | (m : ℕ) (K : Set (EuclideanSpace ℝ (Fin d))) (hK : IsCompact K) |
| 325 | (hKΩ : K ⊆ Ω) : |
| 326 | TendstoUniformlyOn |
| 327 | (fun j x ↦ iteratedFDeriv ℝ m (f (H.subsequence j)) x) |
| 328 | (iteratedFDeriv ℝ m H.limit) atTop K := |
| 329 | H.iteratedFDeriv_tendsto_uniformlyOn m K hK hKΩ |
| 330 | |
| 331 | /-- Smooth subsequence extraction from local eventual derivative bounds. |
| 332 | |
| 333 | This is the open-domain compactness theorem used by the geometric limit |
| 334 | construction. Its conclusion keeps the strict subsequence and the actual |
| 335 | `iteratedFDeriv` of one smooth limit together, so it can be applied directly |
| 336 | to frozen `MetricJet` expressions. |
| 337 | -/ |
| 338 | theorem exists_smoothSubsequenceExtraction |
| 339 | [FiniteDimensional ℝ E] |
| 340 | {Ω : Set (EuclideanSpace ℝ (Fin d))} |
| 341 | (hΩ : IsOpen Ω) |
| 342 | (f : ℕ → EuclideanSpace ℝ (Fin d) → E) |
| 343 | (hf : ∀ j, ContDiffOn ℝ ∞ (f j) Ω) |
| 344 | (hbound : LocallyEventuallyBoundedDerivatives Ω f) : |
| 345 | Nonempty (SmoothSubsequenceExtraction Ω f) := by |
| 346 | obtain ⟨σ, hσ, g, hg⟩ := exists_locallyUniform_jet_limits hΩ f hf hbound |
| 347 | obtain ⟨F, hF, heq⟩ := exists_smooth_of_locallyUniform_jet_limits hΩ |
| 348 | (fun j => f (σ j)) (fun j => hf (σ j)) g hg |
| 349 | refine ⟨⟨σ, hσ, F, hF, fun m K hK hKΩ => ?_⟩⟩ |
| 350 | have hconv := (tendstoLocallyUniformlyOn_iff_forall_isCompact hΩ).mp (hg m) K hKΩ hK |
| 351 | exact hconv.congr_right (fun x hx => (heq m (hKΩ hx)).symm) |
| 352 | |
| 353 | end Poincare.Analysis.Calculus |