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.PrimaryCopyBounds |
| 2 | import NavierStokes.PhysicalClassBounds |
| 3 | import NavierStokes.FlatZeroExtension |
| 4 | import NavierStokes.VariableGaugeMean |
| 5 | |
| 6 | /-! |
| 7 | # Smooth zero extension across both moving radial edges |
| 8 | |
| 9 | The raw coefficient is used only inside the annulus. Gaussian bounds on |
| 10 | its actual full derivative tensors prove that its literal zero extension |
| 11 | has all derivatives zero on both moving boundary hypersurfaces. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.WaveEdgeExtension |
| 17 | |
| 18 | open Set Filter Function PrimaryCopyBounds |
| 19 | open scoped Topology ContDiff |
| 20 | |
| 21 | variable {D E : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 22 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 23 | |
| 24 | noncomputable def window (ρ : D → ℝ) (a b : ℝ) : Set D := |
| 25 | {x | a < ρ x ∧ ρ x < b} |
| 26 | |
| 27 | noncomputable def windowDomain (Ω : Set D) (ρ : D → ℝ) (a b : ℝ) : Set D := |
| 28 | Ω ∩ window ρ a b |
| 29 | |
| 30 | noncomputable def extension (ρ : D → ℝ) (a b : ℝ) (f : D → E) (x : D) : E := |
| 31 | by classical exact if x ∈ window ρ a b then f x else 0 |
| 32 | |
| 33 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 34 | theorem extension_inside (ρ : D → ℝ) (a b : ℝ) (f : D → E) {x : D} |
| 35 | (hx : x ∈ window ρ a b) : extension ρ a b f x = f x := by classical exact ite_eq_left hx |
| 36 | |
| 37 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 38 | theorem extension_outside (ρ : D → ℝ) (a b : ℝ) (f : D → E) {x : D} |
| 39 | (hx : x ∉ window ρ a b) : extension ρ a b f x = 0 := by classical exact ite_eq_right hx |
| 40 | |
| 41 | omit [NormedSpace ℝ D] in |
| 42 | theorem windowDomain_open {Ω : Set D} (hΩ : IsOpen Ω) {ρ : D → ℝ} |
| 43 | (hρ : ContinuousOn ρ Ω) (a b : ℝ) : IsOpen (windowDomain Ω ρ a b) := by |
| 44 | apply isOpen_iff_mem_nhds.mpr |
| 45 | intro x hx |
| 46 | exact inter_mem (hΩ.mem_nhds hx.1) |
| 47 | ((hρ x hx.1).continuousAt (hΩ.mem_nhds hx.1) (isOpen_Ioo.mem_nhds hx.2)) |
| 48 | |
| 49 | omit [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 50 | theorem extension_germ_inside {ρ : D → ℝ} (a b : ℝ) (f : D → E) {x : D} |
| 51 | (hρ : ContinuousAt ρ x) (hx : x ∈ window ρ a b) : |
| 52 | extension ρ a b f =ᶠ[𝓝 x] f := by |
| 53 | filter_upwards [hρ (isOpen_Ioo.mem_nhds hx)] with y hy |
| 54 | exact extension_inside ρ a b f hy |
| 55 | |
| 56 | omit [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 57 | theorem extension_germ_left {ρ : D → ℝ} (a b : ℝ) (f : D → E) {x : D} |
| 58 | (hρ : ContinuousAt ρ x) (hx : ρ x < a) : |
| 59 | extension ρ a b f =ᶠ[𝓝 x] fun _ => 0 := by |
| 60 | filter_upwards [hρ (Iio_mem_nhds hx)] with y hy |
| 61 | exact extension_outside ρ a b f (fun hw => (not_lt_of_ge hy.le) hw.1) |
| 62 | |
| 63 | omit [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 64 | theorem extension_germ_right {ρ : D → ℝ} (a b : ℝ) (f : D → E) {x : D} |
| 65 | (hρ : ContinuousAt ρ x) (hx : b < ρ x) : |
| 66 | extension ρ a b f =ᶠ[𝓝 x] fun _ => 0 := by |
| 67 | filter_upwards [hρ (Ioi_mem_nhds hx)] with y hy |
| 68 | exact extension_outside ρ a b f (fun hw => (not_lt_of_ge hy.le) hw.2) |
| 69 | |
| 70 | /-- A local bound on actual tensors from the interior side of an edge. -/ |
| 71 | def EdgeControl (ρ : D → ℝ) (a b : ℝ) (d : D → ℝ) (c : ℝ) |
| 72 | (g : D → E) (x : D) : Prop := |
| 73 | ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ᶠ y in 𝓝 x, y ∈ window ρ a b → |
| 74 | 0 < d y ∧ ‖g y‖ ≤ C * FlatCutoff.edge c (d y) / (d y) ^ N |
| 75 | |
| 76 | /-- A smooth defining function may replace the straight edge coordinate. |
| 77 | Its actual derivative controls its distance by ambient distance. -/ |
| 78 | theorem hasFDerivAt_extension_boundary {ρ d : D → ℝ} {a b c : ℝ} |
| 79 | {g : D → E} {x : D} (hc : 0 < c) (hx : x ∉ window ρ a b) |
| 80 | (hd : DifferentiableAt ℝ d x) (hdx : d x = 0) |
| 81 | (hB : EdgeControl ρ a b d c g x) : |
| 82 | HasFDerivAt (extension ρ a b g) (0 : D →L[ℝ] E) x := by |
| 83 | obtain ⟨C, hC, N, hbound⟩ := hB |
| 84 | obtain ⟨K, hK, hLip⟩ := hd.isBigO_sub.exists_pos |
| 85 | have hdist : ∀ᶠ y in 𝓝 x, ‖d y‖ ≤ K * ‖y - x‖ := by |
| 86 | simpa only [hdx, sub_zero] using hLip.bound |
| 87 | rw [hasFDerivAt_iff_isLittleO] |
| 88 | simp only [extension_outside ρ a b g hx, _root_.zero_apply, sub_zero] |
| 89 | apply Asymptotics.IsLittleO.of_bound |
| 90 | intro ε hε |
| 91 | have hlim : Tendsto (fun t : ℝ => C * FlatCutoff.edge c t / t ^ (N + 1)) |
| 92 | (𝓝 0) (𝓝 0) := by |
| 93 | simpa only [mul_zero, mul_div_assoc] using |
| 94 | (FlatZeroExtension.edge_div_pow_tendsto_zero hc (N + 1)).const_mul C |
| 95 | have hdc : Tendsto d (𝓝 x) (𝓝 0) := by simpa only [ContinuousAt, hdx] using hd.continuousAt |
| 96 | have hsmall : ∀ᶠ y in 𝓝 x, C * FlatCutoff.edge c (d y) / (d y) ^ (N + 1) < ε / K := |
| 97 | (hlim.comp hdc).eventually (Iio_mem_nhds (div_pos hε hK)) |
| 98 | filter_upwards [hbound, hdist, hsmall] with y hy hdy hsy |
| 99 | by_cases hi : y ∈ window ρ a b |
| 100 | · rw [extension_inside ρ a b g hi] |
| 101 | obtain ⟨hpos, hgb⟩ := hy hi |
| 102 | have hs : C * FlatCutoff.edge c (d y) / (d y) ^ N ≤ (ε / K) * d y := by |
| 103 | apply (div_le_iff₀ hpos).mp |
| 104 | simpa only [div_div, pow_succ] using hsy.le |
| 105 | have hdle : d y ≤ K * ‖y - x‖ := by |
| 106 | simpa only [Real.norm_eq_abs, abs_of_pos hpos] using hdy |
| 107 | calc |
| 108 | _ ≤ C * FlatCutoff.edge c (d y) / (d y) ^ N := hgb |
| 109 | _ ≤ (ε / K) * d y := hs |
| 110 | _ ≤ (ε / K) * (K * ‖y - x‖) := mul_le_mul_of_nonneg_left hdle (div_pos hε hK).le |
| 111 | _ = ε * ‖y - x‖ := by field_simp |
| 112 | · rw [extension_outside ρ a b g hi, norm_zero] |
| 113 | exact mul_nonneg hε.le (norm_nonneg _) |
| 114 | |
| 115 | noncomputable def logCoordinate (ρ : D → ℝ) (a : ℝ) (x : D) : ℝ := |
| 116 | WeightedRadialPrimitive.logPosition a (ρ x) |
| 117 | |
| 118 | theorem logCoordinate_differentiableAt {ρ : D → ℝ} {a : ℝ} (ha : 0 < a) {x : D} |
| 119 | (hρ : DifferentiableAt ℝ ρ x) (hx : 0 < ρ x) : |
| 120 | DifferentiableAt ℝ (logCoordinate ρ a) x := by |
| 121 | change DifferentiableAt ℝ (fun y => Real.log (ρ y / a)) x |
| 122 | have hdiv : DifferentiableAt ℝ (fun y => ρ y / a) x := by |
| 123 | simpa only [div_eq_mul_inv] using hρ.mul_const a⁻¹ |
| 124 | exact hdiv.log (div_ne_zero hx.ne' ha.ne') |
| 125 | |
| 126 | def BoundaryControls (Ω : Set D) (ρ : D → ℝ) (a b cL cR : ℝ) (f : D → E) : Prop := |
| 127 | (∀ n x, x ∈ Ω → ρ x = a → |
| 128 | EdgeControl ρ a b (logCoordinate ρ a) cL (iteratedFDeriv ℝ n f) x) ∧ |
| 129 | (∀ n x, x ∈ Ω → ρ x = b → |
| 130 | EdgeControl ρ a b (fun y => WeightedRadialPrimitive.logLength a b - logCoordinate ρ a y) |
| 131 | cR (iteratedFDeriv ℝ n f) x) |
| 132 | |
| 133 | noncomputable def extendedJets (ρ : D → ℝ) (a b : ℝ) (f : D → E) (x : D) : |
| 134 | FormalMultilinearSeries ℝ D E := fun n => extension ρ a b (iteratedFDeriv ℝ n f) x |
| 135 | |
| 136 | private theorem tensor_hasFDerivAt {f : D → E} {x : D} (hf : ContDiffAt ℝ ∞ f x) (n : ℕ) : |
| 137 | HasFDerivAt (iteratedFDeriv ℝ n f) (iteratedFDeriv ℝ (n + 1) f x).curryLeft x := by |
| 138 | have hi : ContDiffAt ℝ 1 (iteratedFDeriv ℝ n f) x := |
| 139 | hf.iteratedFDeriv_right (by exact_mod_cast (le_top : 1 + (n : ℕ∞) ≤ ⊤)) |
| 140 | have hd := (hi.differentiableAt (by simp)).hasFDerivAt |
| 141 | simp only [fderiv_iteratedFDeriv, Function.comp_apply] at hd |
| 142 | exact hd |
| 143 | |
| 144 | theorem extendedJets_hasFDerivAt {Ω : Set D} (hΩ : IsOpen Ω) {ρ : D → ℝ} |
| 145 | (hρ : ContDiffOn ℝ ∞ ρ Ω) {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) |
| 146 | (hcL : 0 < cL) (hcR : 0 < cR) {f : D → E} |
| 147 | (hf : ContDiffOn ℝ ∞ f (windowDomain Ω ρ a b)) |
| 148 | (hB : BoundaryControls Ω ρ a b cL cR f) |
| 149 | (n : ℕ) {x : D} (hx : x ∈ Ω) : |
| 150 | HasFDerivAt (fun y => extendedJets ρ a b f y n) |
| 151 | (extendedJets ρ a b f x (n + 1)).curryLeft x := by |
| 152 | have hρc := (hρ.contDiffAt (hΩ.mem_nhds hx)).continuousAt |
| 153 | have hρd := (hρ.contDiffAt (hΩ.mem_nhds hx)).differentiableAt (by simp) |
| 154 | change HasFDerivAt (extension ρ a b (iteratedFDeriv ℝ n f)) |
| 155 | (extension ρ a b (iteratedFDeriv ℝ (n + 1) f) x).curryLeft x |
| 156 | have hcurry : (0 : D[×(n + 1)]→L[ℝ] E).curryLeft = 0 := by |
| 157 | ext u v |
| 158 | rfl |
| 159 | rcases lt_trichotomy (ρ x) a with hleft | heq | hleft |
| 160 | · have hn : x ∉ window ρ a b := fun h => (not_lt_of_ge hleft.le) h.1 |
| 161 | rw [extension_outside ρ a b _ hn, hcurry] |
| 162 | simpa using (hasFDerivAt_const (0 : D[×n]→L[ℝ] E) x).congr_of_eventuallyEq |
| 163 | (extension_germ_left a b _ hρc hleft) |
| 164 | · have hn : x ∉ window ρ a b := by simp only [window, Set.mem_ofPred_eq, heq, lt_self_iff_false, false_and, not_false_eq_true] |
| 165 | rw [extension_outside ρ a b _ hn, hcurry] |
| 166 | have hlog := logCoordinate_differentiableAt ha hρd (by simpa only [heq] using ha) |
| 167 | have hzero : logCoordinate ρ a x = 0 := by |
| 168 | simp only [logCoordinate, WeightedRadialPrimitive.logPosition, heq, div_self ha.ne', Real.log_one] |
| 169 | simpa using hasFDerivAt_extension_boundary hcL hn hlog hzero (hB.1 n x hx heq) |
| 170 | · rcases lt_trichotomy (ρ x) b with hright | heq | hright |
| 171 | · have hin : x ∈ window ρ a b := ⟨hleft, hright⟩ |
| 172 | rw [extension_inside ρ a b _ hin] |
| 173 | have hd := tensor_hasFDerivAt |
| 174 | (hf.contDiffAt ((windowDomain_open hΩ hρ.continuousOn a b).mem_nhds ⟨hx, hin⟩)) n |
| 175 | exact hd.congr_of_eventuallyEq (extension_germ_inside a b _ hρc hin) |
| 176 | · have hn : x ∉ window ρ a b := fun h => by simpa only [heq, lt_self_iff_false] using h.2 |
| 177 | rw [extension_outside ρ a b _ hn, hcurry] |
| 178 | have hlog := logCoordinate_differentiableAt ha hρd (by simpa only [heq] using ha.trans hab) |
| 179 | have hzero : WeightedRadialPrimitive.logLength a b - logCoordinate ρ a x = 0 := by |
| 180 | simp only [logCoordinate, heq, WeightedRadialPrimitive.logPosition, |
| 181 | WeightedRadialPrimitive.logLength, sub_self] |
| 182 | simpa using hasFDerivAt_extension_boundary hcR hn ((differentiableAt_const _).sub hlog) |
| 183 | hzero (hB.2 n x hx heq) |
| 184 | · have hn : x ∉ window ρ a b := fun h => (not_lt_of_ge hright.le) h.2 |
| 185 | rw [extension_outside ρ a b _ hn, hcurry] |
| 186 | simpa using (hasFDerivAt_const (0 : D[×n]→L[ℝ] E) x).congr_of_eventuallyEq |
| 187 | (extension_germ_right a b _ hρc hright) |
| 188 | |
| 189 | theorem hasFTaylorSeriesUpToOn_extension {Ω : Set D} (hΩ : IsOpen Ω) {ρ : D → ℝ} |
| 190 | (hρ : ContDiffOn ℝ ∞ ρ Ω) {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) |
| 191 | (hcL : 0 < cL) (hcR : 0 < cR) {f : D → E} |
| 192 | (hf : ContDiffOn ℝ ∞ f (windowDomain Ω ρ a b)) |
| 193 | (hB : BoundaryControls Ω ρ a b cL cR f) : |
| 194 | HasFTaylorSeriesUpToOn ∞ (extension ρ a b f) (extendedJets ρ a b f) Ω := by |
| 195 | classical |
| 196 | constructor |
| 197 | · intro x hx |
| 198 | by_cases hi : x ∈ window ρ a b |
| 199 | · simp only [extendedJets, extension, ite_eq_left hi] |
| 200 | rfl |
| 201 | · simp only [extendedJets, extension, ite_eq_right hi] |
| 202 | rfl |
| 203 | · intro n _ x hx |
| 204 | exact (extendedJets_hasFDerivAt hΩ hρ ha hab hcL hcR hf hB n hx).hasFDerivWithinAt |
| 205 | · intro n _ x hx |
| 206 | exact (extendedJets_hasFDerivAt hΩ hρ ha hab hcL hcR hf hB n hx).continuousAt.continuousWithinAt |
| 207 | |
| 208 | theorem extension_contDiffOn {Ω : Set D} (hΩ : IsOpen Ω) {ρ : D → ℝ} |
| 209 | (hρ : ContDiffOn ℝ ∞ ρ Ω) {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) |
| 210 | (hcL : 0 < cL) (hcR : 0 < cR) {f : D → E} |
| 211 | (hf : ContDiffOn ℝ ∞ f (windowDomain Ω ρ a b)) |
| 212 | (hB : BoundaryControls Ω ρ a b cL cR f) : |
| 213 | ContDiffOn ℝ ∞ (extension ρ a b f) Ω := |
| 214 | (hasFTaylorSeriesUpToOn_extension hΩ hρ ha hab hcL hcR hf hB).contDiffOn |
| 215 | |
| 216 | theorem iteratedFDeriv_extension {Ω : Set D} (hΩ : IsOpen Ω) {ρ : D → ℝ} |
| 217 | (hρ : ContDiffOn ℝ ∞ ρ Ω) {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) |
| 218 | (hcL : 0 < cL) (hcR : 0 < cR) {f : D → E} |
| 219 | (hf : ContDiffOn ℝ ∞ f (windowDomain Ω ρ a b)) |
| 220 | (hB : BoundaryControls Ω ρ a b cL cR f) (n : ℕ) {x : D} (hx : x ∈ Ω) : |
| 221 | iteratedFDeriv ℝ n (extension ρ a b f) x = extension ρ a b (iteratedFDeriv ℝ n f) x := by |
| 222 | have h := hasFTaylorSeriesUpToOn_extension hΩ hρ ha hab hcL hcR hf hB |
| 223 | have he := (h.eq_iteratedFDerivWithin_of_uniqueDiffOn |
| 224 | (ENat.natCast_lt_of_coe_top_le_withTop le_rfl n).le hΩ.uniqueDiffOn hx).symm |
| 225 | rwa [iteratedFDerivWithin_of_isOpen n hΩ hx] at he |
| 226 | |
| 227 | theorem iteratedFDeriv_extension_edge {Ω : Set D} (hΩ : IsOpen Ω) {ρ : D → ℝ} |
| 228 | (hρ : ContDiffOn ℝ ∞ ρ Ω) {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) |
| 229 | (hcL : 0 < cL) (hcR : 0 < cR) {f : D → E} |
| 230 | (hf : ContDiffOn ℝ ∞ f (windowDomain Ω ρ a b)) |
| 231 | (hB : BoundaryControls Ω ρ a b cL cR f) (n : ℕ) {x : D} (hx : x ∈ Ω) |
| 232 | (hedge : ρ x = a ∨ ρ x = b) : |
| 233 | iteratedFDeriv ℝ n (extension ρ a b f) x = 0 := by |
| 234 | rw [iteratedFDeriv_extension hΩ hρ ha hab hcL hcR hf hB n hx] |
| 235 | apply extension_outside |
| 236 | rcases hedge with hl | hr |
| 237 | · intro h; exact (not_lt_of_ge hl.le) h.1 |
| 238 | · intro h; exact (not_lt_of_ge hr.ge) h.2 |
| 239 | |
| 240 | /-! ## Explicit two-edge Gaussian bounds -/ |
| 241 | |
| 242 | theorem sqrt_zeta {L t : ℝ} (ht : t ∈ Ioo 0 L) (cL cR : ℝ) : |
| 243 | Real.sqrt (WeightedRadialPrimitive.zeta cL cR L t) = |
| 244 | WeightedRadialPrimitive.zeta (cL / 2) (cR / 2) L t := by |
| 245 | rw [Real.sqrt_eq_rpow, PhysicalClassBounds.zeta_rpow ht] |
| 246 | congr 1 <;> ring |
| 247 | |
| 248 | theorem half_weight_left {cL cR L t : ℝ} (hcR : 0 ≤ cR) (ht : 0 < t) |
| 249 | (ht1 : t ≤ 1) (htL : t ≤ L / 2) (m : ℕ) : |
| 250 | (max 1 (WeightedRadialPrimitive.delta L t)⁻¹) ^ m * |
| 251 | Real.sqrt (WeightedRadialPrimitive.zeta cL cR L t) ≤ |
| 252 | FlatCutoff.edge (cL / 2) t / t ^ m := by |
| 253 | have hinside : t ∈ Ioo 0 L := ⟨ht, by linarith⟩ |
| 254 | have hδ : WeightedRadialPrimitive.delta L t = t := by |
| 255 | rw [WeightedRadialPrimitive.delta_left_half htL, min_eq_right ht1] |
| 256 | have hi : 1 ≤ t⁻¹ := (one_le_inv₀ ht).mpr ht1 |
| 257 | rw [hδ, max_eq_right hi, sqrt_zeta hinside] |
| 258 | have he : WeightedRadialPrimitive.zeta (cL / 2) (cR / 2) L t ≤ FlatCutoff.edge (cL / 2) t := |
| 259 | mul_le_of_le_one_right (FlatCutoff.edge_nonneg _ _) |
| 260 | (WeightedRadialPrimitive.edge_le_one (div_nonneg hcR (by norm_num)) _) |
| 261 | calc |
| 262 | _ ≤ (t⁻¹) ^ m * FlatCutoff.edge (cL / 2) t := |
| 263 | mul_le_mul_of_nonneg_left he (pow_nonneg (inv_nonneg.mpr ht.le) _) |
| 264 | _ = _ := by simp only [inv_pow, div_eq_mul_inv, mul_comm] |
| 265 | |
| 266 | theorem half_weight_right {cL cR L t : ℝ} (hcL : 0 ≤ cL) (ht : t < L) |
| 267 | (ht1 : L - t ≤ 1) (htL : L / 2 ≤ t) (m : ℕ) : |
| 268 | (max 1 (WeightedRadialPrimitive.delta L t)⁻¹) ^ m * |
| 269 | Real.sqrt (WeightedRadialPrimitive.zeta cL cR L t) ≤ |
| 270 | FlatCutoff.edge (cR / 2) (L - t) / (L - t) ^ m := by |
| 271 | have h := half_weight_left (cL := cR) (cR := cL) hcL (sub_pos.mpr ht) ht1 |
| 272 | (show L - t ≤ L / 2 by linarith) m |
| 273 | simpa only [WeightedRadialPrimitive.delta, WeightedRadialPrimitive.zeta, |
| 274 | sub_sub_cancel, min_comm (L - t) t, mul_comm] using h |
| 275 | |
| 276 | noncomputable def flatWeight (ρ : D → ℝ) (a b cL cR : ℝ) (x : D) : ℝ := |
| 277 | WeightedRadialPrimitive.zeta cL cR (WeightedRadialPrimitive.logLength a b) (logCoordinate ρ a x) |
| 278 | |
| 279 | noncomputable def edgeGrowth (ρ : D → ℝ) (a b : ℝ) (x : D) : ℝ := |
| 280 | max 1 (WeightedRadialPrimitive.delta (WeightedRadialPrimitive.logLength a b) (logCoordinate ρ a x))⁻¹ |
| 281 | |
| 282 | omit [NormedAddCommGroup D] [NormedSpace ℝ D] in |
| 283 | theorem edgeGrowth_one_le (ρ : D → ℝ) (a b : ℝ) (x : D) : 1 ≤ edgeGrowth ρ a b x := |
| 284 | le_max_left _ _ |
| 285 | |
| 286 | omit [NormedSpace ℝ D] [NormedSpace ℝ E] in |
| 287 | private theorem edgeControl_of_factor {ρ d H P : D → ℝ} {a b c C : ℝ} |
| 288 | {g : D → E} {x : D} {N : ℕ} (hC : 0 ≤ C) (hP : ContinuousAt P x) |
| 289 | (hH : ∀ y, 0 ≤ H y) |
| 290 | (hb : ∀ᶠ y in 𝓝 x, y ∈ window ρ a b → ‖g y‖ ≤ C * H y * P y) |
| 291 | (hh : ∀ᶠ y in 𝓝 x, y ∈ window ρ a b → |
| 292 | 0 < d y ∧ H y ≤ FlatCutoff.edge c (d y) / (d y) ^ N) : |
| 293 | EdgeControl ρ a b d c g x := by |
| 294 | let M := |P x| + 1 |
| 295 | have hM : 0 ≤ M := by dsimp [M]; positivity |
| 296 | have hPM : P x < M := by dsimp [M]; linarith [le_abs_self (P x)] |
| 297 | have hp' : ∀ᶠ y in 𝓝 x, P y < M := hP.eventually (Iio_mem_nhds hPM) |
| 298 | have hp : ∀ᶠ y in 𝓝 x, P y ≤ M := hp'.mono (fun _ hy => hy.le) |
| 299 | refine ⟨C * M, mul_nonneg hC hM, N, ?_⟩ |
| 300 | filter_upwards [hb, hh, hp] with y hby hhy hpy |
| 301 | intro hi |
| 302 | refine ⟨(hhy hi).1, ?_⟩ |
| 303 | calc |
| 304 | _ ≤ C * H y * P y := hby hi |
| 305 | _ ≤ C * H y * M := mul_le_mul_of_nonneg_left hpy (mul_nonneg hC (hH y)) |
| 306 | _ = (C * M) * H y := by ring |
| 307 | _ ≤ (C * M) * (FlatCutoff.edge c (d y) / (d y) ^ N) := |
| 308 | mul_le_mul_of_nonneg_left (hhy hi).2 (mul_nonneg hC hM) |
| 309 | _ = _ := by rw [mul_div_assoc] |
| 310 | |
| 311 | /-- The actual square-root two-edge weight supplies both boundary controls. |
| 312 | The envelope only needs to be continuous near the boundary, where its local |
| 313 | bound is absorbed into the constant. -/ |
| 314 | theorem boundaryControls_of_majorants {Ω : Set D} (hΩ : IsOpen Ω) {ρ P : D → ℝ} |
| 315 | (hρ : ContDiffOn ℝ ∞ ρ Ω) (hP : ContinuousOn P Ω) |
| 316 | {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) |
| 317 | {f : D → E} |
| 318 | (hb : ∀ m : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ y ∈ windowDomain Ω ρ a b, |
| 319 | ‖iteratedFDeriv ℝ m f y‖ ≤ C * edgeGrowth ρ a b y ^ N * |
| 320 | Real.sqrt (flatWeight ρ a b cL cR y) * P y) : |
| 321 | BoundaryControls Ω ρ a b (cL / 2) (cR / 2) f := by |
| 322 | have hL := WeightedRadialPrimitive.logLength_pos ha hab |
| 323 | constructor |
| 324 | · intro m x hx hxa |
| 325 | obtain ⟨C, hC, N, hbound⟩ := hb m |
| 326 | have hd := logCoordinate_differentiableAt ha |
| 327 | ((hρ.contDiffAt (hΩ.mem_nhds hx)).differentiableAt (by simp)) (by simpa only [hxa] using ha) |
| 328 | have hzero : logCoordinate ρ a x = 0 := by |
| 329 | simp only [logCoordinate, WeightedRadialPrimitive.logPosition, hxa, div_self ha.ne', Real.log_one] |
| 330 | apply edgeControl_of_factor (H := fun y => edgeGrowth ρ a b y ^ N * |
| 331 | Real.sqrt (flatWeight ρ a b cL cR y)) hC ((hP x hx).continuousAt (hΩ.mem_nhds hx)) |
| 332 | · intro y |
| 333 | exact mul_nonneg (pow_nonneg (zero_le_one.trans (edgeGrowth_one_le ρ a b y)) _) |
| 334 | (Real.sqrt_nonneg _) |
| 335 | · filter_upwards [hΩ.mem_nhds hx] with y hy |
| 336 | intro hi |
| 337 | simpa only [mul_assoc] using hbound y ⟨hy, hi⟩ |
| 338 | · have hsmall : ∀ᶠ y in 𝓝 x, logCoordinate ρ a y < 1 ∧ |
| 339 | logCoordinate ρ a y < WeightedRadialPrimitive.logLength a b / 2 := |
| 340 | (hd.continuousAt.eventually (Iio_mem_nhds (by simpa only [hzero] using zero_lt_one))).and |
| 341 | (hd.continuousAt.eventually (Iio_mem_nhds (by simpa only [hzero] using half_pos hL))) |
| 342 | filter_upwards [hsmall] with y hy |
| 343 | intro hi |
| 344 | have ht := WeightedRadialPrimitive.logPosition_mem ha hi |
| 345 | refine ⟨ht.1, ?_⟩ |
| 346 | exact half_weight_left hcR.le ht.1 hy.1.le hy.2.le N |
| 347 | · intro m x hx hxb |
| 348 | obtain ⟨C, hC, N, hbound⟩ := hb m |
| 349 | have hd := logCoordinate_differentiableAt ha |
| 350 | ((hρ.contDiffAt (hΩ.mem_nhds hx)).differentiableAt (by simp)) (by simpa only [hxb] using ha.trans hab) |
| 351 | have hd' := (differentiableAt_const (WeightedRadialPrimitive.logLength a b)).fun_sub hd |
| 352 | have hzero : WeightedRadialPrimitive.logLength a b - logCoordinate ρ a x = 0 := by |
| 353 | simp only [logCoordinate, hxb, WeightedRadialPrimitive.logPosition, |
| 354 | WeightedRadialPrimitive.logLength, sub_self] |
| 355 | apply edgeControl_of_factor (H := fun y => edgeGrowth ρ a b y ^ N * |
| 356 | Real.sqrt (flatWeight ρ a b cL cR y)) hC ((hP x hx).continuousAt (hΩ.mem_nhds hx)) |
| 357 | · intro y |
| 358 | exact mul_nonneg (pow_nonneg (zero_le_one.trans (edgeGrowth_one_le ρ a b y)) _) |
| 359 | (Real.sqrt_nonneg _) |
| 360 | · filter_upwards [hΩ.mem_nhds hx] with y hy |
| 361 | intro hi |
| 362 | simpa only [mul_assoc] using hbound y ⟨hy, hi⟩ |
| 363 | · have hsmall : ∀ᶠ y in 𝓝 x, WeightedRadialPrimitive.logLength a b - logCoordinate ρ a y < 1 ∧ |
| 364 | WeightedRadialPrimitive.logLength a b - logCoordinate ρ a y < |
| 365 | WeightedRadialPrimitive.logLength a b / 2 := |
| 366 | (hd'.continuousAt.eventually (Iio_mem_nhds (by simpa only [hzero] using zero_lt_one))).and |
| 367 | (hd'.continuousAt.eventually (Iio_mem_nhds (by simpa only [hzero] using half_pos hL))) |
| 368 | filter_upwards [hsmall] with y hy |
| 369 | intro hi |
| 370 | have ht := WeightedRadialPrimitive.logPosition_mem ha hi |
| 371 | refine ⟨sub_pos.mpr ht.2, ?_⟩ |
| 372 | exact half_weight_right hcL.le ht.2 hy.1.le (by |
| 373 | change WeightedRadialPrimitive.logLength a b / 2 ≤ logCoordinate ρ a y |
| 374 | linarith [hy.2]) N |
| 375 | |
| 376 | section NativeBounds |
| 377 | |
| 378 | variable {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] {ι : Type*} |
| 379 | |
| 380 | /-- Reduce the actual native class estimate without differentiating the |
| 381 | weight or discarding any of its flat-edge factor. -/ |
| 382 | theorem native_jet_majorant {V : JetDomain ι X} {Ω : Set X} {ρ : X → ℝ} |
| 383 | {a b cL cR : ℝ} {A S : ι → ℝ} {P : ι → X → ℝ} {f : ι → X → E} |
| 384 | (hf : NativeJets V (fun i x => A i * Real.sqrt (flatWeight ρ a b cL cR x) * P i x) f) |
| 385 | (hA : ∀ i, 0 ≤ A i) (hS : ∀ i, 1 ≤ S i) |
| 386 | (hP : ∀ i x, x ∈ Ω → 0 ≤ P i x) |
| 387 | (hdom : ∀ i, windowDomain Ω ρ a b ⊆ V.carrier i) |
| 388 | (q : ℕ) (hG : ∀ i x, x ∈ windowDomain Ω ρ a b → |
| 389 | V.growth i x ≤ S i * edgeGrowth ρ a b x ^ q) |
| 390 | (i : ι) (m : ℕ) : |
| 391 | ∃ C : ℝ, 0 ≤ C ∧ ∃ N : ℕ, ∀ x ∈ windowDomain Ω ρ a b, |
| 392 | ‖iteratedFDeriv ℝ m (f i) x‖ ≤ |
| 393 | C * edgeGrowth ρ a b x ^ N * Real.sqrt (flatWeight ρ a b cL cR x) * P i x := by |
| 394 | obtain ⟨C, hC, p, hb⟩ := hf.bound m |
| 395 | refine ⟨C * S i ^ p * A i, by have := hA i; have := hS i; positivity, q * p, ?_⟩ |
| 396 | intro x hx |
| 397 | have hw : 0 ≤ A i * Real.sqrt (flatWeight ρ a b cL cR x) * P i x := |
| 398 | mul_nonneg (mul_nonneg (hA i) (Real.sqrt_nonneg _)) (hP i x hx.1) |
| 399 | calc |
| 400 | _ ≤ C * V.growth i x ^ p * (A i * Real.sqrt (flatWeight ρ a b cL cR x) * P i x) := |
| 401 | hb i x (hdom i hx) m le_rfl |
| 402 | _ ≤ C * (S i * edgeGrowth ρ a b x ^ q) ^ p * |
| 403 | (A i * Real.sqrt (flatWeight ρ a b cL cR x) * P i x) := |
| 404 | mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left |
| 405 | (pow_le_pow_left₀ (zero_le_one.trans (V.one_le_growth i (hdom i hx))) (hG i x hx) p) |
| 406 | (zero_le_one.trans hC)) hw |
| 407 | _ = _ := by rw [mul_pow, ← pow_mul]; ring |
| 408 | |
| 409 | /-- Smooth zero extension of an actual native coefficient. No smoothness |
| 410 | of the raw coefficient is assumed outside the open moving annulus. -/ |
| 411 | theorem NativeJets.moving_zero_extension {V : JetDomain ι X} {Ω : Set X} |
| 412 | (hΩ : IsOpen Ω) {ρ : X → ℝ} (hρ : ContDiffOn ℝ ∞ ρ Ω) |
| 413 | {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) |
| 414 | {A S : ι → ℝ} {P : ι → X → ℝ} {f : ι → X → E} |
| 415 | (hf : NativeJets V (fun i x => A i * Real.sqrt (flatWeight ρ a b cL cR x) * P i x) f) |
| 416 | (hA : ∀ i, 0 ≤ A i) (hS : ∀ i, 1 ≤ S i) |
| 417 | (hP : ∀ i, ContinuousOn (P i) Ω) (hP0 : ∀ i x, x ∈ Ω → 0 ≤ P i x) |
| 418 | (hdom : ∀ i, windowDomain Ω ρ a b ⊆ V.carrier i) |
| 419 | (q : ℕ) (hG : ∀ i x, x ∈ windowDomain Ω ρ a b → |
| 420 | V.growth i x ≤ S i * edgeGrowth ρ a b x ^ q) : |
| 421 | ∀ i, ContDiffOn ℝ ∞ (extension ρ a b (f i)) Ω ∧ |
| 422 | (∀ n x, x ∈ Ω → iteratedFDeriv ℝ n (extension ρ a b (f i)) x = |
| 423 | extension ρ a b (iteratedFDeriv ℝ n (f i)) x) ∧ |
| 424 | (∀ n x, x ∈ Ω → (ρ x = a ∨ ρ x = b) → |
| 425 | iteratedFDeriv ℝ n (extension ρ a b (f i)) x = 0) := by |
| 426 | intro i |
| 427 | have hB := boundaryControls_of_majorants hΩ hρ (hP i) ha hab hcL hcR |
| 428 | (native_jet_majorant hf hA hS hP0 hdom q hG i) |
| 429 | have hs := (hf.smooth i).mono (hdom i) |
| 430 | exact ⟨extension_contDiffOn hΩ hρ ha hab (half_pos hcL) (half_pos hcR) hs hB, |
| 431 | fun n x hx => iteratedFDeriv_extension hΩ hρ ha hab (half_pos hcL) (half_pos hcR) hs hB n hx, |
| 432 | fun n x hx he => iteratedFDeriv_extension_edge hΩ hρ ha hab (half_pos hcL) (half_pos hcR) hs hB n hx he⟩ |
| 433 | |
| 434 | end NativeBounds |
| 435 | |
| 436 | /-! ## The actual moving radial profile in native coordinates -/ |
| 437 | |
| 438 | abbrev NativePoint := PhaseCalculus.Slow × TorusInverse.Plane |
| 439 | |
| 440 | noncomputable def nativeSlowDomain : Set NativePoint := {x | 0 < x.1.2.2} |
| 441 | |
| 442 | noncomputable def nativeRadius (h : ℝ) (x : NativePoint) : ℝ := |
| 443 | PrimaryTargetBounds.profileRadius h x.1 |
| 444 | |
| 445 | theorem nativeSlowDomain_open : IsOpen nativeSlowDomain := |
| 446 | isOpen_lt continuous_const continuous_fst.snd.snd |
| 447 | |
| 448 | theorem nativeRadius_eq_qLength (h : ℝ) (x : NativePoint) : |
| 449 | nativeRadius h x = x.1.1 / VariableGaugeMean.qLength (2 * h) (x.1.2.2, x.1.2.1) := by |
| 450 | unfold nativeRadius PrimaryTargetBounds.profileRadius |
| 451 | rw [BaseChartJets.normalizedCoordinates_eq] |
| 452 | rfl |
| 453 | |
| 454 | theorem nativeRadius_smooth {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) : |
| 455 | ContDiffOn ℝ ∞ (nativeRadius h) nativeSlowDomain := by |
| 456 | intro x hx |
| 457 | have hq := BaseChartJets.normalizedCoordinates_q_pos hh hh1 hx |
| 458 | have hc := (BaseChartJets.normalizedCoordinates_smoothAt hh hh1 hx).comp x contDiffAt_fst |
| 459 | exact (contDiffAt_fst.fst.div (hc.fst.sqrt hq.ne') (Real.sqrt_pos.mpr hq).ne').contDiffWithinAt |
| 460 | |
| 461 | noncomputable def nativeExtension {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 462 | (f : NativePoint → E) : NativePoint → E := |
| 463 | extension (nativeRadius F.data.h) (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) f |
| 464 | |
| 465 | omit [NormedSpace ℝ E] in |
| 466 | theorem nativeExtension_inside {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 467 | (f : NativePoint → E) {x : NativePoint} |
| 468 | (hx : nativeRadius F.data.h x ∈ Ioo (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W)) : |
| 469 | nativeExtension W f x = f x := extension_inside _ _ _ _ hx |
| 470 | |
| 471 | omit [NormedSpace ℝ E] in |
| 472 | theorem nativeExtension_outside {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 473 | (f : NativePoint → E) {x : NativePoint} |
| 474 | (hx : nativeRadius F.data.h x ∉ Ioo (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W)) : |
| 475 | nativeExtension W f x = 0 := extension_outside _ _ _ _ hx |
| 476 | |
| 477 | /-- Direct adapter for the exact moving weight used by the primary and |
| 478 | signed constructions, in the native `(R,Z,T,u,v)` variable ordering. -/ |
| 479 | theorem NativeJets.native_zero_extension {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 480 | {ι : Type*} {V : JetDomain ι NativePoint} {A S : ι → ℝ} |
| 481 | {P : ι → NativePoint → ℝ} {f : ι → NativePoint → E} |
| 482 | (hf : NativeJets V (fun i x => A i * Real.sqrt (PrimaryTargetBounds.movingWeight W x.1) * P i x) f) |
| 483 | (hA : ∀ i, 0 ≤ A i) (hS : ∀ i, 1 ≤ S i) |
| 484 | (hP : ∀ i, ContinuousOn (P i) nativeSlowDomain) |
| 485 | (hP0 : ∀ i x, x ∈ nativeSlowDomain → 0 ≤ P i x) |
| 486 | (hdom : ∀ i, windowDomain nativeSlowDomain (nativeRadius F.data.h) |
| 487 | (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) ⊆ V.carrier i) |
| 488 | (q : ℕ) (hG : ∀ i x, x ∈ windowDomain nativeSlowDomain (nativeRadius F.data.h) |
| 489 | (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) → |
| 490 | V.growth i x ≤ S i * edgeGrowth (nativeRadius F.data.h) |
| 491 | (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) x ^ q) : |
| 492 | ∀ i, ContDiffOn ℝ ∞ (nativeExtension W (f i)) nativeSlowDomain ∧ |
| 493 | (∀ n x, x ∈ nativeSlowDomain → iteratedFDeriv ℝ n (nativeExtension W (f i)) x = |
| 494 | nativeExtension W (iteratedFDeriv ℝ n (f i)) x) ∧ |
| 495 | (∀ n x, x ∈ nativeSlowDomain → |
| 496 | (nativeRadius F.data.h x = PrimaryTargetBounds.leftRadius W ∨ |
| 497 | nativeRadius F.data.h x = PrimaryTargetBounds.rightRadius W) → |
| 498 | iteratedFDeriv ℝ n (nativeExtension W (f i)) x = 0) := by |
| 499 | have hclass : NativeJets V (fun i x => A i * Real.sqrt (flatWeight (nativeRadius F.data.h) |
| 500 | (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) |
| 501 | (FinalSlowBase.edgeExponent W / 4) 1 x) * P i x) f := hf |
| 502 | exact NativeJets.moving_zero_extension nativeSlowDomain_open (nativeRadius_smooth F.data.h_pos F.data.h_lt_half) |
| 503 | (PrimaryTargetBounds.leftRadius_pos W) (PrimaryTargetBounds.radii_ordered W) |
| 504 | (div_pos (FinalSlowBase.edgeExponent_pos W) (by norm_num)) (by norm_num) |
| 505 | hclass hA hS hP hP0 hdom q hG |
| 506 | |
| 507 | /-! ## Exact comparison with the inner-coordinate edge distance -/ |
| 508 | |
| 509 | /-- Regularity of the literal native extension, including its exact |
| 510 | full-tensor values at both moving edges. -/ |
| 511 | structure NativeRegularity {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 512 | (f : NativePoint → E) : Prop where |
| 513 | smooth : ContDiffOn ℝ ∞ (nativeExtension W f) nativeSlowDomain |
| 514 | jets : ∀ n x, x ∈ nativeSlowDomain → |
| 515 | iteratedFDeriv ℝ n (nativeExtension W f) x = nativeExtension W (iteratedFDeriv ℝ n f) x |
| 516 | edge : ∀ n x, x ∈ nativeSlowDomain → |
| 517 | (nativeRadius F.data.h x = PrimaryTargetBounds.leftRadius W ∨ |
| 518 | nativeRadius F.data.h x = PrimaryTargetBounds.rightRadius W) → |
| 519 | iteratedFDeriv ℝ n (nativeExtension W f) x = 0 |
| 520 | |
| 521 | theorem NativeRegularity.jet_inside {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 522 | {f : NativePoint → E} (h : NativeRegularity W f) (n : ℕ) {x : NativePoint} |
| 523 | (hx : x ∈ nativeSlowDomain) |
| 524 | (hi : nativeRadius F.data.h x ∈ Ioo (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W)) : |
| 525 | iteratedFDeriv ℝ n (nativeExtension W f) x = iteratedFDeriv ℝ n f x := by |
| 526 | rw [h.jets n x hx, nativeExtension_inside W _ hi] |
| 527 | |
| 528 | theorem NativeRegularity.jet_outside {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 529 | {f : NativePoint → E} (h : NativeRegularity W f) (n : ℕ) {x : NativePoint} |
| 530 | (hx : x ∈ nativeSlowDomain) |
| 531 | (hi : nativeRadius F.data.h x ∉ Ioo (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W)) : |
| 532 | iteratedFDeriv ℝ n (nativeExtension W f) x = 0 := by |
| 533 | rw [h.jets n x hx, nativeExtension_outside W _ hi] |
| 534 | |
| 535 | /-! ## The constructed primary pulse and its actual envelope -/ |
| 536 | |
| 537 | theorem pulseEnvelope_continuousOn {ι : Type*} {U : PhaseJetBounds.Domain ι PhaseCalculus.Slow} |
| 538 | (F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U) |
| 539 | (χ : ι → NativePoint → PhaseCalculus.Slow × ℝ) |
| 540 | (hχ : ∀ i, ContinuousOn (fun x => (χ i x).2) nativeSlowDomain) (j : Fin 2) (i : ι) : |
| 541 | ContinuousOn (pulseEnvelope F χ j i) nativeSlowDomain := by |
| 542 | have hc : Continuous (PrimaryPulseBounds.referenceP ((F j).lam i) ((F j).u i) ((F j).L i)) := |
| 543 | continuous_iff_continuousAt.mpr (fun t => (PrimaryPulseBounds.referenceP_hasDerivAt _ _ _ t).continuousAt) |
| 544 | exact hc.comp_continuousOn (continuousOn_const.mul (hχ i)) |
| 545 | |
| 546 | /-! ## Localization before radial extension -/ |
| 547 | |
| 548 | section ZeroGermCover |
| 549 | |
| 550 | variable {X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] {ι : Type*} |
| 551 | |
| 552 | end ZeroGermCover |
| 553 | |
| 554 | /-- A domain for the literal localized field over the full open native |
| 555 | annulus. Its growth allows the source chart scale and the given slow factor. -/ |
| 556 | noncomputable def nativeDomain {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 557 | {ι : Type*} (V : JetDomain ι NativePoint) (S : ι → ℝ) (q : ℕ) : JetDomain ι NativePoint where |
| 558 | scale := V.scale |
| 559 | carrier := fun _ => windowDomain nativeSlowDomain (nativeRadius F.data.h) |
| 560 | (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) |
| 561 | isOpen := fun _ => windowDomain_open nativeSlowDomain_open |
| 562 | (nativeRadius_smooth F.data.h_pos F.data.h_lt_half).continuousOn _ _ |
| 563 | one_le_scale := V.one_le_scale |
| 564 | growth := fun i x => max (V.scale i) (S i) * edgeGrowth (nativeRadius F.data.h) |
| 565 | (PrimaryTargetBounds.leftRadius W) (PrimaryTargetBounds.rightRadius W) x ^ q |
| 566 | scale_le_growth := by |
| 567 | intro i x _ |
| 568 | exact (le_max_left _ _).trans (le_mul_of_one_le_right |
| 569 | (zero_le_one.trans ((V.one_le_scale i).trans (le_max_left _ _))) |
| 570 | (one_le_pow₀ (edgeGrowth_one_le _ _ _ _))) |
| 571 | |
| 572 | /-! ## The same extension in the mean-field variable ordering -/ |
| 573 | |
| 574 | /-- The actual permutation from `(R,((T,Z),Y))` to `((R,(Z,T)),Y)`. -/ |
| 575 | noncomputable def meanNative : LocalSignedRequest.Point ≃ₗᵢ[ℝ] NativePoint where |
| 576 | toLinearEquiv := { |
| 577 | toFun := fun x => ((x.1, (x.2.1.2, x.2.1.1)), x.2.2) |
| 578 | invFun := fun x => (x.1.1, ((x.1.2.2, x.1.2.1), x.2)) |
| 579 | left_inv := fun _ => rfl |
| 580 | right_inv := fun _ => rfl |
| 581 | map_add' := fun _ _ => rfl |
| 582 | map_smul' := fun _ _ => rfl } |
| 583 | norm_map' := by |
| 584 | intro x |
| 585 | change max (max ‖x.1‖ (max ‖x.2.1.2‖ ‖x.2.1.1‖)) ‖x.2.2‖ = |
| 586 | max ‖x.1‖ (max (max ‖x.2.1.1‖ ‖x.2.1.2‖) ‖x.2.2‖) |
| 587 | rw [max_comm ‖x.2.1.2‖ ‖x.2.1.1‖, max_assoc] |
| 588 | |
| 589 | noncomputable def meanExtension {F : OutgoingProfile.Profile} (W : NominalProfile.Witness F) |
| 590 | (f : NativePoint → E) (x : LocalSignedRequest.Point) : E := nativeExtension W f (meanNative x) |
| 591 | |
| 592 | theorem NativeRegularity.mean_smooth {F : OutgoingProfile.Profile} {W : NominalProfile.Witness F} |
| 593 | {f : NativePoint → E} (h : NativeRegularity W f) : |
| 594 | ContDiffOn ℝ ∞ (meanExtension W f) {x : LocalSignedRequest.Point | 0 < x.2.1.1} := |
| 595 | h.smooth.comp meanNative.contDiff.contDiffOn (fun _ hx => hx) |
| 596 | |
| 597 | end NavierStokes.WaveEdgeExtension |