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.ScaledActualParticularControl |
| 2 | import NavierStokes.LocalizedGaussianBounds |
| 3 | |
| 4 | /-! |
| 5 | # Gaussian coverage for the actual scaled particular solves |
| 6 | |
| 7 | The cutoff used by the inverse is the separate Gaussian slot cutoff times |
| 8 | the padded native-clock cutoff. The dyadic, radial, and slow source masks |
| 9 | remain in the source and amplitude. Whole-path support, rather than a |
| 10 | pointwise zero of the source, supplies zero germs for the actual Volterra |
| 11 | solution. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.ActualGaussianCoverage |
| 17 | |
| 18 | open Set Function Filter WeightedClasses |
| 19 | open CommonCoverSolve TorusInverse ParticularWaveBounds PrimaryPulseBounds |
| 20 | open PeriodizedWaveBounds HarmonicCalculus |
| 21 | open scoped Topology ContDiff BigOperators |
| 22 | |
| 23 | /-! ## The normalized clock and the actual envelope -/ |
| 24 | |
| 25 | theorem normalized_clock {L c : ℝ} (hL : L ≠ 0) (_hc : c ≠ 0) (v : ℝ) : |
| 26 | c * v / L = v / (L / c) := by |
| 27 | field_simp |
| 28 | |
| 29 | theorem slotCutoff_clock {L c : ℝ} (hL : L ≠ 0) (hc : c ≠ 0) (v : ℝ) : |
| 30 | GaussianTailFlat.slotCutoff L (c * v) = GaussianTailFlat.slotCutoff (L / c) v := by |
| 31 | unfold GaussianTailFlat.slotCutoff |
| 32 | rw [normalized_clock hL hc] |
| 33 | |
| 34 | noncomputable def gaussianRate (lam u : ℝ) : ℝ := |
| 35 | u * GaussianEnvelope.referenceMinSlope lam u / 2 |
| 36 | |
| 37 | theorem gaussianRate_pos {lam u : ℝ} (hlam : 0 < lam) (hu : 0 < u) : |
| 38 | 0 < gaussianRate lam u := |
| 39 | div_pos (mul_pos hu (GaussianEnvelope.referenceMinSlope_pos hlam hu)) (by norm_num) |
| 40 | |
| 41 | theorem gaussianRate_mono {a b u : ℝ} (hu : 0 < u) (hab : a ≤ b) : |
| 42 | gaussianRate a u ≤ gaussianRate b u := by |
| 43 | unfold gaussianRate GaussianEnvelope.referenceMinSlope |
| 44 | exact div_le_div_of_nonneg_right |
| 45 | (mul_le_mul_of_nonneg_left |
| 46 | (div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_right hab hu.le) |
| 47 | (PulseGrowth.dampingDenominator_pos u).le) hu.le) (by norm_num) |
| 48 | |
| 49 | theorem referenceP_scaled_bound {lam u L c : ℝ} |
| 50 | (hlam : 0 < lam) (hu : 0 < u) (hL : 0 < L) (hc : 0 < c) |
| 51 | {v : ℝ} (hv : v ∈ Icc 0 (L / c)) : |
| 52 | referenceP lam u L (c * v) ≤ |
| 53 | Real.exp (-(gaussianRate lam u * c) * (v / (L / c) - 1 / 2) ^ 2 * (L / c)) := by |
| 54 | have hcv : c * v ∈ Icc 0 L := |
| 55 | ⟨mul_nonneg hc.le hv.1, by simpa only [mul_comm] using (le_div_iff₀ hc).mp hv.2⟩ |
| 56 | have htheta : c * v / L ∈ Icc (0 : ℝ) 1 := |
| 57 | ⟨div_nonneg hcv.1 hL.le, (div_le_one hL).mpr hcv.2⟩ |
| 58 | have hb := GaussianTailFlat.referenceSlotEnvelope_bound hlam hu hL (c * v / L) |
| 59 | rw [GaussianTailFlat.referenceSlotEnvelope, ite_eq_left htheta] at hb |
| 60 | have htime : L * (c * v / L) = c * v := by field_simp |
| 61 | rw [htime] at hb |
| 62 | change referenceP lam u L (c * v) ≤ Real.exp |
| 63 | (-gaussianRate lam u * (c * v / L - 1 / 2) ^ 2 * L) at hb |
| 64 | refine hb.trans_eq ?_ |
| 65 | congr 1 |
| 66 | rw [normalized_clock hL.ne' hc.ne'] |
| 67 | field_simp |
| 68 | |
| 69 | section ScaledEnvelope |
| 70 | |
| 71 | variable {Label P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 72 | {D : PhaseJetBounds.Domain (Label × ℕ) PhaseCalculus.Slow} |
| 73 | (F : PhaseConstruction D) (clock : ActualSignedControl.PositiveScale Label) |
| 74 | |
| 75 | noncomputable def theta (l : Label) (n : ℕ) (v : ℝ) : ℝ := |
| 76 | clock.value l n * v / F.L (l, n) |
| 77 | |
| 78 | theorem theta_eq (l : Label) (n : ℕ) (v : ℝ) : |
| 79 | theta F clock l n v = v / ScaledActualParticularControl.length F clock l n := |
| 80 | normalized_clock (F.L_pos (l, n)).ne' (clock.value_pos l n).ne' v |
| 81 | |
| 82 | theorem envelope_uniform_bound {lam0 u0 : ℝ} (_hlam0 : 0 < lam0) (hu0 : 0 < u0) |
| 83 | (hlam : ∀ l n, lam0 ≤ F.lam (l, n)) (hu : ∀ l n, F.u (l, n) = u0) |
| 84 | (l : Label) (n : ℕ) {v : ℝ} |
| 85 | (hv : v ∈ Icc 0 (ScaledActualParticularControl.length F clock l n)) : |
| 86 | ScaledActualParticularControl.envelope F clock l n v ≤ |
| 87 | Real.exp (-(gaussianRate lam0 u0 * clock.lower) * (theta F clock l n v - 1 / 2) ^ 2 * |
| 88 | ScaledActualParticularControl.length F clock l n) := by |
| 89 | have hb := referenceP_scaled_bound (F.lam_pos (l, n)) (F.u_pos (l, n)) |
| 90 | (F.L_pos (l, n)) (clock.value_pos l n) hv |
| 91 | change ScaledActualParticularControl.envelope F clock l n v ≤ _ at hb |
| 92 | rw [hu l n] at hb |
| 93 | change ScaledActualParticularControl.envelope F clock l n v ≤ |
| 94 | Real.exp (-(gaussianRate (F.lam (l,n)) u0 * clock.value l n) * |
| 95 | (v / ScaledActualParticularControl.length F clock l n - 1 / 2) ^ 2 * |
| 96 | ScaledActualParticularControl.length F clock l n) at hb |
| 97 | rw [← theta_eq F clock] at hb |
| 98 | apply hb.trans |
| 99 | apply Real.exp_le_exp.mpr |
| 100 | have hcoeff : gaussianRate lam0 u0 * clock.lower ≤ |
| 101 | gaussianRate (F.lam (l, n)) u0 * clock.value l n := |
| 102 | mul_le_mul (gaussianRate_mono hu0 (hlam l n)) (clock.bounds l n).1 |
| 103 | clock.lower_pos.le (gaussianRate_pos (F.lam_pos (l, n)) hu0).le |
| 104 | have hm := mul_le_mul_of_nonneg_right |
| 105 | (mul_le_mul_of_nonneg_right hcoeff (sq_nonneg (theta F clock l n v - 1 / 2))) |
| 106 | (ScaledActualParticularControl.length_pos F clock l n).le |
| 107 | nlinarith |
| 108 | |
| 109 | theorem length_uniform_lower {ell : ℝ} |
| 110 | (hL : ∀ l n, ell * ChartScales.S n ≤ F.L (l, n)) (l : Label) (n : ℕ) : |
| 111 | (ell / clock.upper) * ChartScales.S n ≤ ScaledActualParticularControl.length F clock l n := by |
| 112 | have hu : 0 < clock.upper := zero_lt_one.trans_le clock.upper_one |
| 113 | have hs : 0 ≤ ChartScales.S n := sq_nonneg _ |
| 114 | change (ell / clock.upper) * ChartScales.S n ≤ F.L (l, n) / clock.value l n |
| 115 | calc |
| 116 | _ = (ell * ChartScales.S n) / clock.upper := by ring |
| 117 | _ ≤ F.L (l, n) / clock.upper := div_le_div_of_nonneg_right (hL l n) hu.le |
| 118 | _ ≤ F.L (l, n) / clock.value l n := |
| 119 | div_le_div_of_nonneg_left (F.L_pos (l, n)).le (clock.value_pos l n) (clock.bounds l n).2 |
| 120 | |
| 121 | end ScaledEnvelope |
| 122 | |
| 123 | /-! ## Compact whole-path zero germs for the genuine Volterra solve -/ |
| 124 | |
| 125 | section PathGerms |
| 126 | |
| 127 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 128 | |
| 129 | theorem whole_path_zero_germ (g : Geometry) (k : Frequency) {a b : ℝ} |
| 130 | {f : P × Plane → ComplexVector} {x : P × Plane} |
| 131 | (hf : ∀ v ∈ Icc a b, f =ᶠ[𝓝 (x.1, g.path k x.2 v)] fun _ => 0) : |
| 132 | ∀ᶠ y in 𝓝 x, ∀ v ∈ Icc a b, f (y.1, g.path k y.2 v) = 0 := by |
| 133 | apply isCompact_Icc.eventually_forall_of_forall_eventually |
| 134 | intro v hv |
| 135 | exact (hf v hv).comp_tendsto (g.pathArgument_contDiff k).continuous.continuousAt |
| 136 | |
| 137 | theorem complexCopyVelocity_zero_germ (t : TangentData P ProblemStatement.Space) |
| 138 | (g : Geometry) {a b : ℝ} (hab : a ≤ b) (k : Frequency) |
| 139 | {f : P × Plane → ComplexVector} {x : P × Plane} |
| 140 | (hf : ∀ v ∈ Icc a b, f =ᶠ[𝓝 (x.1, g.path k x.2 v)] fun _ => 0) : |
| 141 | complexCopyVelocity t f g hab k =ᶠ[𝓝 x] fun _ => 0 := by |
| 142 | filter_upwards [whole_path_zero_germ g k hf] with y hy |
| 143 | exact complexCopyVelocity_zero_of_path t f g hab k y.1 y.2 hy |
| 144 | |
| 145 | end PathGerms |
| 146 | |
| 147 | /-! ## The separate Gaussian cutoff and its genuine outer padding -/ |
| 148 | |
| 149 | noncomputable def padding (r L : ℝ) : ℝ := min r L / 16 |
| 150 | |
| 151 | theorem padding_pos {r L : ℝ} (hr : 0 < r) (hL : 0 < L) : 0 < padding r L := |
| 152 | div_pos (lt_min hr hL) (by norm_num) |
| 153 | |
| 154 | noncomputable def referenceWindow (r L : ℝ) (hr : 0 < r) (hL : 0 < L) : |
| 155 | PeriodicPhaseAssembly.ClockWindow where |
| 156 | lower := (-r, 0) |
| 157 | upper := (r, L) |
| 158 | padding := padding r L |
| 159 | padding_pos := padding_pos hr hL |
| 160 | |
| 161 | theorem referenceWindow_core (r L : ℝ) (hr : 0 < r) (hL : 0 < L) : |
| 162 | (referenceWindow r L hr hL).core = WaveEnvelopeTransport.rectangle r L := rfl |
| 163 | |
| 164 | /-- This cutoff is separate from every dyadic, radial and slow source |
| 165 | mask. The outer padding is transported together with the Gaussian. -/ |
| 166 | noncomputable def nativeCutoff (r L : ℝ) (hr : 0 < r) (hL : 0 < L) (c : ℝ) : Plane → ℝ := |
| 167 | fun z => (referenceWindow r L hr hL).cutoff (CopySolveCompatibility.nativeTimeMap 0 c z) * |
| 168 | GaussianTailFlat.slotCutoff L (c * z.2) |
| 169 | |
| 170 | noncomputable def outerCell (r L c : ℝ) : Set Plane := |
| 171 | Icc (-r - 2 * padding r L) (r + 2 * padding r L) ×ˢ |
| 172 | Icc ((-2 * padding r L) / c) ((L + 2 * padding r L) / c) |
| 173 | |
| 174 | /-- The support inherited from a Gaussian slot profile has a strict |
| 175 | temporal margin at both ends of the full Volterra integration interval. -/ |
| 176 | noncomputable def sourceCell (r L c : ℝ) : Set Plane := |
| 177 | Icc (-r) r ×ˢ Icc ((L / c) / 6) (5 * (L / c) / 6) |
| 178 | |
| 179 | theorem outerCell_compact (r L c : ℝ) : IsCompact (outerCell r L c) := |
| 180 | isCompact_Icc.prod isCompact_Icc |
| 181 | |
| 182 | theorem sourceCell_compact (r L c : ℝ) : IsCompact (sourceCell r L c) := |
| 183 | isCompact_Icc.prod isCompact_Icc |
| 184 | |
| 185 | theorem mem_outerCell {r L c : ℝ} (hr : 0 < r) (hL : 0 < L) (hc : 0 < c) (z : Plane) : |
| 186 | z ∈ outerCell r L c ↔ |
| 187 | CopySolveCompatibility.nativeTimeMap 0 c z ∈ (referenceWindow r L hr hL).outer := by |
| 188 | change (_ ∧ _) ↔ (_ ∧ _) |
| 189 | simp only [ mem_Icc, CopySolveCompatibility.nativeTimeMap, referenceWindow, zero_sub, zero_add, |
| 190 | div_le_iff₀ hc, le_div_iff₀ hc, mul_comm, neg_mul] |
| 191 | |
| 192 | theorem sourceCell_time {r L c : ℝ} (hL : 0 < L) (hc : 0 < c) {z : Plane} |
| 193 | (hz : z ∈ sourceCell r L c) : z.2 ∈ Ioo 0 (L / c) := by |
| 194 | have hp := div_pos hL hc |
| 195 | exact ⟨by linarith [hz.2.1], by linarith [hz.2.2]⟩ |
| 196 | |
| 197 | theorem sourceCell_subset_outer {r L c : ℝ} (hr : 0 < r) (hL : 0 < L) (hc : 0 < c) : |
| 198 | sourceCell r L c ⊆ outerCell r L c := by |
| 199 | intro z hz |
| 200 | apply (mem_outerCell hr hL hc z).mpr |
| 201 | apply (referenceWindow r L hr hL).core_subset_outer |
| 202 | have ht := sourceCell_time hL hc hz |
| 203 | simp only [referenceWindow, PeriodicPhaseAssembly.ClockWindow.core, |
| 204 | CopySolveCompatibility.nativeTimeMap, zero_add, mem_prod] |
| 205 | change z.1 ∈ Icc (-r) r ∧ c * z.2 ∈ Icc 0 L |
| 206 | exact ⟨hz.1, mul_nonneg hc.le ht.1.le, |
| 207 | by simpa only [mul_comm] using (le_div_iff₀ hc).mp ht.2.le⟩ |
| 208 | |
| 209 | theorem nativeCutoff_support {r L c : ℝ} (hr : 0 < r) (hL : 0 < L) (hc : 0 < c) : |
| 210 | support (nativeCutoff r L hr hL c) ⊆ outerCell r L c := by |
| 211 | intro z hz |
| 212 | apply (mem_outerCell hr hL hc z).mpr |
| 213 | exact (referenceWindow r L hr hL).cutoff_support (mul_ne_zero_iff.mp hz).1 |
| 214 | |
| 215 | theorem nativeCutoff_central_germ {r L c : ℝ} (hr : 0 < r) (hL : 0 < L) (hc : 0 < c) |
| 216 | {z : Plane} (hz : z ∈ WaveEnvelopeTransport.rectangle r (L / c)) |
| 217 | (hcentral : |z.2 / (L / c) - 1 / 2| < 1 / 5) : |
| 218 | nativeCutoff r L hr hL c =ᶠ[𝓝 z] fun _ => 1 := by |
| 219 | have hm : CopySolveCompatibility.nativeTimeMap 0 c z ∈ (referenceWindow r L hr hL).core := by |
| 220 | simp only [referenceWindow, PeriodicPhaseAssembly.ClockWindow.core, |
| 221 | CopySolveCompatibility.nativeTimeMap, zero_add, mem_prod] |
| 222 | exact ⟨hz.1, mul_nonneg hc.le hz.2.1, |
| 223 | by simpa only [mul_comm] using (le_div_iff₀ hc).mp hz.2.2⟩ |
| 224 | have ho := ((referenceWindow r L hr hL).cutoff_germ hm).comp_tendsto |
| 225 | (CopySolveCompatibility.nativeTimeMap_continuous 0 c).continuousAt |
| 226 | have ht : Continuous (fun y : Plane => c * y.2 / L) := |
| 227 | (continuous_const.mul continuous_snd).div_const L |
| 228 | have hg := (GaussianTailFlat.profile_eventually_one |
| 229 | (by simpa only [normalized_clock hL.ne' hc.ne'] using hcentral)).comp_tendsto ht.continuousAt |
| 230 | filter_upwards [ho, hg] with y hy hgy |
| 231 | dsimp only [Function.comp_def] at hy hgy |
| 232 | simp only [nativeCutoff, GaussianTailFlat.slotCutoff, hy, hgy, mul_one] |
| 233 | |
| 234 | theorem nativeCutoff_time_zero_germ {r L c : ℝ} (hr : 0 < r) (hL : 0 < L) (hc : 0 < c) |
| 235 | {z : Plane} (hz : z.2 ∉ Ioo 0 (L / c)) : |
| 236 | nativeCutoff r L hr hL c =ᶠ[𝓝 z] fun _ => 0 := by |
| 237 | have hlen := div_pos hL hc |
| 238 | have hdist : 1 / 3 < |z.2 / (L / c) - 1 / 2| := by |
| 239 | by_cases hlo : z.2 ≤ 0 |
| 240 | · rw [abs_of_nonpos (by linarith [div_nonpos_of_nonpos_of_nonneg hlo hlen.le])] |
| 241 | linarith [div_nonpos_of_nonpos_of_nonneg hlo hlen.le] |
| 242 | · have hhi : L / c ≤ z.2 := le_of_not_gt (fun h => hz ⟨lt_of_not_ge hlo, h⟩) |
| 243 | have hdiv : 1 ≤ z.2 / (L / c) := (le_div_iff₀ hlen).mpr (by simpa using hhi) |
| 244 | rw [abs_of_nonneg (by linarith)] |
| 245 | linarith |
| 246 | have hd : 1 / 3 < |c * z.2 / L - 1 / 2| := by |
| 247 | rw [normalized_clock hL.ne' hc.ne'] |
| 248 | exact hdist |
| 249 | have ht : Continuous (fun y : Plane => c * y.2 / L) := |
| 250 | (continuous_const.mul continuous_snd).div_const L |
| 251 | have hg := (GaussianTailFlat.profile_eventually_zero hd).comp_tendsto ht.continuousAt |
| 252 | filter_upwards [hg] with y hy |
| 253 | dsimp only [Function.comp_def] at hy |
| 254 | simp only [nativeCutoff, GaussianTailFlat.slotCutoff, hy, mul_zero] |
| 255 | |
| 256 | /-! ## Source support controls the entire native path -/ |
| 257 | |
| 258 | theorem coordinates_path_outer (g : Geometry) (k : Frequency) {Y : Plane} |
| 259 | {r L c v : ℝ} (hr : 0 < r) (hL : 0 < L) (hc : 0 < c) |
| 260 | (hY : g.coordinates k Y ∈ outerCell r L c) (hv : v ∈ Icc 0 (L / c)) : |
| 261 | g.coordinates k (g.path k Y v) ∈ outerCell r L c := by |
| 262 | rw [g.coordinates_path] |
| 263 | refine ⟨hY.1, ?_, ?_⟩ |
| 264 | · exact (div_nonpos_of_nonpos_of_nonneg (by nlinarith [padding_pos hr hL]) hc.le).trans hv.1 |
| 265 | · exact hv.2.trans (div_le_div_of_nonneg_right (by linarith [padding_pos hr hL]) hc.le) |
| 266 | |
| 267 | theorem other_sourceCell_excluded (g : Geometry) {r L c : ℝ} |
| 268 | (hr : 0 < r) (hL : 0 < L) (hc : 0 < c) |
| 269 | (hinj : InjOn TorusAverages.quotientPoint |
| 270 | ((fun z => g.center + g.basis z) '' outerCell r L c)) |
| 271 | {k : Frequency} {Y : Plane} (hY : g.coordinates k Y ∈ outerCell r L c) |
| 272 | (hn : g.coordinates k Y ∉ sourceCell r L c) : |
| 273 | ∀ i, g.coordinates i Y ∉ sourceCell r L c := by |
| 274 | intro i hi |
| 275 | have he := ParticularWaveAssembly.native_copy_unique g hinj hY |
| 276 | (sourceCell_subset_outer hr hL hc hi) |
| 277 | subst i |
| 278 | exact hn hi |
| 279 | |
| 280 | theorem path_sourceCell_excluded (g : Geometry) {r L c : ℝ} |
| 281 | (hr : 0 < r) (hL : 0 < L) (hc : 0 < c) |
| 282 | (hinj : InjOn TorusAverages.quotientPoint |
| 283 | ((fun z => g.center + g.basis z) '' outerCell r L c)) |
| 284 | {k : Frequency} {Y : Plane} (hY : g.coordinates k Y ∈ outerCell r L c) |
| 285 | (hxi : (g.coordinates k Y).1 ∉ Icc (-r) r) : |
| 286 | ∀ v ∈ Icc 0 (L / c), ∀ i, g.coordinates i (g.path k Y v) ∉ sourceCell r L c := by |
| 287 | intro v hv |
| 288 | apply other_sourceCell_excluded g hr hL hc hinj (coordinates_path_outer g k hr hL hc hY hv) |
| 289 | intro hs |
| 290 | rw [g.coordinates_path] at hs |
| 291 | exact hxi hs.1 |
| 292 | |
| 293 | section ActualSource |
| 294 | |
| 295 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 296 | |
| 297 | noncomputable def sourceRegion (S : Set P) (g : Geometry) (r L rate : ℝ) : Set (P × Plane) := |
| 298 | Prod.fst ⁻¹' S ∩ HarmonicSourceSupport.nativeUnion g (sourceCell r L rate) |
| 299 | |
| 300 | omit [NormedSpace ℝ P] in |
| 301 | theorem sourceRegion_closed {S : Set P} (hS : IsClosed S) (g : Geometry) (r L rate : ℝ) : |
| 302 | IsClosed (sourceRegion S g r L rate) := |
| 303 | (hS.preimage continuous_fst).inter |
| 304 | (HarmonicSourceSupport.nativeUnion_closed g (sourceCell_compact r L rate)) |
| 305 | |
| 306 | theorem sourceFamily_zero_germ |
| 307 | (ctx : CorrectionState.Context (P × Plane)) (u : CorrectionState.State (P × Plane)) |
| 308 | (b : CorrectionState.HarmonicBlock (P × Plane)) |
| 309 | (G A : HarmonicResidual.BlockCoefficients (P × Plane)) |
| 310 | {U : Set (P × Plane)} {K : ℕ → Set (P × Plane)} (hU : IsOpen U) |
| 311 | (hK : ∀ n, IsClosed (K n)) (hs : HarmonicSourceSupport.InputSupportOn U K b G A) |
| 312 | (j : ℤ) (n : ℕ) {x : (P × ℝ) × Plane} |
| 313 | (hx : (x.1.1, x.2) ∈ U) (hn : (x.1.1, x.2) ∉ K n) : |
| 314 | ParticularWaveAssembly.sourceFamily ctx u b G A j n =ᶠ[𝓝 x] fun _ => 0 := |
| 315 | (HarmonicSourceSupport.residualSource_zero_germ_on ctx u b G A hU hK hs j n hx hn).comp_tendsto |
| 316 | (continuous_fst.fst.prodMk continuous_snd).continuousAt |
| 317 | |
| 318 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 319 | theorem sourceSupport_mono |
| 320 | {U : Set (P × Plane)} {K T : ℕ → Set (P × Plane)} |
| 321 | {b : CorrectionState.HarmonicBlock (P × Plane)} |
| 322 | {G A : HarmonicResidual.BlockCoefficients (P × Plane)} |
| 323 | (hs : HarmonicSourceSupport.InputSupportOn U K b G A) (hKT : ∀ n, K n ⊆ T n) : |
| 324 | HarmonicSourceSupport.InputSupportOn U T b G A := by |
| 325 | have hm {f : HarmonicFields.Coefficients (P × Plane)} {n : ℕ} |
| 326 | (hf : HarmonicSourceSupport.NonzeroSupportedOn U (K n) f) : |
| 327 | HarmonicSourceSupport.NonzeroSupportedOn U (T n) f := by |
| 328 | intro j hj x hx hn |
| 329 | exact hf j hj x hx (fun h => hn (hKT n h)) |
| 330 | exact ⟨fun n i => hm (hs.velocity n i), fun n => hm (hs.pressure n), |
| 331 | fun n i => hm (hs.gaussian n i), fun n i => hm (hs.aliasError n i)⟩ |
| 332 | |
| 333 | end ActualSource |
| 334 | |
| 335 | theorem transported_outer_injective (g : Geometry) (gap : ℕ) {r L c : ℝ} |
| 336 | (hr : 0 < r) (hL : 0 < L) (hc : 0 < c) |
| 337 | (hinj : InjOn TorusAverages.quotientPoint |
| 338 | ((fun z => g.center + g.basis z) '' (referenceWindow r L hr hL).outer)) : |
| 339 | InjOn TorusAverages.quotientPoint |
| 340 | ((fun z => (CopySolveCompatibility.transportGeometry g gap 0 c hc.ne').center + |
| 341 | (CopySolveCompatibility.transportGeometry g gap 0 c hc.ne').basis z) '' outerCell r L c) := by |
| 342 | apply hinj.mono |
| 343 | rintro _ ⟨z, hz, rfl⟩ |
| 344 | refine ⟨CopySolveCompatibility.nativeTimeMap 0 c z, (mem_outerCell hr hL hc z).mp hz, ?_⟩ |
| 345 | simp only [CopySolveCompatibility.nativeTimeMap, CopySolveCompatibility.transportGeometry, |
| 346 | CopySolveCompatibility.refineGeometry, CopySolveCompatibility.timeGeometry, |
| 347 | CommonCoverClass.scaledBasis_apply, zero_add, Prod.mk_zero_zero, map_zero, add_zero] |
| 348 | |
| 349 | theorem reference_outer_separated (g : Geometry) {r L : ℝ} (hr : 0 < r) (hL : 0 < L) |
| 350 | (hinj : InjOn TorusAverages.quotientPoint |
| 351 | ((fun z => g.center + g.basis z) '' (referenceWindow r L hr hL).outer)) : |
| 352 | WaveEnvelopeTransport.Separated g r L := by |
| 353 | apply hinj.mono |
| 354 | rintro _ ⟨z, hz, rfl⟩ |
| 355 | exact ⟨z, (referenceWindow r L hr hL).core_subset_outer hz, rfl⟩ |
| 356 | |
| 357 | /-! ## One literal family of scaled solves and cutoffs -/ |
| 358 | |
| 359 | section Family |
| 360 | |
| 361 | variable {Label P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 362 | {D : PhaseJetBounds.Domain (Label × ℕ) PhaseCalculus.Slow} |
| 363 | (F : PhaseConstruction D) (clock : ActualSignedControl.PositiveScale Label) |
| 364 | (reference : Label → ℕ → Geometry) (gap : Label → ℕ → ℕ) |
| 365 | (r : Label → ℕ → ℝ) (hr : ∀ l n, 0 < r l n) |
| 366 | |
| 367 | noncomputable def cutoffFamily (l : Label) (n : ℕ) : Plane → ℝ := |
| 368 | nativeCutoff (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n)) (clock.value l n) |
| 369 | |
| 370 | noncomputable def outerFamily (l : Label) (n : ℕ) : Set Plane := |
| 371 | outerCell (r l n) (F.L (l,n)) (clock.value l n) |
| 372 | |
| 373 | noncomputable def sourceRegions (S : Label → ℕ → Set P) (l : Label) (n : ℕ) : Set (P × Plane) := |
| 374 | sourceRegion (S l n) (ScaledActualParticularControl.geometry reference gap clock l n) |
| 375 | (r l n) (F.L (l,n)) (clock.value l n) |
| 376 | |
| 377 | noncomputable def analyticPatches (s : StripData P) (χ : P →L[ℝ] PhaseCalculus.Slow) |
| 378 | (φ : (Label × ℕ) → PhaseCalculus.Slow →L[ℝ] PhaseCalculus.Slow) : |
| 379 | Label → ℕ → Frequency → Set ((P × ℝ) × Plane) := |
| 380 | ScaledActualParticularControl.patch (ActualParticularControl.angleStrip s) F |
| 381 | (χ.comp (ContinuousLinearMap.fst ℝ P ℝ)) φ clock |
| 382 | (ScaledActualParticularControl.geometry reference gap clock) r |
| 383 | |
| 384 | variable (base : Label → LinearWaveBounds.WaveCoefficients ((P × ℝ) × Plane)) |
| 385 | (tangent : Label → ℕ → TangentData (P × ℝ) ProblemStatement.Space) |
| 386 | (ctx : CorrectionState.Context (P × Plane)) (u : CorrectionState.State (P × Plane)) |
| 387 | (b : Label → CorrectionState.HarmonicBlock (P × Plane)) |
| 388 | (G A : Label → HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) |
| 389 | |
| 390 | /-- The same actual complex solve as the correction step, with entry zero, |
| 391 | exit `Lref/clock`, and a single transported Gaussian-times-padding cutoff. -/ |
| 392 | noncomputable def data (l : Label) : CopyData ((P × ℝ) × Plane) Frequency := |
| 393 | complexCopyData (base l) (tangent l) |
| 394 | (ParticularWaveAssembly.sourceFamily ctx u (b l) (G l) (A l) j) |
| 395 | (ScaledActualParticularControl.geometry reference gap clock l) |
| 396 | (fun _ => 0) (ScaledActualParticularControl.length F clock l) |
| 397 | (fun n => (ScaledActualParticularControl.length_pos F clock l n).le) |
| 398 | (cutoffFamily F clock r hr l) |
| 399 | |
| 400 | theorem data_cutoff_support (l : Label) (n : ℕ) (k : Frequency) : |
| 401 | support ((data F clock reference gap r hr base tangent ctx u b G A j l).cutoff n k) ⊆ |
| 402 | nativeCell (ScaledActualParticularControl.geometry reference gap clock l n) |
| 403 | (outerFamily F clock r l n) k := |
| 404 | native_cutoff_support _ (nativeCutoff_support (hr l n) (F.L_pos (l,n)) (clock.value_pos l n)) k |
| 405 | |
| 406 | theorem data_central (s : StripData P) (χ : P →L[ℝ] PhaseCalculus.Slow) |
| 407 | (φ : (Label × ℕ) → PhaseCalculus.Slow →L[ℝ] PhaseCalculus.Slow) |
| 408 | (l : Label) (n : ℕ) (k : Frequency) {x : (P × ℝ) × Plane} |
| 409 | (hx : x ∈ analyticPatches F clock reference gap r s χ φ l n k) |
| 410 | (hm : |theta F clock l n |
| 411 | ((ScaledActualParticularControl.geometry reference gap clock l n).coordinates k x.2).2 - 1 / 2| < 1 / 5) : |
| 412 | (data F clock reference gap r hr base tangent ctx u b G A j l).cutoff n k |
| 413 | =ᶠ[𝓝 x] fun _ => 1 := by |
| 414 | have hrect : (ScaledActualParticularControl.geometry reference gap clock l n).coordinates k x.2 ∈ |
| 415 | WaveEnvelopeTransport.rectangle (r l n) (F.L (l,n) / clock.value l n) := |
| 416 | ⟨hx.2, hx.1.2.2.1.le, hx.1.2.2.2.le⟩ |
| 417 | have hg := nativeCutoff_central_germ (hr l n) (F.L_pos (l,n)) (clock.value_pos l n) |
| 418 | hrect (by simpa only [theta_eq, ScaledActualParticularControl.length] using hm) |
| 419 | exact hg.comp_tendsto |
| 420 | (((ScaledActualParticularControl.geometry reference gap clock l n).coordinates_contDiff k).continuous.comp |
| 421 | continuous_snd).continuousAt |
| 422 | |
| 423 | variable (s : StripData P) (S : Label → ℕ → Set P) (hS : ∀ l n, IsClosed (S l n)) |
| 424 | (hsupport : ∀ l, HarmonicSourceSupport.InputSupportOn (s.domain ×ˢ univ) |
| 425 | (sourceRegions F clock reference gap r S l) (b l) (G l) (A l)) |
| 426 | |
| 427 | include hS hsupport |
| 428 | |
| 429 | theorem data_source_zero_germ (l : Label) (n : ℕ) {x : (P × ℝ) × Plane} |
| 430 | (hx : x.1.1 ∈ s.domain) |
| 431 | (hn : (x.1.1, x.2) ∉ sourceRegions F clock reference gap r S l n) : |
| 432 | (data F clock reference gap r hr base tangent ctx u b G A j l).source n =ᶠ[𝓝 x] fun _ => 0 := |
| 433 | sourceFamily_zero_germ ctx u (b l) (G l) (A l) (s.isOpen_domain.prod isOpen_univ) |
| 434 | (fun n => sourceRegion_closed (hS l n) _ _ _ _) (hsupport l) j n ⟨hx, mem_univ _⟩ hn |
| 435 | |
| 436 | theorem data_amplitude_zero_germ (l : Label) (n : ℕ) (k : Frequency) {x : (P × ℝ) × Plane} |
| 437 | (hx : x.1.1 ∈ s.domain) |
| 438 | (hn : ∀ v ∈ Icc 0 (ScaledActualParticularControl.length F clock l n), |
| 439 | (x.1.1, (ScaledActualParticularControl.geometry reference gap clock l n).path k x.2 v) ∉ |
| 440 | sourceRegions F clock reference gap r S l n) : |
| 441 | (data F clock reference gap r hr base tangent ctx u b G A j l).amplitude n k =ᶠ[𝓝 x] fun _ => 0 := by |
| 442 | apply complexCopyVelocity_zero_germ |
| 443 | intro v hv |
| 444 | exact data_source_zero_germ F clock reference gap r hr base tangent ctx u b G A j |
| 445 | s S hS hsupport l n (x := (x.1, _)) hx (hn v hv) |
| 446 | |
| 447 | /-- The source is supported in an actual closed slow core and in the |
| 448 | Gaussian support rectangle. On the rest of a padded copy, either the |
| 449 | Gaussian cutoff is zero or the entire source path is zero. -/ |
| 450 | theorem data_outside (χ : P →L[ℝ] PhaseCalculus.Slow) |
| 451 | (φ : (Label × ℕ) → PhaseCalculus.Slow →L[ℝ] PhaseCalculus.Slow) |
| 452 | (hinside : ∀ l n p, p ∈ s.domain → p ∈ S l n → φ (l,n) (χ p) ∈ D.carrier (l,n)) |
| 453 | (hinj : ∀ l n, InjOn TorusAverages.quotientPoint |
| 454 | ((fun z => (reference l n).center + (reference l n).basis z) '' |
| 455 | (referenceWindow (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n))).outer)) |
| 456 | (l : Label) (n : ℕ) (k : Frequency) {x : (P × ℝ) × Plane} |
| 457 | (hx : x ∈ (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)).domain) |
| 458 | (hk : x ∈ nativeCell (ScaledActualParticularControl.geometry reference gap clock l n) |
| 459 | (outerFamily F clock r l n) k) |
| 460 | (hnot : x ∉ analyticPatches F clock reference gap r s χ φ l n k) : |
| 461 | (((data F clock reference gap r hr base tangent ctx u b G A j l).cutoff n k |
| 462 | =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 463 | ((data F clock reference gap r hr base tangent ctx u b G A j l).source n |
| 464 | =ᶠ[𝓝 x] fun _ => 0)) ∨ |
| 465 | (((data F clock reference gap r hr base tangent ctx u b G A j l).amplitude n k |
| 466 | =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 467 | ((data F clock reference gap r hr base tangent ctx u b G A j l).source n |
| 468 | =ᶠ[𝓝 x] fun _ => 0)) := by |
| 469 | let g := ScaledActualParticularControl.geometry reference gap clock l n |
| 470 | have hi : InjOn TorusAverages.quotientPoint |
| 471 | ((fun z => g.center + g.basis z) '' outerCell (r l n) (F.L (l,n)) (clock.value l n)) := |
| 472 | transported_outer_injective (reference l n) (gap l n) (hr l n) (F.L_pos (l,n)) |
| 473 | (clock.value_pos l n) (hinj l n) |
| 474 | have hk' : g.coordinates k x.2 ∈ outerCell (r l n) (F.L (l,n)) (clock.value l n) := hk |
| 475 | have hx' : x.1.1 ∈ s.domain := hx |
| 476 | by_cases hp : φ (l,n) (χ x.1.1) ∈ D.carrier (l,n) |
| 477 | · by_cases hxi : (g.coordinates k x.2).1 ∈ Icc (-(r l n)) (r l n) |
| 478 | · have hv : (g.coordinates k x.2).2 ∉ Ioo 0 (ScaledActualParticularControl.length F clock l n) := by |
| 479 | intro hv |
| 480 | exact hnot ⟨⟨hx, hp, hv⟩, hxi⟩ |
| 481 | have hg := nativeCutoff_time_zero_germ (hr l n) (F.L_pos (l,n)) (clock.value_pos l n) hv |
| 482 | refine Or.inl ⟨hg.comp_tendsto ((g.coordinates_contDiff k).continuous.comp continuous_snd).continuousAt, ?_⟩ |
| 483 | apply data_source_zero_germ F clock reference gap r hr base tangent ctx u b G A j s S hS hsupport l n hx' |
| 484 | intro hs |
| 485 | obtain ⟨i, hi'⟩ := mem_iUnion.mp hs.2 |
| 486 | exact (other_sourceCell_excluded g (hr l n) (F.L_pos (l,n)) (clock.value_pos l n) hi hk' |
| 487 | (fun h => hv (sourceCell_time (F.L_pos (l,n)) (clock.value_pos l n) h)) i) hi' |
| 488 | · refine Or.inr ⟨?_, ?_⟩ |
| 489 | · apply data_amplitude_zero_germ F clock reference gap r hr base tangent ctx u b G A j s S hS hsupport l n k hx' |
| 490 | intro v hv hs |
| 491 | obtain ⟨i, hi'⟩ := mem_iUnion.mp hs.2 |
| 492 | exact path_sourceCell_excluded g (hr l n) (F.L_pos (l,n)) (clock.value_pos l n) hi hk' hxi v hv i hi' |
| 493 | · apply data_source_zero_germ F clock reference gap r hr base tangent ctx u b G A j s S hS hsupport l n hx' |
| 494 | intro hs |
| 495 | obtain ⟨i, hi'⟩ := mem_iUnion.mp hs.2 |
| 496 | exact (other_sourceCell_excluded g (hr l n) (F.L_pos (l,n)) (clock.value_pos l n) hi hk' |
| 497 | (fun h => hxi h.1) i) hi' |
| 498 | · have hp' : x.1.1 ∉ S l n := fun h => hp (hinside l n _ hx' h) |
| 499 | refine Or.inr ⟨?_, ?_⟩ |
| 500 | · apply data_amplitude_zero_germ F clock reference gap r hr base tangent ctx u b G A j s S hS hsupport l n k hx' |
| 501 | intro _ _ hs |
| 502 | exact hp' hs.1 |
| 503 | · apply data_source_zero_germ F clock reference gap r hr base tangent ctx u b G A j s S hS hsupport l n hx' |
| 504 | intro hs |
| 505 | exact hp' hs.1 |
| 506 | |
| 507 | omit hS in |
| 508 | theorem data_source_complement (β : ℝ) : |
| 509 | LocalizedGaussianBounds.UniformComplementJets |
| 510 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) (fun _ _ _ => 1) β |
| 511 | (fun l n => nativeCell (ScaledActualParticularControl.geometry reference gap clock l n) |
| 512 | (outerFamily F clock r l n)) |
| 513 | (fun l => (data F clock reference gap r hr base tangent ctx u b G A j l).source) := by |
| 514 | have hlarge l : HarmonicSourceSupport.InputSupportOn (s.domain ×ˢ univ) |
| 515 | (fun n => HarmonicSourceSupport.nativeUnion |
| 516 | (ScaledActualParticularControl.geometry reference gap clock l n) (outerFamily F clock r l n)) |
| 517 | (b l) (G l) (A l) := by |
| 518 | apply sourceSupport_mono (hsupport l) |
| 519 | intro n x hx |
| 520 | obtain ⟨k, hk⟩ := mem_iUnion.mp hx.2 |
| 521 | exact mem_iUnion.mpr ⟨k, sourceCell_subset_outer (hr l n) (F.L_pos (l,n)) (clock.value_pos l n) hk⟩ |
| 522 | exact LocalizedGaussianBounds.uniform_source_complement_of_harmonicSupport |
| 523 | (data F clock reference gap r hr base tangent ctx u b G A j) |
| 524 | ctx u b G A (ScaledActualParticularControl.geometry reference gap clock) (outerFamily F clock r) |
| 525 | (fun l n => outerCell_compact _ _ _) (s.isOpen_domain.prod isOpen_univ) hlarge |
| 526 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) (fun _ hx => ⟨hx, mem_univ _⟩) |
| 527 | (fun _ => j) (fun _ => rfl) β |
| 528 | |
| 529 | end Family |
| 530 | |
| 531 | /-! ## Uniform jets of the actual Gaussian clock cutoff -/ |
| 532 | |
| 533 | section AffineJets |
| 534 | |
| 535 | variable {X Label I : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 536 | |
| 537 | /-- Translated native copies share the same constants: only the linear |
| 538 | part of their normalized clock enters the estimate. -/ |
| 539 | theorem affine_profile_uniform_jets (s : StripData X) |
| 540 | (C : Label → ℕ → I → Set X) (A : Label → ℕ → X →L[ℝ] ℝ) |
| 541 | (b : Label → ℕ → I → ℝ) |
| 542 | (hA : ∃ K : ℝ, 1 ≤ K ∧ ∃ p : ℕ, ∀ l n, ‖A l n‖ ≤ K * s.slow n ^ p) : |
| 543 | UniformLocalJets s (fun _ _ _ => 1) 0 C |
| 544 | (fun l n i x => GaussianTailFlat.profile (b l n i + A l n x)) := by |
| 545 | obtain ⟨K, hK, p, hA⟩ := hA |
| 546 | refine ⟨fun l n i _ _ _ => |
| 547 | (GaussianTailFlat.profile_contDiff.comp (contDiff_const.add (A l n).contDiff)).contDiffAt, ?_⟩ |
| 548 | intro m |
| 549 | obtain ⟨B, hB, hb⟩ := GaussianTailFlat.finite_jet_bounds GaussianTailFlat.profile_jet_bounded m |
| 550 | refine ⟨B * K ^ m, by positivity, p * m, ?_⟩ |
| 551 | intro l n i x hx hi j hj |
| 552 | have hbase : 1 ≤ K * s.growth n x ^ p := |
| 553 | one_le_mul_of_one_le_of_one_le hK (one_le_pow₀ (s.one_le_growth n x)) |
| 554 | have hAn : ‖A l n‖ ≤ K * s.growth n x ^ p := |
| 555 | (hA l n).trans (mul_le_mul_of_nonneg_left |
| 556 | (pow_le_pow_left₀ (zero_le_one.trans (s.one_le_slow n)) (s.slow_le_growth n x) p) |
| 557 | (zero_le_one.trans hK)) |
| 558 | calc |
| 559 | _ ≤ ‖iteratedFDeriv ℝ j GaussianTailFlat.profile (b l n i + A l n x)‖ * ‖A l n‖ ^ j := |
| 560 | GaussianTailFlat.norm_affine_comp_jet_le GaussianTailFlat.profile_contDiff (A l n) (b l n i) x j |
| 561 | _ ≤ B * (K * s.growth n x ^ p) ^ m := |
| 562 | mul_le_mul (hb j hj _) ((pow_le_pow_left₀ (norm_nonneg _) hAn j).trans |
| 563 | (pow_le_pow_right₀ hbase hj)) (pow_nonneg (norm_nonneg _) _) hB |
| 564 | _ = majorant s (fun _ _ => 1) 0 (B * K ^ m) (p * m) n x := by |
| 565 | simp only [majorant, Real.rpow_zero, mul_one, mul_pow, ← pow_mul] |
| 566 | ring |
| 567 | |
| 568 | end AffineJets |
| 569 | |
| 570 | section ClockJets |
| 571 | |
| 572 | variable {P Label : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 573 | {D : PhaseJetBounds.Domain (Label × ℕ) PhaseCalculus.Slow} |
| 574 | (F : PhaseConstruction D) (clock : ActualSignedControl.PositiveScale Label) |
| 575 | |
| 576 | /-- The primitive rate bound for the selected phase family controls the |
| 577 | inverse transported slot length without any loss in the copy index. -/ |
| 578 | theorem inverse_length_bound {u0 : ℝ} (hu0 : 0 < u0) |
| 579 | (hu : ∀ l n, F.u (l,n) = u0) (l : Label) (n : ℕ) : |
| 580 | (ScaledActualParticularControl.length F clock l n)⁻¹ ≤ clock.upper * F.M / u0 := by |
| 581 | have hp : 0 ≤ u0 / F.L (l,n) := (div_pos hu0 (F.L_pos (l,n))).le |
| 582 | have hb : u0 / F.L (l,n) ≤ F.M := by |
| 583 | calc |
| 584 | _ ≤ u0 / F.L (l,n) * D.scale (l,n) := |
| 585 | le_mul_of_one_le_right hp (D.one_le_scale (l,n)) |
| 586 | _ ≤ F.M := by simpa only [hu l n, abs_of_nonneg hp] using F.rate_bound (l,n) |
| 587 | have hmul := mul_le_mul_of_nonneg_left hb (clock.upper_one.trans' zero_le_one) |
| 588 | have hr := mul_le_mul_of_nonneg_right (clock.bounds l n).2 hp |
| 589 | have hh := div_le_div_of_nonneg_right (hr.trans hmul) hu0.le |
| 590 | convert! hh using 1 |
| 591 | dsimp only [ScaledActualParticularControl.length] |
| 592 | field_simp [hu0.ne', (F.L_pos (l,n)).ne', (clock.value_pos l n).ne'] |
| 593 | |
| 594 | noncomputable def normalizedLinear (g : Geometry) (L : ℝ) : (P × Plane) →L[ℝ] ℝ := |
| 595 | L⁻¹ • ((ContinuousLinearMap.snd ℝ ℝ ℝ).comp |
| 596 | (g.coordinateLinear.comp (ContinuousLinearMap.snd ℝ P Plane))) |
| 597 | |
| 598 | theorem normalizedLinear_apply (g : Geometry) (L : ℝ) (x : P × Plane) : |
| 599 | normalizedLinear (P := P) g L x = (g.coordinateLinear x.2).2 / L := by |
| 600 | change L⁻¹ * (g.coordinateLinear x.2).2 = (g.coordinateLinear x.2).2 / L |
| 601 | ring |
| 602 | |
| 603 | theorem normalized_coordinate_affine (g : Geometry) (L : ℝ) (k : Frequency) (x : P × Plane) : |
| 604 | (g.coordinates k x.2).2 / L = (g.coordinates k 0).2 / L + normalizedLinear (P := P) g L x := by |
| 605 | rw [g.coordinates_eq_affine, normalizedLinear_apply] |
| 606 | simp only [Prod.snd_add, add_div] |
| 607 | |
| 608 | theorem normalizedLinear_norm (g : Geometry) {L : ℝ} (hL : 0 < L) : |
| 609 | ‖normalizedLinear (P := P) g L‖ ≤ L⁻¹ * CommonCoverClass.argumentCost g := by |
| 610 | have hc : ‖g.coordinateLinear‖ ≤ CommonCoverClass.argumentCost g := by |
| 611 | unfold CommonCoverClass.argumentCost |
| 612 | have h : 0 ≤ ‖g.pointLinear‖ * (1 + ‖g.coordinateLinear‖) := by positivity |
| 613 | linarith |
| 614 | apply ContinuousLinearMap.opNorm_le_bound _ |
| 615 | (mul_nonneg (inv_nonneg.mpr hL.le) (zero_le_one.trans (CommonCoverClass.one_le_argumentCost g))) |
| 616 | intro x |
| 617 | rw [normalizedLinear_apply, norm_div, |
| 618 | show ‖L‖ = L by simp only [Real.norm_eq_abs, abs_of_pos hL]] |
| 619 | calc |
| 620 | _ ≤ ‖g.coordinateLinear x.2‖ / L := div_le_div_of_nonneg_right (norm_snd_le _) hL.le |
| 621 | _ ≤ (‖g.coordinateLinear‖ * ‖x.2‖) / L := |
| 622 | div_le_div_of_nonneg_right (g.coordinateLinear.le_opNorm _) hL.le |
| 623 | _ ≤ (CommonCoverClass.argumentCost g * ‖x‖) / L := |
| 624 | div_le_div_of_nonneg_right (mul_le_mul hc (norm_snd_le _) (norm_nonneg _) |
| 625 | (zero_le_one.trans (CommonCoverClass.one_le_argumentCost g))) hL.le |
| 626 | _ = _ := by ring |
| 627 | |
| 628 | theorem gaussian_clock_uniform_jets |
| 629 | (s : StripData (P × Plane)) (C : Label → ℕ → Frequency → Set (P × Plane)) |
| 630 | (g : Label → ℕ → Geometry) {u0 : ℝ} (hu0 : 0 < u0) (hu : ∀ l n, F.u (l,n) = u0) |
| 631 | (hcost : ∃ K : ℝ, 1 ≤ K ∧ ∃ p : ℕ, |
| 632 | ∀ l n, CommonCoverClass.argumentCost (g l n) ≤ K * s.slow n ^ p) : |
| 633 | UniformLocalJets s (fun _ _ _ => 1) 0 C |
| 634 | (fun l n k x => GaussianTailFlat.profile |
| 635 | (theta F clock l n ((g l n).coordinates k x.2).2)) := by |
| 636 | obtain ⟨K, hK, p, hcost⟩ := hcost |
| 637 | have hc : 0 ≤ clock.upper * F.M / u0 := |
| 638 | div_nonneg (mul_nonneg (zero_le_one.trans clock.upper_one) |
| 639 | (zero_le_one.trans F.one_le_M)) hu0.le |
| 640 | have hA : ∃ A : ℝ, 1 ≤ A ∧ ∃ p : ℕ, ∀ l n, |
| 641 | ‖normalizedLinear (P := P) (g l n) (ScaledActualParticularControl.length F clock l n)‖ ≤ |
| 642 | A * s.slow n ^ p := by |
| 643 | refine ⟨1 + (clock.upper * F.M / u0) * K, |
| 644 | le_add_of_nonneg_right (mul_nonneg hc (zero_le_one.trans hK)), p, fun l n => ?_⟩ |
| 645 | calc |
| 646 | _ ≤ (ScaledActualParticularControl.length F clock l n)⁻¹ * |
| 647 | CommonCoverClass.argumentCost (g l n) := |
| 648 | normalizedLinear_norm (g l n) (ScaledActualParticularControl.length_pos F clock l n) |
| 649 | _ ≤ (clock.upper * F.M / u0) * (K * s.slow n ^ p) := |
| 650 | mul_le_mul (inverse_length_bound F clock hu0 hu l n) (hcost l n) |
| 651 | (zero_le_one.trans (CommonCoverClass.one_le_argumentCost _)) hc |
| 652 | _ ≤ (1 + (clock.upper * F.M / u0) * K) * s.slow n ^ p := by |
| 653 | nlinarith [pow_nonneg (zero_le_one.trans (s.one_le_slow n)) p] |
| 654 | have hj := affine_profile_uniform_jets s C |
| 655 | (fun l n => normalizedLinear (P := P) (g l n) (ScaledActualParticularControl.length F clock l n)) |
| 656 | (fun l n k => ((g l n).coordinates k 0).2 / ScaledActualParticularControl.length F clock l n) hA |
| 657 | convert! hj using 1 |
| 658 | funext l n k x |
| 659 | rw [theta_eq, normalized_coordinate_affine] |
| 660 | |
| 661 | end ClockJets |
| 662 | |
| 663 | section CutoffJets |
| 664 | |
| 665 | variable {Label P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 666 | {D : PhaseJetBounds.Domain (Label × ℕ) PhaseCalculus.Slow} |
| 667 | (F : PhaseConstruction D) (clock : ActualSignedControl.PositiveScale Label) |
| 668 | (reference : Label → ℕ → Geometry) (gap : Label → ℕ → ℕ) |
| 669 | (r : Label → ℕ → ℝ) (hr : ∀ l n, 0 < r l n) |
| 670 | (base : Label → LinearWaveBounds.WaveCoefficients ((P × ℝ) × Plane)) |
| 671 | (tangent : Label → ℕ → TangentData (P × ℝ) ProblemStatement.Space) |
| 672 | (ctx : CorrectionState.Context (P × Plane)) (u : CorrectionState.State (P × Plane)) |
| 673 | (b : Label → CorrectionState.HarmonicBlock (P × Plane)) |
| 674 | (G A : Label → HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) |
| 675 | (s : StripData P) (χ : P →L[ℝ] PhaseCalculus.Slow) |
| 676 | (φ : (Label × ℕ) → PhaseCalculus.Slow →L[ℝ] PhaseCalculus.Slow) |
| 677 | |
| 678 | /-- On the analytic native cell the outer padding is identically one |
| 679 | nearby, leaving exactly the normalized Gaussian profile. -/ |
| 680 | theorem data_cutoff_gaussian_germ (l : Label) (n : ℕ) (k : Frequency) {x : (P × ℝ) × Plane} |
| 681 | (hx : x ∈ analyticPatches F clock reference gap r s χ φ l n k) : |
| 682 | (data F clock reference gap r hr base tangent ctx u b G A j l).cutoff n k =ᶠ[𝓝 x] |
| 683 | fun y => GaussianTailFlat.profile (theta F clock l n |
| 684 | ((ScaledActualParticularControl.geometry reference gap clock l n).coordinates k y.2).2) := by |
| 685 | let g := ScaledActualParticularControl.geometry reference gap clock l n |
| 686 | have hm : CopySolveCompatibility.nativeTimeMap 0 (clock.value l n) (g.coordinates k x.2) ∈ |
| 687 | (referenceWindow (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n))).core := by |
| 688 | change (g.coordinates k x.2).1 ∈ Icc (-(r l n)) (r l n) ∧ |
| 689 | 0 + clock.value l n * (g.coordinates k x.2).2 ∈ Icc 0 (F.L (l,n)) |
| 690 | simp only [zero_add] |
| 691 | exact And.intro hx.2 (ScaledActualParticularControl.clock_mem F clock |
| 692 | ⟨hx.1.2.2.1.le, hx.1.2.2.2.le⟩) |
| 693 | have hc : Continuous (fun y : (P × ℝ) × Plane => |
| 694 | CopySolveCompatibility.nativeTimeMap 0 (clock.value l n) (g.coordinates k y.2)) := |
| 695 | (CopySolveCompatibility.nativeTimeMap_continuous _ _).comp |
| 696 | ((g.coordinates_contDiff k).continuous.comp continuous_snd) |
| 697 | have he := ((referenceWindow (r l n) (F.L (l,n)) (hr l n) |
| 698 | (F.L_pos (l,n))).cutoff_germ hm).comp_tendsto hc.continuousAt |
| 699 | filter_upwards [he] with y hy |
| 700 | dsimp only [Function.comp_def] at hy |
| 701 | change (referenceWindow (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n))).cutoff |
| 702 | (CopySolveCompatibility.nativeTimeMap 0 (clock.value l n) (g.coordinates k y.2)) * _ = _ |
| 703 | rw [hy, one_mul] |
| 704 | rfl |
| 705 | |
| 706 | theorem data_cutoff_jets {u0 : ℝ} (hu0 : 0 < u0) (hu : ∀ l n, F.u (l,n) = u0) |
| 707 | (hcost : ∃ K : ℝ, 1 ≤ K ∧ ∃ p : ℕ, ∀ l n, |
| 708 | CommonCoverClass.argumentCost (ScaledActualParticularControl.geometry reference gap clock l n) ≤ |
| 709 | K * s.slow n ^ p) : |
| 710 | UniformLocalJets (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) |
| 711 | (fun _ _ _ => 1) 0 (analyticPatches F clock reference gap r s χ φ) |
| 712 | (fun l => (data F clock reference gap r hr base tangent ctx u b G A j l).cutoff) := by |
| 713 | have hj := gaussian_clock_uniform_jets F clock |
| 714 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) |
| 715 | (analyticPatches F clock reference gap r s χ φ) |
| 716 | (ScaledActualParticularControl.geometry reference gap clock) hu0 hu hcost |
| 717 | apply LocalizedWaveBounds.LocalClass.to_uniformLocalJets |
| 718 | apply (LocalizedWaveBounds.LocalClass.of_uniformLocalJets (fun _ _ _ _ => zero_le_one) hj).congr_germ |
| 719 | intro n li x hx hi |
| 720 | exact (data_cutoff_gaussian_germ F clock reference gap r hr base tangent ctx u b G A j |
| 721 | s χ φ li.1 n li.2 hi).symm |
| 722 | |
| 723 | end CutoffJets |
| 724 | |
| 725 | /-! ## The actual complex solve inherits the modal amplitude estimates -/ |
| 726 | |
| 727 | section ModalAmplitude |
| 728 | |
| 729 | variable {P Label : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 730 | [Countable Label] [Nonempty Label] |
| 731 | |
| 732 | theorem complex_amplitude_uniform_jets {s : StripData (P × Plane)} {α : ℝ} |
| 733 | (t : Label → ℕ → TangentData P ProblemStatement.Space) |
| 734 | (source : Label → ℕ → P × Plane → ComplexVector) |
| 735 | (g : Label → ℕ → Geometry) (L : Label → ℕ → ℝ) (hL : ∀ l n, 0 < L l n) |
| 736 | (envelope : Label → ℕ → ℝ → ℝ) (W : Label → ℕ → P × Plane → ℝ) |
| 737 | (d : Label → ℕ → PrimaryODE.FrameData (P × ℝ)) (harmonic : ℤ) |
| 738 | (C : Label → ℕ → Frequency → Set (P × Plane)) |
| 739 | (hr : ParticularCopyBounds.UniformModalControl s α d |
| 740 | (fun l n => realData (t l n) (source l n)) harmonic g L envelope C) |
| 741 | (hi : ParticularCopyBounds.UniformModalControl s α d |
| 742 | (fun l n => imagData (t l n) (source l n)) harmonic g L envelope C) |
| 743 | (hW : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) |
| 744 | (hcompare : ∀ l n k x, x ∈ s.domain → x ∈ C l n k → |
| 745 | envelope l n ((g l n).coordinates k x.2).2 ≤ W l n x) : |
| 746 | UniformLocalJets s (fun l n x => Real.sqrt (s.zeta x) * W l n x) α C |
| 747 | (fun l n k => complexCopyVelocity (t l n) (source l n) (g l n) (hL l n).le k) := by |
| 748 | have hw l n x hx := mul_nonneg (Real.sqrt_nonneg (s.zeta x)) (hW l n x hx) |
| 749 | have hreal := LocalizedWaveBounds.LocalClass.of_uniformLocalJets hw (hr.localJets hL W hcompare) |
| 750 | have himag := LocalizedWaveBounds.LocalClass.of_uniformLocalJets hw (hi.localJets hL W hcompare) |
| 751 | exact ((hreal.map CurlClassBounds.complexify).add |
| 752 | (himag.map ((complexScale Complex.I).comp CurlClassBounds.complexify))).to_uniformLocalJets |
| 753 | |
| 754 | end ModalAmplitude |
| 755 | |
| 756 | /-! ## The all-powers bound for the assembled, actual Gaussian error -/ |
| 757 | |
| 758 | section AllGains |
| 759 | |
| 760 | variable {Label P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 761 | {D : PhaseJetBounds.Domain (Label × ℕ) PhaseCalculus.Slow} |
| 762 | (F : PhaseConstruction D) (clock : ActualSignedControl.PositiveScale Label) |
| 763 | (reference : Label → ℕ → Geometry) (gap : Label → ℕ → ℕ) |
| 764 | (r : Label → ℕ → ℝ) (hr : ∀ l n, 0 < r l n) |
| 765 | |
| 766 | noncomputable def fieldEnvelope : Label → ℕ → (P × ℝ) × Plane → ℝ := |
| 767 | ActualParticularControl.groupedEnvelope |
| 768 | (ScaledActualParticularControl.geometry reference gap clock) r |
| 769 | (ScaledActualParticularControl.length F clock) (ScaledActualParticularControl.envelope F clock) |
| 770 | |
| 771 | omit [NormedAddCommGroup P] [NormedSpace ℝ P] in |
| 772 | theorem fieldEnvelope_nonneg (l : Label) (n : ℕ) (x : (P × ℝ) × Plane) : |
| 773 | 0 ≤ fieldEnvelope F clock reference gap r l n x := |
| 774 | WaveEnvelopeTransport.copyEnvelope_nonneg _ _ _ (fun v => |
| 775 | (referenceP_pos (F.lam (l,n)) (F.u (l,n)) (F.L (l,n)) (clock.value l n * v)).le) x.2 |
| 776 | |
| 777 | theorem fieldEnvelope_eq (s : StripData P) (χ : P →L[ℝ] PhaseCalculus.Slow) |
| 778 | (φ : (Label × ℕ) → PhaseCalculus.Slow →L[ℝ] PhaseCalculus.Slow) |
| 779 | (hinj : ∀ l n, InjOn TorusAverages.quotientPoint |
| 780 | ((fun z => (reference l n).center + (reference l n).basis z) '' |
| 781 | (referenceWindow (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n))).outer)) |
| 782 | {l : Label} {n : ℕ} {k : Frequency} {x : (P × ℝ) × Plane} |
| 783 | (hx : x ∈ analyticPatches F clock reference gap r s χ φ l n k) : |
| 784 | fieldEnvelope F clock reference gap r l n x = |
| 785 | ScaledActualParticularControl.envelope F clock l n |
| 786 | ((ScaledActualParticularControl.geometry reference gap clock l n).coordinates k x.2).2 := |
| 787 | ScaledActualParticularControl.patch_envelope (ActualParticularControl.angleStrip s) F |
| 788 | (χ.comp (ContinuousLinearMap.fst ℝ P ℝ)) φ clock reference gap r |
| 789 | (fun l n => reference_outer_separated _ (hr l n) (F.L_pos (l,n)) (hinj l n)) hx |
| 790 | |
| 791 | noncomputable def cells |
| 792 | (hinj : ∀ l n, InjOn TorusAverages.quotientPoint |
| 793 | ((fun z => (reference l n).center + (reference l n).basis z) '' |
| 794 | (referenceWindow (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n))).outer)) |
| 795 | (l : Label) : Cells ((P × ℝ) × Plane) Frequency := |
| 796 | nativeCells (ScaledActualParticularControl.geometry reference gap clock l) |
| 797 | (outerFamily F clock r l) (fun _ => outerCell_compact _ _ _) |
| 798 | (fun n => transported_outer_injective _ (gap l n) (hr l n) (F.L_pos (l,n)) |
| 799 | (clock.value_pos l n) (hinj l n)) |
| 800 | |
| 801 | variable [Countable Label] [Nonempty Label] |
| 802 | (base : Label → LinearWaveBounds.WaveCoefficients ((P × ℝ) × Plane)) |
| 803 | (tangent : Label → ℕ → TangentData (P × ℝ) ProblemStatement.Space) |
| 804 | (ctx : CorrectionState.Context (P × Plane)) (u : CorrectionState.State (P × Plane)) |
| 805 | (b : Label → CorrectionState.HarmonicBlock (P × Plane)) |
| 806 | (G A : Label → HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) |
| 807 | (s : StripData P) (χ : P →L[ℝ] PhaseCalculus.Slow) |
| 808 | (φ : (Label × ℕ) → PhaseCalculus.Slow →L[ℝ] PhaseCalculus.Slow) |
| 809 | |
| 810 | /-- Every real power is gained by the literal global Gaussian error, |
| 811 | including its uncovered-source term. The source support assumptions are |
| 812 | on the incoming harmonic coefficients; all output zero germs and all |
| 813 | cutoff estimates are derived. The modal controls are precisely those |
| 814 | constructed by `ScaledActualParticularControl`. -/ |
| 815 | theorem globalGaussian_all_gains |
| 816 | (frame : Label → ℕ → PrimaryODE.FrameData ((P × ℝ) × ℝ)) |
| 817 | {α lam0 u0 ell : ℝ} (hlam0 : 0 < lam0) (hu0 : 0 < u0) (hell : 0 < ell) |
| 818 | (hlam : ∀ l n, lam0 ≤ F.lam (l,n)) (hu : ∀ l n, F.u (l,n) = u0) |
| 819 | (hL : ∀ l n, ell * ChartScales.S n ≤ F.L (l,n)) |
| 820 | (hinj : ∀ l n, InjOn TorusAverages.quotientPoint |
| 821 | ((fun z => (reference l n).center + (reference l n).basis z) '' |
| 822 | (referenceWindow (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n))).outer)) |
| 823 | (S : Label → ℕ → Set P) (hS : ∀ l n, IsClosed (S l n)) |
| 824 | (hsupport : ∀ l, HarmonicSourceSupport.InputSupportOn (s.domain ×ˢ univ) |
| 825 | (sourceRegions F clock reference gap r S l) (b l) (G l) (A l)) |
| 826 | (hinside : ∀ l n p, p ∈ s.domain → p ∈ S l n → φ (l,n) (χ p) ∈ D.carrier (l,n)) |
| 827 | (hreal : ParticularCopyBounds.UniformModalControl |
| 828 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) α frame |
| 829 | (fun l n => realData (tangent l n) (ParticularWaveAssembly.sourceFamily ctx u (b l) (G l) (A l) j n)) |
| 830 | j (ScaledActualParticularControl.geometry reference gap clock) |
| 831 | (ScaledActualParticularControl.length F clock) (ScaledActualParticularControl.envelope F clock) |
| 832 | (analyticPatches F clock reference gap r s χ φ)) |
| 833 | (himag : ParticularCopyBounds.UniformModalControl |
| 834 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) α frame |
| 835 | (fun l n => imagData (tangent l n) (ParticularWaveAssembly.sourceFamily ctx u (b l) (G l) (A l) j n)) |
| 836 | j (ScaledActualParticularControl.geometry reference gap clock) |
| 837 | (ScaledActualParticularControl.length F clock) (ScaledActualParticularControl.envelope F clock) |
| 838 | (analyticPatches F clock reference gap r s χ φ)) |
| 839 | (hsource : UniformLocalJets |
| 840 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) |
| 841 | (fun l n x => Real.sqrt (s.zeta x.1.1) * fieldEnvelope F clock reference gap r l n x) α |
| 842 | (analyticPatches F clock reference gap r s χ φ) |
| 843 | (fun l n _ => ParticularWaveAssembly.sourceFamily ctx u (b l) (G l) (A l) j n)) |
| 844 | (dirs : LinearWaveBounds.GraphDirections ((P × ℝ) × Plane)) |
| 845 | (hfast : BandBound (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) 0 dirs.fastScale) |
| 846 | (edges : GaussianTailFlat.FlatEdges (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s))) |
| 847 | (scales : GaussianTailFlat.BandScaleControl (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s))) |
| 848 | (β : ℝ) : |
| 849 | LabelSumBounds.UniformClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) |
| 850 | (fun _ _ _ => 1) β |
| 851 | (fun l => (data F clock reference gap r hr base tangent ctx u b G A j l).globalGaussian dirs) := by |
| 852 | have hw l n x (_ : x ∈ (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)).domain) := |
| 853 | fieldEnvelope_nonneg F clock reference gap r l n x |
| 854 | have he l n k x (_ : x ∈ (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)).domain) |
| 855 | (hx : x ∈ analyticPatches F clock reference gap r s χ φ l n k) := |
| 856 | (fieldEnvelope_eq F clock reference gap r hr s χ φ hinj hx).ge |
| 857 | have hamp := complex_amplitude_uniform_jets tangent |
| 858 | (fun l => ParticularWaveAssembly.sourceFamily ctx u (b l) (G l) (A l) j) |
| 859 | (ScaledActualParticularControl.geometry reference gap clock) |
| 860 | (ScaledActualParticularControl.length F clock) (ScaledActualParticularControl.length_pos F clock) |
| 861 | (ScaledActualParticularControl.envelope F clock) (fieldEnvelope F clock reference gap r) |
| 862 | frame j (analyticPatches F clock reference gap r s χ φ) hreal himag hw he |
| 863 | apply LocalizedGaussianBounds.uniform_globalGaussian_all_gains_from_supported_native |
| 864 | (data F clock reference gap r hr base tangent ctx u b G A j) |
| 865 | (cells F clock reference gap r hr hinj) |
| 866 | (data_cutoff_support F clock reference gap r hr base tangent ctx u b G A j) |
| 867 | dirs (analyticPatches F clock reference gap r s χ φ) hw |
| 868 | (data_cutoff_jets F clock reference gap r hr base tangent ctx u b G A j s χ φ hu0 hu |
| 869 | ⟨hreal.constant, hreal.constant_ge_one, hreal.coordinate_power, hreal.coordinate_bound⟩) |
| 870 | hfast hamp hsource edges scales |
| 871 | (fun l n k x => theta F clock l n |
| 872 | ((ScaledActualParticularControl.geometry reference gap clock l n).coordinates k x.2).2) |
| 873 | (ScaledActualParticularControl.length F clock) (ScaledActualParticularControl.length_pos F clock) |
| 874 | (ell / clock.upper) (div_pos hell (zero_lt_one.trans_le clock.upper_one)) |
| 875 | (length_uniform_lower F clock hL) |
| 876 | (mul_pos (gaussianRate_pos hlam0 hu0) clock.lower_pos) |
| 877 | ?_ ?_ ?_ β |
| 878 | (data_source_complement F clock reference gap r hr base tangent ctx u b G A j s S hsupport β) |
| 879 | · intro l n k x hx hc |
| 880 | rw [fieldEnvelope_eq F clock reference gap r hr s χ φ hinj hc] |
| 881 | exact envelope_uniform_bound F clock hlam0 hu0 hlam hu l n ⟨hc.1.2.2.1.le, hc.1.2.2.2.le⟩ |
| 882 | · intro l n k x hx hc hm |
| 883 | exact Or.inl (data_central F clock reference gap r hr base tangent ctx u b G A j s χ φ l n k hc hm) |
| 884 | · intro l n k x hx hk hn |
| 885 | exact data_outside F clock reference gap r hr base tangent ctx u b G A j s S hS hsupport |
| 886 | χ φ hinside hinj l n k hx hk hn |
| 887 | |
| 888 | end AllGains |
| 889 | |
| 890 | section CurrentSourceJets |
| 891 | |
| 892 | variable {Label P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 893 | {D : PhaseJetBounds.Domain (Label × ℕ) PhaseCalculus.Slow} |
| 894 | |
| 895 | /-- The local source estimate consumed above follows from the actual |
| 896 | current harmonic residual classes, with the angular variable inserted |
| 897 | by the literal source-family definition. -/ |
| 898 | theorem source_jets_of_residual_classes |
| 899 | (F : PhaseConstruction D) (clock : ActualSignedControl.PositiveScale Label) |
| 900 | (reference : Label → ℕ → Geometry) (gap : Label → ℕ → ℕ) (r : Label → ℕ → ℝ) |
| 901 | (s : StripData P) (χ : P →L[ℝ] PhaseCalculus.Slow) |
| 902 | (φ : (Label × ℕ) → PhaseCalculus.Slow →L[ℝ] PhaseCalculus.Slow) |
| 903 | (ctx : CorrectionState.Context (P × Plane)) (u : CorrectionState.State (P × Plane)) |
| 904 | (b : Label → CorrectionState.HarmonicBlock (P × Plane)) |
| 905 | (G A : Label → HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) (α : ℝ) |
| 906 | (h : ∀ i : Fin 3, LabelSumBounds.UniformWaveClass (CommonCoverClass.sourceStrip s) |
| 907 | (ActualParticularControl.groupedEnvelope |
| 908 | (ScaledActualParticularControl.geometry reference gap clock) r |
| 909 | (ScaledActualParticularControl.length F clock) (ScaledActualParticularControl.envelope F clock)) α |
| 910 | (fun l n x => (HarmonicResidual.residualBlock ctx u (b l) (G l) (A l)).velocity n i j x)) : |
| 911 | UniformLocalJets (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) |
| 912 | (fun l n x => Real.sqrt (s.zeta x.1.1) * fieldEnvelope F clock reference gap r l n x) α |
| 913 | (analyticPatches F clock reference gap r s χ φ) |
| 914 | (fun l n _ => ParticularWaveAssembly.sourceFamily ctx u (b l) (G l) (A l) j n) := by |
| 915 | have hs := ActualParticularControl.sourceFamily_uniform s |
| 916 | (ScaledActualParticularControl.geometry reference gap clock) r |
| 917 | (ScaledActualParticularControl.length F clock) (ScaledActualParticularControl.envelope F clock) |
| 918 | α ctx u b G A (fun _ => j) h |
| 919 | refine ⟨fun l n _ x hx _ => (hs.smooth l n).contDiffAt |
| 920 | ((CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)).isOpen_domain.mem_nhds hx), ?_⟩ |
| 921 | intro m |
| 922 | obtain ⟨C, hC, p, hb⟩ := hs.bounds m |
| 923 | exact ⟨C, hC, p, fun l n _ x hx _ k hk => hb l n x hx k hk⟩ |
| 924 | |
| 925 | end CurrentSourceJets |
| 926 | |
| 927 | /-! ## Bindings to the selected reference window and primary family -/ |
| 928 | |
| 929 | noncomputable def referenceCutoff (r L : ℝ) (hr : 0 < r) (hL : 0 < L) (z : Plane) : ℝ := |
| 930 | (referenceWindow r L hr hL).cutoff z * GaussianTailFlat.slotCutoff L z.2 |
| 931 | |
| 932 | theorem nativeCutoff_eq_reference_transport {r L c : ℝ} (hr : 0 < r) (hL : 0 < L) : |
| 933 | nativeCutoff r L hr hL c = referenceCutoff r L hr hL ∘ |
| 934 | CopySolveCompatibility.nativeTimeMap 0 c := by |
| 935 | funext z |
| 936 | simp only [nativeCutoff, referenceCutoff, Function.comp_def, |
| 937 | CopySolveCompatibility.nativeTimeMap, zero_add] |
| 938 | |
| 939 | theorem referenceCutoff_support {r L : ℝ} (hr : 0 < r) (hL : 0 < L) : |
| 940 | support (referenceCutoff r L hr hL) ⊆ univ ×ˢ Icc 0 L := by |
| 941 | intro z hz |
| 942 | have hg : GaussianTailFlat.profile (z.2 / L) ≠ 0 := (mul_ne_zero_iff.mp hz).2 |
| 943 | have hd : |z.2 / L - 1 / 2| < 1 / 3 := by |
| 944 | exact lt_of_not_ge (fun h => hg (GaussianTailFlat.profile_zero h)) |
| 945 | have hlo : 0 ≤ z.2 / L := by linarith [(abs_lt.mp hd).1] |
| 946 | have hhi : z.2 / L ≤ 1 := by linarith [(abs_lt.mp hd).2] |
| 947 | exact ⟨mem_univ _, by simpa only [zero_mul] using (le_div_iff₀ hL).mp hlo, |
| 948 | (div_le_one hL).mp hhi⟩ |
| 949 | |
| 950 | theorem mem_sourceCell_clock {r L c : ℝ} (hc : 0 < c) (z : Plane) : |
| 951 | z ∈ sourceCell r L c ↔ |
| 952 | CopySolveCompatibility.nativeTimeMap 0 c z ∈ sourceCell r L 1 := by |
| 953 | simp only [sourceCell, mem_prod, mem_Icc, CopySolveCompatibility.nativeTimeMap, zero_add, div_one] |
| 954 | have hlo : L / c / 6 = (L / 6) / c := by ring |
| 955 | have hhi : 5 * (L / c) / 6 = (5 * L / 6) / c := by ring |
| 956 | rw [hlo, hhi, div_le_iff₀ hc, le_div_iff₀ hc] |
| 957 | simp only [mul_comm] |
| 958 | |
| 959 | section ActualWindow |
| 960 | |
| 961 | variable {D h : ℝ} {vr vt : Plane} |
| 962 | (sys : PartitionedCovariance.SlotSystem D h vr vt) |
| 963 | (hdet : vr.1 * vt.2 - vr.2 * vt.1 ≠ 0) |
| 964 | |
| 965 | theorem actual_slot_length_pos (m : ℕ) : 0 < ChartScales.slotLength sys.radius h m := |
| 966 | div_pos (mul_pos (by norm_num) sys.radius_pos) (ChartScales.timeCoefficient_pos h m) |
| 967 | |
| 968 | theorem referenceWindow_eq_actual (m : ℕ) : |
| 969 | referenceWindow sys.radius (ChartScales.slotLength sys.radius h m) sys.radius_pos |
| 970 | (actual_slot_length_pos sys m) = ActualSignedGeometry.clockWindow sys m := rfl |
| 971 | |
| 972 | /-- The actual slot system supplies the geometric injectivity needed |
| 973 | for finite periodization cells, including their outer padding. -/ |
| 974 | theorem actual_outer_injective (hh : 0 ≤ h) {l : SlotColoring.Label} (hl : 4 ≤ l.1) |
| 975 | (gap : ℕ) : |
| 976 | InjOn TorusAverages.quotientPoint |
| 977 | ((fun z => (ActualSignedGeometry.slotGeometry sys hdet l gap).center + |
| 978 | (ActualSignedGeometry.slotGeometry sys hdet l gap).basis z) '' |
| 979 | (referenceWindow sys.radius (ChartScales.slotLength sys.radius h l.1) sys.radius_pos |
| 980 | (actual_slot_length_pos sys l.1)).outer) := |
| 981 | ActualSignedGeometry.clockWindow_injective sys hdet hh hl gap |
| 982 | |
| 983 | theorem actual_scaled_slot_lower (hh : 0 ≤ h) {m : ℕ} (hm : 4 ≤ m) |
| 984 | {c upper : ℝ} (hc : 0 < c) (hcU : c ≤ upper) : |
| 985 | (2 * sys.radius / upper) * ChartScales.S m ≤ ChartScales.slotLength sys.radius h m / c := by |
| 986 | have hU := hc.trans_le hcU |
| 987 | calc |
| 988 | _ = (2 * sys.radius * ChartScales.S m) / upper := by ring |
| 989 | _ ≤ ChartScales.slotLength sys.radius h m / upper := |
| 990 | div_le_div_of_nonneg_right (ChartScales.slotLength_bounds sys.radius h sys.radius_pos.le hh hm).1 hU.le |
| 991 | _ ≤ _ := div_le_div_of_nonneg_left (actual_slot_length_pos sys m).le hc hcU |
| 992 | |
| 993 | end ActualWindow |
| 994 | |
| 995 | section ActualParametersAndMasks |
| 996 | |
| 997 | variable {profile : OutgoingProfile.Profile} {W : NominalProfile.Witness profile} |
| 998 | (H : NominalConeAssembly.Certificate W) {ld : ModulatedProfileAssembly.LoopData W} |
| 999 | (v : ModulatedProfileAssembly.Witness ld) |
| 1000 | {upper : ℝ} {B : ℕ} {r0 : ℝ} {N0 : ℕ} |
| 1001 | (a : PrimaryGeometryAssembly.Prepared H v upper B r0 N0) (hr0 : 0 < r0) |
| 1002 | |
| 1003 | theorem prepared_lambda_lower (sign : Fin 2) (L : PrimaryGeometryAssembly.Index W a.N) : |
| 1004 | a.M⁻¹ ≤ (PrimaryGeometryAssembly.construction H v a hr0 sign).lam L := by |
| 1005 | rw [PrimaryGeometryAssembly.construction_lambda] |
| 1006 | exact ((a.parameters L).positive_lower a.one_le_M |
| 1007 | (a.radius_pos L _ (PrimaryGeometryAssembly.representative_in_carrier W L)) (a.cone L)).2.2.1 |
| 1008 | |
| 1009 | theorem prepared_gaussian_rate_pos : 0 < gaussianRate a.M⁻¹ a.u := |
| 1010 | gaussianRate_pos (inv_pos.mpr (zero_lt_one.trans_le a.one_le_M)) a.u_pos |
| 1011 | |
| 1012 | /-- The closed slow support is the actual one-mesh primary mask. |
| 1013 | Its inclusion in the two-mesh analytic phase cell has a genuine margin. -/ |
| 1014 | noncomputable def actualSlowCore (L : PrimaryGeometryAssembly.Index W a.N) : Set PhaseCalculus.Slow := |
| 1015 | tsupport (PrimaryRepresentatives.nativeMask (BaseChartJets.cellBand L) |
| 1016 | (PrimaryGeometryAssembly.label W L).2) |
| 1017 | |
| 1018 | theorem actualSlowCore_closed (L : PrimaryGeometryAssembly.Index W a.N) : |
| 1019 | IsClosed (actualSlowCore H v a L) := isClosed_tsupport _ |
| 1020 | |
| 1021 | theorem actualSlowCore_inside (L : PrimaryGeometryAssembly.Index W a.N) {p : PhaseCalculus.Slow} |
| 1022 | (hp : p ∈ actualSlowCore H v a L) (ht : 0 < p.2.2) : |
| 1023 | p ∈ (PrimaryGeometryAssembly.domain W a.N).carrier L := |
| 1024 | PrimaryGeometryAssembly.native_support_in_carrier W L ⟨hp, ht⟩ |
| 1025 | |
| 1026 | noncomputable def actualSourceCore (L : PrimaryGeometryAssembly.Index W a.N) : Set ActualSignedGeometry.Native := |
| 1027 | actualSlowCore H v a L ×ˢ sourceCell r0 |
| 1028 | (ChartScales.slotLength r0 profile.data.h (BaseChartJets.cellBand L)) 1 |
| 1029 | |
| 1030 | theorem actualSourceCore_closed (L : PrimaryGeometryAssembly.Index W a.N) : |
| 1031 | IsClosed (actualSourceCore H v a L) := |
| 1032 | (actualSlowCore_closed H v a L).prod (sourceCell_compact _ _ _).isClosed |
| 1033 | |
| 1034 | include hr0 in |
| 1035 | /-- The full actual source mask retains all its factors. Its support is |
| 1036 | contained in the closed slow core and the Gaussian support rectangle; |
| 1037 | none of the dyadic or radial factors is asserted to equal one. -/ |
| 1038 | theorem actualMask_support (L : PrimaryGeometryAssembly.Index W a.N) : |
| 1039 | support (ActualSignedGeometry.nativeCutoff H v a L) ⊆ actualSourceCore H v a L := by |
| 1040 | intro x hx |
| 1041 | change ActualSignedGeometry.nativeCutoff H v a L x ≠ 0 at hx |
| 1042 | simp only [ActualSignedGeometry.nativeCutoff, mul_ne_zero_iff] at hx |
| 1043 | have hL : 0 < ChartScales.slotLength r0 profile.data.h (BaseChartJets.cellBand L) := |
| 1044 | div_pos (mul_pos (by norm_num) hr0) (ChartScales.timeCoefficient_pos _ _) |
| 1045 | have hs : x.1 ∈ actualSlowCore H v a L := subset_closure hx.1.1.2 |
| 1046 | have htrans : x.2.1 ∈ Ioo (-r0) r0 := by |
| 1047 | rw [← PartitionedCovariance.cutoff_support hr0] |
| 1048 | exact hx.1.2 |
| 1049 | have hg : |x.2.2 / ChartScales.slotLength r0 profile.data.h (BaseChartJets.cellBand L) - 1 / 2| < 1 / 3 := |
| 1050 | lt_of_not_ge (fun h => hx.2 (GaussianTailFlat.profile_zero h)) |
| 1051 | have hlow : (1 / 6 : ℝ) < x.2.2 / ChartScales.slotLength r0 profile.data.h (BaseChartJets.cellBand L) := by |
| 1052 | linarith [(abs_lt.mp hg).1] |
| 1053 | have hhigh : x.2.2 / ChartScales.slotLength r0 profile.data.h (BaseChartJets.cellBand L) < 5 / 6 := by |
| 1054 | linarith [(abs_lt.mp hg).2] |
| 1055 | refine ⟨hs, ⟨htrans.1.le, htrans.2.le⟩, ?_, ?_⟩ |
| 1056 | · change (ChartScales.slotLength r0 profile.data.h (BaseChartJets.cellBand L) / 1) / 6 ≤ x.2.2 |
| 1057 | simpa only [div_eq_mul_inv, inv_one, mul_one, one_mul, mul_comm] using (lt_div_iff₀ hL).mp hlow |>.le |
| 1058 | · have ht := ((div_lt_iff₀ hL).mp hhigh).le |
| 1059 | change x.2.2 ≤ 5 * (ChartScales.slotLength r0 profile.data.h (BaseChartJets.cellBand L) / 1) / 6 |
| 1060 | simpa only [div_eq_mul_inv, inv_one, mul_one, one_mul, mul_comm, mul_assoc, mul_left_comm] using ht |
| 1061 | |
| 1062 | include hr0 in |
| 1063 | theorem actualMask_tsupport (L : PrimaryGeometryAssembly.Index W a.N) : |
| 1064 | tsupport (ActualSignedGeometry.nativeCutoff H v a L) ⊆ actualSourceCore H v a L := |
| 1065 | closure_minimal (actualMask_support H v a hr0 L) (actualSourceCore_closed H v a L) |
| 1066 | |
| 1067 | include hr0 in |
| 1068 | theorem actualMask_jet_support (L : PrimaryGeometryAssembly.Index W a.N) (m : ℕ) : |
| 1069 | tsupport (iteratedFDeriv ℝ m (ActualSignedGeometry.nativeCutoff H v a L)) ⊆ actualSourceCore H v a L := |
| 1070 | (tsupport_iteratedFDeriv_subset (𝕜 := ℝ) m).trans (actualMask_tsupport H v a hr0 L) |
| 1071 | |
| 1072 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 1073 | |
| 1074 | include hr0 in |
| 1075 | /-- Clock transport of the full actual mask supplies the exact closed |
| 1076 | source region used above. The spatial mask remains part of the source. -/ |
| 1077 | theorem actualMask_transported_support (L : PrimaryGeometryAssembly.Index W a.N) |
| 1078 | (χ : P →L[ℝ] PhaseCalculus.Slow) (g : Geometry) (k : Frequency) {c : ℝ} (hc : 0 < c) : |
| 1079 | support (fun x : P × Plane => ActualSignedGeometry.nativeCutoff H v a L |
| 1080 | (χ x.1, CopySolveCompatibility.nativeTimeMap 0 c (g.coordinates k x.2))) ⊆ |
| 1081 | sourceRegion (χ ⁻¹' actualSlowCore H v a L) g r0 |
| 1082 | (ChartScales.slotLength r0 profile.data.h (BaseChartJets.cellBand L)) c := by |
| 1083 | intro x hx |
| 1084 | have hs := actualMask_support H v a hr0 L hx |
| 1085 | exact ⟨hs.1, mem_iUnion.mpr ⟨k, (mem_sourceCell_clock hc _).mpr hs.2⟩⟩ |
| 1086 | |
| 1087 | include hr0 in |
| 1088 | theorem actualMask_transported_tsupport (L : PrimaryGeometryAssembly.Index W a.N) |
| 1089 | (χ : P →L[ℝ] PhaseCalculus.Slow) (g : Geometry) (k : Frequency) {c : ℝ} (hc : 0 < c) : |
| 1090 | tsupport (fun x : P × Plane => ActualSignedGeometry.nativeCutoff H v a L |
| 1091 | (χ x.1, CopySolveCompatibility.nativeTimeMap 0 c (g.coordinates k x.2))) ⊆ |
| 1092 | sourceRegion (χ ⁻¹' actualSlowCore H v a L) g r0 |
| 1093 | (ChartScales.slotLength r0 profile.data.h (BaseChartJets.cellBand L)) c := |
| 1094 | closure_minimal (actualMask_transported_support H v a hr0 L χ g k hc) |
| 1095 | (sourceRegion_closed ((actualSlowCore_closed H v a L).preimage χ.continuous) _ _ _ _) |
| 1096 | |
| 1097 | include hr0 in |
| 1098 | theorem actualMask_transported_jet_support (L : PrimaryGeometryAssembly.Index W a.N) |
| 1099 | (χ : P →L[ℝ] PhaseCalculus.Slow) (g : Geometry) (k : Frequency) {c : ℝ} (hc : 0 < c) (m : ℕ) : |
| 1100 | tsupport (iteratedFDeriv ℝ m (fun x : P × Plane => ActualSignedGeometry.nativeCutoff H v a L |
| 1101 | (χ x.1, CopySolveCompatibility.nativeTimeMap 0 c (g.coordinates k x.2)))) ⊆ |
| 1102 | sourceRegion (χ ⁻¹' actualSlowCore H v a L) g r0 |
| 1103 | (ChartScales.slotLength r0 profile.data.h (BaseChartJets.cellBand L)) c := |
| 1104 | (tsupport_iteratedFDeriv_subset (𝕜 := ℝ) m).trans |
| 1105 | (actualMask_transported_tsupport H v a hr0 L χ g k hc) |
| 1106 | |
| 1107 | end ActualParametersAndMasks |
| 1108 | |
| 1109 | /-! ## A weighted companion for physical edge estimates -/ |
| 1110 | |
| 1111 | section WeightedGaussian |
| 1112 | |
| 1113 | open LocalizedWaveBounds GaussianTailFlat |
| 1114 | |
| 1115 | variable {X E I Label : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 1116 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1117 | |
| 1118 | /-- Only the dyadic exponent is absorbed. The flat edge weight is retained |
| 1119 | for the subsequent physical extension estimate. -/ |
| 1120 | theorem gaussian_epsilon_shift (s : StripData X) (scales : BandScaleControl s) |
| 1121 | {c : ℝ} (hc : 0 < c) (α β : ℝ) : |
| 1122 | ∃ B : ℝ, 0 < B ∧ ∀ n, |
| 1123 | s.epsilon n ^ α * Real.exp (-c * ChartScales.S n) ≤ B * s.epsilon n ^ β := by |
| 1124 | obtain ⟨B, hB, hb⟩ := gaussian_beats_Q_power hc 0 (scales.power * (β - α)) |
| 1125 | refine ⟨B, hB, fun n => ?_⟩ |
| 1126 | have hQ := ChartScales.Q_pos n |
| 1127 | have hg : Real.exp (-c * ChartScales.S n) ≤ B * ChartScales.Q n ^ (scales.power * (β - α)) := by |
| 1128 | simpa only [pow_zero, one_mul] using hb n |
| 1129 | rw [scales.epsilon_eq, ← Real.rpow_mul hQ.le, ← Real.rpow_mul hQ.le] |
| 1130 | calc |
| 1131 | _ ≤ ChartScales.Q n ^ (scales.power * α) * |
| 1132 | (B * ChartScales.Q n ^ (scales.power * (β - α))) := |
| 1133 | mul_le_mul_of_nonneg_left hg (Real.rpow_pos_of_pos hQ _).le |
| 1134 | _ = B * (ChartScales.Q n ^ (scales.power * α) * |
| 1135 | ChartScales.Q n ^ (scales.power * (β - α))) := by ring |
| 1136 | _ = _ := by rw [← Real.rpow_add hQ]; congr 2; ring |
| 1137 | |
| 1138 | /-- The Gaussian gain preserves `sqrt(zeta)` exactly. Unlike the |
| 1139 | unweighted absorption theorem, this estimate retains its original |
| 1140 | polynomial inverse-edge degree; the positive edge weight remains |
| 1141 | available to absorb that degree in physical coordinates. -/ |
| 1142 | theorem indexed_gaussian_weighted_all_gains {s : StripData X} {K : ℕ → I → Set X} |
| 1143 | {W : ℕ → I → X → ℝ} {α c : ℝ} {f : ℕ → I → X → E} |
| 1144 | (hf : LocalWave s K W α f) (scales : BandScaleControl s) |
| 1145 | (θ : ℕ → I → X → ℝ) (L : ℕ → I → ℝ) (hL : ∀ n i, 0 < L n i) |
| 1146 | (ell : ℝ) (hell : 0 < ell) (hLell : ∀ n i, ell * ChartScales.S n ≤ L n i) (hc : 0 < c) |
| 1147 | (hW : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 1148 | W n i x ≤ Real.exp (-c * (θ n i x - 1 / 2) ^ 2 * L n i)) |
| 1149 | (hzero : ∀ n i x, x ∈ s.domain → x ∈ K n i → |
| 1150 | |θ n i x - 1 / 2| < 1 / 5 → f n i =ᶠ[𝓝 x] fun _ => 0) |
| 1151 | (β : ℝ) : LocalClass s K (fun _ _ x => Real.sqrt (s.zeta x)) β f := by |
| 1152 | refine ⟨fun _ _ _ _ => Real.sqrt_nonneg _, hf.smooth, ?_⟩ |
| 1153 | intro m |
| 1154 | obtain ⟨A, hA, p, hb⟩ := hf.bounds m |
| 1155 | obtain ⟨B, hB, hshift⟩ := gaussian_epsilon_shift s scales |
| 1156 | (by positivity : 0 < c * ell / 25) α β |
| 1157 | refine ⟨A * B, mul_nonneg hA hB.le, p, ?_⟩ |
| 1158 | intro n i x hx hi j hj |
| 1159 | by_cases hm : |θ n i x - 1 / 2| < 1 / 5 |
| 1160 | · rw [jets_eq_of_germ (hzero n i x hx hi hm) j] |
| 1161 | simpa only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] using |
| 1162 | majorant_nonneg s (fun _ x => Real.sqrt (s.zeta x)) β (mul_nonneg hA hB.le) p n x |
| 1163 | (Real.sqrt_nonneg _) |
| 1164 | have htail : 1 / 5 ≤ |θ n i x - 1 / 2| := le_of_not_gt hm |
| 1165 | have hsq : (1 / 25 : ℝ) ≤ (θ n i x - 1 / 2) ^ 2 := by |
| 1166 | have hh := pow_le_pow_left₀ (by norm_num : (0 : ℝ) ≤ 1 / 5) htail 2 |
| 1167 | norm_num [sq_abs] at hh ⊢ |
| 1168 | exact hh |
| 1169 | have hPg : W n i x ≤ Real.exp (-(c * ell / 25) * ChartScales.S n) := by |
| 1170 | apply (hW n i x hx hi).trans |
| 1171 | apply (Real.exp_le_exp.2 ?_).trans (gaussian_length_comparison hc.le (hLell n i)) |
| 1172 | nlinarith [mul_le_mul_of_nonneg_left hsq (mul_nonneg hc.le (hL n i).le)] |
| 1173 | have hweight : s.epsilon n ^ α * W n i x ≤ B * s.epsilon n ^ β := |
| 1174 | (mul_le_mul_of_nonneg_left hPg (Real.rpow_pos_of_pos (s.epsilon_pos n) α).le).trans (hshift n) |
| 1175 | calc |
| 1176 | _ ≤ majorant s (fun n x => Real.sqrt (s.zeta x) * W n i x) α A p n x := hb n i x hx hi j hj |
| 1177 | _ = (A * s.growth n x ^ p * Real.sqrt (s.zeta x)) * (s.epsilon n ^ α * W n i x) := by |
| 1178 | unfold majorant; ring |
| 1179 | _ ≤ (A * s.growth n x ^ p * Real.sqrt (s.zeta x)) * (B * s.epsilon n ^ β) := |
| 1180 | mul_le_mul_of_nonneg_left hweight |
| 1181 | (mul_nonneg (mul_nonneg hA (pow_nonneg (s.growth_nonneg n x) p)) (Real.sqrt_nonneg _)) |
| 1182 | _ = majorant s (fun _ x => Real.sqrt (s.zeta x)) β (A * B) p n x := by |
| 1183 | unfold majorant; ring |
| 1184 | |
| 1185 | /-- Weighted counterpart of the frozen LGB gluing theorem. The source |
| 1186 | complement retains the same edge weight and still occurs exactly once. -/ |
| 1187 | theorem uniform_globalGaussian_weighted_from_supported_native |
| 1188 | (a : Label → CopyData X I) (K : Label → Cells X I) |
| 1189 | (hs : ∀ l n i, support ((a l).cutoff n i) ⊆ (K l).carrier n i) |
| 1190 | {s : StripData X} (d : LinearWaveBounds.GraphDirections X) (C : Label → ℕ → I → Set X) |
| 1191 | {W : Label → ℕ → X → ℝ} {α c : ℝ} |
| 1192 | (hWnonneg : ∀ l n x, x ∈ s.domain → 0 ≤ W l n x) |
| 1193 | (hψ : UniformLocalJets s (fun _ _ _ => 1) 0 C (fun l => (a l).cutoff)) |
| 1194 | (hfast : BandBound s 0 d.fastScale) |
| 1195 | (hu : UniformLocalJets s (fun l n x => Real.sqrt (s.zeta x) * W l n x) α C |
| 1196 | (fun l => (a l).amplitude)) |
| 1197 | (hf : UniformLocalJets s (fun l n x => Real.sqrt (s.zeta x) * W l n x) α C |
| 1198 | (fun l n _ => (a l).source n)) |
| 1199 | (scales : BandScaleControl s) |
| 1200 | (θ : Label → ℕ → I → X → ℝ) (length : Label → ℕ → ℝ) |
| 1201 | (hL : ∀ l n, 0 < length l n) (ell : ℝ) (hell : 0 < ell) |
| 1202 | (hLell : ∀ l n, ell * ChartScales.S n ≤ length l n) (hc : 0 < c) |
| 1203 | (hW : ∀ l n i x, x ∈ s.domain → x ∈ C l n i → |
| 1204 | W l n x ≤ Real.exp (-c * (θ l n i x - 1 / 2) ^ 2 * length l n)) |
| 1205 | (hcentral : ∀ l n i x, x ∈ s.domain → x ∈ C l n i → |θ l n i x - 1 / 2| < 1 / 5 → |
| 1206 | ((a l).cutoff n i =ᶠ[𝓝 x] fun _ => 1) ∨ |
| 1207 | (((a l).amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ ((a l).source n =ᶠ[𝓝 x] fun _ => 0))) |
| 1208 | (houtside : ∀ l n i x, x ∈ s.domain → x ∈ (K l).carrier n i → x ∉ C l n i → |
| 1209 | (((a l).cutoff n i =ᶠ[𝓝 x] fun _ => 0) ∧ ((a l).source n =ᶠ[𝓝 x] fun _ => 0)) ∨ |
| 1210 | (((a l).amplitude n i =ᶠ[𝓝 x] fun _ => 0) ∧ ((a l).source n =ᶠ[𝓝 x] fun _ => 0))) |
| 1211 | (β : ℝ) |
| 1212 | (hcomplement : LocalizedGaussianBounds.UniformComplementJets s |
| 1213 | (fun _ _ x => Real.sqrt (s.zeta x)) β (fun l => (K l).carrier) (fun l => (a l).source)) : |
| 1214 | LabelSumBounds.UniformClass s (fun _ _ x => Real.sqrt (s.zeta x)) β |
| 1215 | (fun l => (a l).globalGaussian d) := by |
| 1216 | have hw l n x hx := mul_nonneg (Real.sqrt_nonneg (s.zeta x)) (hWnonneg l n x hx) |
| 1217 | have he : LocalWave s (fun n (li : Label × I) => C li.1 n li.2) |
| 1218 | (fun n li x => W li.1 n x) α (fun n li => (a li.1).localGaussian d n li.2) := |
| 1219 | LocalizedGaussianBounds.indexedCutoffError_wave_class d |
| 1220 | (LocalClass.of_uniformLocalJets (fun _ _ _ _ => zero_le_one) hψ) hfast |
| 1221 | (LocalClass.of_uniformLocalJets hw hu) (LocalClass.of_uniformLocalJets hw hf) |
| 1222 | have hflat := indexed_gaussian_weighted_all_gains he scales |
| 1223 | (fun n li => θ li.1 n li.2) (fun n li => length li.1 n) |
| 1224 | (fun n li => hL li.1 n) ell hell (fun n li => hLell li.1 n) hc |
| 1225 | (fun n li x hx hi => hW li.1 n li.2 x hx hi) |
| 1226 | (fun n li x hx hi hm => by |
| 1227 | rcases hcentral li.1 n li.2 x hx hi hm with ho | ⟨hu,hf⟩ |
| 1228 | · exact (a li.1).localGaussian_zero_of_cutoff_one d ho |
| 1229 | · exact (a li.1).localGaussian_zero_of_fields d hu hf) β |
| 1230 | have hlarge : LocalClass s (fun n (li : Label × I) => (K li.1).carrier n li.2) |
| 1231 | (fun _ _ x => Real.sqrt (s.zeta x)) β (fun n li => (a li.1).localGaussian d n li.2) := by |
| 1232 | apply hflat.enlarge |
| 1233 | intro n li x hx hi |
| 1234 | by_cases hh : x ∈ C li.1 n li.2 |
| 1235 | · exact Or.inl hh |
| 1236 | · exact Or.inr (LocalizedGaussianBounds.localGaussian_zero_of_inactive (a li.1) d |
| 1237 | (houtside li.1 n li.2 x hx hi hh)) |
| 1238 | exact LocalizedGaussianBounds.uniform_globalGaussian_class_with_complement a K hs d |
| 1239 | (fun _ _ _ _ => Real.sqrt_nonneg _) hlarge.to_uniformLocalJets hcomplement |
| 1240 | |
| 1241 | end WeightedGaussian |
| 1242 | |
| 1243 | section ActualWeighted |
| 1244 | |
| 1245 | variable {Label P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 1246 | {D : PhaseJetBounds.Domain (Label × ℕ) PhaseCalculus.Slow} |
| 1247 | (F : PhaseConstruction D) (clock : ActualSignedControl.PositiveScale Label) |
| 1248 | (reference : Label → ℕ → Geometry) (gap : Label → ℕ → ℕ) |
| 1249 | (r : Label → ℕ → ℝ) (hr : ∀ l n, 0 < r l n) |
| 1250 | |
| 1251 | variable [Countable Label] [Nonempty Label] |
| 1252 | (base : Label → LinearWaveBounds.WaveCoefficients ((P × ℝ) × Plane)) |
| 1253 | (tangent : Label → ℕ → TangentData (P × ℝ) ProblemStatement.Space) |
| 1254 | (ctx : CorrectionState.Context (P × Plane)) (u : CorrectionState.State (P × Plane)) |
| 1255 | (b : Label → CorrectionState.HarmonicBlock (P × Plane)) |
| 1256 | (G A : Label → HarmonicResidual.BlockCoefficients (P × Plane)) (j : ℤ) |
| 1257 | (s : StripData P) (χ : P →L[ℝ] PhaseCalculus.Slow) |
| 1258 | (φ : (Label × ℕ) → PhaseCalculus.Slow →L[ℝ] PhaseCalculus.Slow) |
| 1259 | |
| 1260 | /-- The actual Gaussian error retains precisely the flat `sqrt(zeta)` |
| 1261 | weight at every decay exponent. This companion is suitable for the |
| 1262 | physical local-source bounds; no completed edge extension is assumed. -/ |
| 1263 | theorem globalGaussian_weighted_all_gains |
| 1264 | (frame : Label → ℕ → PrimaryODE.FrameData ((P × ℝ) × ℝ)) |
| 1265 | {α lam0 u0 ell : ℝ} (hlam0 : 0 < lam0) (hu0 : 0 < u0) (hell : 0 < ell) |
| 1266 | (hlam : ∀ l n, lam0 ≤ F.lam (l,n)) (hu : ∀ l n, F.u (l,n) = u0) |
| 1267 | (hL : ∀ l n, ell * ChartScales.S n ≤ F.L (l,n)) |
| 1268 | (hinj : ∀ l n, InjOn TorusAverages.quotientPoint |
| 1269 | ((fun z => (reference l n).center + (reference l n).basis z) '' |
| 1270 | (referenceWindow (r l n) (F.L (l,n)) (hr l n) (F.L_pos (l,n))).outer)) |
| 1271 | (S : Label → ℕ → Set P) (hS : ∀ l n, IsClosed (S l n)) |
| 1272 | (hsupport : ∀ l, HarmonicSourceSupport.InputSupportOn (s.domain ×ˢ univ) |
| 1273 | (sourceRegions F clock reference gap r S l) (b l) (G l) (A l)) |
| 1274 | (hinside : ∀ l n p, p ∈ s.domain → p ∈ S l n → φ (l,n) (χ p) ∈ D.carrier (l,n)) |
| 1275 | (hreal : ParticularCopyBounds.UniformModalControl |
| 1276 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) α frame |
| 1277 | (fun l n => realData (tangent l n) (ParticularWaveAssembly.sourceFamily ctx u (b l) (G l) (A l) j n)) |
| 1278 | j (ScaledActualParticularControl.geometry reference gap clock) |
| 1279 | (ScaledActualParticularControl.length F clock) (ScaledActualParticularControl.envelope F clock) |
| 1280 | (analyticPatches F clock reference gap r s χ φ)) |
| 1281 | (himag : ParticularCopyBounds.UniformModalControl |
| 1282 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) α frame |
| 1283 | (fun l n => imagData (tangent l n) (ParticularWaveAssembly.sourceFamily ctx u (b l) (G l) (A l) j n)) |
| 1284 | j (ScaledActualParticularControl.geometry reference gap clock) |
| 1285 | (ScaledActualParticularControl.length F clock) (ScaledActualParticularControl.envelope F clock) |
| 1286 | (analyticPatches F clock reference gap r s χ φ)) |
| 1287 | (hsource : UniformLocalJets |
| 1288 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) |
| 1289 | (fun l n x => Real.sqrt (s.zeta x.1.1) * fieldEnvelope F clock reference gap r l n x) α |
| 1290 | (analyticPatches F clock reference gap r s χ φ) |
| 1291 | (fun l n _ => ParticularWaveAssembly.sourceFamily ctx u (b l) (G l) (A l) j n)) |
| 1292 | (dirs : LinearWaveBounds.GraphDirections ((P × ℝ) × Plane)) |
| 1293 | (hfast : BandBound (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) 0 dirs.fastScale) |
| 1294 | (scales : GaussianTailFlat.BandScaleControl (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s))) |
| 1295 | (β : ℝ) : |
| 1296 | LabelSumBounds.UniformClass (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) |
| 1297 | (fun _ _ x => Real.sqrt (s.zeta x.1.1)) β |
| 1298 | (fun l => (data F clock reference gap r hr base tangent ctx u b G A j l).globalGaussian dirs) := by |
| 1299 | have hw l n x (_ : x ∈ (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)).domain) := |
| 1300 | fieldEnvelope_nonneg F clock reference gap r l n x |
| 1301 | have he l n k x (_ : x ∈ (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)).domain) |
| 1302 | (hx : x ∈ analyticPatches F clock reference gap r s χ φ l n k) := |
| 1303 | (fieldEnvelope_eq F clock reference gap r hr s χ φ hinj hx).ge |
| 1304 | have hamp := complex_amplitude_uniform_jets tangent |
| 1305 | (fun l => ParticularWaveAssembly.sourceFamily ctx u (b l) (G l) (A l) j) |
| 1306 | (ScaledActualParticularControl.geometry reference gap clock) |
| 1307 | (ScaledActualParticularControl.length F clock) (ScaledActualParticularControl.length_pos F clock) |
| 1308 | (ScaledActualParticularControl.envelope F clock) (fieldEnvelope F clock reference gap r) |
| 1309 | frame j (analyticPatches F clock reference gap r s χ φ) hreal himag hw he |
| 1310 | have hcomp : LocalizedGaussianBounds.UniformComplementJets |
| 1311 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip s)) |
| 1312 | (fun _ _ x => Real.sqrt (s.zeta x.1.1)) β |
| 1313 | (fun l => (cells F clock reference gap r hr hinj l).carrier) |
| 1314 | (fun l => (data F clock reference gap r hr base tangent ctx u b G A j l).source) := by |
| 1315 | apply LocalizedGaussianBounds.UniformComplementJets.of_zero_germs |
| 1316 | intro l n x hx hn |
| 1317 | apply data_source_zero_germ F clock reference gap r hr base tangent ctx u b G A j |
| 1318 | s S hS hsupport l n hx |
| 1319 | intro hreg |
| 1320 | obtain ⟨k,hk⟩ := mem_iUnion.mp hreg.2 |
| 1321 | exact hn k (sourceCell_subset_outer (hr l n) (F.L_pos (l,n)) (clock.value_pos l n) hk) |
| 1322 | apply uniform_globalGaussian_weighted_from_supported_native |
| 1323 | (data F clock reference gap r hr base tangent ctx u b G A j) |
| 1324 | (cells F clock reference gap r hr hinj) |
| 1325 | (data_cutoff_support F clock reference gap r hr base tangent ctx u b G A j) |
| 1326 | dirs (analyticPatches F clock reference gap r s χ φ) hw |
| 1327 | (data_cutoff_jets F clock reference gap r hr base tangent ctx u b G A j s χ φ hu0 hu |
| 1328 | ⟨hreal.constant, hreal.constant_ge_one, hreal.coordinate_power, hreal.coordinate_bound⟩) |
| 1329 | hfast hamp hsource scales |
| 1330 | (fun l n k x => theta F clock l n |
| 1331 | ((ScaledActualParticularControl.geometry reference gap clock l n).coordinates k x.2).2) |
| 1332 | (ScaledActualParticularControl.length F clock) (ScaledActualParticularControl.length_pos F clock) |
| 1333 | (ell / clock.upper) (div_pos hell (zero_lt_one.trans_le clock.upper_one)) |
| 1334 | (length_uniform_lower F clock hL) |
| 1335 | (mul_pos (gaussianRate_pos hlam0 hu0) clock.lower_pos) |
| 1336 | ?_ ?_ ?_ β |
| 1337 | hcomp |
| 1338 | · intro l n k x hx hc |
| 1339 | rw [fieldEnvelope_eq F clock reference gap r hr s χ φ hinj hc] |
| 1340 | exact envelope_uniform_bound F clock hlam0 hu0 hlam hu l n ⟨hc.1.2.2.1.le, hc.1.2.2.2.le⟩ |
| 1341 | · intro l n k x hx hc hm |
| 1342 | exact Or.inl (data_central F clock reference gap r hr base tangent ctx u b G A j s χ φ l n k hc hm) |
| 1343 | · intro l n k x hx hk hn |
| 1344 | exact data_outside F clock reference gap r hr base tangent ctx u b G A j s S hS hsupport |
| 1345 | χ φ hinside hinj l n k hx hk hn |
| 1346 | |
| 1347 | end ActualWeighted |
| 1348 | |
| 1349 | end NavierStokes.ActualGaussianCoverage |