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

Comparing changes
Choose two branches to see what changed, then open a pull request to bring the work across.
Able to merge. These branches can be merged automatically.
A pull request is already open: #389 chore(NavierStokes/Physical): delete 204 declarations nothing uses
1 commit
+0 −134 NavierStokes/PhysicalClassBounds.lean View file
| @@ -292,47 +292,6 @@ structure CommonChart {H : ℕ} (F : PhysicalWaveSum.WaveFamily H) | ||
| 292 | 292 | PhysicalGraphBounds.scaledRadial I.1.val.1 z ∈ PhysicalGraphBounds.annulus a b → |
| 293 | 293 | PhysicalWaveSum.commonLift h I.1.val.1 (F.gap I.1) z ∈ domain I |
| 294 | 294 | |
| 295 | -/-- Actual composition and the explicit band prefactor produce the | |
| 296 | -stripped amplitude estimate. Its exponent is `h*α+σ`, and its constants | |
| 297 | -are independent of the label. -/ | |
| 298 | -theorem CommonChart.amplitude_bound {s : StripData D} {h α σ a b r0 : ℝ} | |
| 299 | - {w : ι → ℕ → D → ℝ} {f : ι → ℕ → D → ℂ} | |
| 300 | - (hf : SourceBounds s h α w f) {H : ℕ} {F : PhysicalWaveSum.WaveFamily H} | |
| 301 | - (hc : CommonChart F a b h r0 σ f) (m : ℕ) : | |
| 302 | - ∃ A : ℝ, 0 ≤ A ∧ ∃ p : ℕ, ∀ I x, x ∈ hc.domain I → ∀ j ≤ m, | |
| 303 | - ‖iteratedFDeriv ℝ j (F.amplitude I) x‖ ≤ | |
| 304 | - A * ChartScales.Q I.1.val.1 ^ (h * α + σ) * ChartScales.S I.1.val.1 ^ p := by | |
| 305 | - obtain ⟨A, hA, p, hb⟩ := hf.chart_bound m | |
| 306 | - obtain ⟨B, hB, q, hq⟩ := hc.positive_jets m | |
| 307 | - refine ⟨(m.factorial : ℝ) * A * B ^ m, by positivity, p + q * m, ?_⟩ | |
| 308 | - intro I x hx j hj | |
| 309 | - have hS : 1 ≤ ChartScales.S I.1.val.1 := PhysicalGraphBounds.S_ge_one (by have := I.1.property; omega) | |
| 310 | - have hQ := ChartScales.Q_pos I.1.val.1 | |
| 311 | - have hS0 : 0 ≤ ChartScales.S I.1.val.1 := zero_le_one.trans hS | |
| 312 | - have hA0 : 0 ≤ A * ChartScales.Q I.1.val.1 ^ (h * α) * ChartScales.S I.1.val.1 ^ p := by positivity | |
| 313 | - have hB0 : 1 ≤ B * ChartScales.S I.1.val.1 ^ q := | |
| 314 | - one_le_mul_of_one_le_of_one_le hB (one_le_pow₀ hS) | |
| 315 | - have hjb := composition_jet_bound (hf.smooth (hc.sourceIndex I) I.1.val.1) | |
| 316 | - (hc.open_domain I) (hc.smooth I) hx m hA0 hB0 | |
| 317 | - (fun k hk => hb (hc.sourceIndex I) I.1.val.1 I.1.property (hc.map I x) k hk) | |
| 318 | - (fun k hk hkm => hq I x hx k hk hkm) j hj | |
| 319 | - have hcomp : ContDiffAt ℝ ∞ (f (hc.sourceIndex I) I.1.val.1 ∘ hc.map I) x := | |
| 320 | - (hf.smooth (hc.sourceIndex I) I.1.val.1).contDiffAt.comp x | |
| 321 | - ((hc.smooth I).contDiffAt ((hc.open_domain I).mem_nhds hx)) | |
| 322 | - rw [hc.amplitude_eq I] | |
| 323 | - change ‖iteratedFDeriv ℝ j (fun x => (ChartScales.Q I.1.val.1 ^ σ) • | |
| 324 | - (f (hc.sourceIndex I) I.1.val.1 ∘ hc.map I) x) x‖ ≤ _ | |
| 325 | - rw [iteratedFDeriv_const_smul_apply' (hcomp.of_le (nat_le_infty j)), | |
| 326 | - norm_smul (ChartScales.Q I.1.val.1 ^ σ) | |
| 327 | - (iteratedFDeriv ℝ j (f (hc.sourceIndex I) I.1.val.1 ∘ hc.map I) x), | |
| 328 | - Real.norm_of_nonneg (Real.rpow_pos_of_pos hQ σ).le] | |
| 329 | - calc | |
| 330 | - _ ≤ ChartScales.Q I.1.val.1 ^ σ * ((m.factorial : ℝ) * | |
| 331 | - (A * ChartScales.Q I.1.val.1 ^ (h * α) * ChartScales.S I.1.val.1 ^ p) * | |
| 332 | - (B * ChartScales.S I.1.val.1 ^ q) ^ m) := | |
| 333 | - mul_le_mul_of_nonneg_left hjb (Real.rpow_pos_of_pos hQ σ).le | |
| 334 | - _ = _ := by rw [Real.rpow_add hQ, pow_add, mul_pow, ← pow_mul]; ring | |
| 335 | - | |
| 336 | 295 | end CommonCoordinates |
| 337 | 296 | |
| 338 | 297 | /-- The natural slow scale for a band label is at least one because the |
| @@ -363,104 +322,11 @@ structure CarrierBounds {H : ℕ} (F : PhysicalWaveSum.WaveFamily H) (a b h r0 : | ||
| 363 | 322 | (ChartScales.timeCoefficient h I.1.val.1) (F.carrier I.1).center r0 |
| 364 | 323 | (PhysicalGraphBounds.physicalLift h I.1.val.1 z)).1 ∈ region I.1 |
| 365 | 324 | |
| 366 | -theorem CarrierBounds.profile_bound {H : ℕ} {F : PhysicalWaveSum.WaveFamily H} | |
| 367 | - {a b h r0 : ℝ} (hb : CarrierBounds F a b h r0) (m : ℕ) : | |
| 368 | - ∃ B : ℝ, 1 ≤ B ∧ ∃ p : ℕ, ∀ L x, x ∈ hb.region L → ∀ j ≤ m, | |
| 369 | - ‖iteratedFDeriv ℝ j (F.carrier L).F x‖ ≤ B * ChartScales.S L.val.1 ^ p ∧ | |
| 370 | - ‖iteratedFDeriv ℝ j (F.carrier L).G x‖ ≤ B * ChartScales.S L.val.1 ^ p := by | |
| 371 | - obtain ⟨B, hB, p, hp⟩ := hb.jets.bound m | |
| 372 | - refine ⟨B, hB, p, ?_⟩ | |
| 373 | - intro L x hx j hj | |
| 374 | - have hpair := (hb.jets.smooth L).contDiffAt ((hb.open_region L).mem_nhds hx) | |
| 375 | - have he := hp L j hj x hx | |
| 376 | - rw [PhysicalGraphBounds.iteratedFDeriv_pair | |
| 377 | - (hpair.fst.of_le (nat_le_infty j)) (hpair.snd.of_le (nat_le_infty j)), | |
| 378 | - ContinuousMultilinearMap.opNorm_prod] at he | |
| 379 | - exact ⟨(le_max_left _ _).trans he, (le_max_right _ _).trans he⟩ | |
| 380 | - | |
| 381 | -/-- The full `StrippedClass` is derived from the uniform weighted source, | |
| 382 | -the primitive common-chart identity, and the actual base-profile jets. -/ | |
| 383 | -theorem strippedClass {s : StripData D} {h α σ a b r0 P : ℝ} | |
| 384 | - {w : ι → ℕ → D → ℝ} {f : ι → ℕ → D → ℂ} | |
| 385 | - (hf : SourceBounds s h α w f) {H : ℕ} {F : PhysicalWaveSum.WaveFamily H} | |
| 386 | - (hc : CommonChart F a b h r0 σ f) (hb : CarrierBounds F a b h r0) | |
| 387 | - (hp : ∀ L, |(F.carrier L).angular| ≤ P ∧ | |
| 388 | - |(F.carrier L).axial| ≤ P ∧ |(F.carrier L).radial| ≤ P) (m : ℕ) : | |
| 389 | - ∃ A : ℝ, 0 ≤ A ∧ ∃ B : ℝ, 1 ≤ B ∧ ∃ p q : ℕ, | |
| 390 | - PhysicalWaveSum.StrippedClass F a b h r0 P A B (h * α + σ) p q m := by | |
| 391 | - obtain ⟨A, hA, p, hAp⟩ := hc.amplitude_bound hf m | |
| 392 | - obtain ⟨B, hB, q, hBq⟩ := hb.profile_bound m | |
| 393 | - refine ⟨A, hA, B, hB, p, q, hp, ?_, ?_, ?_⟩ | |
| 394 | - · intro I z hz hregion hann j hj | |
| 395 | - simpa only [Real.rpow_natCast] using | |
| 396 | - hAp I _ (hc.contains I z hz hregion hann) j hj | |
| 397 | - · intro I z hz hregion hann chart hchart j hj | |
| 398 | - simpa only [Real.rpow_natCast] using | |
| 399 | - (hBq I.1 _ (hb.contains I z hz hregion hann chart hchart) j hj).1 | |
| 400 | - · intro I z hz hregion hann chart hchart j hj | |
| 401 | - simpa only [Real.rpow_natCast] using | |
| 402 | - (hBq I.1 _ (hb.contains I z hz hregion hann chart hchart) j hj).2 | |
| 403 | - | |
| 404 | 325 | /-- The derivative loss includes the displayed physical field rescaling. |
| 405 | 326 | It depends on the derivative order and fixed scaling parameters only. -/ |
| 406 | 327 | noncomputable def physicalLoss (h σ : ℝ) (m : ℕ) : ℝ := |
| 407 | 328 | PhysicalGraphBounds.waveLoss h m - σ |
| 408 | 329 | |
| 409 | -/-- Full physical jets of the actual locally finite wave sum. The | |
| 410 | -derivative-loss function does not depend on the harmonic cutoff, cover gap, | |
| 411 | -label, slow polynomial degrees, or correction stage. -/ | |
| 412 | -theorem physical_sum_jet_bound {s : StripData D} {h α σ a b r0 Z P : ℝ} | |
| 413 | - {w : ι → ℕ → D → ℝ} {f : ι → ℕ → D → ℂ} | |
| 414 | - (hf : SourceBounds s h α w f) {H Δ : ℕ} {F : PhysicalWaveSum.WaveFamily H} | |
| 415 | - (hc : CommonChart F a b h r0 σ f) (hb : CarrierBounds F a b h r0) | |
| 416 | - (hr : PhysicalWaveSum.RegularFamily F a b h r0 Z Δ) | |
| 417 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) | |
| 418 | - (hP : 1 ≤ P) (hp : ∀ L, |(F.carrier L).angular| ≤ P ∧ | |
| 419 | - |(F.carrier L).axial| ≤ P ∧ |(F.carrier L).radial| ≤ P) (m : ℕ) : | |
| 420 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ z : ProblemStatement.SpaceTime, | |
| 421 | - z ∈ PhysicalWaveSum.preterminal → |z.1| ≤ 1 → | |
| 422 | - ‖iteratedFDeriv ℝ m (F.sum a h r0) z‖ ≤ | |
| 423 | - C * PhysicalWaveSum.physicalQ h z ^ (h * α - physicalLoss h σ m) := by | |
| 424 | - obtain ⟨A, hA, B, hB, p, q, hclass⟩ := strippedClass hf hc hb hp m | |
| 425 | - obtain ⟨C, hC, hbound⟩ := PhysicalWaveSum.physical_sum_jet_bound | |
| 426 | - (b := b) hh hh1 ha hZ hr0 hP hB (Nat.cast_nonneg q) H Δ m | |
| 427 | - (h * α + σ) p A hA | |
| 428 | - refine ⟨C, hC, ?_⟩ | |
| 429 | - intro z hz ht | |
| 430 | - convert! hbound F hr hclass z hz ht using 1 | |
| 431 | - congr 2 | |
| 432 | - unfold physicalLoss | |
| 433 | - ring | |
| 434 | - | |
| 435 | -theorem physical_vector_sum_jet_bound {s : StripData D} {h α σ a b r0 Z P : ℝ} | |
| 436 | - {w : ι → ℕ → D → ℝ} {f : ι → ℕ → D → ℂ} | |
| 437 | - (hf : SourceBounds s h α w f) {H Δ : ℕ} {F : Fin 3 → PhysicalWaveSum.WaveFamily H} | |
| 438 | - (hc : ∀ i, CommonChart (F i) a b h r0 σ f) | |
| 439 | - (hb : ∀ i, CarrierBounds (F i) a b h r0) | |
| 440 | - (hr : ∀ i, PhysicalWaveSum.RegularFamily (F i) a b h r0 Z Δ) | |
| 441 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) | |
| 442 | - (hP : 1 ≤ P) (hp : ∀ i L, |((F i).carrier L).angular| ≤ P ∧ | |
| 443 | - |((F i).carrier L).axial| ≤ P ∧ |((F i).carrier L).radial| ≤ P) (m : ℕ) : | |
| 444 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ z : ProblemStatement.SpaceTime, | |
| 445 | - z ∈ PhysicalWaveSum.preterminal → |z.1| ≤ 1 → | |
| 446 | - ‖iteratedFDeriv ℝ m (PhysicalWaveSum.vectorSum F a h r0) z‖ ≤ | |
| 447 | - C * PhysicalWaveSum.physicalQ h z ^ (h * α - physicalLoss h σ m) := by | |
| 448 | - classical | |
| 449 | - have hs := fun i => physical_sum_jet_bound hf (hc i) (hb i) (hr i) | |
| 450 | - hh hh1 ha hZ hr0 hP (hp i) m | |
| 451 | - choose C hC hbound using hs | |
| 452 | - refine ⟨3 * ∑ i : Fin 3, C i, | |
| 453 | - mul_nonneg (by norm_num) (Finset.sum_nonneg (fun i _ => hC i)), ?_⟩ | |
| 454 | - intro z hz ht | |
| 455 | - have hq := PhysicalWaveSum.physicalQ_pos hh hh1 hz | |
| 456 | - have hi (i : Fin 3) : C i ≤ ∑ j : Fin 3, C j := | |
| 457 | - Finset.single_le_sum (fun j _ => hC j) (Finset.mem_univ i) | |
| 458 | - have he := PhysicalWaveSum.vectorSum_jet_bound hr ha hh hh1 hz m | |
| 459 | - (B := (∑ i : Fin 3, C i) * PhysicalWaveSum.physicalQ h z ^ (h * α - physicalLoss h σ m)) | |
| 460 | - (fun i => (hbound i z hz ht).trans | |
| 461 | - (mul_le_mul_of_nonneg_right (hi i) (Real.rpow_pos_of_pos hq _).le)) | |
| 462 | - exact he.trans_eq (by ring) | |
| 463 | - | |
| 464 | 330 | /-- Inclusion of a spatial direction into a joint spacetime direction. -/ |
| 465 | 331 | noncomputable def spatialInclusion : ProblemStatement.Space →L[ℝ] ProblemStatement.SpaceTime := |
| 466 | 332 | (0 : ProblemStatement.Space →L[ℝ] ℝ).prod (ContinuousLinearMap.id ℝ ProblemStatement.Space) |
+0 −211 NavierStokes/PhysicalCopyBounds.lean View file
| @@ -104,30 +104,11 @@ structure SupportCells {H : ℕ} {K : Type*} (f : CopyFamily H K) where | ||
| 104 | 104 | |
| 105 | 105 | variable {H Δ : ℕ} {K : Type*} {f : CopyFamily H K} {a b h r0 Z : ℝ} |
| 106 | 106 | |
| 107 | -theorem RegularFamily.term_smooth (hr : RegularFamily f a b h r0 Z Δ) | |
| 108 | - (ha : 0 < a) (I : WaveIndex H) (k : K) : ContDiff ℝ ∞ (f.term a h r0 I k) := | |
| 109 | - (hr.copy k).term_smooth ha I | |
| 110 | - | |
| 111 | 107 | theorem SupportCells.term_mem (hc : SupportCells f) (I : WaveIndex H) (k : K) |
| 112 | 108 | (w : SpaceTime) (hw : f.term a h r0 I k w ≠ 0) : |
| 113 | 109 | commonLift h I.1.val.1 (f.gap I.1) w ∈ (hc.cells I.1).carrier I.1.val.1 k := |
| 114 | 110 | hc.support I k (globalWave_ne_zero_amp hw) |
| 115 | 111 | |
| 116 | -/-- Off the fixed radial annulus, all copies vanish on one common | |
| 117 | -neighborhood. This also handles the axis without a smooth graph there. -/ | |
| 118 | -theorem RegularFamily.periodized_zero_off_annulus (hr : RegularFamily f a b h r0 Z Δ) | |
| 119 | - (I : WaveIndex H) {w : SpaceTime} | |
| 120 | - (hw : PhysicalGraphBounds.scaledRadial I.1.val.1 w ∉ PhysicalGraphBounds.annulus a b) : | |
| 121 | - f.periodized a h r0 I =ᶠ[𝓝 w] fun _ => 0 := by | |
| 122 | - filter_upwards [(PhysicalGraphBounds.scaledRadial I.1.val.1).continuous.continuousAt | |
| 123 | - ((PhysicalGraphBounds.isCompact_annulus a b).isClosed.isOpen_compl.mem_nhds hw)] with y hy | |
| 124 | - suffices hz : ∀ k, f.term a h r0 I k y = 0 by | |
| 125 | - simp only [CopyFamily.periodized, hz, tsum_zero] | |
| 126 | - intro k | |
| 127 | - apply globalWave_eq_zero | |
| 128 | - by_contra hn | |
| 129 | - exact hy ((hr.copy k).geometry_support I y hn).1 | |
| 130 | - | |
| 131 | 112 | theorem commonLift_continuousAt_of_annulus (ha : 0 < a) (n d : ℕ) {w : SpaceTime} |
| 132 | 113 | (hw : PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b) : |
| 133 | 114 | ContinuousAt (commonLift h n d) w := by |
| @@ -135,66 +116,6 @@ theorem commonLift_continuousAt_of_annulus (ha : 0 < a) (n d : ℕ) {w : SpaceTi | ||
| 135 | 116 | exact PhysicalGraphBounds.scaledRadial_ne_zero |
| 136 | 117 | (PhysicalGraphBounds.annulus_axisFree ha hw) |
| 137 | 118 | |
| 138 | -theorem RegularFamily.periodized_germ_cover (hr : RegularFamily f a b h r0 Z Δ) | |
| 139 | - (hc : SupportCells f) (ha : 0 < a) (I : WaveIndex H) (w : SpaceTime) : | |
| 140 | - (∃ k, commonLift h I.1.val.1 (f.gap I.1) w ∈ (hc.cells I.1).carrier I.1.val.1 k ∧ | |
| 141 | - f.periodized a h r0 I =ᶠ[𝓝 w] f.term a h r0 I k) ∨ | |
| 142 | - f.periodized a h r0 I =ᶠ[𝓝 w] fun _ => 0 := by | |
| 143 | - classical | |
| 144 | - by_cases hann : PhysicalGraphBounds.scaledRadial I.1.val.1 w ∈ PhysicalGraphBounds.annulus a b | |
| 145 | - · exact copySum_pullback_germ_cover (hc.cells I.1) I.1.val.1 | |
| 146 | - (commonLift h I.1.val.1 (f.gap I.1)) (f.term a h r0 I) | |
| 147 | - (hc.term_mem I) (commonLift_continuousAt_of_annulus ha _ _ hann) | |
| 148 | - · exact Or.inr (hr.periodized_zero_off_annulus I hann) | |
| 149 | - | |
| 150 | -theorem RegularFamily.periodized_smooth (hr : RegularFamily f a b h r0 Z Δ) | |
| 151 | - (hc : SupportCells f) (ha : 0 < a) (I : WaveIndex H) : | |
| 152 | - ContDiff ℝ ∞ (f.periodized a h r0 I) := by | |
| 153 | - apply contDiff_iff_contDiffAt.mpr | |
| 154 | - intro w | |
| 155 | - rcases hr.periodized_germ_cover hc ha I w with ⟨k, _, hg⟩ | hg | |
| 156 | - · exact (hr.term_smooth ha I k).contDiffAt.congr_of_eventuallyEq hg | |
| 157 | - · exact contDiffAt_const.congr_of_eventuallyEq hg | |
| 158 | - | |
| 159 | -/-- On a specified native copy cell, the full sum equals that full copy. | |
| 160 | -The identity keeps the copy's own phase as well as its amplitude. -/ | |
| 161 | -theorem SupportCells.periodized_eq (hc : SupportCells f) (I : WaveIndex H) (k : K) | |
| 162 | - (w : SpaceTime) | |
| 163 | - (hk : commonLift h I.1.val.1 (f.gap I.1) w ∈ (hc.cells I.1).carrier I.1.val.1 k) : | |
| 164 | - f.periodized a h r0 I w = f.term a h r0 I k w := by | |
| 165 | - classical | |
| 166 | - apply tsum_eq_single k | |
| 167 | - intro j hj | |
| 168 | - by_contra hn | |
| 169 | - exact hj ((hc.cells I.1).unique _ j k _ (hc.term_mem I j w hn) hk) | |
| 170 | - | |
| 171 | -theorem RegularFamily.periodized_support (hr : RegularFamily f a b h r0 Z Δ) | |
| 172 | - (I : WaveIndex H) (w : SpaceTime) (hw : w ∈ preterminal) | |
| 173 | - (hn : f.periodized a h r0 I w ≠ 0) : | |
| 174 | - physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val := by | |
| 175 | - classical | |
| 176 | - by_contra hout | |
| 177 | - apply hn | |
| 178 | - suffices hz : ∀ k, f.term a h r0 I k w = 0 by | |
| 179 | - simp only [CopyFamily.periodized, hz, tsum_zero] | |
| 180 | - intro k | |
| 181 | - by_contra hne | |
| 182 | - exact hout ((hr.copy k).term_support I w hw hne) | |
| 183 | - | |
| 184 | -theorem RegularFamily.sum_smooth (hr : RegularFamily f a b h r0 Z Δ) | |
| 185 | - (hc : SupportCells f) (ha : 0 < a) (hh : 0 < h) (hh1 : h < 1 / 2) : | |
| 186 | - ContDiffOn ℝ ∞ (f.sum a h r0) preterminal := | |
| 187 | - masked_finsum_smooth hh hh1 (f.periodized a h r0) | |
| 188 | - (fun I _ _ => (hr.periodized_smooth hc ha I).contDiffAt) hr.periodized_support | |
| 189 | - | |
| 190 | -theorem RegularFamily.sum_locally_finite (hr : RegularFamily f a b h r0 Z Δ) | |
| 191 | - (hh : 0 < h) (hh1 : h < 1 / 2) {w : SpaceTime} (hw : w ∈ preterminal) : | |
| 192 | - ∃ s : Finset (WaveIndex H), s.card ≤ 2250 * (2 * H + 1) ∧ | |
| 193 | - f.sum a h r0 =ᶠ[𝓝 w] fun y => ∑ I ∈ s, f.periodized a h r0 I y := by | |
| 194 | - obtain ⟨s, hs, he⟩ := masked_finsum_eventually hh hh1 (f.periodized a h r0) | |
| 195 | - hr.periodized_support hw | |
| 196 | - exact ⟨s, waveRegion_card_le (physicalQ_pos hh hh1 hw) s (fun I hI => (hs I).mp hI), he⟩ | |
| 197 | - | |
| 198 | 119 | /-- Closed-cell membership holds at every point where a copy can have a |
| 199 | 120 | nonzero jet, including the boundary of its amplitude support. -/ |
| 200 | 121 | theorem SupportCells.term_tsupport_mem (hc : SupportCells f) |
| @@ -239,66 +160,6 @@ structure LocalStrippedClass (f : CopyFamily H K) (hc : SupportCells f) | ||
| 239 | 160 | (ChartScales.timeCoefficient h I.1.val.1) (f.carrier k I.1).center r0 |
| 240 | 161 | (PhysicalGraphBounds.physicalLift h I.1.val.1 w)).1‖ ≤ B * ChartScales.S I.1.val.1 ^ eBase |
| 241 | 162 | |
| 242 | -/-- The number of native copies does not enter the constant or the power | |
| 243 | -loss. At a physical point the actual wave has just one copy germ. -/ | |
| 244 | -theorem physical_sum_jet_bound {h a b Z r0 P B eBase : ℝ} | |
| 245 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) | |
| 246 | - (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) | |
| 247 | - (H Δ m : ℕ) (g eAmp A : ℝ) (hA : 0 ≤ A) : | |
| 248 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ f : CopyFamily H K, | |
| 249 | - RegularFamily f a b h r0 Z Δ → ∀ hc : SupportCells f, | |
| 250 | - LocalStrippedClass f hc a b h r0 P A B g eAmp eBase m → | |
| 251 | - ∀ w : SpaceTime, w ∈ preterminal → |w.1| ≤ 1 → | |
| 252 | - ‖iteratedFDeriv ℝ m (f.sum a h r0) w‖ ≤ | |
| 253 | - C * physicalQ h w ^ (g - PhysicalGraphBounds.waveLoss h m) := by | |
| 254 | - obtain ⟨C, hC, hpoint⟩ := common_carrier_physical_bound (b := b) hh.le hh1.le ha | |
| 255 | - hZ hr0 hP hB heBase Δ m g eAmp A (H : ℝ) hA (Nat.cast_nonneg H) | |
| 256 | - refine ⟨((2250 * (2 * H + 1) : ℕ) : ℝ) * C, mul_nonneg (Nat.cast_nonneg _) hC, ?_⟩ | |
| 257 | - intro f hr hc hb w hw ht | |
| 258 | - have hq := physicalQ_pos hh hh1 hw | |
| 259 | - have hcopy : ∀ (I : WaveIndex H), | |
| 260 | - physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val → ∀ k, | |
| 261 | - ‖iteratedFDeriv ℝ m (f.term a h r0 I k) w‖ ≤ | |
| 262 | - C * physicalQ h w ^ (g - PhysicalGraphBounds.waveLoss h m) := by | |
| 263 | - intro I hregion k | |
| 264 | - by_cases hs : w ∈ tsupport (f.term a h r0 I k) | |
| 265 | - · have hgeo := globalWave_tsupport_geometry (f.carrier k I.1) (f.amplitude k I) I.2.val | |
| 266 | - ((hr.copy k).geometry_support I) hs | |
| 267 | - have hcell := hc.term_tsupport_mem ha I k hgeo.1 hs | |
| 268 | - obtain ⟨mode, hmode⟩ := (hr.copy k).angular_integer I.1 | |
| 269 | - let chart := chooseChart a (PhysicalGraphBounds.scaledRadial I.1.val.1 w) | |
| 270 | - have hchart : PhysicalGraphBounds.scaledRadial I.1.val.1 w ∈ PolarCharts.chartDomain a chart := | |
| 271 | - chooseChart_valid ha hgeo.1 | |
| 272 | - have he := globalWave_eventually_common (r0 := r0) ha I.1.val.1 (f.gap I.1) | |
| 273 | - (f.carrier k I.1) (f.amplitude k I) I.2.val mode hmode | |
| 274 | - (fun y hy => ((hr.copy k).geometry_support I y hy).1) chart hchart | |
| 275 | - change ‖iteratedFDeriv ℝ m (globalWave a h I.1.val.1 (f.gap I.1) r0 | |
| 276 | - (f.carrier k I.1) (f.amplitude k I) I.2.val) w‖ ≤ _ | |
| 277 | - rw [iteratedFDeriv_eq_of_eventuallyEq he m] | |
| 278 | - have hband := labelRegion_active_relation hregion | |
| 279 | - exact hpoint I.1.val.1 I.1.property (f.gap I.1) ((hr.copy k).gap_le I.1) | |
| 280 | - w hgeo.1 ht hgeo.2.1 (physicalQ h w) hq hband.1 hband.2 | |
| 281 | - ((f.carrier k I.1).withChart chart) (f.amplitude k I) I.2.val | |
| 282 | - (hb.parameters k I.1).1 (hb.parameters k I.1).2.1 (hb.parameters k I.1).2.2 hgeo.2.2 | |
| 283 | - ((hr.copy k).amplitude_smooth I) ((hr.copy k).F_smooth I.1) | |
| 284 | - ((hr.copy k).G_smooth I.1) (harmonic_bound I.2) | |
| 285 | - (hb.amplitude k I w hw hregion hgeo.1 hcell) | |
| 286 | - (hb.base_F k I w hw hregion hgeo.1 hcell chart hchart) | |
| 287 | - (hb.base_G k I w hw hregion hgeo.1 hcell chart hchart) | |
| 288 | - · rw [jet_zero_off_tsupport _ _ hs, norm_zero] | |
| 289 | - positivity | |
| 290 | - have hsum := masked_finsum_jet_bound hh hh1 (f.periodized a h r0) | |
| 291 | - (fun I _ _ => (hr.periodized_smooth hc ha I).contDiffAt) hr.periodized_support hw m | |
| 292 | - (B := C * physicalQ h w ^ (g - PhysicalGraphBounds.waveLoss h m)) (by positivity) | |
| 293 | - refine (hsum ?_).trans_eq (by ring) | |
| 294 | - intro I hregion | |
| 295 | - rcases hr.periodized_germ_cover hc ha I w with ⟨k, _, hg⟩ | hg | |
| 296 | - · rw [iteratedFDeriv_eq_of_eventuallyEq hg m] | |
| 297 | - exact hcopy I hregion k | |
| 298 | - · rw [iteratedFDeriv_eq_of_eventuallyEq hg m] | |
| 299 | - simp only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] | |
| 300 | - positivity | |
| 301 | - | |
| 302 | 163 | section WeightedInputs |
| 303 | 164 | |
| 304 | 165 | open WeightedClasses |
| @@ -393,23 +254,6 @@ theorem nativeGraph_eq_cover_commonLift (h : ℝ) (n d : ℕ) (w : SpaceTime) : | ||
| 393 | 254 | coverPower d ((coverPower d).symm (PhysicalGraphBounds.nativeGraph h n w)) |
| 394 | 255 | rw [ContinuousLinearEquiv.apply_symm_apply] |
| 395 | 256 | |
| 396 | -theorem physical_native_offset (g : Geometry) (k : TorusInverse.Frequency) | |
| 397 | - (h : ℝ) (n d : ℕ) (hgap : g.gap = d) (w : SpaceTime) : | |
| 398 | - PhysicalGraphBounds.nativeGraph h n w - nativeCenter g k = | |
| 399 | - g.basis (g.coordinates k (commonLift h n d w).2) := by | |
| 400 | - rw [nativeGraph_eq_cover_commonLift h n d w] | |
| 401 | - simpa only [hgap] using native_offset g k (commonLift h n d w).2 | |
| 402 | - | |
| 403 | -/-- The physical slot-width bound follows from the native cell width and | |
| 404 | -the exact cover map, rather than being assumed for a periodized field. -/ | |
| 405 | -theorem physical_native_width (g : Geometry) (k : TorusInverse.Frequency) | |
| 406 | - (h : ℝ) (n d : ℕ) (hgap : g.gap = d) {U : Set Plane} {r0 : ℝ} | |
| 407 | - (hU : ∀ z ∈ U, |PhysicalGraphBounds.etaCoordinate (g.basis z)| ≤ r0) | |
| 408 | - (w : SpaceTime) (hw : g.coordinates k (commonLift h n d w).2 ∈ U) : | |
| 409 | - |PhysicalGraphBounds.etaCoordinate (PhysicalGraphBounds.nativeGraph h n w - nativeCenter g k)| ≤ r0 := by | |
| 410 | - rw [physical_native_offset g k h n d hgap w] | |
| 411 | - exact hU _ hw | |
| 412 | - | |
| 413 | 257 | variable {F : CopyFamily H TorusInverse.Frequency} |
| 414 | 258 | |
| 415 | 259 | /-- Build the abstract support cells from the actual native affine lattice |
| @@ -447,64 +291,9 @@ theorem CopyFamily.sum_nonzero_term (f : CopyFamily H K) {a h r0 : ℝ} {w : Spa | ||
| 447 | 291 | simp only [CopyFamily.periodized, hn, tsum_zero] |
| 448 | 292 | exact hw (by simp only [CopyFamily.sum, hp, finsum_zero]) |
| 449 | 293 | |
| 450 | -/-- A nonzero full sum has a genuine supported copy witness. This is the | |
| 451 | -primitive support statement needed for the shrinking physical annulus. -/ | |
| 452 | -theorem RegularFamily.sum_support (hr : RegularFamily f a b h r0 Z Δ) | |
| 453 | - {w : SpaceTime} (hw : w ∈ preterminal) (hn : f.sum a h r0 w ≠ 0) : | |
| 454 | - ∃ (I : WaveIndex H) (k : K), | |
| 455 | - f.amplitude k I (commonLift h I.1.val.1 (f.gap I.1) w) ≠ 0 ∧ | |
| 456 | - PhysicalGraphBounds.scaledRadial I.1.val.1 w ∈ PhysicalGraphBounds.annulus a b ∧ | |
| 457 | - physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val := by | |
| 458 | - obtain ⟨I, k, hk⟩ := f.sum_nonzero_term hn | |
| 459 | - have ha := globalWave_ne_zero_amp hk | |
| 460 | - exact ⟨I, k, ha, ((hr.copy k).geometry_support I w ha).1, | |
| 461 | - (hr.copy k).term_support I w hw hk⟩ | |
| 462 | - | |
| 463 | 294 | noncomputable def vectorSum (f : Fin 3 → CopyFamily H K) (a h r0 : ℝ) |
| 464 | 295 | (w : SpaceTime) : Space := ∑ i : Fin 3, realCoordinate i ((f i).sum a h r0 w) |
| 465 | 296 | |
| 466 | -theorem vectorSum_jet_bound {f : Fin 3 → CopyFamily H K} | |
| 467 | - (hr : ∀ i, RegularFamily (f i) a b h r0 Z Δ) | |
| 468 | - (hc : ∀ i, SupportCells (f i)) (ha : 0 < a) (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 469 | - {w : SpaceTime} (hw : w ∈ preterminal) (m : ℕ) {B : ℝ} | |
| 470 | - (hb : ∀ i, ‖iteratedFDeriv ℝ m ((f i).sum a h r0) w‖ ≤ B) : | |
| 471 | - ‖iteratedFDeriv ℝ m (vectorSum f a h r0) w‖ ≤ 3 * B := by | |
| 472 | - have hs i : ContDiffAt ℝ ∞ ((f i).sum a h r0) w := | |
| 473 | - ((hr i).sum_smooth (hc i) ha hh hh1).contDiffAt (preterminal_open.mem_nhds hw) | |
| 474 | - unfold vectorSum | |
| 475 | - rw [iteratedFDeriv_finset_sum_at (f := fun i y => realCoordinate i ((f i).sum a h r0 y)) Finset.univ | |
| 476 | - (fun i _ => ((realCoordinate i).contDiff.contDiffAt.comp w (hs i)).of_le | |
| 477 | - (ENat.natCast_le_of_coe_top_le_withTop le_rfl m))] | |
| 478 | - calc | |
| 479 | - _ ≤ ∑ i : Fin 3, ‖iteratedFDeriv ℝ m (fun y => realCoordinate i ((f i).sum a h r0 y)) w‖ := | |
| 480 | - norm_sum_le _ _ | |
| 481 | - _ ≤ ∑ _i : Fin 3, B := by | |
| 482 | - apply Finset.sum_le_sum | |
| 483 | - intro i _ | |
| 484 | - exact (norm_jet_linear_comp_at ((hs i).of_le | |
| 485 | - (ENat.natCast_le_of_coe_top_le_withTop le_rfl m)) (realCoordinate i)).trans | |
| 486 | - ((mul_le_of_le_one_left (norm_nonneg _) (norm_realCoordinate_le i)).trans (hb i)) | |
| 487 | - _ = 3 * B := by simp | |
| 488 | - | |
| 489 | -/-- Uniform scalar input bounds give the actual real three-component | |
| 490 | -physical estimate with the same loss exponent. -/ | |
| 491 | -theorem physical_vector_sum_jet_bound {h a b Z r0 P B eBase : ℝ} | |
| 492 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) | |
| 493 | - (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) | |
| 494 | - (H Δ m : ℕ) (g eAmp A : ℝ) (hA : 0 ≤ A) : | |
| 495 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ f : Fin 3 → CopyFamily H K, | |
| 496 | - (∀ i, RegularFamily (f i) a b h r0 Z Δ) → ∀ hc : ∀ i, SupportCells (f i), | |
| 497 | - (∀ i, LocalStrippedClass (f i) (hc i) a b h r0 P A B g eAmp eBase m) → | |
| 498 | - ∀ w : SpaceTime, w ∈ preterminal → |w.1| ≤ 1 → | |
| 499 | - ‖iteratedFDeriv ℝ m (vectorSum f a h r0) w‖ ≤ | |
| 500 | - C * physicalQ h w ^ (g - PhysicalGraphBounds.waveLoss h m) := by | |
| 501 | - obtain ⟨C, hC, hb⟩ := physical_sum_jet_bound (K := K) (b := b) | |
| 502 | - hh hh1 ha hZ hr0 hP hB heBase H Δ m g eAmp A hA | |
| 503 | - refine ⟨3 * C, by positivity, ?_⟩ | |
| 504 | - intro f hr hc hclass w hw ht | |
| 505 | - exact (vectorSum_jet_bound hr hc ha hh hh1 hw m | |
| 506 | - (fun i => hb (f i) (hr i) (hc i) (hclass i) w hw ht)).trans_eq (by ring) | |
| 507 | - | |
| 508 | 297 | section WeightedVector |
| 509 | 298 | |
| 510 | 299 | open WeightedClasses |
+0 −145 NavierStokes/PhysicalCurlCovariance.lean View file
| @@ -313,31 +313,6 @@ end ScaledGraph | ||
| 313 | 313 | noncomputable def reindexVector (e : E ≃L[ℝ] F) (V : F → F) (x : E) : E := |
| 314 | 314 | e.symm (V (e x)) |
| 315 | 315 | |
| 316 | -theorem along_reindex (e : E ≃L[ℝ] F) (V : F → F) {W : Type*} | |
| 317 | - [NormedAddCommGroup W] [NormedSpace ℝ W] {f : F → W} {x : E} | |
| 318 | - (hf : DifferentiableAt ℝ f (e x)) : | |
| 319 | - along (reindexVector e V) (fun y => f (e y)) x = along V f (e x) := by | |
| 320 | - have hd := hf.hasFDerivAt.comp x e.hasFDerivAt | |
| 321 | - dsimp only [Function.comp_def] at hd | |
| 322 | - unfold along reindexVector | |
| 323 | - rw [hd.fderiv] | |
| 324 | - simp | |
| 325 | - | |
| 326 | -theorem phaseNormal_reindex (e : E ≃L[ℝ] F) (R : F → ℝ) (Vr Vθ Vz : F → F) | |
| 327 | - {Φ : F → ℝ} {x : E} (hΦ : DifferentiableAt ℝ Φ (e x)) : | |
| 328 | - phaseNormal (fun y => R (e y)) (reindexVector e Vr) (reindexVector e Vθ) | |
| 329 | - (reindexVector e Vz) (fun y => Φ (e y)) x = phaseNormal R Vr Vθ Vz Φ (e x) := by | |
| 330 | - simp only [phaseNormal, along_reindex e _ hΦ] | |
| 331 | - | |
| 332 | -theorem vectorPotential_reindex (e : E ≃L[ℝ] F) (K : ℝ) (R : F → ℝ) (Vr Vθ Vz : F → F) | |
| 333 | - {Φ : F → ℝ} (a : F → ComplexVector) {x : E} (hΦ : DifferentiableAt ℝ Φ (e x)) : | |
| 334 | - CurlClassBounds.vectorPotential K (fun y => R (e y)) (reindexVector e Vr) | |
| 335 | - (reindexVector e Vθ) (reindexVector e Vz) (fun y => Φ (e y)) (fun y => a (e y)) x = | |
| 336 | - CurlClassBounds.vectorPotential K R Vr Vθ Vz Φ a (e x) := by | |
| 337 | - ext i | |
| 338 | - simp only [CurlClassBounds.vectorPotential, vectorMode, mode, CurlClassBounds.coefficient, | |
| 339 | - phaseNormal_reindex e R Vr Vθ Vz hΦ, carrier] | |
| 340 | - | |
| 341 | 316 | noncomputable def radiusCLM : Cylinder →L[ℝ] ℝ := |
| 342 | 317 | (ContinuousLinearMap.fst ℝ ℝ (PhysicalResidualBridge.Plane × PhysicalResidualBridge.Plane)).comp |
| 343 | 318 | (ContinuousLinearMap.fst ℝ PhysicalResidualBridge.Lift ℝ) |
| @@ -553,14 +528,6 @@ theorem reference_correctedWave {Q : ℝ} (hQ : 0 < Q) (h : ℝ) (k : ℕ) | ||
| 553 | 528 | rw [CurlClassBounds.cylindricalCurl_vectorPotential hgeom hL hΦ ha hn ht hz.2] at hc |
| 554 | 529 | exact hc |
| 555 | 530 | |
| 556 | -theorem spatialCurl_zero_of_zero_near {A : VelocityField} {z : SpaceTime} | |
| 557 | - (hA : A =ᶠ[𝓝 z] fun _ => 0) : SpatialCurl.spatialCurl A z = 0 := by | |
| 558 | - have hs : (fun y => A (z.1, y)) =ᶠ[𝓝 z.2] fun _ => 0 := | |
| 559 | - hA.comp_tendsto (continuous_const.prodMk continuous_id).continuousAt | |
| 560 | - change SpatialCurl.curl (fun y => A (z.1, y)) z.2 = 0 | |
| 561 | - rw [SpatialCurl.curl_eq_of_eventuallyEq hs] | |
| 562 | - simp [SpatialCurl.curl] | |
| 563 | - | |
| 564 | 531 | /-! ## A concrete Cartesian potential in an actual inverse polar chart -/ |
| 565 | 532 | |
| 566 | 533 | theorem realVector_smooth : ContDiff ℝ ∞ realVector := by |
| @@ -649,25 +616,6 @@ theorem cartesianPotential_forward_germ {a : ℝ} (ha : 0 < a) (j : PolarCharts. | ||
| 649 | 616 | eventually_of_mem ((validCylindrical_open a j).mem_nhds hz) |
| 650 | 617 | (fun _ hw => cartesianPotential_forward ha j B hw) |
| 651 | 618 | |
| 652 | -/-- The constructed Cartesian potential has the prescribed actual curl in | |
| 653 | -its polar chart. No potential-representation premise remains. -/ | |
| 654 | -theorem cartesianPotential_curl {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) | |
| 655 | - {B : SpaceTime → ComplexVector} {z : SpaceTime} (hz : z ∈ validCylindrical a j) | |
| 656 | - (hB : ContDiffAt ℝ ∞ B z) (i : Fin 3) : | |
| 657 | - CylindricalResidual.frame (-(z.2 1)) | |
| 658 | - (SpatialCurl.spatialCurl (cartesianPotential a j B) (z.1, CylindricalResidual.chart z.2)) i = | |
| 659 | - (CurlClassBounds.cylindricalCurl LinearWaveResidual.coordinateRadius | |
| 660 | - (LinearWaveResidual.spaceDirection 0) (LinearWaveResidual.spaceDirection 1) | |
| 661 | - (LinearWaveResidual.spaceDirection 2) B z i).re := by | |
| 662 | - have hBc : ContDiffAt ℝ ∞ B (polarCoordinates a j (z.1, CylindricalResidual.chart z.2)) := by | |
| 663 | - rw [polarCoordinates_forward ha j hz] | |
| 664 | - exact hB | |
| 665 | - have hd : DifferentiableAt ℝ B z := hB.differentiableAt (by simp) | |
| 666 | - have hdi k : DifferentiableAt ℝ (fun w => B w k) z := (differentiableAt_pi.mp hd) k | |
| 667 | - rw [curl_of_representation ((cartesianPotential_smoothAt ha j hBc).differentiableAt (by simp)) | |
| 668 | - (realVector_differentiableAt hdi) hz.1.ne' (cartesianPotential_forward_germ ha j B hz)] | |
| 669 | - simpa only [realVector_apply] using (real_cylindricalCurl _ _ _ _ hdi i).symm | |
| 670 | - | |
| 671 | 619 | theorem frame_periodic : Periodic CylindricalResidual.frame (2 * Real.pi) := by |
| 672 | 620 | intro θ |
| 673 | 621 | ext v i |
| @@ -800,55 +748,6 @@ theorem globalCartesianPotential_smoothOn {a : ℝ} (ha : 0 < a) | ||
| 800 | 748 | linarith |
| 801 | 749 | exact contDiffAt_const.congr_of_eventuallyEq (globalCartesianPotential_zero_germ ha hzero hrad) |
| 802 | 750 | |
| 803 | -noncomputable def cartesianVelocity (a : ℝ) (B : SpaceTime → ComplexVector) : VelocityField := | |
| 804 | - SpatialCurl.spatialCurl (globalCartesianPotential a B) | |
| 805 | - | |
| 806 | -theorem cartesianVelocity_divergence {a : ℝ} (ha : 0 < a) | |
| 807 | - {times : Set ℝ} (hTimes : IsOpen times) {B : SpaceTime → ComplexVector} | |
| 808 | - (hB : ContDiffOn ℝ ∞ B {z | z.1 ∈ times ∧ 0 < z.2 0}) | |
| 809 | - (hper : ∀ t r z : ℝ, Periodic (fun θ => B (t, AxisymmetricResidual.pack r θ z)) (2 * Real.pi)) | |
| 810 | - (hzero : ∀ z : SpaceTime, z.2 0 ≤ a → B z = 0) | |
| 811 | - {t : ℝ} (ht : t ∈ times) (x : Space) : | |
| 812 | - spatialDivergence (cartesianVelocity a B) t x = 0 := | |
| 813 | - SpatialCurl.spatialDivergence_spatialCurl_on | |
| 814 | - ((globalCartesianPotential_smoothOn ha hTimes hB hper hzero).of_le | |
| 815 | - (ENat.natCast_lt_of_coe_top_le_withTop le_rfl 2).le) ht x | |
| 816 | - | |
| 817 | -theorem cartesianVelocity_axis_zero {a : ℝ} (ha : 0 < a) | |
| 818 | - {B : SpaceTime → ComplexVector} | |
| 819 | - (hzero : ∀ z : SpaceTime, z.2 0 ≤ a → B z = 0) | |
| 820 | - (t : ℝ) (x : Space) (hx₀ : x 0 = 0) (hx₁ : x 1 = 0) : | |
| 821 | - cartesianVelocity a B (t, x) = 0 := by | |
| 822 | - apply spatialCurl_zero_of_zero_near | |
| 823 | - apply globalCartesianPotential_zero_germ ha hzero | |
| 824 | - simpa [PolarCharts.radius, PhysicalGraphBounds.radialProjection_apply, hx₀, hx₁] using ha | |
| 825 | - | |
| 826 | -theorem globalCartesianPotential_forward_germ {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) | |
| 827 | - (B : SpaceTime → ComplexVector) | |
| 828 | - (hper : ∀ t r z : ℝ, Periodic (fun θ => B (t, AxisymmetricResidual.pack r θ z)) (2 * Real.pi)) | |
| 829 | - {z : SpaceTime} (hz : z ∈ validCylindrical a j) : | |
| 830 | - (fun w : SpaceTime => globalCartesianPotential a B (w.1, CylindricalResidual.chart w.2)) =ᶠ[𝓝 z] | |
| 831 | - (fun w => CylindricalResidual.frame (w.2 1) (realVector (B w))) := by | |
| 832 | - filter_upwards [(validCylindrical_open a j).mem_nhds hz] with y hy | |
| 833 | - have hj : PhysicalGraphBounds.radialProjection (y.1, CylindricalResidual.chart y.2) ∈ | |
| 834 | - PolarCharts.chartDomain a j := by | |
| 835 | - simpa [PhysicalGraphBounds.radialProjection_apply, CylindricalResidual.chart, PolarCharts.polar] using hy.2.2 | |
| 836 | - rw [globalCartesianPotential_eq_local ha B hper j hj, cartesianPotential_forward ha j B hy] | |
| 837 | - | |
| 838 | -theorem globalCartesianPotential_smoothAt_forward {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) | |
| 839 | - {B : SpaceTime → ComplexVector} | |
| 840 | - (hper : ∀ t r z : ℝ, Periodic (fun θ => B (t, AxisymmetricResidual.pack r θ z)) (2 * Real.pi)) | |
| 841 | - {z : SpaceTime} (hz : z ∈ validCylindrical a j) (hB : ContDiffAt ℝ ∞ B z) : | |
| 842 | - ContDiffAt ℝ ∞ (globalCartesianPotential a B) (z.1, CylindricalResidual.chart z.2) := by | |
| 843 | - have hj : PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2) ∈ | |
| 844 | - PolarCharts.chartDomain a j := by | |
| 845 | - simpa [PhysicalGraphBounds.radialProjection_apply, CylindricalResidual.chart, PolarCharts.polar] using hz.2.2 | |
| 846 | - have hb : ContDiffAt ℝ ∞ B (polarCoordinates a j (z.1, CylindricalResidual.chart z.2)) := by | |
| 847 | - rw [polarCoordinates_forward ha j hz] | |
| 848 | - exact hB | |
| 849 | - exact (cartesianPotential_smoothAt ha j hb).congr_of_eventuallyEq | |
| 850 | - (globalCartesianPotential_germ_local ha B hper j hj) | |
| 851 | - | |
| 852 | 751 | /-- Integer angular frequency makes the complete potential periodic, |
| 853 | 752 | including its normal coefficient and inverse carrier. -/ |
| 854 | 753 | theorem vectorPotential_fullTurn {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| @@ -876,50 +775,6 @@ theorem vectorPotential_fullTurn {D : Type} [NormedAddCommGroup D] [NormedSpace | ||
| 876 | 775 | rw [CopyAngularInvariance.vectorMode_translate hc hΦ, he, |
| 877 | 776 | Complex.exp_int_mul_two_pi_mul_I, one_smul] |
| 878 | 777 | |
| 879 | -/-- The end-to-end band reconstruction uses a single explicitly constructed | |
| 880 | -Cartesian potential. Only primitive phase/amplitude compatibility and | |
| 881 | -periodicity are inputs; potential and curl compatibility are conclusions. -/ | |
| 882 | -theorem reference_correctedWave_constructed {Q : ℝ} (hQ : 0 < Q) (h : ℝ) (k : ℕ) | |
| 883 | - {U : Set Cylinder} (hU : IsOpen U) (hR : ∀ x ∈ U, x.1.1 ≠ 0) | |
| 884 | - {K L : ℝ} (hK : K ≠ 0) (hL : L ≠ 0) | |
| 885 | - {Φ : Cylinder → ℝ} {a : Cylinder → ComplexVector} | |
| 886 | - (hΦ : ContDiffOn ℝ ∞ Φ U) (ha : ContDiffOn ℝ ∞ a U) | |
| 887 | - (hn : ∀ x ∈ U, phaseNormal PhysicalResidualBridge.ScaledGraph.radius | |
| 888 | - (commonGraph Q h k).radial PhysicalResidualBridge.ScaledGraph.angular | |
| 889 | - (commonGraph Q h k).axial Φ x ≠ 0) | |
| 890 | - (ht : ∀ x ∈ U, normalDot (phaseNormal PhysicalResidualBridge.ScaledGraph.radius | |
| 891 | - (commonGraph Q h k).radial PhysicalResidualBridge.ScaledGraph.angular | |
| 892 | - (commonGraph Q h k).axial Φ x) (a x) = 0) | |
| 893 | - (Ψ : SpaceTime → ℝ) (v : SpaceTime → ComplexVector) | |
| 894 | - (hphase : ∀ z ∈ (commonGraph Q h k).source U, | |
| 895 | - K * Ψ z = L * Φ ((commonGraph Q h k).map z)) | |
| 896 | - (hamplitude : ∀ z ∈ (commonGraph Q h k).source U, | |
| 897 | - v z = Q ^ (-CoordinateAlgebra.A h) • a ((commonGraph Q h k).map z)) | |
| 898 | - (hper : ∀ t r z : ℝ, Periodic | |
| 899 | - (fun θ => referencePotential K Ψ v (t, AxisymmetricResidual.pack r θ z)) (2 * Real.pi)) | |
| 900 | - {t : ℝ} {q : Space} (hz : (t, q) ∈ (commonGraph Q h k).source U) | |
| 901 | - {δ : ℝ} (hδ : 0 < δ) (j : PolarCharts.Index) (hchart : (t, q) ∈ validCylindrical δ j) | |
| 902 | - (i : Fin 3) : | |
| 903 | - (vectorMode L Φ (CurlClassBounds.realizedCoefficient L PhysicalResidualBridge.ScaledGraph.radius | |
| 904 | - (commonGraph Q h k).radial PhysicalResidualBridge.ScaledGraph.angular | |
| 905 | - (commonGraph Q h k).axial Φ a) ((commonGraph Q h k).map (t, q)) i).re = | |
| 906 | - Q ^ CoordinateAlgebra.A h * CylindricalResidual.frame (-(q 1)) | |
| 907 | - (SpatialCurl.spatialCurl (globalCartesianPotential δ (referencePotential K Ψ v)) | |
| 908 | - (t, CylindricalResidual.chart q)) i := by | |
| 909 | - let G := commonGraph Q h k | |
| 910 | - have hgeom := ScaledGraph.geometry G hU hR | |
| 911 | - have hBs := CurlClassBounds.vectorPotential_contDiffOn hgeom L hΦ ha hn | |
| 912 | - have hm : ContDiffAt ℝ ∞ G.map (t, q) := G.map_smoothAt | |
| 913 | - (mul_pos (Real.rpow_pos_of_pos hQ _) hz.1).ne' | |
| 914 | - have htarget := ((hBs.contDiffAt (hU.mem_nhds hz.2)).comp (t, q) hm).const_smul (Q ^ (-h)) | |
| 915 | - have hEq := referencePotential_eq_on hQ h k hU hK hL hΦ a Ψ v hphase hamplitude | |
| 916 | - have hs : ContDiffAt ℝ ∞ (referencePotential K Ψ v) (t, q) := | |
| 917 | - htarget.congr_of_eventuallyEq | |
| 918 | - (eventually_of_mem ((G.source_open (Real.rpow_pos_of_pos hQ _) hU).mem_nhds hz) hEq) | |
| 919 | - exact reference_correctedWave hQ h k hU hR hK hL hΦ ha hn ht Ψ v hphase hamplitude hz | |
| 920 | - ((globalCartesianPotential_smoothAt_forward hδ j hper hchart hs).differentiableAt (by simp)) | |
| 921 | - (globalCartesianPotential_forward_germ hδ j (referencePotential K Ψ v) hper hchart) i | |
| 922 | - | |
| 923 | 778 | end |
| 924 | 779 | |
| 925 | 780 | end NavierStokes.PhysicalCurlCovariance |
+0 −20 NavierStokes/PhysicalHeatCoordinates.lean View file
| @@ -44,26 +44,6 @@ noncomputable def editedAngular (d : OutgoingTail.TailData) (K : ℝ) | ||
| 44 | 44 | q d.h p ^ (-HeatTailEdit.exponent d.h) * |
| 45 | 45 | ParametricHeatTail.physicalEdit d K (eta d.h p) (X d.h p) |
| 46 | 46 | |
| 47 | -noncomputable def shape (d : OutgoingTail.TailData) (K y : ℝ) : ℝ := | |
| 48 | - OutgoingTail.tailShape d (y - Real.log K + 1 / 5) | |
| 49 | - | |
| 50 | -theorem editedAngular_eq_heat (d : OutgoingTail.TailData) {K : ℝ} | |
| 51 | - (hK : 0 < K) (hh1 : d.h < 1 / 2) {p : PhysicalPoint} | |
| 52 | - (ht : p.1 < 1) (hs : 0 < p.2.1) | |
| 53 | - (hfull : 1 / 2 ≤ Real.log (X d.h p / K) + 1 / 5) : | |
| 54 | - editedAngular d K p = | |
| 55 | - TerminalStress.physicalHeat (normalization d K) (1 + d.h) p * | |
| 56 | - TerminalStress.flattening d.h (shape d K) p := by | |
| 57 | - have hq := q_pos d.h_pos hh1 ht | |
| 58 | - have hX : 0 < X d.h p := div_pos hs hq | |
| 59 | - have he := ParametricHeatTail.physicalEdit_heat_carrier d hK hq hs | |
| 60 | - (diffusion_eq_ratio d.h_pos hh1 ht) hfull | |
| 61 | - change editedAngular d K p = | |
| 62 | - TerminalStress.physicalHeat (normalization d K) (1 + d.h) p * | |
| 63 | - OutgoingTail.tailShape d (Real.log (X d.h p / K) + 1 / 5) at he | |
| 64 | - rw [Real.log_div hX.ne' hK.ne'] at he | |
| 65 | - exact he | |
| 66 | - | |
| 67 | 47 | theorem editedAngular_eq_pure_heat (d : OutgoingTail.TailData) {K : ℝ} |
| 68 | 48 | (hK : 0 < K) (hh1 : d.h < 1 / 2) {p : PhysicalPoint} |
| 69 | 49 | (ht : p.1 < 1) (hs : 0 < p.2.1) |
+0 −514 NavierStokes/PhysicalMeanDomain.lean View file
| @@ -809,17 +809,6 @@ theorem meanClass_liftedTorusAverage {a b cL cR : ℝ} | ||
| 809 | 809 | exact hb n (p.1, (p.2.1, Y)) hp j hj) |
| 810 | 810 | rwa [(liftedTorusAverage_fiberLocal.germ he).jet_eq j p.1 p.2.2] at hout |
| 811 | 811 | |
| 812 | -theorem meanClass_centered {a b cL cR : ℝ} | |
| 813 | - (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 814 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 815 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} | |
| 816 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) | |
| 817 | - (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) : | |
| 818 | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α | |
| 819 | - (fun n => TemporalMeanUpdate.centered (f n)) := | |
| 820 | - MeanIncrementBounds.Class.sub hclass | |
| 821 | - (meanClass_liftedTorusAverage ha hcL hcR ε L hε hεone hL U hU hf hclass) | |
| 822 | - | |
| 823 | 812 | omit [CompleteSpace V] in |
| 824 | 813 | theorem jet_zero_outside {a b : ℝ} {U : Set S} (hU : IsOpen U) |
| 825 | 814 | {f : PressureStream.Lift S → V} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) |
| @@ -921,41 +910,6 @@ theorem LocalBandJets.liftedPressureMass {a b : ℝ} (hab : a ≤ b) | ||
| 921 | 910 | rw [(liftedPressureMass_fiberLocal.germ he).jet_eq j p.1 p.2.2] at hout |
| 922 | 911 | exact hout.trans_eq (by ring) |
| 923 | 912 | |
| 924 | -omit [FiniteDimensional ℝ S] in | |
| 925 | -omit [CompleteSpace V] in | |
| 926 | -theorem localBandJets_unweighted {a b cL cR : ℝ} | |
| 927 | - (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 928 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 929 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → V} | |
| 930 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) (hjets : LocalBandJets U ε L α f) : | |
| 931 | - UnweightedClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f := by | |
| 932 | - let st := localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU | |
| 933 | - refine ⟨fun _ _ _ => zero_le_one, fun n => (hf n).mono (fun _ hp => hp.2), ?_⟩ | |
| 934 | - intro m | |
| 935 | - obtain ⟨C, hC, k, hb⟩ := hjets m | |
| 936 | - refine ⟨C, hC, k, ?_⟩ | |
| 937 | - intro n p hp j hj | |
| 938 | - apply (hb n p hp.2 j hj).trans | |
| 939 | - change C * ε n ^ α * L n ^ k ≤ C * ε n ^ α * st.growth n p ^ k * 1 | |
| 940 | - rw [mul_one] | |
| 941 | - exact mul_le_mul_of_nonneg_left | |
| 942 | - (pow_le_pow_left₀ (zero_le_one.trans (hL n)) (st.slow_le_growth n p) k) | |
| 943 | - (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) | |
| 944 | - | |
| 945 | -theorem meanClass_pressureMass_lift {a b cL cR : ℝ} | |
| 946 | - (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 947 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 948 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} | |
| 949 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) | |
| 950 | - (hs : ∀ n, SupportedOn a b U (f n)) | |
| 951 | - (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) : | |
| 952 | - UnweightedClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α | |
| 953 | - (fun n p => PressureStream.pressureMass (f n) p.2.1) := by | |
| 954 | - apply localBandJets_unweighted ha hcL hcR ε L hε hεone hL U hU | |
| 955 | - (fun n => liftedPressureMass_contDiffOn hU (hf n) (hs n)) | |
| 956 | - exact (meanClass_localBandJets ha hcL hcR ε L hε hεone hL U hU hf hs hclass).liftedPressureMass | |
| 957 | - hab.le hU hf hs | |
| 958 | - | |
| 959 | 913 | omit [FiniteDimensional ℝ S] in |
| 960 | 914 | theorem meanClass_radialMultiply {a b cL cR : ℝ} |
| 961 | 915 | (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) |
| @@ -972,51 +926,6 @@ theorem meanClass_radialMultiply {a b cL cR : ℝ} | ||
| 972 | 926 | simp only [zero_add] at h |
| 973 | 927 | exact h |
| 974 | 928 | |
| 975 | -theorem pressureSource_contDiffOn {a b : ℝ} (hab : a < b) | |
| 976 | - {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} | |
| 977 | - (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hs : SupportedOn a b U f) : | |
| 978 | - ContDiffOn ℝ ∞ (PressureStream.pressureSource a b hab f) (slowDomain U) := | |
| 979 | - (pressureSource_fiberLocal a b hab).contDiffOn_of_supported | |
| 980 | - (fun _ h hsup => PressureStream.pressureSource_contDiff hab h hsup) hU hf hs | |
| 981 | - | |
| 982 | -theorem pressureSource_supportedOn {a b : ℝ} (hab : a < b) | |
| 983 | - {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} | |
| 984 | - (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hs : SupportedOn a b U f) : | |
| 985 | - SupportedOn a b U (PressureStream.pressureSource a b hab f) := | |
| 986 | - (pressureSource_fiberLocal a b hab).supportedOn | |
| 987 | - (fun _ _ hsup => PressureStream.pressureSource_supported hab hsup) hU hf hs | |
| 988 | - | |
| 989 | -theorem meanClass_pressureSource {a b cL cR : ℝ} | |
| 990 | - (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 991 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 992 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} | |
| 993 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) | |
| 994 | - (hs : ∀ n, SupportedOn a b U (f n)) | |
| 995 | - (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) : | |
| 996 | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α | |
| 997 | - (fun n => PressureStream.pressureSource a b hab (f n)) := by | |
| 998 | - have hm := meanClass_pressureMass_lift ha hab hcL hcR ε L hε hεone hL U hU hf hs hclass | |
| 999 | - have hρ := memClass_restrict ha hcL hcR ε L hε hεone hL U hU | |
| 1000 | - (MeanIncrementBounds.rho_meanClass (P := S × PressureStream.Plane) ha hab hcL hcR ε L hε hεone hL) | |
| 1001 | - have hprod := MeanIncrementBounds.Class.mul_coefficient hρ hm | |
| 1002 | - simp only [zero_add] at hprod | |
| 1003 | - exact MeanIncrementBounds.Class.sub hclass hprod | |
| 1004 | - | |
| 1005 | -theorem meanClass_meanPressure {a b d cL cR : ℝ} | |
| 1006 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 1007 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 1008 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} | |
| 1009 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) | |
| 1010 | - (hs : ∀ n, SupportedOn a b U (f n)) | |
| 1011 | - (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) | |
| 1012 | - (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : | |
| 1013 | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α | |
| 1014 | - (fun n => PressureStream.meanPressure d a b (M n) hab (v n) (f n)) := | |
| 1015 | - meanClass_physicalCompact ha hab hd hcL hcR ε L hε hεone hL U hU α M v _ | |
| 1016 | - (fun n => pressureSource_contDiffOn hab hU (hf n) (hs n)) | |
| 1017 | - (fun n => pressureSource_supportedOn hab hU (hf n) (hs n)) | |
| 1018 | - (meanClass_pressureSource ha hab hcL hcR ε L hε hεone hL U hU hf hs hclass) | |
| 1019 | - | |
| 1020 | 929 | end PressureClasses |
| 1021 | 930 | |
| 1022 | 931 | section MomentsAndChanges |
| @@ -1093,46 +1002,6 @@ theorem SupportedOn.sub {a b : ℝ} {U : Set S} {f g : PressureStream.Lift S → | ||
| 1093 | 1002 | · exact hg p hp (fun hz' => hn (by simp [hz, hz'])) |
| 1094 | 1003 | · exact hf p hp hz |
| 1095 | 1004 | |
| 1096 | -/-- The local pressure is the same linear integral operator used globally. -/ | |
| 1097 | -theorem meanPressure_sub_on {a b d M : ℝ} | |
| 1098 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (v : PressureStream.Plane) | |
| 1099 | - {U : Set S} (hU : IsOpen U) {f g : PressureStream.Lift S → ℝ} | |
| 1100 | - (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hg : ContDiffOn ℝ ∞ g (slowDomain U)) | |
| 1101 | - (hsf : SupportedOn a b U f) (hsg : SupportedOn a b U g) | |
| 1102 | - {p : PressureStream.Lift S} (hp : p.2.1 ∈ U) : | |
| 1103 | - PressureStream.meanPressure d a b M hab v (fun x => f x - g x) p = | |
| 1104 | - PressureStream.meanPressure d a b M hab v f p - PressureStream.meanPressure d a b M hab v g p := by | |
| 1105 | - obtain ⟨c, _, hcs, hcf, hef⟩ := exists_fiber_localization hU hp hf | |
| 1106 | - obtain ⟨e, _, hes, heg, heqg⟩ := exists_fiber_localization hU hp hg | |
| 1107 | - have hF := hef.self_of_nhds | |
| 1108 | - have hG := heqg.self_of_nhds | |
| 1109 | - have hsub : ∀ r Y, localize c f (r, (p.2.1, Y)) - localize e g (r, (p.2.1, Y)) = | |
| 1110 | - f (r, (p.2.1, Y)) - g (r, (p.2.1, Y)) := fun r Y => congrArg₂ (fun x y : ℝ => x - y) (hF r Y) (hG r Y) | |
| 1111 | - rw [← meanPressure_fiberLocal d a b M hab v | |
| 1112 | - (fun x => localize c f x - localize e g x) (fun x => f x - g x) p.2.1 hsub p.1 p.2.2, | |
| 1113 | - congrFun (MeanIncrementBounds.meanPressure_sub ha hab hd hcf heg | |
| 1114 | - (localize_supported hcs hsf) (localize_supported hes hsg) M v) p, | |
| 1115 | - meanPressure_fiberLocal d a b M hab v _ _ p.2.1 hF p.1 p.2.2, | |
| 1116 | - meanPressure_fiberLocal d a b M hab v _ _ p.2.1 hG p.1 p.2.2] | |
| 1117 | - | |
| 1118 | -theorem meanClass_meanPressure_change {a b d cL cR : ℝ} | |
| 1119 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 1120 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 1121 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f g : ℕ → PressureStream.Lift S → ℝ} | |
| 1122 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) | |
| 1123 | - (hg : ∀ n, ContDiffOn ℝ ∞ (g n) (slowDomain U)) | |
| 1124 | - (hsf : ∀ n, SupportedOn a b U (f n)) (hsg : ∀ n, SupportedOn a b U (g n)) | |
| 1125 | - (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α (f - g)) | |
| 1126 | - (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : | |
| 1127 | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α | |
| 1128 | - (fun n p => PressureStream.meanPressure d a b (M n) hab (v n) (f n) p - | |
| 1129 | - PressureStream.meanPressure d a b (M n) hab (v n) (g n) p) := by | |
| 1130 | - apply MeanRankUpdate.meanClass_congr_on | |
| 1131 | - (meanClass_meanPressure ha hab hd hcL hcR ε L hε hεone hL U hU | |
| 1132 | - (fun n => (hf n).sub (hg n)) (fun n => (hsf n).sub (hsg n)) hclass M v) | |
| 1133 | - intro n p hp | |
| 1134 | - exact (meanPressure_sub_on ha hab hd (v n) hU (hf n) (hg n) (hsf n) (hsg n) hp.2).symm | |
| 1135 | - | |
| 1136 | 1005 | end MomentsAndChanges |
| 1137 | 1006 | |
| 1138 | 1007 | /-! ## Exact identification of the positive-time normalized rank domain -/ |
| @@ -1179,41 +1048,6 @@ theorem temporalInverse_contDiffOn {U : Set S} (hU : IsOpen U) | ||
| 1179 | 1048 | temporalInverse_fiberLocal.contDiffOn_of_periodic |
| 1180 | 1049 | (fun _ h hp => TemporalMeanUpdate.temporalInverse_smooth h hp) hU hf hp |
| 1181 | 1050 | |
| 1182 | -theorem meanClass_temporalInverse {a b cL cR : ℝ} | |
| 1183 | - (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 1184 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 1185 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} | |
| 1186 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) (hp : ∀ n, PeriodicOn U (f n)) | |
| 1187 | - (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) : | |
| 1188 | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α | |
| 1189 | - (fun n => TemporalMeanUpdate.temporalInverse (f n)) := by | |
| 1190 | - let st := localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU | |
| 1191 | - refine ⟨hclass.weight_nonneg, | |
| 1192 | - fun n => (temporalInverse_contDiffOn hU (hf n) (hp n)).mono (fun _ hx => hx.2), ?_⟩ | |
| 1193 | - intro m | |
| 1194 | - obtain ⟨K, hK, hbound⟩ := UniformFourierAlias.realInverse_finiteJets (P := ℝ × S) .temporal m | |
| 1195 | - obtain ⟨C, hC, k, hb⟩ := hclass.bounds (m + 5) | |
| 1196 | - refine ⟨K * C, mul_nonneg hK hC, k, ?_⟩ | |
| 1197 | - intro n p hpu j hj | |
| 1198 | - obtain ⟨c, _, hcs, hcf, he⟩ := exists_fiber_localization hU hpu.2 (hf n) | |
| 1199 | - let B := majorant st (fun _ x => st.zeta x) α C k n p | |
| 1200 | - have hB : 0 ≤ B := majorant_nonneg st _ α hC k n p (st.zeta_nonneg p hpu) | |
| 1201 | - have hin : ∀ i ≤ m + 5, ∀ q ∈ ({(p.1, p.2.1)} : Set (ℝ × S)), ∀ Y, | |
| 1202 | - ‖iteratedFDeriv ℝ i (UniformFourierAlias.toProduct (localize c (f n))) (q, Y)‖ ≤ B := by | |
| 1203 | - intro i hi q hq Y | |
| 1204 | - rcases mem_singleton_iff.mp hq with rfl | |
| 1205 | - rw [UniformFourierAlias.norm_iteratedFDeriv_toProduct, he.jet_eq i p.1 Y] | |
| 1206 | - exact hb n (p.1, (p.2.1, Y)) hpu i hi | |
| 1207 | - have hper : UniformFourierAlias.ParameterPeriodic | |
| 1208 | - (UniformFourierAlias.toProduct (localize c (f n))) := | |
| 1209 | - fun q => localize_periodic hcs (hp n) q.1 q.2 | |
| 1210 | - have ho := hbound _ {(p.1, p.2.1)} B (UniformFourierAlias.toProduct_smooth hcf) | |
| 1211 | - hper hB hin j hj (p.1, p.2.1) (mem_singleton _) p.2.2 | |
| 1212 | - rw [← UniformFourierAlias.norm_iteratedFDeriv_fromProduct] at ho | |
| 1213 | - change ‖iteratedFDeriv ℝ j (TemporalMeanUpdate.temporalInverse (localize c (f n))) p‖ ≤ K * B at ho | |
| 1214 | - rw [(temporalInverse_fiberLocal.germ he).jet_eq j p.1 p.2.2] at ho | |
| 1215 | - exact ho.trans_eq (by dsimp [B, majorant]; ring) | |
| 1216 | - | |
| 1217 | 1051 | omit [FiniteDimensional ℝ S] in |
| 1218 | 1052 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 1219 | 1053 | theorem desiredIncrement_fiberLocal (h : ℝ) (n : ℕ) : |
| @@ -1229,73 +1063,8 @@ theorem desiredIncrement_contDiffOn (h : ℝ) (n : ℕ) {U : Set S} (hU : IsOpen | ||
| 1229 | 1063 | (desiredIncrement_fiberLocal h n).contDiffOn_of_periodic |
| 1230 | 1064 | (fun _ hf hp => TemporalMeanUpdate.desiredIncrement_smooth h n hf hp) hU hf hp |
| 1231 | 1065 | |
| 1232 | -theorem desiredIncrement_supportedOn (h : ℝ) (n : ℕ) {a b : ℝ} | |
| 1233 | - {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} | |
| 1234 | - (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hs : SupportedOn a b U f) : | |
| 1235 | - SupportedOn a b U (TemporalMeanUpdate.desiredIncrement h n f) := | |
| 1236 | - (desiredIncrement_fiberLocal h n).supportedOn | |
| 1237 | - (fun _ _ hs => TemporalMeanUpdate.desiredIncrement_supported h n hs) hU hf hs | |
| 1238 | - | |
| 1239 | -theorem meanClass_desiredIncrement {a b cL cR h : ℝ} | |
| 1240 | - (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) | |
| 1241 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 1242 | - (hscale : ∀ n, ChartScales.S n ≤ L n) | |
| 1243 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} | |
| 1244 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) (hp : ∀ n, PeriodicOn U (f n)) | |
| 1245 | - (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) : | |
| 1246 | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α | |
| 1247 | - (fun n => TemporalMeanUpdate.desiredIncrement h n (f n)) := by | |
| 1248 | - have hc := meanClass_centered ha hcL hcR ε L hε hεone hL U hU hf hclass | |
| 1249 | - have hi := meanClass_temporalInverse ha hcL hcR ε L hε hεone hL U hU | |
| 1250 | - (fun n => centered_contDiffOn hU (hf n)) (fun n => centered_periodicOn (hp n)) hc | |
| 1251 | - have hm := (TemporalMeanUpdate.meanClass_chartPrefactor_all hh hscale hi).map | |
| 1252 | - (-ContinuousLinearMap.id ℝ ℝ) | |
| 1253 | - change MeanClass _ α (fun n z => -TemporalMeanUpdate.chartPrefactor h n * | |
| 1254 | - TemporalMeanUpdate.temporalInverse (TemporalMeanUpdate.centered (f n)) z) | |
| 1255 | - simpa only [TemporalMeanUpdate.desiredIncrement, _root_.neg_apply, | |
| 1256 | - ContinuousLinearMap.id_apply, smul_eq_mul, neg_mul] using hm | |
| 1257 | - | |
| 1258 | 1066 | end TemporalClasses |
| 1259 | 1067 | |
| 1260 | -theorem dividedAlias_finiteJets_fiber {d a b : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) | |
| 1261 | - (m : ℕ) : ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : PressureStream.Plane) (g : PressureStream.Lift S → ℝ), | |
| 1262 | - ContDiff ℝ ∞ g → RadialAlias.RadiallySupported a b g → | |
| 1263 | - ∀ C : ℝ, 0 ≤ C → ∀ s : S, | |
| 1264 | - (∀ j ≤ m, ∀ z : PressureStream.Lift S, z.2.1 = s → ‖iteratedFDeriv ℝ j (UniformFourierAlias.exactAlias | |
| 1265 | - (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) M (0, v) | |
| 1266 | - (RadialPullback.normalizeSource d a g)) z‖ ≤ C) → | |
| 1267 | - ∀ j ≤ m, ∀ z : PressureStream.Lift S, z.2.1 = s → | |
| 1268 | - ‖iteratedFDeriv ℝ j (PressureStream.divideRadius (RadialPullback.physicalAlias d a b M (0, v) g)) z‖ ≤ | |
| 1269 | - K * C := by | |
| 1270 | - obtain ⟨KP, hKP, hcomp⟩ := RadialPullback.radial_comp_finiteJets_uniform (E := S × PressureStream.Plane) (V := ℝ) | |
| 1271 | - a b (RadialPullback.powerChart_contDiff ha d) m | |
| 1272 | - obtain ⟨KM, hKM, hmul⟩ := RadialPullback.radial_multiplier_finiteJets_uniform (E := S × PressureStream.Plane) (V := ℝ) | |
| 1273 | - a b (TemporalMeanUpdate.aliasFactor_smooth ha d) m | |
| 1274 | - refine ⟨KM * KP, mul_nonneg hKM hKP, ?_⟩ | |
| 1275 | - intro M v g hg hs C hC s hbound j hj z hzs | |
| 1276 | - let A := UniformFourierAlias.exactAlias (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) | |
| 1277 | - M (0, v) (RadialPullback.normalizeSource d a g) | |
| 1278 | - have hAs : ContDiff ℝ ∞ A := UniformFourierAlias.exactAlias_smooth | |
| 1279 | - (TransportPrimitive.interiorCutoff_contDiff (a ^ d) (b ^ d)) | |
| 1280 | - (RadialPullback.normalizeSource_contDiff ha hd hg) (RadialPullback.normalizeSource_supported ha hab hd hs) | |
| 1281 | - by_cases hz : z.1 ∈ Icc a b | |
| 1282 | - · rw [TemporalMeanUpdate.dividedAlias_eq_pullback ha hab hd (0, v) g] | |
| 1283 | - change ‖iteratedFDeriv ℝ j (fun y => TemporalMeanUpdate.aliasFactor d a y.1 • | |
| 1284 | - (A ∘ RadialPullback.liftChart (RadialPullback.powerChart d a)) y) z‖ ≤ _ | |
| 1285 | - have hc := hcomp A hAs z hz C hC | |
| 1286 | - (fun i hi => hbound i hi (RadialPullback.liftChart (RadialPullback.powerChart d a) z) hzs) | |
| 1287 | - have hm := hmul (A ∘ RadialPullback.liftChart (RadialPullback.powerChart d a)) | |
| 1288 | - (hAs.comp (RadialPullback.liftChart_contDiff (RadialPullback.powerChart_contDiff ha d))) z hz | |
| 1289 | - (KP * C) (mul_nonneg hKP hC) hc j hj | |
| 1290 | - exact hm.trans_eq (by ring) | |
| 1291 | - · have hz0 : iteratedFDeriv ℝ j | |
| 1292 | - (PressureStream.divideRadius (RadialPullback.physicalAlias d a b M (0, v) g)) z = 0 := by | |
| 1293 | - by_contra hn | |
| 1294 | - exact hz (TransportPrimitive.iteratedFDeriv_supported | |
| 1295 | - (PressureStream.divideRadius_supported (RadialPullback.physicalAlias_supported ha hab hd M (0, v) g)) j hn) | |
| 1296 | - rw [hz0, norm_zero] | |
| 1297 | - exact mul_nonneg (mul_nonneg hKM hKP) hC | |
| 1298 | - | |
| 1299 | 1068 | theorem totalIntegral_jet_bound_fiber {a b M : ℝ} (hab : a ≤ b) (v : PressureStream.Plane) |
| 1300 | 1069 | {f : PressureStream.Lift S → V} (hf : ContDiff ℝ ∞ f) |
| 1301 | 1070 | (hs : RadialAlias.RadiallySupported a b f) (j : ℕ) |
| @@ -1310,188 +1079,16 @@ theorem totalIntegral_jet_bound_fiber {a b M : ℝ} (hab : a ≤ b) (v : Pressur | ||
| 1310 | 1079 | simp only [totalIntegral_freeze] at he |
| 1311 | 1080 | exact he |
| 1312 | 1081 | |
| 1313 | -/-- A bounded source gives a bounded actual cutoff alias, with a constant | |
| 1314 | -independent of the transport shift and the slow fiber. -/ | |
| 1315 | -theorem exactAlias_bounded_fiber {a b : ℝ} (hab : a ≤ b) {χ : ℝ → ℝ} | |
| 1316 | - (hχ : ContDiff ℝ ∞ χ) (hleft : ∀ u ≤ a, χ u = 0) (hright : ∀ u, b ≤ u → χ u = 1) | |
| 1317 | - (m : ℕ) : ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : PressureStream.Plane) | |
| 1318 | - (f : PressureStream.Lift S → V), ContDiff ℝ ∞ f → | |
| 1319 | - RadialAlias.RadiallySupported a b f → ∀ C : ℝ, 0 ≤ C → ∀ s : S, | |
| 1320 | - (∀ i ≤ m, ∀ R ∈ Icc a b, ∀ Y, ‖iteratedFDeriv ℝ i f (R, (s, Y))‖ ≤ C) → | |
| 1321 | - ∀ j ≤ m, ∀ z : PressureStream.Lift S, z.2.1 = s → | |
| 1322 | - ‖iteratedFDeriv ℝ j (UniformFourierAlias.exactAlias χ M ((0 : S), v) f) z‖ ≤ K * C := by | |
| 1323 | - obtain ⟨K, hK, hmul⟩ := radial_multiplier_finiteJets_uniform | |
| 1324 | - (E := S × PressureStream.Plane) (V := V) a b (contDiff_infty_iff_deriv.mp hχ).2 m | |
| 1325 | - refine ⟨K * (b - a), mul_nonneg hK (sub_nonneg.mpr hab), ?_⟩ | |
| 1326 | - intro M v f hf hs C hC s hb j hj z hzs | |
| 1327 | - by_cases hz : z.1 ∈ Icc a b | |
| 1328 | - · have hi : ∀ i ≤ m, ‖iteratedFDeriv ℝ i (TransportPrimitive.totalIntegral M ((0 : S), v) f) z‖ ≤ C * (b - a) := by | |
| 1329 | - intro i hi | |
| 1330 | - exact totalIntegral_jet_bound_fiber hab v hf hs i z C (by simpa only [hzs] using hb i hi) | |
| 1331 | - have he := hmul (TransportPrimitive.totalIntegral M ((0 : S), v) f) | |
| 1332 | - (TransportPrimitive.totalIntegral_contDiff hf hs) z hz (C * (b - a)) | |
| 1333 | - (mul_nonneg hC (sub_nonneg.mpr hab)) hi j hj | |
| 1334 | - exact he.trans_eq (by ring) | |
| 1335 | - · have hz0 : iteratedFDeriv ℝ j (UniformFourierAlias.exactAlias χ M ((0 : S), v) f) z = 0 := by | |
| 1336 | - by_contra hn | |
| 1337 | - exact hz (TransportPrimitive.iteratedFDeriv_supported | |
| 1338 | - (UniformFourierAlias.exactAlias_supported hleft hright) j hn) | |
| 1339 | - rw [hz0, norm_zero] | |
| 1340 | - exact mul_nonneg (mul_nonneg hK (sub_nonneg.mpr hab)) hC | |
| 1341 | - | |
| 1342 | -omit [CompleteSpace V] in | |
| 1343 | -theorem normalizeSource_bounded_fiber {a d : ℝ} (ha : 0 < a) (hd : 0 < d) | |
| 1344 | - (lo hi : ℝ) (m : ℕ) : ∃ K : ℝ, 0 ≤ K ∧ ∀ (f : PressureStream.Lift S → V), | |
| 1345 | - ContDiff ℝ ∞ f → ∀ C : ℝ, 0 ≤ C → ∀ s : S, | |
| 1346 | - (∀ i ≤ m, ∀ R Y, ‖iteratedFDeriv ℝ i f (R, (s, Y))‖ ≤ C) → | |
| 1347 | - ∀ j ≤ m, ∀ R ∈ Icc lo hi, ∀ Y, | |
| 1348 | - ‖iteratedFDeriv ℝ j (normalizeSource d a f) (R, (s, Y))‖ ≤ K * C := by | |
| 1349 | - obtain ⟨KC, hKC, hbC⟩ := radial_comp_finiteJets_uniform (E := S × PressureStream.Plane) (V := V) | |
| 1350 | - lo hi (inverseChart_contDiff ha d) m | |
| 1351 | - obtain ⟨KM, hKM, hbM⟩ := radial_multiplier_finiteJets_uniform (E := S × PressureStream.Plane) (V := V) | |
| 1352 | - lo hi (sourceMultiplier_contDiff ha hd) m | |
| 1353 | - refine ⟨KM * KC, mul_nonneg hKM hKC, ?_⟩ | |
| 1354 | - intro f hf C hC s hb j hj R hR Y | |
| 1355 | - have hc : ∀ i ≤ m, | |
| 1356 | - ‖iteratedFDeriv ℝ i (f ∘ liftChart (inverseChart d a)) (R, (s, Y))‖ ≤ KC * C := | |
| 1357 | - fun i hi => hbC f hf (R, (s, Y)) hR C hC (fun k hk => hb k hk _ _) i hi | |
| 1358 | - have he := hbM (f ∘ liftChart (inverseChart d a)) | |
| 1359 | - (hf.comp (liftChart_contDiff (inverseChart_contDiff ha d))) (R, (s, Y)) hR | |
| 1360 | - (KC * C) (mul_nonneg hKC hC) hc j hj | |
| 1361 | - exact he.trans_eq (by ring) | |
| 1362 | - | |
| 1363 | -theorem dividedAlias_bounded_fiber {a b d : ℝ} | |
| 1364 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (m : ℕ) : | |
| 1365 | - ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : PressureStream.Plane) | |
| 1366 | - (f : PressureStream.Lift S → ℝ), ContDiff ℝ ∞ f → | |
| 1367 | - RadialAlias.RadiallySupported a b f → ∀ C : ℝ, 0 ≤ C → ∀ s : S, | |
| 1368 | - (∀ i ≤ m, ∀ R Y, ‖iteratedFDeriv ℝ i f (R, (s, Y))‖ ≤ C) → | |
| 1369 | - ∀ j ≤ m, ∀ z : PressureStream.Lift S, z.2.1 = s → | |
| 1370 | - ‖iteratedFDeriv ℝ j (PressureStream.divideRadius (physicalAlias d a b M ((0 : S), v) f)) z‖ ≤ K * C := by | |
| 1371 | - have habU : a ^ d < b ^ d := Real.rpow_lt_rpow ha.le hab hd | |
| 1372 | - obtain ⟨KN, hKN, hbN⟩ := normalizeSource_bounded_fiber (S := S) (V := ℝ) ha hd (a ^ d) (b ^ d) m | |
| 1373 | - obtain ⟨KA, hKA, hbA⟩ := exactAlias_bounded_fiber (S := S) (V := ℝ) habU.le | |
| 1374 | - (TransportPrimitive.interiorCutoff_contDiff (a ^ d) (b ^ d)) | |
| 1375 | - (fun u hu => TransportPrimitive.interiorCutoff_zero habU (by linarith)) | |
| 1376 | - (fun u hu => TransportPrimitive.interiorCutoff_one habU (by linarith)) m | |
| 1377 | - obtain ⟨KT, hKT, hbT⟩ := dividedAlias_finiteJets_fiber (S := S) ha hab hd m | |
| 1378 | - refine ⟨KT * KA * KN, mul_nonneg (mul_nonneg hKT hKA) hKN, ?_⟩ | |
| 1379 | - intro M v f hf hs C hC s hb j hj z hzs | |
| 1380 | - have hN := hbN f hf C hC s hb | |
| 1381 | - have hA := hbA M v (normalizeSource d a f) (normalizeSource_contDiff ha hd hf) | |
| 1382 | - (normalizeSource_supported ha hab hd hs) (KN * C) (mul_nonneg hKN hC) s hN | |
| 1383 | - have he := hbT M v f hf hs (KA * (KN * C)) (mul_nonneg hKA (mul_nonneg hKN hC)) | |
| 1384 | - s hA j hj z hzs | |
| 1385 | - exact he.trans_eq (by ring) | |
| 1386 | - | |
| 1387 | -theorem dividedAlias_fiberLocal (d a b M : ℝ) (v : PressureStream.Plane) : | |
| 1388 | - FiberLocal (S := S) (fun f => PressureStream.divideRadius (physicalAlias d a b M ((0 : S), v) f)) := by | |
| 1389 | - intro f g s he r Y | |
| 1390 | - exact congrArg (fun x : ℝ => x / r) (physicalAlias_fiberLocal d a b M v f g s he r Y) | |
| 1391 | - | |
| 1392 | 1082 | section AliasClasses |
| 1393 | 1083 | |
| 1394 | 1084 | variable [FiniteDimensional ℝ S] |
| 1395 | 1085 | |
| 1396 | -theorem dividedAlias_contDiffOn {a b d M : ℝ} | |
| 1397 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (v : PressureStream.Plane) | |
| 1398 | - {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} | |
| 1399 | - (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hs : SupportedOn a b U f) : | |
| 1400 | - ContDiffOn ℝ ∞ (PressureStream.divideRadius (physicalAlias d a b M ((0 : S), v) f)) (slowDomain U) := | |
| 1401 | - (dividedAlias_fiberLocal d a b M v).contDiffOn_of_supported | |
| 1402 | - (fun g hg hsg => PressureStream.divideRadius_contDiff ha | |
| 1403 | - (physicalAlias_contDiff ha hab hd hg hsg M (0, v)) | |
| 1404 | - (physicalAlias_supported ha hab hd M (0, v) g)) hU hf hs | |
| 1405 | - | |
| 1406 | -theorem LocalBandJets.dividedAlias {a b d : ℝ} | |
| 1407 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) | |
| 1408 | - {U : Set S} (hU : IsOpen U) {ε L : ℕ → ℝ} | |
| 1409 | - (hε : ∀ n, 0 < ε n) (hL : ∀ n, 1 ≤ L n) {α : ℝ} | |
| 1410 | - {f : ℕ → PressureStream.Lift S → ℝ} (hjets : LocalBandJets U ε L α f) | |
| 1411 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) | |
| 1412 | - (hs : ∀ n, SupportedOn a b U (f n)) (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : | |
| 1413 | - LocalBandJets U ε L α (fun n => PressureStream.divideRadius | |
| 1414 | - (physicalAlias d a b (M n) ((0 : S), v n) (f n))) := by | |
| 1415 | - intro m | |
| 1416 | - obtain ⟨K, hK, hbound⟩ := dividedAlias_bounded_fiber (S := S) ha hab hd m | |
| 1417 | - obtain ⟨C, hC, k, hb⟩ := hjets m | |
| 1418 | - refine ⟨K * C, mul_nonneg hK hC, k, ?_⟩ | |
| 1419 | - intro n p hp j hj | |
| 1420 | - obtain ⟨c, _, hcs, hcf, he⟩ := exists_fiber_localization hU hp (hf n) | |
| 1421 | - have hA : 0 ≤ C * ε n ^ α * L n ^ k := | |
| 1422 | - mul_nonneg (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) | |
| 1423 | - (pow_nonneg (zero_le_one.trans (hL n)) _) | |
| 1424 | - have ho := hbound (M n) (v n) _ hcf (localize_supported hcs (hs n)) | |
| 1425 | - (C * ε n ^ α * L n ^ k) hA p.2.1 | |
| 1426 | - (fun i hi R Y => by rw [he.jet_eq i R Y]; exact hb n (R, (p.2.1, Y)) hp i hi) j hj p rfl | |
| 1427 | - rw [((dividedAlias_fiberLocal d a b (M n) (v n)).germ he).jet_eq j p.1 p.2.2] at ho | |
| 1428 | - exact ho.trans_eq (by ring) | |
| 1429 | - | |
| 1430 | 1086 | end AliasClasses |
| 1431 | 1087 | |
| 1432 | 1088 | section FinalStreamClasses |
| 1433 | 1089 | |
| 1434 | 1090 | variable [FiniteDimensional ℝ S] |
| 1435 | 1091 | |
| 1436 | -omit [CompleteSpace V] in | |
| 1437 | -theorem localBandJets_meanClass_of_support {a b c e cL cR : ℝ} | |
| 1438 | - (ha : 0 < a) (hac : a < c) (heb : e < b) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 1439 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 1440 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → V} | |
| 1441 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) | |
| 1442 | - (hs : ∀ n, SupportedOn c e U (f n)) (hb : LocalBandJets U ε L α f) : | |
| 1443 | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f := by | |
| 1444 | - let st := localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU | |
| 1445 | - let sb := logStripData (E := S × PressureStream.Plane) a b cL cR ha hcL hcR ε L hε hεone hL | |
| 1446 | - have hmem (r : ℝ) (hr : r ∈ Icc c e) : (r, (0 : S × PressureStream.Plane)) ∈ sb.domain := | |
| 1447 | - ⟨hac.trans_le hr.1, hr.2.trans_lt heb⟩ | |
| 1448 | - have hcont : ContinuousOn (fun r : ℝ => sb.zeta (r, 0)) (Icc c e) := | |
| 1449 | - sb.zeta_smooth.continuousOn.comp (continuous_id.prodMk continuous_const).continuousOn hmem | |
| 1450 | - have hpos (r : ℝ) (hr : r ∈ Icc c e) : 0 < sb.zeta (r, 0) := | |
| 1451 | - zeta_pos cL cR (logPosition_mem ha (hmem r hr)) | |
| 1452 | - obtain ⟨δ, hδ, hmargin⟩ := UniformCone.positive_uniform_margin isCompact_Icc hcont hpos | |
| 1453 | - refine ⟨fun _ p hp => st.zeta_nonneg p hp, fun n => (hf n).mono (fun _ hp => hp.2), ?_⟩ | |
| 1454 | - intro m | |
| 1455 | - obtain ⟨C, hC, k, hbound⟩ := hb m | |
| 1456 | - refine ⟨C / δ, div_nonneg hC hδ.le, k, ?_⟩ | |
| 1457 | - intro n p hp j hj | |
| 1458 | - by_cases hpi : p.1 ∈ Icc c e | |
| 1459 | - · have hζ : δ ≤ st.zeta p := hmargin p.1 hpi | |
| 1460 | - have hgr : L n ^ k ≤ st.growth n p ^ k := | |
| 1461 | - pow_le_pow_left₀ (zero_le_one.trans (hL n)) (st.slow_le_growth n p) k | |
| 1462 | - have hA : 0 ≤ C / δ * ε n ^ α * st.growth n p ^ k := | |
| 1463 | - mul_nonneg (mul_nonneg (div_nonneg hC hδ.le) (Real.rpow_pos_of_pos (hε n) α).le) | |
| 1464 | - (pow_nonneg (st.growth_nonneg n p) _) | |
| 1465 | - calc | |
| 1466 | - _ ≤ C * ε n ^ α * L n ^ k := hbound n p hp.2 j hj | |
| 1467 | - _ ≤ C * ε n ^ α * st.growth n p ^ k := | |
| 1468 | - mul_le_mul_of_nonneg_left hgr (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) | |
| 1469 | - _ = (C / δ * ε n ^ α * st.growth n p ^ k) * δ := by field_simp | |
| 1470 | - _ ≤ (C / δ * ε n ^ α * st.growth n p ^ k) * st.zeta p := mul_le_mul_of_nonneg_left hζ hA | |
| 1471 | - _ = _ := rfl | |
| 1472 | - · rw [jet_zero_outside hU (hf n) (hs n) hp.2 (fun hi => hpi ⟨hi.1.le, hi.2.le⟩) j, norm_zero] | |
| 1473 | - exact majorant_nonneg st _ α (div_nonneg hC hδ.le) k n p (st.zeta_nonneg p hp) | |
| 1474 | - | |
| 1475 | -/-- The actual divided alias preserves the local mean class. No mean-zero | |
| 1476 | -condition or nonzero transport coefficient is needed for this basic bound. -/ | |
| 1477 | -theorem meanClass_dividedAlias {a b d cL cR : ℝ} | |
| 1478 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 1479 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 1480 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} | |
| 1481 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) | |
| 1482 | - (hs : ∀ n, SupportedOn a b U (f n)) | |
| 1483 | - (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) | |
| 1484 | - (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : | |
| 1485 | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α | |
| 1486 | - (fun n => PressureStream.divideRadius (physicalAlias d a b (M n) ((0 : S), v n) (f n))) := by | |
| 1487 | - obtain ⟨c, e, hac, _, heb, hsup⟩ := | |
| 1488 | - TemporalMeanUpdate.dividedAlias_interior_support (E := S × PressureStream.Plane) ha hab hd | |
| 1489 | - apply localBandJets_meanClass_of_support ha hac heb hcL hcR ε L hε hεone hL U hU | |
| 1490 | - (fun n => dividedAlias_contDiffOn ha hab hd (v n) hU (hf n) (hs n)) | |
| 1491 | - (fun n p _ hp => hsup (M n) (0, v n) (f n) hp) | |
| 1492 | - exact (meanClass_localBandJets ha hcL hcR ε L hε hεone hL U hU hf hs hclass).dividedAlias | |
| 1493 | - ha hab hd hU hε hL hf hs M v | |
| 1494 | - | |
| 1495 | 1092 | omit [FiniteDimensional ℝ S] in |
| 1496 | 1093 | theorem meanClass_divideRadius {a b cL cR : ℝ} |
| 1497 | 1094 | (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) |
| @@ -1527,60 +1124,6 @@ theorem meanClass_streamPotential {a b d cL cR : ℝ} | ||
| 1527 | 1124 | (fun n p hp hn => hs n p hp (right_ne_zero_of_mul hn)) hw |
| 1528 | 1125 | exact meanClass_divideRadius ha hcL hcR ε L hε hεone hL U hU hi |
| 1529 | 1126 | |
| 1530 | -theorem meanClass_streamBeta {a b d cL cR : ℝ} | |
| 1531 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 1532 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 1533 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} | |
| 1534 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) | |
| 1535 | - (hs : ∀ n, SupportedOn a b U (f n)) | |
| 1536 | - (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) | |
| 1537 | - (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) (w : S × PressureStream.Plane) : | |
| 1538 | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α | |
| 1539 | - (fun n => PressureStream.streamBeta w (PressureStream.streamPotential d a b (M n) ((0 : S), v n) (f n))) := by | |
| 1540 | - have hi := meanClass_streamPotential ha hab hd hcL hcR ε L hε hεone hL U hU hf hs hclass M v | |
| 1541 | - have hD := (hi.directional (0, w)).map (-ContinuousLinearMap.id ℝ ℝ) | |
| 1542 | - simp only [ | |
| 1543 | - _root_.neg_apply, ContinuousLinearMap.id_apply] at hD ⊢ | |
| 1544 | - exact hD | |
| 1545 | - | |
| 1546 | -theorem streamGamma_eq_desired_sub_alias_on {a b d M : ℝ} | |
| 1547 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (v : PressureStream.Plane) | |
| 1548 | - {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} | |
| 1549 | - (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hs : SupportedOn a b U f) | |
| 1550 | - {p : PressureStream.Lift S} (hp : p.2.1 ∈ U) : | |
| 1551 | - PressureStream.streamGamma (PressureStream.physicalSpeed d M) ((0 : S), v) | |
| 1552 | - (PressureStream.streamPotential d a b M ((0 : S), v) f) p = | |
| 1553 | - f p - physicalAlias d a b M ((0 : S), v) (PressureStream.weightedSource f) p / p.1 := by | |
| 1554 | - obtain ⟨c, _, hcs, hcf, he⟩ := exists_fiber_localization hU hp hf | |
| 1555 | - have hpot := (((streamPotential_fiberLocal d a b M v).germ he).eventuallyEq p.1 p.2.2) | |
| 1556 | - have halias := (((physicalAlias_fiberLocal d a b M v).germ | |
| 1557 | - (weightedSource_fiberLocal.germ he)).eventuallyEq p.1 p.2.2).self_of_nhds | |
| 1558 | - have hval := (he.eventuallyEq p.1 p.2.2).self_of_nhds | |
| 1559 | - have h := PressureStream.streamGamma_eq_desired_sub_alias_global (M := M) ha hab hd ((0 : S), v) | |
| 1560 | - hcf (localize_supported hcs hs) p | |
| 1561 | - simpa only [PressureStream.streamGamma, PressureStream.graphDr, PressureStream.divideRadius, | |
| 1562 | - hpot.fderiv_eq, hpot.self_of_nhds, halias, hval] using h | |
| 1563 | - | |
| 1564 | -theorem meanClass_streamGamma {a b d cL cR : ℝ} | |
| 1565 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) | |
| 1566 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 1567 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} | |
| 1568 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) | |
| 1569 | - (hs : ∀ n, SupportedOn a b U (f n)) | |
| 1570 | - (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) | |
| 1571 | - (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : | |
| 1572 | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α | |
| 1573 | - (fun n => PressureStream.streamGamma (PressureStream.physicalSpeed d (M n)) ((0 : S), v n) | |
| 1574 | - (PressureStream.streamPotential d a b (M n) ((0 : S), v n) (f n))) := by | |
| 1575 | - have hw := meanClass_radialMultiply ha hcL hcR ε L hε hεone hL U hU hclass (φ := id) contDiff_id | |
| 1576 | - have hA := meanClass_dividedAlias ha hab hd hcL hcR ε L hε hεone hL U hU | |
| 1577 | - (f := fun n => PressureStream.weightedSource (f n)) | |
| 1578 | - (fun n => contDiffOn_fst.mul (hf n)) | |
| 1579 | - (fun n p hp hn => hs n p hp (right_ne_zero_of_mul hn)) hw M v | |
| 1580 | - apply MeanRankUpdate.meanClass_congr_on (MeanIncrementBounds.Class.sub hclass hA) | |
| 1581 | - intro n p hp | |
| 1582 | - exact streamGamma_eq_desired_sub_alias_on ha hab hd (v n) hU (hf n) (hs n) hp.2 | |
| 1583 | - | |
| 1584 | 1127 | end FinalStreamClasses |
| 1585 | 1128 | |
| 1586 | 1129 | section ActualTemporalUpdate |
| @@ -1596,63 +1139,6 @@ theorem desiredIncrement_zeroMean_on (h : ℝ) (n : ℕ) {U : Set S} (hU : IsOpe | ||
| 1596 | 1139 | rw [← PressureStream.torusAverage_congr_slice p (hfg p.1)] |
| 1597 | 1140 | exact TemporalMeanUpdate.desiredIncrement_zeroMean h n hcf (localize_periodic hcs hper) p |
| 1598 | 1141 | |
| 1599 | -theorem meanClass_radialUpdate {a b d cL cR h : ℝ} | |
| 1600 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) | |
| 1601 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 1602 | - (hscale : ∀ n, ChartScales.S n ≤ L n) | |
| 1603 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} | |
| 1604 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) (hp : ∀ n, PeriodicOn U (f n)) | |
| 1605 | - (hs : ∀ n, SupportedOn a b U (f n)) | |
| 1606 | - (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) | |
| 1607 | - (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) (w : S × PressureStream.Plane) : | |
| 1608 | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α | |
| 1609 | - (fun n => TemporalMeanUpdate.radialUpdate d a b (M n) (v n) w h n (f n)) := | |
| 1610 | - meanClass_streamBeta ha hab hd hcL hcR ε L hε hεone hL U hU | |
| 1611 | - (fun n => desiredIncrement_contDiffOn h n hU (hf n) (hp n)) | |
| 1612 | - (fun n => desiredIncrement_supportedOn h n hU (hf n) (hs n)) | |
| 1613 | - (meanClass_desiredIncrement ha hcL hcR hh ε L hε hεone hL hscale U hU hf hp hclass) M v w | |
| 1614 | - | |
| 1615 | -theorem meanClass_scaledRadialUpdate {a b d cL cR h : ℝ} | |
| 1616 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) | |
| 1617 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 1618 | - (hscale : ∀ n, ChartScales.S n ≤ L n) | |
| 1619 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} | |
| 1620 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) (hp : ∀ n, PeriodicOn U (f n)) | |
| 1621 | - (hs : ∀ n, SupportedOn a b U (f n)) | |
| 1622 | - (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) | |
| 1623 | - (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) (w : S × PressureStream.Plane) : | |
| 1624 | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) (α + 1) | |
| 1625 | - (fun n => TemporalMeanUpdate.radialUpdate d a b (M n) (v n) (ε n • w) h n (f n)) := by | |
| 1626 | - let st := localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU | |
| 1627 | - have hb : BandBound st 1 ε := by | |
| 1628 | - have hb := bandBound_rpow st 1 | |
| 1629 | - simp only [Real.rpow_one] at hb | |
| 1630 | - exact hb | |
| 1631 | - have hi := meanClass_radialUpdate ha hab hd hcL hcR hh ε L hε hεone hL hscale U hU hf hp hs hclass M v w | |
| 1632 | - have hout := hi.band_smul hb | |
| 1633 | - have heq : (fun n => TemporalMeanUpdate.radialUpdate d a b (M n) (v n) (ε n • w) h n (f n)) = | |
| 1634 | - (fun n z => ε n • TemporalMeanUpdate.radialUpdate d a b (M n) (v n) w h n (f n) z) := by | |
| 1635 | - funext n z | |
| 1636 | - exact congrFun (TemporalMeanUpdate.radialUpdate_smul_direction d a b (M n) (v n) w h (ε n) n (f n)) z | |
| 1637 | - rw [heq] | |
| 1638 | - exact hout | |
| 1639 | - | |
| 1640 | -theorem meanClass_axialUpdate {a b d cL cR h : ℝ} | |
| 1641 | - (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) | |
| 1642 | - (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) | |
| 1643 | - (hscale : ∀ n, ChartScales.S n ≤ L n) | |
| 1644 | - (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} | |
| 1645 | - (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) (hp : ∀ n, PeriodicOn U (f n)) | |
| 1646 | - (hs : ∀ n, SupportedOn a b U (f n)) | |
| 1647 | - (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) | |
| 1648 | - (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : | |
| 1649 | - MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α | |
| 1650 | - (fun n => TemporalMeanUpdate.axialUpdate d a b (M n) (v n) h n (f n)) := | |
| 1651 | - meanClass_streamGamma ha hab hd hcL hcR ε L hε hεone hL U hU | |
| 1652 | - (fun n => desiredIncrement_contDiffOn h n hU (hf n) (hp n)) | |
| 1653 | - (fun n => desiredIncrement_supportedOn h n hU (hf n) (hs n)) | |
| 1654 | - (meanClass_desiredIncrement ha hcL hcR hh ε L hε hεone hL hscale U hU hf hp hclass) M v | |
| 1655 | - | |
| 1656 | 1142 | end ActualTemporalUpdate |
| 1657 | 1143 | |
| 1658 | 1144 | end NavierStokes.PhysicalMeanDomain |
+0 −116 NavierStokes/PhysicalMeanJetBounds.lean View file
| @@ -387,37 +387,6 @@ def NativeJets (N : ℕ) (U : Set PhysicalGraphBounds.Plane) (gain : ℝ) | ||
| 387 | 387 | ∀ m : ℕ, ∃ A : ℝ, 0 ≤ A ∧ ∃ e : ℕ, ∀ n ≥ N, ∀ z, z.2.1 ∈ U → ∀ j ≤ m, |
| 388 | 388 | ‖iteratedFDeriv ℝ j (f n) z‖ ≤ A * ChartScales.Q n ^ gain * ChartScales.S n ^ e |
| 389 | 389 | |
| 390 | -/-- A uniform estimate for the same coherent physical field. A comparable | |
| 391 | -band is selected at each point and used through an exact field germ. -/ | |
| 392 | -theorem CoherentFamily.field_jet_bound (D : CoherentFamily h degree N Δ U E) | |
| 393 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hab : a < b) (hN : 4 ≤ N) | |
| 394 | - (hU : IsOpen U) | |
| 395 | - (hcover : PhysicalMeanDomain.normalizedSlowDomain (2 * h) (1 / 4) 4 ⊆ U) | |
| 396 | - (hsm : ∀ n ≥ N, ContDiffOn ℝ ∞ (D.native n) (PhysicalMeanDomain.slowDomain U)) | |
| 397 | - (hs : NativeSupport h a b N U D.native) {gain : ℝ} (hj : NativeJets N U gain D.native) | |
| 398 | - (m : ℕ) : ∃ C : ℝ, 0 ≤ C ∧ ∀ w : SpaceTime, w ∈ preterminal → |w.1| ≤ 1 → | |
| 399 | - physicalQ h w ≤ ChartScales.Q N → | |
| 400 | - ‖iteratedFDeriv ℝ m D.field w‖ ≤ C * physicalQ h w ^ (gain - loss degree m) := by | |
| 401 | - obtain ⟨A, hA, e, hjet⟩ := hj m | |
| 402 | - obtain ⟨C, hC, hb⟩ := bandField_jet_bound (E := E) (b := 2 * b) | |
| 403 | - hh.le hh1.le (div_pos ha (by norm_num : (0 : ℝ) < 4)) Δ m gain degree e A hA | |
| 404 | - refine ⟨C, hC, ?_⟩ | |
| 405 | - intro w hw ht hsmall | |
| 406 | - have hq := physicalQ_pos hh hh1 hw | |
| 407 | - by_cases hts : w ∈ tsupport D.field | |
| 408 | - · obtain ⟨n, hn, hqn, hnq⟩ := exists_comparable_band N hq hsmall | |
| 409 | - have hlo : physicalQ h w / 2 ≤ ChartScales.Q n := by linarith | |
| 410 | - have hu := hcover (graph_slow_normalized hh hh1 n (D.gap n) hw hlo hnq.le) | |
| 411 | - have hann := D.annulus_on_tsupport hh hh1 ha hab hU hs n hn hw hu hlo hnq.le hts | |
| 412 | - rw [iteratedFDeriv_eq_of_eventuallyEq (D.field_germ hU n hn hw hu) m] | |
| 413 | - apply hb n (hN.trans hn) (D.gap n) (D.gap_le n hn) w hann ht | |
| 414 | - (physicalQ h w) hq hlo hnq.le (D.native n) | |
| 415 | - · exact SmoothNear.of_open (PhysicalMeanDomain.slowDomain_open hU) (hsm n hn) hu | |
| 416 | - · intro j hjm | |
| 417 | - simpa only [Real.rpow_natCast] using hjet n hn _ hu j hjm | |
| 418 | - · rw [jet_zero_off_tsupport _ _ hts, norm_zero] | |
| 419 | - positivity | |
| 420 | - | |
| 421 | 390 | theorem CoherentFamily.field_smoothAt (D : CoherentFamily h degree N Δ U E) |
| 422 | 391 | (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hab : a < b) |
| 423 | 392 | (hU : IsOpen U) |
| @@ -460,24 +429,6 @@ theorem NativeJets.of_localBandJets {h α : ℝ} {N : ℕ} {U : Set PhysicalGrap | ||
| 460 | 429 | (mul_nonneg hA (by rw [hpow]; positivity)) |
| 461 | 430 | _ = _ := by rw [hpow, mul_pow, ← pow_mul]; ring |
| 462 | 431 | |
| 463 | -/-- Incoming local band jets of any real class exponent give physical | |
| 464 | -Cartesian jets of that same coherent field. -/ | |
| 465 | -theorem CoherentFamily.field_jet_bound_of_localBandJets (D : CoherentFamily h degree N Δ U E) | |
| 466 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hab : a < b) (hN : 4 ≤ N) | |
| 467 | - (hU : IsOpen U) | |
| 468 | - (hcover : PhysicalMeanDomain.normalizedSlowDomain (2 * h) (1 / 4) 4 ⊆ U) | |
| 469 | - (hsm : ∀ n ≥ N, ContDiffOn ℝ ∞ (D.native n) (PhysicalMeanDomain.slowDomain U)) | |
| 470 | - (hs : NativeSupport h a b N U D.native) {α : ℝ} {ε L : ℕ → ℝ} | |
| 471 | - (hj : PhysicalMeanDomain.LocalBandJets U ε L α D.native) | |
| 472 | - (hε : ∀ n ≥ N, ε n = ChartScales.epsilon h n) | |
| 473 | - (hL0 : ∀ n ≥ N, 0 ≤ L n) {C : ℝ} {p : ℕ} (hC : 1 ≤ C) | |
| 474 | - (hL : ∀ n ≥ N, L n ≤ C * ChartScales.S n ^ p) (m : ℕ) : | |
| 475 | - ∃ K : ℝ, 0 ≤ K ∧ ∀ w : SpaceTime, w ∈ preterminal → |w.1| ≤ 1 → | |
| 476 | - physicalQ h w ≤ ChartScales.Q N → | |
| 477 | - ‖iteratedFDeriv ℝ m D.field w‖ ≤ K * physicalQ h w ^ (h * α - loss degree m) := | |
| 478 | - D.field_jet_bound hh hh1 ha hab hN hU hcover hsm hs | |
| 479 | - (NativeJets.of_localBandJets hj hε hL0 hC hL) m | |
| 480 | - | |
| 481 | 432 | /-- The open physical region on which the local native hypotheses imply |
| 482 | 433 | smoothness, including the zero neighborhood at the spatial axis. -/ |
| 483 | 434 | noncomputable def physicalDomain (h : ℝ) (N : ℕ) : Set SpaceTime := |
| @@ -769,38 +720,6 @@ theorem CoherentFamily.angularField_smooth (D : CoherentFamily h degree N Δ U | ||
| 769 | 720 | intro w hw |
| 770 | 721 | exact (D.angularField_smoothAt hh hh1 ha hab hU hcover hsm hs hw.1 hw.2.le).contDiffWithinAt |
| 771 | 722 | |
| 772 | -/-- The actual spatial curl of the azimuthal stream potential. Its | |
| 773 | -fixed physical loss uses one more derivative; no derivative is postulated. -/ | |
| 774 | -theorem CoherentFamily.curl_angularField_jet_bound (D : CoherentFamily h degree N Δ U ℝ) | |
| 775 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hab : a < b) (hN : 4 ≤ N) | |
| 776 | - (hU : IsOpen U) | |
| 777 | - (hcover : PhysicalMeanDomain.normalizedSlowDomain (2 * h) (1 / 4) 4 ⊆ U) | |
| 778 | - (hsm : ∀ n ≥ N, ContDiffOn ℝ ∞ (D.native n) (PhysicalMeanDomain.slowDomain U)) | |
| 779 | - (hs : NativeSupport h a b N U D.native) {gain : ℝ} (hj : NativeJets N U gain D.native) | |
| 780 | - (m : ℕ) : ∃ C : ℝ, 0 ≤ C ∧ ∀ w : SpaceTime, w ∈ physicalDomain h N → |w.1| ≤ 1 → | |
| 781 | - ‖iteratedFDeriv ℝ m (SpatialCurl.spatialCurl D.angularField) w‖ ≤ | |
| 782 | - C * physicalQ h w ^ (gain - loss degree (m + 1)) := by | |
| 783 | - obtain ⟨C, hC, hb⟩ := D.angularField_jet_bound hh hh1 ha hab hN hU hcover hsm hs hj (m + 1) | |
| 784 | - refine ⟨‖PhysicalClassBounds.jointCurl‖ * C, | |
| 785 | - mul_nonneg (norm_nonneg PhysicalClassBounds.jointCurl) hC, ?_⟩ | |
| 786 | - intro w hw ht | |
| 787 | - exact (PhysicalClassBounds.spatialCurl_jet_bound (physicalDomain_open hh hh1 N) | |
| 788 | - (D.angularField_smooth hh hh1 ha hab hU hcover hsm hs) hw m).trans | |
| 789 | - ((mul_le_mul_of_nonneg_left (hb w hw.1 ht hw.2.le) | |
| 790 | - (norm_nonneg PhysicalClassBounds.jointCurl)).trans_eq (by ring)) | |
| 791 | - | |
| 792 | -theorem CoherentFamily.curl_angularField_smooth (D : CoherentFamily h degree N Δ U ℝ) | |
| 793 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hab : a < b) | |
| 794 | - (hU : IsOpen U) | |
| 795 | - (hcover : PhysicalMeanDomain.normalizedSlowDomain (2 * h) (1 / 4) 4 ⊆ U) | |
| 796 | - (hsm : ∀ n ≥ N, ContDiffOn ℝ ∞ (D.native n) (PhysicalMeanDomain.slowDomain U)) | |
| 797 | - (hs : NativeSupport h a b N U D.native) : | |
| 798 | - ContDiffOn ℝ ∞ (SpatialCurl.spatialCurl D.angularField) (physicalDomain h N) := by | |
| 799 | - intro w hw | |
| 800 | - exact (SpatialCurl.contDiffAt_spatialCurl | |
| 801 | - (D.angularField_smoothAt hh hh1 ha hab hU hcover hsm hs hw.1 hw.2.le) | |
| 802 | - (by simp)).contDiffWithinAt | |
| 803 | - | |
| 804 | 723 | /-! ## Genuine moving-weight mean classes -/ |
| 805 | 724 | |
| 806 | 725 | /-- The existing moving two-edge mean class supplies the native input |
| @@ -825,39 +744,4 @@ theorem NativeJets.of_movingMeanClass {h α a b cL cR : ℝ} | ||
| 825 | 744 | |
| 826 | 745 | /-! ## Coherence of the actual reconstructed pressure and stream -/ |
| 827 | 746 | |
| 828 | -theorem streamPotential_fiberLocal (d a b M : ℝ) | |
| 829 | - (ell : PhysicalGraphBounds.Plane → ℝ) (v : PressureStream.Plane) : | |
| 830 | - PhysicalMeanDomain.FiberLocal (VariableGaugeMean.streamPotential d a b M ell v) := by | |
| 831 | - intro f g s he r Y | |
| 832 | - apply congrArg (fun x : ℝ => x / r) | |
| 833 | - exact VariableGaugeMean.compactPrimitive_fiberLocal d a b M ell v _ _ s | |
| 834 | - (PhysicalMeanDomain.weightedSource_fiberLocal f g s he) r Y | |
| 835 | - | |
| 836 | -/-- Reconstruct the azimuthal stream potential from a coherent axial | |
| 837 | -source. Its physical degree is exactly `A h - 1/2`. -/ | |
| 838 | -noncomputable def CoherentFamily.reconstructStream | |
| 839 | - (D : CoherentFamily h (CoordinateAlgebra.A h) N Δ U ℝ) | |
| 840 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hab : a < b) | |
| 841 | - {d : ℝ} (hd : 0 < d) (M : ℝ) (hU : IsOpen U) | |
| 842 | - (hf : ∀ n ≥ N, ContDiffOn ℝ ∞ (D.native n) (PhysicalMeanDomain.slowDomain U)) | |
| 843 | - (hs : NativeSupport h a b N U D.native) : | |
| 844 | - CoherentFamily h (CoordinateAlgebra.A h - 1 / 2) N Δ U ℝ where | |
| 845 | - native n := VariableGaugeMean.streamPotential d a b | |
| 846 | - (MeanChartCompatibility.radialFrequency h n (ChartScales.nativeIndex h n - D.gap n) d M) | |
| 847 | - (VariableGaugeMean.qLength (2 * h)) (TorusInverse.vector .radial) (D.native n) | |
| 848 | - physical := VariableGaugeMean.streamPotential d a b M | |
| 849 | - (VariableGaugeMean.qLength (2 * h)) (TorusInverse.vector .radial) D.physical | |
| 850 | - gap := D.gap | |
| 851 | - gap_le := D.gap_le | |
| 852 | - gap_native := D.gap_native | |
| 853 | - coherent := by | |
| 854 | - intro n hn z ht hu | |
| 855 | - have he := streamPotential_fiberLocal d a b M (VariableGaugeMean.qLength (2 * h)) | |
| 856 | - (TorusInverse.vector .radial) D.physical | |
| 857 | - (VariableGaugeMean.fieldOnPhysicalTZ h n (ChartScales.nativeIndex h n - D.gap n) | |
| 858 | - (CoordinateAlgebra.A h) (D.native n)) z.2.1 | |
| 859 | - (fun r Y => D.coherent n hn (r, (z.2.1, Y)) ht hu) z.1 z.2.2 | |
| 860 | - exact he.trans (VariableGaugeMean.physicalStreamPotential_naturality hh hh1 ha hab hd n | |
| 861 | - (ChartScales.nativeIndex h n - D.gap n) M hU (hf n hn) (hs n hn) z ht hu) | |
| 862 | - | |
| 863 | 747 | end NavierStokes.PhysicalMeanJetBounds |
+0 −597 NavierStokes/PhysicalParticularWave.lean View file
| @@ -22,18 +22,6 @@ noncomputable section | ||
| 22 | 22 | |
| 23 | 23 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 24 | 24 | |
| 25 | -noncomputable def rawCommon (D : AssemblyData P) (j : ℤ) : WaveCoefficients ((P × ℝ) × Plane) := | |
| 26 | - actualCommonCoefficients D.reference D.charts D.context D.state D.carrierBlock | |
| 27 | - D.gaussianInput D.aliasInput j D.background | |
| 28 | - | |
| 29 | -noncomputable def commonPotential (D : AssemblyData P) (j : ℤ) (n : ℕ) : | |
| 30 | - ((P × ℝ) × Plane) → ComplexVector := | |
| 31 | - (rawCommon D j).curlPotential D.strip D.directions n | |
| 32 | - | |
| 33 | -noncomputable def commonPressure (D : AssemblyData P) (j : ℤ) (n : ℕ) : | |
| 34 | - ((P × ℝ) × Plane) → ℂ := | |
| 35 | - mode ((rawCommon D j).frequency n) ((rawCommon D j).phase n) ((rawCommon D j).pressure n) | |
| 36 | - | |
| 37 | 25 | section ActualInputs |
| 38 | 26 | |
| 39 | 27 | variable (D : AssemblyData P) {j : ℤ} {α κ : ℝ} |
| @@ -42,46 +30,6 @@ variable (D : AssemblyData P) {j : ℤ} {α κ : ℝ} | ||
| 42 | 30 | |
| 43 | 31 | include C |
| 44 | 32 | |
| 45 | -theorem commonRaw_germ (n : ℕ) {x : (P × ℝ) × Plane} (hx : x ∈ D.strip.domain) : | |
| 46 | - (rawCommon D j).amplitude n =ᶠ[𝓝 x] | |
| 47 | - (fun y => C.slot.cutoff n y • | |
| 48 | - (actualCopyCoefficients D.reference D.charts D.context D.state D.carrierBlock | |
| 49 | - D.gaussianInput D.aliasInput j D.background D.copy).amplitude n y) := by | |
| 50 | - exact (actualCommon_raw_germ D.reference D.charts D.context D.state D.carrierBlock | |
| 51 | - D.gaussianInput D.aliasInput C.harmonic_ne C.frequency_ne D.background D.copy | |
| 52 | - C.slot.cutoff n x (C.patch_open n) (C.patch_injective n) (C.cutoff_support n) | |
| 53 | - (C.domain_patch n x hx) (C.cutoff_germ n hx)).1 | |
| 54 | - | |
| 55 | -theorem commonRaw_smooth (n : ℕ) : | |
| 56 | - ContDiffOn ℝ ∞ ((rawCommon D j).amplitude n) D.strip.domain := by | |
| 57 | - intro x hx | |
| 58 | - have hs := ((C.slot.cutoff_memClass.smooth n).smul (C.local_result.1.smooth n)).contDiffAt | |
| 59 | - (D.strip.isOpen_domain.mem_nhds hx) | |
| 60 | - exact (hs.congr_of_eventuallyEq (commonRaw_germ D C n hx)).contDiffWithinAt | |
| 61 | - | |
| 62 | -theorem commonRaw_tangent (n : ℕ) {x : (P × ℝ) × Plane} (hx : x ∈ D.strip.domain) : | |
| 63 | - normalDot ((rawCommon D j).normal D.strip D.directions n x) | |
| 64 | - ((rawCommon D j).amplitude n x) = 0 := by | |
| 65 | - rw [(commonRaw_germ D C n hx).eq_of_nhds] | |
| 66 | - change normalDot ((actualCarrier D.background D.carrierBlock j).normal D.strip D.directions n x) _ = 0 | |
| 67 | - have he : normalDot ((actualCarrier D.background D.carrierBlock j).normal D.strip D.directions n x) | |
| 68 | - (C.slot.cutoff n x • | |
| 69 | - (actualCopyCoefficients D.reference D.charts D.context D.state D.carrierBlock | |
| 70 | - D.gaussianInput D.aliasInput j D.background D.copy).amplitude n x) = | |
| 71 | - (C.slot.cutoff n x : ℂ) * normalDot | |
| 72 | - ((actualCarrier D.background D.carrierBlock j).normal D.strip D.directions n x) | |
| 73 | - ((actualCopyCoefficients D.reference D.charts D.context D.state D.carrierBlock | |
| 74 | - D.gaussianInput D.aliasInput j D.background D.copy).amplitude n x) := by | |
| 75 | - simp only [normalDot, Pi.smul_apply, Complex.real_smul] | |
| 76 | - ring | |
| 77 | - rw [he, C.raw_tangent n x hx, mul_zero] | |
| 78 | - | |
| 79 | -theorem commonPotential_smooth (n : ℕ) : | |
| 80 | - ContDiffOn ℝ ∞ (commonPotential D j n) D.strip.domain := by | |
| 81 | - exact CurlClassBounds.vectorPotential_contDiffOn (C.background.cylindrical n) | |
| 82 | - ((j : ℝ) * D.carrierBlock.frequency n) (C.background.phase_smooth n) | |
| 83 | - (commonRaw_smooth D C n) (C.normal_nonzero n) | |
| 84 | - | |
| 85 | 33 | end ActualInputs |
| 86 | 34 | |
| 87 | 35 | /-! ## The actual physical changes of band and cover -/ |
| @@ -372,76 +320,18 @@ theorem phaseNormal_chartChange {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) | ||
| 372 | 320 | |
| 373 | 321 | /-! ## One potential built from the actual reference solve -/ |
| 374 | 322 | |
| 375 | -noncomputable def referenceRaw (D : AssemblyData Parameter) (j : ℤ) : WaveSpace → ComplexVector := | |
| 376 | - angleLift (referenceVelocity D.reference D.context D.state D.carrierBlock | |
| 377 | - D.gaussianInput D.aliasInput j) | |
| 378 | - | |
| 379 | -noncomputable def referenceRawPressure (D : AssemblyData Parameter) (j : ℤ) : WaveSpace → ℂ := | |
| 380 | - angleLift (ParticularWaveAssembly.referencePressure D.reference D.context D.state D.carrierBlock | |
| 381 | - D.gaussianInput D.aliasInput j) | |
| 382 | - | |
| 383 | 323 | noncomputable def referenceFrequency (D : AssemblyData Parameter) (j : ℤ) : ℝ := |
| 384 | 324 | (j : ℝ) * D.carrierBlock.frequency D.reference.band |
| 385 | 325 | |
| 386 | 326 | noncomputable def referencePhase (D : AssemblyData Parameter) (j : ℤ) : WaveSpace → ℝ := |
| 387 | 327 | (actualCarrier D.background D.carrierBlock j).phase D.reference.band |
| 388 | 328 | |
| 389 | -noncomputable def physicalPhase (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) : | |
| 390 | - SpaceTime → ℝ := fun z => referencePhase D j (nativeMap h Qr I z) | |
| 391 | - | |
| 392 | -noncomputable def physicalRaw (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) : | |
| 393 | - SpaceTime → ComplexVector := | |
| 394 | - fun z => Qr ^ (-CoordinateAlgebra.A h) • referenceRaw D j (nativeMap h Qr I z) | |
| 395 | - | |
| 396 | -/-- The native cutoff is already inside the reference common solve. | |
| 397 | -The potential is taken once, after that solve and before differentiation. -/ | |
| 398 | -noncomputable def referencePotential (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) : | |
| 399 | - SpaceTime → ComplexVector := | |
| 400 | - PhysicalCurlCovariance.referencePotential (referenceFrequency D j) | |
| 401 | - (physicalPhase D h Qr I j) (physicalRaw D h Qr I j) | |
| 402 | - | |
| 403 | -noncomputable def physicalPotential (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) | |
| 404 | - (delta : ℝ) (j : ℤ) : VelocityField := | |
| 405 | - PhysicalCurlCovariance.globalCartesianPotential delta (referencePotential D h Qr I j) | |
| 406 | - | |
| 407 | -noncomputable def physicalVelocity (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) | |
| 408 | - (delta : ℝ) (j : ℤ) : VelocityField := | |
| 409 | - SpatialCurl.spatialCurl (physicalPotential D h Qr I delta j) | |
| 410 | - | |
| 411 | -/-- The finite harmonic sum for a single original spatial label is one | |
| 412 | -actual Cartesian potential, rather than a collection of bandwise fields. -/ | |
| 413 | -noncomputable def labelPotential (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) | |
| 414 | - (delta : ℝ) (N : ℕ) : VelocityField := | |
| 415 | - fun z => ∑ j ∈ modes N, physicalPotential D h Qr I delta j z | |
| 416 | - | |
| 417 | -noncomputable def labelVelocity (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) | |
| 418 | - (delta : ℝ) (N : ℕ) : VelocityField := | |
| 419 | - SpatialCurl.spatialCurl (labelPotential D h Qr I delta N) | |
| 420 | - | |
| 421 | 329 | theorem nativeMap_add_angle (h Q : ℝ) (i : ℕ) (z : SpaceTime) (s : ℝ) : |
| 422 | 330 | nativeMap h Q i (z + s • (0, coordinateVector 1)) = |
| 423 | 331 | nativeMap h Q i z + s • (((0 : Parameter), (1 : ℝ)), (0 : Plane)) := by |
| 424 | 332 | ext <;> simp [nativeMap, waveEquiv_apply, PhysicalResidualBridge.ScaledGraph.map, |
| 425 | 333 | coordinateVector, smul_eq_mul] |
| 426 | 334 | |
| 427 | -theorem physicalPhase_affine (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) : | |
| 428 | - AffinePhase ((0 : ℝ), coordinateVector 1) | |
| 429 | - ((D.carrierBlock.angularFrequency D.reference.band : ℝ) / | |
| 430 | - D.carrierBlock.frequency D.reference.band) (physicalPhase D h Qr I j) := by | |
| 431 | - intro z s | |
| 432 | - unfold physicalPhase referencePhase | |
| 433 | - rw [nativeMap_add_angle] | |
| 434 | - exact actualCarrier_affine D.background D.carrierBlock j D.reference.band (nativeMap h Qr I z) s | |
| 435 | - | |
| 436 | -theorem physicalRaw_invariant (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) : | |
| 437 | - Invariant ((0 : ℝ), coordinateVector 1) (physicalRaw D h Qr I j) := by | |
| 438 | - intro z s | |
| 439 | - unfold physicalRaw | |
| 440 | - rw [nativeMap_add_angle] | |
| 441 | - congr 1 | |
| 442 | - exact angleLift_invariant (referenceVelocity D.reference D.context D.state D.carrierBlock | |
| 443 | - D.gaussianInput D.aliasInput j) (nativeMap h Qr I z) s | |
| 444 | - | |
| 445 | 335 | theorem angle_translate_pack (t r theta z s : ℝ) : |
| 446 | 336 | (t, AxisymmetricResidual.pack r theta z) + s • ((0 : ℝ), coordinateVector 1) = |
| 447 | 337 | (t, AxisymmetricResidual.pack r (theta + s) z) := by |
| @@ -450,53 +340,12 @@ theorem angle_translate_pack (t r theta z s : ℝ) : | ||
| 450 | 340 | · ext i |
| 451 | 341 | fin_cases i <;> simp [coordinateVector] |
| 452 | 342 | |
| 453 | -theorem referencePotential_periodic (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) | |
| 454 | - (hk : D.carrierBlock.frequency D.reference.band ≠ 0) (t r z : ℝ) : | |
| 455 | - Periodic (fun theta => referencePotential D h Qr I j | |
| 456 | - (t, AxisymmetricResidual.pack r theta z)) (2 * Real.pi) := by | |
| 457 | - intro theta | |
| 458 | - have hR : Invariant ((0 : ℝ), coordinateVector 1) LinearWaveResidual.coordinateRadius := by | |
| 459 | - intro x s | |
| 460 | - simp [LinearWaveResidual.coordinateRadius, coordinateVector] | |
| 461 | - have hf : referenceFrequency D j * | |
| 462 | - ((D.carrierBlock.angularFrequency D.reference.band : ℝ) / | |
| 463 | - D.carrierBlock.frequency D.reference.band) = | |
| 464 | - ((j * D.carrierBlock.angularFrequency D.reference.band : ℤ) : ℝ) := by | |
| 465 | - unfold referenceFrequency | |
| 466 | - push_cast | |
| 467 | - field_simp [hk] | |
| 468 | - have he := PhysicalCurlCovariance.vectorPotential_fullTurn | |
| 469 | - (Vr := LinearWaveResidual.spaceDirection 0) | |
| 470 | - (Vθ := LinearWaveResidual.spaceDirection 1) | |
| 471 | - (Vz := LinearWaveResidual.spaceDirection 2) | |
| 472 | - (j * D.carrierBlock.angularFrequency D.reference.band) hR | |
| 473 | - (Invariant.const _) (Invariant.const _) (Invariant.const _) | |
| 474 | - (physicalPhase_affine D h Qr I j) (physicalRaw_invariant D h Qr I j) hf | |
| 475 | - (t, AxisymmetricResidual.pack r theta z) | |
| 476 | - simpa only [referencePotential, PhysicalCurlCovariance.referencePotential, angle_translate_pack] using he | |
| 477 | - | |
| 478 | 343 | /-- These are identities of the input chart at its own reference band. -/ |
| 479 | 344 | structure ReferenceIdentity (D : AssemblyData Parameter) : Prop where |
| 480 | 345 | parameter : D.charts.parameter D.reference.band = id |
| 481 | 346 | gap : D.charts.gap D.reference.band = 0 |
| 482 | 347 | amplitude : D.charts.amplitude D.reference.band = 1 |
| 483 | 348 | |
| 484 | -theorem referenceRaw_eq_common (D : AssemblyData Parameter) (H : ReferenceIdentity D) (j : ℤ) : | |
| 485 | - referenceRaw D j = (rawCommon D j).amplitude D.reference.band := by | |
| 486 | - have hs : residualSource D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j D.reference.band = | |
| 487 | - transportSource (residualSource D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j D.reference.band) | |
| 488 | - (D.charts.parameter D.reference.band) (D.charts.gap D.reference.band) | |
| 489 | - (D.charts.amplitude D.reference.band) := by | |
| 490 | - rw [H.parameter, H.gap, H.amplitude] | |
| 491 | - funext p | |
| 492 | - simp [transportSource, coverPower] | |
| 493 | - funext x | |
| 494 | - have he := actualBandVelocity_eq_reference D.reference D.charts D.context D.state D.carrierBlock | |
| 495 | - D.gaussianInput D.aliasInput j D.reference.band hs x.1.1 x.2 | |
| 496 | - rw [H.parameter, H.gap, H.amplitude] at he | |
| 497 | - simp only [id_eq, coverPower, ContinuousLinearEquiv.refl_apply, one_smul] at he | |
| 498 | - exact he.symm | |
| 499 | - | |
| 500 | 349 | /-- Literal input-operator matches at the reference chart. This record |
| 501 | 350 | contains no condition on a solved velocity, pressure, potential or curl. -/ |
| 502 | 351 | structure ReferenceChart (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) : Prop where |
| @@ -510,18 +359,9 @@ structure ReferenceChart (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) : P | ||
| 510 | 359 | axial : PhysicalCurlCovariance.reindexVector waveEquiv.toContinuousLinearEquiv |
| 511 | 360 | (D.directions.axialField D.strip D.reference.band) = (PhysicalResidualBridge.commonGraph Qr h I).axial |
| 512 | 361 | |
| 513 | -noncomputable def referenceDomain (D : AssemblyData Parameter) : Set Cylinder := | |
| 514 | - waveEquiv ⁻¹' D.strip.domain | |
| 515 | - | |
| 516 | -theorem referenceDomain_open (D : AssemblyData Parameter) : IsOpen (referenceDomain D) := | |
| 517 | - D.strip.isOpen_domain.preimage waveEquiv.continuous | |
| 518 | - | |
| 519 | 362 | noncomputable def liftPhase (D : AssemblyData Parameter) (j : ℤ) : Cylinder → ℝ := |
| 520 | 363 | fun x => referencePhase D j (waveEquiv x) |
| 521 | 364 | |
| 522 | -noncomputable def liftRaw (D : AssemblyData Parameter) (j : ℤ) : Cylinder → ComplexVector := | |
| 523 | - fun x => referenceRaw D j (waveEquiv x) | |
| 524 | - | |
| 525 | 365 | section ReferenceRealization |
| 526 | 366 | |
| 527 | 367 | variable (D : AssemblyData Parameter) {h Qr : ℝ} {I : ℕ} (H : ReferenceChart D h Qr I) |
| @@ -531,87 +371,6 @@ variable (D : AssemblyData Parameter) {h Qr : ℝ} {I : ℕ} (H : ReferenceChart | ||
| 531 | 371 | |
| 532 | 372 | include H C |
| 533 | 373 | |
| 534 | -omit H in | |
| 535 | -theorem liftPhase_smooth : ContDiffOn ℝ ∞ (liftPhase D j) (referenceDomain D) := | |
| 536 | - (C.background.phase_smooth D.reference.band).comp waveEquiv.contDiff.contDiffOn (fun _ hx => hx) | |
| 537 | - | |
| 538 | -theorem liftRaw_smooth : ContDiffOn ℝ ∞ (liftRaw D j) (referenceDomain D) := by | |
| 539 | - unfold liftRaw | |
| 540 | - rw [referenceRaw_eq_common D H.identity] | |
| 541 | - exact (commonRaw_smooth D C D.reference.band).comp waveEquiv.contDiff.contDiffOn (fun _ hx => hx) | |
| 542 | - | |
| 543 | -theorem liftNormal_eq {x : Cylinder} (hx : x ∈ referenceDomain D) : | |
| 544 | - phaseNormal PhysicalResidualBridge.ScaledGraph.radius (PhysicalResidualBridge.commonGraph Qr h I).radial | |
| 545 | - PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualBridge.commonGraph Qr h I).axial | |
| 546 | - (liftPhase D j) x = | |
| 547 | - (rawCommon D j).normal D.strip D.directions D.reference.band (waveEquiv x) := by | |
| 548 | - have hp := ((C.background.phase_smooth D.reference.band).contDiffAt | |
| 549 | - (D.strip.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) | |
| 550 | - have he := PhysicalCurlCovariance.phaseNormal_reindex waveEquiv.toContinuousLinearEquiv | |
| 551 | - (D.background.radius D.reference.band) (D.directions.radialField D.reference.band) | |
| 552 | - (fun _ => D.directions.angular) (D.directions.axialField D.strip D.reference.band) hp | |
| 553 | - rw [H.radius, H.radial, H.angular, H.axial] at he | |
| 554 | - exact he | |
| 555 | - | |
| 556 | -theorem liftNormal_ne {x : Cylinder} (hx : x ∈ referenceDomain D) : | |
| 557 | - phaseNormal PhysicalResidualBridge.ScaledGraph.radius (PhysicalResidualBridge.commonGraph Qr h I).radial | |
| 558 | - PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualBridge.commonGraph Qr h I).axial | |
| 559 | - (liftPhase D j) x ≠ 0 := by | |
| 560 | - rw [liftNormal_eq D H C hx] | |
| 561 | - exact C.normal_nonzero D.reference.band (waveEquiv x) hx | |
| 562 | - | |
| 563 | -theorem liftRaw_tangent {x : Cylinder} (hx : x ∈ referenceDomain D) : | |
| 564 | - normalDot (phaseNormal PhysicalResidualBridge.ScaledGraph.radius | |
| 565 | - (PhysicalResidualBridge.commonGraph Qr h I).radial PhysicalResidualBridge.ScaledGraph.angular | |
| 566 | - (PhysicalResidualBridge.commonGraph Qr h I).axial (liftPhase D j) x) (liftRaw D j x) = 0 := by | |
| 567 | - rw [liftNormal_eq D H C hx] | |
| 568 | - unfold liftRaw | |
| 569 | - rw [referenceRaw_eq_common D H.identity] | |
| 570 | - exact commonRaw_tangent D C D.reference.band hx | |
| 571 | - | |
| 572 | -theorem liftPotential_eq {x : Cylinder} (hx : x ∈ referenceDomain D) : | |
| 573 | - CurlClassBounds.vectorPotential (referenceFrequency D j) PhysicalResidualBridge.ScaledGraph.radius | |
| 574 | - (PhysicalResidualBridge.commonGraph Qr h I).radial PhysicalResidualBridge.ScaledGraph.angular | |
| 575 | - (PhysicalResidualBridge.commonGraph Qr h I).axial (liftPhase D j) (liftRaw D j) x = | |
| 576 | - commonPotential D j D.reference.band (waveEquiv x) := by | |
| 577 | - have hp := ((C.background.phase_smooth D.reference.band).contDiffAt | |
| 578 | - (D.strip.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) | |
| 579 | - have he := PhysicalCurlCovariance.vectorPotential_reindex waveEquiv.toContinuousLinearEquiv | |
| 580 | - (referenceFrequency D j) (D.background.radius D.reference.band) | |
| 581 | - (D.directions.radialField D.reference.band) (fun _ => D.directions.angular) | |
| 582 | - (D.directions.axialField D.strip D.reference.band) | |
| 583 | - ((rawCommon D j).amplitude D.reference.band) hp | |
| 584 | - rw [H.radius, H.radial, H.angular, H.axial] at he | |
| 585 | - unfold liftRaw | |
| 586 | - rw [referenceRaw_eq_common D H.identity] | |
| 587 | - exact he | |
| 588 | - | |
| 589 | -theorem referencePotential_eq_common (hQr : 0 < Qr) {z : SpaceTime} (hz : 0 < z.2 0) | |
| 590 | - (hx : nativeMap h Qr I z ∈ D.strip.domain) : | |
| 591 | - referencePotential D h Qr I j z = | |
| 592 | - Qr ^ (-h) • commonPotential D j D.reference.band (nativeMap h Qr I z) := by | |
| 593 | - have hK : referenceFrequency D j ≠ 0 := C.frequency_nonzero D.reference.band | |
| 594 | - have hp := ((liftPhase_smooth D C).contDiffAt ((referenceDomain_open D).mem_nhds hx)).differentiableAt (by simp) | |
| 595 | - have he := PhysicalCurlCovariance.commonGraph_vectorPotential_pull hQr h I hK hK hz hp (liftRaw D j) | |
| 596 | - simp only [div_self hK, one_mul] at he | |
| 597 | - change referencePotential D h Qr I j z = _ at he | |
| 598 | - rw [liftPotential_eq D H C hx] at he | |
| 599 | - exact he | |
| 600 | - | |
| 601 | -theorem referencePotential_smoothAt (hQr : 0 < Qr) {z : SpaceTime} (hz : 0 < z.2 0) | |
| 602 | - (hx : nativeMap h Qr I z ∈ D.strip.domain) : | |
| 603 | - ContDiffAt ℝ ∞ (referencePotential D h Qr I j) z := by | |
| 604 | - let G := PhysicalResidualBridge.commonGraph Qr h I | |
| 605 | - have hm : ContDiffAt ℝ ∞ (nativeMap h Qr I) z := | |
| 606 | - waveEquiv.contDiff.contDiffAt.comp z (G.map_smoothAt (mul_pos (Real.rpow_pos_of_pos hQr _) hz).ne') | |
| 607 | - have hs := (((commonPotential_smooth D C D.reference.band).contDiffAt | |
| 608 | - (D.strip.isOpen_domain.mem_nhds hx)).comp z hm).const_smul (Qr ^ (-h)) | |
| 609 | - have hn : {y : SpaceTime | 0 < y.2 0} ∩ (nativeMap h Qr I) ⁻¹' D.strip.domain ∈ 𝓝 z := | |
| 610 | - inter_mem ((isOpen_lt continuous_const (PhysicalGraphBounds.coordinateProjection 0).continuous).mem_nhds hz) | |
| 611 | - (hm.continuousAt (D.strip.isOpen_domain.mem_nhds hx)) | |
| 612 | - apply hs.congr_of_eventuallyEq | |
| 613 | - exact eventually_of_mem hn (fun y hy => referencePotential_eq_common D H C hQr hy.1 hy.2) | |
| 614 | - | |
| 615 | 374 | end ReferenceRealization |
| 616 | 375 | |
| 617 | 376 | /-! ## Actual solves with the rescaled native clock -/ |
| @@ -620,10 +379,6 @@ noncomputable def parameterChange (h Q Qr : ℝ) (p : Parameter) : Parameter := | ||
| 620 | 379 | (ratioPower Q Qr (1 / 2) * p.1, |
| 621 | 380 | (ratioPower Q Qr 1 * p.2.1, ratioPower Q Qr (CoordinateAlgebra.D h) * p.2.2)) |
| 622 | 381 | |
| 623 | -theorem parameterChange_smooth (h Q Qr : ℝ) : ContDiff ℝ ∞ (parameterChange h Q Qr) := | |
| 624 | - (contDiff_const.mul contDiff_fst).prodMk | |
| 625 | - ((contDiff_const.mul contDiff_snd.fst).prodMk (contDiff_const.mul contDiff_snd.snd)) | |
| 626 | - | |
| 627 | 382 | theorem waveEquiv_cylinderChange (h Q Qr : ℝ) (gap : ℕ) (x : Cylinder) : |
| 628 | 383 | waveEquiv (cylinderChange h Q Qr gap x) = |
| 629 | 384 | ((parameterChange h Q Qr (waveEquiv x).1.1, (waveEquiv x).1.2), coverPower gap (waveEquiv x).2) := rfl |
| @@ -667,42 +422,10 @@ theorem normalWeight_ne {Q Qr K Kr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) | ||
| 667 | 422 | (hK : K ≠ 0) (hKr : Kr ≠ 0) : normalWeight Q Qr K Kr ≠ 0 := |
| 668 | 423 | mul_ne_zero (div_ne_zero hKr hK) (ratioPower_pos hQ hQr (1 / 2)).ne' |
| 669 | 424 | |
| 670 | -theorem bandAmplitude_eq_reference (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} | |
| 671 | - (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) {K : ℝ} (hK : K ≠ 0) (j : ℤ) | |
| 672 | - (hKr : referenceFrequency D j ≠ 0) {U : Set Parameter} (R : ReferenceODE D j U) | |
| 673 | - (p : Parameter) (hp : parameterChange h Q Qr p ∈ U) (Y : Plane) : | |
| 674 | - bandAmplitude D h hQ hQr gap K j (p, Y) = | |
| 675 | - velocityWeight h Q Qr • referenceVelocity D.reference D.context D.state D.carrierBlock | |
| 676 | - D.gaussianInput D.aliasInput j (parameterChange h Q Qr p, coverPower gap Y) := by | |
| 677 | - exact ScaledTangentTransport.commonVelocity_zeroEntry (D.reference.tangent j) (referenceSource D j) | |
| 678 | - (parameterChange h Q Qr) D.reference.geometry gap D.reference.length (clockWeight h Q Qr) | |
| 679 | - (velocityWeight h Q Qr) (normalWeight Q Qr K (referenceFrequency D j)) D.reference.length_pos | |
| 680 | - (ratioPower_pos hQ hQr _) (normalWeight_ne hQ hQr hK hKr) | |
| 681 | - R.coefficient R.forcing R.source D.reference.cutoff R.cutoff p hp Y | |
| 682 | - | |
| 683 | -theorem bandPressure_eq_reference (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} | |
| 684 | - (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) {K : ℝ} (hK : K ≠ 0) (j : ℤ) | |
| 685 | - (hKr : referenceFrequency D j ≠ 0) {U : Set Parameter} (R : ReferenceODE D j U) | |
| 686 | - (p : Parameter) (hp : parameterChange h Q Qr p ∈ U) (Y : Plane) : | |
| 687 | - bandPressure D h hQ hQr gap K j (p, Y) = | |
| 688 | - pressureWeight h Q Qr • ParticularWaveAssembly.referencePressure D.reference D.context D.state D.carrierBlock | |
| 689 | - D.gaussianInput D.aliasInput j (parameterChange h Q Qr p, coverPower gap Y) := by | |
| 690 | - have he := ScaledTangentTransport.commonPressure_zeroEntry (D.reference.tangent j) (referenceSource D j) | |
| 691 | - (parameterChange h Q Qr) D.reference.geometry gap D.reference.length (clockWeight h Q Qr) | |
| 692 | - (velocityWeight h Q Qr) (normalWeight Q Qr K (referenceFrequency D j)) (referenceFrequency D j) K | |
| 693 | - D.reference.length_pos (ratioPower_pos hQ hQr _) (normalWeight_ne hQ hQr hK hKr) hKr hK | |
| 694 | - R.coefficient R.forcing R.source D.reference.cutoff R.cutoff p hp Y | |
| 695 | - rw [pressure_scaling hQ hQr hK hKr] at he | |
| 696 | - exact he | |
| 697 | - | |
| 698 | 425 | noncomputable def bandRaw (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 699 | 426 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (K : ℝ) (j : ℤ) : Cylinder → ComplexVector := |
| 700 | 427 | fun x => bandAmplitude D h hQ hQr gap K j ((waveEquiv x).1.1, (waveEquiv x).2) |
| 701 | 428 | |
| 702 | -noncomputable def bandRawPressure (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} | |
| 703 | - (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (K : ℝ) (j : ℤ) : Cylinder → ℂ := | |
| 704 | - fun x => bandPressure D h hQ hQr gap K j ((waveEquiv x).1.1, (waveEquiv x).2) | |
| 705 | - | |
| 706 | 429 | noncomputable def bandPhase (D : AssemblyData Parameter) (h Q Qr : ℝ) (gap : ℕ) (K : ℝ) (j : ℤ) : |
| 707 | 430 | Cylinder → ℝ := fun x => (referenceFrequency D j / K) * liftPhase D j (cylinderChange h Q Qr gap x) |
| 708 | 431 | |
| @@ -714,25 +437,6 @@ noncomputable def bandVelocity (D : AssemblyData Parameter) (h : ℝ) {Q Qr : | ||
| 714 | 437 | G.radial PhysicalResidualBridge.ScaledGraph.angular G.axial (bandPhase D h Q Qr gap K j) |
| 715 | 438 | (bandRaw D h hQ hQr gap K j)) |
| 716 | 439 | |
| 717 | -theorem bandRaw_eq_lift (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} | |
| 718 | - (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) {K : ℝ} (hK : K ≠ 0) (j : ℤ) | |
| 719 | - (hKr : referenceFrequency D j ≠ 0) {U : Set Parameter} (R : ReferenceODE D j U) | |
| 720 | - (x : Cylinder) (hx : parameterChange h Q Qr (waveEquiv x).1.1 ∈ U) : | |
| 721 | - bandRaw D h hQ hQr gap K j x = | |
| 722 | - velocityWeight h Q Qr • liftRaw D j (cylinderChange h Q Qr gap x) := by | |
| 723 | - exact bandAmplitude_eq_reference D h hQ hQr gap hK j hKr R (waveEquiv x).1.1 hx (waveEquiv x).2 | |
| 724 | - | |
| 725 | -noncomputable def bandDomain (D : AssemblyData Parameter) (h Q Qr : ℝ) (gap : ℕ) | |
| 726 | - (U : Set Parameter) : Set Cylinder := | |
| 727 | - {x | 0 < x.1.1 ∧ cylinderChange h Q Qr gap x ∈ referenceDomain D ∧ | |
| 728 | - parameterChange h Q Qr (waveEquiv x).1.1 ∈ U} | |
| 729 | - | |
| 730 | -theorem bandDomain_open (D : AssemblyData Parameter) (h Q Qr : ℝ) (gap : ℕ) | |
| 731 | - {U : Set Parameter} (hU : IsOpen U) : IsOpen (bandDomain D h Q Qr gap U) := | |
| 732 | - (isOpen_lt continuous_const continuous_fst.fst).inter | |
| 733 | - (((referenceDomain_open D).preimage (cylinderChange h Q Qr gap).continuous).inter | |
| 734 | - (hU.preimage ((parameterChange_smooth h Q Qr).continuous.comp waveEquiv.continuous.fst.fst))) | |
| 735 | - | |
| 736 | 440 | theorem normalDot_scaled (s c : ℝ) (n : Space) (a : ComplexVector) : |
| 737 | 441 | normalDot (s • n) (c • a) = (s : ℂ) * (c : ℂ) * normalDot n a := by |
| 738 | 442 | simp [normalDot, Complex.real_smul] |
| @@ -748,109 +452,12 @@ variable (D : AssemblyData Parameter) {h Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) | ||
| 748 | 452 | |
| 749 | 453 | include H C R hK hQ hQr |
| 750 | 454 | |
| 751 | -omit hQ hQr H hK R in | |
| 752 | -theorem bandPhase_smooth : ContDiffOn ℝ ∞ (bandPhase D h Q Qr gap K j) (bandDomain D h Q Qr gap U) := | |
| 753 | - contDiffOn_const.mul ((liftPhase_smooth D C).comp (s := bandDomain D h Q Qr gap U) | |
| 754 | - (cylinderChange h Q Qr gap).contDiff.contDiffOn (fun _ hx => hx.2.1)) | |
| 755 | - | |
| 756 | -theorem bandRaw_smooth : ContDiffOn ℝ ∞ (bandRaw D h hQ hQr gap K j) (bandDomain D h Q Qr gap U) := by | |
| 757 | - have hs := ((liftRaw_smooth D H C).comp (cylinderChange h Q Qr gap).contDiff.contDiffOn | |
| 758 | - (s := bandDomain D h Q Qr gap U) (fun _ hx => hx.2.1)).const_smul (velocityWeight h Q Qr) | |
| 759 | - apply hs.congr | |
| 760 | - intro x hx | |
| 761 | - exact bandRaw_eq_lift D h hQ hQr gap hK j (C.frequency_nonzero D.reference.band) R x hx.2.2 | |
| 762 | - | |
| 763 | -omit R in | |
| 764 | -theorem bandNormal_ne {x : Cylinder} (hx : x ∈ bandDomain D h Q Qr gap U) : | |
| 765 | - phaseNormal PhysicalResidualBridge.ScaledGraph.radius (PhysicalResidualBridge.commonGraph Q h i).radial | |
| 766 | - PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualBridge.commonGraph Q h i).axial | |
| 767 | - (bandPhase D h Q Qr gap K j) x ≠ 0 := by | |
| 768 | - have hp := ((liftPhase_smooth D C).contDiffAt ((referenceDomain_open D).mem_nhds hx.2.1)).differentiableAt (by simp) | |
| 769 | - have he := phaseNormal_chartChange hQ hQr h i gap K (referenceFrequency D j) hx.1 hp | |
| 770 | - change phaseNormal _ _ _ _ (bandPhase D h Q Qr gap K j) x = _ at he | |
| 771 | - rw [he] | |
| 772 | - exact smul_ne_zero (normalWeight_ne hQ hQr hK (C.frequency_nonzero D.reference.band)) | |
| 773 | - (liftNormal_ne D H C hx.2.1) | |
| 774 | - | |
| 775 | -theorem bandRaw_tangent {x : Cylinder} (hx : x ∈ bandDomain D h Q Qr gap U) : | |
| 776 | - normalDot (phaseNormal PhysicalResidualBridge.ScaledGraph.radius | |
| 777 | - (PhysicalResidualBridge.commonGraph Q h i).radial PhysicalResidualBridge.ScaledGraph.angular | |
| 778 | - (PhysicalResidualBridge.commonGraph Q h i).axial (bandPhase D h Q Qr gap K j) x) | |
| 779 | - (bandRaw D h hQ hQr gap K j x) = 0 := by | |
| 780 | - have hp := ((liftPhase_smooth D C).contDiffAt ((referenceDomain_open D).mem_nhds hx.2.1)).differentiableAt (by simp) | |
| 781 | - have he := phaseNormal_chartChange hQ hQr h i gap K (referenceFrequency D j) hx.1 hp | |
| 782 | - change phaseNormal _ _ _ _ (bandPhase D h Q Qr gap K j) x = _ at he | |
| 783 | - rw [he, bandRaw_eq_lift D h hQ hQr gap hK j (C.frequency_nonzero D.reference.band) R x hx.2.2, | |
| 784 | - normalDot_scaled, liftRaw_tangent D H C hx.2.1, mul_zero] | |
| 785 | - | |
| 786 | 455 | include hU |
| 787 | 456 | |
| 788 | -/-- Every actual transported solve is the view of the same Cartesian | |
| 789 | -reference curl. The clock, source, cutoff and normal are transported | |
| 790 | -before solving; no equality of solved velocities is a premise. -/ | |
| 791 | -theorem band_physical_velocity {z : SpaceTime} | |
| 792 | - (hz : z ∈ (PhysicalResidualBridge.commonGraph Q h i).source (bandDomain D h Q Qr gap U)) | |
| 793 | - {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) | |
| 794 | - (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) (component : Fin 3) : | |
| 795 | - (bandVelocity D h hQ hQr i gap K j ((PhysicalResidualBridge.commonGraph Q h i).map z) component).re = | |
| 796 | - Q ^ CoordinateAlgebra.A h * CylindricalResidual.frame (-(z.2 1)) | |
| 797 | - (physicalVelocity D h Qr (i + gap) delta j (z.1, CylindricalResidual.chart z.2)) component := by | |
| 798 | - have hKr : referenceFrequency D j ≠ 0 := C.frequency_nonzero D.reference.band | |
| 799 | - have hphase : ∀ y ∈ (PhysicalResidualBridge.commonGraph Q h i).source (bandDomain D h Q Qr gap U), | |
| 800 | - referenceFrequency D j * physicalPhase D h Qr (i + gap) j y = | |
| 801 | - K * bandPhase D h Q Qr gap K j ((PhysicalResidualBridge.commonGraph Q h i).map y) := by | |
| 802 | - intro y hy | |
| 803 | - change referenceFrequency D j * liftPhase D j ((PhysicalResidualBridge.commonGraph Qr h (i + gap)).map y) = | |
| 804 | - K * ((referenceFrequency D j / K) * liftPhase D j | |
| 805 | - (cylinderChange h Q Qr gap ((PhysicalResidualBridge.commonGraph Q h i).map y))) | |
| 806 | - rw [cylinderChange_graph hQ hQr h i gap hy.1] | |
| 807 | - field_simp | |
| 808 | - have hamp : ∀ y ∈ (PhysicalResidualBridge.commonGraph Q h i).source (bandDomain D h Q Qr gap U), | |
| 809 | - physicalRaw D h Qr (i + gap) j y = | |
| 810 | - Q ^ (-CoordinateAlgebra.A h) • bandRaw D h hQ hQr gap K j | |
| 811 | - ((PhysicalResidualBridge.commonGraph Q h i).map y) := by | |
| 812 | - intro y hy | |
| 813 | - rw [bandRaw_eq_lift D h hQ hQr gap hK j hKr R _ hy.2.2.2, | |
| 814 | - cylinderChange_graph hQ hQr h i gap hy.1, smul_smul] | |
| 815 | - have hw : Q ^ (-CoordinateAlgebra.A h) * velocityWeight h Q Qr = Qr ^ (-CoordinateAlgebra.A h) := by | |
| 816 | - rw [mul_comm] | |
| 817 | - exact ratioPower_cancel hQ hQr _ | |
| 818 | - rw [hw] | |
| 819 | - rfl | |
| 820 | - exact PhysicalCurlCovariance.reference_correctedWave_constructed hQ h i | |
| 821 | - (bandDomain_open D h Q Qr gap hU) (fun _ hx => hx.1.ne') hKr hK | |
| 822 | - (bandPhase_smooth D gap C) (bandRaw_smooth D hQ hQr i gap H C hK R) | |
| 823 | - (fun _ hx => bandNormal_ne D hQ hQr i gap H C hK hx) | |
| 824 | - (fun _ hx => bandRaw_tangent D hQ hQr i gap H C hK R hx) | |
| 825 | - (physicalPhase D h Qr (i + gap) j) (physicalRaw D h Qr (i + gap) j) hphase hamp | |
| 826 | - (referencePotential_periodic D h Qr (i + gap) j (C.frequency_ne D.reference.band)) | |
| 827 | - hz hdelta chart hchart component | |
| 828 | - | |
| 829 | 457 | end BandRealization |
| 830 | 458 | |
| 831 | 459 | /-! ## The pressure from the same reference solve -/ |
| 832 | 460 | |
| 833 | -noncomputable def physicalPressureCoefficient (D : AssemblyData Parameter) (h Qr : ℝ) | |
| 834 | - (I : ℕ) (j : ℤ) : SpaceTime → ℂ := | |
| 835 | - fun z => (Qr ^ (-(2 * CoordinateAlgebra.A h)) : ℝ) • referenceRawPressure D j (nativeMap h Qr I z) | |
| 836 | - | |
| 837 | -noncomputable def complexPhysicalPressure (D : AssemblyData Parameter) (h Qr : ℝ) | |
| 838 | - (I : ℕ) (j : ℤ) : SpaceTime → ℂ := | |
| 839 | - mode (referenceFrequency D j) (physicalPhase D h Qr I j) (physicalPressureCoefficient D h Qr I j) | |
| 840 | - | |
| 841 | -noncomputable def pressureVector (p : SpaceTime → ℂ) (z : SpaceTime) : ComplexVector := ![0, 0, p z] | |
| 842 | - | |
| 843 | -/-- A scalar is the axial component of its Cartesian coordinate lift; | |
| 844 | -the frame fixes this component, so the construction has no extra rotation. -/ | |
| 845 | -noncomputable def physicalPressure (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) | |
| 846 | - (delta : ℝ) (j : ℤ) : PressureField := | |
| 847 | - fun z => PhysicalCurlCovariance.globalCartesianPotential delta | |
| 848 | - (pressureVector (complexPhysicalPressure D h Qr I j)) z 2 | |
| 849 | - | |
| 850 | -noncomputable def bandPressureMode (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} | |
| 851 | - (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (K : ℝ) (j : ℤ) : Cylinder → ℂ := | |
| 852 | - mode K (bandPhase D h Q Qr gap K j) (bandRawPressure D h hQ hQr gap K j) | |
| 853 | - | |
| 854 | 461 | theorem mode_fullTurn {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 855 | 462 | {theta : E} {phi : E → ℝ} {a : E → ℂ} {K slope : ℝ} (m : ℤ) |
| 856 | 463 | (hphi : AffinePhase theta slope phi) (ha : Invariant theta a) |
| @@ -866,112 +473,8 @@ theorem mode_fullTurn {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] | ||
| 866 | 473 | _ = _ := by rw [hc] |
| 867 | 474 | rw [mode_translate ha hphi, he, Complex.exp_int_mul_two_pi_mul_I, one_mul] |
| 868 | 475 | |
| 869 | -theorem complexPhysicalPressure_periodic (D : AssemblyData Parameter) (h Qr : ℝ) | |
| 870 | - (I : ℕ) (j : ℤ) (hk : D.carrierBlock.frequency D.reference.band ≠ 0) (t r z : ℝ) : | |
| 871 | - Periodic (fun theta => complexPhysicalPressure D h Qr I j | |
| 872 | - (t, AxisymmetricResidual.pack r theta z)) (2 * Real.pi) := by | |
| 873 | - intro theta | |
| 874 | - have hp : Invariant ((0 : ℝ), coordinateVector 1) (physicalPressureCoefficient D h Qr I j) := by | |
| 875 | - intro x s | |
| 876 | - unfold physicalPressureCoefficient | |
| 877 | - rw [nativeMap_add_angle] | |
| 878 | - congr 1 | |
| 879 | - exact angleLift_invariant (ParticularWaveAssembly.referencePressure D.reference D.context D.state | |
| 880 | - D.carrierBlock D.gaussianInput D.aliasInput j) (nativeMap h Qr I x) s | |
| 881 | - have hf : referenceFrequency D j * | |
| 882 | - ((D.carrierBlock.angularFrequency D.reference.band : ℝ) / D.carrierBlock.frequency D.reference.band) = | |
| 883 | - ((j * D.carrierBlock.angularFrequency D.reference.band : ℤ) : ℝ) := by | |
| 884 | - unfold referenceFrequency | |
| 885 | - push_cast | |
| 886 | - field_simp [hk] | |
| 887 | - have he := mode_fullTurn (j * D.carrierBlock.angularFrequency D.reference.band) | |
| 888 | - (physicalPhase_affine D h Qr I j) hp hf (t, AxisymmetricResidual.pack r theta z) | |
| 889 | - simpa only [complexPhysicalPressure, angle_translate_pack] using he | |
| 890 | - | |
| 891 | -theorem physicalPressure_forward (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) | |
| 892 | - (hk : D.carrierBlock.frequency D.reference.band ≠ 0) {delta : ℝ} (hdelta : 0 < delta) | |
| 893 | - (chart : PolarCharts.Index) {z : SpaceTime} | |
| 894 | - (hz : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) : | |
| 895 | - physicalPressure D h Qr I delta j (z.1, CylindricalResidual.chart z.2) = | |
| 896 | - (complexPhysicalPressure D h Qr I j z).re := by | |
| 897 | - have hper (t r z : ℝ) : Periodic (fun theta => pressureVector (complexPhysicalPressure D h Qr I j) | |
| 898 | - (t, AxisymmetricResidual.pack r theta z)) (2 * Real.pi) := by | |
| 899 | - intro theta | |
| 900 | - have hp := complexPhysicalPressure_periodic D h Qr I j hk t r z theta | |
| 901 | - simp only [pressureVector, hp] | |
| 902 | - have he := (PhysicalCurlCovariance.globalCartesianPotential_forward_germ hdelta chart | |
| 903 | - (pressureVector (complexPhysicalPressure D h Qr I j)) hper hz).eq_of_nhds | |
| 904 | - unfold physicalPressure | |
| 905 | - rw [he] | |
| 906 | - simp [CylindricalResidual.frame_apply, PhysicalCurlCovariance.realVector, pressureVector] | |
| 907 | - | |
| 908 | -theorem bandRawPressure_eq_lift (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} | |
| 909 | - (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) {K : ℝ} (hK : K ≠ 0) (j : ℤ) | |
| 910 | - (hKr : referenceFrequency D j ≠ 0) {U : Set Parameter} (R : ReferenceODE D j U) | |
| 911 | - (x : Cylinder) (hx : parameterChange h Q Qr (waveEquiv x).1.1 ∈ U) : | |
| 912 | - bandRawPressure D h hQ hQr gap K j x = | |
| 913 | - pressureWeight h Q Qr • referenceRawPressure D j (waveEquiv (cylinderChange h Q Qr gap x)) := by | |
| 914 | - exact bandPressure_eq_reference D h hQ hQr gap hK j hKr R (waveEquiv x).1.1 hx (waveEquiv x).2 | |
| 915 | - | |
| 916 | -theorem bandPressureMode_eq_physical (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} | |
| 917 | - (hQ : 0 < Q) (hQr : 0 < Qr) (i gap : ℕ) {K : ℝ} (hK : K ≠ 0) (j : ℤ) | |
| 918 | - (hKr : referenceFrequency D j ≠ 0) {U : Set Parameter} (R : ReferenceODE D j U) | |
| 919 | - {z : SpaceTime} (hz : 0 < z.2 0) | |
| 920 | - (hp : parameterChange h Q Qr (nativeMap h Q i z).1.1 ∈ U) : | |
| 921 | - bandPressureMode D h hQ hQr gap K j ((PhysicalResidualBridge.commonGraph Q h i).map z) = | |
| 922 | - (Q ^ (2 * CoordinateAlgebra.A h) : ℝ) • complexPhysicalPressure D h Qr (i + gap) j z := by | |
| 923 | - have hraw := bandRawPressure_eq_lift D h hQ hQr gap hK j hKr R | |
| 924 | - ((PhysicalResidualBridge.commonGraph Q h i).map z) hp | |
| 925 | - rw [cylinderChange_graph hQ hQr h i gap hz] at hraw | |
| 926 | - have hc : carrier K (bandPhase D h Q Qr gap K j) ((PhysicalResidualBridge.commonGraph Q h i).map z) = | |
| 927 | - carrier (referenceFrequency D j) (physicalPhase D h Qr (i + gap) j) z := by | |
| 928 | - apply PhysicalCurlCovariance.carrier_eq_of_products | |
| 929 | - change K * ((referenceFrequency D j / K) * liftPhase D j | |
| 930 | - (cylinderChange h Q Qr gap ((PhysicalResidualBridge.commonGraph Q h i).map z))) = | |
| 931 | - referenceFrequency D j * liftPhase D j ((PhysicalResidualBridge.commonGraph Qr h (i + gap)).map z) | |
| 932 | - rw [cylinderChange_graph hQ hQr h i gap hz] | |
| 933 | - field_simp | |
| 934 | - have hw : pressureWeight h Q Qr = Q ^ (2 * CoordinateAlgebra.A h) * Qr ^ (-(2 * CoordinateAlgebra.A h)) := by | |
| 935 | - unfold pressureWeight ratioPower | |
| 936 | - rw [Real.rpow_neg hQr.le, div_eq_mul_inv] | |
| 937 | - unfold bandPressureMode complexPhysicalPressure HarmonicCalculus.mode | |
| 938 | - rw [hraw, hc, hw] | |
| 939 | - simp only [physicalPressureCoefficient, Complex.real_smul, Complex.ofReal_mul, nativeMap] | |
| 940 | - ring | |
| 941 | - | |
| 942 | -theorem band_physical_pressure (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} | |
| 943 | - (hQ : 0 < Q) (hQr : 0 < Qr) (i gap : ℕ) {K : ℝ} (hK : K ≠ 0) (j : ℤ) | |
| 944 | - (hKr : referenceFrequency D j ≠ 0) {U : Set Parameter} (R : ReferenceODE D j U) | |
| 945 | - {z : SpaceTime} (hz : 0 < z.2 0) | |
| 946 | - (hp : parameterChange h Q Qr (nativeMap h Q i z).1.1 ∈ U) | |
| 947 | - {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) | |
| 948 | - (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) : | |
| 949 | - (bandPressureMode D h hQ hQr gap K j ((PhysicalResidualBridge.commonGraph Q h i).map z)).re = | |
| 950 | - Q ^ (2 * CoordinateAlgebra.A h) * | |
| 951 | - physicalPressure D h Qr (i + gap) delta j (z.1, CylindricalResidual.chart z.2) := by | |
| 952 | - have hk : D.carrierBlock.frequency D.reference.band ≠ 0 := by | |
| 953 | - intro hh | |
| 954 | - apply hKr | |
| 955 | - simp [referenceFrequency, hh] | |
| 956 | - rw [bandPressureMode_eq_physical D h hQ hQr i gap hK j hKr R hz hp, | |
| 957 | - physicalPressure_forward D h Qr (i + gap) j hk hdelta chart hchart] | |
| 958 | - simp [Complex.real_smul] | |
| 959 | - | |
| 960 | 476 | /-! ## Finite harmonic assembly uses one potential -/ |
| 961 | 477 | |
| 962 | -noncomputable def labelBandVelocity (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} | |
| 963 | - (hQ : 0 < Q) (hQr : 0 < Qr) (i gap : ℕ) (frequency : ℤ → ℝ) (N : ℕ) | |
| 964 | - (x : Cylinder) (component : Fin 3) : ℝ := | |
| 965 | - ∑ j ∈ modes N, (bandVelocity D h hQ hQr i gap (frequency j) j x component).re | |
| 966 | - | |
| 967 | -noncomputable def labelBandPressure (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} | |
| 968 | - (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (frequency : ℤ → ℝ) (N : ℕ) | |
| 969 | - (x : Cylinder) : ℝ := ∑ j ∈ modes N, (bandPressureMode D h hQ hQr gap (frequency j) j x).re | |
| 970 | - | |
| 971 | -noncomputable def labelPressure (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) | |
| 972 | - (delta : ℝ) (N : ℕ) : PressureField := | |
| 973 | - fun z => ∑ j ∈ modes N, physicalPressure D h Qr I delta j z | |
| 974 | - | |
| 975 | 478 | theorem spatialCurl_finset_sum {ι : Type} (S : Finset ι) (A : ι → VelocityField) |
| 976 | 479 | {z : SpaceTime} (hA : ∀ i ∈ S, DifferentiableAt ℝ (A i) z) : |
| 977 | 480 | SpatialCurl.spatialCurl (fun w => ∑ i ∈ S, A i w) z = |
| @@ -982,82 +485,10 @@ theorem spatialCurl_finset_sum {ι : Type} (S : Finset ι) (A : ι → VelocityF | ||
| 982 | 485 | ∑ i ∈ S, SpatialCurl.curl (fun y : Space => A i (z.1, y)) z.2 |
| 983 | 486 | simp only [SpatialCurl.curl, fderiv_fun_sum hs, map_sum] |
| 984 | 487 | |
| 985 | -theorem label_physical_velocity (D : AssemblyData Parameter) {h Q Qr : ℝ} | |
| 986 | - (hQ : 0 < Q) (hQr : 0 < Qr) (i gap : ℕ) (H : ReferenceChart D h Qr (i + gap)) | |
| 987 | - {N : ℕ} {α κ : ℝ} (C : D.controls N α κ) (frequency : ℤ → ℝ) | |
| 988 | - (hfrequency : ∀ j ∈ modes N, frequency j ≠ 0) {U : Set Parameter} (hU : IsOpen U) | |
| 989 | - (R : ∀ j ∈ modes N, ReferenceODE D j U) {z : SpaceTime} | |
| 990 | - (hz : z ∈ (PhysicalResidualBridge.commonGraph Q h i).source (bandDomain D h Q Qr gap U)) | |
| 991 | - {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) | |
| 992 | - (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) (component : Fin 3) : | |
| 993 | - labelBandVelocity D h hQ hQr i gap frequency N ((PhysicalResidualBridge.commonGraph Q h i).map z) component = | |
| 994 | - Q ^ CoordinateAlgebra.A h * CylindricalResidual.frame (-(z.2 1)) | |
| 995 | - (labelVelocity D h Qr (i + gap) delta N (z.1, CylindricalResidual.chart z.2)) component := by | |
| 996 | - have href : nativeMap h Qr (i + gap) z ∈ D.strip.domain := by | |
| 997 | - have hx := hz.2.2.1 | |
| 998 | - rw [cylinderChange_graph hQ hQr h i gap hz.1] at hx | |
| 999 | - exact hx | |
| 1000 | - have hA (j : ℤ) (hj : j ∈ modes N) : | |
| 1001 | - DifferentiableAt ℝ (physicalPotential D h Qr (i + gap) delta j) (z.1, CylindricalResidual.chart z.2) := | |
| 1002 | - (PhysicalCurlCovariance.globalCartesianPotential_smoothAt_forward hdelta chart | |
| 1003 | - (referencePotential_periodic D h Qr (i + gap) j ((C j hj).frequency_ne D.reference.band)) hchart | |
| 1004 | - (referencePotential_smoothAt D H (C j hj) hQr hz.1 href)).differentiableAt (by simp) | |
| 1005 | - have hsum := spatialCurl_finset_sum (modes N) | |
| 1006 | - (fun j => physicalPotential D h Qr (i + gap) delta j) hA | |
| 1007 | - unfold labelVelocity labelPotential labelBandVelocity | |
| 1008 | - rw [hsum] | |
| 1009 | - have hframe : CylindricalResidual.frame (-(z.2 1)) | |
| 1010 | - (∑ j ∈ modes N, SpatialCurl.spatialCurl (physicalPotential D h Qr (i + gap) delta j) | |
| 1011 | - (z.1, CylindricalResidual.chart z.2)) component = | |
| 1012 | - ∑ j ∈ modes N, CylindricalResidual.frame (-(z.2 1)) | |
| 1013 | - (SpatialCurl.spatialCurl (physicalPotential D h Qr (i + gap) delta j) | |
| 1014 | - (z.1, CylindricalResidual.chart z.2)) component := | |
| 1015 | - map_sum ((AxisymmetricFields.projection component).comp (CylindricalResidual.frame (-(z.2 1)))) _ _ | |
| 1016 | - rw [hframe, Finset.mul_sum] | |
| 1017 | - apply Finset.sum_congr rfl | |
| 1018 | - intro j hj | |
| 1019 | - exact band_physical_velocity D hQ hQr i gap H (C j hj) (hfrequency j hj) hU (R j hj) hz hdelta chart hchart component | |
| 1020 | - | |
| 1021 | -theorem label_physical_pressure (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} | |
| 1022 | - (hQ : 0 < Q) (hQr : 0 < Qr) (i gap : ℕ) {N : ℕ} (frequency : ℤ → ℝ) | |
| 1023 | - (hfrequency : ∀ j ∈ modes N, frequency j ≠ 0) | |
| 1024 | - (hreference : ∀ j ∈ modes N, referenceFrequency D j ≠ 0) {U : Set Parameter} | |
| 1025 | - (R : ∀ j ∈ modes N, ReferenceODE D j U) {z : SpaceTime} (hz : 0 < z.2 0) | |
| 1026 | - (hp : parameterChange h Q Qr (nativeMap h Q i z).1.1 ∈ U) | |
| 1027 | - {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) | |
| 1028 | - (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) : | |
| 1029 | - labelBandPressure D h hQ hQr gap frequency N ((PhysicalResidualBridge.commonGraph Q h i).map z) = | |
| 1030 | - Q ^ (2 * CoordinateAlgebra.A h) * | |
| 1031 | - labelPressure D h Qr (i + gap) delta N (z.1, CylindricalResidual.chart z.2) := by | |
| 1032 | - unfold labelBandPressure labelPressure | |
| 1033 | - rw [Finset.mul_sum] | |
| 1034 | - apply Finset.sum_congr rfl | |
| 1035 | - intro j hj | |
| 1036 | - exact band_physical_pressure D h hQ hQr i gap (hfrequency j hj) j (hreference j hj) | |
| 1037 | - (R j hj) hz hp hdelta chart hchart | |
| 1038 | - | |
| 1039 | 488 | /-! ## Axis preservation follows from vanishing of the actual source -/ |
| 1040 | 489 | |
| 1041 | 490 | /-! ## Regularity of the constructed physical fields -/ |
| 1042 | 491 | |
| 1043 | -theorem referenceRawPressure_eq_common (D : AssemblyData Parameter) (H : ReferenceIdentity D) | |
| 1044 | - {j : ℤ} (hj : j ≠ 0) (hfrequency : ∀ n, D.carrierBlock.frequency n ≠ 0) : | |
| 1045 | - referenceRawPressure D j = (rawCommon D j).pressure D.reference.band := by | |
| 1046 | - have hs : residualSource D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j D.reference.band = | |
| 1047 | - transportSource (residualSource D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j D.reference.band) | |
| 1048 | - (D.charts.parameter D.reference.band) (D.charts.gap D.reference.band) | |
| 1049 | - (D.charts.amplitude D.reference.band) := by | |
| 1050 | - rw [H.parameter, H.gap, H.amplitude] | |
| 1051 | - funext p | |
| 1052 | - simp [transportSource, coverPower] | |
| 1053 | - funext x | |
| 1054 | - have he := actualBandPressure_eq_reference D.reference D.charts D.context D.state D.carrierBlock | |
| 1055 | - D.gaussianInput D.aliasInput hj D.reference.band hfrequency hs x.1.1 x.2 | |
| 1056 | - rw [H.parameter, H.gap, H.amplitude] at he | |
| 1057 | - simp only [id_eq, coverPower, ContinuousLinearEquiv.refl_apply, one_mul, | |
| 1058 | - div_self (hfrequency D.reference.band), one_smul] at he | |
| 1059 | - exact he.symm | |
| 1060 | - | |
| 1061 | 492 | section PhysicalRegularity |
| 1062 | 493 | |
| 1063 | 494 | variable (D : AssemblyData Parameter) {h Qr : ℝ} {I : ℕ} (H : ReferenceChart D h Qr I) |
| @@ -1128,33 +559,5 @@ theorem transportedResidualSource_apply (D : AssemblyData Parameter) (h : ℝ) { | ||
| 1128 | 559 | unfold transportedResidualSource ScaledTangentTransport.transportSource |
| 1129 | 560 | rw [clock_mul_velocity hQ hQr] |
| 1130 | 561 | |
| 1131 | -/-- Equality with the target block's literal carrier follows from the | |
| 1132 | -primitive unmodulated phase identity and its shared integer angular label. -/ | |
| 1133 | -theorem bandPhase_eq_actualCarrier (D : AssemblyData Parameter) (h Q Qr : ℝ) | |
| 1134 | - (gap n : ℕ) (j : ℤ) (hj : j ≠ 0) (hfrequency : ∀ m, D.carrierBlock.frequency m ≠ 0) | |
| 1135 | - (hphase : ∀ p Y, D.carrierBlock.frequency n * D.carrierBlock.phase n (p, Y) = | |
| 1136 | - D.carrierBlock.frequency D.reference.band * D.carrierBlock.phase D.reference.band | |
| 1137 | - (parameterChange h Q Qr p, coverPower gap Y)) | |
| 1138 | - (hangular : D.carrierBlock.angularFrequency n = D.carrierBlock.angularFrequency D.reference.band) : | |
| 1139 | - bandPhase D h Q Qr gap ((j : ℝ) * D.carrierBlock.frequency n) j = | |
| 1140 | - fun x => (actualCarrier D.background D.carrierBlock j).phase n (waveEquiv x) := by | |
| 1141 | - funext x | |
| 1142 | - have hK : (j : ℝ) * D.carrierBlock.frequency n ≠ 0 := | |
| 1143 | - mul_ne_zero (by exact_mod_cast hj) (hfrequency n) | |
| 1144 | - apply mul_left_cancel₀ hK | |
| 1145 | - have hn := actualCarrier_phase D.background D.carrierBlock j hfrequency n | |
| 1146 | - ((waveEquiv x).1.1, (waveEquiv x).2) (waveEquiv x).1.2 | |
| 1147 | - have hr := actualCarrier_phase D.background D.carrierBlock j hfrequency D.reference.band | |
| 1148 | - (parameterChange h Q Qr (waveEquiv x).1.1, coverPower gap (waveEquiv x).2) (waveEquiv x).1.2 | |
| 1149 | - change ((j : ℝ) * D.carrierBlock.frequency n) * | |
| 1150 | - (actualCarrier D.background D.carrierBlock j).phase n (waveEquiv x) = _ at hn | |
| 1151 | - change referenceFrequency D j * liftPhase D j (cylinderChange h Q Qr gap x) = _ at hr | |
| 1152 | - rw [hphase, hangular] at hn | |
| 1153 | - unfold bandPhase | |
| 1154 | - calc | |
| 1155 | - _ = referenceFrequency D j * liftPhase D j (cylinderChange h Q Qr gap x) := by | |
| 1156 | - field_simp [hfrequency n] | |
| 1157 | - _ = _ := hr.trans hn.symm | |
| 1158 | - | |
| 1159 | 562 | end |
| 1160 | 563 | end NavierStokes.PhysicalParticularWave |
+0 −54 NavierStokes/PhysicalResidualNaturality.lean View file
| @@ -1058,18 +1058,6 @@ theorem gr (hU : IsOpen U) (hl : l ≠ 0) : | ||
| 1058 | 1058 | simp only [neg_one_smul] at he |
| 1059 | 1059 | exact he |
| 1060 | 1060 | |
| 1061 | -theorem radialResidual (hU : IsOpen U) (hl : l ≠ 0) : | |
| 1062 | - ScalarOn U e (c*c*l) (s.radialResidual C n) (r.radialResidual Cr nr) := | |
| 1063 | - (G.frame.scalarDr hU H.pressure).sub (H.gr G hU hl) | |
| 1064 | - | |
| 1065 | -theorem reducedMeanResidual (hU : IsOpen U) (hl : l ≠ 0) (i : Fin 3) : | |
| 1066 | - ScalarOn U e (c*c*l) (fun x => s.reducedMeanResidual C n x i) | |
| 1067 | - (fun x => r.reducedMeanResidual Cr nr x i) := by | |
| 1068 | - fin_cases i | |
| 1069 | - · exact H.radialResidual G hU hl | |
| 1070 | - · exact H.thetaResidual G hU hl | |
| 1071 | - · exact H.axialResidual G hU hl | |
| 1072 | - | |
| 1073 | 1061 | theorem source (hU : IsOpen U) (hl : l ≠ 0) |
| 1074 | 1062 | {b : CorrectionState.HarmonicBlock D} {br : CorrectionState.HarmonicBlock E} |
| 1075 | 1063 | {ga al : HarmonicResidual.BlockCoefficients D} {gar alr : HarmonicResidual.BlockCoefficients E} |
| @@ -1080,48 +1068,6 @@ theorem source (hU : IsOpen U) (hl : l ≠ 0) | ||
| 1080 | 1068 | |
| 1081 | 1069 | end StateOn |
| 1082 | 1070 | |
| 1083 | -theorem angularAverage_on {U : Set D} {e : D ≃L[ℝ] E} {a : ℝ} | |
| 1084 | - {f : CorrectionState.OscillatoryScalar D} {g : CorrectionState.OscillatoryScalar E} {n nr : ℕ} | |
| 1085 | - (hf : ∀ x ∈ U, ∀ theta, f n (x,theta) = a * g nr (e x,theta)) : | |
| 1086 | - ScalarOn U e a (CorrectionState.angularAverage f n) (CorrectionState.angularAverage g nr) := by | |
| 1087 | - intro x hx | |
| 1088 | - unfold CorrectionState.angularAverage | |
| 1089 | - rw [show (fun theta => f n (x,theta)) = (fun theta => a*g nr (e x,theta)) from funext (hf x hx), | |
| 1090 | - intervalIntegral.integral_const_mul] | |
| 1091 | - ring | |
| 1092 | - | |
| 1093 | -theorem StateOn.meanBaseError {U : Set D} {e : D ≃L[ℝ] E} {c l : ℝ} | |
| 1094 | - {s : CorrectionState.State D} {r : CorrectionState.State E} {n nr : ℕ} | |
| 1095 | - (H : StateOn U e c l s r n nr) (i : Fin 3) : | |
| 1096 | - ScalarOn U e (c*c*l) (fun x => s.meanBaseError n x i) (fun x => r.meanBaseError nr x i) := | |
| 1097 | - angularAverage_on (fun x hx theta => H.baseError x hx theta i) | |
| 1098 | - | |
| 1099 | -theorem StateOn.meanExcluded {U : Set D} {e : D ≃L[ℝ] E} {c l : ℝ} | |
| 1100 | - {s : CorrectionState.State D} {r : CorrectionState.State E} {n nr : ℕ} | |
| 1101 | - (H : StateOn U e c l s r n nr) (i : Fin 3) : | |
| 1102 | - ScalarOn U e (c*c*l) (fun x => s.meanExcluded n x i) (fun x => r.meanExcluded nr x i) := by | |
| 1103 | - apply angularAverage_on | |
| 1104 | - intro x hx theta | |
| 1105 | - simp only [CorrectionState.ExcludedErrors.total, Pi.add_apply, | |
| 1106 | - H.baseError x hx theta i, H.gaussian x hx theta i, H.aliasError x hx theta i] | |
| 1107 | - ring | |
| 1108 | - | |
| 1109 | -theorem StateOn.meanResidual {U : Set D} {e : D ≃L[ℝ] E} {c l : ℝ} | |
| 1110 | - {C : CorrectionState.Context D} {Cr : CorrectionState.Context E} | |
| 1111 | - {s : CorrectionState.State D} {r : CorrectionState.State E} {n nr : ℕ} | |
| 1112 | - (H : StateOn U e c l s r n nr) (G : ContextOn U e c l C Cr n nr) | |
| 1113 | - (hU : IsOpen U) (hl : l ≠ 0) (i : Fin 3) : | |
| 1114 | - ScalarOn U e (c*c*l) (fun x => s.meanResidual C n x i) (fun x => r.meanResidual Cr nr x i) := | |
| 1115 | - (H.reducedMeanResidual G hU hl i).add (H.meanBaseError i) | |
| 1116 | - | |
| 1117 | -theorem StateOn.meanGoodResidual {U : Set D} {e : D ≃L[ℝ] E} {c l : ℝ} | |
| 1118 | - {C : CorrectionState.Context D} {Cr : CorrectionState.Context E} | |
| 1119 | - {s : CorrectionState.State D} {r : CorrectionState.State E} {n nr : ℕ} | |
| 1120 | - (H : StateOn U e c l s r n nr) (G : ContextOn U e c l C Cr n nr) | |
| 1121 | - (hU : IsOpen U) (hl : l ≠ 0) (i : Fin 3) : | |
| 1122 | - ScalarOn U e (c*c*l) (fun x => s.meanGoodResidual C n x i) (fun x => r.meanGoodResidual Cr nr x i) := | |
| 1123 | - (H.meanResidual G hU hl i).sub (H.meanExcluded i) | |
| 1124 | - | |
| 1125 | 1071 | /-! ## Literal reference views of one state -/ |
| 1126 | 1072 | |
| 1127 | 1073 | end NavierStokes.PhysicalResidualNaturality |
+0 −659 NavierStokes/PhysicalSignedWave.lean View file
| @@ -25,9 +25,6 @@ abbrev Vec2 := SmoothCovariance.Vec2 | ||
| 25 | 25 | abbrev Point := LocalSignedRequest.Point |
| 26 | 26 | abbrev Cylinder := PhysicalResidualBridge.Cylinder |
| 27 | 27 | |
| 28 | -noncomputable def fastTranslate (x : Cylinder) (k : TorusInverse.Frequency) : Cylinder := | |
| 29 | - ((x.1.1, (x.1.2.1, x.1.2.2 + TorusAverages.latticePoint k)), x.2) | |
| 30 | - | |
| 31 | 28 | section QuotientAlgebra |
| 32 | 29 | |
| 33 | 30 | theorem weights_smul_target (H : Mat2) (T : Vec2) (a : ℝ) : |
| @@ -115,26 +112,6 @@ theorem signed_scalar_scale (H : Mat2) (T R : Vec2) (mask : ℝ) | ||
| 115 | 112 | SignedCovariance.increment H T R j * mask := by ring |
| 116 | 113 | _ = _ := by rw [h]; ring |
| 117 | 114 | |
| 118 | -/-- With request twice the target, the literal signed quotient is exactly | |
| 119 | -the primary square root. This also holds at totalized zero denominators. -/ | |
| 120 | -theorem increment_twice_target (H : Mat2) (T : Vec2) (j : Fin 2) : | |
| 121 | - SignedCovariance.increment H T ((2 : ℝ) • T) j = SmoothCovariance.amplitudes H T j := by | |
| 122 | - by_cases hd : H.det = 0 | |
| 123 | - · have hi : H⁻¹ = 0 := Matrix.nonsing_inv_apply_not_isUnit H (by simp [hd]) | |
| 124 | - simp [SignedCovariance.increment, hi, SmoothCovariance.amplitudes, | |
| 125 | - SmoothCovariance.weights, hd] | |
| 126 | - · rw [SignedCovariance.increment, inverse_smul_target, | |
| 127 | - SmoothCovariance.inverse_formula H T hd] | |
| 128 | - simp only [Pi.smul_apply, smul_eq_mul, SmoothCovariance.amplitudes] | |
| 129 | - by_cases hw : 0 ≤ SmoothCovariance.weights H T j | |
| 130 | - · by_cases hz : SmoothCovariance.weights H T j = 0 | |
| 131 | - · simp [hz] | |
| 132 | - · have hp : 0 < SmoothCovariance.weights H T j := lt_of_le_of_ne hw (Ne.symm hz) | |
| 133 | - apply (div_eq_iff (mul_ne_zero (by norm_num) (Real.sqrt_pos.mpr hp).ne')).2 | |
| 134 | - nlinarith [Real.sq_sqrt hw] | |
| 135 | - · rw [Real.sqrt_eq_zero_of_nonpos (le_of_not_ge hw)] | |
| 136 | - simp | |
| 137 | - | |
| 138 | 115 | end QuotientAlgebra |
| 139 | 116 | |
| 140 | 117 | /-! ## A concrete periodic reference phase with native clock germs -/ |
| @@ -159,13 +136,6 @@ noncomputable def phase (K : ℝ) (x : Cylinder) : ℝ := | ||
| 159 | 136 | (C.angularMode / K) C.axialFrequency C.radialFrequency C.F C.G) |
| 160 | 137 | (C.angularMode / K) (PhysicalParticularWave.waveEquiv x) |
| 161 | 138 | |
| 162 | -theorem phase_periodic (K : ℝ) (x : Cylinder) (k : TorusInverse.Frequency) : | |
| 163 | - C.phase K (fastTranslate x k) = C.phase K x := by | |
| 164 | - exact PeriodicPhaseAssembly.fullPhase_periodic C.geometry C.window.cutoff | |
| 165 | - (PeriodicPhaseAssembly.profileIntercept C.epsilon C.axialFrequency C.radialFrequency) | |
| 166 | - (PeriodicPhaseAssembly.profileRate (C.angularMode / K) C.axialFrequency C.F C.G) | |
| 167 | - (C.angularMode / K) (x.1.1, (x.1.2.1.2, x.1.2.1.1)) x.2 x.1.2.2 k | |
| 168 | - | |
| 169 | 139 | theorem phase_smooth (K : ℝ) (hF : ContDiff ℝ ∞ C.F) (hG : ContDiff ℝ ∞ C.G) : |
| 170 | 140 | ContDiff ℝ ∞ (C.phase K) := by |
| 171 | 141 | apply (PeriodicPhaseAssembly.angularLift_contDiff ?_ _).comp |
| @@ -339,32 +309,6 @@ theorem fullRequest_of_state (s sr : StripData Point) (P : SignedStressPrimitive | ||
| 339 | 309 | rw [physical_request_factor hQ hQr (s.epsilon_pos n) (sr.epsilon_pos nr).le] at he |
| 340 | 310 | simpa only [requestChart_apply] using he |
| 341 | 311 | |
| 342 | -theorem stateRequest_of_state (s sr : StripData Cylinder) (P : SignedStressPrimitive.Patch) | |
| 343 | - {h Q Qr : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (hQ : 0 < Q) (hQr : 0 < Qr) | |
| 344 | - (c cr : CorrectionState.Context Point) (u ur : CorrectionState.State Point) | |
| 345 | - (n nr gap : ℕ) {W : Set Point} (hW : IsOpen W) | |
| 346 | - (H : PhysicalResidualNaturality.StateOn W (requestChart h hQ hQr gap) | |
| 347 | - (PhysicalParticularWave.velocityWeight h Q Qr) | |
| 348 | - (PhysicalParticularWave.ratioPower Q Qr (1 / 2)) u ur n nr) | |
| 349 | - (G : PhysicalResidualNaturality.ContextOn W (requestChart h hQ hQr gap) | |
| 350 | - (PhysicalParticularWave.velocityWeight h Q Qr) | |
| 351 | - (PhysicalParticularWave.ratioPower Q Qr (1 / 2)) c cr n nr) | |
| 352 | - (x : Cylinder) (ht : 0 < x.1.2.1.2) | |
| 353 | - (hfiber : ∀ r Y, (r, ((x.1.2.1.2, x.1.2.1.1), Y)) ∈ W) | |
| 354 | - {V : Set LocalSignedRequest.Plane} (hV : IsOpen V) | |
| 355 | - (htV : slowChange h Q Qr (x.1.2.1.2, x.1.2.1.1) ∈ V) | |
| 356 | - (hθ : ContDiffOn ℝ ∞ (ur.thetaResidual cr nr) (PhysicalMeanDomain.slowDomain V)) | |
| 357 | - (hz : ContDiffOn ℝ ∞ (ur.axialResidual cr nr) (PhysicalMeanDomain.slowDomain V)) | |
| 358 | - (hpθ : PhysicalMeanDomain.PeriodicOn V (ur.thetaResidual cr nr)) | |
| 359 | - (hpz : PhysicalMeanDomain.PeriodicOn V (ur.axialResidual cr nr)) : | |
| 360 | - stateRequest s P h c u n x = | |
| 361 | - coefficientScale (s.epsilon n) (sr.epsilon nr) | |
| 362 | - (PhysicalParticularWave.velocityWeight h Q Qr) ^ 2 • | |
| 363 | - stateRequest sr P h cr ur nr (PhysicalParticularWave.cylinderChange h Q Qr gap x) := by | |
| 364 | - have he := fullRequest_of_state (stateStrip s) (stateStrip sr) P hh hh1 hQ hQr c cr u ur n nr gap | |
| 365 | - hW H G (x.1.2.1.2, x.1.2.1.1) ht hfiber hV htV hθ hz hpθ hpz x.1.1 x.1.2.2 x.2 | |
| 366 | - exact he | |
| 367 | - | |
| 368 | 312 | section CoefficientTransport |
| 369 | 313 | |
| 370 | 314 | variable {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| @@ -477,102 +421,6 @@ noncomputable def viewCoefficients (s : StripData Cylinder) | ||
| 477 | 421 | (fun n x => (normal n * clock n) • B.normalMotion reference (view n x)) |
| 478 | 422 | (fun n x => clock n • B.action reference (view n x)) j |
| 479 | 423 | |
| 480 | -theorem view_carrier (background : LinearWaveBounds.WaveCoefficients Cylinder) | |
| 481 | - (frequency : ℕ → ℝ) (view : ℕ → Cylinder → Cylinder) (reference n : ℕ) | |
| 482 | - (hf : frequency n ≠ 0) (x : Cylinder) : | |
| 483 | - (B.viewBase background frequency view reference).frequency n * | |
| 484 | - (B.viewBase background frequency view reference).phase n x = | |
| 485 | - B.base.frequency reference * B.base.phase reference (view n x) := by | |
| 486 | - simp only [viewBase] | |
| 487 | - field_simp | |
| 488 | - | |
| 489 | -theorem view_signedVector (s : StripData Cylinder) (velocity : ℕ → ℝ) | |
| 490 | - (view : ℕ → Cylinder → Cylinder) (reference n : ℕ) | |
| 491 | - (request referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) (x : Cylinder) | |
| 492 | - (hc : 0 < velocity n) | |
| 493 | - (hrequest : request n x = coefficientScale (s.epsilon n) (B.strip.epsilon reference) | |
| 494 | - (velocity n) ^ 2 • referenceRequest reference (view n x)) : | |
| 495 | - SignedWaveUpdate.signedVector s (fun n x => B.matrix reference (view n x)) | |
| 496 | - (B.viewTarget s velocity view reference) request (fun n x => B.mask reference (view n x)) | |
| 497 | - (fun n x => B.fundamental j reference (view n x)) j n x = | |
| 498 | - velocity n • SignedWaveUpdate.signedVector B.strip B.matrix B.target referenceRequest | |
| 499 | - B.mask (B.fundamental j) j reference (view n x) := | |
| 500 | - signedVector_transport s B.strip _ _ _ _ _ _ _ _ _ _ n reference x (view n x) hc | |
| 501 | - rfl rfl hrequest rfl rfl j | |
| 502 | - | |
| 503 | -theorem view_amplitude (s : StripData Cylinder) (d : LinearWaveBounds.GraphDirections Cylinder) | |
| 504 | - (background : LinearWaveBounds.WaveCoefficients Cylinder) | |
| 505 | - (frequency velocity clock normal : ℕ → ℝ) (view : ℕ → Cylinder → Cylinder) | |
| 506 | - (reference n : ℕ) (request referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) | |
| 507 | - (x : Cylinder) (hc : 0 < velocity n) | |
| 508 | - (hrequest : request n x = coefficientScale (s.epsilon n) (B.strip.epsilon reference) | |
| 509 | - (velocity n) ^ 2 • referenceRequest reference (view n x)) : | |
| 510 | - (B.viewCoefficients s d background frequency velocity clock normal view reference request j).amplitude n x = | |
| 511 | - velocity n • (B.coefficients referenceRequest j).amplitude reference (view n x) := by | |
| 512 | - change CurlClassBounds.complexify _ = velocity n • CurlClassBounds.complexify _ | |
| 513 | - rw [B.view_signedVector s velocity view reference n request referenceRequest j x hc hrequest, | |
| 514 | - map_smul] | |
| 515 | - | |
| 516 | -theorem view_cutoff_amplitude (s : StripData Cylinder) (d : LinearWaveBounds.GraphDirections Cylinder) | |
| 517 | - (background : LinearWaveBounds.WaveCoefficients Cylinder) | |
| 518 | - (frequency velocity clock normal : ℕ → ℝ) (view : ℕ → Cylinder → Cylinder) | |
| 519 | - (reference n : ℕ) (request referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) | |
| 520 | - (x : Cylinder) (hc : 0 < velocity n) | |
| 521 | - (hrequest : request n x = coefficientScale (s.epsilon n) (B.strip.epsilon reference) | |
| 522 | - (velocity n) ^ 2 • referenceRequest reference (view n x)) : | |
| 523 | - ((B.viewCoefficients s d background frequency velocity clock normal view reference request j).withCutoff | |
| 524 | - (B.viewCutoff view reference)).amplitude n x = | |
| 525 | - velocity n • ((B.coefficients referenceRequest j).withCutoff B.cutoff).amplitude | |
| 526 | - reference (view n x) := by | |
| 527 | - simp only [LinearWaveBounds.WaveCoefficients.withCutoff, viewCutoff] | |
| 528 | - rw [B.view_amplitude s d background frequency velocity clock normal view reference n | |
| 529 | - request referenceRequest j x hc hrequest] | |
| 530 | - exact smul_comm _ _ _ | |
| 531 | - | |
| 532 | -theorem view_pressure (s : StripData Cylinder) (d : LinearWaveBounds.GraphDirections Cylinder) | |
| 533 | - (background : LinearWaveBounds.WaveCoefficients Cylinder) | |
| 534 | - (frequency velocity clock normal : ℕ → ℝ) (view : ℕ → Cylinder → Cylinder) | |
| 535 | - (reference n : ℕ) (request referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) | |
| 536 | - (x : Cylinder) (hc : 0 < velocity n) (hK : frequency n ≠ 0) | |
| 537 | - (hKr : B.base.frequency reference ≠ 0) (hs : normal n ≠ 0) | |
| 538 | - (hrequest : request n x = coefficientScale (s.epsilon n) (B.strip.epsilon reference) | |
| 539 | - (velocity n) ^ 2 • referenceRequest reference (view n x)) | |
| 540 | - (hN : (B.viewBase background frequency view reference).normal s d n x = | |
| 541 | - normal n • B.base.normal B.strip B.directions reference (view n x)) : | |
| 542 | - (B.viewCoefficients s d background frequency velocity clock normal view reference request j).pressure n x = | |
| 543 | - ((clock n * velocity n / normal n) * (B.base.frequency reference / frequency n)) • | |
| 544 | - (B.coefficients referenceRequest j).pressure reference (view n x) := by | |
| 545 | - have hv := B.view_signedVector s velocity view reference n request referenceRequest j x hc hrequest | |
| 546 | - change Complex.I * (TangentProjection.pressureCoefficient | |
| 547 | - ((B.viewBase background frequency view reference).normal s d n x) | |
| 548 | - ((normal n * clock n) • B.normalMotion reference (view n x)) | |
| 549 | - _ ((clock n • B.action reference (view n x)) _) 0 : ℂ) / (frequency n : ℂ) = _ | |
| 550 | - rw [hN, hv] | |
| 551 | - simp only [_root_.smul_apply, map_smul, smul_smul] | |
| 552 | - rw [mul_comm (velocity n) (clock n)] | |
| 553 | - exact homogeneousPressure_scale (frequency n) (B.base.frequency reference) (clock n) | |
| 554 | - (velocity n) (normal n) hK hKr hs _ _ _ _ | |
| 555 | - | |
| 556 | -theorem view_cutoff_pressure (s : StripData Cylinder) (d : LinearWaveBounds.GraphDirections Cylinder) | |
| 557 | - (background : LinearWaveBounds.WaveCoefficients Cylinder) | |
| 558 | - (frequency velocity clock normal : ℕ → ℝ) (view : ℕ → Cylinder → Cylinder) | |
| 559 | - (reference n : ℕ) (request referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) | |
| 560 | - (x : Cylinder) (hc : 0 < velocity n) (hK : frequency n ≠ 0) | |
| 561 | - (hKr : B.base.frequency reference ≠ 0) (hs : normal n ≠ 0) | |
| 562 | - (hrequest : request n x = coefficientScale (s.epsilon n) (B.strip.epsilon reference) | |
| 563 | - (velocity n) ^ 2 • referenceRequest reference (view n x)) | |
| 564 | - (hN : (B.viewBase background frequency view reference).normal s d n x = | |
| 565 | - normal n • B.base.normal B.strip B.directions reference (view n x)) : | |
| 566 | - ((B.viewCoefficients s d background frequency velocity clock normal view reference request j).withCutoff | |
| 567 | - (B.viewCutoff view reference)).pressure n x = | |
| 568 | - ((clock n * velocity n / normal n) * (B.base.frequency reference / frequency n)) • | |
| 569 | - ((B.coefficients referenceRequest j).withCutoff B.cutoff).pressure reference (view n x) := by | |
| 570 | - simp only [LinearWaveBounds.WaveCoefficients.withCutoff, viewCutoff] | |
| 571 | - rw [B.view_pressure s d background frequency velocity clock normal view reference n | |
| 572 | - request referenceRequest j x hc hK hKr hs hrequest hN] | |
| 573 | - simp only [Complex.real_smul] | |
| 574 | - ring | |
| 575 | - | |
| 576 | 424 | /-- Regularity on one reference native cell. Every entry concerns the |
| 577 | 425 | original coordinate, target, current request, mask or phase/frame input; |
| 578 | 426 | there is no regularity assumption on a solved wave. -/ |
| @@ -600,66 +448,6 @@ variable {B} {request : ℕ → Cylinder → Vec2} {reference : ℕ} {column : F | ||
| 600 | 448 | |
| 601 | 449 | include H |
| 602 | 450 | |
| 603 | -theorem matrix_smooth (i j : Fin 2) : | |
| 604 | - ContDiffOn ℝ ∞ (fun x => B.matrix reference x i j) B.strip.domain := by | |
| 605 | - have hm := PrimaryPulseBounds.primaryCovariance_entry_polynomial U B.prefactor | |
| 606 | - (fun j => (B.pulse j).frame) (fun j => (B.pulse j).lam) (fun j => (B.pulse j).u) | |
| 607 | - (fun j => (B.pulse j).L) H.prefactor (fun j => (B.pulse j).pulse_jets) | |
| 608 | - (fun j => (B.pulse j).lam_pos) (fun j => (B.pulse j).u_pos) (fun j => (B.pulse j).L_pos) i j | |
| 609 | - exact (hm.smooth reference).comp H.coordinate.fst (fun x hx => (H.coordinate_mem x hx).1) | |
| 610 | - | |
| 611 | -theorem fundamental_smooth (j : Fin 2) : | |
| 612 | - ContDiffOn ℝ ∞ (B.fundamental j reference) B.strip.domain := | |
| 613 | - ((B.pulse j).pulse_jets.smooth reference).comp H.coordinate H.coordinate_mem | |
| 614 | - | |
| 615 | -theorem cutoff_smooth : ContDiffOn ℝ ∞ (B.cutoff reference) B.strip.domain := | |
| 616 | - GaussianTailFlat.profile_contDiff.comp_contDiffOn H.coordinate.snd | |
| 617 | - | |
| 618 | -theorem signedScalar_smooth (j : Fin 2) : | |
| 619 | - ContDiffOn ℝ ∞ (SignedWaveUpdate.signedScalar B.strip B.matrix B.target request B.mask j reference) | |
| 620 | - B.strip.domain := by | |
| 621 | - have hi := SmoothCovariance.contDiffOn_inverse_solution H.matrix_smooth H.request | |
| 622 | - (fun x hx => (H.cone x hx).det_ne_zero) j | |
| 623 | - have ha := SmoothCovariance.contDiffOn_amplitudes H.matrix_smooth H.target H.cone j | |
| 624 | - have hd : ∀ x ∈ B.strip.domain, 2 * SmoothCovariance.amplitudes | |
| 625 | - (B.matrix reference x) (B.target reference x) j ≠ 0 := by | |
| 626 | - intro x hx | |
| 627 | - exact mul_ne_zero (by norm_num) ((H.cone x hx).amplitudes_pos j).ne' | |
| 628 | - exact (contDiffOn_const.mul (hi.div (contDiffOn_const.mul ha) hd)).mul H.mask | |
| 629 | - | |
| 630 | -theorem amplitude_smooth (j : Fin 2) : | |
| 631 | - ContDiffOn ℝ ∞ ((B.coefficients request j).amplitude reference) B.strip.domain := | |
| 632 | - CurlClassBounds.complexify.contDiff.comp_contDiffOn | |
| 633 | - ((H.signedScalar_smooth j).smul (H.fundamental_smooth j)) | |
| 634 | - | |
| 635 | -theorem cutoff_amplitude_smooth (j : Fin 2) : | |
| 636 | - ContDiffOn ℝ ∞ (((B.coefficients request j).withCutoff B.cutoff).amplitude reference) B.strip.domain := | |
| 637 | - H.cutoff_smooth.smul (H.amplitude_smooth j) | |
| 638 | - | |
| 639 | -theorem fundamental_tangent {x : Cylinder} (hx : x ∈ B.strip.domain) : | |
| 640 | - ⟪B.base.normal B.strip B.directions reference x, B.fundamental column reference x⟫_ℝ = 0 := by | |
| 641 | - rw [H.normal_frame x hx] | |
| 642 | - exact ((B.pulse column).frame reference).ambient_tangent _ _ | |
| 643 | - | |
| 644 | -theorem amplitude_tangent {x : Cylinder} (hx : x ∈ B.strip.domain) : | |
| 645 | - normalDot (B.base.normal B.strip B.directions reference x) | |
| 646 | - ((B.coefficients request column).amplitude reference x) = 0 := by | |
| 647 | - change normalDot _ (CurlClassBounds.complexify (_ • B.fundamental column reference x)) = 0 | |
| 648 | - rw [SignedWaveUpdate.normalDot_complexify, inner_smul_right, H.fundamental_tangent hx, mul_zero] | |
| 649 | - rfl | |
| 650 | - | |
| 651 | -theorem cutoff_amplitude_tangent {x : Cylinder} (hx : x ∈ B.strip.domain) : | |
| 652 | - normalDot (B.base.normal B.strip B.directions reference x) | |
| 653 | - (((B.coefficients request column).withCutoff B.cutoff).amplitude reference x) = 0 := by | |
| 654 | - change normalDot _ (B.cutoff reference x • (B.coefficients request column).amplitude reference x) = 0 | |
| 655 | - have he : normalDot (B.base.normal B.strip B.directions reference x) | |
| 656 | - (B.cutoff reference x • (B.coefficients request column).amplitude reference x) = | |
| 657 | - (B.cutoff reference x : ℂ) * normalDot (B.base.normal B.strip B.directions reference x) | |
| 658 | - ((B.coefficients request column).amplitude reference x) := by | |
| 659 | - simp only [normalDot, Pi.smul_apply, Complex.real_smul] | |
| 660 | - ring | |
| 661 | - rw [he, H.amplitude_tangent hx, mul_zero] | |
| 662 | - | |
| 663 | 451 | end Regular |
| 664 | 452 | |
| 665 | 453 | /-- Angular conditions concern the original phase, coordinate and scalar |
| @@ -681,16 +469,6 @@ noncomputable def raw (request : ℕ → Cylinder → Vec2) (j : Fin 2) (referen | ||
| 681 | 469 | noncomputable def rawPressure (request : ℕ → Cylinder → Vec2) (j : Fin 2) (reference : ℕ) : |
| 682 | 470 | Cylinder → ℂ := ((B.coefficients request j).withCutoff B.cutoff).pressure reference |
| 683 | 471 | |
| 684 | -theorem raw_invariant {request : ℕ → Cylinder → Vec2} {reference : ℕ} | |
| 685 | - (H : B.Angular request reference) (j : Fin 2) : | |
| 686 | - CopyAngularInvariance.Invariant (0, 1) (B.raw request j reference) := by | |
| 687 | - intro x t | |
| 688 | - simp only [raw, coefficients, SignedWaveUpdate.coefficients, SignedWaveUpdate.homogeneousCoefficients, | |
| 689 | - LinearWaveBounds.WaveCoefficients.withCutoff, cutoff, SignedWaveUpdate.signedVector, | |
| 690 | - SignedWaveUpdate.signedScalar, matrix, SignedWaveUpdate.phaseMatrix, PrimaryPulseBounds.chartCovariance, | |
| 691 | - fundamental, SignedWaveUpdate.phaseFundamental, | |
| 692 | - H.coordinate x t, H.target x t, H.request x t, H.mask x t] | |
| 693 | - | |
| 694 | 472 | end PrimaryData |
| 695 | 473 | |
| 696 | 474 | /-- Literal background chart operators, before any wave is formed. -/ |
| @@ -711,21 +489,6 @@ theorem ChartGeometry.normal {a : LinearWaveBounds.WaveCoefficients Cylinder} | ||
| 711 | 489 | unfold LinearWaveBounds.WaveCoefficients.normal |
| 712 | 490 | rw [G.radius, G.radial, G.angular, G.axial] |
| 713 | 491 | |
| 714 | -theorem ChartGeometry.corrected_wave {a : LinearWaveBounds.WaveCoefficients Cylinder} | |
| 715 | - {s : StripData Cylinder} {d : LinearWaveBounds.GraphDirections Cylinder} | |
| 716 | - {n cover : ℕ} {h Q : ℝ} (G : ChartGeometry a s d n h Q cover) | |
| 717 | - (cutoff : ℕ → Cylinder → ℝ) : | |
| 718 | - vectorMode (a.frequency n) (a.phase n) ((a.corrected s d cutoff).amplitude n) = | |
| 719 | - vectorMode (a.frequency n) (a.phase n) | |
| 720 | - (CurlClassBounds.realizedCoefficient (a.frequency n) PhysicalResidualBridge.ScaledGraph.radius | |
| 721 | - (PhysicalResidualBridge.commonGraph Q h cover).radial PhysicalResidualBridge.ScaledGraph.angular | |
| 722 | - (PhysicalResidualBridge.commonGraph Q h cover).axial (a.phase n) | |
| 723 | - ((a.withCutoff cutoff).amplitude n)) := by | |
| 724 | - change vectorMode (a.frequency n) (a.phase n) | |
| 725 | - (CurlClassBounds.realizedCoefficient (a.frequency n) (a.radius n) (d.radialField n) | |
| 726 | - (fun _ => d.angular) (d.axialField s n) (a.phase n) ((a.withCutoff cutoff).amplitude n)) = _ | |
| 727 | - rw [G.radius, G.radial, G.angular, G.axial] | |
| 728 | - | |
| 729 | 492 | theorem ChartGeometry.normal_invariant {a : LinearWaveBounds.WaveCoefficients Cylinder} |
| 730 | 493 | {s : StripData Cylinder} {d : LinearWaveBounds.GraphDirections Cylinder} |
| 731 | 494 | {n cover : ℕ} {h Q slope : ℝ} (G : ChartGeometry a s d n h Q cover) |
| @@ -744,20 +507,6 @@ namespace PrimaryData | ||
| 744 | 507 | |
| 745 | 508 | variable {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} (B : PrimaryData U) (reference : ℕ) |
| 746 | 509 | |
| 747 | -theorem rawPressure_invariant {request : ℕ → Cylinder → Vec2} | |
| 748 | - (H : B.Angular request reference) {h Q : ℝ} {cover : ℕ} | |
| 749 | - (G : ChartGeometry B.base B.strip B.directions reference h Q cover) (j : Fin 2) : | |
| 750 | - CopyAngularInvariance.Invariant (0, 1) (B.rawPressure request j reference) := by | |
| 751 | - have hn := G.normal_invariant H.phase | |
| 752 | - intro x t | |
| 753 | - simp only [rawPressure, coefficients, SignedWaveUpdate.coefficients, | |
| 754 | - SignedWaveUpdate.homogeneousCoefficients, LinearWaveBounds.WaveCoefficients.withCutoff, | |
| 755 | - cutoff, ParticularWaveBounds.projectedPressure, SignedWaveUpdate.signedVector, | |
| 756 | - SignedWaveUpdate.signedScalar, matrix, SignedWaveUpdate.phaseMatrix, | |
| 757 | - PrimaryPulseBounds.chartCovariance, fundamental, SignedWaveUpdate.phaseFundamental, | |
| 758 | - H.coordinate x t, H.target x t, H.request x t, H.mask x t, H.normalMotion x t, | |
| 759 | - H.action x t, hn x t] | |
| 760 | - | |
| 761 | 510 | /-- One physical reference scale and cover for this primary column. Band |
| 762 | 511 | backgrounds are primitive data; frequency, phase, target, pulse, cutoff, |
| 763 | 512 | normal motion and action of each view are constructed below. -/ |
| @@ -800,140 +549,6 @@ noncomputable def coefficients (request : ℕ → Cylinder → Vec2) (j : Fin 2) | ||
| 800 | 549 | |
| 801 | 550 | noncomputable def cutoff : ℕ → Cylinder → ℝ := B.viewCutoff (fun n => V.map n) reference |
| 802 | 551 | |
| 803 | -noncomputable def exactCoefficients (request : ℕ → Cylinder → Vec2) (j : Fin 2) : | |
| 804 | - LinearWaveBounds.WaveCoefficients Cylinder := | |
| 805 | - (V.coefficients request j).corrected V.strip V.directions V.cutoff | |
| 806 | - | |
| 807 | -theorem map_graph (n : ℕ) {z : SpaceTime} (hz : 0 < z.2 0) : | |
| 808 | - V.map n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) = | |
| 809 | - (PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z := by | |
| 810 | - have he := PhysicalParticularWave.cylinderChange_graph (V.scale_pos n) V.referenceScale_pos | |
| 811 | - V.exponent (V.cover n) (V.referenceCover - V.cover n) hz | |
| 812 | - simp only [Nat.add_sub_of_le (V.cover_le n)] at he | |
| 813 | - exact he | |
| 814 | - | |
| 815 | -theorem map_fastTranslate (n : ℕ) (x : Cylinder) (k : TorusInverse.Frequency) : | |
| 816 | - V.map n (fastTranslate x k) = | |
| 817 | - fastTranslate (V.map n x) (CommonCoverSolve.coverIndex (V.referenceCover - V.cover n) k) := by | |
| 818 | - simp only [map, fastTranslate, PhysicalParticularWave.cylinderChange_apply, | |
| 819 | - PhysicalParticularWave.chartChange_apply, map_add, CommonCoverSolve.coverPower_lattice] | |
| 820 | - | |
| 821 | -theorem phase_periodic (request : ℕ → Cylinder → Vec2) (j : Fin 2) | |
| 822 | - (hp : ∀ x k, B.base.phase reference (fastTranslate x k) = B.base.phase reference x) | |
| 823 | - (n : ℕ) (x : Cylinder) (k : TorusInverse.Frequency) : | |
| 824 | - (V.coefficients request j).phase n (fastTranslate x k) = (V.coefficients request j).phase n x := by | |
| 825 | - change (B.base.frequency reference / V.frequency n) * B.base.phase reference (V.map n (fastTranslate x k)) = | |
| 826 | - (B.base.frequency reference / V.frequency n) * B.base.phase reference (V.map n x) | |
| 827 | - rw [V.map_fastTranslate, hp] | |
| 828 | - | |
| 829 | -theorem normal_transport | |
| 830 | - (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) | |
| 831 | - (n : ℕ) | |
| 832 | - (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) | |
| 833 | - V.strip V.directions n V.exponent (V.scale n) (V.cover n)) | |
| 834 | - {x : Cylinder} (hx : 0 < x.1.1) | |
| 835 | - (hΦ : DifferentiableAt ℝ (B.base.phase reference) (V.map n x)) : | |
| 836 | - (B.viewBase V.background V.frequency (fun n => V.map n) reference).normal V.strip V.directions n x = | |
| 837 | - V.normal n • B.base.normal B.strip B.directions reference (V.map n x) := by | |
| 838 | - rw [G.normal, H.normal] | |
| 839 | - have he := PhysicalParticularWave.phaseNormal_chartChange (V.scale_pos n) V.referenceScale_pos | |
| 840 | - V.exponent (V.cover n) (V.referenceCover - V.cover n) (V.frequency n) (B.base.frequency reference) hx hΦ | |
| 841 | - simp only [Nat.add_sub_of_le (V.cover_le n)] at he | |
| 842 | - exact he | |
| 843 | - | |
| 844 | -theorem amplitude_transport (request referenceRequest : ℕ → Cylinder → Vec2) | |
| 845 | - (j : Fin 2) (n : ℕ) (x : Cylinder) | |
| 846 | - (hrequest : request n x = coefficientScale (V.strip.epsilon n) (B.strip.epsilon reference) | |
| 847 | - (V.velocity n) ^ 2 • referenceRequest reference (V.map n x)) : | |
| 848 | - ((V.coefficients request j).withCutoff V.cutoff).amplitude n x = | |
| 849 | - V.velocity n • ((B.coefficients referenceRequest j).withCutoff B.cutoff).amplitude reference (V.map n x) := | |
| 850 | - B.view_cutoff_amplitude V.strip V.directions V.background V.frequency V.velocity V.clock V.normal | |
| 851 | - (fun n => V.map n) reference n request referenceRequest j x | |
| 852 | - (PhysicalParticularWave.ratioPower_pos (V.scale_pos n) V.referenceScale_pos _) hrequest | |
| 853 | - | |
| 854 | -theorem pressure_transport (request referenceRequest : ℕ → Cylinder → Vec2) | |
| 855 | - (j : Fin 2) (n : ℕ) {x : Cylinder} (hx : 0 < x.1.1) | |
| 856 | - (hKr : B.base.frequency reference ≠ 0) | |
| 857 | - (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) | |
| 858 | - (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) | |
| 859 | - V.strip V.directions n V.exponent (V.scale n) (V.cover n)) | |
| 860 | - (hΦ : DifferentiableAt ℝ (B.base.phase reference) (V.map n x)) | |
| 861 | - (hrequest : request n x = coefficientScale (V.strip.epsilon n) (B.strip.epsilon reference) | |
| 862 | - (V.velocity n) ^ 2 • referenceRequest reference (V.map n x)) : | |
| 863 | - ((V.coefficients request j).withCutoff V.cutoff).pressure n x = | |
| 864 | - PhysicalParticularWave.pressureWeight V.exponent (V.scale n) V.referenceScale • | |
| 865 | - ((B.coefficients referenceRequest j).withCutoff B.cutoff).pressure reference (V.map n x) := by | |
| 866 | - have he := B.view_cutoff_pressure V.strip V.directions V.background V.frequency V.velocity V.clock V.normal | |
| 867 | - (fun n => V.map n) reference n request referenceRequest j x | |
| 868 | - (PhysicalParticularWave.ratioPower_pos (V.scale_pos n) V.referenceScale_pos _) (V.frequency_ne n) hKr | |
| 869 | - (PhysicalParticularWave.normalWeight_ne (V.scale_pos n) V.referenceScale_pos (V.frequency_ne n) hKr) | |
| 870 | - hrequest (V.normal_transport G n H hx hΦ) | |
| 871 | - rw [show V.clock n * V.velocity n / V.normal n * (B.base.frequency reference / V.frequency n) = | |
| 872 | - PhysicalParticularWave.pressureWeight V.exponent (V.scale n) V.referenceScale from | |
| 873 | - PhysicalParticularWave.pressure_scaling (V.scale_pos n) V.referenceScale_pos (V.frequency_ne n) hKr V.exponent] at he | |
| 874 | - exact he | |
| 875 | - | |
| 876 | -noncomputable def physicalPhase : SpaceTime → ℝ := | |
| 877 | - fun z => B.base.phase reference | |
| 878 | - ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z) | |
| 879 | - | |
| 880 | -noncomputable def physicalRaw (referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) : | |
| 881 | - SpaceTime → ComplexVector := | |
| 882 | - fun z => V.referenceScale ^ (-CoordinateAlgebra.A V.exponent) • B.raw referenceRequest j reference | |
| 883 | - ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z) | |
| 884 | - | |
| 885 | -noncomputable def referencePotential (referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) : | |
| 886 | - SpaceTime → ComplexVector := | |
| 887 | - PhysicalCurlCovariance.referencePotential (B.base.frequency reference) V.physicalPhase | |
| 888 | - (V.physicalRaw referenceRequest j) | |
| 889 | - | |
| 890 | -/-- One Cartesian potential is chosen from the reference band and cover, | |
| 891 | -and each actual band wave will be identified with its curl. -/ | |
| 892 | -noncomputable def physicalPotential (referenceRequest : ℕ → Cylinder → Vec2) | |
| 893 | - (j : Fin 2) (delta : ℝ) : VelocityField := | |
| 894 | - PhysicalCurlCovariance.globalCartesianPotential delta (V.referencePotential referenceRequest j) | |
| 895 | - | |
| 896 | -noncomputable def physicalVelocity (referenceRequest : ℕ → Cylinder → Vec2) | |
| 897 | - (j : Fin 2) (delta : ℝ) : VelocityField := | |
| 898 | - SpatialCurl.spatialCurl (V.physicalPotential referenceRequest j delta) | |
| 899 | - | |
| 900 | -theorem physicalGraph_add_angle (z : SpaceTime) (t : ℝ) : | |
| 901 | - (PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map | |
| 902 | - (z + t • ((0 : ℝ), coordinateVector 1)) = | |
| 903 | - (PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z + | |
| 904 | - t • ((0 : PhysicalResidualBridge.Lift), (1 : ℝ)) := by | |
| 905 | - ext <;> simp [PhysicalResidualBridge.ScaledGraph.map, coordinateVector, smul_eq_mul] | |
| 906 | - | |
| 907 | -theorem referencePotential_periodic {referenceRequest : ℕ → Cylinder → Vec2} | |
| 908 | - (H : B.Angular referenceRequest reference) (hK : B.base.frequency reference ≠ 0) | |
| 909 | - (j : Fin 2) (t r z : ℝ) : | |
| 910 | - Function.Periodic (fun angle => V.referencePotential referenceRequest j | |
| 911 | - (t, AxisymmetricResidual.pack r angle z)) (2 * Real.pi) := by | |
| 912 | - have hphi : CopyAngularInvariance.AffinePhase ((0 : ℝ), coordinateVector 1) | |
| 913 | - (H.mode / B.base.frequency reference) V.physicalPhase := by | |
| 914 | - intro x a | |
| 915 | - unfold physicalPhase | |
| 916 | - rw [V.physicalGraph_add_angle] | |
| 917 | - exact H.phase _ a | |
| 918 | - have ha : CopyAngularInvariance.Invariant ((0 : ℝ), coordinateVector 1) | |
| 919 | - (V.physicalRaw referenceRequest j) := by | |
| 920 | - intro x a | |
| 921 | - unfold physicalRaw | |
| 922 | - rw [V.physicalGraph_add_angle, B.raw_invariant H j _ a] | |
| 923 | - have hR : CopyAngularInvariance.Invariant ((0 : ℝ), coordinateVector 1) | |
| 924 | - LinearWaveResidual.coordinateRadius := by | |
| 925 | - intro x a | |
| 926 | - simp [LinearWaveResidual.coordinateRadius, coordinateVector] | |
| 927 | - have hf : B.base.frequency reference * (H.mode / B.base.frequency reference) = (H.mode : ℝ) := by | |
| 928 | - field_simp | |
| 929 | - intro angle | |
| 930 | - have he := PhysicalCurlCovariance.vectorPotential_fullTurn (Vr := LinearWaveResidual.spaceDirection 0) | |
| 931 | - (Vθ := LinearWaveResidual.spaceDirection 1) (Vz := LinearWaveResidual.spaceDirection 2) | |
| 932 | - H.mode hR (CopyAngularInvariance.Invariant.const _) (CopyAngularInvariance.Invariant.const _) | |
| 933 | - (CopyAngularInvariance.Invariant.const _) hphi ha hf (t, AxisymmetricResidual.pack r angle z) | |
| 934 | - simpa only [referencePotential, PhysicalCurlCovariance.referencePotential, | |
| 935 | - PhysicalParticularWave.angle_translate_pack] using he | |
| 936 | - | |
| 937 | 552 | noncomputable def wave (request : ℕ → Cylinder → Vec2) (j : Fin 2) (n : ℕ) : |
| 938 | 553 | Cylinder → ComplexVector := |
| 939 | 554 | vectorMode (V.frequency n) ((V.coefficients request j).phase n) |
| @@ -943,225 +558,8 @@ noncomputable def wave (request : ℕ → Cylinder → Vec2) (j : Fin 2) (n : | ||
| 943 | 558 | (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).axial |
| 944 | 559 | ((V.coefficients request j).phase n) (((V.coefficients request j).withCutoff V.cutoff).amplitude n)) |
| 945 | 560 | |
| 946 | -theorem wave_eq_exact (request : ℕ → Cylinder → Vec2) (j : Fin 2) (n : ℕ) | |
| 947 | - (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) | |
| 948 | - V.strip V.directions n V.exponent (V.scale n) (V.cover n)) : | |
| 949 | - V.wave request j n = vectorMode ((V.exactCoefficients request j).frequency n) | |
| 950 | - ((V.exactCoefficients request j).phase n) ((V.exactCoefficients request j).amplitude n) := by | |
| 951 | - have H' : ChartGeometry (V.coefficients request j) V.strip V.directions n V.exponent | |
| 952 | - (V.scale n) (V.cover n) := ⟨H.radius, H.radial, H.angular, H.axial⟩ | |
| 953 | - exact (H'.corrected_wave V.cutoff).symm | |
| 954 | - | |
| 955 | -/-- The output is one literal Cartesian curl. All phase and amplitude | |
| 956 | -identities used by the curl theorem are derived from the constructors. -/ | |
| 957 | -theorem wave_physical (request referenceRequest : ℕ → Cylinder → Vec2) | |
| 958 | - (j : Fin 2) (n : ℕ) (R : B.Regular referenceRequest reference j) | |
| 959 | - (A : B.Angular referenceRequest reference) (hK : B.base.frequency reference ≠ 0) | |
| 960 | - (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) | |
| 961 | - (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) | |
| 962 | - V.strip V.directions n V.exponent (V.scale n) (V.cover n)) | |
| 963 | - (hmap : MapsTo (V.map n) V.strip.domain B.strip.domain) | |
| 964 | - (hradius : ∀ x ∈ V.strip.domain, 0 < x.1.1) | |
| 965 | - (hrequest : ∀ x ∈ V.strip.domain, request n x = | |
| 966 | - coefficientScale (V.strip.epsilon n) (B.strip.epsilon reference) (V.velocity n) ^ 2 • | |
| 967 | - referenceRequest reference (V.map n x)) | |
| 968 | - {z : SpaceTime} | |
| 969 | - (hz : z ∈ (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).source V.strip.domain) | |
| 970 | - {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) | |
| 971 | - (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) (component : Fin 3) : | |
| 972 | - (V.wave request j n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) component).re = | |
| 973 | - V.scale n ^ CoordinateAlgebra.A V.exponent * CylindricalResidual.frame (-(z.2 1)) | |
| 974 | - (V.physicalVelocity referenceRequest j delta (z.1, CylindricalResidual.chart z.2)) component := by | |
| 975 | - have hphi : ContDiffOn ℝ ∞ ((V.coefficients request j).phase n) V.strip.domain := | |
| 976 | - contDiffOn_const.mul (R.phase.comp (V.map n).contDiff.contDiffOn hmap) | |
| 977 | - have ha : ContDiffOn ℝ ∞ (((V.coefficients request j).withCutoff V.cutoff).amplitude n) | |
| 978 | - V.strip.domain := by | |
| 979 | - apply (((R.cutoff_amplitude_smooth j).comp (V.map n).contDiff.contDiffOn hmap).const_smul | |
| 980 | - (V.velocity n)).congr | |
| 981 | - intro x hx | |
| 982 | - exact V.amplitude_transport request referenceRequest j n x (hrequest x hx) | |
| 983 | - have hnrel (x : Cylinder) (hx : x ∈ V.strip.domain) : | |
| 984 | - phaseNormal PhysicalResidualBridge.ScaledGraph.radius | |
| 985 | - (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).radial | |
| 986 | - PhysicalResidualBridge.ScaledGraph.angular | |
| 987 | - (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).axial | |
| 988 | - ((V.coefficients request j).phase n) x = | |
| 989 | - V.normal n • B.base.normal B.strip B.directions reference (V.map n x) := by | |
| 990 | - exact (congrFun H.normal x).symm.trans (V.normal_transport G n H (hradius x hx) | |
| 991 | - ((R.phase.contDiffAt (B.strip.isOpen_domain.mem_nhds (hmap hx))).differentiableAt (by simp))) | |
| 992 | - have hn (x : Cylinder) (hx : x ∈ V.strip.domain) : | |
| 993 | - phaseNormal PhysicalResidualBridge.ScaledGraph.radius | |
| 994 | - (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).radial | |
| 995 | - PhysicalResidualBridge.ScaledGraph.angular | |
| 996 | - (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).axial | |
| 997 | - ((V.coefficients request j).phase n) x ≠ 0 := by | |
| 998 | - rw [hnrel x hx] | |
| 999 | - exact smul_ne_zero (PhysicalParticularWave.normalWeight_ne (V.scale_pos n) V.referenceScale_pos | |
| 1000 | - (V.frequency_ne n) hK) (R.normal_ne _ (hmap hx)) | |
| 1001 | - have ht (x : Cylinder) (hx : x ∈ V.strip.domain) : | |
| 1002 | - normalDot (phaseNormal PhysicalResidualBridge.ScaledGraph.radius | |
| 1003 | - (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).radial | |
| 1004 | - PhysicalResidualBridge.ScaledGraph.angular | |
| 1005 | - (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).axial | |
| 1006 | - ((V.coefficients request j).phase n) x) | |
| 1007 | - (((V.coefficients request j).withCutoff V.cutoff).amplitude n x) = 0 := by | |
| 1008 | - rw [hnrel x hx, V.amplitude_transport request referenceRequest j n x (hrequest x hx), | |
| 1009 | - PhysicalParticularWave.normalDot_scaled, R.cutoff_amplitude_tangent (hmap hx), mul_zero] | |
| 1010 | - have hp : ∀ y ∈ (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).source V.strip.domain, | |
| 1011 | - B.base.frequency reference * V.physicalPhase y = | |
| 1012 | - V.frequency n * (V.coefficients request j).phase n | |
| 1013 | - ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map y) := by | |
| 1014 | - intro y hy | |
| 1015 | - change B.base.frequency reference * B.base.phase reference | |
| 1016 | - ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map y) = | |
| 1017 | - V.frequency n * ((B.base.frequency reference / V.frequency n) * B.base.phase reference | |
| 1018 | - (V.map n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map y))) | |
| 1019 | - rw [V.map_graph n hy.1] | |
| 1020 | - field_simp [V.frequency_ne n] | |
| 1021 | - have hav : ∀ y ∈ (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).source V.strip.domain, | |
| 1022 | - V.physicalRaw referenceRequest j y = V.scale n ^ (-CoordinateAlgebra.A V.exponent) • | |
| 1023 | - ((V.coefficients request j).withCutoff V.cutoff).amplitude n | |
| 1024 | - ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map y) := by | |
| 1025 | - intro y hy | |
| 1026 | - rw [V.amplitude_transport request referenceRequest j n _ (hrequest _ hy.2), | |
| 1027 | - V.map_graph n hy.1, smul_smul] | |
| 1028 | - change V.referenceScale ^ (-CoordinateAlgebra.A V.exponent) • _ = | |
| 1029 | - (V.scale n ^ (-CoordinateAlgebra.A V.exponent) * V.velocity n) • _ | |
| 1030 | - congr 1 | |
| 1031 | - rw [mul_comm] | |
| 1032 | - exact (PhysicalParticularWave.ratioPower_cancel (V.scale_pos n) V.referenceScale_pos _).symm | |
| 1033 | - exact PhysicalCurlCovariance.reference_correctedWave_constructed (V.scale_pos n) V.exponent (V.cover n) | |
| 1034 | - V.strip.isOpen_domain (fun x hx => (hradius x hx).ne') hK (V.frequency_ne n) hphi ha hn ht | |
| 1035 | - V.physicalPhase (V.physicalRaw referenceRequest j) hp hav | |
| 1036 | - (V.referencePotential_periodic A hK j) hz hdelta chart hchart component | |
| 1037 | - | |
| 1038 | 561 | /-! ## Pressure is transported from the same reference coefficient -/ |
| 1039 | 562 | |
| 1040 | -noncomputable def physicalPressureCoefficient (referenceRequest : ℕ → Cylinder → Vec2) | |
| 1041 | - (j : Fin 2) : SpaceTime → ℂ := | |
| 1042 | - fun z => V.referenceScale ^ (-(2 * CoordinateAlgebra.A V.exponent)) • | |
| 1043 | - B.rawPressure referenceRequest j reference | |
| 1044 | - ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z) | |
| 1045 | - | |
| 1046 | -noncomputable def complexPhysicalPressure (referenceRequest : ℕ → Cylinder → Vec2) | |
| 1047 | - (j : Fin 2) : SpaceTime → ℂ := | |
| 1048 | - mode (B.base.frequency reference) V.physicalPhase (V.physicalPressureCoefficient referenceRequest j) | |
| 1049 | - | |
| 1050 | -noncomputable def physicalPressure (referenceRequest : ℕ → Cylinder → Vec2) | |
| 1051 | - (j : Fin 2) (delta : ℝ) : PressureField := | |
| 1052 | - fun z => PhysicalCurlCovariance.globalCartesianPotential delta | |
| 1053 | - (PhysicalParticularWave.pressureVector (V.complexPhysicalPressure referenceRequest j)) z 2 | |
| 1054 | - | |
| 1055 | -noncomputable def pressureMode (request : ℕ → Cylinder → Vec2) (j : Fin 2) (n : ℕ) : | |
| 1056 | - Cylinder → ℂ := | |
| 1057 | - mode (V.frequency n) ((V.coefficients request j).phase n) | |
| 1058 | - (((V.coefficients request j).withCutoff V.cutoff).pressure n) | |
| 1059 | - | |
| 1060 | -theorem complexPhysicalPressure_periodic {referenceRequest : ℕ → Cylinder → Vec2} | |
| 1061 | - (A : B.Angular referenceRequest reference) (hK : B.base.frequency reference ≠ 0) | |
| 1062 | - (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) | |
| 1063 | - (j : Fin 2) (t r z : ℝ) : | |
| 1064 | - Function.Periodic (fun angle => V.complexPhysicalPressure referenceRequest j | |
| 1065 | - (t, AxisymmetricResidual.pack r angle z)) (2 * Real.pi) := by | |
| 1066 | - have hphi : CopyAngularInvariance.AffinePhase ((0 : ℝ), coordinateVector 1) | |
| 1067 | - (A.mode / B.base.frequency reference) V.physicalPhase := by | |
| 1068 | - intro x a | |
| 1069 | - unfold physicalPhase | |
| 1070 | - rw [V.physicalGraph_add_angle] | |
| 1071 | - exact A.phase _ a | |
| 1072 | - have hp : CopyAngularInvariance.Invariant ((0 : ℝ), coordinateVector 1) | |
| 1073 | - (V.physicalPressureCoefficient referenceRequest j) := by | |
| 1074 | - intro x a | |
| 1075 | - unfold physicalPressureCoefficient | |
| 1076 | - rw [V.physicalGraph_add_angle, B.rawPressure_invariant reference A G j _ a] | |
| 1077 | - have hf : B.base.frequency reference * (A.mode / B.base.frequency reference) = (A.mode : ℝ) := by | |
| 1078 | - field_simp | |
| 1079 | - intro angle | |
| 1080 | - have he := PhysicalParticularWave.mode_fullTurn A.mode hphi hp hf | |
| 1081 | - (t, AxisymmetricResidual.pack r angle z) | |
| 1082 | - simpa only [complexPhysicalPressure, PhysicalParticularWave.angle_translate_pack] using he | |
| 1083 | - | |
| 1084 | -theorem physicalPressure_forward {referenceRequest : ℕ → Cylinder → Vec2} | |
| 1085 | - (A : B.Angular referenceRequest reference) (hK : B.base.frequency reference ≠ 0) | |
| 1086 | - (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) | |
| 1087 | - (j : Fin 2) {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) {z : SpaceTime} | |
| 1088 | - (hz : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) : | |
| 1089 | - V.physicalPressure referenceRequest j delta (z.1, CylindricalResidual.chart z.2) = | |
| 1090 | - (V.complexPhysicalPressure referenceRequest j z).re := by | |
| 1091 | - have hper (t r z : ℝ) : Function.Periodic | |
| 1092 | - (fun angle => PhysicalParticularWave.pressureVector (V.complexPhysicalPressure referenceRequest j) | |
| 1093 | - (t, AxisymmetricResidual.pack r angle z)) (2 * Real.pi) := by | |
| 1094 | - intro angle | |
| 1095 | - simp only [PhysicalParticularWave.pressureVector, | |
| 1096 | - V.complexPhysicalPressure_periodic A hK G j t r z angle] | |
| 1097 | - have he := (PhysicalCurlCovariance.globalCartesianPotential_forward_germ hdelta chart | |
| 1098 | - (PhysicalParticularWave.pressureVector (V.complexPhysicalPressure referenceRequest j)) hper hz).eq_of_nhds | |
| 1099 | - unfold physicalPressure | |
| 1100 | - rw [he] | |
| 1101 | - simp [CylindricalResidual.frame_apply, PhysicalCurlCovariance.realVector, | |
| 1102 | - PhysicalParticularWave.pressureVector] | |
| 1103 | - | |
| 1104 | -theorem pressureMode_physical (request referenceRequest : ℕ → Cylinder → Vec2) | |
| 1105 | - (j : Fin 2) (n : ℕ) (hK : B.base.frequency reference ≠ 0) | |
| 1106 | - (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) | |
| 1107 | - (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) | |
| 1108 | - V.strip V.directions n V.exponent (V.scale n) (V.cover n)) | |
| 1109 | - {z : SpaceTime} (hz : 0 < z.2 0) | |
| 1110 | - (hPhi : DifferentiableAt ℝ (B.base.phase reference) | |
| 1111 | - ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z)) | |
| 1112 | - (hrequest : request n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) = | |
| 1113 | - coefficientScale (V.strip.epsilon n) (B.strip.epsilon reference) (V.velocity n) ^ 2 • | |
| 1114 | - referenceRequest reference ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z)) : | |
| 1115 | - V.pressureMode request j n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) = | |
| 1116 | - V.scale n ^ (2 * CoordinateAlgebra.A V.exponent) • V.complexPhysicalPressure referenceRequest j z := by | |
| 1117 | - have hraw := V.pressure_transport request referenceRequest j n | |
| 1118 | - (x := (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) | |
| 1119 | - (mul_pos (Real.rpow_pos_of_pos (V.scale_pos n) _) hz) hK G H | |
| 1120 | - (by simpa only [V.map_graph n hz] using hPhi) (by simpa only [V.map_graph n hz] using hrequest) | |
| 1121 | - rw [V.map_graph n hz] at hraw | |
| 1122 | - have hc : carrier (V.frequency n) ((V.coefficients request j).phase n) | |
| 1123 | - ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) = | |
| 1124 | - carrier (B.base.frequency reference) V.physicalPhase z := by | |
| 1125 | - apply PhysicalCurlCovariance.carrier_eq_of_products | |
| 1126 | - have he := B.view_carrier V.background V.frequency (fun n => V.map n) reference n | |
| 1127 | - (V.frequency_ne n) ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) | |
| 1128 | - simp only [V.map_graph n hz] at he | |
| 1129 | - exact he | |
| 1130 | - have hw : PhysicalParticularWave.pressureWeight V.exponent (V.scale n) V.referenceScale = | |
| 1131 | - V.scale n ^ (2 * CoordinateAlgebra.A V.exponent) * | |
| 1132 | - V.referenceScale ^ (-(2 * CoordinateAlgebra.A V.exponent)) := by | |
| 1133 | - unfold PhysicalParticularWave.pressureWeight PhysicalParticularWave.ratioPower | |
| 1134 | - rw [Real.rpow_neg V.referenceScale_pos.le, div_eq_mul_inv] | |
| 1135 | - unfold pressureMode complexPhysicalPressure HarmonicCalculus.mode | |
| 1136 | - rw [hraw, hc, hw] | |
| 1137 | - simp only [physicalPressureCoefficient, rawPressure, Complex.real_smul, Complex.ofReal_mul] | |
| 1138 | - ring | |
| 1139 | - | |
| 1140 | -theorem pressure_physical (request referenceRequest : ℕ → Cylinder → Vec2) | |
| 1141 | - (j : Fin 2) (n : ℕ) (A : B.Angular referenceRequest reference) | |
| 1142 | - (hK : B.base.frequency reference ≠ 0) | |
| 1143 | - (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) | |
| 1144 | - (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) | |
| 1145 | - V.strip V.directions n V.exponent (V.scale n) (V.cover n)) | |
| 1146 | - {z : SpaceTime} (hz : 0 < z.2 0) | |
| 1147 | - (hPhi : DifferentiableAt ℝ (B.base.phase reference) | |
| 1148 | - ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z)) | |
| 1149 | - (hrequest : request n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) = | |
| 1150 | - coefficientScale (V.strip.epsilon n) (B.strip.epsilon reference) (V.velocity n) ^ 2 • | |
| 1151 | - referenceRequest reference ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z)) | |
| 1152 | - {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) | |
| 1153 | - (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) : | |
| 1154 | - (V.pressureMode request j n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z)).re = | |
| 1155 | - V.scale n ^ (2 * CoordinateAlgebra.A V.exponent) * | |
| 1156 | - V.physicalPressure referenceRequest j delta (z.1, CylindricalResidual.chart z.2) := by | |
| 1157 | - rw [V.pressureMode_physical request referenceRequest j n hK G H hz hPhi hrequest, | |
| 1158 | - V.physicalPressure_forward A hK G j hdelta chart hchart] | |
| 1159 | - simp [Complex.real_smul] | |
| 1160 | - | |
| 1161 | -theorem pressureMode_eq_exact (request : ℕ → Cylinder → Vec2) (j : Fin 2) (n : ℕ) : | |
| 1162 | - V.pressureMode request j n = HarmonicCalculus.mode ((V.exactCoefficients request j).frequency n) | |
| 1163 | - ((V.exactCoefficients request j).phase n) ((V.exactCoefficients request j).pressure n) := rfl | |
| 1164 | - | |
| 1165 | 563 | /-! ## The primary coefficient is an exact specialization -/ |
| 1166 | 564 | |
| 1167 | 565 | /-! ## Bind the constructor to the literal current-state request -/ |
| @@ -1212,63 +610,6 @@ noncomputable def request : ℕ → Cylinder → Vec2 := | ||
| 1212 | 610 | noncomputable def referenceRequest : ℕ → Cylinder → Vec2 := |
| 1213 | 611 | stateRequest B.strip D.patch V.exponent D.referenceContext D.referenceState |
| 1214 | 612 | |
| 1215 | -theorem request_transport (n : ℕ) (x : Cylinder) (hx : x ∈ V.strip.domain) : | |
| 1216 | - D.request n x = coefficientScale (V.strip.epsilon n) (B.strip.epsilon reference) | |
| 1217 | - (V.velocity n) ^ 2 • D.referenceRequest reference (V.map n x) := | |
| 1218 | - stateRequest_of_state V.strip B.strip D.patch D.exponent_pos D.exponent_lt_half | |
| 1219 | - (V.scale_pos n) V.referenceScale_pos D.context D.referenceContext D.current D.referenceState | |
| 1220 | - n reference (V.referenceCover - V.cover n) (D.domain_open n) (D.state_coherent n) (D.context_coherent n) | |
| 1221 | - x (D.time_pos x hx) (D.fibers n x hx) (D.referenceSlow_open n) (D.referenceSlow_mem n x hx) | |
| 1222 | - (D.reference_theta_smooth n) (D.reference_axial_smooth n) | |
| 1223 | - (D.reference_theta_periodic n) (D.reference_axial_periodic n) | |
| 1224 | - | |
| 1225 | -theorem actual_wave_physical (j : Fin 2) (n : ℕ) | |
| 1226 | - (R : B.Regular D.referenceRequest reference j) (A : B.Angular D.referenceRequest reference) | |
| 1227 | - (hK : B.base.frequency reference ≠ 0) | |
| 1228 | - (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) | |
| 1229 | - (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) | |
| 1230 | - V.strip V.directions n V.exponent (V.scale n) (V.cover n)) | |
| 1231 | - (hmap : MapsTo (V.map n) V.strip.domain B.strip.domain) | |
| 1232 | - (hradius : ∀ x ∈ V.strip.domain, 0 < x.1.1) | |
| 1233 | - {z : SpaceTime} | |
| 1234 | - (hz : z ∈ (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).source V.strip.domain) | |
| 1235 | - {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) | |
| 1236 | - (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) (component : Fin 3) : | |
| 1237 | - (vectorMode ((V.exactCoefficients D.request j).frequency n) ((V.exactCoefficients D.request j).phase n) | |
| 1238 | - ((V.exactCoefficients D.request j).amplitude n) | |
| 1239 | - ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) component).re = | |
| 1240 | - V.scale n ^ CoordinateAlgebra.A V.exponent * CylindricalResidual.frame (-(z.2 1)) | |
| 1241 | - (V.physicalVelocity D.referenceRequest j delta (z.1, CylindricalResidual.chart z.2)) component := by | |
| 1242 | - have he := V.wave_physical D.request D.referenceRequest j n R A hK G H hmap hradius | |
| 1243 | - (D.request_transport n) hz hdelta chart hchart component | |
| 1244 | - rwa [V.wave_eq_exact D.request j n H] at he | |
| 1245 | - | |
| 1246 | -theorem actual_pressure_physical (j : Fin 2) (n : ℕ) | |
| 1247 | - (R : B.Regular D.referenceRequest reference j) (A : B.Angular D.referenceRequest reference) | |
| 1248 | - (hK : B.base.frequency reference ≠ 0) | |
| 1249 | - (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) | |
| 1250 | - (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) | |
| 1251 | - V.strip V.directions n V.exponent (V.scale n) (V.cover n)) | |
| 1252 | - (hmap : MapsTo (V.map n) V.strip.domain B.strip.domain) | |
| 1253 | - {z : SpaceTime} | |
| 1254 | - (hz : z ∈ (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).source V.strip.domain) | |
| 1255 | - {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) | |
| 1256 | - (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) : | |
| 1257 | - (HarmonicCalculus.mode ((V.exactCoefficients D.request j).frequency n) ((V.exactCoefficients D.request j).phase n) | |
| 1258 | - ((V.exactCoefficients D.request j).pressure n) | |
| 1259 | - ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z)).re = | |
| 1260 | - V.scale n ^ (2 * CoordinateAlgebra.A V.exponent) * | |
| 1261 | - V.physicalPressure D.referenceRequest j delta (z.1, CylindricalResidual.chart z.2) := by | |
| 1262 | - have hx : (PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z ∈ B.strip.domain := by | |
| 1263 | - rw [← V.map_graph n hz.1] | |
| 1264 | - exact hmap hz.2 | |
| 1265 | - have he := V.pressure_physical D.request D.referenceRequest j n A hK G H hz.1 | |
| 1266 | - ((R.phase.contDiffAt (B.strip.isOpen_domain.mem_nhds hx)).differentiableAt (by simp)) | |
| 1267 | - (by simpa only [V.map_graph n hz.1] using (D.request_transport n | |
| 1268 | - ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) hz.2)) | |
| 1269 | - hdelta chart hchart | |
| 1270 | - rwa [V.pressureMode_eq_exact D.request j n] at he | |
| 1271 | - | |
| 1272 | 613 | end StateData |
| 1273 | 614 | |
| 1274 | 615 | end Views |
+0 −179 NavierStokes/PhysicalStageBounds.lean View file
| @@ -193,16 +193,6 @@ theorem MeanData.angular_smooth {h degree qbig : ℝ} (M : MeanData h degree) | ||
| 193 | 193 | intro w hw |
| 194 | 194 | exact ⟨hw.1, hw.2.trans_le hq⟩ |
| 195 | 195 | |
| 196 | -theorem MeanData.field_bound {h degree qbig : ℝ} (M : MeanData h degree) | |
| 197 | - (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) (m : ℕ) : | |
| 198 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, | |
| 199 | - PhysicalWaveSum.physicalQ h w ≤ 1 → | |
| 200 | - ‖iteratedFDeriv ℝ m M.family.field w‖ ≤ | |
| 201 | - C * PhysicalWaveSum.physicalQ h w ^ (h * M.alpha - PhysicalMeanJetBounds.loss degree m) := by | |
| 202 | - obtain ⟨C, hC, hb⟩ := M.family.field_jet_bound hh hh1 M.lower_pos M.radii_lt M.band_four | |
| 203 | - M.region_open M.region_covers M.smooth M.support M.nativeJets m | |
| 204 | - exact ⟨C, hC, fun w hw hq1 => hb w hw.1 (abs_time_le_one hh hh1 hw.1 hq1) (hw.2.le.trans hq)⟩ | |
| 205 | - | |
| 206 | 196 | theorem MeanData.angular_bound {h degree qbig : ℝ} (M : MeanData h degree) |
| 207 | 197 | (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) (m : ℕ) : |
| 208 | 198 | ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, |
| @@ -251,19 +241,6 @@ theorem WaveData.pressure_bound_with_gain (W : WaveData h D I K Unit) | ||
| 251 | 241 | unfold PhysicalClassBounds.physicalLoss |
| 252 | 242 | linarith |
| 253 | 243 | |
| 254 | -theorem MeanData.field_bound_with_gain {degree qbig : ℝ} (M : MeanData h degree) | |
| 255 | - (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) | |
| 256 | - (hg : g ≤ h * M.alpha + delta) (m : ℕ) : | |
| 257 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, | |
| 258 | - PhysicalWaveSum.physicalQ h w ≤ 1 → | |
| 259 | - ‖iteratedFDeriv ℝ m M.family.field w‖ ≤ C * PhysicalWaveSum.physicalQ h w ^ | |
| 260 | - (g - (PhysicalMeanJetBounds.loss degree m + delta)) := by | |
| 261 | - obtain ⟨C, hC, hb⟩ := M.field_bound hh hh1 hq m | |
| 262 | - refine ⟨C, hC, fun w hw hq1 => (hb w hw hq1).trans ?_⟩ | |
| 263 | - exact mul_le_mul_of_nonneg_left | |
| 264 | - (Real.rpow_le_rpow_of_exponent_ge (PhysicalWaveSum.physicalQ_pos hh hh1 hw.1) hq1 | |
| 265 | - (by linarith)) hC | |
| 266 | - | |
| 267 | 244 | theorem MeanData.angular_bound_with_gain {degree qbig : ℝ} (M : MeanData h degree) |
| 268 | 245 | (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) |
| 269 | 246 | (hg : g ≤ h * M.alpha + delta) (m : ℕ) : |
| @@ -346,28 +323,6 @@ theorem potentialIncrement_bound {qbig g waveOffset meanOffset : ℝ} | ||
| 346 | 323 | ((CutStageEstimates.physicalSublevel_open hh hh1 qbig).mem_nhds hw) |
| 347 | 324 | exact (norm_add_jet_le hsa hsb m).trans ((add_le_add ha hb).trans_eq (by ring)) |
| 348 | 325 | |
| 349 | -theorem pressureIncrement_bound {qbig g waveOffset meanOffset : ℝ} | |
| 350 | - (W : WaveData h D I K Unit) (M : MeanData h (2 * CoordinateAlgebra.A h)) | |
| 351 | - (hh : 0 < h) (hh1 : h < 1 / 2) (hq : qbig ≤ ChartScales.Q M.firstBand) | |
| 352 | - (hwave : g ≤ h * W.alpha + W.shift + waveOffset) | |
| 353 | - (hmean : g ≤ h * M.alpha + meanOffset) (m : ℕ) : | |
| 354 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ w ∈ CutStageEstimates.physicalSublevel h qbig, | |
| 355 | - PhysicalWaveSum.physicalQ h w ≤ 1 → | |
| 356 | - ‖iteratedFDeriv ℝ m (pressureIncrement W M) w‖ ≤ | |
| 357 | - C * PhysicalWaveSum.physicalQ h w ^ (g - pressureLoss h waveOffset meanOffset m) := by | |
| 358 | - obtain ⟨C₁, hC₁, h₁⟩ := W.pressure_bound_with_gain hh hh1 hwave m | |
| 359 | - obtain ⟨C₂, hC₂, h₂⟩ := M.field_bound_with_gain hh hh1 hq hmean m | |
| 360 | - refine ⟨C₁ + C₂, add_nonneg hC₁ hC₂, fun w hw hq1 => ?_⟩ | |
| 361 | - have hpos := PhysicalWaveSum.physicalQ_pos hh hh1 hw.1 | |
| 362 | - have ha := norm_bound_mono_loss (l₂ := pressureLoss h waveOffset meanOffset m) | |
| 363 | - hC₁ hpos hq1 (le_max_left _ _) (h₁ w hw.1 hq1) | |
| 364 | - have hb := norm_bound_mono_loss (l₂ := pressureLoss h waveOffset meanOffset m) | |
| 365 | - hC₂ hpos hq1 (le_max_right _ _) (h₂ w hw hq1) | |
| 366 | - have hsa := (W.pressure_smooth hh hh1).contDiffAt (PhysicalWaveSum.preterminal_open.mem_nhds hw.1) | |
| 367 | - have hsb := (M.field_smooth hh hh1 hq).contDiffAt | |
| 368 | - ((CutStageEstimates.physicalSublevel_open hh hh1 qbig).mem_nhds hw) | |
| 369 | - exact (norm_add_jet_le hsa hsb m).trans ((add_le_add ha hb).trans_eq (by ring)) | |
| 370 | - | |
| 371 | 326 | end Assembly |
| 372 | 327 | |
| 373 | 328 | section InitializedStages |
| @@ -384,11 +339,6 @@ noncomputable def addBaseAtZero (base : X → V) (increments : ℕ → X → V) | ||
| 384 | 339 | funext x |
| 385 | 340 | simp [addBaseAtZero] |
| 386 | 341 | |
| 387 | -theorem addBaseAtZero_pos (base : X → V) (increments : ℕ → X → V) {j : ℕ} (hj : 1 ≤ j) : | |
| 388 | - addBaseAtZero base increments j = increments j := by | |
| 389 | - funext x | |
| 390 | - simp only [addBaseAtZero, ite_eq_right (by omega : j ≠ 0)] | |
| 391 | - | |
| 392 | 342 | end InitializedStages |
| 393 | 343 | |
| 394 | 344 | section Sequences |
| @@ -408,45 +358,6 @@ noncomputable def pressureStages (base : PressureField) | ||
| 408 | 358 | (M : ℕ → MeanData h (2 * CoordinateAlgebra.A h)) : ℕ → PressureField := |
| 409 | 359 | addBaseAtZero base (fun j => pressureIncrement (W j) (M j)) |
| 410 | 360 | |
| 411 | -theorem potentialStages_zero (base : VelocityField) | |
| 412 | - (W : ℕ → WaveData h D I K (Fin 3)) (M : ℕ → MeanData h (CoordinateAlgebra.A h - 1 / 2)) : | |
| 413 | - potentialStages base W M 0 = fun w => base w + ((W 0).vector w + (M 0).family.angularField w) := | |
| 414 | - addBaseAtZero_zero _ _ | |
| 415 | - | |
| 416 | -theorem potentialStages_smooth (base : VelocityField) | |
| 417 | - (W : ℕ → WaveData h D I K (Fin 3)) (M : ℕ → MeanData h (CoordinateAlgebra.A h - 1 / 2)) | |
| 418 | - (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 419 | - (hbase : ContDiffOn ℝ ∞ base (CutStageEstimates.physicalSublevel h qbig)) | |
| 420 | - (hq : ∀ j, qbig ≤ ChartScales.Q (M j).firstBand) : | |
| 421 | - ∀ j, ContDiffOn ℝ ∞ (potentialStages base W M j) (CutStageEstimates.physicalSublevel h qbig) := by | |
| 422 | - intro j | |
| 423 | - have hs := potentialIncrement_smooth (W j) (M j) hh hh1 (hq j) | |
| 424 | - by_cases hj : j = 0 | |
| 425 | - · subst j | |
| 426 | - exact hbase.add hs | |
| 427 | - · rw [potentialStages, addBaseAtZero_pos _ _ (by omega : 1 ≤ j)] | |
| 428 | - exact hs | |
| 429 | - | |
| 430 | -theorem pressureStages_smooth (base : PressureField) | |
| 431 | - (W : ℕ → WaveData h D I K Unit) (M : ℕ → MeanData h (2 * CoordinateAlgebra.A h)) | |
| 432 | - (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 433 | - (hbase : ContDiffOn ℝ ∞ base (CutStageEstimates.physicalSublevel h qbig)) | |
| 434 | - (hq : ∀ j, qbig ≤ ChartScales.Q (M j).firstBand) : | |
| 435 | - ∀ j, ContDiffOn ℝ ∞ (pressureStages base W M j) (CutStageEstimates.physicalSublevel h qbig) := by | |
| 436 | - intro j | |
| 437 | - have hs := pressureIncrement_smooth (W j) (M j) hh hh1 (hq j) | |
| 438 | - by_cases hj : j = 0 | |
| 439 | - · subst j | |
| 440 | - exact hbase.add hs | |
| 441 | - · rw [pressureStages, addBaseAtZero_pos _ _ (by omega : 1 ≤ j)] | |
| 442 | - exact hs | |
| 443 | - | |
| 444 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 445 | -theorem directStages_smooth (M : ℕ → MeanData h (CoordinateAlgebra.A h)) | |
| 446 | - (hh : 0 < h) (hh1 : h < 1 / 2) (hq : ∀ j, qbig ≤ ChartScales.Q (M j).firstBand) : | |
| 447 | - ∀ j, ContDiffOn ℝ ∞ (directStages M j) (CutStageEstimates.physicalSublevel h qbig) := | |
| 448 | - fun j => (M j).angular_smooth hh hh1 (hq j) | |
| 449 | - | |
| 450 | 361 | private theorem exists_raw_constants {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 451 | 362 | {F : ℕ → SpaceTime → V} {g L : ℕ → ℝ} |
| 452 | 363 | (hb : ∀ j, 1 ≤ j → ∀ m, ∃ C : ℝ, 0 ≤ C ∧ |
| @@ -467,51 +378,6 @@ private theorem exists_raw_constants {V : Type*} [NormedAddCommGroup V] [NormedS | ||
| 467 | 378 | refine ⟨C, hC, fun j hj m w hw hq => ?_⟩ |
| 468 | 379 | simpa only [Real.rpow_zero, mul_one] using hb j m hj w hw.2 hq |
| 469 | 380 | |
| 470 | -/-- All potential-stage raw estimates are derived from the actual wave | |
| 471 | -copies and azimuthal stream representations. -/ | |
| 472 | -theorem potentialStages_raw (base : VelocityField) | |
| 473 | - (W : ℕ → WaveData h D I K (Fin 3)) (M : ℕ → MeanData h (CoordinateAlgebra.A h - 1 / 2)) | |
| 474 | - (hh : 0 < h) (hh1 : h < 1 / 2) (hq : ∀ j, qbig ≤ ChartScales.Q (M j).firstBand) | |
| 475 | - (g : ℕ → ℝ) (waveOffset meanOffset : ℝ) | |
| 476 | - (hwave : ∀ j, 1 ≤ j → g j ≤ h * (W j).alpha + (W j).shift + waveOffset) | |
| 477 | - (hmean : ∀ j, 1 ≤ j → g j ≤ h * (M j).alpha + meanOffset) : | |
| 478 | - ∃ C : ℕ → ℕ → ℝ, (∀ j m, 0 ≤ C j m) ∧ | |
| 479 | - CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) (potentialStages base W M) g | |
| 480 | - (potentialLoss h waveOffset meanOffset) C (fun _ _ => 0) | |
| 481 | - (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) := by | |
| 482 | - apply exists_raw_constants | |
| 483 | - intro j hj m | |
| 484 | - simpa only [potentialStages, addBaseAtZero_pos _ _ hj] using | |
| 485 | - potentialIncrement_bound (W j) (M j) hh hh1 (hq j) (hwave j hj) (hmean j hj) m | |
| 486 | - | |
| 487 | -theorem pressureStages_raw (base : PressureField) | |
| 488 | - (W : ℕ → WaveData h D I K Unit) (M : ℕ → MeanData h (2 * CoordinateAlgebra.A h)) | |
| 489 | - (hh : 0 < h) (hh1 : h < 1 / 2) (hq : ∀ j, qbig ≤ ChartScales.Q (M j).firstBand) | |
| 490 | - (g : ℕ → ℝ) (waveOffset meanOffset : ℝ) | |
| 491 | - (hwave : ∀ j, 1 ≤ j → g j ≤ h * (W j).alpha + (W j).shift + waveOffset) | |
| 492 | - (hmean : ∀ j, 1 ≤ j → g j ≤ h * (M j).alpha + meanOffset) : | |
| 493 | - ∃ C : ℕ → ℕ → ℝ, (∀ j m, 0 ≤ C j m) ∧ | |
| 494 | - CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) (pressureStages base W M) g | |
| 495 | - (pressureLoss h waveOffset meanOffset) C (fun _ _ => 0) | |
| 496 | - (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) := by | |
| 497 | - apply exists_raw_constants | |
| 498 | - intro j hj m | |
| 499 | - simpa only [pressureStages, addBaseAtZero_pos _ _ hj] using | |
| 500 | - pressureIncrement_bound (W j) (M j) hh hh1 (hq j) (hwave j hj) (hmean j hj) m | |
| 501 | - | |
| 502 | -omit [NormedAddCommGroup D] [NormedSpace ℝ D] in | |
| 503 | -theorem directStages_raw (M : ℕ → MeanData h (CoordinateAlgebra.A h)) | |
| 504 | - (hh : 0 < h) (hh1 : h < 1 / 2) (hq : ∀ j, qbig ≤ ChartScales.Q (M j).firstBand) | |
| 505 | - (g : ℕ → ℝ) (meanOffset : ℝ) | |
| 506 | - (hmean : ∀ j, 1 ≤ j → g j ≤ h * (M j).alpha + meanOffset) : | |
| 507 | - ∃ C : ℕ → ℕ → ℝ, (∀ j m, 0 ≤ C j m) ∧ | |
| 508 | - CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) (directStages M) g | |
| 509 | - (directLoss h meanOffset) C (fun _ _ => 0) | |
| 510 | - (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) := by | |
| 511 | - apply exists_raw_constants | |
| 512 | - intro j hj m | |
| 513 | - exact (M j).angular_bound_with_gain hh hh1 (hq j) (hmean j hj) m | |
| 514 | - | |
| 515 | 381 | end Sequences |
| 516 | 382 | |
| 517 | 383 | section JointInputs |
| @@ -520,51 +386,6 @@ variable {h qbig : ℝ} | ||
| 520 | 386 | {DA DP : Type} [NormedAddCommGroup DA] [NormedSpace ℝ DA] |
| 521 | 387 | [NormedAddCommGroup DP] [NormedSpace ℝ DP] {IA KA IP KP : Type*} |
| 522 | 388 | |
| 523 | -/-- The six raw-stage inputs needed by the mixed diagonal construction, | |
| 524 | -derived together for one gain sequence. The losses contain only the fixed | |
| 525 | -five offsets and the derivative order. Initialization remains in stage zero. | |
| 526 | -No finite-residual estimate or choice of the gain sequence is hidden here. -/ | |
| 527 | -theorem derived_stage_inputs (baseA : VelocityField) (baseP : PressureField) | |
| 528 | - (WA : ℕ → WaveData h DA IA KA (Fin 3)) | |
| 529 | - (MA : ℕ → MeanData h (CoordinateAlgebra.A h - 1 / 2)) | |
| 530 | - (MB : ℕ → MeanData h (CoordinateAlgebra.A h)) | |
| 531 | - (WP : ℕ → WaveData h DP IP KP Unit) | |
| 532 | - (MP : ℕ → MeanData h (2 * CoordinateAlgebra.A h)) | |
| 533 | - (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 534 | - (hbaseA : ContDiffOn ℝ ∞ baseA (CutStageEstimates.physicalSublevel h qbig)) | |
| 535 | - (hbaseP : ContDiffOn ℝ ∞ baseP (CutStageEstimates.physicalSublevel h qbig)) | |
| 536 | - (hqA : ∀ j, qbig ≤ ChartScales.Q (MA j).firstBand) | |
| 537 | - (hqB : ∀ j, qbig ≤ ChartScales.Q (MB j).firstBand) | |
| 538 | - (hqP : ∀ j, qbig ≤ ChartScales.Q (MP j).firstBand) | |
| 539 | - (g : ℕ → ℝ) (deltaWA deltaMA deltaB deltaWP deltaMP : ℝ) | |
| 540 | - (hWA : ∀ j, 1 ≤ j → g j ≤ h * (WA j).alpha + (WA j).shift + deltaWA) | |
| 541 | - (hMA : ∀ j, 1 ≤ j → g j ≤ h * (MA j).alpha + deltaMA) | |
| 542 | - (hMB : ∀ j, 1 ≤ j → g j ≤ h * (MB j).alpha + deltaB) | |
| 543 | - (hWP : ∀ j, 1 ≤ j → g j ≤ h * (WP j).alpha + (WP j).shift + deltaWP) | |
| 544 | - (hMP : ∀ j, 1 ≤ j → g j ≤ h * (MP j).alpha + deltaMP) : | |
| 545 | - ∃ CA CB CP : ℕ → ℕ → ℝ, | |
| 546 | - (∀ j, ContDiffOn ℝ ∞ (potentialStages baseA WA MA j) | |
| 547 | - (CutStageEstimates.physicalSublevel h qbig)) ∧ | |
| 548 | - (∀ j, ContDiffOn ℝ ∞ (directStages MB j) | |
| 549 | - (CutStageEstimates.physicalSublevel h qbig)) ∧ | |
| 550 | - (∀ j, ContDiffOn ℝ ∞ (pressureStages baseP WP MP j) | |
| 551 | - (CutStageEstimates.physicalSublevel h qbig)) ∧ | |
| 552 | - CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) | |
| 553 | - (potentialStages baseA WA MA) g (potentialLoss h deltaWA deltaMA) CA (fun _ _ => 0) | |
| 554 | - (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) ∧ | |
| 555 | - CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) | |
| 556 | - (directStages MB) g (directLoss h deltaB) CB (fun _ _ => 0) | |
| 557 | - (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) ∧ | |
| 558 | - CutStageEstimates.RawStageBounds (PhysicalWaveSum.physicalQ h) | |
| 559 | - (pressureStages baseP WP MP) g (pressureLoss h deltaWP deltaMP) CP (fun _ _ => 0) | |
| 560 | - (PhysicalWaveSum.preterminal ∩ CutStageEstimates.physicalSublevel h qbig) := by | |
| 561 | - obtain ⟨CA, _, hA⟩ := potentialStages_raw baseA WA MA hh hh1 hqA g deltaWA deltaMA hWA hMA | |
| 562 | - obtain ⟨CB, _, hB⟩ := directStages_raw MB hh hh1 hqB g deltaB hMB | |
| 563 | - obtain ⟨CP, _, hP⟩ := pressureStages_raw baseP WP MP hh hh1 hqP g deltaWP deltaMP hWP hMP | |
| 564 | - exact ⟨CA, CB, CP, potentialStages_smooth baseA WA MA hh hh1 hbaseA hqA, | |
| 565 | - directStages_smooth MB hh hh1 hqB, | |
| 566 | - pressureStages_smooth baseP WP MP hh hh1 hbaseP hqP, hA, hB, hP⟩ | |
| 567 | - | |
| 568 | 389 | end JointInputs |
| 569 | 390 | |
| 570 | 391 | section RepresentationTransfer |
+0 −149 NavierStokes/PhysicalWaveSum.lean View file
| @@ -618,38 +618,6 @@ theorem globalWave_eventually_common {a b h r0 : ℝ} (ha : 0 < a) (n d : ℕ) | ||
| 618 | 618 | · simp only [globalWave, commonWave, hz, zero_mul] |
| 619 | 619 | · exact commonWave_charts_agree ha h n d r0 c amp j y m hkp _ i (chooseChart_valid ha (hs y hz)) hy |
| 620 | 620 | |
| 621 | -theorem globalWave_eventually_zero_off_annulus {a b h r0 : ℝ} {n d : ℕ} | |
| 622 | - (c : CarrierData) (amp : LiftPoint → ℂ) (j : ℤ) | |
| 623 | - (hs : ∀ y, amp (commonLift h n d y) ≠ 0 → | |
| 624 | - PhysicalGraphBounds.scaledRadial n y ∈ PhysicalGraphBounds.annulus a b) | |
| 625 | - {w : SpaceTime} (hw : PhysicalGraphBounds.scaledRadial n w ∉ PhysicalGraphBounds.annulus a b) : | |
| 626 | - globalWave a h n d r0 c amp j =ᶠ[𝓝 w] fun _ => 0 := by | |
| 627 | - filter_upwards [(PhysicalGraphBounds.scaledRadial n).continuous.continuousAt | |
| 628 | - ((PhysicalGraphBounds.isCompact_annulus a b).isClosed.isOpen_compl.mem_nhds hw)] with y hy | |
| 629 | - apply globalWave_eq_zero | |
| 630 | - by_contra hn | |
| 631 | - exact hy (hs y hn) | |
| 632 | - | |
| 633 | -theorem globalWave_smooth {a b h r0 : ℝ} (ha : 0 < a) (n d : ℕ) | |
| 634 | - (c : CarrierData) (amp : LiftPoint → ℂ) (j : ℤ) (m : ℤ) | |
| 635 | - (hkp : (ChartScales.carrier h n : ℝ) * c.angular = (m : ℝ)) | |
| 636 | - (hamp : ContDiff ℝ ∞ amp) (hF : ContDiff ℝ ∞ c.F) (hG : ContDiff ℝ ∞ c.G) | |
| 637 | - (hs : ∀ y, amp (commonLift h n d y) ≠ 0 → | |
| 638 | - PhysicalGraphBounds.scaledRadial n y ∈ PhysicalGraphBounds.annulus a b) : | |
| 639 | - ContDiff ℝ ∞ (globalWave a h n d r0 c amp j) := by | |
| 640 | - apply contDiff_iff_contDiffAt.mpr | |
| 641 | - intro w | |
| 642 | - by_cases hw : PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a b | |
| 643 | - · let i := chooseChart a (PhysicalGraphBounds.scaledRadial n w) | |
| 644 | - have hi : PhysicalGraphBounds.scaledRadial n w ∈ PolarCharts.chartDomain a i := chooseChart_valid ha hw | |
| 645 | - have he : globalWave a h n d r0 c amp j =ᶠ[𝓝 w] commonWave a h n d r0 (c.withChart i) amp j := | |
| 646 | - globalWave_eventually_common (r0 := r0) ha n d c amp j m hkp hs i hi | |
| 647 | - have hc : ContDiffAt ℝ ∞ (commonWave a h n d r0 (c.withChart i) amp j) w := | |
| 648 | - commonWave_smoothAt ha h n d r0 (c.withChart i) hamp hF hG j | |
| 649 | - (PhysicalGraphBounds.scaledRadial_ne_zero (PhysicalGraphBounds.annulus_axisFree ha hw)) | |
| 650 | - exact hc.congr_of_eventuallyEq he | |
| 651 | - · exact contDiffAt_const.congr_of_eventuallyEq (globalWave_eventually_zero_off_annulus c amp j hs hw) | |
| 652 | - | |
| 653 | 621 | theorem globalWave_ne_zero_amp {a h r0 : ℝ} {n d : ℕ} {c : CarrierData} |
| 654 | 622 | {amp : LiftPoint → ℂ} {j : ℤ} {w : SpaceTime} |
| 655 | 623 | (hw : globalWave a h n d r0 c amp j w ≠ 0) : amp (commonLift h n d w) ≠ 0 := by |
| @@ -734,26 +702,6 @@ structure RegularFamily {H : ℕ} (f : WaveFamily H) (a b h r0 Z : ℝ) (Δ : | ||
| 734 | 702 | f.amplitude I (commonLift h I.1.val.1 (f.gap I.1) y) ≠ 0 → |
| 735 | 703 | physicalMask (CoordinateAlgebra.D h) I.1.val (physicalParams h y) ≠ 0 |
| 736 | 704 | |
| 737 | -theorem RegularFamily.term_smooth {H : ℕ} {f : WaveFamily H} {a b h r0 Z : ℝ} {Δ : ℕ} | |
| 738 | - (hf : RegularFamily f a b h r0 Z Δ) (ha : 0 < a) (I : WaveIndex H) : | |
| 739 | - ContDiff ℝ ∞ (f.term a h r0 I) := by | |
| 740 | - obtain ⟨m, hm⟩ := hf.angular_integer I.1 | |
| 741 | - exact globalWave_smooth ha I.1.val.1 (f.gap I.1) (f.carrier I.1) (f.amplitude I) I.2.val m hm | |
| 742 | - (hf.amplitude_smooth I) (hf.F_smooth I.1) (hf.G_smooth I.1) | |
| 743 | - (fun y hy => (hf.geometry_support I y hy).1) | |
| 744 | - | |
| 745 | -theorem RegularFamily.term_support {H : ℕ} {f : WaveFamily H} {a b h r0 Z : ℝ} {Δ : ℕ} | |
| 746 | - (hf : RegularFamily f a b h r0 Z Δ) (I : WaveIndex H) (w : SpaceTime) | |
| 747 | - (hw : w ∈ preterminal) (hn : f.term a h r0 I w ≠ 0) : | |
| 748 | - physicalParams h w ∈ labelRegion (CoordinateAlgebra.D h) I.1.val := | |
| 749 | - physicalMask_support_subset _ _ (hf.mask_support I w hw (globalWave_ne_zero_amp hn)) | |
| 750 | - | |
| 751 | -theorem RegularFamily.sum_smooth {H : ℕ} {f : WaveFamily H} {a b h r0 Z : ℝ} {Δ : ℕ} | |
| 752 | - (hf : RegularFamily f a b h r0 Z Δ) (ha : 0 < a) (hh : 0 < h) (hh1 : h < 1 / 2) : | |
| 753 | - ContDiffOn ℝ ∞ (f.sum a h r0) preterminal := | |
| 754 | - masked_finsum_smooth hh hh1 (f.term a h r0) | |
| 755 | - (fun I _ _ => (hf.term_smooth ha I).contDiffAt) hf.term_support | |
| 756 | - | |
| 757 | 705 | /-- Bounds on genuine input coefficient jets in common coordinates, and |
| 758 | 706 | on the genuine base profiles entering the native phase. -/ |
| 759 | 707 | structure StrippedClass {H : ℕ} (f : WaveFamily H) |
| @@ -784,61 +732,6 @@ structure StrippedClass {H : ℕ} (f : WaveFamily H) | ||
| 784 | 732 | (ChartScales.timeCoefficient h I.1.val.1) (f.carrier I.1).center r0 |
| 785 | 733 | (PhysicalGraphBounds.physicalLift h I.1.val.1 w)).1‖ ≤ B * ChartScales.S I.1.val.1 ^ eBase |
| 786 | 734 | |
| 787 | -/-- The full physical sum has exactly the same power loss as one native | |
| 788 | -carrier. The number of harmonics, bounded cover gap, overlap count, and | |
| 789 | -stripped-class degrees affect its constant only. -/ | |
| 790 | -theorem physical_sum_jet_bound {h a b Z r0 P B eBase : ℝ} | |
| 791 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) | |
| 792 | - (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) | |
| 793 | - (H Δ m : ℕ) (g eAmp A : ℝ) (hA : 0 ≤ A) : | |
| 794 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ f : WaveFamily H, | |
| 795 | - RegularFamily f a b h r0 Z Δ → StrippedClass f a b h r0 P A B g eAmp eBase m → | |
| 796 | - ∀ w : SpaceTime, w ∈ preterminal → |w.1| ≤ 1 → | |
| 797 | - ‖iteratedFDeriv ℝ m (f.sum a h r0) w‖ ≤ | |
| 798 | - C * physicalQ h w ^ (g - PhysicalGraphBounds.waveLoss h m) := by | |
| 799 | - obtain ⟨C, hC, hpoint⟩ := common_carrier_physical_bound (b := b) hh.le hh1.le ha | |
| 800 | - hZ hr0 hP hB heBase Δ m g eAmp A (H : ℝ) hA (Nat.cast_nonneg H) | |
| 801 | - refine ⟨((2250 * (2 * H + 1) : ℕ) : ℝ) * C, mul_nonneg (Nat.cast_nonneg _) hC, ?_⟩ | |
| 802 | - intro f hregular hclass w hw ht | |
| 803 | - have hq := physicalQ_pos hh hh1 hw | |
| 804 | - have hsum := masked_finsum_jet_bound hh hh1 (f.term a h r0) | |
| 805 | - (fun I _ _ => (hregular.term_smooth ha I).contDiffAt) hregular.term_support hw m | |
| 806 | - (B := C * physicalQ h w ^ (g - PhysicalGraphBounds.waveLoss h m)) (by positivity) | |
| 807 | - refine (hsum ?_).trans_eq (by ring) | |
| 808 | - · intro I hregion | |
| 809 | - by_cases hs : w ∈ tsupport (f.term a h r0 I) | |
| 810 | - · have hgeo := globalWave_tsupport_geometry (f.carrier I.1) (f.amplitude I) I.2.val | |
| 811 | - (hregular.geometry_support I) hs | |
| 812 | - obtain ⟨mode, hmode⟩ := hregular.angular_integer I.1 | |
| 813 | - let chart := chooseChart a (PhysicalGraphBounds.scaledRadial I.1.val.1 w) | |
| 814 | - have hchart : PhysicalGraphBounds.scaledRadial I.1.val.1 w ∈ PolarCharts.chartDomain a chart := | |
| 815 | - chooseChart_valid ha hgeo.1 | |
| 816 | - have he := globalWave_eventually_common (r0 := r0) ha I.1.val.1 (f.gap I.1) | |
| 817 | - (f.carrier I.1) (f.amplitude I) I.2.val mode hmode | |
| 818 | - (fun y hy => (hregular.geometry_support I y hy).1) chart hchart | |
| 819 | - change ‖iteratedFDeriv ℝ m (globalWave a h I.1.val.1 (f.gap I.1) r0 | |
| 820 | - (f.carrier I.1) (f.amplitude I) I.2.val) w‖ ≤ _ | |
| 821 | - rw [iteratedFDeriv_eq_of_eventuallyEq he m] | |
| 822 | - have hband := labelRegion_active_relation hregion | |
| 823 | - exact hpoint I.1.val.1 I.1.property (f.gap I.1) (hregular.gap_le I.1) | |
| 824 | - w hgeo.1 ht hgeo.2.1 (physicalQ h w) hq hband.1 hband.2 | |
| 825 | - ((f.carrier I.1).withChart chart) (f.amplitude I) I.2.val | |
| 826 | - (hclass.parameters I.1).1 (hclass.parameters I.1).2.1 (hclass.parameters I.1).2.2 hgeo.2.2 | |
| 827 | - (hregular.amplitude_smooth I) (hregular.F_smooth I.1) (hregular.G_smooth I.1) (harmonic_bound I.2) | |
| 828 | - (hclass.amplitude I w hw hregion hgeo.1) | |
| 829 | - (hclass.base_F I w hw hregion hgeo.1 chart hchart) | |
| 830 | - (hclass.base_G I w hw hregion hgeo.1 chart hchart) | |
| 831 | - · rw [jet_zero_off_tsupport _ _ hs, norm_zero] | |
| 832 | - positivity | |
| 833 | - | |
| 834 | -theorem RegularFamily.sum_locally_finite {H : ℕ} {f : WaveFamily H} {a b h r0 Z : ℝ} {Δ : ℕ} | |
| 835 | - (hf : RegularFamily f a b h r0 Z Δ) (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 836 | - {w : SpaceTime} (hw : w ∈ preterminal) : | |
| 837 | - ∃ s : Finset (WaveIndex H), s.card ≤ 2250 * (2 * H + 1) ∧ | |
| 838 | - f.sum a h r0 =ᶠ[𝓝 w] fun y => ∑ I ∈ s, f.term a h r0 I y := by | |
| 839 | - obtain ⟨s, hs, he⟩ := masked_finsum_eventually hh hh1 (f.term a h r0) hf.term_support hw | |
| 840 | - exact ⟨s, waveRegion_card_le (physicalQ_pos hh hh1 hw) s (fun I hI => (hs I).mp hI), he⟩ | |
| 841 | - | |
| 842 | 735 | noncomputable def realCoordinate (i : Fin 3) : ℂ →L[ℝ] Space := |
| 843 | 736 | Complex.reCLM.smulRight (coordinateVector i) |
| 844 | 737 | |
| @@ -852,10 +745,6 @@ theorem norm_realCoordinate_le (i : Fin 3) : ‖realCoordinate i‖ ≤ 1 := by | ||
| 852 | 745 | mul_one, one_mul] |
| 853 | 746 | exact Complex.abs_re_le_norm z |
| 854 | 747 | |
| 855 | -/-- Real Euclidean vector assembled from the three scalar carrier sums. -/ | |
| 856 | -noncomputable def vectorSum {H : ℕ} (f : Fin 3 → WaveFamily H) (a h r0 : ℝ) | |
| 857 | - (w : SpaceTime) : Space := ∑ i : Fin 3, realCoordinate i ((f i).sum a h r0 w) | |
| 858 | - | |
| 859 | 748 | theorem norm_jet_linear_comp_at {E F G : Type*} |
| 860 | 749 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 861 | 750 | [NormedAddCommGroup F] [NormedSpace ℝ F] [NormedAddCommGroup G] [NormedSpace ℝ G] |
| @@ -864,42 +753,4 @@ theorem norm_jet_linear_comp_at {E F G : Type*} | ||
| 864 | 753 | rw [L.iteratedFDeriv_comp_left hf le_rfl] |
| 865 | 754 | exact L.norm_compContinuousMultilinearMap_le _ |
| 866 | 755 | |
| 867 | -theorem vectorSum_jet_bound {H : ℕ} {f : Fin 3 → WaveFamily H} {a b h r0 Z : ℝ} {Δ : ℕ} | |
| 868 | - (hf : ∀ i, RegularFamily (f i) a b h r0 Z Δ) (ha : 0 < a) (hh : 0 < h) (hh1 : h < 1 / 2) | |
| 869 | - {w : SpaceTime} (hw : w ∈ preterminal) (m : ℕ) {B : ℝ} | |
| 870 | - (hb : ∀ i, ‖iteratedFDeriv ℝ m ((f i).sum a h r0) w‖ ≤ B) : | |
| 871 | - ‖iteratedFDeriv ℝ m (vectorSum f a h r0) w‖ ≤ 3 * B := by | |
| 872 | - have hlocal (i : Fin 3) : ContDiffAt ℝ m ((f i).sum a h r0) w := | |
| 873 | - (((hf i).sum_smooth ha hh hh1).contDiffAt (preterminal_open.mem_nhds hw)).of_le (nat_le_infty m) | |
| 874 | - unfold vectorSum | |
| 875 | - rw [iteratedFDeriv_finset_sum_at (f := fun i y => realCoordinate i ((f i).sum a h r0 y)) Finset.univ | |
| 876 | - (fun i _ => (realCoordinate i).contDiff.contDiffAt.comp w (hlocal i))] | |
| 877 | - calc | |
| 878 | - _ ≤ ∑ i : Fin 3, ‖iteratedFDeriv ℝ m (fun y => realCoordinate i ((f i).sum a h r0 y)) w‖ := | |
| 879 | - norm_sum_le _ _ | |
| 880 | - _ ≤ ∑ _i : Fin 3, B := by | |
| 881 | - apply Finset.sum_le_sum | |
| 882 | - intro i _ | |
| 883 | - exact (norm_jet_linear_comp_at (hlocal i) (realCoordinate i)).trans | |
| 884 | - ((mul_le_of_le_one_left (norm_nonneg _) (norm_realCoordinate_le i)).trans (hb i)) | |
| 885 | - _ = _ := by simp | |
| 886 | - | |
| 887 | -/-- The same stage-independent loss for an actual real Cartesian vector | |
| 888 | -field. Passing from scalar components costs only a factor of three. -/ | |
| 889 | -theorem physical_vector_sum_jet_bound {h a b Z r0 P B eBase : ℝ} | |
| 890 | - (hh : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) | |
| 891 | - (hZ : 0 ≤ Z) (hr0 : 0 ≤ r0) (hP : 1 ≤ P) (hB : 1 ≤ B) (heBase : 0 ≤ eBase) | |
| 892 | - (H Δ m : ℕ) (g eAmp A : ℝ) (hA : 0 ≤ A) : | |
| 893 | - ∃ C : ℝ, 0 ≤ C ∧ ∀ f : Fin 3 → WaveFamily H, | |
| 894 | - (∀ i, RegularFamily (f i) a b h r0 Z Δ) → | |
| 895 | - (∀ i, StrippedClass (f i) a b h r0 P A B g eAmp eBase m) → | |
| 896 | - ∀ w : SpaceTime, w ∈ preterminal → |w.1| ≤ 1 → | |
| 897 | - ‖iteratedFDeriv ℝ m (vectorSum f a h r0) w‖ ≤ | |
| 898 | - C * physicalQ h w ^ (g - PhysicalGraphBounds.waveLoss h m) := by | |
| 899 | - obtain ⟨C, hC, hb⟩ := physical_sum_jet_bound (b := b) hh hh1 ha hZ hr0 hP hB heBase H Δ m g eAmp A hA | |
| 900 | - refine ⟨3 * C, by positivity, ?_⟩ | |
| 901 | - intro f hreg hclass w hw ht | |
| 902 | - exact (vectorSum_jet_bound hreg ha hh hh1 hw m (fun i => hb (f i) (hreg i) (hclass i) w hw ht)).trans_eq | |
| 903 | - (by ring) | |
| 904 | - | |
| 905 | 756 | end NavierStokes.PhysicalWaveSum |
+14 −0 routes/s1-ns-physical-2/README.md added View file
| @@ -0,0 +1,14 @@ | ||
| 1 | +--- | |
| 2 | +issue: 10 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s1-ns-physical-2 | |
| 6 | + | |
| 7 | +S-1, unit `s1-ns-physical-2`: the family `NavierStokes/Physical*`, wave 2 after the wave-1 unit | |
| 8 | +`s1-ns-physical-1` of the same family. I delete 204 declarations that nothing uses, 2778 lines in 11 | |
| 9 | +files (`PhysicalClassBounds.lean` to `PhysicalWaveSum.lean`), all deletions. | |
| 10 | + | |
| 11 | +## Next | |
| 12 | + | |
| 13 | +Nothing: the deletions are made and pushed, and the pull request is open. What remains is the maintainer's | |
| 14 | +reading (and the `build` check, which says whether the tree compiles). | |