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.ParticularWaveAssembly |
| 2 | import NavierStokes.PhysicalCurlCovariance |
| 3 | import NavierStokes.PhysicalResidualTZ |
| 4 | import NavierStokes.StateReindex |
| 5 | import NavierStokes.ScaledTangentTransport |
| 6 | |
| 7 | /-! |
| 8 | # Actual reference particular waves in physical coordinates |
| 9 | |
| 10 | The input is the constructed reference Volterra solve. Curl identities |
| 11 | are conclusions, not compatibility assumptions on solved velocities. |
| 12 | -/ |
| 13 | |
| 14 | namespace NavierStokes.PhysicalParticularWave |
| 15 | |
| 16 | open Set Filter Function ProblemStatement HarmonicCalculus |
| 17 | open ParticularWaveAssembly ParticularWaveBounds LinearWaveBounds WeightedClasses |
| 18 | open CommonCoverSolve TorusInverse CopyAngularInvariance |
| 19 | open scoped ContDiff Topology |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 24 | |
| 25 | noncomputable def rawCommon (D : AssemblyData P) (j : ℤ) : WaveCoefficients ((P × ℝ) × Plane) := |
| 26 | actualCommonCoefficients D.reference D.charts D.context D.state D.carrierBlock |
| 27 | D.gaussianInput D.aliasInput j D.background |
| 28 | |
| 29 | noncomputable def commonPotential (D : AssemblyData P) (j : ℤ) (n : ℕ) : |
| 30 | ((P × ℝ) × Plane) → ComplexVector := |
| 31 | (rawCommon D j).curlPotential D.strip D.directions n |
| 32 | |
| 33 | noncomputable def commonPressure (D : AssemblyData P) (j : ℤ) (n : ℕ) : |
| 34 | ((P × ℝ) × Plane) → ℂ := |
| 35 | mode ((rawCommon D j).frequency n) ((rawCommon D j).phase n) ((rawCommon D j).pressure n) |
| 36 | |
| 37 | section ActualInputs |
| 38 | |
| 39 | variable (D : AssemblyData P) {j : ℤ} {α κ : ℝ} |
| 40 | (C : LocalControl D.reference D.charts D.context D.state D.carrierBlock |
| 41 | D.gaussianInput D.aliasInput j D.background D.copy D.strip D.directions α κ) |
| 42 | |
| 43 | include C |
| 44 | |
| 45 | theorem commonRaw_germ (n : ℕ) {x : (P × ℝ) × Plane} (hx : x ∈ D.strip.domain) : |
| 46 | (rawCommon D j).amplitude n =ᶠ[𝓝 x] |
| 47 | (fun y => C.slot.cutoff n y • |
| 48 | (actualCopyCoefficients D.reference D.charts D.context D.state D.carrierBlock |
| 49 | D.gaussianInput D.aliasInput j D.background D.copy).amplitude n y) := by |
| 50 | exact (actualCommon_raw_germ D.reference D.charts D.context D.state D.carrierBlock |
| 51 | D.gaussianInput D.aliasInput C.harmonic_ne C.frequency_ne D.background D.copy |
| 52 | C.slot.cutoff n x (C.patch_open n) (C.patch_injective n) (C.cutoff_support n) |
| 53 | (C.domain_patch n x hx) (C.cutoff_germ n hx)).1 |
| 54 | |
| 55 | theorem commonRaw_smooth (n : ℕ) : |
| 56 | ContDiffOn ℝ ∞ ((rawCommon D j).amplitude n) D.strip.domain := by |
| 57 | intro x hx |
| 58 | have hs := ((C.slot.cutoff_memClass.smooth n).smul (C.local_result.1.smooth n)).contDiffAt |
| 59 | (D.strip.isOpen_domain.mem_nhds hx) |
| 60 | exact (hs.congr_of_eventuallyEq (commonRaw_germ D C n hx)).contDiffWithinAt |
| 61 | |
| 62 | theorem commonRaw_tangent (n : ℕ) {x : (P × ℝ) × Plane} (hx : x ∈ D.strip.domain) : |
| 63 | normalDot ((rawCommon D j).normal D.strip D.directions n x) |
| 64 | ((rawCommon D j).amplitude n x) = 0 := by |
| 65 | rw [(commonRaw_germ D C n hx).eq_of_nhds] |
| 66 | change normalDot ((actualCarrier D.background D.carrierBlock j).normal D.strip D.directions n x) _ = 0 |
| 67 | have he : normalDot ((actualCarrier D.background D.carrierBlock j).normal D.strip D.directions n x) |
| 68 | (C.slot.cutoff n x • |
| 69 | (actualCopyCoefficients D.reference D.charts D.context D.state D.carrierBlock |
| 70 | D.gaussianInput D.aliasInput j D.background D.copy).amplitude n x) = |
| 71 | (C.slot.cutoff n x : ℂ) * normalDot |
| 72 | ((actualCarrier D.background D.carrierBlock j).normal D.strip D.directions n x) |
| 73 | ((actualCopyCoefficients D.reference D.charts D.context D.state D.carrierBlock |
| 74 | D.gaussianInput D.aliasInput j D.background D.copy).amplitude n x) := by |
| 75 | simp only [normalDot, Pi.smul_apply, Complex.real_smul] |
| 76 | ring |
| 77 | rw [he, C.raw_tangent n x hx, mul_zero] |
| 78 | |
| 79 | theorem commonPotential_smooth (n : ℕ) : |
| 80 | ContDiffOn ℝ ∞ (commonPotential D j n) D.strip.domain := by |
| 81 | exact CurlClassBounds.vectorPotential_contDiffOn (C.background.cylindrical n) |
| 82 | ((j : ℝ) * D.carrierBlock.frequency n) (C.background.phase_smooth n) |
| 83 | (commonRaw_smooth D C n) (C.normal_nonzero n) |
| 84 | |
| 85 | end ActualInputs |
| 86 | |
| 87 | /-! ## The actual physical changes of band and cover -/ |
| 88 | |
| 89 | abbrev Lift := PhysicalResidualBridge.Lift |
| 90 | abbrev Cylinder := PhysicalResidualBridge.Cylinder |
| 91 | abbrev Parameter := ℝ × Plane |
| 92 | abbrev WaveSpace := (Parameter × ℝ) × Plane |
| 93 | |
| 94 | /-- The wave solver uses `(R,(T,Z),theta,Y)`. The physical graph theorem |
| 95 | uses `(R,(Z,T),Y,theta)`. This is the literal isometric reordering. -/ |
| 96 | noncomputable def waveEquiv : Cylinder ≃ₗᵢ[ℝ] WaveSpace := |
| 97 | (PhysicalResidualTZ.swapCylinder.trans |
| 98 | (StateReindex.cylinder (ParticularWaveBounds.liftAssoc Plane))).trans angleShuffle |
| 99 | |
| 100 | @[simp] theorem waveEquiv_apply (x : Cylinder) : |
| 101 | waveEquiv x = (((x.1.1, (x.1.2.1.2, x.1.2.1.1)), x.2), x.1.2.2) := rfl |
| 102 | |
| 103 | noncomputable def nativeMap (h Q : ℝ) (i : ℕ) (z : SpaceTime) : WaveSpace := |
| 104 | waveEquiv ((PhysicalResidualBridge.commonGraph Q h i).map z) |
| 105 | |
| 106 | noncomputable def ratioPower (Q Qr a : ℝ) : ℝ := Q ^ a / Qr ^ a |
| 107 | |
| 108 | theorem ratioPower_pos {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) (a : ℝ) : |
| 109 | 0 < ratioPower Q Qr a := div_pos (Real.rpow_pos_of_pos hQ _) (Real.rpow_pos_of_pos hQr _) |
| 110 | |
| 111 | theorem ratioPower_cancel {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) (a : ℝ) : |
| 112 | ratioPower Q Qr a * Q ^ (-a) = Qr ^ (-a) := by |
| 113 | unfold ratioPower |
| 114 | rw [Real.rpow_neg hQ.le, Real.rpow_neg hQr.le] |
| 115 | field_simp [(Real.rpow_pos_of_pos hQ a).ne', (Real.rpow_pos_of_pos hQr a).ne'] |
| 116 | |
| 117 | theorem ratioPower_neg_div {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) (a : ℝ) : |
| 118 | Qr ^ (-a) / Q ^ (-a) = ratioPower Q Qr a := by |
| 119 | unfold ratioPower |
| 120 | rw [Real.rpow_neg hQ.le, Real.rpow_neg hQr.le] |
| 121 | field_simp [(Real.rpow_pos_of_pos hQ a).ne', (Real.rpow_pos_of_pos hQr a).ne'] |
| 122 | |
| 123 | theorem ratioPower_mul {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) (a b : ℝ) : |
| 124 | ratioPower Q Qr a * ratioPower Q Qr b = ratioPower Q Qr (a + b) := by |
| 125 | unfold ratioPower |
| 126 | rw [Real.rpow_add hQ, Real.rpow_add hQr] |
| 127 | ring |
| 128 | |
| 129 | theorem ratioPower_div {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) (a b : ℝ) : |
| 130 | ratioPower Q Qr a / ratioPower Q Qr b = ratioPower Q Qr (a - b) := by |
| 131 | unfold ratioPower |
| 132 | rw [Real.rpow_sub hQ, Real.rpow_sub hQr] |
| 133 | field_simp [(Real.rpow_pos_of_pos hQ b).ne', (Real.rpow_pos_of_pos hQr a).ne', |
| 134 | (Real.rpow_pos_of_pos hQr b).ne'] |
| 135 | |
| 136 | /-- A band-to-reference change, in the `(Z,T)` order used by PCC. |
| 137 | The slow-coordinate swap is supplied by `waveEquiv`. -/ |
| 138 | noncomputable def chartChange (h Q Qr : ℝ) (gap : ℕ) : Lift →L[ℝ] Lift := |
| 139 | MeanChartCompatibility.chartLinear (ratioPower Q Qr (1 / 2)) |
| 140 | (((ratioPower Q Qr (CoordinateAlgebra.D h) • ContinuousLinearMap.fst ℝ ℝ ℝ).prod |
| 141 | (ratioPower Q Qr 1 • ContinuousLinearMap.snd ℝ ℝ ℝ)).prodMap |
| 142 | (coverPower gap).toContinuousLinearMap) |
| 143 | |
| 144 | @[simp] theorem chartChange_apply (h Q Qr : ℝ) (gap : ℕ) (x : Lift) : |
| 145 | chartChange h Q Qr gap x = |
| 146 | (ratioPower Q Qr (1 / 2) * x.1, |
| 147 | ((ratioPower Q Qr (CoordinateAlgebra.D h) * x.2.1.1, |
| 148 | ratioPower Q Qr 1 * x.2.1.2), coverPower gap x.2.2)) := rfl |
| 149 | |
| 150 | noncomputable def cylinderChange (h Q Qr : ℝ) (gap : ℕ) : Cylinder →L[ℝ] Cylinder := |
| 151 | ((chartChange h Q Qr gap).comp (ContinuousLinearMap.fst ℝ Lift ℝ)).prod |
| 152 | (ContinuousLinearMap.snd ℝ Lift ℝ) |
| 153 | |
| 154 | @[simp] theorem cylinderChange_apply (h Q Qr : ℝ) (gap : ℕ) (x : Cylinder) : |
| 155 | cylinderChange h Q Qr gap x = (chartChange h Q Qr gap x.1, x.2) := rfl |
| 156 | |
| 157 | theorem cylinderChange_graph {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 158 | (h : ℝ) (i gap : ℕ) {z : SpaceTime} (hz : 0 < z.2 0) : |
| 159 | cylinderChange h Q Qr gap ((PhysicalResidualBridge.commonGraph Q h i).map z) = |
| 160 | (PhysicalResidualBridge.commonGraph Qr h (i + gap)).map z := by |
| 161 | rw [PhysicalResidualBridge.commonGraph_map hQ h i hz, |
| 162 | PhysicalResidualBridge.commonGraph_map hQr h (i + gap) hz] |
| 163 | apply Prod.ext |
| 164 | · apply Prod.ext |
| 165 | · simp only [cylinderChange_apply, chartChange_apply, ← mul_assoc, ratioPower_cancel hQ hQr] |
| 166 | · apply Prod.ext |
| 167 | · apply Prod.ext |
| 168 | · simp only [cylinderChange_apply, chartChange_apply, ← mul_assoc, ratioPower_cancel hQ hQr] |
| 169 | · change ratioPower Q Qr 1 * ((1 - z.1) / Q) = (1 - z.1) / Qr |
| 170 | simp only [ratioPower, Real.rpow_one] |
| 171 | field_simp |
| 172 | · change coverPower gap ((SlotGeometry.cover ^ i) _) = (SlotGeometry.cover ^ (i + gap)) _ |
| 173 | rw [coverPower_apply, ← _root_.mul_apply_eq_comp, ← pow_add, Nat.add_comm gap i] |
| 174 | · rfl |
| 175 | |
| 176 | noncomputable def velocityWeight (h Q Qr : ℝ) : ℝ := ratioPower Q Qr (CoordinateAlgebra.A h) |
| 177 | noncomputable def clockWeight (h Q Qr : ℝ) : ℝ := ratioPower Q Qr (CoordinateAlgebra.A h + 1 / 2) |
| 178 | noncomputable def sourceWeight (h Q Qr : ℝ) : ℝ := ratioPower Q Qr (2 * CoordinateAlgebra.A h + 1 / 2) |
| 179 | noncomputable def pressureWeight (h Q Qr : ℝ) : ℝ := ratioPower Q Qr (2 * CoordinateAlgebra.A h) |
| 180 | noncomputable def normalWeight (Q Qr K Kr : ℝ) : ℝ := (Kr / K) * ratioPower Q Qr (1 / 2) |
| 181 | |
| 182 | theorem clock_mul_velocity {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) (h : ℝ) : |
| 183 | clockWeight h Q Qr * velocityWeight h Q Qr = sourceWeight h Q Qr := by |
| 184 | unfold clockWeight velocityWeight sourceWeight |
| 185 | rw [ratioPower_mul hQ hQr] |
| 186 | congr 1 |
| 187 | ring |
| 188 | |
| 189 | /-- Both clock scaling and normal scaling are needed for the physical |
| 190 | pressure weight. Their frequency factors cancel exactly. -/ |
| 191 | theorem pressure_scaling {Q Qr K Kr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 192 | (hK : K ≠ 0) (hKr : Kr ≠ 0) (h : ℝ) : |
| 193 | (clockWeight h Q Qr * velocityWeight h Q Qr / normalWeight Q Qr K Kr) * (Kr / K) = |
| 194 | pressureWeight h Q Qr := by |
| 195 | rw [clock_mul_velocity hQ hQr] |
| 196 | unfold normalWeight pressureWeight sourceWeight |
| 197 | calc |
| 198 | _ = ratioPower Q Qr (2 * CoordinateAlgebra.A h + 1 / 2) / |
| 199 | ratioPower Q Qr (1 / 2) := by |
| 200 | field_simp [hK, hKr, (ratioPower_pos hQ hQr (1 / 2)).ne'] |
| 201 | _ = _ := by |
| 202 | rw [ratioPower_div hQ hQr] |
| 203 | congr 1 |
| 204 | ring |
| 205 | |
| 206 | theorem linear_change_direction {X E F : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 207 | [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 208 | (C : E →L[ℝ] F) {f : X → E} {g : X → F} {x v : X} {a b : ℝ} |
| 209 | {u : E} {w : F} (ha : a ≠ 0) (hf : DifferentiableAt ℝ f x) |
| 210 | (he : (fun y => C (f y)) =ᶠ[𝓝 x] g) |
| 211 | (hdf : fderiv ℝ f x v = a • u) (hdg : fderiv ℝ g x v = b • w) : |
| 212 | C u = (b / a) • w := by |
| 213 | have hd := congrArg (fun L : X →L[ℝ] F => L v) he.fderiv_eq |
| 214 | change fderiv ℝ (C ∘ f) x v = fderiv ℝ g x v at hd |
| 215 | rw [fderiv_comp x C.differentiableAt hf, ContinuousLinearMap.fderiv] at hd |
| 216 | simp only [ContinuousLinearMap.comp_apply, hdf, map_smul, hdg] at hd |
| 217 | calc |
| 218 | C u = a⁻¹ • (a • C u) := by rw [smul_smul, inv_mul_cancel₀ ha, one_smul] |
| 219 | _ = a⁻¹ • (b • w) := by rw [hd] |
| 220 | _ = (b / a) • w := by rw [smul_smul]; congr 1; ring |
| 221 | |
| 222 | theorem cylinderChange_graph_germ {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 223 | (h : ℝ) (i gap : ℕ) {z : SpaceTime} (hz : 0 < z.2 0) : |
| 224 | (fun y => cylinderChange h Q Qr gap ((PhysicalResidualBridge.commonGraph Q h i).map y)) =ᶠ[𝓝 z] |
| 225 | (PhysicalResidualBridge.commonGraph Qr h (i + gap)).map := by |
| 226 | have hn : {y : SpaceTime | 0 < y.2 0} ∈ 𝓝 z := |
| 227 | (isOpen_lt continuous_const (PhysicalGraphBounds.coordinateProjection 0).continuous).mem_nhds hz |
| 228 | exact eventually_of_mem hn (fun y hy => cylinderChange_graph hQ hQr h i gap hy) |
| 229 | |
| 230 | theorem cylinderChange_radial_graph {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 231 | (h : ℝ) (i gap : ℕ) {z : SpaceTime} (hz : 0 < z.2 0) : |
| 232 | let G := PhysicalResidualBridge.commonGraph Q h i |
| 233 | let H := PhysicalResidualBridge.commonGraph Qr h (i + gap) |
| 234 | cylinderChange h Q Qr gap (G.radial (G.map z)) = |
| 235 | ratioPower Q Qr (1 / 2) • H.radial (H.map z) := by |
| 236 | let G := PhysicalResidualBridge.commonGraph Q h i |
| 237 | let H := PhysicalResidualBridge.commonGraph Qr h (i + gap) |
| 238 | have hn : G.radialScale * z.2 0 ≠ 0 := (mul_pos (Real.rpow_pos_of_pos hQ _) hz).ne' |
| 239 | have hr : H.radialScale * z.2 0 ≠ 0 := (mul_pos (Real.rpow_pos_of_pos hQr _) hz).ne' |
| 240 | have he := linear_change_direction (cylinderChange h Q Qr gap) |
| 241 | (Real.rpow_pos_of_pos hQ (-(1 / 2 : ℝ))).ne' |
| 242 | ((G.map_smoothAt hn).differentiableAt (by simp)) |
| 243 | (cylinderChange_graph_germ hQ hQr h i gap hz) (G.map_radial hn) (H.map_radial hr) |
| 244 | change _ = (Qr ^ (-(1 / 2 : ℝ)) / Q ^ (-(1 / 2 : ℝ))) • _ at he |
| 245 | rwa [ratioPower_neg_div hQ hQr] at he |
| 246 | |
| 247 | theorem cylinderChange_axial_graph {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 248 | (h : ℝ) (i gap : ℕ) {z : SpaceTime} (hz : 0 < z.2 0) : |
| 249 | let G := PhysicalResidualBridge.commonGraph Q h i |
| 250 | let H := PhysicalResidualBridge.commonGraph Qr h (i + gap) |
| 251 | cylinderChange h Q Qr gap (G.axial (G.map z)) = |
| 252 | ratioPower Q Qr (1 / 2) • H.axial (H.map z) := by |
| 253 | let G := PhysicalResidualBridge.commonGraph Q h i |
| 254 | let H := PhysicalResidualBridge.commonGraph Qr h (i + gap) |
| 255 | have hn : G.radialScale * z.2 0 ≠ 0 := (mul_pos (Real.rpow_pos_of_pos hQ _) hz).ne' |
| 256 | have hr : H.radialScale * z.2 0 ≠ 0 := (mul_pos (Real.rpow_pos_of_pos hQr _) hz).ne' |
| 257 | have he := linear_change_direction (cylinderChange h Q Qr gap) |
| 258 | (Real.rpow_pos_of_pos hQ (-(1 / 2 : ℝ))).ne' |
| 259 | ((G.map_smoothAt hn).differentiableAt (by simp)) |
| 260 | (cylinderChange_graph_germ hQ hQr h i gap hz) (G.map_axial hn) (H.map_axial hr) |
| 261 | change _ = (Qr ^ (-(1 / 2 : ℝ)) / Q ^ (-(1 / 2 : ℝ))) • _ at he |
| 262 | rwa [ratioPower_neg_div hQ hQr] at he |
| 263 | |
| 264 | theorem cylinderChange_temporal_graph {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 265 | (h : ℝ) (i gap : ℕ) {z : SpaceTime} (hz : 0 < z.2 0) : |
| 266 | let G := PhysicalResidualBridge.commonGraph Q h i |
| 267 | let H := PhysicalResidualBridge.commonGraph Qr h (i + gap) |
| 268 | cylinderChange h Q Qr gap (G.temporal (G.map z)) = |
| 269 | clockWeight h Q Qr • H.temporal (H.map z) := by |
| 270 | let G := PhysicalResidualBridge.commonGraph Q h i |
| 271 | let H := PhysicalResidualBridge.commonGraph Qr h (i + gap) |
| 272 | have hn : G.radialScale * z.2 0 ≠ 0 := (mul_pos (Real.rpow_pos_of_pos hQ _) hz).ne' |
| 273 | have hr : H.radialScale * z.2 0 ≠ 0 := (mul_pos (Real.rpow_pos_of_pos hQr _) hz).ne' |
| 274 | have he := linear_change_direction (cylinderChange h Q Qr gap) |
| 275 | (mul_pos (Real.rpow_pos_of_pos hQ (-CoordinateAlgebra.A h)) |
| 276 | (Real.rpow_pos_of_pos hQ (-(1 / 2 : ℝ)))).ne' |
| 277 | ((G.map_smoothAt hn).differentiableAt (by simp)) |
| 278 | (cylinderChange_graph_germ hQ hQr h i gap hz) (G.map_temporal hn) (H.map_temporal hr) |
| 279 | have hG : G.velocityScale * G.radialScale = Q ^ (-(CoordinateAlgebra.A h + 1 / 2)) := by |
| 280 | change Q ^ (-CoordinateAlgebra.A h) * Q ^ (-(1 / 2 : ℝ)) = _ |
| 281 | rw [← Real.rpow_add hQ] |
| 282 | congr 1 |
| 283 | ring |
| 284 | have hH : H.velocityScale * H.radialScale = Qr ^ (-(CoordinateAlgebra.A h + 1 / 2)) := by |
| 285 | change Qr ^ (-CoordinateAlgebra.A h) * Qr ^ (-(1 / 2 : ℝ)) = _ |
| 286 | rw [← Real.rpow_add hQr] |
| 287 | congr 1 |
| 288 | ring |
| 289 | change _ = (H.velocityScale * H.radialScale / (G.velocityScale * G.radialScale)) • _ at he |
| 290 | rw [hG, hH, ratioPower_neg_div hQ hQr] at he |
| 291 | exact he |
| 292 | |
| 293 | theorem radial_sameRadius (G : PhysicalResidualBridge.ScaledGraph) {x y : Cylinder} |
| 294 | (hxy : x.1.1 = y.1.1) : G.radial x = G.radial y := by |
| 295 | simp only [PhysicalResidualBridge.ScaledGraph.radial, hxy] |
| 296 | |
| 297 | theorem cylinderChange_radial {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 298 | (h : ℝ) (i gap : ℕ) {x : Cylinder} (hx : 0 < x.1.1) : |
| 299 | let G := PhysicalResidualBridge.commonGraph Q h i |
| 300 | let H := PhysicalResidualBridge.commonGraph Qr h (i + gap) |
| 301 | cylinderChange h Q Qr gap (G.radial x) = |
| 302 | ratioPower Q Qr (1 / 2) • H.radial (cylinderChange h Q Qr gap x) := by |
| 303 | let G := PhysicalResidualBridge.commonGraph Q h i |
| 304 | let H := PhysicalResidualBridge.commonGraph Qr h (i + gap) |
| 305 | let z : SpaceTime := (0, AxisymmetricResidual.pack (Q ^ (1 / 2 : ℝ) * x.1.1) 0 0) |
| 306 | have hz : 0 < z.2 0 := by |
| 307 | simpa only [z, AxisymmetricResidual.pack_zero] using mul_pos (Real.rpow_pos_of_pos hQ (1 / 2)) hx |
| 308 | have hn : (G.map z).1.1 = x.1.1 := by |
| 309 | change Q ^ (-(1 / 2 : ℝ)) * (AxisymmetricResidual.pack (Q ^ (1 / 2 : ℝ) * x.1.1) 0 0) 0 = x.1.1 |
| 310 | rw [AxisymmetricResidual.pack_zero] |
| 311 | rw [← mul_assoc, ← Real.rpow_add hQ, neg_add_cancel, Real.rpow_zero, one_mul] |
| 312 | have hr : (H.map z).1.1 = (cylinderChange h Q Qr gap x).1.1 := by |
| 313 | have he := congrArg (fun y : Cylinder => y.1.1) (cylinderChange_graph hQ hQr h i gap hz) |
| 314 | change ratioPower Q Qr (1 / 2) * (G.map z).1.1 = (H.map z).1.1 at he |
| 315 | rw [hn] at he |
| 316 | exact he.symm |
| 317 | have he := cylinderChange_radial_graph hQ hQr h i gap hz |
| 318 | change cylinderChange h Q Qr gap (G.radial (G.map z)) = |
| 319 | ratioPower Q Qr (1 / 2) • H.radial (H.map z) at he |
| 320 | rwa [radial_sameRadius G hn, radial_sameRadius H hr] at he |
| 321 | |
| 322 | theorem cylinderChange_axial {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 323 | (h : ℝ) (i gap : ℕ) (x : Cylinder) : |
| 324 | let G := PhysicalResidualBridge.commonGraph Q h i |
| 325 | let H := PhysicalResidualBridge.commonGraph Qr h (i + gap) |
| 326 | cylinderChange h Q Qr gap (G.axial x) = |
| 327 | ratioPower Q Qr (1 / 2) • H.axial (cylinderChange h Q Qr gap x) := by |
| 328 | exact cylinderChange_axial_graph hQ hQr h i gap |
| 329 | (z := (0, AxisymmetricResidual.pack 1 0 0)) (by simp) |
| 330 | |
| 331 | theorem cylinderChange_temporal {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 332 | (h : ℝ) (i gap : ℕ) (x : Cylinder) : |
| 333 | let G := PhysicalResidualBridge.commonGraph Q h i |
| 334 | let H := PhysicalResidualBridge.commonGraph Qr h (i + gap) |
| 335 | cylinderChange h Q Qr gap (G.temporal x) = |
| 336 | clockWeight h Q Qr • H.temporal (cylinderChange h Q Qr gap x) := by |
| 337 | exact cylinderChange_temporal_graph hQ hQr h i gap |
| 338 | (z := (0, AxisymmetricResidual.pack 1 0 0)) (by simp) |
| 339 | |
| 340 | theorem cylinderChange_angular (h Q Qr : ℝ) (gap : ℕ) (x : Cylinder) : |
| 341 | cylinderChange h Q Qr gap (PhysicalResidualBridge.ScaledGraph.angular x) = |
| 342 | PhysicalResidualBridge.ScaledGraph.angular (cylinderChange h Q Qr gap x) := by |
| 343 | change (chartChange h Q Qr gap 0, 1) = (0, 1) |
| 344 | rw [map_zero] |
| 345 | |
| 346 | /-- The normal scale comes from the actual spatial chart differential |
| 347 | and the raw carrier phase, independently of any solved velocity. -/ |
| 348 | theorem phaseNormal_chartChange {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 349 | (h : ℝ) (i gap : ℕ) (K Kr : ℝ) {x : Cylinder} (hx : 0 < x.1.1) |
| 350 | {Φ : Cylinder → ℝ} (hΦ : DifferentiableAt ℝ Φ (cylinderChange h Q Qr gap x)) : |
| 351 | let G := PhysicalResidualBridge.commonGraph Q h i |
| 352 | let H := PhysicalResidualBridge.commonGraph Qr h (i + gap) |
| 353 | phaseNormal PhysicalResidualBridge.ScaledGraph.radius G.radial |
| 354 | PhysicalResidualBridge.ScaledGraph.angular G.axial |
| 355 | (fun y => (Kr / K) * Φ (cylinderChange h Q Qr gap y)) x = |
| 356 | normalWeight Q Qr K Kr • phaseNormal PhysicalResidualBridge.ScaledGraph.radius H.radial |
| 357 | PhysicalResidualBridge.ScaledGraph.angular H.axial Φ (cylinderChange h Q Qr gap x) := by |
| 358 | exact PhysicalCurlCovariance.phaseNormal_pull |
| 359 | (Γ := cylinderChange h Q Qr gap) (x := x) |
| 360 | (R := PhysicalResidualBridge.ScaledGraph.radius) (r := PhysicalResidualBridge.ScaledGraph.radius) |
| 361 | (Sr := (PhysicalResidualBridge.commonGraph Q h i).radial) |
| 362 | (Sθ := PhysicalResidualBridge.ScaledGraph.angular) (Sz := (PhysicalResidualBridge.commonGraph Q h i).axial) |
| 363 | (Vr := (PhysicalResidualBridge.commonGraph Qr h (i + gap)).radial) |
| 364 | (Vθ := PhysicalResidualBridge.ScaledGraph.angular) |
| 365 | (Vz := (PhysicalResidualBridge.commonGraph Qr h (i + gap)).axial) |
| 366 | (ratioPower_pos hQ hQr (1 / 2)).ne' hx.ne' |
| 367 | (cylinderChange h Q Qr gap).differentiableAt |
| 368 | (by simpa only [ContinuousLinearMap.fderiv] using cylinderChange_radial hQ hQr h i gap hx) |
| 369 | (by simpa only [ContinuousLinearMap.fderiv] using cylinderChange_angular h Q Qr gap x) |
| 370 | (by simpa only [ContinuousLinearMap.fderiv] using cylinderChange_axial hQ hQr h i gap x) |
| 371 | rfl hΦ (Kr / K) |
| 372 | |
| 373 | /-! ## One potential built from the actual reference solve -/ |
| 374 | |
| 375 | noncomputable def referenceRaw (D : AssemblyData Parameter) (j : ℤ) : WaveSpace → ComplexVector := |
| 376 | angleLift (referenceVelocity D.reference D.context D.state D.carrierBlock |
| 377 | D.gaussianInput D.aliasInput j) |
| 378 | |
| 379 | noncomputable def referenceRawPressure (D : AssemblyData Parameter) (j : ℤ) : WaveSpace → ℂ := |
| 380 | angleLift (ParticularWaveAssembly.referencePressure D.reference D.context D.state D.carrierBlock |
| 381 | D.gaussianInput D.aliasInput j) |
| 382 | |
| 383 | noncomputable def referenceFrequency (D : AssemblyData Parameter) (j : ℤ) : ℝ := |
| 384 | (j : ℝ) * D.carrierBlock.frequency D.reference.band |
| 385 | |
| 386 | noncomputable def referencePhase (D : AssemblyData Parameter) (j : ℤ) : WaveSpace → ℝ := |
| 387 | (actualCarrier D.background D.carrierBlock j).phase D.reference.band |
| 388 | |
| 389 | noncomputable def physicalPhase (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) : |
| 390 | SpaceTime → ℝ := fun z => referencePhase D j (nativeMap h Qr I z) |
| 391 | |
| 392 | noncomputable def physicalRaw (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) : |
| 393 | SpaceTime → ComplexVector := |
| 394 | fun z => Qr ^ (-CoordinateAlgebra.A h) • referenceRaw D j (nativeMap h Qr I z) |
| 395 | |
| 396 | /-- The native cutoff is already inside the reference common solve. |
| 397 | The potential is taken once, after that solve and before differentiation. -/ |
| 398 | noncomputable def referencePotential (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) : |
| 399 | SpaceTime → ComplexVector := |
| 400 | PhysicalCurlCovariance.referencePotential (referenceFrequency D j) |
| 401 | (physicalPhase D h Qr I j) (physicalRaw D h Qr I j) |
| 402 | |
| 403 | noncomputable def physicalPotential (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) |
| 404 | (delta : ℝ) (j : ℤ) : VelocityField := |
| 405 | PhysicalCurlCovariance.globalCartesianPotential delta (referencePotential D h Qr I j) |
| 406 | |
| 407 | noncomputable def physicalVelocity (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) |
| 408 | (delta : ℝ) (j : ℤ) : VelocityField := |
| 409 | SpatialCurl.spatialCurl (physicalPotential D h Qr I delta j) |
| 410 | |
| 411 | /-- The finite harmonic sum for a single original spatial label is one |
| 412 | actual Cartesian potential, rather than a collection of bandwise fields. -/ |
| 413 | noncomputable def labelPotential (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) |
| 414 | (delta : ℝ) (N : ℕ) : VelocityField := |
| 415 | fun z => ∑ j ∈ modes N, physicalPotential D h Qr I delta j z |
| 416 | |
| 417 | noncomputable def labelVelocity (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) |
| 418 | (delta : ℝ) (N : ℕ) : VelocityField := |
| 419 | SpatialCurl.spatialCurl (labelPotential D h Qr I delta N) |
| 420 | |
| 421 | theorem nativeMap_add_angle (h Q : ℝ) (i : ℕ) (z : SpaceTime) (s : ℝ) : |
| 422 | nativeMap h Q i (z + s • (0, coordinateVector 1)) = |
| 423 | nativeMap h Q i z + s • (((0 : Parameter), (1 : ℝ)), (0 : Plane)) := by |
| 424 | ext <;> simp [nativeMap, waveEquiv_apply, PhysicalResidualBridge.ScaledGraph.map, |
| 425 | coordinateVector, smul_eq_mul] |
| 426 | |
| 427 | theorem physicalPhase_affine (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) : |
| 428 | AffinePhase ((0 : ℝ), coordinateVector 1) |
| 429 | ((D.carrierBlock.angularFrequency D.reference.band : ℝ) / |
| 430 | D.carrierBlock.frequency D.reference.band) (physicalPhase D h Qr I j) := by |
| 431 | intro z s |
| 432 | unfold physicalPhase referencePhase |
| 433 | rw [nativeMap_add_angle] |
| 434 | exact actualCarrier_affine D.background D.carrierBlock j D.reference.band (nativeMap h Qr I z) s |
| 435 | |
| 436 | theorem physicalRaw_invariant (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) : |
| 437 | Invariant ((0 : ℝ), coordinateVector 1) (physicalRaw D h Qr I j) := by |
| 438 | intro z s |
| 439 | unfold physicalRaw |
| 440 | rw [nativeMap_add_angle] |
| 441 | congr 1 |
| 442 | exact angleLift_invariant (referenceVelocity D.reference D.context D.state D.carrierBlock |
| 443 | D.gaussianInput D.aliasInput j) (nativeMap h Qr I z) s |
| 444 | |
| 445 | theorem angle_translate_pack (t r theta z s : ℝ) : |
| 446 | (t, AxisymmetricResidual.pack r theta z) + s • ((0 : ℝ), coordinateVector 1) = |
| 447 | (t, AxisymmetricResidual.pack r (theta + s) z) := by |
| 448 | apply Prod.ext |
| 449 | · simp |
| 450 | · ext i |
| 451 | fin_cases i <;> simp [coordinateVector] |
| 452 | |
| 453 | theorem referencePotential_periodic (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) |
| 454 | (hk : D.carrierBlock.frequency D.reference.band ≠ 0) (t r z : ℝ) : |
| 455 | Periodic (fun theta => referencePotential D h Qr I j |
| 456 | (t, AxisymmetricResidual.pack r theta z)) (2 * Real.pi) := by |
| 457 | intro theta |
| 458 | have hR : Invariant ((0 : ℝ), coordinateVector 1) LinearWaveResidual.coordinateRadius := by |
| 459 | intro x s |
| 460 | simp [LinearWaveResidual.coordinateRadius, coordinateVector] |
| 461 | have hf : referenceFrequency D j * |
| 462 | ((D.carrierBlock.angularFrequency D.reference.band : ℝ) / |
| 463 | D.carrierBlock.frequency D.reference.band) = |
| 464 | ((j * D.carrierBlock.angularFrequency D.reference.band : ℤ) : ℝ) := by |
| 465 | unfold referenceFrequency |
| 466 | push_cast |
| 467 | field_simp [hk] |
| 468 | have he := PhysicalCurlCovariance.vectorPotential_fullTurn |
| 469 | (Vr := LinearWaveResidual.spaceDirection 0) |
| 470 | (Vθ := LinearWaveResidual.spaceDirection 1) |
| 471 | (Vz := LinearWaveResidual.spaceDirection 2) |
| 472 | (j * D.carrierBlock.angularFrequency D.reference.band) hR |
| 473 | (Invariant.const _) (Invariant.const _) (Invariant.const _) |
| 474 | (physicalPhase_affine D h Qr I j) (physicalRaw_invariant D h Qr I j) hf |
| 475 | (t, AxisymmetricResidual.pack r theta z) |
| 476 | simpa only [referencePotential, PhysicalCurlCovariance.referencePotential, angle_translate_pack] using he |
| 477 | |
| 478 | /-- These are identities of the input chart at its own reference band. -/ |
| 479 | structure ReferenceIdentity (D : AssemblyData Parameter) : Prop where |
| 480 | parameter : D.charts.parameter D.reference.band = id |
| 481 | gap : D.charts.gap D.reference.band = 0 |
| 482 | amplitude : D.charts.amplitude D.reference.band = 1 |
| 483 | |
| 484 | theorem referenceRaw_eq_common (D : AssemblyData Parameter) (H : ReferenceIdentity D) (j : ℤ) : |
| 485 | referenceRaw D j = (rawCommon D j).amplitude D.reference.band := by |
| 486 | have hs : residualSource D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j D.reference.band = |
| 487 | transportSource (residualSource D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j D.reference.band) |
| 488 | (D.charts.parameter D.reference.band) (D.charts.gap D.reference.band) |
| 489 | (D.charts.amplitude D.reference.band) := by |
| 490 | rw [H.parameter, H.gap, H.amplitude] |
| 491 | funext p |
| 492 | simp [transportSource, coverPower] |
| 493 | funext x |
| 494 | have he := actualBandVelocity_eq_reference D.reference D.charts D.context D.state D.carrierBlock |
| 495 | D.gaussianInput D.aliasInput j D.reference.band hs x.1.1 x.2 |
| 496 | rw [H.parameter, H.gap, H.amplitude] at he |
| 497 | simp only [id_eq, coverPower, ContinuousLinearEquiv.refl_apply, one_smul] at he |
| 498 | exact he.symm |
| 499 | |
| 500 | /-- Literal input-operator matches at the reference chart. This record |
| 501 | contains no condition on a solved velocity, pressure, potential or curl. -/ |
| 502 | structure ReferenceChart (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) : Prop where |
| 503 | identity : ReferenceIdentity D |
| 504 | radius : (fun x => D.background.radius D.reference.band (waveEquiv.toContinuousLinearEquiv x)) = |
| 505 | PhysicalResidualBridge.ScaledGraph.radius |
| 506 | radial : PhysicalCurlCovariance.reindexVector waveEquiv.toContinuousLinearEquiv |
| 507 | (D.directions.radialField D.reference.band) = (PhysicalResidualBridge.commonGraph Qr h I).radial |
| 508 | angular : PhysicalCurlCovariance.reindexVector waveEquiv.toContinuousLinearEquiv |
| 509 | (fun _ => D.directions.angular) = PhysicalResidualBridge.ScaledGraph.angular |
| 510 | axial : PhysicalCurlCovariance.reindexVector waveEquiv.toContinuousLinearEquiv |
| 511 | (D.directions.axialField D.strip D.reference.band) = (PhysicalResidualBridge.commonGraph Qr h I).axial |
| 512 | |
| 513 | noncomputable def referenceDomain (D : AssemblyData Parameter) : Set Cylinder := |
| 514 | waveEquiv ⁻¹' D.strip.domain |
| 515 | |
| 516 | theorem referenceDomain_open (D : AssemblyData Parameter) : IsOpen (referenceDomain D) := |
| 517 | D.strip.isOpen_domain.preimage waveEquiv.continuous |
| 518 | |
| 519 | noncomputable def liftPhase (D : AssemblyData Parameter) (j : ℤ) : Cylinder → ℝ := |
| 520 | fun x => referencePhase D j (waveEquiv x) |
| 521 | |
| 522 | noncomputable def liftRaw (D : AssemblyData Parameter) (j : ℤ) : Cylinder → ComplexVector := |
| 523 | fun x => referenceRaw D j (waveEquiv x) |
| 524 | |
| 525 | section ReferenceRealization |
| 526 | |
| 527 | variable (D : AssemblyData Parameter) {h Qr : ℝ} {I : ℕ} (H : ReferenceChart D h Qr I) |
| 528 | {j : ℤ} {α κ : ℝ} |
| 529 | (C : LocalControl D.reference D.charts D.context D.state D.carrierBlock |
| 530 | D.gaussianInput D.aliasInput j D.background D.copy D.strip D.directions α κ) |
| 531 | |
| 532 | include H C |
| 533 | |
| 534 | omit H in |
| 535 | theorem liftPhase_smooth : ContDiffOn ℝ ∞ (liftPhase D j) (referenceDomain D) := |
| 536 | (C.background.phase_smooth D.reference.band).comp waveEquiv.contDiff.contDiffOn (fun _ hx => hx) |
| 537 | |
| 538 | theorem liftRaw_smooth : ContDiffOn ℝ ∞ (liftRaw D j) (referenceDomain D) := by |
| 539 | unfold liftRaw |
| 540 | rw [referenceRaw_eq_common D H.identity] |
| 541 | exact (commonRaw_smooth D C D.reference.band).comp waveEquiv.contDiff.contDiffOn (fun _ hx => hx) |
| 542 | |
| 543 | theorem liftNormal_eq {x : Cylinder} (hx : x ∈ referenceDomain D) : |
| 544 | phaseNormal PhysicalResidualBridge.ScaledGraph.radius (PhysicalResidualBridge.commonGraph Qr h I).radial |
| 545 | PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualBridge.commonGraph Qr h I).axial |
| 546 | (liftPhase D j) x = |
| 547 | (rawCommon D j).normal D.strip D.directions D.reference.band (waveEquiv x) := by |
| 548 | have hp := ((C.background.phase_smooth D.reference.band).contDiffAt |
| 549 | (D.strip.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) |
| 550 | have he := PhysicalCurlCovariance.phaseNormal_reindex waveEquiv.toContinuousLinearEquiv |
| 551 | (D.background.radius D.reference.band) (D.directions.radialField D.reference.band) |
| 552 | (fun _ => D.directions.angular) (D.directions.axialField D.strip D.reference.band) hp |
| 553 | rw [H.radius, H.radial, H.angular, H.axial] at he |
| 554 | exact he |
| 555 | |
| 556 | theorem liftNormal_ne {x : Cylinder} (hx : x ∈ referenceDomain D) : |
| 557 | phaseNormal PhysicalResidualBridge.ScaledGraph.radius (PhysicalResidualBridge.commonGraph Qr h I).radial |
| 558 | PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualBridge.commonGraph Qr h I).axial |
| 559 | (liftPhase D j) x ≠ 0 := by |
| 560 | rw [liftNormal_eq D H C hx] |
| 561 | exact C.normal_nonzero D.reference.band (waveEquiv x) hx |
| 562 | |
| 563 | theorem liftRaw_tangent {x : Cylinder} (hx : x ∈ referenceDomain D) : |
| 564 | normalDot (phaseNormal PhysicalResidualBridge.ScaledGraph.radius |
| 565 | (PhysicalResidualBridge.commonGraph Qr h I).radial PhysicalResidualBridge.ScaledGraph.angular |
| 566 | (PhysicalResidualBridge.commonGraph Qr h I).axial (liftPhase D j) x) (liftRaw D j x) = 0 := by |
| 567 | rw [liftNormal_eq D H C hx] |
| 568 | unfold liftRaw |
| 569 | rw [referenceRaw_eq_common D H.identity] |
| 570 | exact commonRaw_tangent D C D.reference.band hx |
| 571 | |
| 572 | theorem liftPotential_eq {x : Cylinder} (hx : x ∈ referenceDomain D) : |
| 573 | CurlClassBounds.vectorPotential (referenceFrequency D j) PhysicalResidualBridge.ScaledGraph.radius |
| 574 | (PhysicalResidualBridge.commonGraph Qr h I).radial PhysicalResidualBridge.ScaledGraph.angular |
| 575 | (PhysicalResidualBridge.commonGraph Qr h I).axial (liftPhase D j) (liftRaw D j) x = |
| 576 | commonPotential D j D.reference.band (waveEquiv x) := by |
| 577 | have hp := ((C.background.phase_smooth D.reference.band).contDiffAt |
| 578 | (D.strip.isOpen_domain.mem_nhds hx)).differentiableAt (by simp) |
| 579 | have he := PhysicalCurlCovariance.vectorPotential_reindex waveEquiv.toContinuousLinearEquiv |
| 580 | (referenceFrequency D j) (D.background.radius D.reference.band) |
| 581 | (D.directions.radialField D.reference.band) (fun _ => D.directions.angular) |
| 582 | (D.directions.axialField D.strip D.reference.band) |
| 583 | ((rawCommon D j).amplitude D.reference.band) hp |
| 584 | rw [H.radius, H.radial, H.angular, H.axial] at he |
| 585 | unfold liftRaw |
| 586 | rw [referenceRaw_eq_common D H.identity] |
| 587 | exact he |
| 588 | |
| 589 | theorem referencePotential_eq_common (hQr : 0 < Qr) {z : SpaceTime} (hz : 0 < z.2 0) |
| 590 | (hx : nativeMap h Qr I z ∈ D.strip.domain) : |
| 591 | referencePotential D h Qr I j z = |
| 592 | Qr ^ (-h) • commonPotential D j D.reference.band (nativeMap h Qr I z) := by |
| 593 | have hK : referenceFrequency D j ≠ 0 := C.frequency_nonzero D.reference.band |
| 594 | have hp := ((liftPhase_smooth D C).contDiffAt ((referenceDomain_open D).mem_nhds hx)).differentiableAt (by simp) |
| 595 | have he := PhysicalCurlCovariance.commonGraph_vectorPotential_pull hQr h I hK hK hz hp (liftRaw D j) |
| 596 | simp only [div_self hK, one_mul] at he |
| 597 | change referencePotential D h Qr I j z = _ at he |
| 598 | rw [liftPotential_eq D H C hx] at he |
| 599 | exact he |
| 600 | |
| 601 | theorem referencePotential_smoothAt (hQr : 0 < Qr) {z : SpaceTime} (hz : 0 < z.2 0) |
| 602 | (hx : nativeMap h Qr I z ∈ D.strip.domain) : |
| 603 | ContDiffAt ℝ ∞ (referencePotential D h Qr I j) z := by |
| 604 | let G := PhysicalResidualBridge.commonGraph Qr h I |
| 605 | have hm : ContDiffAt ℝ ∞ (nativeMap h Qr I) z := |
| 606 | waveEquiv.contDiff.contDiffAt.comp z (G.map_smoothAt (mul_pos (Real.rpow_pos_of_pos hQr _) hz).ne') |
| 607 | have hs := (((commonPotential_smooth D C D.reference.band).contDiffAt |
| 608 | (D.strip.isOpen_domain.mem_nhds hx)).comp z hm).const_smul (Qr ^ (-h)) |
| 609 | have hn : {y : SpaceTime | 0 < y.2 0} ∩ (nativeMap h Qr I) ⁻¹' D.strip.domain ∈ 𝓝 z := |
| 610 | inter_mem ((isOpen_lt continuous_const (PhysicalGraphBounds.coordinateProjection 0).continuous).mem_nhds hz) |
| 611 | (hm.continuousAt (D.strip.isOpen_domain.mem_nhds hx)) |
| 612 | apply hs.congr_of_eventuallyEq |
| 613 | exact eventually_of_mem hn (fun y hy => referencePotential_eq_common D H C hQr hy.1 hy.2) |
| 614 | |
| 615 | end ReferenceRealization |
| 616 | |
| 617 | /-! ## Actual solves with the rescaled native clock -/ |
| 618 | |
| 619 | noncomputable def parameterChange (h Q Qr : ℝ) (p : Parameter) : Parameter := |
| 620 | (ratioPower Q Qr (1 / 2) * p.1, |
| 621 | (ratioPower Q Qr 1 * p.2.1, ratioPower Q Qr (CoordinateAlgebra.D h) * p.2.2)) |
| 622 | |
| 623 | theorem parameterChange_smooth (h Q Qr : ℝ) : ContDiff ℝ ∞ (parameterChange h Q Qr) := |
| 624 | (contDiff_const.mul contDiff_fst).prodMk |
| 625 | ((contDiff_const.mul contDiff_snd.fst).prodMk (contDiff_const.mul contDiff_snd.snd)) |
| 626 | |
| 627 | theorem waveEquiv_cylinderChange (h Q Qr : ℝ) (gap : ℕ) (x : Cylinder) : |
| 628 | waveEquiv (cylinderChange h Q Qr gap x) = |
| 629 | ((parameterChange h Q Qr (waveEquiv x).1.1, (waveEquiv x).1.2), coverPower gap (waveEquiv x).2) := rfl |
| 630 | |
| 631 | noncomputable def referenceSource (D : AssemblyData Parameter) (j : ℤ) : Parameter × Plane → ComplexVector := |
| 632 | residualSource D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j D.reference.band |
| 633 | |
| 634 | noncomputable def bandAmplitude (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 635 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (K : ℝ) (j : ℤ) : Parameter × Plane → ComplexVector := |
| 636 | ParticularWaveBounds.commonVelocity |
| 637 | (ScaledTangentTransport.transportTangent (D.reference.tangent j) (parameterChange h Q Qr) gap 0 |
| 638 | (clockWeight h Q Qr) (velocityWeight h Q Qr) (normalWeight Q Qr K (referenceFrequency D j))) |
| 639 | (ScaledTangentTransport.transportSource (referenceSource D j) (parameterChange h Q Qr) gap |
| 640 | (clockWeight h Q Qr) (velocityWeight h Q Qr)) |
| 641 | (CopySolveCompatibility.transportGeometry D.reference.geometry gap 0 (clockWeight h Q Qr) |
| 642 | (ratioPower_pos hQ hQr (CoordinateAlgebra.A h + 1 / 2)).ne') |
| 643 | (div_pos D.reference.length_pos (ratioPower_pos hQ hQr (CoordinateAlgebra.A h + 1 / 2))).le |
| 644 | (D.reference.cutoff ∘ CopySolveCompatibility.nativeTimeMap 0 (clockWeight h Q Qr)) |
| 645 | |
| 646 | noncomputable def bandPressure (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 647 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (K : ℝ) (j : ℤ) : Parameter × Plane → ℂ := |
| 648 | ParticularWaveBounds.commonPressure |
| 649 | (ScaledTangentTransport.transportTangent (D.reference.tangent j) (parameterChange h Q Qr) gap 0 |
| 650 | (clockWeight h Q Qr) (velocityWeight h Q Qr) (normalWeight Q Qr K (referenceFrequency D j))) |
| 651 | (ScaledTangentTransport.transportSource (referenceSource D j) (parameterChange h Q Qr) gap |
| 652 | (clockWeight h Q Qr) (velocityWeight h Q Qr)) |
| 653 | (CopySolveCompatibility.transportGeometry D.reference.geometry gap 0 (clockWeight h Q Qr) |
| 654 | (ratioPower_pos hQ hQr (CoordinateAlgebra.A h + 1 / 2)).ne') |
| 655 | (div_pos D.reference.length_pos (ratioPower_pos hQ hQr (CoordinateAlgebra.A h + 1 / 2))).le |
| 656 | (D.reference.cutoff ∘ CopySolveCompatibility.nativeTimeMap 0 (clockWeight h Q Qr)) K |
| 657 | |
| 658 | /-- Continuity of the actual primitive Volterra coefficients and source, |
| 659 | and support inside the reference integration interval. -/ |
| 660 | structure ReferenceODE (D : AssemblyData Parameter) (j : ℤ) (U : Set Parameter) : Prop where |
| 661 | coefficient : ContinuousOn (D.reference.tangent j).linearData.coefficient (U ×ˢ univ) |
| 662 | forcing : ContinuousOn (D.reference.tangent j).linearData.forcingMap (U ×ˢ univ) |
| 663 | source : ContinuousOn (referenceSource D j) (U ×ˢ univ) |
| 664 | cutoff : support D.reference.cutoff ⊆ univ ×ˢ Icc 0 D.reference.length |
| 665 | |
| 666 | theorem normalWeight_ne {Q Qr K Kr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 667 | (hK : K ≠ 0) (hKr : Kr ≠ 0) : normalWeight Q Qr K Kr ≠ 0 := |
| 668 | mul_ne_zero (div_ne_zero hKr hK) (ratioPower_pos hQ hQr (1 / 2)).ne' |
| 669 | |
| 670 | theorem bandAmplitude_eq_reference (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 671 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) {K : ℝ} (hK : K ≠ 0) (j : ℤ) |
| 672 | (hKr : referenceFrequency D j ≠ 0) {U : Set Parameter} (R : ReferenceODE D j U) |
| 673 | (p : Parameter) (hp : parameterChange h Q Qr p ∈ U) (Y : Plane) : |
| 674 | bandAmplitude D h hQ hQr gap K j (p, Y) = |
| 675 | velocityWeight h Q Qr • referenceVelocity D.reference D.context D.state D.carrierBlock |
| 676 | D.gaussianInput D.aliasInput j (parameterChange h Q Qr p, coverPower gap Y) := by |
| 677 | exact ScaledTangentTransport.commonVelocity_zeroEntry (D.reference.tangent j) (referenceSource D j) |
| 678 | (parameterChange h Q Qr) D.reference.geometry gap D.reference.length (clockWeight h Q Qr) |
| 679 | (velocityWeight h Q Qr) (normalWeight Q Qr K (referenceFrequency D j)) D.reference.length_pos |
| 680 | (ratioPower_pos hQ hQr _) (normalWeight_ne hQ hQr hK hKr) |
| 681 | R.coefficient R.forcing R.source D.reference.cutoff R.cutoff p hp Y |
| 682 | |
| 683 | theorem bandPressure_eq_reference (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 684 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) {K : ℝ} (hK : K ≠ 0) (j : ℤ) |
| 685 | (hKr : referenceFrequency D j ≠ 0) {U : Set Parameter} (R : ReferenceODE D j U) |
| 686 | (p : Parameter) (hp : parameterChange h Q Qr p ∈ U) (Y : Plane) : |
| 687 | bandPressure D h hQ hQr gap K j (p, Y) = |
| 688 | pressureWeight h Q Qr • ParticularWaveAssembly.referencePressure D.reference D.context D.state D.carrierBlock |
| 689 | D.gaussianInput D.aliasInput j (parameterChange h Q Qr p, coverPower gap Y) := by |
| 690 | have he := ScaledTangentTransport.commonPressure_zeroEntry (D.reference.tangent j) (referenceSource D j) |
| 691 | (parameterChange h Q Qr) D.reference.geometry gap D.reference.length (clockWeight h Q Qr) |
| 692 | (velocityWeight h Q Qr) (normalWeight Q Qr K (referenceFrequency D j)) (referenceFrequency D j) K |
| 693 | D.reference.length_pos (ratioPower_pos hQ hQr _) (normalWeight_ne hQ hQr hK hKr) hKr hK |
| 694 | R.coefficient R.forcing R.source D.reference.cutoff R.cutoff p hp Y |
| 695 | rw [pressure_scaling hQ hQr hK hKr] at he |
| 696 | exact he |
| 697 | |
| 698 | noncomputable def bandRaw (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 699 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (K : ℝ) (j : ℤ) : Cylinder → ComplexVector := |
| 700 | fun x => bandAmplitude D h hQ hQr gap K j ((waveEquiv x).1.1, (waveEquiv x).2) |
| 701 | |
| 702 | noncomputable def bandRawPressure (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 703 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (K : ℝ) (j : ℤ) : Cylinder → ℂ := |
| 704 | fun x => bandPressure D h hQ hQr gap K j ((waveEquiv x).1.1, (waveEquiv x).2) |
| 705 | |
| 706 | noncomputable def bandPhase (D : AssemblyData Parameter) (h Q Qr : ℝ) (gap : ℕ) (K : ℝ) (j : ℤ) : |
| 707 | Cylinder → ℝ := fun x => (referenceFrequency D j / K) * liftPhase D j (cylinderChange h Q Qr gap x) |
| 708 | |
| 709 | noncomputable def bandVelocity (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 710 | (hQ : 0 < Q) (hQr : 0 < Qr) (i gap : ℕ) (K : ℝ) (j : ℤ) : Cylinder → ComplexVector := |
| 711 | let G := PhysicalResidualBridge.commonGraph Q h i |
| 712 | vectorMode K (bandPhase D h Q Qr gap K j) |
| 713 | (CurlClassBounds.realizedCoefficient K PhysicalResidualBridge.ScaledGraph.radius |
| 714 | G.radial PhysicalResidualBridge.ScaledGraph.angular G.axial (bandPhase D h Q Qr gap K j) |
| 715 | (bandRaw D h hQ hQr gap K j)) |
| 716 | |
| 717 | theorem bandRaw_eq_lift (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 718 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) {K : ℝ} (hK : K ≠ 0) (j : ℤ) |
| 719 | (hKr : referenceFrequency D j ≠ 0) {U : Set Parameter} (R : ReferenceODE D j U) |
| 720 | (x : Cylinder) (hx : parameterChange h Q Qr (waveEquiv x).1.1 ∈ U) : |
| 721 | bandRaw D h hQ hQr gap K j x = |
| 722 | velocityWeight h Q Qr • liftRaw D j (cylinderChange h Q Qr gap x) := by |
| 723 | exact bandAmplitude_eq_reference D h hQ hQr gap hK j hKr R (waveEquiv x).1.1 hx (waveEquiv x).2 |
| 724 | |
| 725 | noncomputable def bandDomain (D : AssemblyData Parameter) (h Q Qr : ℝ) (gap : ℕ) |
| 726 | (U : Set Parameter) : Set Cylinder := |
| 727 | {x | 0 < x.1.1 ∧ cylinderChange h Q Qr gap x ∈ referenceDomain D ∧ |
| 728 | parameterChange h Q Qr (waveEquiv x).1.1 ∈ U} |
| 729 | |
| 730 | theorem bandDomain_open (D : AssemblyData Parameter) (h Q Qr : ℝ) (gap : ℕ) |
| 731 | {U : Set Parameter} (hU : IsOpen U) : IsOpen (bandDomain D h Q Qr gap U) := |
| 732 | (isOpen_lt continuous_const continuous_fst.fst).inter |
| 733 | (((referenceDomain_open D).preimage (cylinderChange h Q Qr gap).continuous).inter |
| 734 | (hU.preimage ((parameterChange_smooth h Q Qr).continuous.comp waveEquiv.continuous.fst.fst))) |
| 735 | |
| 736 | theorem normalDot_scaled (s c : ℝ) (n : Space) (a : ComplexVector) : |
| 737 | normalDot (s • n) (c • a) = (s : ℂ) * (c : ℂ) * normalDot n a := by |
| 738 | simp [normalDot, Complex.real_smul] |
| 739 | ring |
| 740 | |
| 741 | section BandRealization |
| 742 | |
| 743 | variable (D : AssemblyData Parameter) {h Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 744 | (i gap : ℕ) (H : ReferenceChart D h Qr (i + gap)) {j : ℤ} {α κ : ℝ} |
| 745 | (C : LocalControl D.reference D.charts D.context D.state D.carrierBlock |
| 746 | D.gaussianInput D.aliasInput j D.background D.copy D.strip D.directions α κ) |
| 747 | {K : ℝ} (hK : K ≠ 0) {U : Set Parameter} (hU : IsOpen U) (R : ReferenceODE D j U) |
| 748 | |
| 749 | include H C R hK hQ hQr |
| 750 | |
| 751 | omit hQ hQr H hK R in |
| 752 | theorem bandPhase_smooth : ContDiffOn ℝ ∞ (bandPhase D h Q Qr gap K j) (bandDomain D h Q Qr gap U) := |
| 753 | contDiffOn_const.mul ((liftPhase_smooth D C).comp (s := bandDomain D h Q Qr gap U) |
| 754 | (cylinderChange h Q Qr gap).contDiff.contDiffOn (fun _ hx => hx.2.1)) |
| 755 | |
| 756 | theorem bandRaw_smooth : ContDiffOn ℝ ∞ (bandRaw D h hQ hQr gap K j) (bandDomain D h Q Qr gap U) := by |
| 757 | have hs := ((liftRaw_smooth D H C).comp (cylinderChange h Q Qr gap).contDiff.contDiffOn |
| 758 | (s := bandDomain D h Q Qr gap U) (fun _ hx => hx.2.1)).const_smul (velocityWeight h Q Qr) |
| 759 | apply hs.congr |
| 760 | intro x hx |
| 761 | exact bandRaw_eq_lift D h hQ hQr gap hK j (C.frequency_nonzero D.reference.band) R x hx.2.2 |
| 762 | |
| 763 | omit R in |
| 764 | theorem bandNormal_ne {x : Cylinder} (hx : x ∈ bandDomain D h Q Qr gap U) : |
| 765 | phaseNormal PhysicalResidualBridge.ScaledGraph.radius (PhysicalResidualBridge.commonGraph Q h i).radial |
| 766 | PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualBridge.commonGraph Q h i).axial |
| 767 | (bandPhase D h Q Qr gap K j) x ≠ 0 := by |
| 768 | have hp := ((liftPhase_smooth D C).contDiffAt ((referenceDomain_open D).mem_nhds hx.2.1)).differentiableAt (by simp) |
| 769 | have he := phaseNormal_chartChange hQ hQr h i gap K (referenceFrequency D j) hx.1 hp |
| 770 | change phaseNormal _ _ _ _ (bandPhase D h Q Qr gap K j) x = _ at he |
| 771 | rw [he] |
| 772 | exact smul_ne_zero (normalWeight_ne hQ hQr hK (C.frequency_nonzero D.reference.band)) |
| 773 | (liftNormal_ne D H C hx.2.1) |
| 774 | |
| 775 | theorem bandRaw_tangent {x : Cylinder} (hx : x ∈ bandDomain D h Q Qr gap U) : |
| 776 | normalDot (phaseNormal PhysicalResidualBridge.ScaledGraph.radius |
| 777 | (PhysicalResidualBridge.commonGraph Q h i).radial PhysicalResidualBridge.ScaledGraph.angular |
| 778 | (PhysicalResidualBridge.commonGraph Q h i).axial (bandPhase D h Q Qr gap K j) x) |
| 779 | (bandRaw D h hQ hQr gap K j x) = 0 := by |
| 780 | have hp := ((liftPhase_smooth D C).contDiffAt ((referenceDomain_open D).mem_nhds hx.2.1)).differentiableAt (by simp) |
| 781 | have he := phaseNormal_chartChange hQ hQr h i gap K (referenceFrequency D j) hx.1 hp |
| 782 | change phaseNormal _ _ _ _ (bandPhase D h Q Qr gap K j) x = _ at he |
| 783 | rw [he, bandRaw_eq_lift D h hQ hQr gap hK j (C.frequency_nonzero D.reference.band) R x hx.2.2, |
| 784 | normalDot_scaled, liftRaw_tangent D H C hx.2.1, mul_zero] |
| 785 | |
| 786 | include hU |
| 787 | |
| 788 | /-- Every actual transported solve is the view of the same Cartesian |
| 789 | reference curl. The clock, source, cutoff and normal are transported |
| 790 | before solving; no equality of solved velocities is a premise. -/ |
| 791 | theorem band_physical_velocity {z : SpaceTime} |
| 792 | (hz : z ∈ (PhysicalResidualBridge.commonGraph Q h i).source (bandDomain D h Q Qr gap U)) |
| 793 | {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) |
| 794 | (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) (component : Fin 3) : |
| 795 | (bandVelocity D h hQ hQr i gap K j ((PhysicalResidualBridge.commonGraph Q h i).map z) component).re = |
| 796 | Q ^ CoordinateAlgebra.A h * CylindricalResidual.frame (-(z.2 1)) |
| 797 | (physicalVelocity D h Qr (i + gap) delta j (z.1, CylindricalResidual.chart z.2)) component := by |
| 798 | have hKr : referenceFrequency D j ≠ 0 := C.frequency_nonzero D.reference.band |
| 799 | have hphase : ∀ y ∈ (PhysicalResidualBridge.commonGraph Q h i).source (bandDomain D h Q Qr gap U), |
| 800 | referenceFrequency D j * physicalPhase D h Qr (i + gap) j y = |
| 801 | K * bandPhase D h Q Qr gap K j ((PhysicalResidualBridge.commonGraph Q h i).map y) := by |
| 802 | intro y hy |
| 803 | change referenceFrequency D j * liftPhase D j ((PhysicalResidualBridge.commonGraph Qr h (i + gap)).map y) = |
| 804 | K * ((referenceFrequency D j / K) * liftPhase D j |
| 805 | (cylinderChange h Q Qr gap ((PhysicalResidualBridge.commonGraph Q h i).map y))) |
| 806 | rw [cylinderChange_graph hQ hQr h i gap hy.1] |
| 807 | field_simp |
| 808 | have hamp : ∀ y ∈ (PhysicalResidualBridge.commonGraph Q h i).source (bandDomain D h Q Qr gap U), |
| 809 | physicalRaw D h Qr (i + gap) j y = |
| 810 | Q ^ (-CoordinateAlgebra.A h) • bandRaw D h hQ hQr gap K j |
| 811 | ((PhysicalResidualBridge.commonGraph Q h i).map y) := by |
| 812 | intro y hy |
| 813 | rw [bandRaw_eq_lift D h hQ hQr gap hK j hKr R _ hy.2.2.2, |
| 814 | cylinderChange_graph hQ hQr h i gap hy.1, smul_smul] |
| 815 | have hw : Q ^ (-CoordinateAlgebra.A h) * velocityWeight h Q Qr = Qr ^ (-CoordinateAlgebra.A h) := by |
| 816 | rw [mul_comm] |
| 817 | exact ratioPower_cancel hQ hQr _ |
| 818 | rw [hw] |
| 819 | rfl |
| 820 | exact PhysicalCurlCovariance.reference_correctedWave_constructed hQ h i |
| 821 | (bandDomain_open D h Q Qr gap hU) (fun _ hx => hx.1.ne') hKr hK |
| 822 | (bandPhase_smooth D gap C) (bandRaw_smooth D hQ hQr i gap H C hK R) |
| 823 | (fun _ hx => bandNormal_ne D hQ hQr i gap H C hK hx) |
| 824 | (fun _ hx => bandRaw_tangent D hQ hQr i gap H C hK R hx) |
| 825 | (physicalPhase D h Qr (i + gap) j) (physicalRaw D h Qr (i + gap) j) hphase hamp |
| 826 | (referencePotential_periodic D h Qr (i + gap) j (C.frequency_ne D.reference.band)) |
| 827 | hz hdelta chart hchart component |
| 828 | |
| 829 | end BandRealization |
| 830 | |
| 831 | /-! ## The pressure from the same reference solve -/ |
| 832 | |
| 833 | noncomputable def physicalPressureCoefficient (D : AssemblyData Parameter) (h Qr : ℝ) |
| 834 | (I : ℕ) (j : ℤ) : SpaceTime → ℂ := |
| 835 | fun z => (Qr ^ (-(2 * CoordinateAlgebra.A h)) : ℝ) • referenceRawPressure D j (nativeMap h Qr I z) |
| 836 | |
| 837 | noncomputable def complexPhysicalPressure (D : AssemblyData Parameter) (h Qr : ℝ) |
| 838 | (I : ℕ) (j : ℤ) : SpaceTime → ℂ := |
| 839 | mode (referenceFrequency D j) (physicalPhase D h Qr I j) (physicalPressureCoefficient D h Qr I j) |
| 840 | |
| 841 | noncomputable def pressureVector (p : SpaceTime → ℂ) (z : SpaceTime) : ComplexVector := ![0, 0, p z] |
| 842 | |
| 843 | /-- A scalar is the axial component of its Cartesian coordinate lift; |
| 844 | the frame fixes this component, so the construction has no extra rotation. -/ |
| 845 | noncomputable def physicalPressure (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) |
| 846 | (delta : ℝ) (j : ℤ) : PressureField := |
| 847 | fun z => PhysicalCurlCovariance.globalCartesianPotential delta |
| 848 | (pressureVector (complexPhysicalPressure D h Qr I j)) z 2 |
| 849 | |
| 850 | noncomputable def bandPressureMode (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 851 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (K : ℝ) (j : ℤ) : Cylinder → ℂ := |
| 852 | mode K (bandPhase D h Q Qr gap K j) (bandRawPressure D h hQ hQr gap K j) |
| 853 | |
| 854 | theorem mode_fullTurn {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 855 | {theta : E} {phi : E → ℝ} {a : E → ℂ} {K slope : ℝ} (m : ℤ) |
| 856 | (hphi : AffinePhase theta slope phi) (ha : Invariant theta a) |
| 857 | (hf : K * slope = (m : ℝ)) (x : E) : |
| 858 | mode K phi a (x + (2 * Real.pi) • theta) = mode K phi a x := by |
| 859 | have hc : (K : ℂ) * (slope : ℂ) = (m : ℂ) := by exact_mod_cast hf |
| 860 | have he : phaseFactor K * ((slope * (2 * Real.pi) : ℝ) : ℂ) = |
| 861 | (m : ℂ) * (2 * Real.pi * Complex.I) := by |
| 862 | unfold phaseFactor |
| 863 | push_cast |
| 864 | calc |
| 865 | _ = ((K : ℂ) * (slope : ℂ)) * (2 * Real.pi * Complex.I) := by ring |
| 866 | _ = _ := by rw [hc] |
| 867 | rw [mode_translate ha hphi, he, Complex.exp_int_mul_two_pi_mul_I, one_mul] |
| 868 | |
| 869 | theorem complexPhysicalPressure_periodic (D : AssemblyData Parameter) (h Qr : ℝ) |
| 870 | (I : ℕ) (j : ℤ) (hk : D.carrierBlock.frequency D.reference.band ≠ 0) (t r z : ℝ) : |
| 871 | Periodic (fun theta => complexPhysicalPressure D h Qr I j |
| 872 | (t, AxisymmetricResidual.pack r theta z)) (2 * Real.pi) := by |
| 873 | intro theta |
| 874 | have hp : Invariant ((0 : ℝ), coordinateVector 1) (physicalPressureCoefficient D h Qr I j) := by |
| 875 | intro x s |
| 876 | unfold physicalPressureCoefficient |
| 877 | rw [nativeMap_add_angle] |
| 878 | congr 1 |
| 879 | exact angleLift_invariant (ParticularWaveAssembly.referencePressure D.reference D.context D.state |
| 880 | D.carrierBlock D.gaussianInput D.aliasInput j) (nativeMap h Qr I x) s |
| 881 | have hf : referenceFrequency D j * |
| 882 | ((D.carrierBlock.angularFrequency D.reference.band : ℝ) / D.carrierBlock.frequency D.reference.band) = |
| 883 | ((j * D.carrierBlock.angularFrequency D.reference.band : ℤ) : ℝ) := by |
| 884 | unfold referenceFrequency |
| 885 | push_cast |
| 886 | field_simp [hk] |
| 887 | have he := mode_fullTurn (j * D.carrierBlock.angularFrequency D.reference.band) |
| 888 | (physicalPhase_affine D h Qr I j) hp hf (t, AxisymmetricResidual.pack r theta z) |
| 889 | simpa only [complexPhysicalPressure, angle_translate_pack] using he |
| 890 | |
| 891 | theorem physicalPressure_forward (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) (j : ℤ) |
| 892 | (hk : D.carrierBlock.frequency D.reference.band ≠ 0) {delta : ℝ} (hdelta : 0 < delta) |
| 893 | (chart : PolarCharts.Index) {z : SpaceTime} |
| 894 | (hz : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) : |
| 895 | physicalPressure D h Qr I delta j (z.1, CylindricalResidual.chart z.2) = |
| 896 | (complexPhysicalPressure D h Qr I j z).re := by |
| 897 | have hper (t r z : ℝ) : Periodic (fun theta => pressureVector (complexPhysicalPressure D h Qr I j) |
| 898 | (t, AxisymmetricResidual.pack r theta z)) (2 * Real.pi) := by |
| 899 | intro theta |
| 900 | have hp := complexPhysicalPressure_periodic D h Qr I j hk t r z theta |
| 901 | simp only [pressureVector, hp] |
| 902 | have he := (PhysicalCurlCovariance.globalCartesianPotential_forward_germ hdelta chart |
| 903 | (pressureVector (complexPhysicalPressure D h Qr I j)) hper hz).eq_of_nhds |
| 904 | unfold physicalPressure |
| 905 | rw [he] |
| 906 | simp [CylindricalResidual.frame_apply, PhysicalCurlCovariance.realVector, pressureVector] |
| 907 | |
| 908 | theorem bandRawPressure_eq_lift (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 909 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) {K : ℝ} (hK : K ≠ 0) (j : ℤ) |
| 910 | (hKr : referenceFrequency D j ≠ 0) {U : Set Parameter} (R : ReferenceODE D j U) |
| 911 | (x : Cylinder) (hx : parameterChange h Q Qr (waveEquiv x).1.1 ∈ U) : |
| 912 | bandRawPressure D h hQ hQr gap K j x = |
| 913 | pressureWeight h Q Qr • referenceRawPressure D j (waveEquiv (cylinderChange h Q Qr gap x)) := by |
| 914 | exact bandPressure_eq_reference D h hQ hQr gap hK j hKr R (waveEquiv x).1.1 hx (waveEquiv x).2 |
| 915 | |
| 916 | theorem bandPressureMode_eq_physical (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 917 | (hQ : 0 < Q) (hQr : 0 < Qr) (i gap : ℕ) {K : ℝ} (hK : K ≠ 0) (j : ℤ) |
| 918 | (hKr : referenceFrequency D j ≠ 0) {U : Set Parameter} (R : ReferenceODE D j U) |
| 919 | {z : SpaceTime} (hz : 0 < z.2 0) |
| 920 | (hp : parameterChange h Q Qr (nativeMap h Q i z).1.1 ∈ U) : |
| 921 | bandPressureMode D h hQ hQr gap K j ((PhysicalResidualBridge.commonGraph Q h i).map z) = |
| 922 | (Q ^ (2 * CoordinateAlgebra.A h) : ℝ) • complexPhysicalPressure D h Qr (i + gap) j z := by |
| 923 | have hraw := bandRawPressure_eq_lift D h hQ hQr gap hK j hKr R |
| 924 | ((PhysicalResidualBridge.commonGraph Q h i).map z) hp |
| 925 | rw [cylinderChange_graph hQ hQr h i gap hz] at hraw |
| 926 | have hc : carrier K (bandPhase D h Q Qr gap K j) ((PhysicalResidualBridge.commonGraph Q h i).map z) = |
| 927 | carrier (referenceFrequency D j) (physicalPhase D h Qr (i + gap) j) z := by |
| 928 | apply PhysicalCurlCovariance.carrier_eq_of_products |
| 929 | change K * ((referenceFrequency D j / K) * liftPhase D j |
| 930 | (cylinderChange h Q Qr gap ((PhysicalResidualBridge.commonGraph Q h i).map z))) = |
| 931 | referenceFrequency D j * liftPhase D j ((PhysicalResidualBridge.commonGraph Qr h (i + gap)).map z) |
| 932 | rw [cylinderChange_graph hQ hQr h i gap hz] |
| 933 | field_simp |
| 934 | have hw : pressureWeight h Q Qr = Q ^ (2 * CoordinateAlgebra.A h) * Qr ^ (-(2 * CoordinateAlgebra.A h)) := by |
| 935 | unfold pressureWeight ratioPower |
| 936 | rw [Real.rpow_neg hQr.le, div_eq_mul_inv] |
| 937 | unfold bandPressureMode complexPhysicalPressure HarmonicCalculus.mode |
| 938 | rw [hraw, hc, hw] |
| 939 | simp only [physicalPressureCoefficient, Complex.real_smul, Complex.ofReal_mul, nativeMap] |
| 940 | ring |
| 941 | |
| 942 | theorem band_physical_pressure (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 943 | (hQ : 0 < Q) (hQr : 0 < Qr) (i gap : ℕ) {K : ℝ} (hK : K ≠ 0) (j : ℤ) |
| 944 | (hKr : referenceFrequency D j ≠ 0) {U : Set Parameter} (R : ReferenceODE D j U) |
| 945 | {z : SpaceTime} (hz : 0 < z.2 0) |
| 946 | (hp : parameterChange h Q Qr (nativeMap h Q i z).1.1 ∈ U) |
| 947 | {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) |
| 948 | (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) : |
| 949 | (bandPressureMode D h hQ hQr gap K j ((PhysicalResidualBridge.commonGraph Q h i).map z)).re = |
| 950 | Q ^ (2 * CoordinateAlgebra.A h) * |
| 951 | physicalPressure D h Qr (i + gap) delta j (z.1, CylindricalResidual.chart z.2) := by |
| 952 | have hk : D.carrierBlock.frequency D.reference.band ≠ 0 := by |
| 953 | intro hh |
| 954 | apply hKr |
| 955 | simp [referenceFrequency, hh] |
| 956 | rw [bandPressureMode_eq_physical D h hQ hQr i gap hK j hKr R hz hp, |
| 957 | physicalPressure_forward D h Qr (i + gap) j hk hdelta chart hchart] |
| 958 | simp [Complex.real_smul] |
| 959 | |
| 960 | /-! ## Finite harmonic assembly uses one potential -/ |
| 961 | |
| 962 | noncomputable def labelBandVelocity (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 963 | (hQ : 0 < Q) (hQr : 0 < Qr) (i gap : ℕ) (frequency : ℤ → ℝ) (N : ℕ) |
| 964 | (x : Cylinder) (component : Fin 3) : ℝ := |
| 965 | ∑ j ∈ modes N, (bandVelocity D h hQ hQr i gap (frequency j) j x component).re |
| 966 | |
| 967 | noncomputable def labelBandPressure (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 968 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (frequency : ℤ → ℝ) (N : ℕ) |
| 969 | (x : Cylinder) : ℝ := ∑ j ∈ modes N, (bandPressureMode D h hQ hQr gap (frequency j) j x).re |
| 970 | |
| 971 | noncomputable def labelPressure (D : AssemblyData Parameter) (h Qr : ℝ) (I : ℕ) |
| 972 | (delta : ℝ) (N : ℕ) : PressureField := |
| 973 | fun z => ∑ j ∈ modes N, physicalPressure D h Qr I delta j z |
| 974 | |
| 975 | theorem spatialCurl_finset_sum {ι : Type} (S : Finset ι) (A : ι → VelocityField) |
| 976 | {z : SpaceTime} (hA : ∀ i ∈ S, DifferentiableAt ℝ (A i) z) : |
| 977 | SpatialCurl.spatialCurl (fun w => ∑ i ∈ S, A i w) z = |
| 978 | ∑ i ∈ S, SpatialCurl.spatialCurl (A i) z := by |
| 979 | have hs : ∀ i ∈ S, DifferentiableAt ℝ (fun y : Space => A i (z.1, y)) z.2 := |
| 980 | fun i hi => (hA i hi).comp z.2 ((differentiableAt_const z.1).prodMk differentiableAt_id) |
| 981 | change SpatialCurl.curl (fun y : Space => ∑ i ∈ S, A i (z.1, y)) z.2 = |
| 982 | ∑ i ∈ S, SpatialCurl.curl (fun y : Space => A i (z.1, y)) z.2 |
| 983 | simp only [SpatialCurl.curl, fderiv_fun_sum hs, map_sum] |
| 984 | |
| 985 | theorem label_physical_velocity (D : AssemblyData Parameter) {h Q Qr : ℝ} |
| 986 | (hQ : 0 < Q) (hQr : 0 < Qr) (i gap : ℕ) (H : ReferenceChart D h Qr (i + gap)) |
| 987 | {N : ℕ} {α κ : ℝ} (C : D.controls N α κ) (frequency : ℤ → ℝ) |
| 988 | (hfrequency : ∀ j ∈ modes N, frequency j ≠ 0) {U : Set Parameter} (hU : IsOpen U) |
| 989 | (R : ∀ j ∈ modes N, ReferenceODE D j U) {z : SpaceTime} |
| 990 | (hz : z ∈ (PhysicalResidualBridge.commonGraph Q h i).source (bandDomain D h Q Qr gap U)) |
| 991 | {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) |
| 992 | (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) (component : Fin 3) : |
| 993 | labelBandVelocity D h hQ hQr i gap frequency N ((PhysicalResidualBridge.commonGraph Q h i).map z) component = |
| 994 | Q ^ CoordinateAlgebra.A h * CylindricalResidual.frame (-(z.2 1)) |
| 995 | (labelVelocity D h Qr (i + gap) delta N (z.1, CylindricalResidual.chart z.2)) component := by |
| 996 | have href : nativeMap h Qr (i + gap) z ∈ D.strip.domain := by |
| 997 | have hx := hz.2.2.1 |
| 998 | rw [cylinderChange_graph hQ hQr h i gap hz.1] at hx |
| 999 | exact hx |
| 1000 | have hA (j : ℤ) (hj : j ∈ modes N) : |
| 1001 | DifferentiableAt ℝ (physicalPotential D h Qr (i + gap) delta j) (z.1, CylindricalResidual.chart z.2) := |
| 1002 | (PhysicalCurlCovariance.globalCartesianPotential_smoothAt_forward hdelta chart |
| 1003 | (referencePotential_periodic D h Qr (i + gap) j ((C j hj).frequency_ne D.reference.band)) hchart |
| 1004 | (referencePotential_smoothAt D H (C j hj) hQr hz.1 href)).differentiableAt (by simp) |
| 1005 | have hsum := spatialCurl_finset_sum (modes N) |
| 1006 | (fun j => physicalPotential D h Qr (i + gap) delta j) hA |
| 1007 | unfold labelVelocity labelPotential labelBandVelocity |
| 1008 | rw [hsum] |
| 1009 | have hframe : CylindricalResidual.frame (-(z.2 1)) |
| 1010 | (∑ j ∈ modes N, SpatialCurl.spatialCurl (physicalPotential D h Qr (i + gap) delta j) |
| 1011 | (z.1, CylindricalResidual.chart z.2)) component = |
| 1012 | ∑ j ∈ modes N, CylindricalResidual.frame (-(z.2 1)) |
| 1013 | (SpatialCurl.spatialCurl (physicalPotential D h Qr (i + gap) delta j) |
| 1014 | (z.1, CylindricalResidual.chart z.2)) component := |
| 1015 | map_sum ((AxisymmetricFields.projection component).comp (CylindricalResidual.frame (-(z.2 1)))) _ _ |
| 1016 | rw [hframe, Finset.mul_sum] |
| 1017 | apply Finset.sum_congr rfl |
| 1018 | intro j hj |
| 1019 | exact band_physical_velocity D hQ hQr i gap H (C j hj) (hfrequency j hj) hU (R j hj) hz hdelta chart hchart component |
| 1020 | |
| 1021 | theorem label_physical_pressure (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 1022 | (hQ : 0 < Q) (hQr : 0 < Qr) (i gap : ℕ) {N : ℕ} (frequency : ℤ → ℝ) |
| 1023 | (hfrequency : ∀ j ∈ modes N, frequency j ≠ 0) |
| 1024 | (hreference : ∀ j ∈ modes N, referenceFrequency D j ≠ 0) {U : Set Parameter} |
| 1025 | (R : ∀ j ∈ modes N, ReferenceODE D j U) {z : SpaceTime} (hz : 0 < z.2 0) |
| 1026 | (hp : parameterChange h Q Qr (nativeMap h Q i z).1.1 ∈ U) |
| 1027 | {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) |
| 1028 | (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) : |
| 1029 | labelBandPressure D h hQ hQr gap frequency N ((PhysicalResidualBridge.commonGraph Q h i).map z) = |
| 1030 | Q ^ (2 * CoordinateAlgebra.A h) * |
| 1031 | labelPressure D h Qr (i + gap) delta N (z.1, CylindricalResidual.chart z.2) := by |
| 1032 | unfold labelBandPressure labelPressure |
| 1033 | rw [Finset.mul_sum] |
| 1034 | apply Finset.sum_congr rfl |
| 1035 | intro j hj |
| 1036 | exact band_physical_pressure D h hQ hQr i gap (hfrequency j hj) j (hreference j hj) |
| 1037 | (R j hj) hz hp hdelta chart hchart |
| 1038 | |
| 1039 | /-! ## Axis preservation follows from vanishing of the actual source -/ |
| 1040 | |
| 1041 | /-! ## Regularity of the constructed physical fields -/ |
| 1042 | |
| 1043 | theorem referenceRawPressure_eq_common (D : AssemblyData Parameter) (H : ReferenceIdentity D) |
| 1044 | {j : ℤ} (hj : j ≠ 0) (hfrequency : ∀ n, D.carrierBlock.frequency n ≠ 0) : |
| 1045 | referenceRawPressure D j = (rawCommon D j).pressure D.reference.band := by |
| 1046 | have hs : residualSource D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j D.reference.band = |
| 1047 | transportSource (residualSource D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j D.reference.band) |
| 1048 | (D.charts.parameter D.reference.band) (D.charts.gap D.reference.band) |
| 1049 | (D.charts.amplitude D.reference.band) := by |
| 1050 | rw [H.parameter, H.gap, H.amplitude] |
| 1051 | funext p |
| 1052 | simp [transportSource, coverPower] |
| 1053 | funext x |
| 1054 | have he := actualBandPressure_eq_reference D.reference D.charts D.context D.state D.carrierBlock |
| 1055 | D.gaussianInput D.aliasInput hj D.reference.band hfrequency hs x.1.1 x.2 |
| 1056 | rw [H.parameter, H.gap, H.amplitude] at he |
| 1057 | simp only [id_eq, coverPower, ContinuousLinearEquiv.refl_apply, one_mul, |
| 1058 | div_self (hfrequency D.reference.band), one_smul] at he |
| 1059 | exact he.symm |
| 1060 | |
| 1061 | section PhysicalRegularity |
| 1062 | |
| 1063 | variable (D : AssemblyData Parameter) {h Qr : ℝ} {I : ℕ} (H : ReferenceChart D h Qr I) |
| 1064 | {j : ℤ} {α κ : ℝ} |
| 1065 | (C : LocalControl D.reference D.charts D.context D.state D.carrierBlock |
| 1066 | D.gaussianInput D.aliasInput j D.background D.copy D.strip D.directions α κ) |
| 1067 | (hQr : 0 < Qr) {z : SpaceTime} (hz : 0 < z.2 0) (hx : nativeMap h Qr I z ∈ D.strip.domain) |
| 1068 | {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) |
| 1069 | (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) |
| 1070 | |
| 1071 | include H C hQr hz hx hdelta hchart |
| 1072 | |
| 1073 | end PhysicalRegularity |
| 1074 | |
| 1075 | /-! ## Substitution of the actual target-band residual source -/ |
| 1076 | |
| 1077 | noncomputable def transportedResidualSource (D : AssemblyData Parameter) (h Q Qr : ℝ) |
| 1078 | (gap : ℕ) (j : ℤ) : Parameter × Plane → ComplexVector := |
| 1079 | ScaledTangentTransport.transportSource (referenceSource D j) (parameterChange h Q Qr) gap |
| 1080 | (clockWeight h Q Qr) (velocityWeight h Q Qr) |
| 1081 | |
| 1082 | noncomputable def residualBandAmplitude (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 1083 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (K : ℝ) (j : ℤ) (n : ℕ) : |
| 1084 | Parameter × Plane → ComplexVector := |
| 1085 | ParticularWaveBounds.commonVelocity |
| 1086 | (ScaledTangentTransport.transportTangent (D.reference.tangent j) (parameterChange h Q Qr) gap 0 |
| 1087 | (clockWeight h Q Qr) (velocityWeight h Q Qr) (normalWeight Q Qr K (referenceFrequency D j))) |
| 1088 | (residualSource D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j n) |
| 1089 | (CopySolveCompatibility.transportGeometry D.reference.geometry gap 0 (clockWeight h Q Qr) |
| 1090 | (ratioPower_pos hQ hQr (CoordinateAlgebra.A h + 1 / 2)).ne') |
| 1091 | (div_pos D.reference.length_pos (ratioPower_pos hQ hQr (CoordinateAlgebra.A h + 1 / 2))).le |
| 1092 | (D.reference.cutoff ∘ CopySolveCompatibility.nativeTimeMap 0 (clockWeight h Q Qr)) |
| 1093 | |
| 1094 | noncomputable def residualBandPressure (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 1095 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (K : ℝ) (j : ℤ) (n : ℕ) : |
| 1096 | Parameter × Plane → ℂ := |
| 1097 | ParticularWaveBounds.commonPressure |
| 1098 | (ScaledTangentTransport.transportTangent (D.reference.tangent j) (parameterChange h Q Qr) gap 0 |
| 1099 | (clockWeight h Q Qr) (velocityWeight h Q Qr) (normalWeight Q Qr K (referenceFrequency D j))) |
| 1100 | (residualSource D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j n) |
| 1101 | (CopySolveCompatibility.transportGeometry D.reference.geometry gap 0 (clockWeight h Q Qr) |
| 1102 | (ratioPower_pos hQ hQr (CoordinateAlgebra.A h + 1 / 2)).ne') |
| 1103 | (div_pos D.reference.length_pos (ratioPower_pos hQ hQr (CoordinateAlgebra.A h + 1 / 2))).le |
| 1104 | (D.reference.cutoff ∘ CopySolveCompatibility.nativeTimeMap 0 (clockWeight h Q Qr)) K |
| 1105 | |
| 1106 | theorem residualBandAmplitude_eq (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 1107 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (K : ℝ) (j : ℤ) (n : ℕ) |
| 1108 | (hsource : residualSource D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j n = |
| 1109 | transportedResidualSource D h Q Qr gap j) : |
| 1110 | residualBandAmplitude D h hQ hQr gap K j n = bandAmplitude D h hQ hQr gap K j := by |
| 1111 | unfold residualBandAmplitude bandAmplitude |
| 1112 | rw [hsource] |
| 1113 | rfl |
| 1114 | |
| 1115 | theorem residualBandPressure_eq (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 1116 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (K : ℝ) (j : ℤ) (n : ℕ) |
| 1117 | (hsource : residualSource D.context D.state D.carrierBlock D.gaussianInput D.aliasInput j n = |
| 1118 | transportedResidualSource D h Q Qr gap j) : |
| 1119 | residualBandPressure D h hQ hQr gap K j n = bandPressure D h hQ hQr gap K j := by |
| 1120 | unfold residualBandPressure bandPressure |
| 1121 | rw [hsource] |
| 1122 | rfl |
| 1123 | |
| 1124 | theorem transportedResidualSource_apply (D : AssemblyData Parameter) (h : ℝ) {Q Qr : ℝ} |
| 1125 | (hQ : 0 < Q) (hQr : 0 < Qr) (gap : ℕ) (j : ℤ) (x : Parameter × Plane) : |
| 1126 | transportedResidualSource D h Q Qr gap j x = |
| 1127 | sourceWeight h Q Qr • referenceSource D j (parameterChange h Q Qr x.1, coverPower gap x.2) := by |
| 1128 | unfold transportedResidualSource ScaledTangentTransport.transportSource |
| 1129 | rw [clock_mul_velocity hQ hQr] |
| 1130 | |
| 1131 | /-- Equality with the target block's literal carrier follows from the |
| 1132 | primitive unmodulated phase identity and its shared integer angular label. -/ |
| 1133 | theorem bandPhase_eq_actualCarrier (D : AssemblyData Parameter) (h Q Qr : ℝ) |
| 1134 | (gap n : ℕ) (j : ℤ) (hj : j ≠ 0) (hfrequency : ∀ m, D.carrierBlock.frequency m ≠ 0) |
| 1135 | (hphase : ∀ p Y, D.carrierBlock.frequency n * D.carrierBlock.phase n (p, Y) = |
| 1136 | D.carrierBlock.frequency D.reference.band * D.carrierBlock.phase D.reference.band |
| 1137 | (parameterChange h Q Qr p, coverPower gap Y)) |
| 1138 | (hangular : D.carrierBlock.angularFrequency n = D.carrierBlock.angularFrequency D.reference.band) : |
| 1139 | bandPhase D h Q Qr gap ((j : ℝ) * D.carrierBlock.frequency n) j = |
| 1140 | fun x => (actualCarrier D.background D.carrierBlock j).phase n (waveEquiv x) := by |
| 1141 | funext x |
| 1142 | have hK : (j : ℝ) * D.carrierBlock.frequency n ≠ 0 := |
| 1143 | mul_ne_zero (by exact_mod_cast hj) (hfrequency n) |
| 1144 | apply mul_left_cancel₀ hK |
| 1145 | have hn := actualCarrier_phase D.background D.carrierBlock j hfrequency n |
| 1146 | ((waveEquiv x).1.1, (waveEquiv x).2) (waveEquiv x).1.2 |
| 1147 | have hr := actualCarrier_phase D.background D.carrierBlock j hfrequency D.reference.band |
| 1148 | (parameterChange h Q Qr (waveEquiv x).1.1, coverPower gap (waveEquiv x).2) (waveEquiv x).1.2 |
| 1149 | change ((j : ℝ) * D.carrierBlock.frequency n) * |
| 1150 | (actualCarrier D.background D.carrierBlock j).phase n (waveEquiv x) = _ at hn |
| 1151 | change referenceFrequency D j * liftPhase D j (cylinderChange h Q Qr gap x) = _ at hr |
| 1152 | rw [hphase, hangular] at hn |
| 1153 | unfold bandPhase |
| 1154 | calc |
| 1155 | _ = referenceFrequency D j * liftPhase D j (cylinderChange h Q Qr gap x) := by |
| 1156 | field_simp [hfrequency n] |
| 1157 | _ = _ := hr.trans hn.symm |
| 1158 | |
| 1159 | end |
| 1160 | end NavierStokes.PhysicalParticularWave |