Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import NavierStokes.BorelExtension |
| 2 | import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension |
| 3 | import Mathlib.Algebra.Order.Algebra |
| 4 | import Mathlib.Analysis.Normed.Group.Basic |
| 5 | import Mathlib.Analysis.Real.Sqrt |
| 6 | import Mathlib.Data.EReal.Inv |
| 7 | |
| 8 | /-! |
| 9 | # Jointly smooth Taylor–Borel extension of spatially smooth jets |
| 10 | |
| 11 | There is one cutoff scale per Taylor degree. Its finite list of constraints |
| 12 | includes all joint derivatives and all spatial localizations up to that degree. |
| 13 | This gives joint smoothness without imposing global bounds on the input jets. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | open Set Filter Function Metric |
| 19 | open scoped Topology ContDiff BigOperators |
| 20 | |
| 21 | namespace NavierStokes.SpatialBorelExtension |
| 22 | |
| 23 | variable {X V : Type*} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 24 | [FiniteDimensional ℝ X] [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 25 | |
| 26 | private theorem nat_le_infty (k : ℕ) : (k : WithTop ℕ∞) ≤ ∞ := by |
| 27 | exact_mod_cast (le_top : (k : ℕ∞) ≤ ⊤) |
| 28 | |
| 29 | def spatialBump (m : ℕ) : ContDiffBump (0 : X) where |
| 30 | rIn := (m : ℝ) + 1 |
| 31 | rOut := (m : ℝ) + 2 |
| 32 | rIn_pos := by positivity |
| 33 | rIn_lt_rOut := by linarith |
| 34 | |
| 35 | def spatialCutoff (m : ℕ) : X → ℝ := (spatialBump (X := X) m : X → ℝ) |
| 36 | |
| 37 | theorem spatialCutoff_contDiff (m : ℕ) : ContDiff ℝ ∞ (spatialCutoff (X := X) m) := |
| 38 | (spatialBump (X := X) m).contDiff |
| 39 | |
| 40 | theorem spatialCutoff_eventually_one (m : ℕ) {x : X} (hx : ‖x‖ < (m : ℝ) + 1) : |
| 41 | spatialCutoff m =ᶠ[𝓝 x] (fun _ => 1) := by |
| 42 | apply (spatialBump (X := X) m).eventuallyEq_one_of_mem_ball |
| 43 | simpa only [mem_ball, dist_zero_right, spatialBump] using hx |
| 44 | |
| 45 | theorem spatialCutoff_zero (m : ℕ) {x : X} (hx : (m : ℝ) + 2 ≤ ‖x‖) : |
| 46 | spatialCutoff m x = 0 := by |
| 47 | apply (spatialBump (X := X) m).zero_of_le_dist |
| 48 | simpa only [dist_zero_right, spatialBump] using hx |
| 49 | |
| 50 | omit [NormedSpace ℝ X] [FiniteDimensional ℝ X] in |
| 51 | theorem exists_spatial_plateau (x : X) : ∃ m : ℕ, ‖x‖ < (m : ℝ) + 1 := by |
| 52 | obtain ⟨m, hm⟩ := exists_nat_gt ‖x‖ |
| 53 | exact ⟨m, by linarith⟩ |
| 54 | |
| 55 | omit [NormedSpace ℝ X] [FiniteDimensional ℝ X] in |
| 56 | theorem exists_compact_spatial_plateau {K : Set X} (hK : IsCompact K) : |
| 57 | ∃ m : ℕ, ∀ x ∈ K, ‖x‖ < (m : ℝ) + 1 := by |
| 58 | obtain ⟨C, hC⟩ := hK.exists_bound_of_continuousOn (continuous_id.continuousOn : |
| 59 | ContinuousOn (fun x : X => x) K) |
| 60 | obtain ⟨m, hm⟩ := exists_nat_gt C |
| 61 | exact ⟨m, fun x hx => lt_of_le_of_lt (hC x hx) (by linarith)⟩ |
| 62 | |
| 63 | def term (b : ℝ) (j : ℕ) (a : X → V) (z : ℝ × X) : V := |
| 64 | BorelExtension.term b j (a z.2) z.1 |
| 65 | |
| 66 | def localizedTerm (m : ℕ) (b : ℝ) (j : ℕ) (a : X → V) (z : ℝ × X) : V := |
| 67 | spatialCutoff m z.2 • term b j a z |
| 68 | |
| 69 | def template (m j : ℕ) (a : X → V) : ℝ × X → V := localizedTerm m 1 j a |
| 70 | |
| 71 | omit [FiniteDimensional ℝ X] in |
| 72 | theorem term_contDiff {a : X → V} (ha : ContDiff ℝ ∞ a) (b : ℝ) (j : ℕ) : |
| 73 | ContDiff ℝ ∞ (term b j a) := by |
| 74 | exact ((SmoothCutoffs.scaledCutoff_contDiff b).comp contDiff_fst).smul |
| 75 | (((contDiff_fst.pow j).div_const _).smul (ha.comp contDiff_snd)) |
| 76 | |
| 77 | theorem localizedTerm_contDiff {a : X → V} (ha : ContDiff ℝ ∞ a) |
| 78 | (m : ℕ) (b : ℝ) (j : ℕ) : ContDiff ℝ ∞ (localizedTerm m b j a) := |
| 79 | ((spatialCutoff_contDiff m).comp contDiff_snd).smul (term_contDiff ha b j) |
| 80 | |
| 81 | theorem template_contDiff {a : X → V} (ha : ContDiff ℝ ∞ a) (m j : ℕ) : |
| 82 | ContDiff ℝ ∞ (template m j a) := localizedTerm_contDiff ha m 1 j |
| 83 | |
| 84 | theorem template_hasCompactSupport (m j : ℕ) (a : X → V) : |
| 85 | HasCompactSupport (template m j a) := by |
| 86 | have hs : support (template m j a) ⊆ |
| 87 | Icc (-1 : ℝ) 1 ×ˢ closedBall (0 : X) ((m : ℝ) + 2) := by |
| 88 | intro z hz |
| 89 | have ht : |z.1| < 1 := by |
| 90 | apply lt_of_not_ge |
| 91 | intro ht |
| 92 | apply hz |
| 93 | simp only [template, localizedTerm, term, BorelExtension.term, one_mul, |
| 94 | SmoothCutoffs.cutoff_zero_of_one_le_abs ht, zero_smul, smul_zero] |
| 95 | have hx : ‖z.2‖ < (m : ℝ) + 2 := by |
| 96 | apply lt_of_not_ge |
| 97 | intro hx |
| 98 | apply hz |
| 99 | simp only [template, localizedTerm, spatialCutoff_zero m hx, zero_smul] |
| 100 | exact ⟨abs_le.mp ht.le, by simpa only [mem_closedBall, dist_zero_right] using hx.le⟩ |
| 101 | apply (isCompact_Icc.prod (isCompact_closedBall (0 : X) ((m : ℝ) + 2))).of_isClosed_subset |
| 102 | isClosed_closure |
| 103 | exact closure_minimal hs (isClosed_Icc.prod isClosed_closedBall) |
| 104 | |
| 105 | def timeScale (b : ℝ) : (ℝ × X) →L[ℝ] (ℝ × X) := |
| 106 | (b • ContinuousLinearMap.fst ℝ ℝ X).prod (ContinuousLinearMap.snd ℝ ℝ X) |
| 107 | |
| 108 | omit [FiniteDimensional ℝ X] in |
| 109 | @[simp] theorem timeScale_apply (b : ℝ) (z : ℝ × X) : timeScale b z = (b * z.1, z.2) := rfl |
| 110 | |
| 111 | omit [FiniteDimensional ℝ X] in |
| 112 | theorem norm_timeScale_le {b : ℝ} (hb : 1 ≤ b) : ‖timeScale (X := X) b‖ ≤ b := by |
| 113 | have hb0 : 0 ≤ b := le_trans zero_le_one hb |
| 114 | apply ContinuousLinearMap.opNorm_le_bound _ hb0 |
| 115 | intro z |
| 116 | simp only [timeScale_apply, Prod.norm_def, norm_mul, Real.norm_of_nonneg hb0] |
| 117 | apply max_le |
| 118 | · exact mul_le_mul_of_nonneg_left (le_max_left _ _) hb0 |
| 119 | · exact (le_max_right _ _).trans |
| 120 | (le_mul_of_one_le_left (le_trans (norm_nonneg z.1) (le_max_left _ _)) hb) |
| 121 | |
| 122 | theorem localizedTerm_eq_scaled {b : ℝ} (hb : b ≠ 0) (m j : ℕ) (a : X → V) : |
| 123 | localizedTerm m b j a = (b ^ j)⁻¹ • (template m j a ∘ timeScale b) := by |
| 124 | funext z |
| 125 | simp only [localizedTerm, template, term, BorelExtension.term, BorelExtension.monomial, |
| 126 | Pi.smul_apply, comp_apply, timeScale_apply, one_mul, smul_smul, mul_pow] |
| 127 | congr 1 |
| 128 | field_simp |
| 129 | |
| 130 | theorem exists_template_bound {a : X → V} (ha : ContDiff ℝ ∞ a) (m j k : ℕ) : |
| 131 | ∃ C : ℝ, 0 ≤ C ∧ ∀ z : ℝ × X, ‖iteratedFDeriv ℝ k (template m j a) z‖ ≤ C := by |
| 132 | obtain ⟨C, hC⟩ := ((template_hasCompactSupport m j a).iteratedFDeriv k).exists_bound_of_continuous |
| 133 | ((template_contDiff ha m j).continuous_iteratedFDeriv (nat_le_infty k)) |
| 134 | exact ⟨max C 0, le_max_right _ _, fun z => (hC z).trans (le_max_left _ _)⟩ |
| 135 | |
| 136 | def templateBound {a : X → V} (ha : ContDiff ℝ ∞ a) (m j k : ℕ) : ℝ := |
| 137 | Classical.choose (exists_template_bound ha m j k) |
| 138 | |
| 139 | theorem templateBound_nonneg {a : X → V} (ha : ContDiff ℝ ∞ a) (m j k : ℕ) : |
| 140 | 0 ≤ templateBound ha m j k := (Classical.choose_spec (exists_template_bound ha m j k)).1 |
| 141 | |
| 142 | theorem template_deriv_le {a : X → V} (ha : ContDiff ℝ ∞ a) (m j k : ℕ) (z : ℝ × X) : |
| 143 | ‖iteratedFDeriv ℝ k (template m j a) z‖ ≤ templateBound ha m j k := |
| 144 | (Classical.choose_spec (exists_template_bound ha m j k)).2 z |
| 145 | |
| 146 | theorem localizedTerm_deriv_bound {a : X → V} (ha : ContDiff ℝ ∞ a) |
| 147 | {b : ℝ} (hb : 1 ≤ b) (m j k : ℕ) (z : ℝ × X) : |
| 148 | ‖iteratedFDeriv ℝ k (localizedTerm m b j a) z‖ ≤ |
| 149 | (b ^ k / b ^ j) * templateBound ha m j k := by |
| 150 | have hbpos : 0 < b := lt_of_lt_of_le zero_lt_one hb |
| 151 | have ht := template_contDiff ha m j |
| 152 | have hc : ContDiff ℝ (k : WithTop ℕ∞) (template m j a ∘ timeScale b) := |
| 153 | ht.comp_continuousLinearMap.of_le (nat_le_infty k) |
| 154 | rw [localizedTerm_eq_scaled (ne_of_gt hbpos), |
| 155 | iteratedFDeriv_const_smul_apply hc.contDiffAt] |
| 156 | rw [norm_smul ((b ^ j)⁻¹ : ℝ) (iteratedFDeriv ℝ k (template m j a ∘ timeScale b) z), |
| 157 | Real.norm_of_nonneg (by positivity : 0 ≤ (b ^ j)⁻¹), |
| 158 | (timeScale b).iteratedFDeriv_comp_right ht z (nat_le_infty k)] |
| 159 | have hcomp : |
| 160 | ‖(iteratedFDeriv ℝ k (template m j a) (timeScale b z)).compContinuousLinearMap |
| 161 | (fun _ => timeScale b)‖ ≤ templateBound ha m j k * b ^ k := by |
| 162 | calc |
| 163 | _ ≤ ‖iteratedFDeriv ℝ k (template m j a) (timeScale b z)‖ * |
| 164 | ∏ _ : Fin k, ‖timeScale (X := X) b‖ := |
| 165 | ContinuousMultilinearMap.norm_compContinuousLinearMap_le _ _ |
| 166 | _ = ‖iteratedFDeriv ℝ k (template m j a) (timeScale b z)‖ * |
| 167 | ‖timeScale (X := X) b‖ ^ k := by simp |
| 168 | _ ≤ templateBound ha m j k * b ^ k := |
| 169 | mul_le_mul (template_deriv_le ha m j k (timeScale b z)) |
| 170 | (pow_le_pow_left₀ (norm_nonneg _) (norm_timeScale_le hb) k) |
| 171 | (by positivity) (templateBound_nonneg ha m j k) |
| 172 | calc |
| 173 | _ ≤ (b ^ j)⁻¹ * (templateBound ha m j k * b ^ k) := |
| 174 | mul_le_mul_of_nonneg_left hcomp (by positivity) |
| 175 | _ = (b ^ k / b ^ j) * templateBound ha m j k := by ring |
| 176 | |
| 177 | section Family |
| 178 | |
| 179 | variable (a : ℕ → X → V) (ha : ∀ j, ContDiff ℝ ∞ (a j)) |
| 180 | |
| 181 | /-- Each degree controls finitely many spatial windows and derivative orders. -/ |
| 182 | def boundSum (j : ℕ) : ℝ := |
| 183 | ∑ m ∈ Finset.range j, ∑ k ∈ Finset.range j, templateBound (ha j) m j k |
| 184 | |
| 185 | theorem boundSum_nonneg (j : ℕ) : 0 ≤ boundSum a ha j := |
| 186 | Finset.sum_nonneg fun m _ => Finset.sum_nonneg fun k _ => templateBound_nonneg (ha j) m j k |
| 187 | |
| 188 | theorem templateBound_le_boundSum {m j k : ℕ} (hm : m < j) (hk : k < j) : |
| 189 | templateBound (ha j) m j k ≤ boundSum a ha j := by |
| 190 | apply (Finset.single_le_sum (fun i _ => templateBound_nonneg (ha j) m j i) |
| 191 | (Finset.mem_range.mpr hk)).trans |
| 192 | exact Finset.single_le_sum |
| 193 | (fun i _ => Finset.sum_nonneg fun l _ => templateBound_nonneg (ha j) i j l) |
| 194 | (Finset.mem_range.mpr hm) |
| 195 | |
| 196 | def localScale (j : ℕ) : ℕ := Classical.choose (exists_nat_gt ((2 : ℝ) ^ j * boundSum a ha j)) |
| 197 | |
| 198 | theorem localScale_bound (j : ℕ) : (2 : ℝ) ^ j * boundSum a ha j < localScale a ha j := |
| 199 | Classical.choose_spec (exists_nat_gt ((2 : ℝ) ^ j * boundSum a ha j)) |
| 200 | |
| 201 | /-- The scale depends on the degree and the whole input family, never on the |
| 202 | evaluation point or on the derivative order subsequently requested. -/ |
| 203 | def scale : ℕ → ℕ := DiagonalScale.doublingEnvelope (localScale a ha) |
| 204 | |
| 205 | theorem scale_pos (j : ℕ) : 0 < scale a ha j := |
| 206 | DiagonalScale.doublingEnvelope_pos (localScale a ha) j |
| 207 | |
| 208 | theorem scale_ge_one (j : ℕ) : (1 : ℝ) ≤ scale a ha j := by |
| 209 | exact_mod_cast scale_pos a ha j |
| 210 | |
| 211 | theorem scale_strictMono : StrictMono (scale a ha) := |
| 212 | DiagonalScale.doublingEnvelope_strictMono (localScale a ha) |
| 213 | |
| 214 | theorem scale_doubling (j : ℕ) : 2 * scale a ha j ≤ scale a ha (j + 1) := |
| 215 | DiagonalScale.doublingEnvelope_growth (localScale a ha) j |
| 216 | |
| 217 | theorem boundSum_le_scale (j : ℕ) : boundSum a ha j ≤ (1 / 2 : ℝ) ^ j * scale a ha j := by |
| 218 | have hs : (2 : ℝ) ^ j * boundSum a ha j ≤ scale a ha j := |
| 219 | (localScale_bound a ha j).le.trans |
| 220 | (by exact_mod_cast DiagonalScale.doublingEnvelope_ge (localScale a ha) j) |
| 221 | calc |
| 222 | boundSum a ha j = (1 / 2 : ℝ) ^ j * ((2 : ℝ) ^ j * boundSum a ha j) := by |
| 223 | rw [← mul_assoc, ← mul_pow] |
| 224 | norm_num |
| 225 | _ ≤ (1 / 2 : ℝ) ^ j * scale a ha j := mul_le_mul_of_nonneg_left hs (by positivity) |
| 226 | |
| 227 | private theorem power_ratio_le {b : ℝ} (hb : 1 ≤ b) {k j : ℕ} (hkj : k < j) : |
| 228 | b ^ k / b ^ j ≤ 1 / b := by |
| 229 | have hbpos : 0 < b := lt_of_lt_of_le zero_lt_one hb |
| 230 | apply (le_div_iff₀ hbpos).2 |
| 231 | calc |
| 232 | (b ^ k / b ^ j) * b = b ^ (k + 1) / b ^ j := by rw [pow_succ]; ring |
| 233 | _ ≤ 1 := (div_le_one (pow_pos hbpos j)).2 |
| 234 | (pow_le_pow_right₀ hb (Nat.succ_le_of_lt hkj)) |
| 235 | |
| 236 | theorem localized_derivative_tail_bound {m j k : ℕ} (hm : m < j) (hk : k < j) (z : ℝ × X) : |
| 237 | ‖iteratedFDeriv ℝ k (localizedTerm m (scale a ha j) j (a j)) z‖ ≤ (1 / 2 : ℝ) ^ j := by |
| 238 | have hb := scale_ge_one a ha j |
| 239 | have hbpos : (0 : ℝ) < scale a ha j := lt_of_lt_of_le zero_lt_one hb |
| 240 | calc |
| 241 | _ ≤ (((scale a ha j : ℝ) ^ k) / (scale a ha j : ℝ) ^ j) * templateBound (ha j) m j k := |
| 242 | localizedTerm_deriv_bound (ha j) hb m j k z |
| 243 | _ ≤ (1 / (scale a ha j : ℝ)) * boundSum a ha j := |
| 244 | mul_le_mul (power_ratio_le hb hk) (templateBound_le_boundSum a ha hm hk) |
| 245 | (templateBound_nonneg (ha j) m j k) (by positivity) |
| 246 | _ ≤ (1 / (scale a ha j : ℝ)) * ((1 / 2 : ℝ) ^ j * scale a ha j) := |
| 247 | mul_le_mul_of_nonneg_left (boundSum_le_scale a ha j) (by positivity) |
| 248 | _ = (1 / 2 : ℝ) ^ j := by field_simp |
| 249 | |
| 250 | def majorant (m k j : ℕ) : ℝ := |
| 251 | if m < j ∧ k < j then (1 / 2 : ℝ) ^ j |
| 252 | else (((scale a ha j : ℝ) ^ k) / (scale a ha j : ℝ) ^ j) * templateBound (ha j) m j k |
| 253 | |
| 254 | theorem majorant_summable (m k : ℕ) : Summable (majorant a ha m k) := by |
| 255 | apply summable_geometric_two.congr_cofinite |
| 256 | rw [Nat.cofinite_eq_atTop] |
| 257 | filter_upwards [eventually_gt_atTop (max m k)] with j hj |
| 258 | have hm : m < j := lt_of_le_of_lt (le_max_left _ _) hj |
| 259 | have hk : k < j := lt_of_le_of_lt (le_max_right _ _) hj |
| 260 | have hmk : m < j ∧ k < j := ⟨hm, hk⟩ |
| 261 | simp only [majorant, ite_eq_left hmk] |
| 262 | |
| 263 | theorem localized_derivative_bound (m k j : ℕ) (z : ℝ × X) : |
| 264 | ‖iteratedFDeriv ℝ k (localizedTerm m (scale a ha j) j (a j)) z‖ ≤ majorant a ha m k j := by |
| 265 | unfold majorant |
| 266 | split_ifs with h |
| 267 | · exact localized_derivative_tail_bound a ha h.1 h.2 z |
| 268 | · exact localizedTerm_deriv_bound (ha j) (scale_ge_one a ha j) m j k z |
| 269 | |
| 270 | theorem term_eventuallyEq_localized (m : ℕ) {z : ℝ × X} |
| 271 | (hz : ‖z.2‖ < (m : ℝ) + 1) (b : ℝ) (j : ℕ) (f : X → V) : |
| 272 | term b j f =ᶠ[𝓝 z] localizedTerm m b j f := by |
| 273 | have heq := (spatialCutoff_eventually_one m hz).comp_tendsto continuous_snd.continuousAt |
| 274 | filter_upwards [heq] with w hw |
| 275 | change spatialCutoff m w.2 = 1 at hw |
| 276 | simp only [localizedTerm, hw, one_smul] |
| 277 | |
| 278 | omit [FiniteDimensional ℝ X] in |
| 279 | private theorem iteratedFDeriv_eq_of_eventuallyEq {f g : (ℝ × X) → V} {z : ℝ × X} |
| 280 | (h : f =ᶠ[𝓝 z] g) (k : ℕ) : iteratedFDeriv ℝ k f z = iteratedFDeriv ℝ k g z := by |
| 281 | have h' : f =ᶠ[𝓝[univ] z] g := h.filter_mono nhdsWithin_le_nhds |
| 282 | simpa only [iteratedFDerivWithin_univ] using |
| 283 | h'.iteratedFDerivWithin_eq (𝕜 := ℝ) h.eq_of_nhds k |
| 284 | |
| 285 | /-- On any fixed compact spatial set, every joint derivative has a uniform |
| 286 | geometric tail bound. Time is unrestricted in this estimate. -/ |
| 287 | theorem derivative_tail_bound_on_compact {K : Set X} (hK : IsCompact K) (k : ℕ) : |
| 288 | ∀ᶠ j in atTop, ∀ z : ℝ × X, z.2 ∈ K → |
| 289 | ‖iteratedFDeriv ℝ k (term (scale a ha j) j (a j)) z‖ ≤ (1 / 2 : ℝ) ^ j := by |
| 290 | obtain ⟨m, hm⟩ := exists_compact_spatial_plateau hK |
| 291 | filter_upwards [eventually_gt_atTop (max m k)] with j hj z hz |
| 292 | rw [iteratedFDeriv_eq_of_eventuallyEq |
| 293 | (term_eventuallyEq_localized m (hm z.2 hz) (scale a ha j) j (a j)) k] |
| 294 | exact localized_derivative_tail_bound a ha |
| 295 | (lt_of_le_of_lt (le_max_left _ _) hj) (lt_of_le_of_lt (le_max_right _ _) hj) z |
| 296 | |
| 297 | section Complete |
| 298 | |
| 299 | variable [CompleteSpace V] |
| 300 | |
| 301 | def extension (z : ℝ × X) : V := ∑' j : ℕ, term (scale a ha j) j (a j) z |
| 302 | |
| 303 | def localizedExtension (m : ℕ) (z : ℝ × X) : V := |
| 304 | ∑' j : ℕ, localizedTerm m (scale a ha j) j (a j) z |
| 305 | |
| 306 | /-- The defining series converges at every point; its `tsum` is never being |
| 307 | used merely as the default value of a divergent series. -/ |
| 308 | theorem terms_summable (z : ℝ × X) : |
| 309 | Summable (fun j : ℕ => term (scale a ha j) j (a j) z) := by |
| 310 | apply Summable.of_norm_bounded_eventually_nat summable_geometric_two |
| 311 | have hK : IsCompact ({z.2} : Set X) := isCompact_singleton |
| 312 | filter_upwards [derivative_tail_bound_on_compact a ha hK 0] with j hj |
| 313 | simpa only [norm_iteratedFDeriv_zero] using hj z (mem_singleton z.2) |
| 314 | |
| 315 | theorem localized_derivatives_summable (m k : ℕ) (z : ℝ × X) : |
| 316 | Summable (fun j : ℕ => iteratedFDeriv ℝ k (localizedTerm m (scale a ha j) j (a j)) z) := |
| 317 | .of_norm_bounded (majorant_summable a ha m k) |
| 318 | (fun j => localized_derivative_bound a ha m k j z) |
| 319 | |
| 320 | theorem localizedExtension_contDiff (m : ℕ) : ContDiff ℝ ∞ (localizedExtension a ha m) := |
| 321 | contDiff_tsum (N := ⊤) (fun j => localizedTerm_contDiff (ha j) m (scale a ha j) j) |
| 322 | (fun k _ => majorant_summable a ha m k) |
| 323 | (fun k j z _ => localized_derivative_bound a ha m k j z) |
| 324 | |
| 325 | theorem localizedExtension_iteratedFDeriv (m k : ℕ) (z : ℝ × X) : |
| 326 | iteratedFDeriv ℝ k (localizedExtension a ha m) z = |
| 327 | ∑' j : ℕ, iteratedFDeriv ℝ k (localizedTerm m (scale a ha j) j (a j)) z := |
| 328 | iteratedFDeriv_tsum_apply (N := ⊤) |
| 329 | (fun j => localizedTerm_contDiff (ha j) m (scale a ha j) j) |
| 330 | (fun l _ => majorant_summable a ha m l) |
| 331 | (fun l j w _ => localized_derivative_bound a ha m l j w) le_top z |
| 332 | |
| 333 | omit [CompleteSpace V] in |
| 334 | theorem extension_eq_localized (m : ℕ) (z : ℝ × X) (hz : spatialCutoff m z.2 = 1) : |
| 335 | extension a ha z = localizedExtension a ha m z := by |
| 336 | apply tsum_congr |
| 337 | intro j |
| 338 | simp only [localizedTerm, hz, one_smul] |
| 339 | |
| 340 | omit [CompleteSpace V] in |
| 341 | theorem extension_eventuallyEq_localized (m : ℕ) {z : ℝ × X} |
| 342 | (hz : ‖z.2‖ < (m : ℝ) + 1) : |
| 343 | extension a ha =ᶠ[𝓝 z] localizedExtension a ha m := by |
| 344 | have heq := (spatialCutoff_eventually_one m hz).comp_tendsto continuous_snd.continuousAt |
| 345 | filter_upwards [heq] with w hw |
| 346 | exact extension_eq_localized a ha m w hw |
| 347 | |
| 348 | /-- Joint smoothness in time and space follows from local equality with an |
| 349 | all-order uniformly convergent smooth series. -/ |
| 350 | theorem extension_contDiff : ContDiff ℝ ∞ (extension a ha) := by |
| 351 | rw [contDiff_iff_contDiffAt] |
| 352 | intro z |
| 353 | obtain ⟨m, hm⟩ := exists_spatial_plateau z.2 |
| 354 | exact (localizedExtension_contDiff a ha m).contDiffAt.congr_of_eventuallyEq |
| 355 | (extension_eventuallyEq_localized a ha m hm) |
| 356 | |
| 357 | theorem derivatives_summable (k : ℕ) (z : ℝ × X) : |
| 358 | Summable (fun j : ℕ => iteratedFDeriv ℝ k (term (scale a ha j) j (a j)) z) := by |
| 359 | obtain ⟨m, hm⟩ := exists_spatial_plateau z.2 |
| 360 | apply (localized_derivatives_summable a ha m k z).congr |
| 361 | intro j |
| 362 | exact (iteratedFDeriv_eq_of_eventuallyEq |
| 363 | (term_eventuallyEq_localized m hm (scale a ha j) j (a j)) k).symm |
| 364 | |
| 365 | theorem extension_iteratedFDeriv (k : ℕ) (z : ℝ × X) : |
| 366 | iteratedFDeriv ℝ k (extension a ha) z = |
| 367 | ∑' j : ℕ, iteratedFDeriv ℝ k (term (scale a ha j) j (a j)) z := by |
| 368 | obtain ⟨m, hm⟩ := exists_spatial_plateau z.2 |
| 369 | rw [iteratedFDeriv_eq_of_eventuallyEq (extension_eventuallyEq_localized a ha m hm) k, |
| 370 | localizedExtension_iteratedFDeriv] |
| 371 | apply tsum_congr |
| 372 | intro j |
| 373 | exact (iteratedFDeriv_eq_of_eventuallyEq |
| 374 | (term_eventuallyEq_localized m hm (scale a ha j) j (a j)) k).symm |
| 375 | |
| 376 | /-- Uniform convergence of every full derivative series on compact spatial |
| 377 | sets, uniformly over all real times. -/ |
| 378 | theorem derivatives_tendstoUniformlyOn_compact {K : Set X} (hK : IsCompact K) (k : ℕ) : |
| 379 | TendstoUniformlyOn |
| 380 | (fun N : ℕ => fun z : ℝ × X => |
| 381 | ∑ j ∈ Finset.range N, iteratedFDeriv ℝ k (term (scale a ha j) j (a j)) z) |
| 382 | (iteratedFDeriv ℝ k (extension a ha)) atTop (univ ×ˢ K) := by |
| 383 | rw [show iteratedFDeriv ℝ k (extension a ha) = |
| 384 | (fun z => ∑' j : ℕ, iteratedFDeriv ℝ k (term (scale a ha j) j (a j)) z) |
| 385 | from funext (extension_iteratedFDeriv a ha k)] |
| 386 | apply tendstoUniformlyOn_tsum_nat_eventually summable_geometric_two |
| 387 | filter_upwards [derivative_tail_bound_on_compact a ha hK k] with j hj z hz |
| 388 | exact hj z hz.2 |
| 389 | |
| 390 | omit [FiniteDimensional ℝ X] [CompleteSpace V] in |
| 391 | theorem time_iteratedDeriv {f : (ℝ × X) → V} (hf : ContDiff ℝ ∞ f) |
| 392 | (k : ℕ) (t : ℝ) (x : X) : |
| 393 | iteratedDeriv k (fun s : ℝ => f (s, x)) t = |
| 394 | iteratedFDeriv ℝ k f (t, x) (fun _ : Fin k => (1, (0 : X))) := by |
| 395 | let L : ℝ →L[ℝ] (ℝ × X) := ContinuousLinearMap.inl ℝ ℝ X |
| 396 | let g : (ℝ × X) → V := fun z => f (z + (0, x)) |
| 397 | have hg : ContDiff ℝ ∞ g := hf.comp (contDiff_id.add contDiff_const) |
| 398 | have heq : (fun s : ℝ => f (s, x)) = g ∘ L := by |
| 399 | funext s |
| 400 | simp [g, L] |
| 401 | rw [heq, iteratedDeriv_eq_iteratedFDeriv, |
| 402 | L.iteratedFDeriv_comp_right hg t (nat_le_infty k)] |
| 403 | change iteratedFDeriv ℝ k (fun z => f (z + (0, x))) (t, 0) |
| 404 | (fun _ : Fin k => (1, (0 : X))) = _ |
| 405 | rw [iteratedFDeriv_comp_add_right] |
| 406 | simp |
| 407 | |
| 408 | /-- All prescribed time jets hold as equalities of smooth spatial functions. -/ |
| 409 | theorem extension_time_jets (k : ℕ) (x : X) : |
| 410 | iteratedDeriv k (fun t : ℝ => extension a ha (t, x)) 0 = a k x := by |
| 411 | rw [time_iteratedDeriv (extension_contDiff a ha), extension_iteratedFDeriv, |
| 412 | ContinuousMultilinearMap.tsum_eval (derivatives_summable a ha k (0, x))] |
| 413 | have hterm (j : ℕ) : |
| 414 | iteratedFDeriv ℝ k (term (scale a ha j) j (a j)) (0, x) |
| 415 | (fun _ : Fin k => (1, (0 : X))) = if k = j then a j x else 0 := by |
| 416 | rw [← time_iteratedDeriv (term_contDiff (ha j) (scale a ha j) j)] |
| 417 | exact BorelExtension.iteratedDeriv_term_zero (scale a ha j) j k (a j x) |
| 418 | simp only [hterm] |
| 419 | rw [tsum_eq_single k] |
| 420 | · simp |
| 421 | · intro j hj |
| 422 | simp [Ne.symm hj] |
| 423 | |
| 424 | /-- Taking any number of spatial derivatives of the boundary time-jet |
| 425 | function gives the corresponding derivative of the prescribed coefficient. -/ |
| 426 | theorem extension_mixed_boundary_jets (k l : ℕ) (x : X) : |
| 427 | iteratedFDeriv ℝ l (fun y : X => |
| 428 | iteratedDeriv k (fun t : ℝ => extension a ha (t, y)) 0) x = |
| 429 | iteratedFDeriv ℝ l (a k) x := by |
| 430 | rw [show (fun y : X => iteratedDeriv k (fun t : ℝ => extension a ha (t, y)) 0) = a k |
| 431 | from funext (extension_time_jets a ha k)] |
| 432 | |
| 433 | omit [CompleteSpace V] in |
| 434 | theorem extension_eq_series (z : ℝ × X) : |
| 435 | extension a ha z = ∑' j : ℕ, |
| 436 | (SmoothCutoffs.cutoff ((scale a ha j : ℝ) * z.1) * |
| 437 | (z.1 ^ j / (j.factorial : ℝ))) • a j z.2 := by |
| 438 | simp only [extension, term, BorelExtension.term, BorelExtension.monomial, smul_smul] |
| 439 | |
| 440 | omit [CompleteSpace V] in |
| 441 | theorem extension_zero_of_one_le_abs {z : ℝ × X} (hz : 1 ≤ |z.1|) : extension a ha z = 0 := by |
| 442 | calc |
| 443 | extension a ha z = ∑' _ : ℕ, (0 : V) := by |
| 444 | apply tsum_congr |
| 445 | intro j |
| 446 | have harg : 1 ≤ |(scale a ha j : ℝ) * z.1| := by |
| 447 | rw [abs_mul, abs_of_nonneg (Nat.cast_nonneg _)] |
| 448 | exact one_le_mul_of_one_le_of_one_le (scale_ge_one a ha j) hz |
| 449 | simp only [term, BorelExtension.term, |
| 450 | SmoothCutoffs.cutoff_zero_of_one_le_abs harg, zero_smul] |
| 451 | _ = 0 := tsum_zero |
| 452 | |
| 453 | omit [CompleteSpace V] in |
| 454 | theorem extension_time_support : tsupport (extension a ha) ⊆ Icc (-1 : ℝ) 1 ×ˢ (univ : Set X) := by |
| 455 | apply closure_minimal _ (isClosed_Icc.prod isClosed_univ) |
| 456 | intro z hz |
| 457 | have ht : |z.1| < 1 := lt_of_not_ge fun h => hz (extension_zero_of_one_le_abs a ha h) |
| 458 | exact ⟨abs_le.mp ht.le, mem_univ _⟩ |
| 459 | |
| 460 | omit [CompleteSpace V] in |
| 461 | /-- Spatial periods of every coefficient pass to the same actual series. -/ |
| 462 | theorem extension_add_period (p : X) (hp : ∀ j x, a j (x + p) = a j x) |
| 463 | (t : ℝ) (x : X) : extension a ha (t, x + p) = extension a ha (t, x) := by |
| 464 | apply tsum_congr |
| 465 | intro j |
| 466 | simp only [term, hp] |
| 467 | |
| 468 | omit [CompleteSpace V] in |
| 469 | /-- A zero spatial slice of every coefficient stays identically zero. -/ |
| 470 | theorem extension_zero_of_coefficients_zero {x : X} (hx : ∀ j, a j x = 0) (t : ℝ) : |
| 471 | extension a ha (t, x) = 0 := by |
| 472 | simp only [extension, term, BorelExtension.term, BorelExtension.monomial, hx, |
| 473 | smul_zero, tsum_zero] |
| 474 | |
| 475 | def rightExtension (T : ℝ) (z : ℝ × X) : V := extension a ha (z.1 - T, z.2) |
| 476 | |
| 477 | theorem rightExtension_contDiff (T : ℝ) : ContDiff ℝ ∞ (rightExtension a ha T) := |
| 478 | (extension_contDiff a ha).comp ((contDiff_fst.sub contDiff_const).prodMk contDiff_snd) |
| 479 | |
| 480 | theorem rightExtension_time_jets (T : ℝ) (k : ℕ) (x : X) : |
| 481 | iteratedDeriv k (fun t : ℝ => rightExtension a ha T (t, x)) T = a k x := by |
| 482 | have h := congrFun (iteratedDeriv_comp_add_const k |
| 483 | (fun t : ℝ => extension a ha (t, x)) (-T)) T |
| 484 | simp only [add_neg_cancel] at h |
| 485 | simpa only [rightExtension, sub_eq_add_neg] using h.trans (extension_time_jets a ha k x) |
| 486 | |
| 487 | theorem rightExtension_right_jets (T : ℝ) (k : ℕ) (x : X) : |
| 488 | iteratedDerivWithin k (fun t : ℝ => rightExtension a ha T (t, x)) (Ici T) T = a k x := by |
| 489 | have hs : ContDiff ℝ ∞ (fun t : ℝ => rightExtension a ha T (t, x)) := |
| 490 | (rightExtension_contDiff a ha T).comp (contDiff_id.prodMk contDiff_const) |
| 491 | rw [iteratedDerivWithin_eq_iteratedFDerivWithin, |
| 492 | iteratedFDerivWithin_eq_iteratedFDeriv (uniqueDiffOn_Ici T) |
| 493 | (hs.of_le (nat_le_infty k)).contDiffAt (mem_Ici.mpr le_rfl)] |
| 494 | exact rightExtension_time_jets a ha T k x |
| 495 | |
| 496 | omit [CompleteSpace V] in |
| 497 | theorem rightExtension_add_period (T : ℝ) (p : X) (hp : ∀ j x, a j (x + p) = a j x) |
| 498 | (t : ℝ) (x : X) : rightExtension a ha T (t, x + p) = rightExtension a ha T (t, x) := |
| 499 | extension_add_period a ha p hp (t - T) x |
| 500 | |
| 501 | omit [CompleteSpace V] in |
| 502 | theorem rightExtension_zero_from (T : ℝ) {t : ℝ} (ht : T + 1 ≤ t) (x : X) : |
| 503 | rightExtension a ha T (t, x) = 0 := by |
| 504 | apply extension_zero_of_one_le_abs |
| 505 | exact (show 1 ≤ t - T by linarith).trans (le_abs_self _) |
| 506 | |
| 507 | include ha in |
| 508 | /-- Jointly smooth realization for arbitrary smooth spatial coefficients in |
| 509 | a finite-dimensional space, with no global growth restriction. -/ |
| 510 | theorem exists_smooth_extension : |
| 511 | ∃ F : (ℝ × X) → V, ContDiff ℝ ∞ F ∧ |
| 512 | tsupport F ⊆ Icc (-1 : ℝ) 1 ×ˢ (univ : Set X) ∧ |
| 513 | (∀ k : ℕ, ∀ x : X, iteratedDeriv k (fun t : ℝ => F (t, x)) 0 = a k x) := |
| 514 | ⟨extension a ha, extension_contDiff a ha, extension_time_support a ha, extension_time_jets a ha⟩ |
| 515 | |
| 516 | end Complete |
| 517 | end Family |
| 518 | |
| 519 | end NavierStokes.SpatialBorelExtension |