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

| 1 | import NavierStokes.ActualPrimaryBounds |
| 2 | import NavierStokes.ActualPrimaryDynamics |
| 3 | import NavierStokes.ActualPrimaryCovariance |
| 4 | import NavierStokes.ActualCarrierGeometry |
| 5 | import NavierStokes.ActualSignedPhysicalData |
| 6 | import NavierStokes.CartesianCopySource |
| 7 | import NavierStokes.PhysicalStageBounds |
| 8 | import NavierStokes.MixedAxisPreservation |
| 9 | import NavierStokes.InitialNativeRegularity |
| 10 | |
| 11 | /-! |
| 12 | # The actual initial primary potential and its physical copies |
| 13 | |
| 14 | Every field below uses the fixed `ActualPrimary.choice B N0`. The |
| 15 | normal-potential operator is applied to the actual cutoff amplitude; its |
| 16 | estimates are obtained from the existing support-local primitive controls. |
| 17 | The lattice index is retained through Cartesian realization. |
| 18 | -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | namespace NavierStokes.InitialPhysicalData |
| 23 | |
| 24 | open Set Function Filter WeightedClasses HarmonicCalculus |
| 25 | open CorrectionInitialization ActualPrimaryBounds |
| 26 | open scoped Topology ContDiff BigOperators |
| 27 | |
| 28 | attribute [local instance] Classical.propDecidable |
| 29 | |
| 30 | abbrev Point := ActualPrimary.FullPoint |
| 31 | abbrev SignedLabel (B N0 : ℕ) := ActualPrimaryBounds.SignedLabel B N0 |
| 32 | abbrev Frequency := TorusInverse.Frequency |
| 33 | |
| 34 | section NativePotential |
| 35 | |
| 36 | variable {B N0 : ℕ} |
| 37 | |
| 38 | /-- The coefficient of the genuine vector potential, before restoring |
| 39 | its carrier. The Gaussian cutoff occurs in `cutCoefficients` once. -/ |
| 40 | noncomputable def potentialCoefficient (l : SignedLabel B N0) (n : ℕ) (x : Point) : |
| 41 | ComplexVector := |
| 42 | CurlClassBounds.inverseCarrier ((cutCoefficients l).frequency n) • |
| 43 | CurlClassBounds.normalCoefficient |
| 44 | ((cutCoefficients l).normal fullStrip (directions B) n x) |
| 45 | ((cutCoefficients l).amplitude n x) |
| 46 | |
| 47 | theorem potentialCoefficient_zero (l : SignedLabel B N0) (n : ℕ) (x : Point) |
| 48 | (ha : (cutCoefficients l).amplitude n x = 0) : |
| 49 | potentialCoefficient l n x = 0 := by |
| 50 | simp [potentialCoefficient, CurlClassBounds.normalCoefficient, |
| 51 | CurlClassBounds.normalCross, ha] |
| 52 | |
| 53 | theorem potentialCoefficient_zero_germ (l : SignedLabel B N0) (n : ℕ) {x : Point} |
| 54 | (ha : (cutCoefficients l).amplitude n =ᶠ[𝓝 x] fun _ => 0) : |
| 55 | potentialCoefficient l n =ᶠ[𝓝 x] fun _ => 0 := by |
| 56 | filter_upwards [ha] with y hy |
| 57 | exact potentialCoefficient_zero l n y hy |
| 58 | |
| 59 | theorem potentialCoefficient_local : |
| 60 | LocalizedWaveBounds.LocalWave fullStrip (controlCell (B := B) (N0 := N0)) |
| 61 | (fun n i => fullEnvelope i.1 n) 1 |
| 62 | (fun n i => potentialCoefficient i.1 n) := by |
| 63 | have hc := (actual_local_inputs (B := B) (N0 := N0)).normalCoefficient_class |
| 64 | (normalFloor_pos B N0) |
| 65 | (fun _ _ _ hx hi => (actualFamily_normal_range hx hi).1) |
| 66 | (fun _ _ _ hx hi => (actualFamily_normal_range hx hi).2) |
| 67 | have hs := (LocalizedWaveBounds.unweighted_smul |
| 68 | (inverse_carrier_local (B := B) (N0 := N0)) hc).map |
| 69 | (Complex.I • ContinuousLinearMap.id ℝ ComplexVector) |
| 70 | have he : (1 / 2 : ℝ) + 1 / 2 = 1 := by norm_num |
| 71 | rw [he] at hs |
| 72 | apply hs.congr |
| 73 | intro n i x |
| 74 | ext j |
| 75 | simp only [_root_.smul_apply, ContinuousLinearMap.id_apply, |
| 76 | Pi.smul_apply, Complex.real_smul, smul_eq_mul, potentialCoefficient, |
| 77 | CurlClassBounds.inverseCarrier] |
| 78 | change Complex.I * (((1 / (((cutCoefficients i.1).frequency n : ℝ)) : ℝ) : ℂ) * _) = |
| 79 | (Complex.I / (((cutCoefficients i.1).frequency n : ℝ) : ℂ)) * _ |
| 80 | simp only [actualFamily, LocalizedWaveBounds.WaveFamily.normal, |
| 81 | LocalizedWaveBounds.WaveFamily.coefficients, |
| 82 | LocalizedWaveBounds.WaveFamily.ofCoefficients, LinearWaveBounds.WaveCoefficients.normal] |
| 83 | push_cast |
| 84 | ring |
| 85 | |
| 86 | /-- Uniformity is over the entire signed label family. On the complement |
| 87 | of the genuine phase patches the actual amplitude has a zero germ. -/ |
| 88 | theorem potentialCoefficient_uniform : |
| 89 | LabelSumBounds.UniformWaveClass fullStrip (fullEnvelope (B := B) (N0 := N0)) 1 |
| 90 | potentialCoefficient := by |
| 91 | have hj : PeriodizedWaveBounds.UniformLocalJets fullStrip |
| 92 | (fun l n x => Real.sqrt (fullStrip.zeta x) * fullEnvelope l n x) 1 |
| 93 | (fun (l : SignedLabel B N0) n k => controlCell n (l, k)) |
| 94 | (fun l n _k => potentialCoefficient l n) := |
| 95 | potentialCoefficient_local.to_uniformLocalJets |
| 96 | apply PeriodizedWaveBounds.uniformClass_of_local_germs |
| 97 | (fun l n x _ => mul_nonneg (Real.sqrt_nonneg _) (fullEnvelope_nonneg l n x)) hj |
| 98 | intro l n x hx |
| 99 | rcases actual_input_cover l n hx with ⟨k, hk⟩ | ⟨ha, _⟩ |
| 100 | · exact Or.inl ⟨k, hk, Filter.EventuallyEq.rfl⟩ |
| 101 | · exact Or.inr (potentialCoefficient_zero_germ l n ha) |
| 102 | |
| 103 | end NativePotential |
| 104 | |
| 105 | section GermBounds |
| 106 | |
| 107 | variable {D E I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 108 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 109 | {s : StripData D} {w : I → ℕ → D → ℝ} {α : ℝ} |
| 110 | {f0 g0 : I → ℕ → D → E} |
| 111 | |
| 112 | /-- A supported copy inherits the same constants when it is locally |
| 113 | equal to the full coefficient or to zero. -/ |
| 114 | theorem uniform_of_germ_or_zero (hf : LabelSumBounds.UniformClass s w α f0) |
| 115 | (hg : ∀ i n x, x ∈ s.domain → |
| 116 | (g0 i n =ᶠ[𝓝 x] f0 i n) ∨ (g0 i n =ᶠ[𝓝 x] fun _ => 0)) : |
| 117 | LabelSumBounds.UniformClass s w α g0 := by |
| 118 | refine ⟨hf.weight_nonneg, ?_, ?_⟩ |
| 119 | · intro i n x hx |
| 120 | rcases hg i n x hx with he | he |
| 121 | · exact (((hf.smooth i n).contDiffAt (s.isOpen_domain.mem_nhds hx)).congr_of_eventuallyEq |
| 122 | he).contDiffWithinAt |
| 123 | · exact (contDiffAt_const.congr_of_eventuallyEq he).contDiffWithinAt |
| 124 | · intro m |
| 125 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 126 | refine ⟨C, hC, p, ?_⟩ |
| 127 | intro i n x hx j hj |
| 128 | rcases hg i n x hx with he | he |
| 129 | · rw [PeriodizedWaveBounds.jets_eq_of_germ he j] |
| 130 | exact hb i n x hx j hj |
| 131 | · simp only [PeriodizedWaveBounds.jets_eq_of_germ he j, |
| 132 | iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] |
| 133 | exact majorant_nonneg s (w i) α hC p n x (hf.weight_nonneg i n x hx) |
| 134 | |
| 135 | end GermBounds |
| 136 | |
| 137 | section NativeCopies |
| 138 | |
| 139 | variable {B N0 : ℕ} |
| 140 | |
| 141 | noncomputable def copyAmplitude (l : SignedLabel B N0) (k : Frequency) (n : ℕ) |
| 142 | (x : Point) : ComplexVector := |
| 143 | copied (CoordinateAlgebra.A ActualPrimary.h) cutNativeVelocity l n k (nativeOfFull x) |
| 144 | |
| 145 | noncomputable def copyPressureCoefficient (l : SignedLabel B N0) (k : Frequency) (n : ℕ) |
| 146 | (x : Point) : ℂ := |
| 147 | copied (2 * CoordinateAlgebra.A ActualPrimary.h) cutNativePressure l n k (nativeOfFull x) |
| 148 | |
| 149 | noncomputable def copyPotentialCoefficient (l : SignedLabel B N0) (k : Frequency) (n : ℕ) |
| 150 | (x : Point) : ComplexVector := |
| 151 | CurlClassBounds.inverseCarrier ((cutCoefficients l).frequency n) • |
| 152 | CurlClassBounds.normalCoefficient |
| 153 | ((cutCoefficients l).normal fullStrip (directions B) n x) |
| 154 | (copyAmplitude l k n x) |
| 155 | |
| 156 | theorem copyAmplitude_germ (l : SignedLabel B N0) (k : Frequency) (n : ℕ) {x : Point} |
| 157 | (hx : x ∈ fullStrip.domain) (hk : nativeOfFull x ∈ (copyCells l).carrier n k) : |
| 158 | copyAmplitude l k n =ᶠ[𝓝 x] (cutCoefficients l).amplitude n := by |
| 159 | have he := (PeriodizedWaveBounds.copySum_germ (copyCells l) n |
| 160 | (copied (CoordinateAlgebra.A ActualPrimary.h) cutNativeVelocity l n) |
| 161 | (copied_support _ _ cut_native_velocity_support l n) hk).comp_tendsto |
| 162 | nativeOfFull.continuous.continuousAt |
| 163 | exact ((cut_amplitude_germ l n hx).trans he).symm |
| 164 | |
| 165 | theorem copyAmplitude_zero_germ (l : SignedLabel B N0) (k : Frequency) (n : ℕ) {x : Point} |
| 166 | (hk : nativeOfFull x ∉ (copyCells l).carrier n k) : |
| 167 | copyAmplitude l k n =ᶠ[𝓝 x] fun _ => 0 := |
| 168 | (PeriodizedWaveBounds.zero_germ_of_support ((copyCells l).closed n k) |
| 169 | (copied_support _ _ cut_native_velocity_support l n k) hk).comp_tendsto |
| 170 | nativeOfFull.continuous.continuousAt |
| 171 | |
| 172 | theorem copyPotential_germ (l : SignedLabel B N0) (k : Frequency) (n : ℕ) {x : Point} |
| 173 | (hx : x ∈ fullStrip.domain) (hk : nativeOfFull x ∈ (copyCells l).carrier n k) : |
| 174 | copyPotentialCoefficient l k n =ᶠ[𝓝 x] potentialCoefficient l n := by |
| 175 | filter_upwards [copyAmplitude_germ l k n hx hk] with y hy |
| 176 | simp only [copyPotentialCoefficient, potentialCoefficient, hy] |
| 177 | |
| 178 | theorem copyPotential_zero_germ (l : SignedLabel B N0) (k : Frequency) (n : ℕ) {x : Point} |
| 179 | (hk : nativeOfFull x ∉ (copyCells l).carrier n k) : |
| 180 | copyPotentialCoefficient l k n =ᶠ[𝓝 x] fun _ => 0 := by |
| 181 | filter_upwards [copyAmplitude_zero_germ l k n hk] with y hy |
| 182 | simp [copyPotentialCoefficient, CurlClassBounds.normalCoefficient, |
| 183 | CurlClassBounds.normalCross, hy] |
| 184 | |
| 185 | theorem copyPressure_germ (l : SignedLabel B N0) (k : Frequency) (n : ℕ) {x : Point} |
| 186 | (hx : x ∈ fullStrip.domain) (hk : nativeOfFull x ∈ (copyCells l).carrier n k) : |
| 187 | copyPressureCoefficient l k n =ᶠ[𝓝 x] (cutCoefficients l).pressure n := by |
| 188 | have he := (PeriodizedWaveBounds.copySum_germ (copyCells l) n |
| 189 | (copied (2 * CoordinateAlgebra.A ActualPrimary.h) cutNativePressure l n) |
| 190 | (copied_support _ _ cut_native_pressure_support l n) hk).comp_tendsto |
| 191 | nativeOfFull.continuous.continuousAt |
| 192 | exact ((cut_pressure_germ l n hx).trans he).symm |
| 193 | |
| 194 | theorem copyPressure_zero_germ (l : SignedLabel B N0) (k : Frequency) (n : ℕ) {x : Point} |
| 195 | (hk : nativeOfFull x ∉ (copyCells l).carrier n k) : |
| 196 | copyPressureCoefficient l k n =ᶠ[𝓝 x] fun _ => 0 := |
| 197 | (PeriodizedWaveBounds.zero_germ_of_support ((copyCells l).closed n k) |
| 198 | (copied_support _ _ cut_native_pressure_support l n k) hk).comp_tendsto |
| 199 | nativeOfFull.continuous.continuousAt |
| 200 | |
| 201 | theorem copyPotential_uniform : |
| 202 | LabelSumBounds.UniformWaveClass fullStrip |
| 203 | (fun i : SignedLabel B N0 × Frequency => fullEnvelope i.1) 1 |
| 204 | (fun i => copyPotentialCoefficient i.1 i.2) := by |
| 205 | apply uniform_of_germ_or_zero (potentialCoefficient_uniform.reindex Prod.fst) |
| 206 | intro i n x hx |
| 207 | by_cases hk : nativeOfFull x ∈ (copyCells i.1).carrier n i.2 |
| 208 | · exact Or.inl (copyPotential_germ i.1 i.2 n hx hk) |
| 209 | · exact Or.inr (copyPotential_zero_germ i.1 i.2 n hk) |
| 210 | |
| 211 | theorem copyPressure_uniform : |
| 212 | LabelSumBounds.UniformWaveClass fullStrip |
| 213 | (fun i : SignedLabel B N0 × Frequency => fullEnvelope i.1) 1 |
| 214 | (fun i => copyPressureCoefficient i.1 i.2) := by |
| 215 | apply uniform_of_germ_or_zero (chart_cut_pressure_uniform.reindex Prod.fst) |
| 216 | intro i n x hx |
| 217 | by_cases hk : nativeOfFull x ∈ (copyCells i.1).carrier n i.2 |
| 218 | · exact Or.inl (copyPressure_germ i.1 i.2 n hx hk) |
| 219 | · exact Or.inr (copyPressure_zero_germ i.1 i.2 n hk) |
| 220 | |
| 221 | end NativeCopies |
| 222 | |
| 223 | section Labels |
| 224 | |
| 225 | variable {B N0 : ℕ} |
| 226 | |
| 227 | noncomputable def bandLabel (l : SignedLabel B N0) : PhysicalWaveSum.BandLabel := |
| 228 | ⟨spatialLabel l, label_large l⟩ |
| 229 | |
| 230 | theorem bandLabel_injective : Function.Injective (bandLabel (B := B) (N0 := N0)) := by |
| 231 | intro l m he |
| 232 | exact ActualCarrierGeometry.signedLabel_injective (congrArg Subtype.val he) |
| 233 | |
| 234 | noncomputable def active : Set PhysicalWaveSum.BandLabel := Set.range (bandLabel (B := B) (N0 := N0)) |
| 235 | |
| 236 | noncomputable def selected (L : PhysicalWaveSum.BandLabel) (hL : L ∈ active (B := B) (N0 := N0)) : |
| 237 | SignedLabel B N0 := hL.choose |
| 238 | |
| 239 | theorem selected_label (L : PhysicalWaveSum.BandLabel) (hL : L ∈ active (B := B) (N0 := N0)) : |
| 240 | bandLabel (selected L hL) = L := hL.choose_spec |
| 241 | |
| 242 | theorem selected_band (L : PhysicalWaveSum.BandLabel) (hL : L ∈ active (B := B) (N0 := N0)) : |
| 243 | BaseChartJets.cellBand (selected L hL).2 = L.val.1 := |
| 244 | congrArg (fun x : PhysicalWaveSum.BandLabel => x.val.1) (selected_label L hL) |
| 245 | |
| 246 | theorem selected_eq (l : SignedLabel B N0) (hL : bandLabel l ∈ active) : |
| 247 | selected (bandLabel l) hL = l := bandLabel_injective (selected_label _ hL) |
| 248 | |
| 249 | noncomputable def gap (L : PhysicalWaveSum.BandLabel) : ℕ := |
| 250 | ChartScales.nativeIndex ActualPrimary.h L.val.1 - CommonWindow.index ActualPrimary.h L.val.1 |
| 251 | |
| 252 | noncomputable def geometry (L : PhysicalWaveSum.BandLabel) : CommonCoverSolve.Geometry := |
| 253 | ActualSignedPhysicalData.geometry ActualPrimary.slots L.val (gap L) |
| 254 | |
| 255 | noncomputable def selectedCarrier (l : SignedLabel B N0) (k : Frequency) : PhysicalWaveSum.CarrierData := |
| 256 | ActualSignedPhysicalData.carrier (h := ActualPrimary.h) (spatialLabel l) k |
| 257 | ((ActualPrimary.phases B N0 l.1).phase.p l.2) |
| 258 | ((ActualPrimary.phases B N0 l.1).phase.pz l.2) |
| 259 | ((ActualPrimary.phases B N0 l.1).phase.x0 l.2) |
| 260 | ((ActualPrimary.phases B N0 l.1).phase.F l.2) |
| 261 | ((ActualPrimary.phases B N0 l.1).phase.G l.2) |
| 262 | |
| 263 | noncomputable def carrier (L : PhysicalWaveSum.BandLabel) (k : Frequency) : |
| 264 | PhysicalWaveSum.CarrierData := |
| 265 | if hL : L ∈ active (B := B) (N0 := N0) then selectedCarrier (selected L hL) k |
| 266 | else ActualSignedPhysicalData.carrier (h := ActualPrimary.h) L.val k 0 0 0 (fun _ => 0) (fun _ => 0) |
| 267 | |
| 268 | theorem carrier_bandLabel (l : SignedLabel B N0) (k : Frequency) : |
| 269 | carrier (B := B) (N0 := N0) (bandLabel l) k = selectedCarrier l k := by |
| 270 | have hl : bandLabel l ∈ active (B := B) (N0 := N0) := ⟨l, rfl⟩ |
| 271 | simp only [carrier, dite_eq_left hl, selected_eq] |
| 272 | |
| 273 | theorem selectedCarrier_center (l : SignedLabel B N0) (k : Frequency) : |
| 274 | (selectedCarrier l k).center = |
| 275 | ActualSignedPhysicalData.center (h := ActualPrimary.h) (spatialLabel l) k := rfl |
| 276 | |
| 277 | abbrev SourceIndex := PhysicalWaveSum.WaveIndex 1 × Frequency |
| 278 | |
| 279 | noncomputable def sourceChoice (I : SourceIndex) : Option (SignedLabel B N0 × Frequency) := |
| 280 | if hL : I.1.1 ∈ active (B := B) (N0 := N0) then |
| 281 | if I.1.2.val = 1 then some (selected I.1.1 hL, I.2) else none |
| 282 | else none |
| 283 | |
| 284 | noncomputable def sourceFamily {E : Type} [Zero E] |
| 285 | (f : (SignedLabel B N0 × Frequency) → ℕ → LocalSignedRequest.Point → E) |
| 286 | (I : SourceIndex) (n : ℕ) (x : LocalSignedRequest.Point) : E := |
| 287 | if n = I.1.1.val.1 then |
| 288 | match sourceChoice (B := B) (N0 := N0) I with |
| 289 | | some l => f l n x |
| 290 | | none => 0 |
| 291 | else 0 |
| 292 | |
| 293 | theorem sourceFamily_eq_some {E : Type} [Zero E] |
| 294 | (f : (SignedLabel B N0 × Frequency) → ℕ → LocalSignedRequest.Point → E) |
| 295 | (I : SourceIndex) (n : ℕ) (hn : n = I.1.1.val.1) (l : SignedLabel B N0 × Frequency) |
| 296 | (hl : sourceChoice I = some l) : sourceFamily f I n = f l n := by |
| 297 | funext x |
| 298 | simp only [sourceFamily, ite_eq_left hn, hl] |
| 299 | |
| 300 | theorem sourceFamily_eq_zero {E : Type} [Zero E] |
| 301 | (f : (SignedLabel B N0 × Frequency) → ℕ → LocalSignedRequest.Point → E) |
| 302 | (I : SourceIndex) (n : ℕ) |
| 303 | (hz : n ≠ I.1.1.val.1 ∨ sourceChoice (B := B) (N0 := N0) I = none) : |
| 304 | sourceFamily f I n = fun _ => 0 := by |
| 305 | funext x |
| 306 | rcases hz with hn | hc |
| 307 | · simp only [sourceFamily, ite_eq_right hn] |
| 308 | · simp only [sourceFamily, hc, ite_self] |
| 309 | |
| 310 | theorem sourceFamily_uniform {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 311 | {f : (SignedLabel B N0 × Frequency) → ℕ → LocalSignedRequest.Point → E} |
| 312 | (hf : LabelSumBounds.UniformClass strip (fun _ _ x => Real.sqrt (strip.zeta x)) 1 f) : |
| 313 | LabelSumBounds.UniformClass strip (fun (_ : SourceIndex) _ x => Real.sqrt (strip.zeta x)) 1 |
| 314 | (sourceFamily f) := by |
| 315 | refine ⟨fun _ _ _ _ => Real.sqrt_nonneg _, ?_, ?_⟩ |
| 316 | · intro I n |
| 317 | by_cases hn : n = I.1.1.val.1 |
| 318 | · cases hc : sourceChoice (B := B) (N0 := N0) I with |
| 319 | | none => rw [sourceFamily_eq_zero _ _ _ (Or.inr hc)]; exact contDiffOn_const |
| 320 | | some l => rw [sourceFamily_eq_some _ _ _ hn l hc]; exact hf.smooth l n |
| 321 | · rw [sourceFamily_eq_zero _ _ _ (Or.inl hn)]; exact contDiffOn_const |
| 322 | · intro m |
| 323 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 324 | refine ⟨C, hC, p, ?_⟩ |
| 325 | intro I n x hx j hj |
| 326 | have hz : (0 : ℝ) ≤ majorant strip (fun _ x => Real.sqrt (strip.zeta x)) 1 C p n x := |
| 327 | majorant_nonneg strip _ 1 hC p n x (Real.sqrt_nonneg _) |
| 328 | by_cases hn : n = I.1.1.val.1 |
| 329 | · cases hc : sourceChoice (B := B) (N0 := N0) I with |
| 330 | | none => |
| 331 | rw [sourceFamily_eq_zero _ _ _ (Or.inr hc)] |
| 332 | simpa only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] using hz |
| 333 | | some l => rw [sourceFamily_eq_some _ _ _ hn l hc]; exact hb l n x hx j hj |
| 334 | · rw [sourceFamily_eq_zero _ _ _ (Or.inl hn)] |
| 335 | simpa only [iteratedFDeriv_fun_zero, Pi.zero_apply, norm_zero] using hz |
| 336 | |
| 337 | noncomputable def nativePotentialSource (B N0 : ℕ) : SourceIndex → ℕ → LocalSignedRequest.Point → ComplexVector := |
| 338 | sourceFamily (fun (l : SignedLabel B N0 × Frequency) n x => copyPotentialCoefficient l.1 l.2 n (x, 0)) |
| 339 | |
| 340 | noncomputable def nativePressureSource (B N0 : ℕ) : SourceIndex → ℕ → LocalSignedRequest.Point → ℂ := |
| 341 | sourceFamily (fun (l : SignedLabel B N0 × Frequency) n x => copyPressureCoefficient l.1 l.2 n (x, 0)) |
| 342 | |
| 343 | theorem nativePotentialSource_uniform : |
| 344 | LabelSumBounds.UniformClass strip (fun (_ : SourceIndex) _ x => Real.sqrt (strip.zeta x)) 1 |
| 345 | (nativePotentialSource (B := B) (N0 := N0)) := by |
| 346 | apply sourceFamily_uniform |
| 347 | apply UniformBlockBounds.uniform_slice |
| 348 | apply copyPotential_uniform.mono_weight (fun _ _ _ _ => Real.sqrt_nonneg _) |
| 349 | intro l n x hx |
| 350 | exact mul_le_of_le_one_right (Real.sqrt_nonneg _) (fullEnvelope_le_one l.1 n x) |
| 351 | |
| 352 | theorem nativePressureSource_uniform : |
| 353 | LabelSumBounds.UniformClass strip (fun (_ : SourceIndex) _ x => Real.sqrt (strip.zeta x)) 1 |
| 354 | (nativePressureSource (B := B) (N0 := N0)) := by |
| 355 | apply sourceFamily_uniform |
| 356 | apply UniformBlockBounds.uniform_slice |
| 357 | apply copyPressure_uniform.mono_weight (fun _ _ _ _ => Real.sqrt_nonneg _) |
| 358 | intro l n x hx |
| 359 | exact mul_le_of_le_one_right (Real.sqrt_nonneg _) (fullEnvelope_le_one l.1 n x) |
| 360 | |
| 361 | noncomputable def potentialFamily (B N0 : ℕ) (i : Fin 3) : |
| 362 | PhysicalCopyBounds.CopyFamily 1 Frequency where |
| 363 | gap := gap |
| 364 | carrier k L := carrier (B := B) (N0 := N0) L k |
| 365 | amplitude k I x := if 0 < x.1.1 then |
| 366 | (ChartScales.Q I.1.val.1 ^ (-ActualPrimary.h)) • |
| 367 | CartesianCopySource.rotatedSource (nativePotentialSource (B := B) (N0 := N0)) (I, k) I.1.val.1 x i |
| 368 | else 0 |
| 369 | |
| 370 | noncomputable def pressureFamily (B N0 : ℕ) : PhysicalCopyBounds.CopyFamily 1 Frequency where |
| 371 | gap := gap |
| 372 | carrier k L := carrier (B := B) (N0 := N0) L k |
| 373 | amplitude k I x := if 0 < x.1.1 then |
| 374 | (ChartScales.Q I.1.val.1 ^ (-(2 * CoordinateAlgebra.A ActualPrimary.h))) • |
| 375 | nativePressureSource (B := B) (N0 := N0) (I, k) I.1.val.1 |
| 376 | (PhysicalClassBounds.cylindricalMap x) |
| 377 | else 0 |
| 378 | |
| 379 | end Labels |
| 380 | |
| 381 | section SourceBounds |
| 382 | |
| 383 | variable {B N0 : ℕ} |
| 384 | |
| 385 | theorem strip_flat_geometry : |
| 386 | ∃ cL cR L : ℝ, ∃ ρ : LocalSignedRequest.Point → ℝ, |
| 387 | PhysicalClassBounds.FlatGeometry strip cL cR L ρ := by |
| 388 | refine ⟨FinalSlowBase.edgeExponent ActualPrimary.nominal / 4, 1, |
| 389 | WeightedRadialPrimitive.logLength (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) |
| 390 | (PrimaryTargetBounds.rightRadius ActualPrimary.nominal), |
| 391 | (fun x => WeightedRadialPrimitive.logPosition (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) |
| 392 | (LocalSignedRequest.profileMap (2 * ActualPrimary.h) x).1), ?_⟩ |
| 393 | exact PhysicalClassBounds.movingStrip_flatGeometry region |
| 394 | (PrimaryTargetBounds.leftRadius_pos ActualPrimary.nominal) |
| 395 | (div_pos (FinalSlowBase.edgeExponent_pos ActualPrimary.nominal) (by norm_num)) zero_lt_one |
| 396 | (ChartScales.epsilon ActualPrimary.h) BaseContextAssembly.slowScale |
| 397 | (ChartScales.epsilon_pos ActualPrimary.h) |
| 398 | (ChartScales.epsilon_le_one ActualPrimary.h ActualPrimary.outgoing.data.h_pos.le) |
| 399 | BaseContextAssembly.one_le_slowScale |
| 400 | |
| 401 | theorem native_source_bounds {E I : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 402 | {f : I → ℕ → LocalSignedRequest.Point → E} |
| 403 | (hf : LabelSumBounds.UniformClass strip (fun _ _ x => Real.sqrt (strip.zeta x)) 1 f) : |
| 404 | LocalPhysicalCopyBounds.LocalSourceBounds strip ActualPrimary.h 1 |
| 405 | (fun _ _ x => Real.sqrt (strip.zeta x)) f := by |
| 406 | refine ⟨hf, strip_flat_geometry, ⟨1 / 2, by norm_num, ?_⟩, fun _ => rfl, |
| 407 | ⟨1, le_rfl, 1, ?_⟩⟩ |
| 408 | · intro l n x hx |
| 409 | exact (Real.sqrt_eq_rpow _).le |
| 410 | · intro n hn |
| 411 | have hS := PhysicalGraphBounds.S_ge_one (show 1 ≤ n by omega) |
| 412 | change max 1 (ChartScales.S n) ≤ 1 * ChartScales.S n ^ 1 |
| 413 | simp only [max_eq_right hS, pow_one, one_mul, le_refl] |
| 414 | |
| 415 | theorem nativePotentialSource_bounds : |
| 416 | LocalPhysicalCopyBounds.LocalSourceBounds strip ActualPrimary.h 1 |
| 417 | (fun (_ : SourceIndex) _ x => Real.sqrt (strip.zeta x)) (nativePotentialSource B N0) := |
| 418 | native_source_bounds nativePotentialSource_uniform |
| 419 | |
| 420 | theorem nativePressureSource_bounds : |
| 421 | LocalPhysicalCopyBounds.LocalSourceBounds strip ActualPrimary.h 1 |
| 422 | (fun (_ : SourceIndex) _ x => Real.sqrt (strip.zeta x)) (nativePressureSource B N0) := |
| 423 | native_source_bounds nativePressureSource_uniform |
| 424 | |
| 425 | end SourceBounds |
| 426 | |
| 427 | section ActualSupport |
| 428 | |
| 429 | variable {B N0 : ℕ} |
| 430 | |
| 431 | theorem near_self (l : SignedLabel B N0) : near l (BaseChartJets.cellBand l.2) := |
| 432 | ⟨(by have hh : 4 ≤ BaseChartJets.cellBand l.2 := label_large l; omega), CommonWindow.self_mem _⟩ |
| 433 | |
| 434 | theorem copyPoint_self (l : SignedLabel B N0) (k : Frequency) (x : ActualSignedGeometry.Native) : |
| 435 | copyPoint l (BaseChartJets.cellBand l.2) k x = |
| 436 | (x.1, (geometry (bandLabel l)).coordinates k x.2) := by |
| 437 | have hQ := ChartScales.Q_pos (BaseChartJets.cellBand l.2) |
| 438 | change (ActualSignedGeometry.slowChange ActualPrimary.h |
| 439 | (ChartScales.Q (BaseChartJets.cellBand l.2)) (ChartScales.Q (BaseChartJets.cellBand l.2)) x.1, _) = _ |
| 440 | apply Prod.ext |
| 441 | · simp only [ActualSignedGeometry.slowChange_apply, PhysicalParticularWave.ratioPower, |
| 442 | div_self (Real.rpow_pos_of_pos hQ _).ne', one_mul] |
| 443 | · rfl |
| 444 | |
| 445 | theorem copied_self {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 446 | (a : ℝ) (f : SignedLabel B N0 → ActualSignedGeometry.Native → E) |
| 447 | (l : SignedLabel B N0) (k : Frequency) (x : ActualSignedGeometry.Native) : |
| 448 | copied a f l (BaseChartJets.cellBand l.2) k x = |
| 449 | f l (x.1, (geometry (bandLabel l)).coordinates k x.2) := by |
| 450 | have hQ := Real.rpow_pos_of_pos (ChartScales.Q_pos (BaseChartJets.cellBand l.2)) a |
| 451 | simp only [copied, ite_eq_left (near_self l), coefficientScale, PhysicalParticularWave.ratioPower, |
| 452 | div_self hQ.ne', one_smul, copyPoint_self] |
| 453 | |
| 454 | theorem attached_pair_support (l : SignedLabel B N0) (x : ActualSignedGeometry.Native) |
| 455 | (hne : ActualPrimary.attachedRawVelocity l.1 l.2 x ≠ 0 ∨ |
| 456 | ActualPrimary.attachedRawPressure l.1 l.2 x ≠ 0) : |
| 457 | WaveEdgeExtension.nativeRadius ActualPrimary.h x ∈ |
| 458 | Ioo (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) (PrimaryTargetBounds.rightRadius ActualPrimary.nominal) ∧ |
| 459 | SimilarityHomogeneity.chartQ ActualPrimary.h x.1 ∈ Ioo (1 / 2 : ℝ) 2 ∧ |
| 460 | x.1 ∈ ActualGaussianCoverage.actualSlowCore ActualPrimary.certificate ActualPrimary.modulation |
| 461 | (ActualPrimary.choice B N0).prepared l.2 ∧ |
| 462 | x.2 ∈ (ActualPrimary.clockWindow l.2).core := by |
| 463 | have hr : WaveEdgeExtension.nativeRadius ActualPrimary.h x ∈ |
| 464 | Ioo (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) (PrimaryTargetBounds.rightRadius ActualPrimary.nominal) := by |
| 465 | by_contra ho |
| 466 | rcases hne with hv | hp |
| 467 | · exact hv (WaveEdgeExtension.nativeExtension_outside ActualPrimary.nominal _ ho) |
| 468 | · exact hp (WaveEdgeExtension.nativeExtension_outside ActualPrimary.nominal _ ho) |
| 469 | have hraw : ActualPrimary.rawVelocity l.1 l.2 x ≠ 0 := by |
| 470 | intro hv |
| 471 | rcases hne with hne | hne |
| 472 | · exact hne (by simp [ActualPrimary.attachedRawVelocity, WaveEdgeExtension.nativeExtension, |
| 473 | WaveEdgeExtension.extension, ActualPrimary.outerRawVelocity, hv]) |
| 474 | · have hp := ActualPrimary.rawPressure_zero_of_velocity_zero l.1 l.2 x hv |
| 475 | exact hne (by simp [ActualPrimary.attachedRawPressure, WaveEdgeExtension.nativeExtension, |
| 476 | WaveEdgeExtension.extension, ActualPrimary.outerRawPressure, hp]) |
| 477 | have hm : ActualPrimary.spatialMask l.2 x.1 ≠ 0 := by |
| 478 | intro hz |
| 479 | exact hraw (by simp [ActualPrimary.rawVelocity, PartitionedCovariance.amplitude, hz]) |
| 480 | refine ⟨hr, ActualPrimary.spatialMask_q_range l.2 x.1 hm, |
| 481 | ActualPrimary.spatialMask_native_support l.2 x.1 hm, ?_⟩ |
| 482 | exact hne.elim (ActualPrimary.attachedRawVelocity_core l.1 l.2 x) |
| 483 | (ActualPrimary.attachedRawPressure_core l.1 l.2 x) |
| 484 | |
| 485 | theorem cut_pair_support (l : SignedLabel B N0) (x : ActualSignedGeometry.Native) |
| 486 | (hne : cutNativeVelocity l x ≠ 0 ∨ cutNativePressure l x ≠ 0) : |
| 487 | WaveEdgeExtension.nativeRadius ActualPrimary.h x ∈ |
| 488 | Ioo (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) (PrimaryTargetBounds.rightRadius ActualPrimary.nominal) ∧ |
| 489 | SimilarityHomogeneity.chartQ ActualPrimary.h x.1 ∈ Ioo (1 / 2 : ℝ) 2 ∧ |
| 490 | x.1 ∈ ActualGaussianCoverage.actualSlowCore ActualPrimary.certificate ActualPrimary.modulation |
| 491 | (ActualPrimary.choice B N0).prepared l.2 ∧ |
| 492 | x.2 ∈ (ActualPrimary.clockWindow l.2).core := by |
| 493 | apply attached_pair_support l x |
| 494 | rcases hne with hv | hp |
| 495 | · left |
| 496 | intro hz |
| 497 | exact hv (by simp [cutNativeVelocity, hz]) |
| 498 | · right |
| 499 | intro hz |
| 500 | exact hp (by simp [cutNativePressure, hz]) |
| 501 | |
| 502 | end ActualSupport |
| 503 | |
| 504 | section SupportedCells |
| 505 | |
| 506 | variable {B N0 : ℕ} |
| 507 | |
| 508 | abbrev LiftPoint := PhysicalGraphBounds.LiftPoint |
| 509 | |
| 510 | noncomputable def slowInput (x : LiftPoint) : PhaseCalculus.Slow := |
| 511 | (ActualSignedGeometry.meanEquiv.symm (PhysicalClassBounds.cylindricalMap x)).1 |
| 512 | |
| 513 | theorem slowInput_continuous : Continuous slowInput := |
| 514 | (ActualSignedGeometry.meanEquiv.symm.continuous.comp |
| 515 | CartesianCopySource.cylindricalMap_continuous).fst |
| 516 | |
| 517 | noncomputable def nativeAt (L : PhysicalWaveSum.BandLabel) (k : Frequency) (x : LiftPoint) : |
| 518 | ActualSignedGeometry.Native := (slowInput x, (geometry L).coordinates k x.2) |
| 519 | |
| 520 | theorem copyAmplitude_nativeAt (l : SignedLabel B N0) (k : Frequency) (x : LiftPoint) : |
| 521 | copyAmplitude l k (BaseChartJets.cellBand l.2) (PhysicalClassBounds.cylindricalMap x, 0) = |
| 522 | cutNativeVelocity l (nativeAt (bandLabel l) k x) := by |
| 523 | rw [copyAmplitude, copied_self] |
| 524 | rfl |
| 525 | |
| 526 | theorem copyPressure_nativeAt (l : SignedLabel B N0) (k : Frequency) (x : LiftPoint) : |
| 527 | copyPressureCoefficient l k (BaseChartJets.cellBand l.2) (PhysicalClassBounds.cylindricalMap x, 0) = |
| 528 | cutNativePressure l (nativeAt (bandLabel l) k x) := by |
| 529 | rw [copyPressureCoefficient, copied_self] |
| 530 | rfl |
| 531 | |
| 532 | theorem sourceFamily_nonzero {E : Type} [Zero E] |
| 533 | (f : (SignedLabel B N0 × Frequency) → ℕ → LocalSignedRequest.Point → E) |
| 534 | (I : SourceIndex) (n : ℕ) (x : LocalSignedRequest.Point) |
| 535 | (hne : sourceFamily f I n x ≠ 0) : |
| 536 | ∃ l : SignedLabel B N0, bandLabel l = I.1.1 ∧ I.1.2.val = 1 ∧ n = I.1.1.val.1 ∧ |
| 537 | f (l, I.2) n x ≠ 0 := by |
| 538 | by_cases hn : n = I.1.1.val.1 |
| 539 | · by_cases hL : I.1.1 ∈ active (B := B) (N0 := N0) |
| 540 | · by_cases hI : I.1.2.val = 1 |
| 541 | · refine ⟨selected I.1.1 hL, selected_label _ _, hI, hn, ?_⟩ |
| 542 | simpa only [sourceFamily, ite_eq_left hn, sourceChoice, dite_eq_left hL, ite_eq_left hI] using hne |
| 543 | · exact (hne (by simp only [sourceFamily, ite_eq_left hn, sourceChoice, dite_eq_left hL, ite_eq_right hI])).elim |
| 544 | · exact (hne (by simp only [sourceFamily, ite_eq_left hn, sourceChoice, dite_eq_right hL])).elim |
| 545 | · exact (hne (by simp only [sourceFamily, ite_eq_right hn])).elim |
| 546 | |
| 547 | theorem potential_amplitude_data (i : Fin 3) (k : Frequency) (I : PhysicalWaveSum.WaveIndex 1) |
| 548 | (x : LiftPoint) (hx : (potentialFamily B N0 i).amplitude k I x ≠ 0) : |
| 549 | ∃ l : SignedLabel B N0, bandLabel l = I.1 ∧ I.2.val = 1 ∧ 0 < x.1.1 ∧ |
| 550 | cutNativeVelocity l (nativeAt I.1 k x) ≠ 0 := by |
| 551 | have ht : 0 < x.1.1 := by |
| 552 | by_contra ht |
| 553 | exact hx (by simp only [potentialFamily, ite_eq_right ht]) |
| 554 | have hs : nativePotentialSource B N0 (I, k) I.1.val.1 (PhysicalClassBounds.cylindricalMap x) ≠ 0 := by |
| 555 | intro hz |
| 556 | exact hx (by simp only [potentialFamily, ite_eq_left ht, CartesianCopySource.rotatedSource, |
| 557 | hz, map_zero, Pi.zero_apply, smul_zero]) |
| 558 | obtain ⟨l, hl, hI, _, hn⟩ := sourceFamily_nonzero _ (I, k) I.1.val.1 |
| 559 | (PhysicalClassBounds.cylindricalMap x) hs |
| 560 | have hm : I.1.val.1 = BaseChartJets.cellBand l.2 := |
| 561 | (congrArg (fun L : PhysicalWaveSum.BandLabel => L.val.1) hl).symm |
| 562 | have ha : copyAmplitude l k I.1.val.1 (PhysicalClassBounds.cylindricalMap x, 0) ≠ 0 := by |
| 563 | intro hz |
| 564 | exact hn (by simp [copyPotentialCoefficient, CurlClassBounds.normalCoefficient, |
| 565 | CurlClassBounds.normalCross, hz]) |
| 566 | rw [hm, copyAmplitude_nativeAt, hl] at ha |
| 567 | exact ⟨l, hl, hI, ht, ha⟩ |
| 568 | |
| 569 | theorem pressure_amplitude_data (k : Frequency) (I : PhysicalWaveSum.WaveIndex 1) |
| 570 | (x : LiftPoint) (hx : (pressureFamily B N0).amplitude k I x ≠ 0) : |
| 571 | ∃ l : SignedLabel B N0, bandLabel l = I.1 ∧ I.2.val = 1 ∧ 0 < x.1.1 ∧ |
| 572 | cutNativePressure l (nativeAt I.1 k x) ≠ 0 := by |
| 573 | have ht : 0 < x.1.1 := by |
| 574 | by_contra ht |
| 575 | exact hx (by simp only [pressureFamily, ite_eq_right ht]) |
| 576 | have hs : nativePressureSource B N0 (I, k) I.1.val.1 (PhysicalClassBounds.cylindricalMap x) ≠ 0 := by |
| 577 | intro hz |
| 578 | exact hx (by simp only [pressureFamily, ite_eq_left ht, hz, smul_zero]) |
| 579 | obtain ⟨l, hl, hI, _, hn⟩ := sourceFamily_nonzero _ (I, k) I.1.val.1 |
| 580 | (PhysicalClassBounds.cylindricalMap x) hs |
| 581 | have hm : I.1.val.1 = BaseChartJets.cellBand l.2 := |
| 582 | (congrArg (fun L : PhysicalWaveSum.BandLabel => L.val.1) hl).symm |
| 583 | rw [hm, copyPressure_nativeAt, hl] at hn |
| 584 | exact ⟨l, hl, hI, ht, hn⟩ |
| 585 | |
| 586 | noncomputable def baseCells (L : PhysicalWaveSum.BandLabel) : |
| 587 | PeriodizedWaveBounds.Cells LiftPoint Frequency := |
| 588 | PeriodizedWaveBounds.nativeCells (fun _ => geometry L) |
| 589 | (fun _ => (ActualSignedGeometry.clockWindow ActualPrimary.slots L.val.1).core) |
| 590 | (fun _ => (ActualSignedGeometry.clockWindow ActualPrimary.slots L.val.1).core_compact) |
| 591 | (fun _ => (ActualSignedGeometry.clockWindow_injective ActualPrimary.slots ActualPrimary.vectors_det |
| 592 | ActualPrimary.outgoing.data.h_pos.le L.property (gap L)).mono |
| 593 | (Set.image_mono (ActualSignedGeometry.clockWindow ActualPrimary.slots L.val.1).core_subset_outer)) |
| 594 | |
| 595 | noncomputable def slowCell (L : PhysicalWaveSum.BandLabel) : Set LiftPoint := |
| 596 | if hL : L ∈ active (B := B) (N0 := N0) then slowInput ⁻¹' |
| 597 | ActualGaussianCoverage.actualSlowCore ActualPrimary.certificate ActualPrimary.modulation |
| 598 | (ActualPrimary.choice B N0).prepared (selected L hL).2 |
| 599 | else ∅ |
| 600 | |
| 601 | theorem slowCell_closed (L : PhysicalWaveSum.BandLabel) : |
| 602 | IsClosed (slowCell (B := B) (N0 := N0) L) := by |
| 603 | unfold slowCell |
| 604 | split_ifs with hL |
| 605 | · exact (ActualGaussianCoverage.actualSlowCore_closed _ _ _ _).preimage slowInput_continuous |
| 606 | · exact isClosed_empty |
| 607 | |
| 608 | /-- Closed slow support is retained alongside the individual native |
| 609 | rectangle. Phase bounds are never requested outside this support. -/ |
| 610 | noncomputable def cells (L : PhysicalWaveSum.BandLabel) : |
| 611 | PeriodizedWaveBounds.Cells LiftPoint Frequency where |
| 612 | carrier n k := (baseCells L).carrier n k ∩ slowCell (B := B) (N0 := N0) L |
| 613 | closed n k := ((baseCells L).closed n k).inter (slowCell_closed L) |
| 614 | locallyFinite n := ((baseCells L).locallyFinite n).subset (fun _ => inter_subset_left) |
| 615 | unique n i j x hi hj := (baseCells L).unique n i j x hi.1 hj.1 |
| 616 | |
| 617 | theorem cells_bandLabel (l : SignedLabel B N0) (n : ℕ) (k : Frequency) (x : LiftPoint) : |
| 618 | x ∈ (cells (B := B) (N0 := N0) (bandLabel l)).carrier n k ↔ |
| 619 | (nativeAt (bandLabel l) k x).2 ∈ (ActualPrimary.clockWindow l.2).core ∧ |
| 620 | (nativeAt (bandLabel l) k x).1 ∈ |
| 621 | ActualGaussianCoverage.actualSlowCore ActualPrimary.certificate ActualPrimary.modulation |
| 622 | (ActualPrimary.choice B N0).prepared l.2 := by |
| 623 | have hl : bandLabel l ∈ active (B := B) (N0 := N0) := ⟨l, rfl⟩ |
| 624 | simp only [cells, baseCells, PeriodizedWaveBounds.nativeCells, PeriodizedWaveBounds.nativeCell, |
| 625 | slowCell, dite_eq_left hl, selected_eq, mem_inter_iff, Set.mem_ofPred_eq, mem_preimage, |
| 626 | nativeAt] |
| 627 | rfl |
| 628 | |
| 629 | noncomputable def potentialCells (B N0 : ℕ) (i : Fin 3) : |
| 630 | PhysicalCopyBounds.SupportCells (potentialFamily B N0 i) where |
| 631 | cells := cells |
| 632 | support I k x hx := by |
| 633 | obtain ⟨l, hl, _, _, hn⟩ := potential_amplitude_data i k I x hx |
| 634 | have hi := cut_pair_support l (nativeAt I.1 k x) (Or.inl hn) |
| 635 | rw [← hl, cells_bandLabel] |
| 636 | simpa only [hl] using And.intro hi.2.2.2 hi.2.2.1 |
| 637 | |
| 638 | noncomputable def pressureCells (B N0 : ℕ) : |
| 639 | PhysicalCopyBounds.SupportCells (pressureFamily B N0) where |
| 640 | cells := cells |
| 641 | support I k x hx := by |
| 642 | obtain ⟨l, hl, _, _, hn⟩ := pressure_amplitude_data k I x hx |
| 643 | have hi := cut_pair_support l (nativeAt I.1 k x) (Or.inr hn) |
| 644 | rw [← hl, cells_bandLabel] |
| 645 | simpa only [hl] using And.intro hi.2.2.2 hi.2.2.1 |
| 646 | |
| 647 | end SupportedCells |
| 648 | |
| 649 | section PhysicalSupport |
| 650 | |
| 651 | variable {B N0 : ℕ} |
| 652 | |
| 653 | noncomputable def innerRadius : ℝ := PrimaryTargetBounds.leftRadius ActualPrimary.nominal / 4 |
| 654 | noncomputable def outerRadius : ℝ := 2 * PrimaryTargetBounds.rightRadius ActualPrimary.nominal |
| 655 | |
| 656 | theorem innerRadius_pos : 0 < innerRadius := |
| 657 | div_pos (PrimaryTargetBounds.leftRadius_pos ActualPrimary.nominal) (by norm_num) |
| 658 | |
| 659 | theorem cut_pair_mask (l : SignedLabel B N0) (x : ActualSignedGeometry.Native) |
| 660 | (hne : cutNativeVelocity l x ≠ 0 ∨ cutNativePressure l x ≠ 0) : |
| 661 | ActualPrimary.spatialMask l.2 x.1 ≠ 0 := by |
| 662 | intro hm |
| 663 | have hv : ActualPrimary.rawVelocity l.1 l.2 x = 0 := by |
| 664 | simp [ActualPrimary.rawVelocity, PartitionedCovariance.amplitude, hm] |
| 665 | have hp := ActualPrimary.rawPressure_zero_of_velocity_zero l.1 l.2 x hv |
| 666 | rcases hne with hne | hne |
| 667 | · apply hne |
| 668 | simp [cutNativeVelocity, ActualPrimary.attachedRawVelocity, WaveEdgeExtension.nativeExtension, |
| 669 | WaveEdgeExtension.extension, ActualPrimary.outerRawVelocity, hv] |
| 670 | · apply hne |
| 671 | simp [cutNativePressure, ActualPrimary.attachedRawPressure, WaveEdgeExtension.nativeExtension, |
| 672 | WaveEdgeExtension.extension, ActualPrimary.outerRawPressure, hp] |
| 673 | |
| 674 | theorem cut_pair_domain (l : SignedLabel B N0) (L : PhysicalWaveSum.BandLabel) |
| 675 | (k : Frequency) (x : LiftPoint) (ht : 0 < x.1.1) |
| 676 | (hne : cutNativeVelocity l (nativeAt L k x) ≠ 0 ∨ cutNativePressure l (nativeAt L k x) ≠ 0) : |
| 677 | PhysicalClassBounds.cylindricalMap x ∈ strip.domain := by |
| 678 | have hd := cut_pair_support l (nativeAt L k x) hne |
| 679 | apply (BaseContextAssembly.nativeStrip_mem ActualPrimary.nominal region _).mpr |
| 680 | exact ⟨⟨ht, hd.2.1⟩, hd.1⟩ |
| 681 | |
| 682 | theorem cut_pair_annulus (l : SignedLabel B N0) (L : PhysicalWaveSum.BandLabel) |
| 683 | (k : Frequency) (x : LiftPoint) (ht : 0 < x.1.1) |
| 684 | (hne : cutNativeVelocity l (nativeAt L k x) ≠ 0 ∨ cutNativePressure l (nativeAt L k x) ≠ 0) : |
| 685 | PhysicalGraphBounds.liftXY x ∈ PhysicalGraphBounds.annulus innerRadius outerRadius ∧ |
| 686 | ‖PhysicalGraphBounds.liftZT x‖ ≤ 2 := by |
| 687 | have hd := cut_pair_support l (nativeAt L k x) hne |
| 688 | let q := SimilarityCoordinates.coordinateQ (2 * ActualPrimary.h) (x.1.1, x.1.2.2.2) |
| 689 | have hqlo : (1 / 2 : ℝ) < q := hd.2.1.1 |
| 690 | have hqhi : q < 2 := hd.2.1.2 |
| 691 | have hq : 0 < q := lt_trans (by norm_num) hqlo |
| 692 | have hs := Real.sqrt_pos.mpr hq |
| 693 | have hslo : (1 / 2 : ℝ) ≤ Real.sqrt q := |
| 694 | (Real.le_sqrt (by norm_num) hq.le).mpr (by nlinarith) |
| 695 | have hshi : Real.sqrt q ≤ 2 := |
| 696 | (Real.sqrt_le_left (by norm_num)).mpr (by linarith) |
| 697 | have hradius : WaveEdgeExtension.nativeRadius ActualPrimary.h (nativeAt L k x) = |
| 698 | PolarCharts.radius (PhysicalGraphBounds.liftXY x) / Real.sqrt q := by |
| 699 | rw [WaveEdgeExtension.nativeRadius_eq_qLength] |
| 700 | rfl |
| 701 | rw [hradius] at hd |
| 702 | have hrlo : PrimaryTargetBounds.leftRadius ActualPrimary.nominal * Real.sqrt q < |
| 703 | PolarCharts.radius (PhysicalGraphBounds.liftXY x) := |
| 704 | (lt_div_iff₀ hs).mp hd.1.1 |
| 705 | have hrhi : PolarCharts.radius (PhysicalGraphBounds.liftXY x) < |
| 706 | PrimaryTargetBounds.rightRadius ActualPrimary.nominal * Real.sqrt q := |
| 707 | (div_lt_iff₀ hs).mp hd.1.2 |
| 708 | have ha := PrimaryTargetBounds.leftRadius_pos ActualPrimary.nominal |
| 709 | have hb := ha.trans (PrimaryTargetBounds.radii_ordered ActualPrimary.nominal) |
| 710 | have hnhi : ‖PhysicalGraphBounds.liftXY x‖ ≤ outerRadius := by |
| 711 | apply (PolarCharts.norm_le_radius _).trans |
| 712 | change _ ≤ 2 * PrimaryTargetBounds.rightRadius ActualPrimary.nominal |
| 713 | nlinarith |
| 714 | have hnlo : innerRadius ≤ ‖PhysicalGraphBounds.liftXY x‖ := by |
| 715 | have hh := PolarCharts.radius_le_two_norm (PhysicalGraphBounds.liftXY x) |
| 716 | change PrimaryTargetBounds.leftRadius ActualPrimary.nominal / 4 ≤ _ |
| 717 | nlinarith |
| 718 | refine ⟨⟨?_, hnlo⟩, ?_⟩ |
| 719 | · simpa only [Metric.mem_closedBall, dist_zero_right] using hnhi |
| 720 | · have hz := ActualSignedPhysicalData.normalized_slow_norm |
| 721 | ActualPrimary.outgoing.data.h_pos ActualPrimary.outgoing.data.h_lt_half ht hqlo.le hqhi.le |
| 722 | change max ‖x.1.2.2.2‖ ‖x.1.1‖ ≤ 2 |
| 723 | change max ‖x.1.1‖ ‖x.1.2.2.2‖ ≤ 2 at hz |
| 724 | simpa only [max_comm] using hz |
| 725 | |
| 726 | theorem liftXY_common (h : ℝ) (n d : ℕ) (w : ProblemStatement.SpaceTime) : |
| 727 | PhysicalGraphBounds.liftXY (PhysicalWaveSum.commonLift h n d w) = |
| 728 | PhysicalGraphBounds.scaledRadial n w := by |
| 729 | exact PhysicalGraphBounds.liftXY_physicalLift h n w |
| 730 | |
| 731 | theorem liftZT_common (h : ℝ) (n d : ℕ) (w : ProblemStatement.SpaceTime) : |
| 732 | PhysicalGraphBounds.liftZT (PhysicalWaveSum.commonLift h n d w) = |
| 733 | PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w) := rfl |
| 734 | |
| 735 | theorem slowInput_common (h : ℝ) (n d : ℕ) (w : ProblemStatement.SpaceTime) : |
| 736 | slowInput (PhysicalWaveSum.commonLift h n d w) = |
| 737 | ActualSignedPhysicalData.nativeSlow (PhysicalMeanJetBounds.graph h n 0 w) := rfl |
| 738 | |
| 739 | theorem carrier_center (L : PhysicalWaveSum.BandLabel) (k : Frequency) : |
| 740 | (carrier (B := B) (N0 := N0) L k).center = |
| 741 | ActualSignedPhysicalData.center (h := ActualPrimary.h) L.val k := by |
| 742 | by_cases hL : L ∈ active (B := B) (N0 := N0) |
| 743 | · rw [carrier, dite_eq_left hL, selectedCarrier_center] |
| 744 | have he : spatialLabel (selected (B := B) (N0 := N0) L hL) = L.val := |
| 745 | congrArg Subtype.val (selected_label (B := B) (N0 := N0) L hL) |
| 746 | rw [he] |
| 747 | · simp only [carrier, dite_eq_right hL, ActualSignedPhysicalData.carrier] |
| 748 | |
| 749 | theorem carrier_integer (L : PhysicalWaveSum.BandLabel) (k : Frequency) : |
| 750 | ∃ m : ℤ, (ChartScales.carrier ActualPrimary.h L.val.1 : ℝ) * |
| 751 | (carrier (B := B) (N0 := N0) L k).angular = m := by |
| 752 | by_cases hL : L ∈ active (B := B) (N0 := N0) |
| 753 | · refine ⟨PrimaryGeometryAssembly.angularMode ActualPrimary.certificate ActualPrimary.modulation |
| 754 | (ActualPrimary.choice B N0).prepared (selected L hL).1 (selected L hL).2, ?_⟩ |
| 755 | rw [carrier, dite_eq_left hL, ← selected_band L hL] |
| 756 | exact PrimaryGeometryAssembly.carrier_mul_phase_p _ _ _ ActualPrimary.slots.radius_pos _ _ |
| 757 | · exact ⟨0, by simp [carrier, hL, ActualSignedPhysicalData.carrier]⟩ |
| 758 | |
| 759 | theorem gap_bound (L : PhysicalWaveSum.BandLabel) : gap L ≤ CommonWindow.gap ActualPrimary.h := by |
| 760 | have hh := CommonWindow.native_le_index_add ActualPrimary.h ActualPrimary.outgoing.data.h_pos.le L.val.1 |
| 761 | unfold gap |
| 762 | omega |
| 763 | |
| 764 | theorem gap_native (L : PhysicalWaveSum.BandLabel) : gap L ≤ ChartScales.nativeIndex ActualPrimary.h L.val.1 := |
| 765 | Nat.sub_le _ _ |
| 766 | |
| 767 | theorem physicalPosition_graph (n d : ℕ) (w : ProblemStatement.SpaceTime) : |
| 768 | ActualPrimary.physicalPosition n (PhysicalMeanJetBounds.graph ActualPrimary.h n d w) = |
| 769 | PhysicalWaveSum.physicalPosition w := by |
| 770 | funext i |
| 771 | fin_cases i |
| 772 | · change Real.sqrt (ChartScales.Q n) * (PhysicalMeanJetBounds.graph ActualPrimary.h n d w).1 = |
| 773 | PolarCharts.radius (PhysicalGraphBounds.radialProjection w) |
| 774 | rw [PhysicalMeanJetBounds.graph_radius, ← PhysicalGraphBounds.unscale_radial n w, |
| 775 | PolarCharts.radius_smul (Real.rpow_pos_of_pos (ChartScales.Q_pos n) _), Real.sqrt_eq_rpow] |
| 776 | · change ChartScales.Q n ^ CoordinateAlgebra.D ActualPrimary.h * |
| 777 | (PhysicalMeanJetBounds.graph ActualPrimary.h n d w).2.1.2 = w.2 2 |
| 778 | rw [PhysicalMeanJetBounds.graph_slow, ← mul_assoc, |
| 779 | ← Real.rpow_add (ChartScales.Q_pos n)] |
| 780 | simp only [add_neg_cancel, Real.rpow_zero, one_mul] |
| 781 | · change ChartScales.Q n * (PhysicalMeanJetBounds.graph ActualPrimary.h n d w).2.1.1 = 1 - w.1 |
| 782 | rw [PhysicalMeanJetBounds.graph_slow, mul_div_cancel₀ _ (ChartScales.Q_pos n).ne'] |
| 783 | |
| 784 | theorem physicalScale_graph (n d : ℕ) {w : ProblemStatement.SpaceTime} |
| 785 | (hw : w ∈ PhysicalWaveSum.preterminal) : |
| 786 | ActualPrimary.physicalScale n (PhysicalMeanJetBounds.graph ActualPrimary.h n d w) = |
| 787 | PhysicalWaveSum.physicalQ ActualPrimary.h w := by |
| 788 | change ChartScales.Q n * SimilarityCoordinates.coordinateQ (2 * ActualPrimary.h) _ = _ |
| 789 | rw [PhysicalMeanJetBounds.graph_q_eq ActualPrimary.outgoing.data.h_pos |
| 790 | ActualPrimary.outgoing.data.h_lt_half n d hw, |
| 791 | mul_div_cancel₀ _ (ChartScales.Q_pos n).ne'] |
| 792 | |
| 793 | theorem spatialMask_physical (l : SignedLabel B N0) (d : ℕ) {w : ProblemStatement.SpaceTime} |
| 794 | (hw : w ∈ PhysicalWaveSum.preterminal) : |
| 795 | ActualPrimary.spatialMask l.2 (slowInput (PhysicalWaveSum.commonLift ActualPrimary.h |
| 796 | (BaseChartJets.cellBand l.2) d w)) = |
| 797 | PhysicalWaveSum.physicalMask (CoordinateAlgebra.D ActualPrimary.h) (bandLabel l).val |
| 798 | (PhysicalWaveSum.physicalParams ActualPrimary.h w) := by |
| 799 | let x := PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) d w |
| 800 | have he := ActualPrimaryCovariance.nativePoint_mask (BaseChartJets.cellBand l.2) (x := x) |
| 801 | (PhysicalMeanJetBounds.graph_time_pos ActualPrimary.h (BaseChartJets.cellBand l.2) d hw) l.2 |
| 802 | have hp : ActualPrimaryCovariance.nativePoint (BaseChartJets.cellBand l.2) x l.2 = |
| 803 | slowInput (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) d w) := |
| 804 | ActualPrimary.nativeSlow_toAbsolute l.2 x |
| 805 | rw [hp] at he |
| 806 | dsimp only [x] at he |
| 807 | rw [physicalPosition_graph, physicalScale_graph _ _ hw] at he |
| 808 | exact he |
| 809 | |
| 810 | end PhysicalSupport |
| 811 | |
| 812 | section PhysicalFamilies |
| 813 | |
| 814 | variable {B N0 : ℕ} |
| 815 | |
| 816 | theorem width_physical (L : PhysicalWaveSum.BandLabel) (k : Frequency) |
| 817 | (w : ProblemStatement.SpaceTime) |
| 818 | (hc : (geometry L).coordinates k |
| 819 | (PhysicalWaveSum.commonLift ActualPrimary.h L.val.1 (gap L) w).2 ∈ |
| 820 | (ActualSignedGeometry.clockWindow ActualPrimary.slots L.val.1).core) : |
| 821 | |PhysicalGraphBounds.etaCoordinate (PhysicalGraphBounds.nativeGraph ActualPrimary.h L.val.1 w - |
| 822 | (carrier (B := B) (N0 := N0) L k).center)| ≤ ActualPrimary.slots.radius := by |
| 823 | rw [carrier_center (B := B) (N0 := N0)] |
| 824 | have hh := ActualSignedPhysicalData.width_on_core ActualPrimary.slots L.val (gap L) k |
| 825 | (PhysicalWaveSum.commonLift ActualPrimary.h L.val.1 (gap L) w).2 hc |
| 826 | rw [← PhysicalCopyBounds.nativeGraph_eq_cover_commonLift] at hh |
| 827 | exact hh |
| 828 | |
| 829 | theorem potential_support (B N0 : ℕ) (i : Fin 3) : |
| 830 | LocalPhysicalCopyBounds.SupportData (potentialFamily B N0 i) innerRadius outerRadius |
| 831 | ActualPrimary.h ActualPrimary.slots.radius 2 (CommonWindow.gap ActualPrimary.h) where |
| 832 | gap_le := gap_bound |
| 833 | gap_native := gap_native |
| 834 | angular_integer := fun k L => carrier_integer L k |
| 835 | geometry_support k I w hv := by |
| 836 | obtain ⟨l, hl, _, ht, hn⟩ := potential_amplitude_data i k I _ hv |
| 837 | have hi := cut_pair_annulus l I.1 k _ ht (Or.inl hn) |
| 838 | refine ⟨?_, ?_, ?_⟩ |
| 839 | · simpa only [liftXY_common] using hi.1 |
| 840 | · simpa only [liftZT_common] using hi.2 |
| 841 | · apply width_physical |
| 842 | have hc := (cut_pair_support l (nativeAt I.1 k _) (Or.inl hn)).2.2.2 |
| 843 | have he : BaseChartJets.cellBand l.2 = I.1.val.1 := |
| 844 | congrArg (fun L : PhysicalWaveSum.BandLabel => L.val.1) hl |
| 845 | change (geometry I.1).coordinates k _ ∈ |
| 846 | (ActualSignedGeometry.clockWindow ActualPrimary.slots (BaseChartJets.cellBand l.2)).core at hc |
| 847 | rwa [he] at hc |
| 848 | mask_support k I w hw hv := by |
| 849 | obtain ⟨l, hl, _, _, hn⟩ := potential_amplitude_data i k I _ hv |
| 850 | have hm := cut_pair_mask l (nativeAt I.1 k _) (Or.inl hn) |
| 851 | change ActualPrimary.spatialMask l.2 (slowInput (PhysicalWaveSum.commonLift |
| 852 | ActualPrimary.h I.1.val.1 (gap I.1) w)) ≠ 0 at hm |
| 853 | have he : BaseChartJets.cellBand l.2 = I.1.val.1 := |
| 854 | congrArg (fun L : PhysicalWaveSum.BandLabel => L.val.1) hl |
| 855 | rw [← he, spatialMask_physical l _ hw] at hm |
| 856 | simpa only [hl] using hm |
| 857 | |
| 858 | theorem pressure_support (B N0 : ℕ) : |
| 859 | LocalPhysicalCopyBounds.SupportData (pressureFamily B N0) innerRadius outerRadius |
| 860 | ActualPrimary.h ActualPrimary.slots.radius 2 (CommonWindow.gap ActualPrimary.h) where |
| 861 | gap_le := gap_bound |
| 862 | gap_native := gap_native |
| 863 | angular_integer := fun k L => carrier_integer L k |
| 864 | geometry_support k I w hv := by |
| 865 | obtain ⟨l, hl, _, ht, hn⟩ := pressure_amplitude_data k I _ hv |
| 866 | have hi := cut_pair_annulus l I.1 k _ ht (Or.inr hn) |
| 867 | refine ⟨?_, ?_, ?_⟩ |
| 868 | · simpa only [liftXY_common] using hi.1 |
| 869 | · simpa only [liftZT_common] using hi.2 |
| 870 | · apply width_physical |
| 871 | have hc := (cut_pair_support l (nativeAt I.1 k _) (Or.inr hn)).2.2.2 |
| 872 | have he : BaseChartJets.cellBand l.2 = I.1.val.1 := |
| 873 | congrArg (fun L : PhysicalWaveSum.BandLabel => L.val.1) hl |
| 874 | change (geometry I.1).coordinates k _ ∈ |
| 875 | (ActualSignedGeometry.clockWindow ActualPrimary.slots (BaseChartJets.cellBand l.2)).core at hc |
| 876 | rwa [he] at hc |
| 877 | mask_support k I w hw hv := by |
| 878 | obtain ⟨l, hl, _, _, hn⟩ := pressure_amplitude_data k I _ hv |
| 879 | have hm := cut_pair_mask l (nativeAt I.1 k _) (Or.inr hn) |
| 880 | change ActualPrimary.spatialMask l.2 (slowInput (PhysicalWaveSum.commonLift |
| 881 | ActualPrimary.h I.1.val.1 (gap I.1) w)) ≠ 0 at hm |
| 882 | have he : BaseChartJets.cellBand l.2 = I.1.val.1 := |
| 883 | congrArg (fun L : PhysicalWaveSum.BandLabel => L.val.1) hl |
| 884 | rw [← he, spatialMask_physical l _ hw] at hm |
| 885 | simpa only [hl] using hm |
| 886 | |
| 887 | /-- The actual initial primary potential. The physical construction is |
| 888 | zero on the unused future side of the preterminal domain. -/ |
| 889 | noncomputable def potential (B N0 : ℕ) : ProblemStatement.VelocityField := |
| 890 | PhysicalCopyBounds.vectorSum (potentialFamily B N0) innerRadius ActualPrimary.h ActualPrimary.slots.radius |
| 891 | |
| 892 | noncomputable def pressure (B N0 : ℕ) : ProblemStatement.PressureField := |
| 893 | fun w => ((pressureFamily B N0).sum innerRadius ActualPrimary.h ActualPrimary.slots.radius w).re |
| 894 | |
| 895 | noncomputable def copyPotential (B N0 : ℕ) : MixedAxisPreservation.CopyPotential ActualPrimary.h where |
| 896 | Copy := Frequency |
| 897 | harmonics := 1 |
| 898 | family := potentialFamily B N0 |
| 899 | inner := innerRadius |
| 900 | outer := outerRadius |
| 901 | width := ActualPrimary.slots.radius |
| 902 | axialRadius := 2 |
| 903 | gap := CommonWindow.gap ActualPrimary.h |
| 904 | inner_pos := innerRadius_pos |
| 905 | support := potential_support B N0 |
| 906 | cells := potentialCells B N0 |
| 907 | |
| 908 | theorem copyPotential_field (B N0 : ℕ) : (copyPotential B N0).field = potential B N0 := rfl |
| 909 | |
| 910 | end PhysicalFamilies |
| 911 | |
| 912 | section NativeProfiles |
| 913 | |
| 914 | variable {B N0 : ℕ} |
| 915 | |
| 916 | noncomputable def profileRegion (L : PhysicalWaveSum.BandLabel) : Set PhaseCalculus.Slow := |
| 917 | if hL : L ∈ active (B := B) (N0 := N0) then |
| 918 | (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier |
| 919 | (selected L hL).2 |
| 920 | else ∅ |
| 921 | |
| 922 | theorem profileRegion_open (L : PhysicalWaveSum.BandLabel) : |
| 923 | IsOpen (profileRegion (B := B) (N0 := N0) L) := by |
| 924 | unfold profileRegion |
| 925 | split_ifs |
| 926 | · exact (PrimaryGeometryAssembly.domain _ _).isOpen _ |
| 927 | · exact isOpen_empty |
| 928 | |
| 929 | theorem carrierProfiles : |
| 930 | PhaseJetBounds.PolynomialJets |
| 931 | (PhysicalCopyBounds.copyBandDomain (fun (_ : Frequency) L => profileRegion (B := B) (N0 := N0) L) |
| 932 | (fun _ L => profileRegion_open L)) |
| 933 | (fun i p => ((carrier (B := B) (N0 := N0) i.2 i.1).F p, |
| 934 | (carrier (B := B) (N0 := N0) i.2 i.1).G p)) := by |
| 935 | have hfg := (ActualPrimary.phases B N0 0).baseF.pair (ActualPrimary.phases B N0 0).baseG |
| 936 | refine ⟨?_, ?_⟩ |
| 937 | · intro i |
| 938 | by_cases hL : i.2 ∈ active (B := B) (N0 := N0) |
| 939 | · change ContDiffOn ℝ ∞ (fun p => ((carrier (B := B) (N0 := N0) i.2 i.1).F p, |
| 940 | (carrier (B := B) (N0 := N0) i.2 i.1).G p)) (profileRegion (B := B) (N0 := N0) i.2) |
| 941 | simp only [carrier, profileRegion, dite_eq_left hL] |
| 942 | exact hfg.smooth (selected i.2 hL).2 |
| 943 | · intro p hp |
| 944 | have hfalse : False := by |
| 945 | simp only [PhysicalCopyBounds.copyBandDomain, profileRegion, dite_eq_right hL, mem_empty_iff_false] at hp |
| 946 | exact hfalse.elim |
| 947 | · intro m |
| 948 | obtain ⟨C, hC, p, hb⟩ := hfg.bound m |
| 949 | refine ⟨C, hC, p, ?_⟩ |
| 950 | intro i j hj x hx |
| 951 | by_cases hL : i.2 ∈ active (B := B) (N0 := N0) |
| 952 | · change x ∈ profileRegion (B := B) (N0 := N0) i.2 at hx |
| 953 | simp only [profileRegion, dite_eq_left hL] at hx |
| 954 | change ‖iteratedFDeriv ℝ j (fun p => ((carrier (B := B) (N0 := N0) i.2 i.1).F p, |
| 955 | (carrier (B := B) (N0 := N0) i.2 i.1).G p)) x‖ ≤ |
| 956 | C * ChartScales.S i.2.val.1 ^ p |
| 957 | rw [carrier, dite_eq_left hL, ← selected_band i.2 hL] |
| 958 | exact hb (selected i.2 hL).2 j hj x hx |
| 959 | · have hfalse : False := by |
| 960 | simp only [PhysicalCopyBounds.copyBandDomain, profileRegion, dite_eq_right hL, mem_empty_iff_false] at hx |
| 961 | exact hfalse.elim |
| 962 | |
| 963 | theorem profileRegion_contains (L : PhysicalWaveSum.BandLabel) (k : Frequency) |
| 964 | (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) |
| 965 | (hc : PhysicalWaveSum.commonLift ActualPrimary.h L.val.1 (gap L) w ∈ |
| 966 | (cells (B := B) (N0 := N0) L).carrier L.val.1 k) |
| 967 | (j : PolarCharts.Index) |
| 968 | (hj : PhysicalGraphBounds.scaledRadial L.val.1 w ∈ PolarCharts.chartDomain innerRadius j) : |
| 969 | LocalPhysicalCopyBounds.slotSlow ((carrier (B := B) (N0 := N0) L k).withChart j) |
| 970 | innerRadius ActualPrimary.h L.val.1 ActualPrimary.slots.radius w ∈ profileRegion (B := B) (N0 := N0) L := by |
| 971 | have hs := hc.2 |
| 972 | by_cases hL : L ∈ active (B := B) (N0 := N0) |
| 973 | · change _ ∈ slowCell (B := B) (N0 := N0) L at hs |
| 974 | simp only [slowCell, dite_eq_left hL, mem_preimage] at hs |
| 975 | rw [ActualSignedPhysicalData.slotSlow_eq_nativeSlow innerRadius_pos |
| 976 | (carrier (B := B) (N0 := N0) L k) ActualPrimary.h L.val.1 ActualPrimary.slots.radius j w hj] |
| 977 | simp only [profileRegion, dite_eq_left hL] |
| 978 | rw [← slowInput_common ActualPrimary.h L.val.1 (gap L) w] |
| 979 | exact ActualGaussianCoverage.actualSlowCore_inside ActualPrimary.certificate ActualPrimary.modulation |
| 980 | (ActualPrimary.choice B N0).prepared (selected (B := B) (N0 := N0) L hL).2 hs |
| 981 | (PhysicalMeanJetBounds.graph_time_pos ActualPrimary.h L.val.1 (gap L) hw) |
| 982 | · simp only [slowCell, dite_eq_right hL, mem_empty_iff_false] at hs |
| 983 | |
| 984 | noncomputable def potentialCarrier (B N0 : ℕ) (i : Fin 3) : |
| 985 | PhysicalCopyBounds.CarrierBounds (potentialFamily B N0 i) (potentialCells B N0 i) |
| 986 | innerRadius outerRadius ActualPrimary.h ActualPrimary.slots.radius where |
| 987 | region _ L := profileRegion L |
| 988 | open_region _ L := profileRegion_open L |
| 989 | jets := carrierProfiles |
| 990 | contains k I w hw _ _ hc j hj := profileRegion_contains I.1 k w hw hc j hj |
| 991 | |
| 992 | noncomputable def pressureCarrier (B N0 : ℕ) : |
| 993 | PhysicalCopyBounds.CarrierBounds (pressureFamily B N0) (pressureCells B N0) |
| 994 | innerRadius outerRadius ActualPrimary.h ActualPrimary.slots.radius where |
| 995 | region _ L := profileRegion L |
| 996 | open_region _ L := profileRegion_open L |
| 997 | jets := carrierProfiles |
| 998 | contains k I w hw _ _ hc j hj := profileRegion_contains I.1 k w hw hc j hj |
| 999 | |
| 1000 | end NativeProfiles |
| 1001 | |
| 1002 | section SourceCharts |
| 1003 | |
| 1004 | variable {B N0 : ℕ} |
| 1005 | |
| 1006 | noncomputable def sourceStrip : StripData LiftPoint := |
| 1007 | CartesianCopySource.pullStrip strip innerRadius outerRadius innerRadius_pos |
| 1008 | |
| 1009 | noncomputable def potentialSource (B N0 : ℕ) (I : Fin 3 × SourceIndex) |
| 1010 | (n : ℕ) (x : LiftPoint) : ℂ := |
| 1011 | CartesianCopySource.rotatedSource (nativePotentialSource B N0) I.2 n x I.1 |
| 1012 | |
| 1013 | noncomputable def pressureSource (B N0 : ℕ) (I : SourceIndex) |
| 1014 | (n : ℕ) (x : LiftPoint) : ℂ := |
| 1015 | nativePressureSource B N0 I n (PhysicalClassBounds.cylindricalMap x) |
| 1016 | |
| 1017 | theorem potentialSource_bounds (B N0 : ℕ) : |
| 1018 | LocalPhysicalCopyBounds.LocalSourceBounds sourceStrip ActualPrimary.h 1 |
| 1019 | (fun (_ : Fin 3 × SourceIndex) _ x => Real.sqrt (sourceStrip.zeta x)) |
| 1020 | (potentialSource B N0) := |
| 1021 | ActualSignedPhysicalData.componentSourceBounds (CartesianCopySource.sourceBounds_rotated |
| 1022 | (b := outerRadius) innerRadius_pos (nativePotentialSource_bounds (B := B) (N0 := N0))) |
| 1023 | |
| 1024 | theorem pressureSource_bounds (B N0 : ℕ) : |
| 1025 | LocalPhysicalCopyBounds.LocalSourceBounds sourceStrip ActualPrimary.h 1 |
| 1026 | (fun (_ : SourceIndex) _ x => Real.sqrt (sourceStrip.zeta x)) |
| 1027 | (pressureSource B N0) := |
| 1028 | CartesianCopySource.sourceBounds_pullback (b := outerRadius) innerRadius_pos |
| 1029 | (nativePressureSource_bounds (B := B) (N0 := N0)) |
| 1030 | |
| 1031 | theorem cut_pair_source_domain (l : SignedLabel B N0) (L : PhysicalWaveSum.BandLabel) |
| 1032 | (k : Frequency) (x : LiftPoint) (ht : 0 < x.1.1) |
| 1033 | (hne : cutNativeVelocity l (nativeAt L k x) ≠ 0 ∨ cutNativePressure l (nativeAt L k x) ≠ 0) : |
| 1034 | x ∈ sourceStrip.domain := by |
| 1035 | have hg := (cut_pair_annulus l L k x ht hne).1 |
| 1036 | have hu : ‖PhysicalGraphBounds.liftXY x‖ ≤ outerRadius := by |
| 1037 | simpa only [Metric.mem_closedBall, dist_zero_right] using hg.1 |
| 1038 | have hl : innerRadius ≤ ‖PhysicalGraphBounds.liftXY x‖ := hg.2 |
| 1039 | refine ⟨⟨?_, ?_⟩, cut_pair_domain l L k x ht hne⟩ |
| 1040 | · change innerRadius / 2 < _ |
| 1041 | linarith [innerRadius_pos] |
| 1042 | · change _ < outerRadius + 1 |
| 1043 | linarith |
| 1044 | |
| 1045 | theorem potential_source_domain (B N0 : ℕ) (i : Fin 3) (k : Frequency) |
| 1046 | (I : PhysicalWaveSum.WaveIndex 1) (x : LiftPoint) |
| 1047 | (hx : (potentialFamily B N0 i).amplitude k I x ≠ 0) : x ∈ sourceStrip.domain := by |
| 1048 | obtain ⟨l, _, _, ht, hn⟩ := potential_amplitude_data i k I x hx |
| 1049 | exact cut_pair_source_domain l I.1 k x ht (Or.inl hn) |
| 1050 | |
| 1051 | theorem pressure_source_domain (B N0 : ℕ) (k : Frequency) |
| 1052 | (I : PhysicalWaveSum.WaveIndex 1) (x : LiftPoint) |
| 1053 | (hx : (pressureFamily B N0).amplitude k I x ≠ 0) : x ∈ sourceStrip.domain := by |
| 1054 | obtain ⟨l, _, _, ht, hn⟩ := pressure_amplitude_data k I x hx |
| 1055 | exact cut_pair_source_domain l I.1 k x ht (Or.inr hn) |
| 1056 | |
| 1057 | theorem sourceStrip_time {x : LiftPoint} (hx : x ∈ sourceStrip.domain) : 0 < x.1.1 := |
| 1058 | BaseContextAssembly.nativeStrip_time ActualPrimary.nominal region hx.2 |
| 1059 | |
| 1060 | theorem potential_amplitude_source (B N0 : ℕ) (i : Fin 3) (k : Frequency) |
| 1061 | (I : PhysicalWaveSum.WaveIndex 1) : |
| 1062 | EqOn ((potentialFamily B N0 i).amplitude k I) |
| 1063 | (fun x => ChartScales.Q I.1.val.1 ^ (-ActualPrimary.h) • |
| 1064 | potentialSource B N0 (i, I, k) I.1.val.1 x) sourceStrip.domain := by |
| 1065 | intro x hx |
| 1066 | simp only [potentialFamily, ite_eq_left (sourceStrip_time hx)] |
| 1067 | rfl |
| 1068 | |
| 1069 | theorem pressure_amplitude_source (B N0 : ℕ) (k : Frequency) |
| 1070 | (I : PhysicalWaveSum.WaveIndex 1) : |
| 1071 | EqOn ((pressureFamily B N0).amplitude k I) |
| 1072 | (fun x => ChartScales.Q I.1.val.1 ^ (-(2 * CoordinateAlgebra.A ActualPrimary.h)) • |
| 1073 | pressureSource B N0 (I, k) I.1.val.1 x) sourceStrip.domain := by |
| 1074 | intro x hx |
| 1075 | simp only [pressureFamily, ite_eq_left (sourceStrip_time hx)] |
| 1076 | rfl |
| 1077 | |
| 1078 | /-- The identity chart only needs its formula on the genuine source |
| 1079 | domain. Its closure condition follows from actual amplitude support. -/ |
| 1080 | noncomputable def identitySourceChartOn {N : ℕ} {K I : Type} |
| 1081 | (f : PhysicalCopyBounds.CopyFamily N K) (hc : PhysicalCopyBounds.SupportCells f) |
| 1082 | {a b h r Z σ : ℝ} {gap : ℕ} (ha : 0 < a) |
| 1083 | (hs : LocalPhysicalCopyBounds.SupportData f a b h r Z gap) |
| 1084 | (s : StripData LiftPoint) (source : I → ℕ → LiftPoint → ℂ) |
| 1085 | (idx : K → PhysicalWaveSum.WaveIndex N → I) |
| 1086 | (he : ∀ k J, EqOn (f.amplitude k J) |
| 1087 | (fun x => ChartScales.Q J.1.val.1 ^ σ • source (idx k J) J.1.val.1 x) s.domain) |
| 1088 | (hd : ∀ k J x, f.amplitude k J x ≠ 0 → x ∈ s.domain) : |
| 1089 | LocalPhysicalCopyBounds.CommonChart f hc a b h r σ source where |
| 1090 | sourceIndex := idx |
| 1091 | map _ _ := id |
| 1092 | domain _ _ := s.domain |
| 1093 | open_domain _ _ := s.isOpen_domain |
| 1094 | smooth _ _ := contDiffOn_id |
| 1095 | positive_jets m := by |
| 1096 | refine ⟨1, le_rfl, 0, ?_⟩ |
| 1097 | intro k J x hx j hj hjm |
| 1098 | simp only [pow_zero, mul_one] |
| 1099 | exact (PhysicalGraphBounds.norm_positive_jet_linear_le |
| 1100 | (ContinuousLinearMap.id ℝ LiftPoint) x hj).trans (by simp) |
| 1101 | amplitude_eq := he |
| 1102 | contains k J z _ _ _ _ hz := by |
| 1103 | have hrad := (hs.tsupport_geometry J k hz).1 |
| 1104 | have hm := (PhysicalWaveSum.commonLift_smoothAt h J.1.val.1 (f.gap J.1) |
| 1105 | (PhysicalGraphBounds.scaledRadial_ne_zero (PhysicalGraphBounds.annulus_axisFree ha hrad))).continuousAt |
| 1106 | exact hm.continuousWithinAt.mem_closure hz |
| 1107 | (fun y hy => hd k J _ (PhysicalWaveSum.globalWave_ne_zero_amp hy)) |
| 1108 | |
| 1109 | noncomputable def potentialChart (B N0 : ℕ) (i : Fin 3) : |
| 1110 | LocalPhysicalCopyBounds.CommonChart (potentialFamily B N0 i) (potentialCells B N0 i) |
| 1111 | innerRadius outerRadius ActualPrimary.h ActualPrimary.slots.radius (-ActualPrimary.h) |
| 1112 | (potentialSource B N0) := |
| 1113 | identitySourceChartOn _ _ innerRadius_pos (potential_support B N0 i) sourceStrip _ |
| 1114 | (fun k I => (i, I, k)) (potential_amplitude_source B N0 i) (potential_source_domain B N0 i) |
| 1115 | |
| 1116 | noncomputable def pressureChart (B N0 : ℕ) : |
| 1117 | LocalPhysicalCopyBounds.CommonChart (pressureFamily B N0) (pressureCells B N0) |
| 1118 | innerRadius outerRadius ActualPrimary.h ActualPrimary.slots.radius |
| 1119 | (-(2 * CoordinateAlgebra.A ActualPrimary.h)) (pressureSource B N0) := |
| 1120 | identitySourceChartOn _ _ innerRadius_pos (pressure_support B N0) sourceStrip _ |
| 1121 | (fun k I => (I, k)) (pressure_amplitude_source B N0) (pressure_source_domain B N0) |
| 1122 | |
| 1123 | theorem carrier_frequencies (L : PhysicalWaveSum.BandLabel) (k : Frequency) : |
| 1124 | |(carrier (B := B) (N0 := N0) L k).angular| ≤ ActualPhaseJetBounds.phaseSize B N0 ∧ |
| 1125 | |(carrier (B := B) (N0 := N0) L k).axial| ≤ ActualPhaseJetBounds.phaseSize B N0 ∧ |
| 1126 | |(carrier (B := B) (N0 := N0) L k).radial| ≤ ActualPhaseJetBounds.phaseSize B N0 := by |
| 1127 | by_cases hL : L ∈ active (B := B) (N0 := N0) |
| 1128 | · simp only [carrier, dite_eq_left hL, selectedCarrier, ActualSignedPhysicalData.carrier] |
| 1129 | exact ActualPhaseJetBounds.phase_constants_bound (selected L hL) |
| 1130 | · simp only [carrier, dite_eq_right hL, ActualSignedPhysicalData.carrier, abs_zero] |
| 1131 | have hP := (ActualPhaseJetBounds.one_le_phaseSize (B := B) (N0 := N0)).trans' zero_le_one |
| 1132 | exact ⟨hP, hP, hP⟩ |
| 1133 | |
| 1134 | end SourceCharts |
| 1135 | |
| 1136 | section ActualRegularity |
| 1137 | |
| 1138 | variable {B N0 : ℕ} |
| 1139 | |
| 1140 | noncomputable def nativePast : Set LocalSignedRequest.Point := |
| 1141 | {x | 0 < x.1 ∧ 0 < x.2.1.1} |
| 1142 | |
| 1143 | theorem sourceFamily_smooth {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1144 | (f : (SignedLabel B N0 × Frequency) → ℕ → LocalSignedRequest.Point → E) |
| 1145 | (hf : ∀ l n, ContDiffOn ℝ ∞ (f l n) nativePast) |
| 1146 | (I : SourceIndex) (n : ℕ) : |
| 1147 | ContDiffOn ℝ ∞ (sourceFamily f I n) nativePast := by |
| 1148 | by_cases hn : n = I.1.1.val.1 |
| 1149 | · cases hc : sourceChoice (B := B) (N0 := N0) I with |
| 1150 | | none => rw [sourceFamily_eq_zero _ _ _ (Or.inr hc)]; exact contDiffOn_const |
| 1151 | | some l => rw [sourceFamily_eq_some _ _ _ hn l hc]; exact hf l n |
| 1152 | · rw [sourceFamily_eq_zero _ _ _ (Or.inl hn)] |
| 1153 | exact contDiffOn_const |
| 1154 | |
| 1155 | theorem nativePotentialSource_smooth (B N0 : ℕ) (I : SourceIndex) (n : ℕ) : |
| 1156 | ContDiffOn ℝ ∞ (nativePotentialSource B N0 I n) nativePast := by |
| 1157 | apply sourceFamily_smooth |
| 1158 | intro l n |
| 1159 | exact (InitialNativeRegularity.copyPotentialCoefficient_smooth l.1 l.2 n).comp |
| 1160 | (contDiffOn_id.prodMk contDiffOn_const) (fun _ hx => hx) |
| 1161 | |
| 1162 | theorem nativePressureSource_smooth (B N0 : ℕ) (I : SourceIndex) (n : ℕ) : |
| 1163 | ContDiffOn ℝ ∞ (nativePressureSource B N0 I n) nativePast := by |
| 1164 | apply sourceFamily_smooth |
| 1165 | intro l n |
| 1166 | exact (InitialNativeRegularity.copyPressureCoefficient_smooth_radial l.1 l.2 n).comp |
| 1167 | (contDiffOn_id.prodMk contDiffOn_const) (fun _ hx => hx) |
| 1168 | |
| 1169 | noncomputable def paddedPast : Set LiftPoint := |
| 1170 | PhysicalClassBounds.cylindricalDomain innerRadius outerRadius ∩ {x | 0 < x.1.1} |
| 1171 | |
| 1172 | theorem paddedPast_open : IsOpen paddedPast := |
| 1173 | (PhysicalClassBounds.cylindricalDomain_open _ _).inter |
| 1174 | (isOpen_lt continuous_const continuous_fst.fst) |
| 1175 | |
| 1176 | theorem paddedPast_map : MapsTo PhysicalClassBounds.cylindricalMap paddedPast nativePast := by |
| 1177 | intro x hx |
| 1178 | refine ⟨?_, hx.2⟩ |
| 1179 | exact Real.sqrt_pos.mpr (PhysicalGraphBounds.sum_sq_pos |
| 1180 | (PhysicalClassBounds.cylindricalDomain_axisFree innerRadius_pos hx.1)) |
| 1181 | |
| 1182 | theorem potential_amplitude_smooth (B N0 : ℕ) (i : Fin 3) (k : Frequency) |
| 1183 | (I : PhysicalWaveSum.WaveIndex 1) : |
| 1184 | ContDiffOn ℝ ∞ ((potentialFamily B N0 i).amplitude k I) paddedPast := by |
| 1185 | have hm : ContDiffOn ℝ ∞ PhysicalClassBounds.cylindricalMap paddedPast := |
| 1186 | (PhysicalClassBounds.cylindricalMap_smooth innerRadius_pos).mono inter_subset_left |
| 1187 | have hsrc := (nativePotentialSource_smooth B N0 (I, k) I.1.val.1).comp hm paddedPast_map |
| 1188 | have hrot : ContDiffOn ℝ ∞ (fun x : LiftPoint => |
| 1189 | CartesianCopySource.rotationMap (PhysicalGraphBounds.liftXY x)) paddedPast := |
| 1190 | CartesianCopySource.rotationMap_smooth.comp PhysicalGraphBounds.liftXY.contDiff.contDiffOn |
| 1191 | (fun _ hx => PhysicalClassBounds.cylindricalDomain_axisFree innerRadius_pos hx.1) |
| 1192 | have hv := (ContinuousLinearMap.proj i : ComplexVector →L[ℝ] ℂ).contDiff.comp_contDiffOn |
| 1193 | (hrot.clm_apply hsrc) |
| 1194 | apply (hv.const_smul (ChartScales.Q I.1.val.1 ^ (-ActualPrimary.h))).congr |
| 1195 | intro x hx |
| 1196 | have ht : 0 < x.1.1 := hx.2 |
| 1197 | simp only [potentialFamily, ite_eq_left ht] |
| 1198 | rfl |
| 1199 | |
| 1200 | theorem pressure_amplitude_smooth (B N0 : ℕ) (k : Frequency) |
| 1201 | (I : PhysicalWaveSum.WaveIndex 1) : |
| 1202 | ContDiffOn ℝ ∞ ((pressureFamily B N0).amplitude k I) paddedPast := by |
| 1203 | have hm : ContDiffOn ℝ ∞ PhysicalClassBounds.cylindricalMap paddedPast := |
| 1204 | (PhysicalClassBounds.cylindricalMap_smooth innerRadius_pos).mono inter_subset_left |
| 1205 | have hsrc := (nativePressureSource_smooth B N0 (I, k) I.1.val.1).comp hm paddedPast_map |
| 1206 | apply (hsrc.const_smul (ChartScales.Q I.1.val.1 ^ (-(2 * CoordinateAlgebra.A ActualPrimary.h)))).congr |
| 1207 | intro x hx |
| 1208 | have ht : 0 < x.1.1 := hx.2 |
| 1209 | simp only [pressureFamily, ite_eq_left ht, Function.comp_apply] |
| 1210 | |
| 1211 | theorem commonLift_mem_paddedPast (n d : ℕ) {w : ProblemStatement.SpaceTime} |
| 1212 | (hw : w ∈ PhysicalWaveSum.preterminal) |
| 1213 | (hann : PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus innerRadius outerRadius) : |
| 1214 | PhysicalWaveSum.commonLift ActualPrimary.h n d w ∈ paddedPast := by |
| 1215 | refine ⟨?_, PhysicalMeanJetBounds.graph_time_pos ActualPrimary.h n d hw⟩ |
| 1216 | change innerRadius / 2 < ‖PhysicalGraphBounds.liftXY (PhysicalWaveSum.commonLift ActualPrimary.h n d w)‖ ∧ |
| 1217 | ‖PhysicalGraphBounds.liftXY (PhysicalWaveSum.commonLift ActualPrimary.h n d w)‖ < outerRadius + 1 |
| 1218 | rw [liftXY_common] |
| 1219 | have hu : ‖PhysicalGraphBounds.scaledRadial n w‖ ≤ outerRadius := by |
| 1220 | simpa only [Metric.mem_closedBall, dist_zero_right] using hann.1 |
| 1221 | have hl : innerRadius ≤ ‖PhysicalGraphBounds.scaledRadial n w‖ := hann.2 |
| 1222 | exact ⟨by linarith [innerRadius_pos], by linarith⟩ |
| 1223 | |
| 1224 | theorem potentialSmooth (B N0 : ℕ) (i : Fin 3) : |
| 1225 | LocalPhysicalCopyBounds.SmoothData (potentialFamily B N0 i) innerRadius ActualPrimary.h |
| 1226 | ActualPrimary.slots.radius := by |
| 1227 | let hr := potential_support B N0 i |
| 1228 | constructor |
| 1229 | · intro k I w hw ht |
| 1230 | exact LocalPhysicalCopyBounds.SmoothNear.of_open paddedPast_open |
| 1231 | (potential_amplitude_smooth B N0 i k I) |
| 1232 | (commonLift_mem_paddedPast _ _ hw (hr.tsupport_geometry I k ht).1) |
| 1233 | · intro k I w hw ht j hj |
| 1234 | have hc := (potentialCells B N0 i).term_tsupport_mem innerRadius_pos I k |
| 1235 | (hr.tsupport_geometry I k ht).1 ht |
| 1236 | have hp := profileRegion_contains I.1 k w hw hc j hj |
| 1237 | exact ⟨LocalPhysicalCopyBounds.SmoothNear.of_open (profileRegion_open I.1) |
| 1238 | ((carrierProfiles (B := B) (N0 := N0)).smooth (k, I.1)).fst hp, |
| 1239 | LocalPhysicalCopyBounds.SmoothNear.of_open (profileRegion_open I.1) |
| 1240 | ((carrierProfiles (B := B) (N0 := N0)).smooth (k, I.1)).snd hp⟩ |
| 1241 | |
| 1242 | theorem pressureSmooth (B N0 : ℕ) : |
| 1243 | LocalPhysicalCopyBounds.SmoothData (pressureFamily B N0) innerRadius ActualPrimary.h |
| 1244 | ActualPrimary.slots.radius := by |
| 1245 | let hr := pressure_support B N0 |
| 1246 | constructor |
| 1247 | · intro k I w hw ht |
| 1248 | exact LocalPhysicalCopyBounds.SmoothNear.of_open paddedPast_open |
| 1249 | (pressure_amplitude_smooth B N0 k I) |
| 1250 | (commonLift_mem_paddedPast _ _ hw (hr.tsupport_geometry I k ht).1) |
| 1251 | · intro k I w hw ht j hj |
| 1252 | have hc := (pressureCells B N0).term_tsupport_mem innerRadius_pos I k |
| 1253 | (hr.tsupport_geometry I k ht).1 ht |
| 1254 | have hp := profileRegion_contains I.1 k w hw hc j hj |
| 1255 | exact ⟨LocalPhysicalCopyBounds.SmoothNear.of_open (profileRegion_open I.1) |
| 1256 | ((carrierProfiles (B := B) (N0 := N0)).smooth (k, I.1)).fst hp, |
| 1257 | LocalPhysicalCopyBounds.SmoothNear.of_open (profileRegion_open I.1) |
| 1258 | ((carrierProfiles (B := B) (N0 := N0)).smooth (k, I.1)).snd hp⟩ |
| 1259 | |
| 1260 | end ActualRegularity |
| 1261 | |
| 1262 | section PhysicalData |
| 1263 | |
| 1264 | /-- Actual initial potential copies with their proved support, local |
| 1265 | regularity and uniform native jets. -/ |
| 1266 | noncomputable def potentialWaveData (B N0 : ℕ) : |
| 1267 | PhysicalStageBounds.WaveData ActualPrimary.h LiftPoint (Fin 3 × SourceIndex) Frequency (Fin 3) where |
| 1268 | lowerRadius := innerRadius |
| 1269 | upperRadius := outerRadius |
| 1270 | nativeWidth := ActualPrimary.slots.radius |
| 1271 | slowBound := 2 |
| 1272 | frequencyBound := ActualPhaseJetBounds.phaseSize B N0 |
| 1273 | alpha := 1 |
| 1274 | shift := -ActualPrimary.h |
| 1275 | harmonics := 1 |
| 1276 | gapBound := CommonWindow.gap ActualPrimary.h |
| 1277 | lower_pos := innerRadius_pos |
| 1278 | width_nonneg := ActualPrimary.slots.radius_pos.le |
| 1279 | slow_nonneg := by norm_num |
| 1280 | frequency_one_le := ActualPhaseJetBounds.one_le_phaseSize |
| 1281 | strip := sourceStrip |
| 1282 | weight _ _ x := Real.sqrt (sourceStrip.zeta x) |
| 1283 | source := potentialSource B N0 |
| 1284 | source_bounds := potentialSource_bounds B N0 |
| 1285 | copies := potentialFamily B N0 |
| 1286 | cells := potentialCells B N0 |
| 1287 | chart := potentialChart B N0 |
| 1288 | chart_maps _ _ _ := fun _ hx => hx |
| 1289 | carrier := potentialCarrier B N0 |
| 1290 | support := potential_support B N0 |
| 1291 | smooth := potentialSmooth B N0 |
| 1292 | frequencies _ k L := carrier_frequencies L k |
| 1293 | |
| 1294 | /-- The pressure has the same copied source construction and its actual |
| 1295 | physical pressure factor. -/ |
| 1296 | noncomputable def pressureWaveData (B N0 : ℕ) : |
| 1297 | PhysicalStageBounds.WaveData ActualPrimary.h LiftPoint SourceIndex Frequency Unit where |
| 1298 | lowerRadius := innerRadius |
| 1299 | upperRadius := outerRadius |
| 1300 | nativeWidth := ActualPrimary.slots.radius |
| 1301 | slowBound := 2 |
| 1302 | frequencyBound := ActualPhaseJetBounds.phaseSize B N0 |
| 1303 | alpha := 1 |
| 1304 | shift := -(2 * CoordinateAlgebra.A ActualPrimary.h) |
| 1305 | harmonics := 1 |
| 1306 | gapBound := CommonWindow.gap ActualPrimary.h |
| 1307 | lower_pos := innerRadius_pos |
| 1308 | width_nonneg := ActualPrimary.slots.radius_pos.le |
| 1309 | slow_nonneg := by norm_num |
| 1310 | frequency_one_le := ActualPhaseJetBounds.one_le_phaseSize |
| 1311 | strip := sourceStrip |
| 1312 | weight _ _ x := Real.sqrt (sourceStrip.zeta x) |
| 1313 | source := pressureSource B N0 |
| 1314 | source_bounds := pressureSource_bounds B N0 |
| 1315 | copies _ := pressureFamily B N0 |
| 1316 | cells _ := pressureCells B N0 |
| 1317 | chart _ := pressureChart B N0 |
| 1318 | chart_maps _ _ _ := fun _ hx => hx |
| 1319 | carrier _ := pressureCarrier B N0 |
| 1320 | support _ := pressure_support B N0 |
| 1321 | smooth _ := pressureSmooth B N0 |
| 1322 | frequencies _ k L := carrier_frequencies L k |
| 1323 | |
| 1324 | theorem potentialWaveData_vector (B N0 : ℕ) : |
| 1325 | (potentialWaveData B N0).vector = potential B N0 := rfl |
| 1326 | |
| 1327 | theorem pressureWaveData_pressure (B N0 : ℕ) : |
| 1328 | (pressureWaveData B N0).pressure = pressure B N0 := rfl |
| 1329 | |
| 1330 | theorem potential_smooth (B N0 : ℕ) : |
| 1331 | ContDiffOn ℝ ∞ (potential B N0) PhysicalWaveSum.preterminal := |
| 1332 | (potentialWaveData B N0).vector_smooth ActualPrimary.outgoing.data.h_pos |
| 1333 | ActualPrimary.outgoing.data.h_lt_half |
| 1334 | |
| 1335 | theorem pressure_smooth (B N0 : ℕ) : |
| 1336 | ContDiffOn ℝ ∞ (pressure B N0) PhysicalWaveSum.preterminal := |
| 1337 | (pressureWaveData B N0).pressure_smooth ActualPrimary.outgoing.data.h_pos |
| 1338 | ActualPrimary.outgoing.data.h_lt_half |
| 1339 | |
| 1340 | end PhysicalData |
| 1341 | |
| 1342 | section LiteralCopies |
| 1343 | |
| 1344 | variable {B N0 : ℕ} |
| 1345 | |
| 1346 | noncomputable def positiveIndex (l : SignedLabel B N0) : PhysicalWaveSum.WaveIndex 1 := |
| 1347 | ActualSignedPhysicalData.positiveIndex (bandLabel l) |
| 1348 | |
| 1349 | theorem positiveIndex_band (l : SignedLabel B N0) : |
| 1350 | (positiveIndex l).1.val.1 = BaseChartJets.cellBand l.2 := rfl |
| 1351 | |
| 1352 | theorem copyAmplitude_summable (l : SignedLabel B N0) (n : ℕ) (x : Point) : |
| 1353 | Summable (fun k => copyAmplitude l k n x) := by |
| 1354 | let hfin := ((copyCells l).locallyFinite n).point_finite (nativeOfFull x) |
| 1355 | apply summable_of_ne_finset_zero (s := hfin.toFinset) |
| 1356 | intro k hk |
| 1357 | by_contra hn |
| 1358 | apply hk |
| 1359 | exact hfin.mem_toFinset.mpr (copied_support _ _ cut_native_velocity_support l n k hn) |
| 1360 | |
| 1361 | theorem cut_amplitude_self (l : SignedLabel B N0) (x : Point) : |
| 1362 | (cutCoefficients l).amplitude (BaseChartJets.cellBand l.2) x = |
| 1363 | ∑' k, copyAmplitude l k (BaseChartJets.cellBand l.2) x := by |
| 1364 | let m := BaseChartJets.cellBand l.2 |
| 1365 | have hn : near l m := near_self l |
| 1366 | have hs (l : SignedLabel B N0) (y : Native) |
| 1367 | (hy : CurlClassBounds.complexify (ActualPrimary.attachedRawVelocity l.1 l.2 y) ≠ 0) : |
| 1368 | y.2 ∈ (ActualPrimary.clockWindow l.2).core := by |
| 1369 | apply ActualPrimary.attachedRawVelocity_core l.1 l.2 y |
| 1370 | intro hz |
| 1371 | exact hy (by rw [hz, map_zero]) |
| 1372 | have hu : periodized (CoordinateAlgebra.A ActualPrimary.h) |
| 1373 | (fun l : SignedLabel B N0 => fun y => CurlClassBounds.complexify |
| 1374 | (ActualPrimary.attachedRawVelocity l.1 l.2 y)) l m (nativeOfFull x) = |
| 1375 | (ActualPrimary.chartCoefficients l.1 l.2).amplitude m x := by |
| 1376 | rw [ActualPrimary.chartCoefficients_amplitude_copies l.1 l.2 m (CommonWindow.index_le hn.2)] |
| 1377 | simp only [periodized, PeriodizedWaveBounds.copySum, copied, ite_eq_left hn, ← tsum_const_smul''] |
| 1378 | rw [coefficientScale_eq] |
| 1379 | rfl |
| 1380 | have he := periodized_cut_eq (CoordinateAlgebra.A ActualPrimary.h) |
| 1381 | (fun l : SignedLabel B N0 => fun y => CurlClassBounds.complexify |
| 1382 | (ActualPrimary.attachedRawVelocity l.1 l.2 y)) hs l m (nativeOfFull x) x.2 |
| 1383 | change _ = ActualPrimary.chartCutoff l.1 l.2 m x • _ at he |
| 1384 | rw [hu] at he |
| 1385 | exact he.symm |
| 1386 | |
| 1387 | theorem cut_pressure_self (l : SignedLabel B N0) (x : Point) : |
| 1388 | (cutCoefficients l).pressure (BaseChartJets.cellBand l.2) x = |
| 1389 | ∑' k, copyPressureCoefficient l k (BaseChartJets.cellBand l.2) x := by |
| 1390 | let m := BaseChartJets.cellBand l.2 |
| 1391 | have hn : near l m := near_self l |
| 1392 | have hu : periodized (2 * CoordinateAlgebra.A ActualPrimary.h) |
| 1393 | (fun l : SignedLabel B N0 => ActualPrimary.attachedRawPressure l.1 l.2) |
| 1394 | l m (nativeOfFull x) = (ActualPrimary.chartCoefficients l.1 l.2).pressure m x := by |
| 1395 | rw [ActualPrimary.chartCoefficients_pressure_copies l.1 l.2 m (CommonWindow.index_le hn.2)] |
| 1396 | simp only [periodized, PeriodizedWaveBounds.copySum, copied, ite_eq_left hn, ← tsum_const_smul''] |
| 1397 | rw [coefficientScale_eq] |
| 1398 | rfl |
| 1399 | have he := periodized_cut_eq (2 * CoordinateAlgebra.A ActualPrimary.h) |
| 1400 | (fun l : SignedLabel B N0 => ActualPrimary.attachedRawPressure l.1 l.2) |
| 1401 | (fun l y => ActualPrimary.attachedRawPressure_core l.1 l.2 y) l m (nativeOfFull x) x.2 |
| 1402 | change _ = ActualPrimary.chartCutoff l.1 l.2 m x • _ at he |
| 1403 | rw [hu] at he |
| 1404 | exact he.symm |
| 1405 | |
| 1406 | theorem potentialCoefficient_self (l : SignedLabel B N0) (x : Point) : |
| 1407 | potentialCoefficient l (BaseChartJets.cellBand l.2) x = |
| 1408 | ∑' k, copyPotentialCoefficient l k (BaseChartJets.cellBand l.2) x := by |
| 1409 | let m := BaseChartJets.cellBand l.2 |
| 1410 | let A := ActualSignedPhysicalData.potentialMap ((cutCoefficients l).frequency m) |
| 1411 | ((cutCoefficients l).normal fullStrip (directions B) m x) |
| 1412 | change A ((cutCoefficients l).amplitude m x) = ∑' k, A (copyAmplitude l k m x) |
| 1413 | rw [cut_amplitude_self, ContinuousLinearMap.map_tsum _ (copyAmplitude_summable l m x)] |
| 1414 | |
| 1415 | theorem nativePotentialSource_active (l : SignedLabel B N0) (k : Frequency) : |
| 1416 | nativePotentialSource B N0 (positiveIndex l, k) (BaseChartJets.cellBand l.2) = |
| 1417 | fun x => copyPotentialCoefficient l k (BaseChartJets.cellBand l.2) (x, 0) := by |
| 1418 | have hl : bandLabel l ∈ active (B := B) (N0 := N0) := ⟨l, rfl⟩ |
| 1419 | apply sourceFamily_eq_some _ _ _ rfl (l, k) |
| 1420 | simp only [sourceChoice, positiveIndex, ActualSignedPhysicalData.positiveIndex, |
| 1421 | dite_eq_left hl, selected_eq, ite_true] |
| 1422 | |
| 1423 | theorem nativePressureSource_active (l : SignedLabel B N0) (k : Frequency) : |
| 1424 | nativePressureSource B N0 (positiveIndex l, k) (BaseChartJets.cellBand l.2) = |
| 1425 | fun x => copyPressureCoefficient l k (BaseChartJets.cellBand l.2) (x, 0) := by |
| 1426 | have hl : bandLabel l ∈ active (B := B) (N0 := N0) := ⟨l, rfl⟩ |
| 1427 | apply sourceFamily_eq_some _ _ _ rfl (l, k) |
| 1428 | simp only [sourceChoice, positiveIndex, ActualSignedPhysicalData.positiveIndex, |
| 1429 | dite_eq_left hl, selected_eq, ite_true] |
| 1430 | |
| 1431 | theorem dynamics_copyPoint_self (l : SignedLabel B N0) (k : Frequency) (x : Point) : |
| 1432 | ActualPrimaryDynamics.copyPoint l.1 l.2 (BaseChartJets.cellBand l.2) k x = |
| 1433 | ((nativeOfFull x).1, (geometry (bandLabel l)).coordinates k (nativeOfFull x).2) := by |
| 1434 | change (ActualPrimary.nativeSlow l.2 (ActualPrimary.toAbsolute (BaseChartJets.cellBand l.2) x.1), |
| 1435 | (ActualPrimary.geometry l.1 l.2).coordinates k |
| 1436 | (ActualPrimary.toAbsolute (BaseChartJets.cellBand l.2) x.1).2) = _ |
| 1437 | rw [ActualPrimary.chart_nativePoint l.1 l.2 _ (CommonWindow.index_le (near_self l).2)] |
| 1438 | exact copyPoint_self l k (nativeOfFull x) |
| 1439 | |
| 1440 | noncomputable def polarPoint (a : ℝ) (j : PolarCharts.Index) (x : LiftPoint) : Point := |
| 1441 | PhysicalResidualTZ.swapCylinder (ActualSignedPhysicalData.cylinderAt a j x) |
| 1442 | |
| 1443 | theorem polarPoint_fst {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) {x : LiftPoint} |
| 1444 | (hx : PhysicalGraphBounds.liftXY x ∈ PolarCharts.chartDomain a j) : |
| 1445 | (polarPoint a j x).1 = PhysicalClassBounds.cylindricalMap x := by |
| 1446 | have hh := ActualSignedPhysicalData.cylinderAt_fst ha j hx |
| 1447 | exact congrArg PhysicalResidualTZ.swapSlow hh |
| 1448 | |
| 1449 | theorem slotPoint_polar (l : SignedLabel B N0) (k : Frequency) |
| 1450 | (a : ℝ) (j : PolarCharts.Index) (x : LiftPoint) : |
| 1451 | ActualPrimaryDynamics.slotPoint l.1 l.2 (BaseChartJets.cellBand l.2) k (polarPoint a j x) = |
| 1452 | ActualSignedGeometry.slotCoordinates (geometry (bandLabel l)) k |
| 1453 | (ActualSignedPhysicalData.cylinderAt a j x) := by |
| 1454 | rw [ActualPrimaryDynamics.slotPoint, dynamics_copyPoint_self] |
| 1455 | rfl |
| 1456 | |
| 1457 | theorem phase_polar (l : SignedLabel B N0) (k : Frequency) |
| 1458 | (a : ℝ) (j : PolarCharts.Index) (x : LiftPoint) |
| 1459 | (hc : (geometry (bandLabel l)).coordinates k x.2 ∈ (ActualPrimary.clockWindow l.2).core) : |
| 1460 | (cutCoefficients l).phase (BaseChartJets.cellBand l.2) (polarPoint a j x) = |
| 1461 | ((selectedCarrier l k).withChart j).phase a ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 1462 | ActualPrimary.slots.radius (PhysicalWaveSum.upLift (gap (bandLabel l)) x) := by |
| 1463 | have hk : (ActualPrimaryDynamics.copyPoint l.1 l.2 (BaseChartJets.cellBand l.2) k |
| 1464 | (polarPoint a j x)).2 ∈ (ActualPrimary.clockWindow l.2).core := by |
| 1465 | rw [dynamics_copyPoint_self] |
| 1466 | exact hc |
| 1467 | have he := (ActualPrimaryDynamics.phase_germ l.1 l.2 (BaseChartJets.cellBand l.2) k hk).eq_of_nhds |
| 1468 | rw [div_self (PartitionedCovariance.actual_carrier_ne_zero _ _), one_mul, slotPoint_polar] at he |
| 1469 | rw [show ((selectedCarrier l k).withChart j).phase a ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 1470 | ActualPrimary.slots.radius (PhysicalWaveSum.upLift (gap (bandLabel l)) x) = |
| 1471 | ActualPrimaryDynamics.nativePhase l.1 l.2 |
| 1472 | (ActualSignedGeometry.slotCoordinates (geometry (bandLabel l)) k |
| 1473 | (ActualSignedPhysicalData.cylinderAt a j x)) from |
| 1474 | ActualSignedPhysicalData.carrier_phase_eq_native ActualPrimary.slots (spatialLabel l) |
| 1475 | (gap (bandLabel l)) k _ _ _ _ _ a j x] |
| 1476 | exact he |
| 1477 | |
| 1478 | end LiteralCopies |
| 1479 | |
| 1480 | section PhysicalCopyIdentities |
| 1481 | |
| 1482 | variable {B N0 : ℕ} |
| 1483 | |
| 1484 | theorem copyPotential_fast (l : SignedLabel B N0) (k : Frequency) {x : Point} |
| 1485 | (hx : copyPotentialCoefficient l k (BaseChartJets.cellBand l.2) x ≠ 0) : |
| 1486 | (geometry (bandLabel l)).coordinates k x.1.2.2 ∈ (ActualPrimary.clockWindow l.2).core := by |
| 1487 | have hc : nativeOfFull x ∈ (copyCells l).carrier (BaseChartJets.cellBand l.2) k := by |
| 1488 | by_contra hc |
| 1489 | exact hx (copyPotential_zero_germ l k _ hc).eq_of_nhds |
| 1490 | exact hc |
| 1491 | |
| 1492 | theorem copyPressure_fast (l : SignedLabel B N0) (k : Frequency) {x : Point} |
| 1493 | (hx : copyPressureCoefficient l k (BaseChartJets.cellBand l.2) x ≠ 0) : |
| 1494 | (geometry (bandLabel l)).coordinates k x.1.2.2 ∈ (ActualPrimary.clockWindow l.2).core := by |
| 1495 | have hc : nativeOfFull x ∈ (copyCells l).carrier (BaseChartJets.cellBand l.2) k := by |
| 1496 | by_contra hc |
| 1497 | exact hx (copyPressure_zero_germ l k _ hc).eq_of_nhds |
| 1498 | exact hc |
| 1499 | |
| 1500 | theorem up_commonLift (h : ℝ) (n d : ℕ) (w : ProblemStatement.SpaceTime) : |
| 1501 | PhysicalWaveSum.upLift d (PhysicalWaveSum.commonLift h n d w) = |
| 1502 | PhysicalGraphBounds.physicalLift h n w := PhysicalWaveSum.up_down d _ |
| 1503 | |
| 1504 | theorem graph_aux_common (h : ℝ) (n d : ℕ) (w : ProblemStatement.SpaceTime) : |
| 1505 | (PhysicalMeanJetBounds.graph h n d w).2.2 = (PhysicalWaveSum.commonLift h n d w).2 := rfl |
| 1506 | |
| 1507 | theorem potential_amplitude_active (l : SignedLabel B N0) (k : Frequency) (i : Fin 3) |
| 1508 | (x : LiftPoint) (ht : 0 < x.1.1) : |
| 1509 | (potentialFamily B N0 i).amplitude k (positiveIndex l) x = |
| 1510 | ChartScales.Q (BaseChartJets.cellBand l.2) ^ (-ActualPrimary.h) • |
| 1511 | (CartesianCopySource.rotationMap (PhysicalGraphBounds.liftXY x) |
| 1512 | (copyPotentialCoefficient l k (BaseChartJets.cellBand l.2) |
| 1513 | (PhysicalClassBounds.cylindricalMap x, 0))) i := by |
| 1514 | simp only [potentialFamily, ite_eq_left ht, CartesianCopySource.rotatedSource, |
| 1515 | positiveIndex_band, nativePotentialSource_active] |
| 1516 | |
| 1517 | theorem pressure_amplitude_active (l : SignedLabel B N0) (k : Frequency) |
| 1518 | (x : LiftPoint) (ht : 0 < x.1.1) : |
| 1519 | (pressureFamily B N0).amplitude k (positiveIndex l) x = |
| 1520 | ChartScales.Q (BaseChartJets.cellBand l.2) ^ (-(2 * CoordinateAlgebra.A ActualPrimary.h)) • |
| 1521 | copyPressureCoefficient l k (BaseChartJets.cellBand l.2) |
| 1522 | (PhysicalClassBounds.cylindricalMap x, 0) := by |
| 1523 | simp only [pressureFamily, ite_eq_left ht, positiveIndex_band, nativePressureSource_active] |
| 1524 | |
| 1525 | theorem potential_term (l : SignedLabel B N0) (k : Frequency) (i : Fin 3) |
| 1526 | (w : ProblemStatement.SpaceTime) : |
| 1527 | (potentialFamily B N0 i).term innerRadius ActualPrimary.h ActualPrimary.slots.radius (positiveIndex l) k w = |
| 1528 | PhysicalWaveSum.commonWave innerRadius ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 1529 | (gap (bandLabel l)) ActualPrimary.slots.radius |
| 1530 | ((selectedCarrier l k).withChart |
| 1531 | (PhysicalWaveSum.chooseChart innerRadius (PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w))) |
| 1532 | ((potentialFamily B N0 i).amplitude k (positiveIndex l)) 1 w := by |
| 1533 | change PhysicalWaveSum.globalWave innerRadius ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 1534 | (gap (bandLabel l)) ActualPrimary.slots.radius (carrier (bandLabel l) k) _ 1 w = _ |
| 1535 | rw [carrier_bandLabel] |
| 1536 | rfl |
| 1537 | |
| 1538 | theorem pressure_term (l : SignedLabel B N0) (k : Frequency) (w : ProblemStatement.SpaceTime) : |
| 1539 | (pressureFamily B N0).term innerRadius ActualPrimary.h ActualPrimary.slots.radius (positiveIndex l) k w = |
| 1540 | PhysicalWaveSum.commonWave innerRadius ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 1541 | (gap (bandLabel l)) ActualPrimary.slots.radius |
| 1542 | ((selectedCarrier l k).withChart |
| 1543 | (PhysicalWaveSum.chooseChart innerRadius (PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w))) |
| 1544 | ((pressureFamily B N0).amplitude k (positiveIndex l)) 1 w := by |
| 1545 | change PhysicalWaveSum.globalWave innerRadius ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 1546 | (gap (bandLabel l)) ActualPrimary.slots.radius (carrier (bandLabel l) k) _ 1 w = _ |
| 1547 | rw [carrier_bandLabel] |
| 1548 | rfl |
| 1549 | |
| 1550 | theorem potential_commonWave (l : SignedLabel B N0) (k : Frequency) (i : Fin 3) |
| 1551 | (j : PolarCharts.Index) (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) : |
| 1552 | PhysicalWaveSum.commonWave innerRadius ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 1553 | (gap (bandLabel l)) ActualPrimary.slots.radius ((selectedCarrier l k).withChart j) |
| 1554 | ((potentialFamily B N0 i).amplitude k (positiveIndex l)) 1 w = |
| 1555 | (ChartScales.Q (BaseChartJets.cellBand l.2) ^ (-ActualPrimary.h) • |
| 1556 | (CartesianCopySource.rotationMap (PhysicalGraphBounds.liftXY |
| 1557 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w)) |
| 1558 | (copyPotentialCoefficient l k (BaseChartJets.cellBand l.2) |
| 1559 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0))) i) * |
| 1560 | HarmonicCalculus.carrier ((cutCoefficients l).frequency (BaseChartJets.cellBand l.2)) |
| 1561 | ((cutCoefficients l).phase (BaseChartJets.cellBand l.2)) |
| 1562 | (polarPoint innerRadius j |
| 1563 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w)) := by |
| 1564 | rw [PhysicalWaveSum.commonWave, |
| 1565 | potential_amplitude_active l k i _ (PhysicalMeanJetBounds.graph_time_pos ActualPrimary.h |
| 1566 | (BaseChartJets.cellBand l.2) (gap (bandLabel l)) hw)] |
| 1567 | simp only [Int.cast_one, mul_one] |
| 1568 | by_cases hz : copyPotentialCoefficient l k (BaseChartJets.cellBand l.2) |
| 1569 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0) = 0 |
| 1570 | · simp only [show PhysicalClassBounds.cylindricalMap |
| 1571 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w) = |
| 1572 | PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w from rfl, |
| 1573 | hz, map_zero, Pi.zero_apply, smul_zero, zero_mul] |
| 1574 | · have hf := copyPotential_fast l k (x := |
| 1575 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0)) hz |
| 1576 | change (geometry (bandLabel l)).coordinates k |
| 1577 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w).2.2 ∈ _ at hf |
| 1578 | rw [graph_aux_common] at hf |
| 1579 | have hp := phase_polar l k innerRadius j |
| 1580 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w) |
| 1581 | hf |
| 1582 | rw [up_commonLift] at hp |
| 1583 | rw [← hp] |
| 1584 | rfl |
| 1585 | |
| 1586 | theorem pressure_commonWave (l : SignedLabel B N0) (k : Frequency) |
| 1587 | (j : PolarCharts.Index) (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) : |
| 1588 | PhysicalWaveSum.commonWave innerRadius ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 1589 | (gap (bandLabel l)) ActualPrimary.slots.radius ((selectedCarrier l k).withChart j) |
| 1590 | ((pressureFamily B N0).amplitude k (positiveIndex l)) 1 w = |
| 1591 | (ChartScales.Q (BaseChartJets.cellBand l.2) ^ (-(2 * CoordinateAlgebra.A ActualPrimary.h)) • |
| 1592 | copyPressureCoefficient l k (BaseChartJets.cellBand l.2) |
| 1593 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0)) * |
| 1594 | HarmonicCalculus.carrier ((cutCoefficients l).frequency (BaseChartJets.cellBand l.2)) |
| 1595 | ((cutCoefficients l).phase (BaseChartJets.cellBand l.2)) |
| 1596 | (polarPoint innerRadius j |
| 1597 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w)) := by |
| 1598 | rw [PhysicalWaveSum.commonWave, |
| 1599 | pressure_amplitude_active l k _ (PhysicalMeanJetBounds.graph_time_pos ActualPrimary.h |
| 1600 | (BaseChartJets.cellBand l.2) (gap (bandLabel l)) hw)] |
| 1601 | simp only [Int.cast_one, mul_one] |
| 1602 | by_cases hz : copyPressureCoefficient l k (BaseChartJets.cellBand l.2) |
| 1603 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0) = 0 |
| 1604 | · simp only [show PhysicalClassBounds.cylindricalMap |
| 1605 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w) = |
| 1606 | PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w from rfl, |
| 1607 | hz, smul_zero, zero_mul] |
| 1608 | · have hf := copyPressure_fast l k (x := |
| 1609 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0)) hz |
| 1610 | change (geometry (bandLabel l)).coordinates k |
| 1611 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w).2.2 ∈ _ at hf |
| 1612 | rw [graph_aux_common] at hf |
| 1613 | have hp := phase_polar l k innerRadius j |
| 1614 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w) |
| 1615 | hf |
| 1616 | rw [up_commonLift] at hp |
| 1617 | rw [← hp] |
| 1618 | rfl |
| 1619 | |
| 1620 | theorem potential_rotated_sum (l : SignedLabel B N0) (x : Point) |
| 1621 | (Y : PhysicalGraphBounds.Plane) (i : Fin 3) : |
| 1622 | (∑' k, (CartesianCopySource.rotationMap Y |
| 1623 | (copyPotentialCoefficient l k (BaseChartJets.cellBand l.2) x)) i) = |
| 1624 | (CartesianCopySource.rotationMap Y (potentialCoefficient l (BaseChartJets.cellBand l.2) x)) i := by |
| 1625 | let A := ActualSignedPhysicalData.potentialMap ((cutCoefficients l).frequency (BaseChartJets.cellBand l.2)) |
| 1626 | ((cutCoefficients l).normal fullStrip (directions B) (BaseChartJets.cellBand l.2) x) |
| 1627 | have hs : Summable (fun k => copyPotentialCoefficient l k (BaseChartJets.cellBand l.2) x) := |
| 1628 | A.summable (copyAmplitude_summable l _ x) |
| 1629 | let R : ComplexVector →L[ℝ] ℂ := (ContinuousLinearMap.proj i).comp (CartesianCopySource.rotationMap Y) |
| 1630 | rw [potentialCoefficient_self] |
| 1631 | exact (R.map_tsum hs).symm |
| 1632 | |
| 1633 | theorem potential_periodized (l : SignedLabel B N0) (i : Fin 3) |
| 1634 | (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) : |
| 1635 | (potentialFamily B N0 i).periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius (positiveIndex l) w = |
| 1636 | (ChartScales.Q (BaseChartJets.cellBand l.2) ^ (-ActualPrimary.h) • |
| 1637 | (CartesianCopySource.rotationMap (PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w) |
| 1638 | (potentialCoefficient l (BaseChartJets.cellBand l.2) |
| 1639 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0))) i) * |
| 1640 | HarmonicCalculus.carrier ((cutCoefficients l).frequency (BaseChartJets.cellBand l.2)) |
| 1641 | ((cutCoefficients l).phase (BaseChartJets.cellBand l.2)) |
| 1642 | (polarPoint innerRadius |
| 1643 | (PhysicalWaveSum.chooseChart innerRadius (PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w)) |
| 1644 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w)) := by |
| 1645 | unfold PhysicalCopyBounds.CopyFamily.periodized |
| 1646 | simp_rw [potential_term, potential_commonWave l _ i _ w hw, liftXY_common] |
| 1647 | rw [tsum_mul_right, tsum_const_smul'', potential_rotated_sum] |
| 1648 | |
| 1649 | theorem pressure_periodized (l : SignedLabel B N0) |
| 1650 | (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) : |
| 1651 | (pressureFamily B N0).periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius (positiveIndex l) w = |
| 1652 | (ChartScales.Q (BaseChartJets.cellBand l.2) ^ (-(2 * CoordinateAlgebra.A ActualPrimary.h)) • |
| 1653 | (cutCoefficients l).pressure (BaseChartJets.cellBand l.2) |
| 1654 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0)) * |
| 1655 | HarmonicCalculus.carrier ((cutCoefficients l).frequency (BaseChartJets.cellBand l.2)) |
| 1656 | ((cutCoefficients l).phase (BaseChartJets.cellBand l.2)) |
| 1657 | (polarPoint innerRadius |
| 1658 | (PhysicalWaveSum.chooseChart innerRadius (PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w)) |
| 1659 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w)) := by |
| 1660 | unfold PhysicalCopyBounds.CopyFamily.periodized |
| 1661 | simp_rw [pressure_term, pressure_commonWave l _ _ w hw] |
| 1662 | rw [tsum_mul_right, tsum_const_smul'', ← cut_pressure_self] |
| 1663 | |
| 1664 | end PhysicalCopyIdentities |
| 1665 | |
| 1666 | section ExactExteriorSupport |
| 1667 | |
| 1668 | variable {B N0 : ℕ} |
| 1669 | |
| 1670 | noncomputable def physicalX (w : ProblemStatement.SpaceTime) : ℝ := |
| 1671 | PhysicalWaveSum.physicalPosition w 0 ^ 2 / (2 * PhysicalWaveSum.physicalQ ActualPrimary.h w) |
| 1672 | |
| 1673 | theorem cut_pair_physicalX (l : SignedLabel B N0) (L : PhysicalWaveSum.BandLabel) |
| 1674 | (k : Frequency) (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) |
| 1675 | (hne : cutNativeVelocity l (nativeAt L k |
| 1676 | (PhysicalWaveSum.commonLift ActualPrimary.h L.val.1 (gap L) w)) ≠ 0 ∨ |
| 1677 | cutNativePressure l (nativeAt L k |
| 1678 | (PhysicalWaveSum.commonLift ActualPrimary.h L.val.1 (gap L) w)) ≠ 0) : |
| 1679 | physicalX w ∈ Ioo (NominalConeAssembly.activeLeft ActualPrimary.nominal) |
| 1680 | (NominalConeAssembly.activeRight ActualPrimary.nominal) := by |
| 1681 | let x := PhysicalWaveSum.commonLift ActualPrimary.h L.val.1 (gap L) w |
| 1682 | have ht : 0 < x.1.1 := PhysicalMeanJetBounds.graph_time_pos ActualPrimary.h L.val.1 (gap L) hw |
| 1683 | have hd := cut_pair_support l (nativeAt L k x) hne |
| 1684 | have hx := cut_pair_domain l L k x ht hne |
| 1685 | have hX := ActualPrimaryCovariance.physicalPosition_normalized L.val.1 hx |
| 1686 | change ActualPrimary.physicalPosition L.val.1 (PhysicalMeanJetBounds.graph ActualPrimary.h L.val.1 (gap L) w) 0 ^ 2 / |
| 1687 | (2 * ActualPrimary.physicalScale L.val.1 (PhysicalMeanJetBounds.graph ActualPrimary.h L.val.1 (gap L) w)) = _ at hX |
| 1688 | rw [physicalPosition_graph, physicalScale_graph _ _ hw] at hX |
| 1689 | have hr := PrimaryTargetBounds.profileRadius_sq (F := ActualPrimary.outgoing) |
| 1690 | (p := slowInput x) ht |
| 1691 | change WaveEdgeExtension.nativeRadius ActualPrimary.h (nativeAt L k x) ^ 2 / 2 = _ at hr |
| 1692 | have he : physicalX w = WaveEdgeExtension.nativeRadius ActualPrimary.h (nativeAt L k x) ^ 2 / 2 := |
| 1693 | hX.trans hr.symm |
| 1694 | have ha := PrimaryTargetBounds.leftRadius_pos ActualPrimary.nominal |
| 1695 | have hb := PrimaryTargetBounds.rightRadius_pos ActualPrimary.nominal |
| 1696 | have hrad := ha.trans hd.1.1 |
| 1697 | have hla : (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) ^ 2 = |
| 1698 | 2 * NominalConeAssembly.activeLeft ActualPrimary.nominal := |
| 1699 | Real.sq_sqrt (mul_nonneg (by norm_num) (NominalConeAssembly.activeLeft_pos ActualPrimary.nominal).le) |
| 1700 | have hlb : (PrimaryTargetBounds.rightRadius ActualPrimary.nominal) ^ 2 = |
| 1701 | 2 * NominalConeAssembly.activeRight ActualPrimary.nominal := |
| 1702 | Real.sq_sqrt (mul_nonneg (by norm_num) (LeadingStressWeights.activeRight_pos ActualPrimary.nominal).le) |
| 1703 | have hlo := mul_pos (sub_pos.mpr hd.1.1) (add_pos hrad ha) |
| 1704 | have hhi := mul_pos (sub_pos.mpr hd.1.2) (add_pos hb hrad) |
| 1705 | rw [he] |
| 1706 | constructor <;> nlinarith |
| 1707 | |
| 1708 | theorem potential_amplitude_zero_exterior (B N0 : ℕ) (i : Fin 3) (k : Frequency) |
| 1709 | (I : PhysicalWaveSum.WaveIndex 1) {w : ProblemStatement.SpaceTime} |
| 1710 | (hw : w ∈ PhysicalWaveSum.preterminal) |
| 1711 | (hX : physicalX w ∉ Icc (NominalConeAssembly.activeLeft ActualPrimary.nominal) |
| 1712 | (NominalConeAssembly.activeRight ActualPrimary.nominal)) : |
| 1713 | (potentialFamily B N0 i).amplitude k I |
| 1714 | (PhysicalWaveSum.commonLift ActualPrimary.h I.1.val.1 (gap I.1) w) = 0 := by |
| 1715 | by_contra hn |
| 1716 | obtain ⟨l, _, _, _, hraw⟩ := potential_amplitude_data i k I _ hn |
| 1717 | have hx := cut_pair_physicalX l I.1 k w hw (Or.inl hraw) |
| 1718 | exact hX ⟨hx.1.le, hx.2.le⟩ |
| 1719 | |
| 1720 | theorem pressure_amplitude_zero_exterior (B N0 : ℕ) (k : Frequency) |
| 1721 | (I : PhysicalWaveSum.WaveIndex 1) {w : ProblemStatement.SpaceTime} |
| 1722 | (hw : w ∈ PhysicalWaveSum.preterminal) |
| 1723 | (hX : physicalX w ∉ Icc (NominalConeAssembly.activeLeft ActualPrimary.nominal) |
| 1724 | (NominalConeAssembly.activeRight ActualPrimary.nominal)) : |
| 1725 | (pressureFamily B N0).amplitude k I |
| 1726 | (PhysicalWaveSum.commonLift ActualPrimary.h I.1.val.1 (gap I.1) w) = 0 := by |
| 1727 | by_contra hn |
| 1728 | obtain ⟨l, _, _, _, hraw⟩ := pressure_amplitude_data k I _ hn |
| 1729 | have hx := cut_pair_physicalX l I.1 k w hw (Or.inr hraw) |
| 1730 | exact hX ⟨hx.1.le, hx.2.le⟩ |
| 1731 | |
| 1732 | theorem copy_sum_zero_of_amplitudes_zero {N : ℕ} {K : Type} |
| 1733 | (f : PhysicalCopyBounds.CopyFamily N K) (a h r : ℝ) (w : ProblemStatement.SpaceTime) |
| 1734 | (hz : ∀ I k, f.amplitude k I (PhysicalWaveSum.commonLift h I.1.val.1 (f.gap I.1) w) = 0) : |
| 1735 | f.sum a h r w = 0 := by |
| 1736 | have ht : ∀ I k, f.term a h r I k w = 0 := fun I k => PhysicalWaveSum.globalWave_eq_zero (hz I k) |
| 1737 | simp only [PhysicalCopyBounds.CopyFamily.sum, PhysicalCopyBounds.CopyFamily.periodized, |
| 1738 | ht, tsum_zero, finsum_zero] |
| 1739 | |
| 1740 | theorem potential_zero_exterior (B N0 : ℕ) {w : ProblemStatement.SpaceTime} |
| 1741 | (hw : w ∈ PhysicalWaveSum.preterminal) |
| 1742 | (hX : physicalX w ∉ Icc (NominalConeAssembly.activeLeft ActualPrimary.nominal) |
| 1743 | (NominalConeAssembly.activeRight ActualPrimary.nominal)) : potential B N0 w = 0 := by |
| 1744 | have hz (i : Fin 3) := copy_sum_zero_of_amplitudes_zero (potentialFamily B N0 i) |
| 1745 | innerRadius ActualPrimary.h ActualPrimary.slots.radius w |
| 1746 | (fun I k => potential_amplitude_zero_exterior B N0 i k I hw hX) |
| 1747 | simp only [potential, PhysicalCopyBounds.vectorSum, hz, map_zero, Finset.sum_const_zero] |
| 1748 | |
| 1749 | theorem pressure_zero_exterior (B N0 : ℕ) {w : ProblemStatement.SpaceTime} |
| 1750 | (hw : w ∈ PhysicalWaveSum.preterminal) |
| 1751 | (hX : physicalX w ∉ Icc (NominalConeAssembly.activeLeft ActualPrimary.nominal) |
| 1752 | (NominalConeAssembly.activeRight ActualPrimary.nominal)) : pressure B N0 w = 0 := by |
| 1753 | have hz := copy_sum_zero_of_amplitudes_zero (pressureFamily B N0) |
| 1754 | innerRadius ActualPrimary.h ActualPrimary.slots.radius w |
| 1755 | (fun I k => pressure_amplitude_zero_exterior B N0 k I hw hX) |
| 1756 | exact congrArg Complex.re hz |
| 1757 | |
| 1758 | end ExactExteriorSupport |
| 1759 | |
| 1760 | theorem normal_withCutoff {D : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 1761 | (a : LinearWaveBounds.WaveCoefficients D) (χ : ℕ → D → ℝ) |
| 1762 | (s : StripData D) (d : LinearWaveBounds.GraphDirections D) (n : ℕ) : |
| 1763 | (a.withCutoff χ).normal s d n = a.normal s d n := rfl |
| 1764 | |
| 1765 | theorem cut_normal_lifted {B N0 : ℕ} (l : SignedLabel B N0) (n : ℕ) (x : Point) : |
| 1766 | (cutCoefficients l).normal fullStrip (directions B) n (PhysicalResidualTZ.swapCylinder x) = |
| 1767 | phaseNormal PhysicalResidualBridge.ScaledGraph.radius |
| 1768 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) ActualPrimary.h |
| 1769 | (CommonWindow.index ActualPrimary.h n)).radial |
| 1770 | PhysicalResidualBridge.ScaledGraph.angular |
| 1771 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) ActualPrimary.h |
| 1772 | (CommonWindow.index ActualPrimary.h n)).axial |
| 1773 | (ActualPrimaryCoherence.liftedPhase l.1 l.2 n) x := by |
| 1774 | change ((ActualPrimary.chartCoefficients l.1 l.2).withCutoff |
| 1775 | (ActualPrimary.chartCutoff l.1 l.2)).normal fullStrip (directions B) n _ = _ |
| 1776 | rw [normal_withCutoff] |
| 1777 | exact ActualPrimaryCoherence.chart_normal_lifted region l.1 l.2 n x |
| 1778 | |
| 1779 | section PhysicalCoordinates |
| 1780 | |
| 1781 | theorem graph_cartesian_forward (h : ℝ) (n d : ℕ) |
| 1782 | (hd : d ≤ ChartScales.nativeIndex h n) (z : ProblemStatement.SpaceTime) (hr : 0 < z.2 0) : |
| 1783 | PhysicalMeanJetBounds.graph h n d (z.1, CylindricalResidual.chart z.2) = |
| 1784 | (PhysicalResidualTZ.swapCylinder |
| 1785 | ((PhysicalResidualBridge.commonGraph (ChartScales.Q n) h |
| 1786 | (ChartScales.nativeIndex h n - d)).map z)).1 := by |
| 1787 | have hR : 0 < ChartScales.Q n ^ (-(1 / 2 : ℝ)) * z.2 0 := |
| 1788 | mul_pos (Real.rpow_pos_of_pos (ChartScales.Q_pos n) _) hr |
| 1789 | have hradius : PhysicalClassBounds.cartesianRadius |
| 1790 | (PhysicalGraphBounds.scaledRadial n (z.1, CylindricalResidual.chart z.2)) = |
| 1791 | ChartScales.Q n ^ (-(1 / 2 : ℝ)) * z.2 0 := by |
| 1792 | rw [ActualSignedPhysicalData.scaledRadial_forward] |
| 1793 | exact (PolarCharts.radius_polar _ _).trans (abs_of_pos hR) |
| 1794 | have hp : PhysicalGraphBounds.radialProjection (z.1, CylindricalResidual.chart z.2) = |
| 1795 | PolarCharts.polar (z.2 0, z.2 1) := by |
| 1796 | simp [PhysicalGraphBounds.radialProjection_apply, CylindricalResidual.chart, PolarCharts.polar] |
| 1797 | have hy := congrArg Prod.snd (PhysicalWaveSum.commonLift_formula h n d hd |
| 1798 | (z.1, CylindricalResidual.chart z.2)) |
| 1799 | change (CommonCoverSolve.coverPower d).symm |
| 1800 | (PhysicalGraphBounds.nativeGraph h n (z.1, CylindricalResidual.chart z.2)) = _ at hy |
| 1801 | rw [PhysicalGraphBounds.radialProfile, ActualSignedPhysicalData.radiusPower_eq_radius, |
| 1802 | hp, PolarCharts.radius_polar, abs_of_pos hr] at hy |
| 1803 | rw [PhysicalMeanJetBounds.graph, Function.comp_apply, PhysicalClassBounds.cylindricalMap_commonLift, |
| 1804 | PhysicalResidualBridge.commonGraph_map (ChartScales.Q_pos n) h _ hr, hradius, hy] |
| 1805 | simp only [PhysicalResidualTZ.swapCylinder_apply, PhysicalResidualTZ.swapSlow_apply, |
| 1806 | CylindricalResidual.chart, AxisymmetricResidual.pack_two] |
| 1807 | |
| 1808 | theorem polarPoint_common_forward (h : ℝ) (n d : ℕ) |
| 1809 | (hd : d ≤ ChartScales.nativeIndex h n) {a : ℝ} (ha : 0 < a) |
| 1810 | (j : PolarCharts.Index) (z : ProblemStatement.SpaceTime) (hr : 0 < z.2 0) |
| 1811 | (hangle : z.2 1 - PolarCharts.offset j ∈ Ioo (-(Real.pi / 2)) (Real.pi / 2)) |
| 1812 | (hchart : PhysicalGraphBounds.scaledRadial n (z.1, CylindricalResidual.chart z.2) ∈ |
| 1813 | PolarCharts.chartDomain a j) : |
| 1814 | polarPoint a j (PhysicalWaveSum.commonLift h n d (z.1, CylindricalResidual.chart z.2)) = |
| 1815 | PhysicalResidualTZ.swapCylinder |
| 1816 | ((PhysicalResidualBridge.commonGraph (ChartScales.Q n) h |
| 1817 | (ChartScales.nativeIndex h n - d)).map z) := by |
| 1818 | apply Prod.ext |
| 1819 | · rw [polarPoint_fst ha j (by simpa only [liftXY_common] using hchart)] |
| 1820 | exact graph_cartesian_forward h n d hd z hr |
| 1821 | · have he := congrArg (fun q : PhysicalResidualBridge.Cylinder => q.2) |
| 1822 | (ActualSignedPhysicalData.cylinderAt_physical_forward h n ha j z hr hangle hchart) |
| 1823 | change (PolarCharts.chart a j (PhysicalGraphBounds.liftXY |
| 1824 | (PhysicalWaveSum.commonLift h n d (z.1, CylindricalResidual.chart z.2)))).2 = z.2 1 |
| 1825 | change (PolarCharts.chart a j (PhysicalGraphBounds.liftXY |
| 1826 | (PhysicalGraphBounds.physicalLift h n (z.1, CylindricalResidual.chart z.2)))).2 = z.2 1 at he |
| 1827 | rw [liftXY_common] |
| 1828 | rw [PhysicalGraphBounds.liftXY_physicalLift] at he |
| 1829 | exact he |
| 1830 | |
| 1831 | theorem commonIndex_gap (L : PhysicalWaveSum.BandLabel) : |
| 1832 | ChartScales.nativeIndex ActualPrimary.h L.val.1 - gap L = |
| 1833 | CommonWindow.index ActualPrimary.h L.val.1 := |
| 1834 | Nat.sub_sub_self (CommonWindow.index_le_native ActualPrimary.h L.val.1) |
| 1835 | |
| 1836 | variable {B N0 : ℕ} |
| 1837 | |
| 1838 | theorem liftedPotential_eq_mode (l : SignedLabel B N0) (n : ℕ) (x : Point) : |
| 1839 | CurlClassBounds.vectorPotential ((cutCoefficients l).frequency n) |
| 1840 | PhysicalResidualBridge.ScaledGraph.radius |
| 1841 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) ActualPrimary.h (CommonWindow.index ActualPrimary.h n)).radial |
| 1842 | PhysicalResidualBridge.ScaledGraph.angular |
| 1843 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) ActualPrimary.h (CommonWindow.index ActualPrimary.h n)).axial |
| 1844 | (ActualPrimaryCoherence.liftedPhase l.1 l.2 n) (ActualPrimaryCoherence.liftedAmplitude l.1 l.2 n) x = |
| 1845 | HarmonicCalculus.vectorMode ((cutCoefficients l).frequency n) ((cutCoefficients l).phase n) |
| 1846 | (potentialCoefficient l n) (PhysicalResidualTZ.swapCylinder x) := by |
| 1847 | have hn := cut_normal_lifted l n x |
| 1848 | have ha : ActualPrimaryCoherence.liftedAmplitude l.1 l.2 n x = |
| 1849 | (cutCoefficients l).amplitude n (PhysicalResidualTZ.swapCylinder x) := rfl |
| 1850 | have hp : ActualPrimaryCoherence.liftedPhase l.1 l.2 n x = |
| 1851 | (cutCoefficients l).phase n (PhysicalResidualTZ.swapCylinder x) := rfl |
| 1852 | ext i |
| 1853 | simp only [CurlClassBounds.vectorPotential, HarmonicCalculus.vectorMode, |
| 1854 | HarmonicCalculus.mode, CurlClassBounds.coefficient, potentialCoefficient, |
| 1855 | HarmonicCalculus.carrier, ← hn, ha, hp] |
| 1856 | |
| 1857 | |
| 1858 | theorem physicalPotential_eq_mode (l : SignedLabel B N0) (n : ℕ) |
| 1859 | {z : ProblemStatement.SpaceTime} (ht : z.1 < 1) (hr : 0 < z.2 0) : |
| 1860 | ActualPrimaryCoherence.physicalPotential l.1 l.2 z = |
| 1861 | ChartScales.Q n ^ (-ActualPrimary.h) • |
| 1862 | HarmonicCalculus.vectorMode ((cutCoefficients l).frequency n) ((cutCoefficients l).phase n) |
| 1863 | (potentialCoefficient l n) (PhysicalResidualTZ.swapCylinder |
| 1864 | ((PhysicalResidualBridge.commonGraph (ChartScales.Q n) ActualPrimary.h |
| 1865 | (CommonWindow.index ActualPrimary.h n)).map z)) := by |
| 1866 | have he := PhysicalCurlCovariance.referencePotential_eq_on (ChartScales.Q_pos n) ActualPrimary.h |
| 1867 | (CommonWindow.index ActualPrimary.h n) ActualPrimaryCoherence.liftedDomain_open one_ne_zero |
| 1868 | (ActualPrimary.chartCoefficients_frequency_pos l.1 l.2 n).ne' |
| 1869 | (ActualPrimaryCoherence.liftedPhase_smooth l.1 l.2 n) |
| 1870 | (ActualPrimaryCoherence.liftedAmplitude l.1 l.2 n) |
| 1871 | (ActualPrimaryCoherence.physicalPhase l.1 l.2) (ActualPrimaryCoherence.physicalAmplitude l.1 l.2) |
| 1872 | (fun z hz => by simpa only [one_mul] using ActualPrimaryCoherence.physicalPhase_eq l.1 l.2 n hz.1) |
| 1873 | (fun z hz => ActualPrimaryCoherence.physicalAmplitude_eq l.1 l.2 n hz.1) |
| 1874 | (ActualPrimaryCoherence.physical_source n ht hr) |
| 1875 | exact he.trans (congrArg (fun v : ComplexVector => ChartScales.Q n ^ (-ActualPrimary.h) • v) |
| 1876 | (liftedPotential_eq_mode l n _)) |
| 1877 | |
| 1878 | theorem potentialCoefficient_angle (l : SignedLabel B N0) (x : LocalSignedRequest.Point) (θ : ℝ) : |
| 1879 | potentialCoefficient l (BaseChartJets.cellBand l.2) (x, θ) = |
| 1880 | potentialCoefficient l (BaseChartJets.cellBand l.2) (x, 0) := by |
| 1881 | rw [potentialCoefficient_self, potentialCoefficient_self] |
| 1882 | apply tsum_congr |
| 1883 | intro k |
| 1884 | exact InitialNativeRegularity.copyPotentialCoefficient_angle l k _ x θ |
| 1885 | |
| 1886 | theorem potentialCoefficient_polar (l : SignedLabel B N0) {a : ℝ} (ha : 0 < a) |
| 1887 | (j : PolarCharts.Index) {x : LiftPoint} |
| 1888 | (hx : PhysicalGraphBounds.liftXY x ∈ PolarCharts.chartDomain a j) : |
| 1889 | potentialCoefficient l (BaseChartJets.cellBand l.2) (polarPoint a j x) = |
| 1890 | potentialCoefficient l (BaseChartJets.cellBand l.2) (PhysicalClassBounds.cylindricalMap x, 0) := by |
| 1891 | have he := potentialCoefficient_angle l (polarPoint a j x).1 (polarPoint a j x).2 |
| 1892 | change potentialCoefficient l (BaseChartJets.cellBand l.2) (polarPoint a j x) = |
| 1893 | potentialCoefficient l (BaseChartJets.cellBand l.2) ((polarPoint a j x).1, 0) at he |
| 1894 | rwa [polarPoint_fst ha j hx] at he |
| 1895 | |
| 1896 | theorem commonIndex_gap_selected (l : SignedLabel B N0) : |
| 1897 | ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2) - gap (bandLabel l) = |
| 1898 | CommonWindow.index ActualPrimary.h (BaseChartJets.cellBand l.2) := commonIndex_gap (bandLabel l) |
| 1899 | |
| 1900 | end PhysicalCoordinates |
| 1901 | |
| 1902 | section PrimaryFieldIdentities |
| 1903 | |
| 1904 | variable {B N0 : ℕ} |
| 1905 | |
| 1906 | theorem potential_periodized_of_chart (l : SignedLabel B N0) (i : Fin 3) |
| 1907 | (j : PolarCharts.Index) (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) |
| 1908 | (hann : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w ∈ |
| 1909 | PhysicalGraphBounds.annulus innerRadius outerRadius) |
| 1910 | (hj : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w ∈ |
| 1911 | PolarCharts.chartDomain innerRadius j) : |
| 1912 | (potentialFamily B N0 i).periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius (positiveIndex l) w = |
| 1913 | (ChartScales.Q (BaseChartJets.cellBand l.2) ^ (-ActualPrimary.h) • |
| 1914 | (CartesianCopySource.rotationMap (PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w) |
| 1915 | (potentialCoefficient l (BaseChartJets.cellBand l.2) |
| 1916 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0))) i) * |
| 1917 | HarmonicCalculus.carrier ((cutCoefficients l).frequency (BaseChartJets.cellBand l.2)) |
| 1918 | ((cutCoefficients l).phase (BaseChartJets.cellBand l.2)) |
| 1919 | (polarPoint innerRadius j |
| 1920 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w)) := by |
| 1921 | have hc := PhysicalWaveSum.chooseChart_valid innerRadius_pos hann |
| 1922 | have he (k : Frequency) : |
| 1923 | PhysicalWaveSum.commonWave innerRadius ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 1924 | (gap (bandLabel l)) ActualPrimary.slots.radius |
| 1925 | ((selectedCarrier l k).withChart (PhysicalWaveSum.chooseChart innerRadius |
| 1926 | (PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w))) |
| 1927 | ((potentialFamily B N0 i).amplitude k (positiveIndex l)) 1 w = |
| 1928 | PhysicalWaveSum.commonWave innerRadius ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 1929 | (gap (bandLabel l)) ActualPrimary.slots.radius ((selectedCarrier l k).withChart j) |
| 1930 | ((potentialFamily B N0 i).amplitude k (positiveIndex l)) 1 w := by |
| 1931 | obtain ⟨m, hm⟩ := carrier_integer (B := B) (N0 := N0) (bandLabel l) k |
| 1932 | rw [carrier_bandLabel] at hm |
| 1933 | exact PhysicalWaveSum.commonWave_charts_agree innerRadius_pos ActualPrimary.h |
| 1934 | (BaseChartJets.cellBand l.2) (gap (bandLabel l)) ActualPrimary.slots.radius |
| 1935 | (selectedCarrier l k) ((potentialFamily B N0 i).amplitude k (positiveIndex l)) 1 w m hm _ j hc hj |
| 1936 | unfold PhysicalCopyBounds.CopyFamily.periodized |
| 1937 | simp_rw [potential_term, he, potential_commonWave l _ i j w hw, liftXY_common] |
| 1938 | rw [tsum_mul_right, tsum_const_smul'', potential_rotated_sum] |
| 1939 | |
| 1940 | theorem pressure_periodized_of_chart (l : SignedLabel B N0) |
| 1941 | (j : PolarCharts.Index) (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) |
| 1942 | (hann : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w ∈ |
| 1943 | PhysicalGraphBounds.annulus innerRadius outerRadius) |
| 1944 | (hj : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w ∈ |
| 1945 | PolarCharts.chartDomain innerRadius j) : |
| 1946 | (pressureFamily B N0).periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius (positiveIndex l) w = |
| 1947 | (ChartScales.Q (BaseChartJets.cellBand l.2) ^ (-(2 * CoordinateAlgebra.A ActualPrimary.h)) • |
| 1948 | (cutCoefficients l).pressure (BaseChartJets.cellBand l.2) |
| 1949 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0)) * |
| 1950 | HarmonicCalculus.carrier ((cutCoefficients l).frequency (BaseChartJets.cellBand l.2)) |
| 1951 | ((cutCoefficients l).phase (BaseChartJets.cellBand l.2)) |
| 1952 | (polarPoint innerRadius j |
| 1953 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w)) := by |
| 1954 | have hc := PhysicalWaveSum.chooseChart_valid innerRadius_pos hann |
| 1955 | have he (k : Frequency) : |
| 1956 | PhysicalWaveSum.commonWave innerRadius ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 1957 | (gap (bandLabel l)) ActualPrimary.slots.radius |
| 1958 | ((selectedCarrier l k).withChart (PhysicalWaveSum.chooseChart innerRadius |
| 1959 | (PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w))) |
| 1960 | ((pressureFamily B N0).amplitude k (positiveIndex l)) 1 w = |
| 1961 | PhysicalWaveSum.commonWave innerRadius ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 1962 | (gap (bandLabel l)) ActualPrimary.slots.radius ((selectedCarrier l k).withChart j) |
| 1963 | ((pressureFamily B N0).amplitude k (positiveIndex l)) 1 w := by |
| 1964 | obtain ⟨m, hm⟩ := carrier_integer (B := B) (N0 := N0) (bandLabel l) k |
| 1965 | rw [carrier_bandLabel] at hm |
| 1966 | exact PhysicalWaveSum.commonWave_charts_agree innerRadius_pos ActualPrimary.h |
| 1967 | (BaseChartJets.cellBand l.2) (gap (bandLabel l)) ActualPrimary.slots.radius |
| 1968 | (selectedCarrier l k) ((pressureFamily B N0).amplitude k (positiveIndex l)) 1 w m hm _ j hc hj |
| 1969 | unfold PhysicalCopyBounds.CopyFamily.periodized |
| 1970 | simp_rw [pressure_term, he, pressure_commonWave l _ j w hw] |
| 1971 | rw [tsum_mul_right, tsum_const_smul'', ← cut_pressure_self] |
| 1972 | |
| 1973 | theorem potential_periodized_mode (l : SignedLabel B N0) (i : Fin 3) |
| 1974 | (j : PolarCharts.Index) (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) |
| 1975 | (hann : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w ∈ |
| 1976 | PhysicalGraphBounds.annulus innerRadius outerRadius) |
| 1977 | (hj : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w ∈ |
| 1978 | PolarCharts.chartDomain innerRadius j) : |
| 1979 | (potentialFamily B N0 i).periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius (positiveIndex l) w = |
| 1980 | ChartScales.Q (BaseChartJets.cellBand l.2) ^ (-ActualPrimary.h) • |
| 1981 | ActualSignedPhysicalData.rotateCoefficient (PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w) |
| 1982 | (HarmonicCalculus.vectorMode ((cutCoefficients l).frequency (BaseChartJets.cellBand l.2)) |
| 1983 | ((cutCoefficients l).phase (BaseChartJets.cellBand l.2)) |
| 1984 | (potentialCoefficient l (BaseChartJets.cellBand l.2)) |
| 1985 | (polarPoint innerRadius j |
| 1986 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w))) i := by |
| 1987 | have hc : PhysicalGraphBounds.liftXY |
| 1988 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w) ∈ |
| 1989 | PolarCharts.chartDomain innerRadius j := by simpa only [liftXY_common] using hj |
| 1990 | rw [potential_periodized_of_chart l i j w hw hann hj] |
| 1991 | rw [ActualSignedPhysicalData.rotateCoefficient_vectorMode, |
| 1992 | potentialCoefficient_polar l innerRadius_pos j hc, ActualSignedPhysicalData.cartesian_rotation] |
| 1993 | exact smul_mul_assoc _ _ _ |
| 1994 | |
| 1995 | theorem pressureCoefficient_polar (l : SignedLabel B N0) (n : ℕ) {a : ℝ} (ha : 0 < a) |
| 1996 | (j : PolarCharts.Index) {x : LiftPoint} |
| 1997 | (hx : PhysicalGraphBounds.liftXY x ∈ PolarCharts.chartDomain a j) : |
| 1998 | (cutCoefficients l).pressure n (polarPoint a j x) = |
| 1999 | (cutCoefficients l).pressure n (PhysicalClassBounds.cylindricalMap x, 0) := by |
| 2000 | have he : (cutCoefficients l).pressure n (polarPoint a j x) = |
| 2001 | (cutCoefficients l).pressure n ((polarPoint a j x).1, 0) := rfl |
| 2002 | rwa [polarPoint_fst ha j hx] at he |
| 2003 | |
| 2004 | theorem pressure_periodized_mode (l : SignedLabel B N0) |
| 2005 | (j : PolarCharts.Index) (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2006 | (hann : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w ∈ |
| 2007 | PhysicalGraphBounds.annulus innerRadius outerRadius) |
| 2008 | (hj : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w ∈ |
| 2009 | PolarCharts.chartDomain innerRadius j) : |
| 2010 | (pressureFamily B N0).periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius (positiveIndex l) w = |
| 2011 | ChartScales.Q (BaseChartJets.cellBand l.2) ^ (-(2 * CoordinateAlgebra.A ActualPrimary.h)) • |
| 2012 | HarmonicCalculus.mode ((cutCoefficients l).frequency (BaseChartJets.cellBand l.2)) |
| 2013 | ((cutCoefficients l).phase (BaseChartJets.cellBand l.2)) |
| 2014 | ((cutCoefficients l).pressure (BaseChartJets.cellBand l.2)) |
| 2015 | (polarPoint innerRadius j |
| 2016 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w)) := by |
| 2017 | have hc : PhysicalGraphBounds.liftXY |
| 2018 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w) ∈ |
| 2019 | PolarCharts.chartDomain innerRadius j := by simpa only [liftXY_common] using hj |
| 2020 | rw [pressure_periodized_of_chart l j w hw hann hj, HarmonicCalculus.mode, |
| 2021 | pressureCoefficient_polar l _ innerRadius_pos j hc] |
| 2022 | exact smul_mul_assoc _ _ _ |
| 2023 | |
| 2024 | theorem potential_periodized_cartesian (l : SignedLabel B N0) (i : Fin 3) |
| 2025 | (j : PolarCharts.Index) (z : ProblemStatement.SpaceTime) (ht : z.1 < 1) (hr : 0 < z.2 0) |
| 2026 | (hangle : z.2 1 - PolarCharts.offset j ∈ Ioo (-(Real.pi / 2)) (Real.pi / 2)) |
| 2027 | (hann : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) (z.1, CylindricalResidual.chart z.2) ∈ |
| 2028 | PhysicalGraphBounds.annulus innerRadius outerRadius) |
| 2029 | (hj : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) (z.1, CylindricalResidual.chart z.2) ∈ |
| 2030 | PolarCharts.chartDomain innerRadius j) : |
| 2031 | ((potentialFamily B N0 i).periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius |
| 2032 | (positiveIndex l) (z.1, CylindricalResidual.chart z.2)).re = |
| 2033 | ActualPrimaryCoherence.cartesianPotential l.1 l.2 (z.1, CylindricalResidual.chart z.2) i := by |
| 2034 | let w := (z.1, CylindricalResidual.chart z.2) |
| 2035 | have hmap := polarPoint_common_forward ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 2036 | (gap (bandLabel l)) (gap_native (bandLabel l)) innerRadius_pos j z hr hangle hj |
| 2037 | rw [commonIndex_gap_selected] at hmap |
| 2038 | have hc : PhysicalGraphBounds.liftXY |
| 2039 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w) ∈ |
| 2040 | PolarCharts.chartDomain innerRadius j := by simpa only [liftXY_common] using hj |
| 2041 | have ha : (PolarCharts.chart innerRadius j |
| 2042 | (PhysicalGraphBounds.liftXY |
| 2043 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w))).2 = z.2 1 := |
| 2044 | congrArg Prod.snd hmap |
| 2045 | have hp := physicalPotential_eq_mode l (BaseChartJets.cellBand l.2) ht hr |
| 2046 | have he := ActualSignedPhysicalData.rotateCoefficient_chart_re innerRadius_pos j hc |
| 2047 | (ChartScales.Q (BaseChartJets.cellBand l.2) ^ (-ActualPrimary.h) • |
| 2048 | HarmonicCalculus.vectorMode ((cutCoefficients l).frequency (BaseChartJets.cellBand l.2)) |
| 2049 | ((cutCoefficients l).phase (BaseChartJets.cellBand l.2)) (potentialCoefficient l (BaseChartJets.cellBand l.2)) |
| 2050 | (polarPoint innerRadius j |
| 2051 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w))) i |
| 2052 | rw [ActualSignedPhysicalData.rotateCoefficient_real_smul, Pi.smul_apply] at he |
| 2053 | rw [ha, hmap, ← hp] at he |
| 2054 | rw [potential_periodized_mode l i j (z.1, CylindricalResidual.chart z.2) ht hann hj, hmap] |
| 2055 | have hcart := ActualPrimaryCoherence.globalPotential_forward (ActualPrimaryCoherence.physicalAxisRadius_pos l.2) |
| 2056 | (ActualPrimaryCoherence.physicalPotential l.1 l.2) |
| 2057 | (ActualPrimaryCoherence.physicalPotential_periodic l.1 l.2) |
| 2058 | (ActualPrimaryCoherence.physicalPotential_zero_axis l.1 l.2) (z := z) hr |
| 2059 | have hh := he.trans (congrArg (fun v : ProblemStatement.Space => v i) hcart).symm |
| 2060 | simp only [liftXY_common, w] at hh ⊢ |
| 2061 | exact hh |
| 2062 | |
| 2063 | theorem pressure_periodized_physical (l : SignedLabel B N0) |
| 2064 | (j : PolarCharts.Index) (z : ProblemStatement.SpaceTime) (ht : z.1 < 1) (hr : 0 < z.2 0) |
| 2065 | (hangle : z.2 1 - PolarCharts.offset j ∈ Ioo (-(Real.pi / 2)) (Real.pi / 2)) |
| 2066 | (hann : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) (z.1, CylindricalResidual.chart z.2) ∈ |
| 2067 | PhysicalGraphBounds.annulus innerRadius outerRadius) |
| 2068 | (hj : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) (z.1, CylindricalResidual.chart z.2) ∈ |
| 2069 | PolarCharts.chartDomain innerRadius j) : |
| 2070 | ((pressureFamily B N0).periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius |
| 2071 | (positiveIndex l) (z.1, CylindricalResidual.chart z.2)).re = |
| 2072 | ActualPrimaryCoherence.physicalPressure l.1 l.2 z := by |
| 2073 | have hmap := polarPoint_common_forward ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 2074 | (gap (bandLabel l)) (gap_native (bandLabel l)) innerRadius_pos j z hr hangle hj |
| 2075 | rw [commonIndex_gap_selected] at hmap |
| 2076 | rw [pressure_periodized_mode l j (z.1, CylindricalResidual.chart z.2) ht hann hj, hmap] |
| 2077 | rw [Complex.smul_re] |
| 2078 | change ChartScales.Q (BaseChartJets.cellBand l.2) ^ (-(2 * CoordinateAlgebra.A ActualPrimary.h)) * |
| 2079 | (ActualPrimary.piece region l.1 l.2).pressure (BaseChartJets.cellBand l.2) |
| 2080 | (PhysicalResidualTZ.swapCylinder ((PhysicalResidualBridge.commonGraph (ChartScales.Q (BaseChartJets.cellBand l.2)) |
| 2081 | ActualPrimary.h (CommonWindow.index ActualPrimary.h (BaseChartJets.cellBand l.2))).map z)) = _ |
| 2082 | rw [ActualPrimaryCoherence.piece_physical_pressure region l.1 l.2 _ hr, ← mul_assoc, |
| 2083 | ← Real.rpow_add (ChartScales.Q_pos _), neg_add_cancel, Real.rpow_zero, one_mul] |
| 2084 | |
| 2085 | end PrimaryFieldIdentities |
| 2086 | |
| 2087 | section GlobalPrimaryPotential |
| 2088 | |
| 2089 | noncomputable def scaledRepresentative (a : ℝ) (j : PolarCharts.Index) (n : ℕ) |
| 2090 | (w : ProblemStatement.SpaceTime) : ProblemStatement.SpaceTime := |
| 2091 | (w.1, AxisymmetricResidual.pack |
| 2092 | (ChartScales.Q n ^ (1 / 2 : ℝ) * (PolarCharts.chart a j (PhysicalGraphBounds.scaledRadial n w)).1) |
| 2093 | (PolarCharts.chart a j (PhysicalGraphBounds.scaledRadial n w)).2 (w.2 2)) |
| 2094 | |
| 2095 | theorem scaledRepresentative_spec {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) (n : ℕ) |
| 2096 | (w : ProblemStatement.SpaceTime) |
| 2097 | (hj : PhysicalGraphBounds.scaledRadial n w ∈ PolarCharts.chartDomain a j) : |
| 2098 | (scaledRepresentative a j n w).1 = w.1 ∧ |
| 2099 | 0 < (scaledRepresentative a j n w).2 0 ∧ |
| 2100 | (scaledRepresentative a j n w).2 1 - PolarCharts.offset j ∈ Ioo (-(Real.pi / 2)) (Real.pi / 2) ∧ |
| 2101 | ((scaledRepresentative a j n w).1, CylindricalResidual.chart (scaledRepresentative a j n w).2) = w := by |
| 2102 | refine ⟨rfl, ?_, ?_, ?_⟩ |
| 2103 | · simp only [scaledRepresentative, AxisymmetricResidual.pack_zero] |
| 2104 | rw [ActualSignedPhysicalData.chart_radius ha j hj] |
| 2105 | exact mul_pos (Real.rpow_pos_of_pos (ChartScales.Q_pos n) _) (ActualSignedPhysicalData.chart_radius_pos ha j hj) |
| 2106 | · simp only [scaledRepresentative, AxisymmetricResidual.pack_one, |
| 2107 | PolarCharts.chart_eq_localChart ha j hj, PolarCharts.localChart_apply, add_sub_cancel_right] |
| 2108 | exact ⟨Real.neg_pi_div_two_lt_arctan _, Real.arctan_lt_pi_div_two _⟩ |
| 2109 | · have he := (congrArg (fun y : PhysicalGraphBounds.Plane => ChartScales.Q n ^ (1 / 2 : ℝ) • y) |
| 2110 | (PolarCharts.polar_chart ha j hj)).trans (PhysicalGraphBounds.unscale_radial n w) |
| 2111 | apply Prod.ext |
| 2112 | · rfl |
| 2113 | ext i |
| 2114 | fin_cases i |
| 2115 | · simpa [scaledRepresentative, CylindricalResidual.chart, PhysicalGraphBounds.radialProjection_apply, |
| 2116 | PolarCharts.polar, mul_assoc] using congrArg Prod.fst he |
| 2117 | · simpa [scaledRepresentative, CylindricalResidual.chart, PhysicalGraphBounds.radialProjection_apply, |
| 2118 | PolarCharts.polar, mul_assoc] using congrArg Prod.snd he |
| 2119 | · simp [scaledRepresentative, CylindricalResidual.chart] |
| 2120 | |
| 2121 | theorem exists_scaledRepresentative (n : ℕ) (w : ProblemStatement.SpaceTime) |
| 2122 | (hw : PhysicalGraphBounds.radialProjection w ≠ 0) : |
| 2123 | ∃ z : ProblemStatement.SpaceTime, z.1 = w.1 ∧ 0 < z.2 0 ∧ |
| 2124 | (z.1, CylindricalResidual.chart z.2) = w := by |
| 2125 | have hn : PhysicalGraphBounds.scaledRadial n w ≠ 0 := by |
| 2126 | intro h |
| 2127 | apply hw |
| 2128 | rw [← PhysicalGraphBounds.unscale_radial n w, h, smul_zero] |
| 2129 | let a := ‖PhysicalGraphBounds.scaledRadial n w‖ |
| 2130 | have ha : 0 < a := norm_pos_iff.mpr hn |
| 2131 | have hann : PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus a a := |
| 2132 | ⟨by simp only [Metric.mem_closedBall, dist_zero_right]; exact le_rfl, |
| 2133 | by change a ≤ ‖PhysicalGraphBounds.scaledRadial n w‖; exact le_rfl⟩ |
| 2134 | let j := PhysicalWaveSum.chooseChart a (PhysicalGraphBounds.scaledRadial n w) |
| 2135 | have hj := PhysicalWaveSum.chooseChart_valid ha hann |
| 2136 | have hz := scaledRepresentative_spec ha j n w hj |
| 2137 | exact ⟨scaledRepresentative a j n w, hz.1, hz.2.1, hz.2.2.2⟩ |
| 2138 | |
| 2139 | variable {B N0 : ℕ} |
| 2140 | |
| 2141 | theorem cartesianPotential_zero_of_common_zero (l : SignedLabel B N0) |
| 2142 | (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2143 | (hz : potentialCoefficient l (BaseChartJets.cellBand l.2) |
| 2144 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0) = 0) : |
| 2145 | ActualPrimaryCoherence.cartesianPotential l.1 l.2 w = 0 := by |
| 2146 | by_cases haxis : PhysicalGraphBounds.radialProjection w = 0 |
| 2147 | · apply (PhysicalCurlCovariance.globalCartesianPotential_zero_germ |
| 2148 | (ActualPrimaryCoherence.physicalAxisRadius_pos l.2) |
| 2149 | (ActualPrimaryCoherence.physicalPotential_zero_axis l.1 l.2) ?_).eq_of_nhds |
| 2150 | simpa [haxis, PolarCharts.radius] using ActualPrimaryCoherence.physicalAxisRadius_pos l.2 |
| 2151 | · obtain ⟨z, ht, hr, hb⟩ := exists_scaledRepresentative (BaseChartJets.cellBand l.2) w haxis |
| 2152 | have hg := graph_cartesian_forward ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 2153 | (gap (bandLabel l)) (gap_native (bandLabel l)) z hr |
| 2154 | rw [commonIndex_gap_selected, hb] at hg |
| 2155 | have hpnt : PhysicalResidualTZ.swapCylinder |
| 2156 | ((PhysicalResidualBridge.commonGraph (ChartScales.Q (BaseChartJets.cellBand l.2)) ActualPrimary.h |
| 2157 | (CommonWindow.index ActualPrimary.h (BaseChartJets.cellBand l.2))).map z) = |
| 2158 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, z.2 1) := |
| 2159 | Prod.ext hg.symm rfl |
| 2160 | have hphys : ActualPrimaryCoherence.physicalPotential l.1 l.2 z = 0 := by |
| 2161 | rw [physicalPotential_eq_mode l _ (by simp only [ht]; exact hw) hr, hpnt] |
| 2162 | ext i |
| 2163 | simp only [Pi.smul_apply, HarmonicCalculus.vectorMode, HarmonicCalculus.mode, |
| 2164 | potentialCoefficient_angle, hz, Pi.zero_apply, zero_mul, smul_zero] |
| 2165 | have he := ActualPrimaryCoherence.globalPotential_forward (ActualPrimaryCoherence.physicalAxisRadius_pos l.2) |
| 2166 | (ActualPrimaryCoherence.physicalPotential l.1 l.2) |
| 2167 | (ActualPrimaryCoherence.physicalPotential_periodic l.1 l.2) |
| 2168 | (ActualPrimaryCoherence.physicalPotential_zero_axis l.1 l.2) (z := z) hr |
| 2169 | have hzero : PhysicalCurlCovariance.realVector (0 : ComplexVector) = 0 := by |
| 2170 | ext i |
| 2171 | simp |
| 2172 | simp only [hphys, hzero, map_zero, hb] at he |
| 2173 | exact he |
| 2174 | |
| 2175 | theorem potentialCoefficient_zero_off_annulus (l : SignedLabel B N0) |
| 2176 | (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2177 | (hann : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w ∉ |
| 2178 | PhysicalGraphBounds.annulus innerRadius outerRadius) : |
| 2179 | potentialCoefficient l (BaseChartJets.cellBand l.2) |
| 2180 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0) = 0 := by |
| 2181 | apply potentialCoefficient_zero |
| 2182 | rw [cut_amplitude_self] |
| 2183 | refine (tsum_congr ?_).trans tsum_zero |
| 2184 | intro k |
| 2185 | by_contra hk |
| 2186 | have he := copyAmplitude_nativeAt l k |
| 2187 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w) |
| 2188 | change copyAmplitude l k (BaseChartJets.cellBand l.2) |
| 2189 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0) = _ at he |
| 2190 | rw [he] at hk |
| 2191 | have h := cut_pair_annulus l (bandLabel l) k _ |
| 2192 | (PhysicalMeanJetBounds.graph_time_pos ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) hw) (Or.inl hk) |
| 2193 | exact hann (by simpa only [liftXY_common] using h.1) |
| 2194 | |
| 2195 | /-- Every actual periodized initial potential is the pre-existing |
| 2196 | Cartesian primary potential, including the zero region and the axis. -/ |
| 2197 | theorem potential_periodized_eq (l : SignedLabel B N0) (i : Fin 3) |
| 2198 | (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) : |
| 2199 | ((potentialFamily B N0 i).periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius |
| 2200 | (positiveIndex l) w).re = ActualPrimaryCoherence.cartesianPotential l.1 l.2 w i := by |
| 2201 | by_cases hann : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w ∈ |
| 2202 | PhysicalGraphBounds.annulus innerRadius outerRadius |
| 2203 | · let j := PhysicalWaveSum.chooseChart innerRadius (PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w) |
| 2204 | have hj := PhysicalWaveSum.chooseChart_valid innerRadius_pos hann |
| 2205 | let z := scaledRepresentative innerRadius j (BaseChartJets.cellBand l.2) w |
| 2206 | have hz : z.1 = w.1 ∧ 0 < z.2 0 ∧ |
| 2207 | z.2 1 - PolarCharts.offset j ∈ Ioo (-(Real.pi / 2)) (Real.pi / 2) ∧ |
| 2208 | (z.1, CylindricalResidual.chart z.2) = w := |
| 2209 | scaledRepresentative_spec innerRadius_pos j (BaseChartJets.cellBand l.2) w hj |
| 2210 | have he := potential_periodized_cartesian l i j z (by simp only [hz.1]; exact hw) hz.2.1 hz.2.2.1 |
| 2211 | (by simpa only [hz.2.2.2] using hann) (by simpa only [hz.2.2.2] using hj) |
| 2212 | simpa only [hz.2.2.2] using he |
| 2213 | · have hp := potentialCoefficient_zero_off_annulus l w hw hann |
| 2214 | have hz := cartesianPotential_zero_of_common_zero l w hw hp |
| 2215 | rw [potential_periodized l i w hw, hp, hz] |
| 2216 | simp [map_zero, smul_zero, zero_mul, Complex.zero_re] |
| 2217 | |
| 2218 | end GlobalPrimaryPotential |
| 2219 | |
| 2220 | section GlobalPrimaryPressure |
| 2221 | |
| 2222 | variable {B N0 : ℕ} |
| 2223 | |
| 2224 | noncomputable def physicalPressureCoefficient (l : SignedLabel B N0) |
| 2225 | (z : ProblemStatement.SpaceTime) : ℂ := |
| 2226 | ActualPrimary.periodicGaussian l.1 l.2 (ActualPrimaryCoherence.physicalLift z).1.2 • |
| 2227 | ActualPrimary.absolutePressure l.1 l.2 (ActualPrimaryCoherence.physicalLift z).1 |
| 2228 | |
| 2229 | theorem physicalPressureCoefficient_invariant (l : SignedLabel B N0) : |
| 2230 | CopyAngularInvariance.Invariant ActualPrimaryCoherence.physicalAngular (physicalPressureCoefficient l) := by |
| 2231 | intro x t |
| 2232 | unfold physicalPressureCoefficient |
| 2233 | rw [ActualPrimaryCoherence.physicalLift_angular] |
| 2234 | simp only [Prod.fst_add, Prod.smul_fst, smul_zero, add_zero] |
| 2235 | |
| 2236 | theorem physicalPressure_mode (l : SignedLabel B N0) (z : ProblemStatement.SpaceTime) : |
| 2237 | ActualPrimaryCoherence.physicalPressure l.1 l.2 z = |
| 2238 | (HarmonicCalculus.mode 1 (ActualPrimaryCoherence.physicalPhase l.1 l.2) |
| 2239 | (physicalPressureCoefficient l) z).re := rfl |
| 2240 | |
| 2241 | theorem physicalPressure_periodic (l : SignedLabel B N0) (t r z : ℝ) : |
| 2242 | Periodic (fun θ => ActualPrimaryCoherence.physicalPressure l.1 l.2 |
| 2243 | (t, AxisymmetricResidual.pack r θ z)) (2 * Real.pi) := by |
| 2244 | have hh := PhysicalParticularWave.mode_fullTurn |
| 2245 | (PrimaryGeometryAssembly.angularMode ActualPrimary.certificate ActualPrimary.modulation |
| 2246 | (ActualPrimary.choice B N0).prepared l.1 l.2) |
| 2247 | (ActualPrimaryCoherence.physicalPhase_angular l.1 l.2) |
| 2248 | (physicalPressureCoefficient_invariant l) (one_mul _) |
| 2249 | intro θ |
| 2250 | change ActualPrimaryCoherence.physicalPressure l.1 l.2 |
| 2251 | (t, AxisymmetricResidual.pack r (θ + 2 * Real.pi) z) = |
| 2252 | ActualPrimaryCoherence.physicalPressure l.1 l.2 (t, AxisymmetricResidual.pack r θ z) |
| 2253 | rw [physicalPressure_mode, physicalPressure_mode] |
| 2254 | apply congrArg Complex.re |
| 2255 | simpa only [ActualPrimaryCoherence.physicalAngular, PhysicalParticularWave.angle_translate_pack] using |
| 2256 | hh (t, AxisymmetricResidual.pack r θ z) |
| 2257 | |
| 2258 | theorem space_pack (q : ProblemStatement.Space) : |
| 2259 | AxisymmetricResidual.pack (q 0) (q 1) (q 2) = q := by |
| 2260 | ext i |
| 2261 | fin_cases i <;> simp |
| 2262 | |
| 2263 | theorem physicalPressure_eq_of_chart_eq (l : SignedLabel B N0) |
| 2264 | {z z' : ProblemStatement.SpaceTime} (hr : 0 < z.2 0) (hr' : 0 < z'.2 0) |
| 2265 | (he : (z.1, CylindricalResidual.chart z.2) = (z'.1, CylindricalResidual.chart z'.2)) : |
| 2266 | ActualPrimaryCoherence.physicalPressure l.1 l.2 z = |
| 2267 | ActualPrimaryCoherence.physicalPressure l.1 l.2 z' := by |
| 2268 | have ht0 := congrArg (fun w : ProblemStatement.SpaceTime => w.1) he |
| 2269 | have ht : z.1 = z'.1 := ht0 |
| 2270 | have hz : z.2 2 = z'.2 2 := by |
| 2271 | simpa [CylindricalResidual.chart] using congrArg (fun x : ProblemStatement.SpaceTime => x.2 2) he |
| 2272 | have hpolar : PolarCharts.polar (z.2 0, z.2 1) = PolarCharts.polar (z'.2 0, z'.2 1) := by |
| 2273 | simpa [PhysicalGraphBounds.radialProjection_apply, CylindricalResidual.chart, PolarCharts.polar] using |
| 2274 | congrArg PhysicalGraphBounds.radialProjection he |
| 2275 | have hrad : z.2 0 = z'.2 0 := by |
| 2276 | have hh := congrArg PolarCharts.radius hpolar |
| 2277 | simpa only [PolarCharts.radius_polar, abs_of_pos hr, abs_of_pos hr'] using hh |
| 2278 | let f : TorusInverse.Plane → ℝ := fun q => ActualPrimaryCoherence.physicalPressure l.1 l.2 |
| 2279 | (z'.1, AxisymmetricResidual.pack q.1 q.2 (z'.2 2)) |
| 2280 | have hval := ActualPrimaryCoherence.periodic_value_of_polar_eq f |
| 2281 | (fun r => physicalPressure_periodic l z'.1 r (z'.2 2)) hr'.ne' hrad hpolar |
| 2282 | calc |
| 2283 | _ = f (z.2 0, z.2 1) := by |
| 2284 | apply congrArg (ActualPrimaryCoherence.physicalPressure l.1 l.2) |
| 2285 | apply Prod.ext |
| 2286 | · exact ht |
| 2287 | · change z.2 = AxisymmetricResidual.pack (z.2 0) (z.2 1) (z'.2 2) |
| 2288 | rw [← hz, space_pack] |
| 2289 | _ = f (z'.2 0, z'.2 1) := hval |
| 2290 | _ = _ := by |
| 2291 | change ActualPrimaryCoherence.physicalPressure l.1 l.2 |
| 2292 | (z'.1, AxisymmetricResidual.pack (z'.2 0) (z'.2 1) (z'.2 2)) = _ |
| 2293 | rw [space_pack] |
| 2294 | |
| 2295 | theorem pressureCoefficient_zero_off_annulus (l : SignedLabel B N0) |
| 2296 | (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2297 | (hann : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w ∉ |
| 2298 | PhysicalGraphBounds.annulus innerRadius outerRadius) : |
| 2299 | (cutCoefficients l).pressure (BaseChartJets.cellBand l.2) |
| 2300 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0) = 0 := by |
| 2301 | rw [cut_pressure_self] |
| 2302 | refine (tsum_congr ?_).trans tsum_zero |
| 2303 | intro k |
| 2304 | by_contra hk |
| 2305 | have he := copyPressure_nativeAt l k |
| 2306 | (PhysicalWaveSum.commonLift ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w) |
| 2307 | change copyPressureCoefficient l k (BaseChartJets.cellBand l.2) |
| 2308 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) w, 0) = _ at he |
| 2309 | rw [he] at hk |
| 2310 | have h := cut_pair_annulus l (bandLabel l) k _ |
| 2311 | (PhysicalMeanJetBounds.graph_time_pos ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) hw) (Or.inr hk) |
| 2312 | exact hann (by simpa only [liftXY_common] using h.1) |
| 2313 | |
| 2314 | theorem physicalPressure_zero_of_common_zero (l : SignedLabel B N0) |
| 2315 | (z : ProblemStatement.SpaceTime) (hr : 0 < z.2 0) |
| 2316 | (hz : (cutCoefficients l).pressure (BaseChartJets.cellBand l.2) |
| 2317 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) |
| 2318 | (z.1, CylindricalResidual.chart z.2), 0) = 0) : |
| 2319 | ActualPrimaryCoherence.physicalPressure l.1 l.2 z = 0 := by |
| 2320 | have hg := graph_cartesian_forward ActualPrimary.h (BaseChartJets.cellBand l.2) |
| 2321 | (gap (bandLabel l)) (gap_native (bandLabel l)) z hr |
| 2322 | rw [commonIndex_gap_selected] at hg |
| 2323 | have hpnt : PhysicalResidualTZ.swapCylinder |
| 2324 | ((PhysicalResidualBridge.commonGraph (ChartScales.Q (BaseChartJets.cellBand l.2)) ActualPrimary.h |
| 2325 | (CommonWindow.index ActualPrimary.h (BaseChartJets.cellBand l.2))).map z) = |
| 2326 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) |
| 2327 | (z.1, CylindricalResidual.chart z.2), z.2 1) := Prod.ext hg.symm rfl |
| 2328 | have he := ActualPrimaryCoherence.piece_physical_pressure region l.1 l.2 (BaseChartJets.cellBand l.2) hr |
| 2329 | rw [hpnt] at he |
| 2330 | have hp : (cutCoefficients l).pressure (BaseChartJets.cellBand l.2) |
| 2331 | (PhysicalMeanJetBounds.graph ActualPrimary.h (BaseChartJets.cellBand l.2) (gap (bandLabel l)) |
| 2332 | (z.1, CylindricalResidual.chart z.2), z.2 1) = 0 := hz |
| 2333 | change (HarmonicCalculus.mode ((cutCoefficients l).frequency (BaseChartJets.cellBand l.2)) |
| 2334 | ((cutCoefficients l).phase (BaseChartJets.cellBand l.2)) ((cutCoefficients l).pressure (BaseChartJets.cellBand l.2)) |
| 2335 | _).re = _ at he |
| 2336 | simp only [HarmonicCalculus.mode, hp, zero_mul, Complex.zero_re] at he |
| 2337 | exact (mul_eq_zero.mp he.symm).resolve_left (Real.rpow_pos_of_pos (ChartScales.Q_pos _) _).ne' |
| 2338 | |
| 2339 | /-- The actual periodized pressure agrees with the original cylindrical |
| 2340 | pressure on every positive-radius physical chart, with all angular |
| 2341 | branches identified by the proved integer harmonic periodicity. -/ |
| 2342 | theorem pressure_periodized_eq (l : SignedLabel B N0) |
| 2343 | (z : ProblemStatement.SpaceTime) (ht : z.1 < 1) (hr : 0 < z.2 0) : |
| 2344 | ((pressureFamily B N0).periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius |
| 2345 | (positiveIndex l) (z.1, CylindricalResidual.chart z.2)).re = |
| 2346 | ActualPrimaryCoherence.physicalPressure l.1 l.2 z := by |
| 2347 | let w := (z.1, CylindricalResidual.chart z.2) |
| 2348 | by_cases hann : PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w ∈ |
| 2349 | PhysicalGraphBounds.annulus innerRadius outerRadius |
| 2350 | · let j := PhysicalWaveSum.chooseChart innerRadius (PhysicalGraphBounds.scaledRadial (BaseChartJets.cellBand l.2) w) |
| 2351 | have hj := PhysicalWaveSum.chooseChart_valid innerRadius_pos hann |
| 2352 | let q := scaledRepresentative innerRadius j (BaseChartJets.cellBand l.2) w |
| 2353 | have hq : q.1 = w.1 ∧ 0 < q.2 0 ∧ |
| 2354 | q.2 1 - PolarCharts.offset j ∈ Ioo (-(Real.pi / 2)) (Real.pi / 2) ∧ |
| 2355 | (q.1, CylindricalResidual.chart q.2) = w := |
| 2356 | scaledRepresentative_spec innerRadius_pos j (BaseChartJets.cellBand l.2) w hj |
| 2357 | have he := pressure_periodized_physical l j q (by simpa only [hq.1] using ht) hq.2.1 hq.2.2.1 |
| 2358 | (by simpa only [hq.2.2.2] using hann) (by simpa only [hq.2.2.2] using hj) |
| 2359 | have hp := physicalPressure_eq_of_chart_eq l hq.2.1 hr hq.2.2.2 |
| 2360 | simpa only [hq.2.2.2] using he.trans hp |
| 2361 | · have hp := pressureCoefficient_zero_off_annulus l w ht hann |
| 2362 | have hz := physicalPressure_zero_of_common_zero l z hr hp |
| 2363 | rw [pressure_periodized l w ht, hp, hz] |
| 2364 | simp only [smul_zero, zero_mul, Complex.zero_re] |
| 2365 | |
| 2366 | end GlobalPrimaryPressure |
| 2367 | |
| 2368 | |
| 2369 | section FiniteAggregation |
| 2370 | |
| 2371 | variable {B N0 : ℕ} |
| 2372 | |
| 2373 | noncomputable def primaryIndex (l : ActualPrimary.Label B N0 × Fin 2) : |
| 2374 | PhysicalWaveSum.WaveIndex 1 := positiveIndex (l.2, l.1) |
| 2375 | |
| 2376 | theorem primaryIndex_injective : Injective (primaryIndex (B := B) (N0 := N0)) := by |
| 2377 | intro l l' h |
| 2378 | have he : bandLabel (l.2, l.1) = bandLabel (l'.2, l'.1) := congrArg Prod.fst h |
| 2379 | have hh := bandLabel_injective he |
| 2380 | exact Prod.ext (congrArg Prod.snd hh) (congrArg Prod.fst hh) |
| 2381 | |
| 2382 | theorem eq_primaryIndex_of_data (l : SignedLabel B N0) (I : PhysicalWaveSum.WaveIndex 1) |
| 2383 | (hl : bandLabel l = I.1) (hi : I.2.val = 1) : primaryIndex (l.2, l.1) = I := by |
| 2384 | apply Prod.ext hl |
| 2385 | apply Subtype.ext |
| 2386 | exact hi.symm |
| 2387 | |
| 2388 | theorem periodized_nonzero_copy {H : ℕ} {K : Type*} (f : PhysicalCopyBounds.CopyFamily H K) |
| 2389 | (a h r0 : ℝ) (I : PhysicalWaveSum.WaveIndex H) (w : ProblemStatement.SpaceTime) |
| 2390 | (hn : f.periodized a h r0 I w ≠ 0) : ∃ k, f.term a h r0 I k w ≠ 0 := by |
| 2391 | by_contra! hz |
| 2392 | apply hn |
| 2393 | simp only [PhysicalCopyBounds.CopyFamily.periodized, hz, tsum_zero] |
| 2394 | |
| 2395 | theorem potential_periodized_index (i : Fin 3) (I : PhysicalWaveSum.WaveIndex 1) |
| 2396 | (w : ProblemStatement.SpaceTime) |
| 2397 | (hn : (potentialFamily B N0 i).periodized innerRadius ActualPrimary.h |
| 2398 | ActualPrimary.slots.radius I w ≠ 0) : |
| 2399 | ∃ l : ActualPrimary.Label B N0 × Fin 2, primaryIndex l = I := by |
| 2400 | obtain ⟨k, hk⟩ := periodized_nonzero_copy _ _ _ _ _ _ hn |
| 2401 | obtain ⟨l, hl, hi, _, _⟩ := potential_amplitude_data i k I _ |
| 2402 | (PhysicalWaveSum.globalWave_ne_zero_amp hk) |
| 2403 | exact ⟨(l.2, l.1), eq_primaryIndex_of_data l I hl hi⟩ |
| 2404 | |
| 2405 | theorem pressure_periodized_index (I : PhysicalWaveSum.WaveIndex 1) |
| 2406 | (w : ProblemStatement.SpaceTime) |
| 2407 | (hn : (pressureFamily B N0).periodized innerRadius ActualPrimary.h |
| 2408 | ActualPrimary.slots.radius I w ≠ 0) : |
| 2409 | ∃ l : ActualPrimary.Label B N0 × Fin 2, primaryIndex l = I := by |
| 2410 | obtain ⟨k, hk⟩ := periodized_nonzero_copy _ _ _ _ _ _ hn |
| 2411 | obtain ⟨l, hl, hi, _, _⟩ := pressure_amplitude_data k I _ |
| 2412 | (PhysicalWaveSum.globalWave_ne_zero_amp hk) |
| 2413 | exact ⟨(l.2, l.1), eq_primaryIndex_of_data l I hl hi⟩ |
| 2414 | |
| 2415 | theorem periodized_sum_eq_active (f : PhysicalCopyBounds.CopyFamily 1 Frequency) |
| 2416 | (hsource : ∀ I w, f.periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius I w ≠ 0 → |
| 2417 | ∃ l : ActualPrimary.Label B N0 × Fin 2, primaryIndex l = I) |
| 2418 | (hsupport : ∀ I w, w ∈ PhysicalWaveSum.preterminal → |
| 2419 | f.periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius I w ≠ 0 → |
| 2420 | PhysicalWaveSum.physicalParams ActualPrimary.h w ∈ |
| 2421 | PhysicalWaveSum.labelRegion (CoordinateAlgebra.D ActualPrimary.h) I.1.val) |
| 2422 | (n d : ℕ) (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2423 | (hx : PhysicalMeanJetBounds.graph ActualPrimary.h n d w ∈ strip.domain) : |
| 2424 | f.sum innerRadius ActualPrimary.h ActualPrimary.slots.radius w = |
| 2425 | ∑ l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n, |
| 2426 | f.periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius (primaryIndex l) w := by |
| 2427 | classical |
| 2428 | let s := ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n |
| 2429 | calc |
| 2430 | _ = ∑ I ∈ s.image primaryIndex, |
| 2431 | f.periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius I w := by |
| 2432 | apply finsum_eq_sum_of_support_subset |
| 2433 | intro I hI |
| 2434 | obtain ⟨l, hl⟩ := hsource I w hI |
| 2435 | refine Finset.mem_image.mpr ⟨l, ?_, hl⟩ |
| 2436 | have hm := hsupport I w hw hI |
| 2437 | rw [← hl] at hm |
| 2438 | change (PhysicalWaveSum.physicalQ ActualPrimary.h w, PhysicalWaveSum.physicalPosition w) ∈ _ at hm |
| 2439 | rw [← physicalScale_graph n d hw, ← physicalPosition_graph n d w] at hm |
| 2440 | exact ActualPrimary.activeLabels_cover n hx l.1 l.2 hm |
| 2441 | _ = _ := Finset.sum_image (fun l _ l' _ he => primaryIndex_injective he) |
| 2442 | |
| 2443 | theorem vectorSum_apply {H : ℕ} {K : Type*} (f : Fin 3 → PhysicalCopyBounds.CopyFamily H K) |
| 2444 | (a h r0 : ℝ) (w : ProblemStatement.SpaceTime) (i : Fin 3) : |
| 2445 | PhysicalCopyBounds.vectorSum f a h r0 w i = ((f i).sum a h r0 w).re := by |
| 2446 | unfold PhysicalCopyBounds.vectorSum |
| 2447 | rw [Fin.sum_univ_three] |
| 2448 | fin_cases i <;> simp [PhysicalWaveSum.realCoordinate_apply, |
| 2449 | ProblemStatement.coordinateVector] |
| 2450 | |
| 2451 | theorem spatialCurl_finset_sum {I : Type*} (s : Finset I) |
| 2452 | (A : I → ProblemStatement.VelocityField) {w : ProblemStatement.SpaceTime} |
| 2453 | (hA : ∀ i ∈ s, DifferentiableAt ℝ (A i) w) : |
| 2454 | SpatialCurl.spatialCurl (fun z => ∑ i ∈ s, A i z) w = |
| 2455 | ∑ i ∈ s, SpatialCurl.spatialCurl (A i) w := by |
| 2456 | have hs : ∀ i ∈ s, DifferentiableAt ℝ (fun x : ProblemStatement.Space => A i (w.1, x)) w.2 := by |
| 2457 | intro i hi |
| 2458 | exact (hA i hi).comp w.2 ((differentiableAt_const w.1).prodMk differentiableAt_id) |
| 2459 | unfold SpatialCurl.spatialCurl SpatialCurl.curl |
| 2460 | rw [fderiv_fun_sum hs, map_sum] |
| 2461 | |
| 2462 | theorem primary_cartesianCurl_sum (s : Finset (ActualPrimary.Label B N0 × Fin 2)) |
| 2463 | {w : ProblemStatement.SpaceTime} (hw : w ∈ PhysicalWaveSum.preterminal) : |
| 2464 | SpatialCurl.spatialCurl |
| 2465 | (fun z => ∑ l ∈ s, ActualPrimaryCoherence.cartesianPotential l.2 l.1 z) w = |
| 2466 | ∑ l ∈ s, ActualPrimaryCoherence.cartesianVelocity l.2 l.1 w := by |
| 2467 | apply spatialCurl_finset_sum |
| 2468 | intro l hl |
| 2469 | exact ((ActualPrimaryCoherence.cartesianPotential_smooth l.2 l.1).contDiffAt |
| 2470 | (PhysicalWaveSum.preterminal_open.mem_nhds hw)).differentiableAt (by simp) |
| 2471 | |
| 2472 | |
| 2473 | end FiniteAggregation |
| 2474 | |
| 2475 | |
| 2476 | section FullSlowDomain |
| 2477 | |
| 2478 | theorem physicalX_eq_profileRadius_sq (n d : ℕ) {w : ProblemStatement.SpaceTime} |
| 2479 | (hw : w ∈ PhysicalWaveSum.preterminal) : |
| 2480 | physicalX w = (PrimaryTargetBounds.profileRadius ActualPrimary.h |
| 2481 | (BaseContextAssembly.slowCoordinates (PhysicalMeanJetBounds.graph ActualPrimary.h n d w))) ^ 2 / 2 := by |
| 2482 | let x := PhysicalMeanJetBounds.graph ActualPrimary.h n d w |
| 2483 | have hq : 0 < SimilarityCoordinates.coordinateQ (2 * ActualPrimary.h) x.2.1 := by |
| 2484 | change 0 < SimilarityCoordinates.coordinateQ (2 * ActualPrimary.h) |
| 2485 | (PhysicalMeanJetBounds.graph ActualPrimary.h n d w).2.1 |
| 2486 | rw [PhysicalMeanJetBounds.graph_q_eq ActualPrimary.outgoing.data.h_pos |
| 2487 | ActualPrimary.outgoing.data.h_lt_half n d hw] |
| 2488 | exact div_pos (PhysicalWaveSum.physicalQ_pos ActualPrimary.outgoing.data.h_pos |
| 2489 | ActualPrimary.outgoing.data.h_lt_half hw) (ChartScales.Q_pos n) |
| 2490 | have hprofile : PrimaryTargetBounds.profileRadius ActualPrimary.h |
| 2491 | (BaseContextAssembly.slowCoordinates x) = |
| 2492 | x.1 / Real.sqrt (SimilarityCoordinates.coordinateQ (2 * ActualPrimary.h) x.2.1) := by |
| 2493 | rw [PrimaryTargetBounds.profileRadius, BaseChartJets.normalizedCoordinates_eq] |
| 2494 | rfl |
| 2495 | change physicalX w = (PrimaryTargetBounds.profileRadius ActualPrimary.h |
| 2496 | (BaseContextAssembly.slowCoordinates x)) ^ 2 / 2 |
| 2497 | rw [hprofile] |
| 2498 | unfold physicalX |
| 2499 | rw [← physicalPosition_graph n d w, ← physicalScale_graph n d hw] |
| 2500 | change (Real.sqrt (ChartScales.Q n) * x.1) ^ 2 / |
| 2501 | (2 * (ChartScales.Q n * SimilarityCoordinates.coordinateQ (2 * ActualPrimary.h) x.2.1)) = _ |
| 2502 | rw [mul_pow, Real.sq_sqrt (ChartScales.Q_pos n).le, div_pow, Real.sq_sqrt hq.le] |
| 2503 | field_simp [(ChartScales.Q_pos n).ne', hq.ne'] |
| 2504 | |
| 2505 | theorem graph_mem_strip_of_activeX (n d : ℕ) {w : ProblemStatement.SpaceTime} |
| 2506 | (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2507 | (hs : (PhysicalMeanJetBounds.graph ActualPrimary.h n d w).2.1 ∈ ActualPrimary.standardRegion.carrier) |
| 2508 | (hX : physicalX w ∈ Ioo (NominalConeAssembly.activeLeft ActualPrimary.nominal) |
| 2509 | (NominalConeAssembly.activeRight ActualPrimary.nominal)) : |
| 2510 | PhysicalMeanJetBounds.graph ActualPrimary.h n d w ∈ ActualPrimaryBounds.strip.domain := by |
| 2511 | let x := PhysicalMeanJetBounds.graph ActualPrimary.h n d w |
| 2512 | let r := PrimaryTargetBounds.profileRadius ActualPrimary.h (BaseContextAssembly.slowCoordinates x) |
| 2513 | have hr : 0 ≤ r := by |
| 2514 | apply div_nonneg |
| 2515 | · change 0 ≤ (PhysicalMeanJetBounds.graph ActualPrimary.h n d w).1 |
| 2516 | rw [PhysicalMeanJetBounds.graph_radius] |
| 2517 | exact PolarCharts.radius_nonneg _ |
| 2518 | · exact Real.sqrt_nonneg _ |
| 2519 | have he : physicalX w = r ^ 2 / 2 := physicalX_eq_profileRadius_sq n d hw |
| 2520 | have ha := PrimaryTargetBounds.leftRadius_pos ActualPrimary.nominal |
| 2521 | have hb := PrimaryTargetBounds.rightRadius_pos ActualPrimary.nominal |
| 2522 | have ha2 : (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) ^ 2 = |
| 2523 | 2 * NominalConeAssembly.activeLeft ActualPrimary.nominal := by |
| 2524 | rw [PrimaryTargetBounds.leftRadius, Real.sq_sqrt] |
| 2525 | exact mul_nonneg (by norm_num) (NominalConeAssembly.activeLeft_pos ActualPrimary.nominal).le |
| 2526 | have hb2 : (PrimaryTargetBounds.rightRadius ActualPrimary.nominal) ^ 2 = |
| 2527 | 2 * NominalConeAssembly.activeRight ActualPrimary.nominal := by |
| 2528 | rw [PrimaryTargetBounds.rightRadius, Real.sq_sqrt] |
| 2529 | exact mul_nonneg (by norm_num) (LeadingStressWeights.activeRight_pos ActualPrimary.nominal).le |
| 2530 | have hlo : PrimaryTargetBounds.leftRadius ActualPrimary.nominal < r := by |
| 2531 | apply (sq_lt_sq₀ ha.le hr).mp |
| 2532 | rw [ha2] |
| 2533 | rw [he] at hX |
| 2534 | linarith [hX.1] |
| 2535 | have hhi : r < PrimaryTargetBounds.rightRadius ActualPrimary.nominal := by |
| 2536 | apply (sq_lt_sq₀ hr hb.le).mp |
| 2537 | rw [hb2] |
| 2538 | rw [he] at hX |
| 2539 | linarith [hX.2] |
| 2540 | exact (BaseContextAssembly.nativeStrip_mem ActualPrimary.nominal ActualPrimary.standardRegion x).mpr |
| 2541 | ⟨hs, hlo, hhi⟩ |
| 2542 | |
| 2543 | |
| 2544 | variable {B N0 : ℕ} |
| 2545 | |
| 2546 | theorem potential_periodized_activeX (i : Fin 3) (I : PhysicalWaveSum.WaveIndex 1) |
| 2547 | (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2548 | (hn : (potentialFamily B N0 i).periodized innerRadius ActualPrimary.h |
| 2549 | ActualPrimary.slots.radius I w ≠ 0) : |
| 2550 | physicalX w ∈ Ioo (NominalConeAssembly.activeLeft ActualPrimary.nominal) |
| 2551 | (NominalConeAssembly.activeRight ActualPrimary.nominal) := by |
| 2552 | obtain ⟨k, hk⟩ := periodized_nonzero_copy _ _ _ _ _ _ hn |
| 2553 | obtain ⟨l, _, _, _, hn⟩ := potential_amplitude_data i k I _ |
| 2554 | (PhysicalWaveSum.globalWave_ne_zero_amp hk) |
| 2555 | exact cut_pair_physicalX l I.1 k w hw (Or.inl hn) |
| 2556 | |
| 2557 | theorem pressure_periodized_activeX (I : PhysicalWaveSum.WaveIndex 1) |
| 2558 | (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2559 | (hn : (pressureFamily B N0).periodized innerRadius ActualPrimary.h |
| 2560 | ActualPrimary.slots.radius I w ≠ 0) : |
| 2561 | physicalX w ∈ Ioo (NominalConeAssembly.activeLeft ActualPrimary.nominal) |
| 2562 | (NominalConeAssembly.activeRight ActualPrimary.nominal) := by |
| 2563 | obtain ⟨k, hk⟩ := periodized_nonzero_copy _ _ _ _ _ _ hn |
| 2564 | obtain ⟨l, _, _, _, hn⟩ := pressure_amplitude_data k I _ |
| 2565 | (PhysicalWaveSum.globalWave_ne_zero_amp hk) |
| 2566 | exact cut_pair_physicalX l I.1 k w hw (Or.inr hn) |
| 2567 | |
| 2568 | theorem periodized_sum_eq_active_of_support (f : PhysicalCopyBounds.CopyFamily 1 Frequency) |
| 2569 | (hsource : ∀ I w, f.periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius I w ≠ 0 → |
| 2570 | ∃ l : ActualPrimary.Label B N0 × Fin 2, primaryIndex l = I) |
| 2571 | (hsupport : ∀ I w, w ∈ PhysicalWaveSum.preterminal → |
| 2572 | f.periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius I w ≠ 0 → |
| 2573 | PhysicalWaveSum.physicalParams ActualPrimary.h w ∈ |
| 2574 | PhysicalWaveSum.labelRegion (CoordinateAlgebra.D ActualPrimary.h) I.1.val) |
| 2575 | (n d : ℕ) (w : ProblemStatement.SpaceTime) (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2576 | (hstrip : ∀ I, f.periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius I w ≠ 0 → |
| 2577 | PhysicalMeanJetBounds.graph ActualPrimary.h n d w ∈ strip.domain) : |
| 2578 | f.sum innerRadius ActualPrimary.h ActualPrimary.slots.radius w = |
| 2579 | ∑ l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n, |
| 2580 | f.periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius (primaryIndex l) w := by |
| 2581 | classical |
| 2582 | by_cases h : ∃ I, f.periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius I w ≠ 0 |
| 2583 | · obtain ⟨I, hI⟩ := h |
| 2584 | exact periodized_sum_eq_active f hsource hsupport n d w hw (hstrip I hI) |
| 2585 | · have hz : ∀ I, f.periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius I w = 0 := by |
| 2586 | simpa only [not_exists, not_not] using h |
| 2587 | simp only [PhysicalCopyBounds.CopyFamily.sum, hz, finsum_zero, Finset.sum_const_zero] |
| 2588 | |
| 2589 | theorem potential_sum_eq_active_slow (i : Fin 3) (n d : ℕ) (w : ProblemStatement.SpaceTime) |
| 2590 | (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2591 | (hs : (PhysicalMeanJetBounds.graph ActualPrimary.h n d w).2.1 ∈ ActualPrimary.standardRegion.carrier) : |
| 2592 | (potentialFamily B N0 i).sum innerRadius ActualPrimary.h ActualPrimary.slots.radius w = |
| 2593 | ∑ l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n, |
| 2594 | (potentialFamily B N0 i).periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius |
| 2595 | (primaryIndex l) w := by |
| 2596 | apply periodized_sum_eq_active_of_support _ (potential_periodized_index i) |
| 2597 | (potential_support B N0 i).periodized_support n d w hw |
| 2598 | intro I hI |
| 2599 | exact graph_mem_strip_of_activeX n d hw hs (potential_periodized_activeX i I w hw hI) |
| 2600 | |
| 2601 | theorem pressure_sum_eq_active_slow (n d : ℕ) (w : ProblemStatement.SpaceTime) |
| 2602 | (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2603 | (hs : (PhysicalMeanJetBounds.graph ActualPrimary.h n d w).2.1 ∈ ActualPrimary.standardRegion.carrier) : |
| 2604 | (pressureFamily B N0).sum innerRadius ActualPrimary.h ActualPrimary.slots.radius w = |
| 2605 | ∑ l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n, |
| 2606 | (pressureFamily B N0).periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius |
| 2607 | (primaryIndex l) w := by |
| 2608 | apply periodized_sum_eq_active_of_support _ pressure_periodized_index |
| 2609 | (pressure_support B N0).periodized_support n d w hw |
| 2610 | intro I hI |
| 2611 | exact graph_mem_strip_of_activeX n d hw hs (pressure_periodized_activeX I w hw hI) |
| 2612 | |
| 2613 | /-- The finite primary identity holds throughout the slow chart, including |
| 2614 | both radial edges and every positive exterior radius. -/ |
| 2615 | theorem potential_eq_active_slow (n d : ℕ) (w : ProblemStatement.SpaceTime) |
| 2616 | (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2617 | (hs : (PhysicalMeanJetBounds.graph ActualPrimary.h n d w).2.1 ∈ ActualPrimary.standardRegion.carrier) : |
| 2618 | potential B N0 w = |
| 2619 | ∑ l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n, |
| 2620 | ActualPrimaryCoherence.cartesianPotential l.2 l.1 w := by |
| 2621 | ext i |
| 2622 | change PhysicalCopyBounds.vectorSum (potentialFamily B N0) innerRadius ActualPrimary.h |
| 2623 | ActualPrimary.slots.radius w i = _ |
| 2624 | rw [vectorSum_apply, potential_sum_eq_active_slow i n d w hw hs] |
| 2625 | change Complex.reCLM (∑ l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n, |
| 2626 | (potentialFamily B N0 i).periodized innerRadius ActualPrimary.h ActualPrimary.slots.radius |
| 2627 | (primaryIndex l) w) = |
| 2628 | AxisymmetricFields.projection i (∑ l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n, |
| 2629 | ActualPrimaryCoherence.cartesianPotential l.2 l.1 w) |
| 2630 | rw [map_sum, map_sum] |
| 2631 | apply Finset.sum_congr rfl |
| 2632 | intro l hl |
| 2633 | exact potential_periodized_eq (l.2, l.1) i w hw |
| 2634 | |
| 2635 | theorem potential_germ_eq_active_slow (n d : ℕ) {w : ProblemStatement.SpaceTime} |
| 2636 | (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2637 | (hs : (PhysicalMeanJetBounds.graph ActualPrimary.h n d w).2.1 ∈ ActualPrimary.standardRegion.carrier) : |
| 2638 | potential B N0 =ᶠ[𝓝 w] fun z => |
| 2639 | ∑ l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n, |
| 2640 | ActualPrimaryCoherence.cartesianPotential l.2 l.1 z := by |
| 2641 | have hn : ∀ᶠ z in 𝓝 w, |
| 2642 | (PhysicalMeanJetBounds.graph ActualPrimary.h n d z).2.1 ∈ ActualPrimary.standardRegion.carrier := |
| 2643 | (PhysicalMeanJetBounds.graph_slow_continuous ActualPrimary.h n d).continuousAt |
| 2644 | (ActualPrimary.standardRegion.isOpen.mem_nhds hs) |
| 2645 | filter_upwards [PhysicalWaveSum.preterminal_open.mem_nhds hw, hn] with z hzt hzs |
| 2646 | exact potential_eq_active_slow n d z hzt hzs |
| 2647 | |
| 2648 | theorem curl_eq_active_slow (n d : ℕ) {w : ProblemStatement.SpaceTime} |
| 2649 | (hw : w ∈ PhysicalWaveSum.preterminal) |
| 2650 | (hs : (PhysicalMeanJetBounds.graph ActualPrimary.h n d w).2.1 ∈ ActualPrimary.standardRegion.carrier) : |
| 2651 | SpatialCurl.spatialCurl (potential B N0) w = |
| 2652 | ∑ l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n, |
| 2653 | ActualPrimaryCoherence.cartesianVelocity l.2 l.1 w := by |
| 2654 | rw [PhysicalCurlCovariance.spatialCurl_congr (potential_germ_eq_active_slow n d hw hs)] |
| 2655 | exact primary_cartesianCurl_sum _ hw |
| 2656 | |
| 2657 | theorem pressure_eq_active_slow (n d : ℕ) (z : ProblemStatement.SpaceTime) |
| 2658 | (ht : z.1 < 1) (hr : 0 < z.2 0) |
| 2659 | (hs : (PhysicalMeanJetBounds.graph ActualPrimary.h n d |
| 2660 | (z.1, CylindricalResidual.chart z.2)).2.1 ∈ ActualPrimary.standardRegion.carrier) : |
| 2661 | pressure B N0 (z.1, CylindricalResidual.chart z.2) = |
| 2662 | ∑ l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n, |
| 2663 | ActualPrimaryCoherence.physicalPressure l.2 l.1 z := by |
| 2664 | change Complex.reCLM ((pressureFamily B N0).sum innerRadius ActualPrimary.h |
| 2665 | ActualPrimary.slots.radius (z.1, CylindricalResidual.chart z.2)) = _ |
| 2666 | rw [pressure_sum_eq_active_slow n d (z.1, CylindricalResidual.chart z.2) ht hs, map_sum] |
| 2667 | apply Finset.sum_congr rfl |
| 2668 | intro l hl |
| 2669 | exact pressure_periodized_eq (l.2, l.1) z ht hr |
| 2670 | |
| 2671 | /-- Full positive-radius version of the initial velocity chart identity. |
| 2672 | Only slow-chart membership is required; the radial edges are included. -/ |
| 2673 | theorem velocity_chart_slow (n d : ℕ) (z : ProblemStatement.SpaceTime) |
| 2674 | (ht : z.1 < 1) (hr : 0 < z.2 0) |
| 2675 | (hs : (PhysicalMeanJetBounds.graph ActualPrimary.h n d |
| 2676 | (z.1, CylindricalResidual.chart z.2)).2.1 ∈ ActualPrimary.standardRegion.carrier) (i : Fin 3) : |
| 2677 | (∑ l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n, |
| 2678 | (ActualPrimary.piece ActualPrimary.standardRegion l.2 l.1).velocity n |
| 2679 | (PhysicalResidualTZ.swapCylinder |
| 2680 | ((PhysicalResidualBridge.commonGraph (ChartScales.Q n) ActualPrimary.h |
| 2681 | (CommonWindow.index ActualPrimary.h n)).map z)) i) = |
| 2682 | ChartScales.Q n ^ CoordinateAlgebra.A ActualPrimary.h * |
| 2683 | CylindricalResidual.frame (-(z.2 1)) |
| 2684 | (SpatialCurl.spatialCurl (potential B N0) (z.1, CylindricalResidual.chart z.2)) i := by |
| 2685 | rw [curl_eq_active_slow n d (w := (z.1, CylindricalResidual.chart z.2)) ht hs] |
| 2686 | change _ = ChartScales.Q n ^ CoordinateAlgebra.A ActualPrimary.h * |
| 2687 | AxisymmetricFields.projection i |
| 2688 | (CylindricalResidual.frame (-(z.2 1)) |
| 2689 | (∑ l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n, |
| 2690 | ActualPrimaryCoherence.cartesianVelocity l.2 l.1 (z.1, CylindricalResidual.chart z.2))) |
| 2691 | rw [map_sum, map_sum, Finset.mul_sum] |
| 2692 | apply Finset.sum_congr rfl |
| 2693 | intro l hl |
| 2694 | exact ActualPrimaryCoherence.piece_cartesian_velocity ActualPrimary.standardRegion l.2 l.1 n ht hr i |
| 2695 | |
| 2696 | theorem pressure_chart_slow (n d : ℕ) (z : ProblemStatement.SpaceTime) |
| 2697 | (ht : z.1 < 1) (hr : 0 < z.2 0) |
| 2698 | (hs : (PhysicalMeanJetBounds.graph ActualPrimary.h n d |
| 2699 | (z.1, CylindricalResidual.chart z.2)).2.1 ∈ ActualPrimary.standardRegion.carrier) : |
| 2700 | (∑ l ∈ ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 n, |
| 2701 | (ActualPrimary.piece ActualPrimary.standardRegion l.2 l.1).pressure n |
| 2702 | (PhysicalResidualTZ.swapCylinder |
| 2703 | ((PhysicalResidualBridge.commonGraph (ChartScales.Q n) ActualPrimary.h |
| 2704 | (CommonWindow.index ActualPrimary.h n)).map z))) = |
| 2705 | ChartScales.Q n ^ (2 * CoordinateAlgebra.A ActualPrimary.h) * |
| 2706 | pressure B N0 (z.1, CylindricalResidual.chart z.2) := by |
| 2707 | rw [pressure_eq_active_slow n d z ht hr hs, Finset.mul_sum] |
| 2708 | apply Finset.sum_congr rfl |
| 2709 | intro l hl |
| 2710 | exact ActualPrimaryCoherence.piece_physical_pressure ActualPrimary.standardRegion l.2 l.1 n hr |
| 2711 | |
| 2712 | |
| 2713 | end FullSlowDomain |
| 2714 | |
| 2715 | end NavierStokes.InitialPhysicalData |