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.LocalSignedRequest |
| 2 | import NavierStokes.PhysicalParticularWave |
| 3 | import NavierStokes.PrimaryFieldAssembly |
| 4 | import NavierStokes.PhysicalResidualNaturality |
| 5 | import NavierStokes.PeriodicPhaseAssembly |
| 6 | |
| 7 | /-! |
| 8 | # Signed quotient waves from one physical primary reference |
| 9 | |
| 10 | The signed numerator is the actual current-state stress request. All |
| 11 | band views use the same absolute-lift primary pulse and covariance |
| 12 | matrix. Compatibility is proved before restriction to a physical graph. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace NavierStokes.PhysicalSignedWave |
| 18 | |
| 19 | open Set Function Filter Matrix HarmonicCalculus WeightedClasses |
| 20 | open ProblemStatement CommonCoverSolve TorusInverse |
| 21 | open scoped ContDiff Topology InnerProductSpace BigOperators |
| 22 | |
| 23 | abbrev Mat2 := SmoothCovariance.Mat2 |
| 24 | abbrev Vec2 := SmoothCovariance.Vec2 |
| 25 | abbrev Point := LocalSignedRequest.Point |
| 26 | abbrev Cylinder := PhysicalResidualBridge.Cylinder |
| 27 | |
| 28 | noncomputable def fastTranslate (x : Cylinder) (k : TorusInverse.Frequency) : Cylinder := |
| 29 | ((x.1.1, (x.1.2.1, x.1.2.2 + TorusAverages.latticePoint k)), x.2) |
| 30 | |
| 31 | section QuotientAlgebra |
| 32 | |
| 33 | theorem weights_smul_target (H : Mat2) (T : Vec2) (a : ℝ) : |
| 34 | SmoothCovariance.weights H (a • T) = a • SmoothCovariance.weights H T := by |
| 35 | ext j |
| 36 | fin_cases j <;> simp [SmoothCovariance.weights, SmoothCovariance.cramerNumerator, |
| 37 | Pi.smul_apply, smul_eq_mul] <;> ring |
| 38 | |
| 39 | theorem inverse_smul_target (H : Mat2) (T : Vec2) (a : ℝ) : |
| 40 | H⁻¹.mulVec (a • T) = a • H⁻¹.mulVec T := by |
| 41 | ext j |
| 42 | simp only [Matrix.mulVec, dotProduct, Fin.sum_univ_two, Pi.smul_apply, smul_eq_mul] |
| 43 | ring |
| 44 | |
| 45 | theorem amplitudes_square_scale (H : Mat2) (T : Vec2) {a : ℝ} (ha : 0 ≤ a) : |
| 46 | SmoothCovariance.amplitudes H (a ^ 2 • T) = a • SmoothCovariance.amplitudes H T := by |
| 47 | ext j |
| 48 | simp only [SmoothCovariance.amplitudes, weights_smul_target, Pi.smul_apply, smul_eq_mul] |
| 49 | rw [Real.sqrt_mul (sq_nonneg a), Real.sqrt_sq ha] |
| 50 | |
| 51 | /-- Both the signed numerator and the original primary target acquire the |
| 52 | same squared scale. The quotient is therefore multiplied by the positive |
| 53 | scale, including points where its totalized denominator is zero. -/ |
| 54 | theorem increment_square_scale (H : Mat2) (T R : Vec2) {a : ℝ} (ha : 0 < a) (j : Fin 2) : |
| 55 | SignedCovariance.increment H (a ^ 2 • T) (a ^ 2 • R) j = |
| 56 | a * SignedCovariance.increment H T R j := by |
| 57 | simp only [SignedCovariance.increment, inverse_smul_target, |
| 58 | amplitudes_square_scale H T ha.le, Pi.smul_apply, smul_eq_mul] |
| 59 | by_cases hb : SmoothCovariance.amplitudes H T j = 0 |
| 60 | · simp only [hb, mul_zero, div_zero] |
| 61 | · field_simp |
| 62 | |
| 63 | noncomputable def coefficientScale (epsilon referenceEpsilon velocityScale : ℝ) : ℝ := |
| 64 | velocityScale * Real.sqrt referenceEpsilon / Real.sqrt epsilon |
| 65 | |
| 66 | theorem coefficientScale_pos {epsilon referenceEpsilon velocityScale : ℝ} |
| 67 | (he : 0 < epsilon) (hr : 0 < referenceEpsilon) (hv : 0 < velocityScale) : |
| 68 | 0 < coefficientScale epsilon referenceEpsilon velocityScale := |
| 69 | div_pos (mul_pos hv (Real.sqrt_pos.mpr hr)) (Real.sqrt_pos.mpr he) |
| 70 | |
| 71 | theorem coefficientScale_square {epsilon referenceEpsilon velocityScale : ℝ} |
| 72 | (he : 0 < epsilon) (hr : 0 ≤ referenceEpsilon) : |
| 73 | coefficientScale epsilon referenceEpsilon velocityScale ^ 2 = |
| 74 | velocityScale ^ 2 * referenceEpsilon / epsilon := by |
| 75 | unfold coefficientScale |
| 76 | rw [div_pow, mul_pow, Real.sq_sqrt hr, Real.sq_sqrt he.le] |
| 77 | |
| 78 | theorem sqrt_mul_coefficientScale {epsilon referenceEpsilon velocityScale : ℝ} |
| 79 | (he : 0 < epsilon) : |
| 80 | Real.sqrt epsilon * coefficientScale epsilon referenceEpsilon velocityScale = |
| 81 | velocityScale * Real.sqrt referenceEpsilon := by |
| 82 | unfold coefficientScale |
| 83 | field_simp |
| 84 | |
| 85 | /-- The primary square root and the signed inverse quotient have exactly |
| 86 | the same velocity scaling. The matrix and column are unchanged. -/ |
| 87 | theorem primary_scalar_scale (H : Mat2) (T : Vec2) (mask : ℝ) |
| 88 | {epsilon referenceEpsilon velocityScale : ℝ} |
| 89 | (he : 0 < epsilon) (hr : 0 < referenceEpsilon) (hv : 0 < velocityScale) (j : Fin 2) : |
| 90 | PartitionedCovariance.amplitude epsilon mask H |
| 91 | (coefficientScale epsilon referenceEpsilon velocityScale ^ 2 • T) j = |
| 92 | velocityScale * PartitionedCovariance.amplitude referenceEpsilon mask H T j := by |
| 93 | unfold PartitionedCovariance.amplitude |
| 94 | rw [amplitudes_square_scale H T (coefficientScale_pos he hr hv).le] |
| 95 | simp only [Pi.smul_apply, smul_eq_mul] |
| 96 | have h := sqrt_mul_coefficientScale (referenceEpsilon := referenceEpsilon) |
| 97 | (velocityScale := velocityScale) he |
| 98 | calc |
| 99 | _ = (Real.sqrt epsilon * coefficientScale epsilon referenceEpsilon velocityScale) * |
| 100 | SmoothCovariance.amplitudes H T j * mask := by ring |
| 101 | _ = _ := by rw [h]; ring |
| 102 | |
| 103 | theorem signed_scalar_scale (H : Mat2) (T R : Vec2) (mask : ℝ) |
| 104 | {epsilon referenceEpsilon velocityScale : ℝ} |
| 105 | (he : 0 < epsilon) (hr : 0 < referenceEpsilon) (hv : 0 < velocityScale) (j : Fin 2) : |
| 106 | Real.sqrt epsilon * SignedCovariance.increment H |
| 107 | (coefficientScale epsilon referenceEpsilon velocityScale ^ 2 • T) |
| 108 | (coefficientScale epsilon referenceEpsilon velocityScale ^ 2 • R) j * mask = |
| 109 | velocityScale * (Real.sqrt referenceEpsilon * SignedCovariance.increment H T R j * mask) := by |
| 110 | rw [increment_square_scale H T R (coefficientScale_pos he hr hv)] |
| 111 | have h := sqrt_mul_coefficientScale (referenceEpsilon := referenceEpsilon) |
| 112 | (velocityScale := velocityScale) he |
| 113 | calc |
| 114 | _ = (Real.sqrt epsilon * coefficientScale epsilon referenceEpsilon velocityScale) * |
| 115 | SignedCovariance.increment H T R j * mask := by ring |
| 116 | _ = _ := by rw [h]; ring |
| 117 | |
| 118 | /-- With request twice the target, the literal signed quotient is exactly |
| 119 | the primary square root. This also holds at totalized zero denominators. -/ |
| 120 | theorem increment_twice_target (H : Mat2) (T : Vec2) (j : Fin 2) : |
| 121 | SignedCovariance.increment H T ((2 : ℝ) • T) j = SmoothCovariance.amplitudes H T j := by |
| 122 | by_cases hd : H.det = 0 |
| 123 | · have hi : H⁻¹ = 0 := Matrix.nonsing_inv_apply_not_isUnit H (by simp [hd]) |
| 124 | simp [SignedCovariance.increment, hi, SmoothCovariance.amplitudes, |
| 125 | SmoothCovariance.weights, hd] |
| 126 | · rw [SignedCovariance.increment, inverse_smul_target, |
| 127 | SmoothCovariance.inverse_formula H T hd] |
| 128 | simp only [Pi.smul_apply, smul_eq_mul, SmoothCovariance.amplitudes] |
| 129 | by_cases hw : 0 ≤ SmoothCovariance.weights H T j |
| 130 | · by_cases hz : SmoothCovariance.weights H T j = 0 |
| 131 | · simp [hz] |
| 132 | · have hp : 0 < SmoothCovariance.weights H T j := lt_of_le_of_ne hw (Ne.symm hz) |
| 133 | apply (div_eq_iff (mul_ne_zero (by norm_num) (Real.sqrt_pos.mpr hp).ne')).2 |
| 134 | nlinarith [Real.sq_sqrt hw] |
| 135 | · rw [Real.sqrt_eq_zero_of_nonpos (le_of_not_ge hw)] |
| 136 | simp |
| 137 | |
| 138 | end QuotientAlgebra |
| 139 | |
| 140 | /-! ## A concrete periodic reference phase with native clock germs -/ |
| 141 | |
| 142 | structure ReferencePhase where |
| 143 | geometry : CommonCoverSolve.Geometry |
| 144 | window : PeriodicPhaseAssembly.ClockWindow |
| 145 | epsilon : ℝ |
| 146 | axialFrequency : ℝ |
| 147 | radialFrequency : ℝ |
| 148 | angularMode : ℤ |
| 149 | F : PeriodicPhaseAssembly.Parameter → ℝ |
| 150 | G : PeriodicPhaseAssembly.Parameter → ℝ |
| 151 | |
| 152 | namespace ReferencePhase |
| 153 | |
| 154 | variable (C : ReferencePhase) |
| 155 | |
| 156 | noncomputable def phase (K : ℝ) (x : Cylinder) : ℝ := |
| 157 | PeriodicPhaseAssembly.angularLift |
| 158 | (PeriodicPhaseAssembly.profilePhase C.geometry C.window.cutoff C.epsilon |
| 159 | (C.angularMode / K) C.axialFrequency C.radialFrequency C.F C.G) |
| 160 | (C.angularMode / K) (PhysicalParticularWave.waveEquiv x) |
| 161 | |
| 162 | theorem phase_periodic (K : ℝ) (x : Cylinder) (k : TorusInverse.Frequency) : |
| 163 | C.phase K (fastTranslate x k) = C.phase K x := by |
| 164 | exact PeriodicPhaseAssembly.fullPhase_periodic C.geometry C.window.cutoff |
| 165 | (PeriodicPhaseAssembly.profileIntercept C.epsilon C.axialFrequency C.radialFrequency) |
| 166 | (PeriodicPhaseAssembly.profileRate (C.angularMode / K) C.axialFrequency C.F C.G) |
| 167 | (C.angularMode / K) (x.1.1, (x.1.2.1.2, x.1.2.1.1)) x.2 x.1.2.2 k |
| 168 | |
| 169 | theorem phase_smooth (K : ℝ) (hF : ContDiff ℝ ∞ C.F) (hG : ContDiff ℝ ∞ C.G) : |
| 170 | ContDiff ℝ ∞ (C.phase K) := by |
| 171 | apply (PeriodicPhaseAssembly.angularLift_contDiff ?_ _).comp |
| 172 | PhysicalParticularWave.waveEquiv.contDiff |
| 173 | exact PeriodicPhaseAssembly.phase_contDiff C.geometry C.window |
| 174 | ((contDiff_const.mul contDiff_snd.snd).add (contDiff_const.mul contDiff_fst)) |
| 175 | ((contDiff_const.mul hF).add (contDiff_const.mul hG)) |
| 176 | |
| 177 | noncomputable def base (a : LinearWaveBounds.WaveCoefficients Cylinder) : |
| 178 | LinearWaveBounds.WaveCoefficients Cylinder := |
| 179 | { a with phase := fun n => C.phase (a.frequency n) } |
| 180 | |
| 181 | end ReferencePhase |
| 182 | |
| 183 | section ActualRequest |
| 184 | |
| 185 | /-- The primitive is taken from the actual current-state residual on |
| 186 | every radius and fast coordinate of the stated slow fiber. Graph-only |
| 187 | agreement is not used in this theorem. -/ |
| 188 | theorem fullRequest_chart (s sr : StripData Point) (P : SignedStressPrimitive.Patch) |
| 189 | (coord coordr : ℝ) (c cr : CorrectionState.Context Point) |
| 190 | (u ur : CorrectionState.State Point) (n nr : ℕ) |
| 191 | {l : ℝ} (hl : 0 < l) (C : LocalSignedRequest.Plane →L[ℝ] LocalSignedRequest.Plane) |
| 192 | (gap : ℕ) (sourceScale : ℝ) (t : LocalSignedRequest.Plane) |
| 193 | (hq : 0 < SimilarityCoordinates.coordinateQ coord t) |
| 194 | {V : Set LocalSignedRequest.Plane} (hV : IsOpen V) (ht : C t ∈ V) |
| 195 | (hθ : ContDiffOn ℝ ∞ (ur.thetaResidual cr nr) (PhysicalMeanDomain.slowDomain V)) |
| 196 | (hz : ContDiffOn ℝ ∞ (ur.axialResidual cr nr) (PhysicalMeanDomain.slowDomain V)) |
| 197 | (hpθ : PhysicalMeanDomain.PeriodicOn V (ur.thetaResidual cr nr)) |
| 198 | (hpz : PhysicalMeanDomain.PeriodicOn V (ur.axialResidual cr nr)) |
| 199 | (hlength : Real.sqrt (SimilarityCoordinates.coordinateQ coordr (C t)) = |
| 200 | l * Real.sqrt (SimilarityCoordinates.coordinateQ coord t)) |
| 201 | (heθ : ∀ r Y, u.thetaResidual c n (r, (t, Y)) = |
| 202 | sourceScale * ur.thetaResidual cr nr (l * r, (C t, TemporalMeanUpdate.coverMap gap Y))) |
| 203 | (hez : ∀ r Y, u.axialResidual c n (r, (t, Y)) = |
| 204 | sourceScale * ur.axialResidual cr nr (l * r, (C t, TemporalMeanUpdate.coverMap gap Y))) |
| 205 | (r : ℝ) (Y : LocalSignedRequest.Plane) (angle : ℝ) : |
| 206 | LocalSignedRequest.fullRequest s P coord c u n ((r, (t, Y)), angle) = |
| 207 | (sourceScale / l * sr.epsilon nr / s.epsilon n) • |
| 208 | LocalSignedRequest.fullRequest sr P coordr cr ur nr |
| 209 | ((l * r, (C t, TemporalMeanUpdate.coverMap gap Y)), angle) := by |
| 210 | have h1 := LocalSignedRequest.physicalBarSigma_chart P 2 hl hq C gap sourceScale |
| 211 | hV ht hθ hpθ hlength heθ r |
| 212 | have h2 := LocalSignedRequest.physicalBarSigma_chart P 1 hl hq C gap sourceScale |
| 213 | hV ht hz hpz hlength hez r |
| 214 | have hn := (s.epsilon_pos n).ne' |
| 215 | have hr := (sr.epsilon_pos nr).ne' |
| 216 | ext j |
| 217 | fin_cases j |
| 218 | · simp [LocalSignedRequest.fullRequest, LocalSignedRequest.normalizedRequest, |
| 219 | LocalSignedRequest.requestedStress, Pi.smul_apply, smul_eq_mul, |
| 220 | Matrix.cons_val_zero, h1] ; |
| 221 | field_simp [hl.ne'] |
| 222 | · simp [LocalSignedRequest.fullRequest, LocalSignedRequest.normalizedRequest, |
| 223 | LocalSignedRequest.requestedStress, Pi.smul_apply, smul_eq_mul, |
| 224 | Matrix.cons_val_one, h2] ; |
| 225 | field_simp [hl.ne'] |
| 226 | |
| 227 | theorem source_over_radial {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) (h : ℝ) : |
| 228 | PhysicalParticularWave.sourceWeight h Q Qr / PhysicalParticularWave.ratioPower Q Qr (1 / 2) = |
| 229 | PhysicalParticularWave.velocityWeight h Q Qr ^ 2 := by |
| 230 | unfold PhysicalParticularWave.sourceWeight PhysicalParticularWave.velocityWeight |
| 231 | rw [PhysicalParticularWave.ratioPower_div hQ hQr, pow_two, |
| 232 | PhysicalParticularWave.ratioPower_mul hQ hQr] |
| 233 | congr 1 |
| 234 | ring |
| 235 | |
| 236 | theorem physical_request_factor {Q Qr epsilon referenceEpsilon : ℝ} |
| 237 | (hQ : 0 < Q) (hQr : 0 < Qr) (he : 0 < epsilon) (hr : 0 ≤ referenceEpsilon) (h : ℝ) : |
| 238 | (PhysicalParticularWave.sourceWeight h Q Qr / |
| 239 | PhysicalParticularWave.ratioPower Q Qr (1 / 2)) * referenceEpsilon / epsilon = |
| 240 | coefficientScale epsilon referenceEpsilon (PhysicalParticularWave.velocityWeight h Q Qr) ^ 2 := by |
| 241 | rw [coefficientScale_square he hr, source_over_radial hQ hQr] |
| 242 | |
| 243 | end ActualRequest |
| 244 | |
| 245 | /-! ## The actual current-state request on the full free lift -/ |
| 246 | |
| 247 | noncomputable def slowChange (h Q Qr : ℝ) : LocalSignedRequest.Plane →L[ℝ] LocalSignedRequest.Plane := |
| 248 | ((PhysicalParticularWave.ratioPower Q Qr 1) • ContinuousLinearMap.id ℝ ℝ).prodMap |
| 249 | ((PhysicalParticularWave.ratioPower Q Qr (CoordinateAlgebra.D h)) • ContinuousLinearMap.id ℝ ℝ) |
| 250 | |
| 251 | noncomputable def requestChart (h : ℝ) {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 252 | (gap : ℕ) : Point ≃L[ℝ] Point := |
| 253 | (PhysicalResidualTZ.swapSlow.toContinuousLinearEquiv.trans |
| 254 | (PhysicalResidualNaturality.chartEquiv h hQ hQr gap)).trans |
| 255 | PhysicalResidualTZ.swapSlow.toContinuousLinearEquiv |
| 256 | |
| 257 | theorem requestChart_apply (h : ℝ) {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) |
| 258 | (gap : ℕ) (x : Point) : |
| 259 | requestChart h hQ hQr gap x = |
| 260 | (PhysicalParticularWave.ratioPower Q Qr (1 / 2) * x.1, |
| 261 | (slowChange h Q Qr x.2.1, TemporalMeanUpdate.coverMap gap x.2.2)) := by |
| 262 | rw [MeanChartCompatibility.coverMap_eq_coverPower] |
| 263 | rfl |
| 264 | |
| 265 | theorem ratioPower_eq_div_rpow {Q Qr : ℝ} (hQ : 0 < Q) (hQr : 0 < Qr) (p : ℝ) : |
| 266 | PhysicalParticularWave.ratioPower Q Qr p = (Q / Qr) ^ p := by |
| 267 | exact (Real.div_rpow hQ.le hQr.le p).symm |
| 268 | |
| 269 | theorem slowChange_coordinateQ {h Q Qr : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 270 | (hQ : 0 < Q) (hQr : 0 < Qr) {t : LocalSignedRequest.Plane} (ht : 0 < t.1) : |
| 271 | SimilarityCoordinates.coordinateQ (2 * h) (slowChange h Q Qr t) = |
| 272 | (Q / Qr) * SimilarityCoordinates.coordinateQ (2 * h) t := by |
| 273 | have he := SimilarityHomogeneity.coordinateQ_scale_h hh hh1 (div_pos hQ hQr) ht (z := t.2) |
| 274 | change SimilarityCoordinates.coordinateQ (2 * h) |
| 275 | (PhysicalParticularWave.ratioPower Q Qr 1 * t.1, |
| 276 | PhysicalParticularWave.ratioPower Q Qr (CoordinateAlgebra.D h) * t.2) = _ |
| 277 | simpa only [ratioPower_eq_div_rpow hQ hQr, Real.rpow_one] using he |
| 278 | |
| 279 | theorem slowChange_length {h Q Qr : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) |
| 280 | (hQ : 0 < Q) (hQr : 0 < Qr) {t : LocalSignedRequest.Plane} (ht : 0 < t.1) : |
| 281 | Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) (slowChange h Q Qr t)) = |
| 282 | PhysicalParticularWave.ratioPower Q Qr (1 / 2) * |
| 283 | Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) t) := by |
| 284 | rw [slowChange_coordinateQ hh hh1 hQ hQr ht, Real.sqrt_mul (div_pos hQ hQr).le, |
| 285 | Real.sqrt_eq_rpow, ratioPower_eq_div_rpow hQ hQr] |
| 286 | |
| 287 | /-- The strip and input coordinates are moved together. Its epsilon is |
| 288 | definitionally the epsilon of the same full-angle wave strip. -/ |
| 289 | noncomputable def stateStrip (s : StripData Cylinder) : StripData Point := |
| 290 | SignedWaveUpdate.sectionStrip (ParticularWaveBounds.reindexStrip PhysicalResidualTZ.swapCylinder s) |
| 291 | |
| 292 | noncomputable def stateRequest (s : StripData Cylinder) (P : SignedStressPrimitive.Patch) |
| 293 | (h : ℝ) (c : CorrectionState.Context Point) (u : CorrectionState.State Point) : |
| 294 | ℕ → Cylinder → Vec2 := |
| 295 | fun n x => LocalSignedRequest.fullRequest (stateStrip s) P (2 * h) c u n |
| 296 | (PhysicalResidualTZ.swapCylinder x) |
| 297 | |
| 298 | theorem stateRequest_invariant (s : StripData Cylinder) (P : SignedStressPrimitive.Patch) |
| 299 | (h : ℝ) (c : CorrectionState.Context Point) (u : CorrectionState.State Point) (n : ℕ) : |
| 300 | CopyAngularInvariance.Invariant (0, 1) (stateRequest s P h c u n) := by |
| 301 | intro x t |
| 302 | simp [stateRequest, LocalSignedRequest.fullRequest, PhysicalResidualTZ.swapCylinder_apply] |
| 303 | |
| 304 | /-- Naturality of the actual request is a consequence of primitive |
| 305 | current-state and background coherence on an open free-lift neighborhood |
| 306 | containing the whole integration fiber. No residual or quotient |
| 307 | compatibility is a hypothesis. -/ |
| 308 | theorem fullRequest_of_state (s sr : StripData Point) (P : SignedStressPrimitive.Patch) |
| 309 | {h Q Qr : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (hQ : 0 < Q) (hQr : 0 < Qr) |
| 310 | (c cr : CorrectionState.Context Point) (u ur : CorrectionState.State Point) |
| 311 | (n nr gap : ℕ) {W : Set Point} (hW : IsOpen W) |
| 312 | (H : PhysicalResidualNaturality.StateOn W (requestChart h hQ hQr gap) |
| 313 | (PhysicalParticularWave.velocityWeight h Q Qr) |
| 314 | (PhysicalParticularWave.ratioPower Q Qr (1 / 2)) u ur n nr) |
| 315 | (G : PhysicalResidualNaturality.ContextOn W (requestChart h hQ hQr gap) |
| 316 | (PhysicalParticularWave.velocityWeight h Q Qr) |
| 317 | (PhysicalParticularWave.ratioPower Q Qr (1 / 2)) c cr n nr) |
| 318 | (t : LocalSignedRequest.Plane) (ht : 0 < t.1) |
| 319 | (hfiber : ∀ r Y, (r, (t, Y)) ∈ W) |
| 320 | {V : Set LocalSignedRequest.Plane} (hV : IsOpen V) (htV : slowChange h Q Qr t ∈ V) |
| 321 | (hθ : ContDiffOn ℝ ∞ (ur.thetaResidual cr nr) (PhysicalMeanDomain.slowDomain V)) |
| 322 | (hz : ContDiffOn ℝ ∞ (ur.axialResidual cr nr) (PhysicalMeanDomain.slowDomain V)) |
| 323 | (hpθ : PhysicalMeanDomain.PeriodicOn V (ur.thetaResidual cr nr)) |
| 324 | (hpz : PhysicalMeanDomain.PeriodicOn V (ur.axialResidual cr nr)) |
| 325 | (r : ℝ) (Y : LocalSignedRequest.Plane) (angle : ℝ) : |
| 326 | LocalSignedRequest.fullRequest s P (2 * h) c u n ((r, (t, Y)), angle) = |
| 327 | coefficientScale (s.epsilon n) (sr.epsilon nr) |
| 328 | (PhysicalParticularWave.velocityWeight h Q Qr) ^ 2 • |
| 329 | LocalSignedRequest.fullRequest sr P (2 * h) cr ur nr |
| 330 | (requestChart h hQ hQr gap (r, (t, Y)), angle) := by |
| 331 | have hl := PhysicalParticularWave.ratioPower_pos hQ hQr (1 / 2) |
| 332 | have hθeq (r : ℝ) (Y : LocalSignedRequest.Plane) := H.thetaResidual G hW hl.ne' (r, (t, Y)) (hfiber r Y) |
| 333 | have hzeq (r : ℝ) (Y : LocalSignedRequest.Plane) := H.axialResidual G hW hl.ne' (r, (t, Y)) (hfiber r Y) |
| 334 | simp only [requestChart_apply, PhysicalResidualNaturality.weight_source hQ hQr] at hθeq hzeq |
| 335 | have he := fullRequest_chart s sr P (2 * h) (2 * h) c cr u ur n nr hl |
| 336 | (slowChange h Q Qr) gap (PhysicalParticularWave.sourceWeight h Q Qr) t |
| 337 | (SimilarityCoordinates.coordinateQ_spec (by linarith) (by linarith) ht).1 hV htV hθ hz hpθ hpz |
| 338 | (slowChange_length hh hh1 hQ hQr ht) hθeq hzeq r Y angle |
| 339 | rw [physical_request_factor hQ hQr (s.epsilon_pos n) (sr.epsilon_pos nr).le] at he |
| 340 | simpa only [requestChart_apply] using he |
| 341 | |
| 342 | theorem stateRequest_of_state (s sr : StripData Cylinder) (P : SignedStressPrimitive.Patch) |
| 343 | {h Q Qr : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) (hQ : 0 < Q) (hQr : 0 < Qr) |
| 344 | (c cr : CorrectionState.Context Point) (u ur : CorrectionState.State Point) |
| 345 | (n nr gap : ℕ) {W : Set Point} (hW : IsOpen W) |
| 346 | (H : PhysicalResidualNaturality.StateOn W (requestChart h hQ hQr gap) |
| 347 | (PhysicalParticularWave.velocityWeight h Q Qr) |
| 348 | (PhysicalParticularWave.ratioPower Q Qr (1 / 2)) u ur n nr) |
| 349 | (G : PhysicalResidualNaturality.ContextOn W (requestChart h hQ hQr gap) |
| 350 | (PhysicalParticularWave.velocityWeight h Q Qr) |
| 351 | (PhysicalParticularWave.ratioPower Q Qr (1 / 2)) c cr n nr) |
| 352 | (x : Cylinder) (ht : 0 < x.1.2.1.2) |
| 353 | (hfiber : ∀ r Y, (r, ((x.1.2.1.2, x.1.2.1.1), Y)) ∈ W) |
| 354 | {V : Set LocalSignedRequest.Plane} (hV : IsOpen V) |
| 355 | (htV : slowChange h Q Qr (x.1.2.1.2, x.1.2.1.1) ∈ V) |
| 356 | (hθ : ContDiffOn ℝ ∞ (ur.thetaResidual cr nr) (PhysicalMeanDomain.slowDomain V)) |
| 357 | (hz : ContDiffOn ℝ ∞ (ur.axialResidual cr nr) (PhysicalMeanDomain.slowDomain V)) |
| 358 | (hpθ : PhysicalMeanDomain.PeriodicOn V (ur.thetaResidual cr nr)) |
| 359 | (hpz : PhysicalMeanDomain.PeriodicOn V (ur.axialResidual cr nr)) : |
| 360 | stateRequest s P h c u n x = |
| 361 | coefficientScale (s.epsilon n) (sr.epsilon nr) |
| 362 | (PhysicalParticularWave.velocityWeight h Q Qr) ^ 2 • |
| 363 | stateRequest sr P h cr ur nr (PhysicalParticularWave.cylinderChange h Q Qr gap x) := by |
| 364 | have he := fullRequest_of_state (stateStrip s) (stateStrip sr) P hh hh1 hQ hQr c cr u ur n nr gap |
| 365 | hW H G (x.1.2.1.2, x.1.2.1.1) ht hfiber hV htV hθ hz hpθ hpz x.1.1 x.1.2.2 x.2 |
| 366 | exact he |
| 367 | |
| 368 | section CoefficientTransport |
| 369 | |
| 370 | variable {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 371 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 372 | |
| 373 | /-- Exact pointwise transport of the literal signed quotient coefficient |
| 374 | from primitive matrix, targets, mask and primary fundamental identities. -/ |
| 375 | theorem signedVector_transport (s : StripData D) (sr : StripData E) |
| 376 | (H : ℕ → D → Mat2) (Hr : ℕ → E → Mat2) |
| 377 | (T R : ℕ → D → Vec2) (Tr Rr : ℕ → E → Vec2) |
| 378 | (mask : ℕ → D → ℝ) (maskr : ℕ → E → ℝ) |
| 379 | (v : ℕ → D → Space) (vr : ℕ → E → Space) |
| 380 | (n nr : ℕ) (x : D) (xr : E) {c : ℝ} (hc : 0 < c) |
| 381 | (hH : H n x = Hr nr xr) |
| 382 | (hT : T n x = coefficientScale (s.epsilon n) (sr.epsilon nr) c ^ 2 • Tr nr xr) |
| 383 | (hR : R n x = coefficientScale (s.epsilon n) (sr.epsilon nr) c ^ 2 • Rr nr xr) |
| 384 | (hm : mask n x = maskr nr xr) (hv : v n x = vr nr xr) (j : Fin 2) : |
| 385 | SignedWaveUpdate.signedVector s H T R mask v j n x = |
| 386 | c • SignedWaveUpdate.signedVector sr Hr Tr Rr maskr vr j nr xr := by |
| 387 | simp only [SignedWaveUpdate.signedVector, SignedWaveUpdate.signedScalar, |
| 388 | hH, hT, hR, hm, hv] |
| 389 | rw [signed_scalar_scale (Hr nr xr) (Tr nr xr) (Rr nr xr) (maskr nr xr) |
| 390 | (s.epsilon_pos n) (sr.epsilon_pos nr) hc j] |
| 391 | rw [smul_smul] |
| 392 | |
| 393 | theorem homogeneousPressure_scale (K Kr rate c normalScale : ℝ) |
| 394 | (hK : K ≠ 0) (hKr : Kr ≠ 0) (hs : normalScale ≠ 0) |
| 395 | (N Ndot v Av : Space) : |
| 396 | Complex.I * (TangentProjection.pressureCoefficient (normalScale • N) |
| 397 | ((normalScale * rate) • Ndot) (c • v) ((rate * c) • Av) 0 : ℂ) / (K : ℂ) = |
| 398 | ((rate * c / normalScale) * (Kr / K)) • |
| 399 | (Complex.I * (TangentProjection.pressureCoefficient N Ndot v Av 0 : ℂ) / (Kr : ℂ)) := by |
| 400 | have hk : (K : ℂ) ≠ 0 := by exact_mod_cast hK |
| 401 | have hkr : (Kr : ℂ) ≠ 0 := by exact_mod_cast hKr |
| 402 | have hns : (normalScale : ℂ) ≠ 0 := by exact_mod_cast hs |
| 403 | rw [show (0 : Space) = (rate * c) • (0 : Space) by simp, |
| 404 | NormalScaling.pressureCoefficient_rescale N Ndot v Av 0 rate c hs] |
| 405 | simp only [smul_zero, Complex.ofReal_mul, Complex.ofReal_div, Complex.real_smul] |
| 406 | field_simp |
| 407 | |
| 408 | end CoefficientTransport |
| 409 | |
| 410 | /-! ## One actual primary pulse family, reused in every view -/ |
| 411 | |
| 412 | /-- Only primary construction data and background fields are stored. |
| 413 | The pulse, covariance matrix, square roots and signed quotients are all |
| 414 | computed by the existing constructors. -/ |
| 415 | structure PrimaryData (U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow) where |
| 416 | strip : StripData Cylinder |
| 417 | base : LinearWaveBounds.WaveCoefficients Cylinder |
| 418 | directions : LinearWaveBounds.GraphDirections Cylinder |
| 419 | pulse : Fin 2 → PrimaryPulseBounds.PhaseConstruction U |
| 420 | prefactor : Fin 2 → ℕ → ℝ |
| 421 | coordinate : ℕ → Cylinder → PhaseCalculus.Slow × ℝ |
| 422 | target : ℕ → Cylinder → Vec2 |
| 423 | mask : ℕ → Cylinder → ℝ |
| 424 | normalMotion : ℕ → Cylinder → Space |
| 425 | action : ℕ → Cylinder → Space →L[ℝ] Space |
| 426 | |
| 427 | namespace PrimaryData |
| 428 | |
| 429 | variable {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} (B : PrimaryData U) |
| 430 | |
| 431 | noncomputable def matrix : ℕ → Cylinder → Mat2 := |
| 432 | SignedWaveUpdate.phaseMatrix B.pulse B.prefactor B.coordinate |
| 433 | |
| 434 | noncomputable def fundamental (j : Fin 2) : ℕ → Cylinder → Space := |
| 435 | SignedWaveUpdate.phaseFundamental B.pulse B.coordinate j |
| 436 | |
| 437 | /-- The single Gaussian slot cutoff of this primary pulse. -/ |
| 438 | noncomputable def cutoff (n : ℕ) (x : Cylinder) : ℝ := |
| 439 | GaussianTailFlat.profile (B.coordinate n x).2 |
| 440 | |
| 441 | noncomputable def coefficients (request : ℕ → Cylinder → Vec2) (j : Fin 2) : |
| 442 | LinearWaveBounds.WaveCoefficients Cylinder := |
| 443 | SignedWaveUpdate.coefficients B.base B.strip B.directions B.matrix B.target request B.mask |
| 444 | (B.fundamental j) B.normalMotion B.action j |
| 445 | |
| 446 | /-- The same reference carrier is pulled back before multiplication by |
| 447 | the target band's frequency. All other background fields remain inputs. -/ |
| 448 | noncomputable def viewBase (background : LinearWaveBounds.WaveCoefficients Cylinder) |
| 449 | (frequency : ℕ → ℝ) (view : ℕ → Cylinder → Cylinder) (reference : ℕ) : |
| 450 | LinearWaveBounds.WaveCoefficients Cylinder := |
| 451 | { background with |
| 452 | frequency := frequency |
| 453 | phase := fun n x => (B.base.frequency reference / frequency n) * |
| 454 | B.base.phase reference (view n x) } |
| 455 | |
| 456 | noncomputable def viewTarget (s : StripData Cylinder) (velocity : ℕ → ℝ) |
| 457 | (view : ℕ → Cylinder → Cylinder) (reference : ℕ) : ℕ → Cylinder → Vec2 := |
| 458 | fun n x => coefficientScale (s.epsilon n) (B.strip.epsilon reference) (velocity n) ^ 2 • |
| 459 | B.target reference (view n x) |
| 460 | |
| 461 | noncomputable def viewCutoff (view : ℕ → Cylinder → Cylinder) (reference : ℕ) : |
| 462 | ℕ → Cylinder → ℝ := fun n x => B.cutoff reference (view n x) |
| 463 | |
| 464 | /-- Each view calls the actual signed quotient constructor, with the same |
| 465 | reference pulse and matrix. Its request may be the literal current-state |
| 466 | request and is not replaced by an independently chosen signed wave. -/ |
| 467 | noncomputable def viewCoefficients (s : StripData Cylinder) |
| 468 | (d : LinearWaveBounds.GraphDirections Cylinder) |
| 469 | (background : LinearWaveBounds.WaveCoefficients Cylinder) |
| 470 | (frequency velocity clock normal : ℕ → ℝ) (view : ℕ → Cylinder → Cylinder) |
| 471 | (reference : ℕ) (request : ℕ → Cylinder → Vec2) (j : Fin 2) : |
| 472 | LinearWaveBounds.WaveCoefficients Cylinder := |
| 473 | SignedWaveUpdate.coefficients (B.viewBase background frequency view reference) s d |
| 474 | (fun n x => B.matrix reference (view n x)) (B.viewTarget s velocity view reference) request |
| 475 | (fun n x => B.mask reference (view n x)) |
| 476 | (fun n x => B.fundamental j reference (view n x)) |
| 477 | (fun n x => (normal n * clock n) • B.normalMotion reference (view n x)) |
| 478 | (fun n x => clock n • B.action reference (view n x)) j |
| 479 | |
| 480 | theorem view_carrier (background : LinearWaveBounds.WaveCoefficients Cylinder) |
| 481 | (frequency : ℕ → ℝ) (view : ℕ → Cylinder → Cylinder) (reference n : ℕ) |
| 482 | (hf : frequency n ≠ 0) (x : Cylinder) : |
| 483 | (B.viewBase background frequency view reference).frequency n * |
| 484 | (B.viewBase background frequency view reference).phase n x = |
| 485 | B.base.frequency reference * B.base.phase reference (view n x) := by |
| 486 | simp only [viewBase] |
| 487 | field_simp |
| 488 | |
| 489 | theorem view_signedVector (s : StripData Cylinder) (velocity : ℕ → ℝ) |
| 490 | (view : ℕ → Cylinder → Cylinder) (reference n : ℕ) |
| 491 | (request referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) (x : Cylinder) |
| 492 | (hc : 0 < velocity n) |
| 493 | (hrequest : request n x = coefficientScale (s.epsilon n) (B.strip.epsilon reference) |
| 494 | (velocity n) ^ 2 • referenceRequest reference (view n x)) : |
| 495 | SignedWaveUpdate.signedVector s (fun n x => B.matrix reference (view n x)) |
| 496 | (B.viewTarget s velocity view reference) request (fun n x => B.mask reference (view n x)) |
| 497 | (fun n x => B.fundamental j reference (view n x)) j n x = |
| 498 | velocity n • SignedWaveUpdate.signedVector B.strip B.matrix B.target referenceRequest |
| 499 | B.mask (B.fundamental j) j reference (view n x) := |
| 500 | signedVector_transport s B.strip _ _ _ _ _ _ _ _ _ _ n reference x (view n x) hc |
| 501 | rfl rfl hrequest rfl rfl j |
| 502 | |
| 503 | theorem view_amplitude (s : StripData Cylinder) (d : LinearWaveBounds.GraphDirections Cylinder) |
| 504 | (background : LinearWaveBounds.WaveCoefficients Cylinder) |
| 505 | (frequency velocity clock normal : ℕ → ℝ) (view : ℕ → Cylinder → Cylinder) |
| 506 | (reference n : ℕ) (request referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) |
| 507 | (x : Cylinder) (hc : 0 < velocity n) |
| 508 | (hrequest : request n x = coefficientScale (s.epsilon n) (B.strip.epsilon reference) |
| 509 | (velocity n) ^ 2 • referenceRequest reference (view n x)) : |
| 510 | (B.viewCoefficients s d background frequency velocity clock normal view reference request j).amplitude n x = |
| 511 | velocity n • (B.coefficients referenceRequest j).amplitude reference (view n x) := by |
| 512 | change CurlClassBounds.complexify _ = velocity n • CurlClassBounds.complexify _ |
| 513 | rw [B.view_signedVector s velocity view reference n request referenceRequest j x hc hrequest, |
| 514 | map_smul] |
| 515 | |
| 516 | theorem view_cutoff_amplitude (s : StripData Cylinder) (d : LinearWaveBounds.GraphDirections Cylinder) |
| 517 | (background : LinearWaveBounds.WaveCoefficients Cylinder) |
| 518 | (frequency velocity clock normal : ℕ → ℝ) (view : ℕ → Cylinder → Cylinder) |
| 519 | (reference n : ℕ) (request referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) |
| 520 | (x : Cylinder) (hc : 0 < velocity n) |
| 521 | (hrequest : request n x = coefficientScale (s.epsilon n) (B.strip.epsilon reference) |
| 522 | (velocity n) ^ 2 • referenceRequest reference (view n x)) : |
| 523 | ((B.viewCoefficients s d background frequency velocity clock normal view reference request j).withCutoff |
| 524 | (B.viewCutoff view reference)).amplitude n x = |
| 525 | velocity n • ((B.coefficients referenceRequest j).withCutoff B.cutoff).amplitude |
| 526 | reference (view n x) := by |
| 527 | simp only [LinearWaveBounds.WaveCoefficients.withCutoff, viewCutoff] |
| 528 | rw [B.view_amplitude s d background frequency velocity clock normal view reference n |
| 529 | request referenceRequest j x hc hrequest] |
| 530 | exact smul_comm _ _ _ |
| 531 | |
| 532 | theorem view_pressure (s : StripData Cylinder) (d : LinearWaveBounds.GraphDirections Cylinder) |
| 533 | (background : LinearWaveBounds.WaveCoefficients Cylinder) |
| 534 | (frequency velocity clock normal : ℕ → ℝ) (view : ℕ → Cylinder → Cylinder) |
| 535 | (reference n : ℕ) (request referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) |
| 536 | (x : Cylinder) (hc : 0 < velocity n) (hK : frequency n ≠ 0) |
| 537 | (hKr : B.base.frequency reference ≠ 0) (hs : normal n ≠ 0) |
| 538 | (hrequest : request n x = coefficientScale (s.epsilon n) (B.strip.epsilon reference) |
| 539 | (velocity n) ^ 2 • referenceRequest reference (view n x)) |
| 540 | (hN : (B.viewBase background frequency view reference).normal s d n x = |
| 541 | normal n • B.base.normal B.strip B.directions reference (view n x)) : |
| 542 | (B.viewCoefficients s d background frequency velocity clock normal view reference request j).pressure n x = |
| 543 | ((clock n * velocity n / normal n) * (B.base.frequency reference / frequency n)) • |
| 544 | (B.coefficients referenceRequest j).pressure reference (view n x) := by |
| 545 | have hv := B.view_signedVector s velocity view reference n request referenceRequest j x hc hrequest |
| 546 | change Complex.I * (TangentProjection.pressureCoefficient |
| 547 | ((B.viewBase background frequency view reference).normal s d n x) |
| 548 | ((normal n * clock n) • B.normalMotion reference (view n x)) |
| 549 | _ ((clock n • B.action reference (view n x)) _) 0 : ℂ) / (frequency n : ℂ) = _ |
| 550 | rw [hN, hv] |
| 551 | simp only [_root_.smul_apply, map_smul, smul_smul] |
| 552 | rw [mul_comm (velocity n) (clock n)] |
| 553 | exact homogeneousPressure_scale (frequency n) (B.base.frequency reference) (clock n) |
| 554 | (velocity n) (normal n) hK hKr hs _ _ _ _ |
| 555 | |
| 556 | theorem view_cutoff_pressure (s : StripData Cylinder) (d : LinearWaveBounds.GraphDirections Cylinder) |
| 557 | (background : LinearWaveBounds.WaveCoefficients Cylinder) |
| 558 | (frequency velocity clock normal : ℕ → ℝ) (view : ℕ → Cylinder → Cylinder) |
| 559 | (reference n : ℕ) (request referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) |
| 560 | (x : Cylinder) (hc : 0 < velocity n) (hK : frequency n ≠ 0) |
| 561 | (hKr : B.base.frequency reference ≠ 0) (hs : normal n ≠ 0) |
| 562 | (hrequest : request n x = coefficientScale (s.epsilon n) (B.strip.epsilon reference) |
| 563 | (velocity n) ^ 2 • referenceRequest reference (view n x)) |
| 564 | (hN : (B.viewBase background frequency view reference).normal s d n x = |
| 565 | normal n • B.base.normal B.strip B.directions reference (view n x)) : |
| 566 | ((B.viewCoefficients s d background frequency velocity clock normal view reference request j).withCutoff |
| 567 | (B.viewCutoff view reference)).pressure n x = |
| 568 | ((clock n * velocity n / normal n) * (B.base.frequency reference / frequency n)) • |
| 569 | ((B.coefficients referenceRequest j).withCutoff B.cutoff).pressure reference (view n x) := by |
| 570 | simp only [LinearWaveBounds.WaveCoefficients.withCutoff, viewCutoff] |
| 571 | rw [B.view_pressure s d background frequency velocity clock normal view reference n |
| 572 | request referenceRequest j x hc hK hKr hs hrequest hN] |
| 573 | simp only [Complex.real_smul] |
| 574 | ring |
| 575 | |
| 576 | /-- Regularity on one reference native cell. Every entry concerns the |
| 577 | original coordinate, target, current request, mask or phase/frame input; |
| 578 | there is no regularity assumption on a solved wave. -/ |
| 579 | structure Regular (request : ℕ → Cylinder → Vec2) (reference : ℕ) (column : Fin 2) : Prop where |
| 580 | coordinate : ContDiffOn ℝ ∞ (B.coordinate reference) B.strip.domain |
| 581 | coordinate_mem : ∀ x ∈ B.strip.domain, |
| 582 | B.coordinate reference x ∈ U.carrier reference ×ˢ Ioo (0 : ℝ) 1 |
| 583 | prefactor : ∀ j, PhaseJetBounds.PolynomialJets U (fun n _ => B.prefactor j n) |
| 584 | target : ∀ j, ContDiffOn ℝ ∞ (fun x => B.target reference x j) B.strip.domain |
| 585 | request : ∀ j, ContDiffOn ℝ ∞ (fun x => request reference x j) B.strip.domain |
| 586 | mask : ContDiffOn ℝ ∞ (B.mask reference) B.strip.domain |
| 587 | cone : ∀ x ∈ B.strip.domain, |
| 588 | SmoothCovariance.StrictCone (B.matrix reference x) (B.target reference x) |
| 589 | phase : ContDiffOn ℝ ∞ (B.base.phase reference) B.strip.domain |
| 590 | normal_ne : ∀ x ∈ B.strip.domain, B.base.normal B.strip B.directions reference x ≠ 0 |
| 591 | normal_frame : ∀ x, x ∈ B.strip.domain → |
| 592 | B.base.normal B.strip B.directions reference x = |
| 593 | ((B.pulse column).frame reference).normal ((B.coordinate reference x).1, |
| 594 | (B.pulse column).L reference * (B.coordinate reference x).2) |
| 595 | |
| 596 | namespace Regular |
| 597 | |
| 598 | variable {B} {request : ℕ → Cylinder → Vec2} {reference : ℕ} {column : Fin 2} |
| 599 | (H : B.Regular request reference column) |
| 600 | |
| 601 | include H |
| 602 | |
| 603 | theorem matrix_smooth (i j : Fin 2) : |
| 604 | ContDiffOn ℝ ∞ (fun x => B.matrix reference x i j) B.strip.domain := by |
| 605 | have hm := PrimaryPulseBounds.primaryCovariance_entry_polynomial U B.prefactor |
| 606 | (fun j => (B.pulse j).frame) (fun j => (B.pulse j).lam) (fun j => (B.pulse j).u) |
| 607 | (fun j => (B.pulse j).L) H.prefactor (fun j => (B.pulse j).pulse_jets) |
| 608 | (fun j => (B.pulse j).lam_pos) (fun j => (B.pulse j).u_pos) (fun j => (B.pulse j).L_pos) i j |
| 609 | exact (hm.smooth reference).comp H.coordinate.fst (fun x hx => (H.coordinate_mem x hx).1) |
| 610 | |
| 611 | theorem fundamental_smooth (j : Fin 2) : |
| 612 | ContDiffOn ℝ ∞ (B.fundamental j reference) B.strip.domain := |
| 613 | ((B.pulse j).pulse_jets.smooth reference).comp H.coordinate H.coordinate_mem |
| 614 | |
| 615 | theorem cutoff_smooth : ContDiffOn ℝ ∞ (B.cutoff reference) B.strip.domain := |
| 616 | GaussianTailFlat.profile_contDiff.comp_contDiffOn H.coordinate.snd |
| 617 | |
| 618 | theorem signedScalar_smooth (j : Fin 2) : |
| 619 | ContDiffOn ℝ ∞ (SignedWaveUpdate.signedScalar B.strip B.matrix B.target request B.mask j reference) |
| 620 | B.strip.domain := by |
| 621 | have hi := SmoothCovariance.contDiffOn_inverse_solution H.matrix_smooth H.request |
| 622 | (fun x hx => (H.cone x hx).det_ne_zero) j |
| 623 | have ha := SmoothCovariance.contDiffOn_amplitudes H.matrix_smooth H.target H.cone j |
| 624 | have hd : ∀ x ∈ B.strip.domain, 2 * SmoothCovariance.amplitudes |
| 625 | (B.matrix reference x) (B.target reference x) j ≠ 0 := by |
| 626 | intro x hx |
| 627 | exact mul_ne_zero (by norm_num) ((H.cone x hx).amplitudes_pos j).ne' |
| 628 | exact (contDiffOn_const.mul (hi.div (contDiffOn_const.mul ha) hd)).mul H.mask |
| 629 | |
| 630 | theorem amplitude_smooth (j : Fin 2) : |
| 631 | ContDiffOn ℝ ∞ ((B.coefficients request j).amplitude reference) B.strip.domain := |
| 632 | CurlClassBounds.complexify.contDiff.comp_contDiffOn |
| 633 | ((H.signedScalar_smooth j).smul (H.fundamental_smooth j)) |
| 634 | |
| 635 | theorem cutoff_amplitude_smooth (j : Fin 2) : |
| 636 | ContDiffOn ℝ ∞ (((B.coefficients request j).withCutoff B.cutoff).amplitude reference) B.strip.domain := |
| 637 | H.cutoff_smooth.smul (H.amplitude_smooth j) |
| 638 | |
| 639 | theorem fundamental_tangent {x : Cylinder} (hx : x ∈ B.strip.domain) : |
| 640 | ⟪B.base.normal B.strip B.directions reference x, B.fundamental column reference x⟫_ℝ = 0 := by |
| 641 | rw [H.normal_frame x hx] |
| 642 | exact ((B.pulse column).frame reference).ambient_tangent _ _ |
| 643 | |
| 644 | theorem amplitude_tangent {x : Cylinder} (hx : x ∈ B.strip.domain) : |
| 645 | normalDot (B.base.normal B.strip B.directions reference x) |
| 646 | ((B.coefficients request column).amplitude reference x) = 0 := by |
| 647 | change normalDot _ (CurlClassBounds.complexify (_ • B.fundamental column reference x)) = 0 |
| 648 | rw [SignedWaveUpdate.normalDot_complexify, inner_smul_right, H.fundamental_tangent hx, mul_zero] |
| 649 | rfl |
| 650 | |
| 651 | theorem cutoff_amplitude_tangent {x : Cylinder} (hx : x ∈ B.strip.domain) : |
| 652 | normalDot (B.base.normal B.strip B.directions reference x) |
| 653 | (((B.coefficients request column).withCutoff B.cutoff).amplitude reference x) = 0 := by |
| 654 | change normalDot _ (B.cutoff reference x • (B.coefficients request column).amplitude reference x) = 0 |
| 655 | have he : normalDot (B.base.normal B.strip B.directions reference x) |
| 656 | (B.cutoff reference x • (B.coefficients request column).amplitude reference x) = |
| 657 | (B.cutoff reference x : ℂ) * normalDot (B.base.normal B.strip B.directions reference x) |
| 658 | ((B.coefficients request column).amplitude reference x) := by |
| 659 | simp only [normalDot, Pi.smul_apply, Complex.real_smul] |
| 660 | ring |
| 661 | rw [he, H.amplitude_tangent hx, mul_zero] |
| 662 | |
| 663 | end Regular |
| 664 | |
| 665 | /-- Angular conditions concern the original phase, coordinate and scalar |
| 666 | inputs. In particular the signed coefficient's invariance is a theorem. -/ |
| 667 | structure Angular (request : ℕ → Cylinder → Vec2) (reference : ℕ) where |
| 668 | mode : ℤ |
| 669 | phase : CopyAngularInvariance.AffinePhase (0, 1) (mode / B.base.frequency reference) |
| 670 | (B.base.phase reference) |
| 671 | coordinate : CopyAngularInvariance.Invariant (0, 1) (B.coordinate reference) |
| 672 | target : CopyAngularInvariance.Invariant (0, 1) (B.target reference) |
| 673 | request : CopyAngularInvariance.Invariant (0, 1) (request reference) |
| 674 | mask : CopyAngularInvariance.Invariant (0, 1) (B.mask reference) |
| 675 | normalMotion : CopyAngularInvariance.Invariant (0, 1) (B.normalMotion reference) |
| 676 | action : CopyAngularInvariance.Invariant (0, 1) (B.action reference) |
| 677 | |
| 678 | noncomputable def raw (request : ℕ → Cylinder → Vec2) (j : Fin 2) (reference : ℕ) : |
| 679 | Cylinder → ComplexVector := ((B.coefficients request j).withCutoff B.cutoff).amplitude reference |
| 680 | |
| 681 | noncomputable def rawPressure (request : ℕ → Cylinder → Vec2) (j : Fin 2) (reference : ℕ) : |
| 682 | Cylinder → ℂ := ((B.coefficients request j).withCutoff B.cutoff).pressure reference |
| 683 | |
| 684 | theorem raw_invariant {request : ℕ → Cylinder → Vec2} {reference : ℕ} |
| 685 | (H : B.Angular request reference) (j : Fin 2) : |
| 686 | CopyAngularInvariance.Invariant (0, 1) (B.raw request j reference) := by |
| 687 | intro x t |
| 688 | simp only [raw, coefficients, SignedWaveUpdate.coefficients, SignedWaveUpdate.homogeneousCoefficients, |
| 689 | LinearWaveBounds.WaveCoefficients.withCutoff, cutoff, SignedWaveUpdate.signedVector, |
| 690 | SignedWaveUpdate.signedScalar, matrix, SignedWaveUpdate.phaseMatrix, PrimaryPulseBounds.chartCovariance, |
| 691 | fundamental, SignedWaveUpdate.phaseFundamental, |
| 692 | H.coordinate x t, H.target x t, H.request x t, H.mask x t] |
| 693 | |
| 694 | end PrimaryData |
| 695 | |
| 696 | /-- Literal background chart operators, before any wave is formed. -/ |
| 697 | structure ChartGeometry (a : LinearWaveBounds.WaveCoefficients Cylinder) |
| 698 | (s : StripData Cylinder) (d : LinearWaveBounds.GraphDirections Cylinder) |
| 699 | (n : ℕ) (h Q : ℝ) (cover : ℕ) : Prop where |
| 700 | radius : a.radius n = PhysicalResidualBridge.ScaledGraph.radius |
| 701 | radial : d.radialField n = (PhysicalResidualBridge.commonGraph Q h cover).radial |
| 702 | angular : (fun _ => d.angular) = PhysicalResidualBridge.ScaledGraph.angular |
| 703 | axial : d.axialField s n = (PhysicalResidualBridge.commonGraph Q h cover).axial |
| 704 | |
| 705 | theorem ChartGeometry.normal {a : LinearWaveBounds.WaveCoefficients Cylinder} |
| 706 | {s : StripData Cylinder} {d : LinearWaveBounds.GraphDirections Cylinder} |
| 707 | {n cover : ℕ} {h Q : ℝ} (G : ChartGeometry a s d n h Q cover) : |
| 708 | a.normal s d n = phaseNormal PhysicalResidualBridge.ScaledGraph.radius |
| 709 | (PhysicalResidualBridge.commonGraph Q h cover).radial PhysicalResidualBridge.ScaledGraph.angular |
| 710 | (PhysicalResidualBridge.commonGraph Q h cover).axial (a.phase n) := by |
| 711 | unfold LinearWaveBounds.WaveCoefficients.normal |
| 712 | rw [G.radius, G.radial, G.angular, G.axial] |
| 713 | |
| 714 | theorem ChartGeometry.corrected_wave {a : LinearWaveBounds.WaveCoefficients Cylinder} |
| 715 | {s : StripData Cylinder} {d : LinearWaveBounds.GraphDirections Cylinder} |
| 716 | {n cover : ℕ} {h Q : ℝ} (G : ChartGeometry a s d n h Q cover) |
| 717 | (cutoff : ℕ → Cylinder → ℝ) : |
| 718 | vectorMode (a.frequency n) (a.phase n) ((a.corrected s d cutoff).amplitude n) = |
| 719 | vectorMode (a.frequency n) (a.phase n) |
| 720 | (CurlClassBounds.realizedCoefficient (a.frequency n) PhysicalResidualBridge.ScaledGraph.radius |
| 721 | (PhysicalResidualBridge.commonGraph Q h cover).radial PhysicalResidualBridge.ScaledGraph.angular |
| 722 | (PhysicalResidualBridge.commonGraph Q h cover).axial (a.phase n) |
| 723 | ((a.withCutoff cutoff).amplitude n)) := by |
| 724 | change vectorMode (a.frequency n) (a.phase n) |
| 725 | (CurlClassBounds.realizedCoefficient (a.frequency n) (a.radius n) (d.radialField n) |
| 726 | (fun _ => d.angular) (d.axialField s n) (a.phase n) ((a.withCutoff cutoff).amplitude n)) = _ |
| 727 | rw [G.radius, G.radial, G.angular, G.axial] |
| 728 | |
| 729 | theorem ChartGeometry.normal_invariant {a : LinearWaveBounds.WaveCoefficients Cylinder} |
| 730 | {s : StripData Cylinder} {d : LinearWaveBounds.GraphDirections Cylinder} |
| 731 | {n cover : ℕ} {h Q slope : ℝ} (G : ChartGeometry a s d n h Q cover) |
| 732 | (hphi : CopyAngularInvariance.AffinePhase (0, 1) slope (a.phase n)) : |
| 733 | CopyAngularInvariance.Invariant (0, 1) (a.normal s d n) := by |
| 734 | rw [G.normal] |
| 735 | apply CopyAngularInvariance.phaseNormal_invariant (hΦ := hphi) |
| 736 | · intro x t |
| 737 | simp [PhysicalResidualBridge.ScaledGraph.radius] |
| 738 | · intro x t |
| 739 | simp [PhysicalResidualBridge.ScaledGraph.radial] |
| 740 | · exact CopyAngularInvariance.Invariant.const _ |
| 741 | · exact CopyAngularInvariance.Invariant.const _ |
| 742 | |
| 743 | namespace PrimaryData |
| 744 | |
| 745 | variable {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} (B : PrimaryData U) (reference : ℕ) |
| 746 | |
| 747 | theorem rawPressure_invariant {request : ℕ → Cylinder → Vec2} |
| 748 | (H : B.Angular request reference) {h Q : ℝ} {cover : ℕ} |
| 749 | (G : ChartGeometry B.base B.strip B.directions reference h Q cover) (j : Fin 2) : |
| 750 | CopyAngularInvariance.Invariant (0, 1) (B.rawPressure request j reference) := by |
| 751 | have hn := G.normal_invariant H.phase |
| 752 | intro x t |
| 753 | simp only [rawPressure, coefficients, SignedWaveUpdate.coefficients, |
| 754 | SignedWaveUpdate.homogeneousCoefficients, LinearWaveBounds.WaveCoefficients.withCutoff, |
| 755 | cutoff, ParticularWaveBounds.projectedPressure, SignedWaveUpdate.signedVector, |
| 756 | SignedWaveUpdate.signedScalar, matrix, SignedWaveUpdate.phaseMatrix, |
| 757 | PrimaryPulseBounds.chartCovariance, fundamental, SignedWaveUpdate.phaseFundamental, |
| 758 | H.coordinate x t, H.target x t, H.request x t, H.mask x t, H.normalMotion x t, |
| 759 | H.action x t, hn x t] |
| 760 | |
| 761 | /-- One physical reference scale and cover for this primary column. Band |
| 762 | backgrounds are primitive data; frequency, phase, target, pulse, cutoff, |
| 763 | normal motion and action of each view are constructed below. -/ |
| 764 | structure Views (B : PrimaryData U) (reference : ℕ) where |
| 765 | exponent : ℝ |
| 766 | referenceScale : ℝ |
| 767 | referenceScale_pos : 0 < referenceScale |
| 768 | referenceCover : ℕ |
| 769 | scale : ℕ → ℝ |
| 770 | scale_pos : ∀ n, 0 < scale n |
| 771 | cover : ℕ → ℕ |
| 772 | cover_le : ∀ n, cover n ≤ referenceCover |
| 773 | frequency : ℕ → ℝ |
| 774 | frequency_ne : ∀ n, frequency n ≠ 0 |
| 775 | strip : StripData Cylinder |
| 776 | directions : LinearWaveBounds.GraphDirections Cylinder |
| 777 | background : LinearWaveBounds.WaveCoefficients Cylinder |
| 778 | |
| 779 | namespace Views |
| 780 | |
| 781 | variable {B reference} (V : B.Views reference) |
| 782 | |
| 783 | noncomputable def map (n : ℕ) : Cylinder →L[ℝ] Cylinder := |
| 784 | PhysicalParticularWave.cylinderChange V.exponent (V.scale n) V.referenceScale |
| 785 | (V.referenceCover - V.cover n) |
| 786 | |
| 787 | noncomputable def velocity (n : ℕ) : ℝ := |
| 788 | PhysicalParticularWave.velocityWeight V.exponent (V.scale n) V.referenceScale |
| 789 | |
| 790 | noncomputable def clock (n : ℕ) : ℝ := |
| 791 | PhysicalParticularWave.clockWeight V.exponent (V.scale n) V.referenceScale |
| 792 | |
| 793 | noncomputable def normal (n : ℕ) : ℝ := |
| 794 | PhysicalParticularWave.normalWeight (V.scale n) V.referenceScale (V.frequency n) (B.base.frequency reference) |
| 795 | |
| 796 | noncomputable def coefficients (request : ℕ → Cylinder → Vec2) (j : Fin 2) : |
| 797 | LinearWaveBounds.WaveCoefficients Cylinder := |
| 798 | B.viewCoefficients V.strip V.directions V.background V.frequency V.velocity V.clock V.normal |
| 799 | (fun n => V.map n) reference request j |
| 800 | |
| 801 | noncomputable def cutoff : ℕ → Cylinder → ℝ := B.viewCutoff (fun n => V.map n) reference |
| 802 | |
| 803 | noncomputable def exactCoefficients (request : ℕ → Cylinder → Vec2) (j : Fin 2) : |
| 804 | LinearWaveBounds.WaveCoefficients Cylinder := |
| 805 | (V.coefficients request j).corrected V.strip V.directions V.cutoff |
| 806 | |
| 807 | theorem map_graph (n : ℕ) {z : SpaceTime} (hz : 0 < z.2 0) : |
| 808 | V.map n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) = |
| 809 | (PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z := by |
| 810 | have he := PhysicalParticularWave.cylinderChange_graph (V.scale_pos n) V.referenceScale_pos |
| 811 | V.exponent (V.cover n) (V.referenceCover - V.cover n) hz |
| 812 | simp only [Nat.add_sub_of_le (V.cover_le n)] at he |
| 813 | exact he |
| 814 | |
| 815 | theorem map_fastTranslate (n : ℕ) (x : Cylinder) (k : TorusInverse.Frequency) : |
| 816 | V.map n (fastTranslate x k) = |
| 817 | fastTranslate (V.map n x) (CommonCoverSolve.coverIndex (V.referenceCover - V.cover n) k) := by |
| 818 | simp only [map, fastTranslate, PhysicalParticularWave.cylinderChange_apply, |
| 819 | PhysicalParticularWave.chartChange_apply, map_add, CommonCoverSolve.coverPower_lattice] |
| 820 | |
| 821 | theorem phase_periodic (request : ℕ → Cylinder → Vec2) (j : Fin 2) |
| 822 | (hp : ∀ x k, B.base.phase reference (fastTranslate x k) = B.base.phase reference x) |
| 823 | (n : ℕ) (x : Cylinder) (k : TorusInverse.Frequency) : |
| 824 | (V.coefficients request j).phase n (fastTranslate x k) = (V.coefficients request j).phase n x := by |
| 825 | change (B.base.frequency reference / V.frequency n) * B.base.phase reference (V.map n (fastTranslate x k)) = |
| 826 | (B.base.frequency reference / V.frequency n) * B.base.phase reference (V.map n x) |
| 827 | rw [V.map_fastTranslate, hp] |
| 828 | |
| 829 | theorem normal_transport |
| 830 | (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) |
| 831 | (n : ℕ) |
| 832 | (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) |
| 833 | V.strip V.directions n V.exponent (V.scale n) (V.cover n)) |
| 834 | {x : Cylinder} (hx : 0 < x.1.1) |
| 835 | (hΦ : DifferentiableAt ℝ (B.base.phase reference) (V.map n x)) : |
| 836 | (B.viewBase V.background V.frequency (fun n => V.map n) reference).normal V.strip V.directions n x = |
| 837 | V.normal n • B.base.normal B.strip B.directions reference (V.map n x) := by |
| 838 | rw [G.normal, H.normal] |
| 839 | have he := PhysicalParticularWave.phaseNormal_chartChange (V.scale_pos n) V.referenceScale_pos |
| 840 | V.exponent (V.cover n) (V.referenceCover - V.cover n) (V.frequency n) (B.base.frequency reference) hx hΦ |
| 841 | simp only [Nat.add_sub_of_le (V.cover_le n)] at he |
| 842 | exact he |
| 843 | |
| 844 | theorem amplitude_transport (request referenceRequest : ℕ → Cylinder → Vec2) |
| 845 | (j : Fin 2) (n : ℕ) (x : Cylinder) |
| 846 | (hrequest : request n x = coefficientScale (V.strip.epsilon n) (B.strip.epsilon reference) |
| 847 | (V.velocity n) ^ 2 • referenceRequest reference (V.map n x)) : |
| 848 | ((V.coefficients request j).withCutoff V.cutoff).amplitude n x = |
| 849 | V.velocity n • ((B.coefficients referenceRequest j).withCutoff B.cutoff).amplitude reference (V.map n x) := |
| 850 | B.view_cutoff_amplitude V.strip V.directions V.background V.frequency V.velocity V.clock V.normal |
| 851 | (fun n => V.map n) reference n request referenceRequest j x |
| 852 | (PhysicalParticularWave.ratioPower_pos (V.scale_pos n) V.referenceScale_pos _) hrequest |
| 853 | |
| 854 | theorem pressure_transport (request referenceRequest : ℕ → Cylinder → Vec2) |
| 855 | (j : Fin 2) (n : ℕ) {x : Cylinder} (hx : 0 < x.1.1) |
| 856 | (hKr : B.base.frequency reference ≠ 0) |
| 857 | (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) |
| 858 | (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) |
| 859 | V.strip V.directions n V.exponent (V.scale n) (V.cover n)) |
| 860 | (hΦ : DifferentiableAt ℝ (B.base.phase reference) (V.map n x)) |
| 861 | (hrequest : request n x = coefficientScale (V.strip.epsilon n) (B.strip.epsilon reference) |
| 862 | (V.velocity n) ^ 2 • referenceRequest reference (V.map n x)) : |
| 863 | ((V.coefficients request j).withCutoff V.cutoff).pressure n x = |
| 864 | PhysicalParticularWave.pressureWeight V.exponent (V.scale n) V.referenceScale • |
| 865 | ((B.coefficients referenceRequest j).withCutoff B.cutoff).pressure reference (V.map n x) := by |
| 866 | have he := B.view_cutoff_pressure V.strip V.directions V.background V.frequency V.velocity V.clock V.normal |
| 867 | (fun n => V.map n) reference n request referenceRequest j x |
| 868 | (PhysicalParticularWave.ratioPower_pos (V.scale_pos n) V.referenceScale_pos _) (V.frequency_ne n) hKr |
| 869 | (PhysicalParticularWave.normalWeight_ne (V.scale_pos n) V.referenceScale_pos (V.frequency_ne n) hKr) |
| 870 | hrequest (V.normal_transport G n H hx hΦ) |
| 871 | rw [show V.clock n * V.velocity n / V.normal n * (B.base.frequency reference / V.frequency n) = |
| 872 | PhysicalParticularWave.pressureWeight V.exponent (V.scale n) V.referenceScale from |
| 873 | PhysicalParticularWave.pressure_scaling (V.scale_pos n) V.referenceScale_pos (V.frequency_ne n) hKr V.exponent] at he |
| 874 | exact he |
| 875 | |
| 876 | noncomputable def physicalPhase : SpaceTime → ℝ := |
| 877 | fun z => B.base.phase reference |
| 878 | ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z) |
| 879 | |
| 880 | noncomputable def physicalRaw (referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) : |
| 881 | SpaceTime → ComplexVector := |
| 882 | fun z => V.referenceScale ^ (-CoordinateAlgebra.A V.exponent) • B.raw referenceRequest j reference |
| 883 | ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z) |
| 884 | |
| 885 | noncomputable def referencePotential (referenceRequest : ℕ → Cylinder → Vec2) (j : Fin 2) : |
| 886 | SpaceTime → ComplexVector := |
| 887 | PhysicalCurlCovariance.referencePotential (B.base.frequency reference) V.physicalPhase |
| 888 | (V.physicalRaw referenceRequest j) |
| 889 | |
| 890 | /-- One Cartesian potential is chosen from the reference band and cover, |
| 891 | and each actual band wave will be identified with its curl. -/ |
| 892 | noncomputable def physicalPotential (referenceRequest : ℕ → Cylinder → Vec2) |
| 893 | (j : Fin 2) (delta : ℝ) : VelocityField := |
| 894 | PhysicalCurlCovariance.globalCartesianPotential delta (V.referencePotential referenceRequest j) |
| 895 | |
| 896 | noncomputable def physicalVelocity (referenceRequest : ℕ → Cylinder → Vec2) |
| 897 | (j : Fin 2) (delta : ℝ) : VelocityField := |
| 898 | SpatialCurl.spatialCurl (V.physicalPotential referenceRequest j delta) |
| 899 | |
| 900 | theorem physicalGraph_add_angle (z : SpaceTime) (t : ℝ) : |
| 901 | (PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map |
| 902 | (z + t • ((0 : ℝ), coordinateVector 1)) = |
| 903 | (PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z + |
| 904 | t • ((0 : PhysicalResidualBridge.Lift), (1 : ℝ)) := by |
| 905 | ext <;> simp [PhysicalResidualBridge.ScaledGraph.map, coordinateVector, smul_eq_mul] |
| 906 | |
| 907 | theorem referencePotential_periodic {referenceRequest : ℕ → Cylinder → Vec2} |
| 908 | (H : B.Angular referenceRequest reference) (hK : B.base.frequency reference ≠ 0) |
| 909 | (j : Fin 2) (t r z : ℝ) : |
| 910 | Function.Periodic (fun angle => V.referencePotential referenceRequest j |
| 911 | (t, AxisymmetricResidual.pack r angle z)) (2 * Real.pi) := by |
| 912 | have hphi : CopyAngularInvariance.AffinePhase ((0 : ℝ), coordinateVector 1) |
| 913 | (H.mode / B.base.frequency reference) V.physicalPhase := by |
| 914 | intro x a |
| 915 | unfold physicalPhase |
| 916 | rw [V.physicalGraph_add_angle] |
| 917 | exact H.phase _ a |
| 918 | have ha : CopyAngularInvariance.Invariant ((0 : ℝ), coordinateVector 1) |
| 919 | (V.physicalRaw referenceRequest j) := by |
| 920 | intro x a |
| 921 | unfold physicalRaw |
| 922 | rw [V.physicalGraph_add_angle, B.raw_invariant H j _ a] |
| 923 | have hR : CopyAngularInvariance.Invariant ((0 : ℝ), coordinateVector 1) |
| 924 | LinearWaveResidual.coordinateRadius := by |
| 925 | intro x a |
| 926 | simp [LinearWaveResidual.coordinateRadius, coordinateVector] |
| 927 | have hf : B.base.frequency reference * (H.mode / B.base.frequency reference) = (H.mode : ℝ) := by |
| 928 | field_simp |
| 929 | intro angle |
| 930 | have he := PhysicalCurlCovariance.vectorPotential_fullTurn (Vr := LinearWaveResidual.spaceDirection 0) |
| 931 | (Vθ := LinearWaveResidual.spaceDirection 1) (Vz := LinearWaveResidual.spaceDirection 2) |
| 932 | H.mode hR (CopyAngularInvariance.Invariant.const _) (CopyAngularInvariance.Invariant.const _) |
| 933 | (CopyAngularInvariance.Invariant.const _) hphi ha hf (t, AxisymmetricResidual.pack r angle z) |
| 934 | simpa only [referencePotential, PhysicalCurlCovariance.referencePotential, |
| 935 | PhysicalParticularWave.angle_translate_pack] using he |
| 936 | |
| 937 | noncomputable def wave (request : ℕ → Cylinder → Vec2) (j : Fin 2) (n : ℕ) : |
| 938 | Cylinder → ComplexVector := |
| 939 | vectorMode (V.frequency n) ((V.coefficients request j).phase n) |
| 940 | (CurlClassBounds.realizedCoefficient (V.frequency n) PhysicalResidualBridge.ScaledGraph.radius |
| 941 | (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).radial |
| 942 | PhysicalResidualBridge.ScaledGraph.angular |
| 943 | (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).axial |
| 944 | ((V.coefficients request j).phase n) (((V.coefficients request j).withCutoff V.cutoff).amplitude n)) |
| 945 | |
| 946 | theorem wave_eq_exact (request : ℕ → Cylinder → Vec2) (j : Fin 2) (n : ℕ) |
| 947 | (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) |
| 948 | V.strip V.directions n V.exponent (V.scale n) (V.cover n)) : |
| 949 | V.wave request j n = vectorMode ((V.exactCoefficients request j).frequency n) |
| 950 | ((V.exactCoefficients request j).phase n) ((V.exactCoefficients request j).amplitude n) := by |
| 951 | have H' : ChartGeometry (V.coefficients request j) V.strip V.directions n V.exponent |
| 952 | (V.scale n) (V.cover n) := ⟨H.radius, H.radial, H.angular, H.axial⟩ |
| 953 | exact (H'.corrected_wave V.cutoff).symm |
| 954 | |
| 955 | /-- The output is one literal Cartesian curl. All phase and amplitude |
| 956 | identities used by the curl theorem are derived from the constructors. -/ |
| 957 | theorem wave_physical (request referenceRequest : ℕ → Cylinder → Vec2) |
| 958 | (j : Fin 2) (n : ℕ) (R : B.Regular referenceRequest reference j) |
| 959 | (A : B.Angular referenceRequest reference) (hK : B.base.frequency reference ≠ 0) |
| 960 | (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) |
| 961 | (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) |
| 962 | V.strip V.directions n V.exponent (V.scale n) (V.cover n)) |
| 963 | (hmap : MapsTo (V.map n) V.strip.domain B.strip.domain) |
| 964 | (hradius : ∀ x ∈ V.strip.domain, 0 < x.1.1) |
| 965 | (hrequest : ∀ x ∈ V.strip.domain, request n x = |
| 966 | coefficientScale (V.strip.epsilon n) (B.strip.epsilon reference) (V.velocity n) ^ 2 • |
| 967 | referenceRequest reference (V.map n x)) |
| 968 | {z : SpaceTime} |
| 969 | (hz : z ∈ (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).source V.strip.domain) |
| 970 | {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) |
| 971 | (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) (component : Fin 3) : |
| 972 | (V.wave request j n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) component).re = |
| 973 | V.scale n ^ CoordinateAlgebra.A V.exponent * CylindricalResidual.frame (-(z.2 1)) |
| 974 | (V.physicalVelocity referenceRequest j delta (z.1, CylindricalResidual.chart z.2)) component := by |
| 975 | have hphi : ContDiffOn ℝ ∞ ((V.coefficients request j).phase n) V.strip.domain := |
| 976 | contDiffOn_const.mul (R.phase.comp (V.map n).contDiff.contDiffOn hmap) |
| 977 | have ha : ContDiffOn ℝ ∞ (((V.coefficients request j).withCutoff V.cutoff).amplitude n) |
| 978 | V.strip.domain := by |
| 979 | apply (((R.cutoff_amplitude_smooth j).comp (V.map n).contDiff.contDiffOn hmap).const_smul |
| 980 | (V.velocity n)).congr |
| 981 | intro x hx |
| 982 | exact V.amplitude_transport request referenceRequest j n x (hrequest x hx) |
| 983 | have hnrel (x : Cylinder) (hx : x ∈ V.strip.domain) : |
| 984 | phaseNormal PhysicalResidualBridge.ScaledGraph.radius |
| 985 | (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).radial |
| 986 | PhysicalResidualBridge.ScaledGraph.angular |
| 987 | (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).axial |
| 988 | ((V.coefficients request j).phase n) x = |
| 989 | V.normal n • B.base.normal B.strip B.directions reference (V.map n x) := by |
| 990 | exact (congrFun H.normal x).symm.trans (V.normal_transport G n H (hradius x hx) |
| 991 | ((R.phase.contDiffAt (B.strip.isOpen_domain.mem_nhds (hmap hx))).differentiableAt (by simp))) |
| 992 | have hn (x : Cylinder) (hx : x ∈ V.strip.domain) : |
| 993 | phaseNormal PhysicalResidualBridge.ScaledGraph.radius |
| 994 | (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).radial |
| 995 | PhysicalResidualBridge.ScaledGraph.angular |
| 996 | (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).axial |
| 997 | ((V.coefficients request j).phase n) x ≠ 0 := by |
| 998 | rw [hnrel x hx] |
| 999 | exact smul_ne_zero (PhysicalParticularWave.normalWeight_ne (V.scale_pos n) V.referenceScale_pos |
| 1000 | (V.frequency_ne n) hK) (R.normal_ne _ (hmap hx)) |
| 1001 | have ht (x : Cylinder) (hx : x ∈ V.strip.domain) : |
| 1002 | normalDot (phaseNormal PhysicalResidualBridge.ScaledGraph.radius |
| 1003 | (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).radial |
| 1004 | PhysicalResidualBridge.ScaledGraph.angular |
| 1005 | (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).axial |
| 1006 | ((V.coefficients request j).phase n) x) |
| 1007 | (((V.coefficients request j).withCutoff V.cutoff).amplitude n x) = 0 := by |
| 1008 | rw [hnrel x hx, V.amplitude_transport request referenceRequest j n x (hrequest x hx), |
| 1009 | PhysicalParticularWave.normalDot_scaled, R.cutoff_amplitude_tangent (hmap hx), mul_zero] |
| 1010 | have hp : ∀ y ∈ (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).source V.strip.domain, |
| 1011 | B.base.frequency reference * V.physicalPhase y = |
| 1012 | V.frequency n * (V.coefficients request j).phase n |
| 1013 | ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map y) := by |
| 1014 | intro y hy |
| 1015 | change B.base.frequency reference * B.base.phase reference |
| 1016 | ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map y) = |
| 1017 | V.frequency n * ((B.base.frequency reference / V.frequency n) * B.base.phase reference |
| 1018 | (V.map n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map y))) |
| 1019 | rw [V.map_graph n hy.1] |
| 1020 | field_simp [V.frequency_ne n] |
| 1021 | have hav : ∀ y ∈ (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).source V.strip.domain, |
| 1022 | V.physicalRaw referenceRequest j y = V.scale n ^ (-CoordinateAlgebra.A V.exponent) • |
| 1023 | ((V.coefficients request j).withCutoff V.cutoff).amplitude n |
| 1024 | ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map y) := by |
| 1025 | intro y hy |
| 1026 | rw [V.amplitude_transport request referenceRequest j n _ (hrequest _ hy.2), |
| 1027 | V.map_graph n hy.1, smul_smul] |
| 1028 | change V.referenceScale ^ (-CoordinateAlgebra.A V.exponent) • _ = |
| 1029 | (V.scale n ^ (-CoordinateAlgebra.A V.exponent) * V.velocity n) • _ |
| 1030 | congr 1 |
| 1031 | rw [mul_comm] |
| 1032 | exact (PhysicalParticularWave.ratioPower_cancel (V.scale_pos n) V.referenceScale_pos _).symm |
| 1033 | exact PhysicalCurlCovariance.reference_correctedWave_constructed (V.scale_pos n) V.exponent (V.cover n) |
| 1034 | V.strip.isOpen_domain (fun x hx => (hradius x hx).ne') hK (V.frequency_ne n) hphi ha hn ht |
| 1035 | V.physicalPhase (V.physicalRaw referenceRequest j) hp hav |
| 1036 | (V.referencePotential_periodic A hK j) hz hdelta chart hchart component |
| 1037 | |
| 1038 | /-! ## Pressure is transported from the same reference coefficient -/ |
| 1039 | |
| 1040 | noncomputable def physicalPressureCoefficient (referenceRequest : ℕ → Cylinder → Vec2) |
| 1041 | (j : Fin 2) : SpaceTime → ℂ := |
| 1042 | fun z => V.referenceScale ^ (-(2 * CoordinateAlgebra.A V.exponent)) • |
| 1043 | B.rawPressure referenceRequest j reference |
| 1044 | ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z) |
| 1045 | |
| 1046 | noncomputable def complexPhysicalPressure (referenceRequest : ℕ → Cylinder → Vec2) |
| 1047 | (j : Fin 2) : SpaceTime → ℂ := |
| 1048 | mode (B.base.frequency reference) V.physicalPhase (V.physicalPressureCoefficient referenceRequest j) |
| 1049 | |
| 1050 | noncomputable def physicalPressure (referenceRequest : ℕ → Cylinder → Vec2) |
| 1051 | (j : Fin 2) (delta : ℝ) : PressureField := |
| 1052 | fun z => PhysicalCurlCovariance.globalCartesianPotential delta |
| 1053 | (PhysicalParticularWave.pressureVector (V.complexPhysicalPressure referenceRequest j)) z 2 |
| 1054 | |
| 1055 | noncomputable def pressureMode (request : ℕ → Cylinder → Vec2) (j : Fin 2) (n : ℕ) : |
| 1056 | Cylinder → ℂ := |
| 1057 | mode (V.frequency n) ((V.coefficients request j).phase n) |
| 1058 | (((V.coefficients request j).withCutoff V.cutoff).pressure n) |
| 1059 | |
| 1060 | theorem complexPhysicalPressure_periodic {referenceRequest : ℕ → Cylinder → Vec2} |
| 1061 | (A : B.Angular referenceRequest reference) (hK : B.base.frequency reference ≠ 0) |
| 1062 | (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) |
| 1063 | (j : Fin 2) (t r z : ℝ) : |
| 1064 | Function.Periodic (fun angle => V.complexPhysicalPressure referenceRequest j |
| 1065 | (t, AxisymmetricResidual.pack r angle z)) (2 * Real.pi) := by |
| 1066 | have hphi : CopyAngularInvariance.AffinePhase ((0 : ℝ), coordinateVector 1) |
| 1067 | (A.mode / B.base.frequency reference) V.physicalPhase := by |
| 1068 | intro x a |
| 1069 | unfold physicalPhase |
| 1070 | rw [V.physicalGraph_add_angle] |
| 1071 | exact A.phase _ a |
| 1072 | have hp : CopyAngularInvariance.Invariant ((0 : ℝ), coordinateVector 1) |
| 1073 | (V.physicalPressureCoefficient referenceRequest j) := by |
| 1074 | intro x a |
| 1075 | unfold physicalPressureCoefficient |
| 1076 | rw [V.physicalGraph_add_angle, B.rawPressure_invariant reference A G j _ a] |
| 1077 | have hf : B.base.frequency reference * (A.mode / B.base.frequency reference) = (A.mode : ℝ) := by |
| 1078 | field_simp |
| 1079 | intro angle |
| 1080 | have he := PhysicalParticularWave.mode_fullTurn A.mode hphi hp hf |
| 1081 | (t, AxisymmetricResidual.pack r angle z) |
| 1082 | simpa only [complexPhysicalPressure, PhysicalParticularWave.angle_translate_pack] using he |
| 1083 | |
| 1084 | theorem physicalPressure_forward {referenceRequest : ℕ → Cylinder → Vec2} |
| 1085 | (A : B.Angular referenceRequest reference) (hK : B.base.frequency reference ≠ 0) |
| 1086 | (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) |
| 1087 | (j : Fin 2) {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) {z : SpaceTime} |
| 1088 | (hz : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) : |
| 1089 | V.physicalPressure referenceRequest j delta (z.1, CylindricalResidual.chart z.2) = |
| 1090 | (V.complexPhysicalPressure referenceRequest j z).re := by |
| 1091 | have hper (t r z : ℝ) : Function.Periodic |
| 1092 | (fun angle => PhysicalParticularWave.pressureVector (V.complexPhysicalPressure referenceRequest j) |
| 1093 | (t, AxisymmetricResidual.pack r angle z)) (2 * Real.pi) := by |
| 1094 | intro angle |
| 1095 | simp only [PhysicalParticularWave.pressureVector, |
| 1096 | V.complexPhysicalPressure_periodic A hK G j t r z angle] |
| 1097 | have he := (PhysicalCurlCovariance.globalCartesianPotential_forward_germ hdelta chart |
| 1098 | (PhysicalParticularWave.pressureVector (V.complexPhysicalPressure referenceRequest j)) hper hz).eq_of_nhds |
| 1099 | unfold physicalPressure |
| 1100 | rw [he] |
| 1101 | simp [CylindricalResidual.frame_apply, PhysicalCurlCovariance.realVector, |
| 1102 | PhysicalParticularWave.pressureVector] |
| 1103 | |
| 1104 | theorem pressureMode_physical (request referenceRequest : ℕ → Cylinder → Vec2) |
| 1105 | (j : Fin 2) (n : ℕ) (hK : B.base.frequency reference ≠ 0) |
| 1106 | (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) |
| 1107 | (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) |
| 1108 | V.strip V.directions n V.exponent (V.scale n) (V.cover n)) |
| 1109 | {z : SpaceTime} (hz : 0 < z.2 0) |
| 1110 | (hPhi : DifferentiableAt ℝ (B.base.phase reference) |
| 1111 | ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z)) |
| 1112 | (hrequest : request n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) = |
| 1113 | coefficientScale (V.strip.epsilon n) (B.strip.epsilon reference) (V.velocity n) ^ 2 • |
| 1114 | referenceRequest reference ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z)) : |
| 1115 | V.pressureMode request j n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) = |
| 1116 | V.scale n ^ (2 * CoordinateAlgebra.A V.exponent) • V.complexPhysicalPressure referenceRequest j z := by |
| 1117 | have hraw := V.pressure_transport request referenceRequest j n |
| 1118 | (x := (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) |
| 1119 | (mul_pos (Real.rpow_pos_of_pos (V.scale_pos n) _) hz) hK G H |
| 1120 | (by simpa only [V.map_graph n hz] using hPhi) (by simpa only [V.map_graph n hz] using hrequest) |
| 1121 | rw [V.map_graph n hz] at hraw |
| 1122 | have hc : carrier (V.frequency n) ((V.coefficients request j).phase n) |
| 1123 | ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) = |
| 1124 | carrier (B.base.frequency reference) V.physicalPhase z := by |
| 1125 | apply PhysicalCurlCovariance.carrier_eq_of_products |
| 1126 | have he := B.view_carrier V.background V.frequency (fun n => V.map n) reference n |
| 1127 | (V.frequency_ne n) ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) |
| 1128 | simp only [V.map_graph n hz] at he |
| 1129 | exact he |
| 1130 | have hw : PhysicalParticularWave.pressureWeight V.exponent (V.scale n) V.referenceScale = |
| 1131 | V.scale n ^ (2 * CoordinateAlgebra.A V.exponent) * |
| 1132 | V.referenceScale ^ (-(2 * CoordinateAlgebra.A V.exponent)) := by |
| 1133 | unfold PhysicalParticularWave.pressureWeight PhysicalParticularWave.ratioPower |
| 1134 | rw [Real.rpow_neg V.referenceScale_pos.le, div_eq_mul_inv] |
| 1135 | unfold pressureMode complexPhysicalPressure HarmonicCalculus.mode |
| 1136 | rw [hraw, hc, hw] |
| 1137 | simp only [physicalPressureCoefficient, rawPressure, Complex.real_smul, Complex.ofReal_mul] |
| 1138 | ring |
| 1139 | |
| 1140 | theorem pressure_physical (request referenceRequest : ℕ → Cylinder → Vec2) |
| 1141 | (j : Fin 2) (n : ℕ) (A : B.Angular referenceRequest reference) |
| 1142 | (hK : B.base.frequency reference ≠ 0) |
| 1143 | (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) |
| 1144 | (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) |
| 1145 | V.strip V.directions n V.exponent (V.scale n) (V.cover n)) |
| 1146 | {z : SpaceTime} (hz : 0 < z.2 0) |
| 1147 | (hPhi : DifferentiableAt ℝ (B.base.phase reference) |
| 1148 | ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z)) |
| 1149 | (hrequest : request n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) = |
| 1150 | coefficientScale (V.strip.epsilon n) (B.strip.epsilon reference) (V.velocity n) ^ 2 • |
| 1151 | referenceRequest reference ((PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z)) |
| 1152 | {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) |
| 1153 | (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) : |
| 1154 | (V.pressureMode request j n ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z)).re = |
| 1155 | V.scale n ^ (2 * CoordinateAlgebra.A V.exponent) * |
| 1156 | V.physicalPressure referenceRequest j delta (z.1, CylindricalResidual.chart z.2) := by |
| 1157 | rw [V.pressureMode_physical request referenceRequest j n hK G H hz hPhi hrequest, |
| 1158 | V.physicalPressure_forward A hK G j hdelta chart hchart] |
| 1159 | simp [Complex.real_smul] |
| 1160 | |
| 1161 | theorem pressureMode_eq_exact (request : ℕ → Cylinder → Vec2) (j : Fin 2) (n : ℕ) : |
| 1162 | V.pressureMode request j n = HarmonicCalculus.mode ((V.exactCoefficients request j).frequency n) |
| 1163 | ((V.exactCoefficients request j).phase n) ((V.exactCoefficients request j).pressure n) := rfl |
| 1164 | |
| 1165 | /-! ## The primary coefficient is an exact specialization -/ |
| 1166 | |
| 1167 | /-! ## Bind the constructor to the literal current-state request -/ |
| 1168 | |
| 1169 | /-- All coherence fields concern the current state, background and |
| 1170 | integration domain before the signed wave is constructed. -/ |
| 1171 | structure StateData (V : B.Views reference) where |
| 1172 | patch : SignedStressPrimitive.Patch |
| 1173 | context : CorrectionState.Context Point |
| 1174 | referenceContext : CorrectionState.Context Point |
| 1175 | current : CorrectionState.State Point |
| 1176 | referenceState : CorrectionState.State Point |
| 1177 | exponent_pos : 0 < V.exponent |
| 1178 | exponent_lt_half : V.exponent < 1 / 2 |
| 1179 | domain : ℕ → Set Point |
| 1180 | domain_open : ∀ n, IsOpen (domain n) |
| 1181 | state_coherent : ∀ n, PhysicalResidualNaturality.StateOn (domain n) |
| 1182 | (requestChart V.exponent (V.scale_pos n) V.referenceScale_pos (V.referenceCover - V.cover n)) |
| 1183 | (V.velocity n) (PhysicalParticularWave.ratioPower (V.scale n) V.referenceScale (1 / 2)) |
| 1184 | current referenceState n reference |
| 1185 | context_coherent : ∀ n, PhysicalResidualNaturality.ContextOn (domain n) |
| 1186 | (requestChart V.exponent (V.scale_pos n) V.referenceScale_pos (V.referenceCover - V.cover n)) |
| 1187 | (V.velocity n) (PhysicalParticularWave.ratioPower (V.scale n) V.referenceScale (1 / 2)) |
| 1188 | context referenceContext n reference |
| 1189 | time_pos : ∀ x ∈ V.strip.domain, 0 < x.1.2.1.2 |
| 1190 | fibers : ∀ n x, x ∈ V.strip.domain → ∀ r Y, |
| 1191 | (r, ((x.1.2.1.2, x.1.2.1.1), Y)) ∈ domain n |
| 1192 | referenceSlow : ℕ → Set LocalSignedRequest.Plane |
| 1193 | referenceSlow_open : ∀ n, IsOpen (referenceSlow n) |
| 1194 | referenceSlow_mem : ∀ n x, x ∈ V.strip.domain → |
| 1195 | slowChange V.exponent (V.scale n) V.referenceScale (x.1.2.1.2, x.1.2.1.1) ∈ referenceSlow n |
| 1196 | reference_theta_smooth : ∀ n, ContDiffOn ℝ ∞ (referenceState.thetaResidual referenceContext reference) |
| 1197 | (PhysicalMeanDomain.slowDomain (referenceSlow n)) |
| 1198 | reference_axial_smooth : ∀ n, ContDiffOn ℝ ∞ (referenceState.axialResidual referenceContext reference) |
| 1199 | (PhysicalMeanDomain.slowDomain (referenceSlow n)) |
| 1200 | reference_theta_periodic : ∀ n, PhysicalMeanDomain.PeriodicOn (referenceSlow n) |
| 1201 | (referenceState.thetaResidual referenceContext reference) |
| 1202 | reference_axial_periodic : ∀ n, PhysicalMeanDomain.PeriodicOn (referenceSlow n) |
| 1203 | (referenceState.axialResidual referenceContext reference) |
| 1204 | |
| 1205 | namespace StateData |
| 1206 | |
| 1207 | variable {V} (D : V.StateData) |
| 1208 | |
| 1209 | noncomputable def request : ℕ → Cylinder → Vec2 := |
| 1210 | stateRequest V.strip D.patch V.exponent D.context D.current |
| 1211 | |
| 1212 | noncomputable def referenceRequest : ℕ → Cylinder → Vec2 := |
| 1213 | stateRequest B.strip D.patch V.exponent D.referenceContext D.referenceState |
| 1214 | |
| 1215 | theorem request_transport (n : ℕ) (x : Cylinder) (hx : x ∈ V.strip.domain) : |
| 1216 | D.request n x = coefficientScale (V.strip.epsilon n) (B.strip.epsilon reference) |
| 1217 | (V.velocity n) ^ 2 • D.referenceRequest reference (V.map n x) := |
| 1218 | stateRequest_of_state V.strip B.strip D.patch D.exponent_pos D.exponent_lt_half |
| 1219 | (V.scale_pos n) V.referenceScale_pos D.context D.referenceContext D.current D.referenceState |
| 1220 | n reference (V.referenceCover - V.cover n) (D.domain_open n) (D.state_coherent n) (D.context_coherent n) |
| 1221 | x (D.time_pos x hx) (D.fibers n x hx) (D.referenceSlow_open n) (D.referenceSlow_mem n x hx) |
| 1222 | (D.reference_theta_smooth n) (D.reference_axial_smooth n) |
| 1223 | (D.reference_theta_periodic n) (D.reference_axial_periodic n) |
| 1224 | |
| 1225 | theorem actual_wave_physical (j : Fin 2) (n : ℕ) |
| 1226 | (R : B.Regular D.referenceRequest reference j) (A : B.Angular D.referenceRequest reference) |
| 1227 | (hK : B.base.frequency reference ≠ 0) |
| 1228 | (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) |
| 1229 | (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) |
| 1230 | V.strip V.directions n V.exponent (V.scale n) (V.cover n)) |
| 1231 | (hmap : MapsTo (V.map n) V.strip.domain B.strip.domain) |
| 1232 | (hradius : ∀ x ∈ V.strip.domain, 0 < x.1.1) |
| 1233 | {z : SpaceTime} |
| 1234 | (hz : z ∈ (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).source V.strip.domain) |
| 1235 | {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) |
| 1236 | (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) (component : Fin 3) : |
| 1237 | (vectorMode ((V.exactCoefficients D.request j).frequency n) ((V.exactCoefficients D.request j).phase n) |
| 1238 | ((V.exactCoefficients D.request j).amplitude n) |
| 1239 | ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) component).re = |
| 1240 | V.scale n ^ CoordinateAlgebra.A V.exponent * CylindricalResidual.frame (-(z.2 1)) |
| 1241 | (V.physicalVelocity D.referenceRequest j delta (z.1, CylindricalResidual.chart z.2)) component := by |
| 1242 | have he := V.wave_physical D.request D.referenceRequest j n R A hK G H hmap hradius |
| 1243 | (D.request_transport n) hz hdelta chart hchart component |
| 1244 | rwa [V.wave_eq_exact D.request j n H] at he |
| 1245 | |
| 1246 | theorem actual_pressure_physical (j : Fin 2) (n : ℕ) |
| 1247 | (R : B.Regular D.referenceRequest reference j) (A : B.Angular D.referenceRequest reference) |
| 1248 | (hK : B.base.frequency reference ≠ 0) |
| 1249 | (G : ChartGeometry B.base B.strip B.directions reference V.exponent V.referenceScale V.referenceCover) |
| 1250 | (H : ChartGeometry (B.viewBase V.background V.frequency (fun n => V.map n) reference) |
| 1251 | V.strip V.directions n V.exponent (V.scale n) (V.cover n)) |
| 1252 | (hmap : MapsTo (V.map n) V.strip.domain B.strip.domain) |
| 1253 | {z : SpaceTime} |
| 1254 | (hz : z ∈ (PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).source V.strip.domain) |
| 1255 | {delta : ℝ} (hdelta : 0 < delta) (chart : PolarCharts.Index) |
| 1256 | (hchart : z ∈ PhysicalCurlCovariance.validCylindrical delta chart) : |
| 1257 | (HarmonicCalculus.mode ((V.exactCoefficients D.request j).frequency n) ((V.exactCoefficients D.request j).phase n) |
| 1258 | ((V.exactCoefficients D.request j).pressure n) |
| 1259 | ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z)).re = |
| 1260 | V.scale n ^ (2 * CoordinateAlgebra.A V.exponent) * |
| 1261 | V.physicalPressure D.referenceRequest j delta (z.1, CylindricalResidual.chart z.2) := by |
| 1262 | have hx : (PhysicalResidualBridge.commonGraph V.referenceScale V.exponent V.referenceCover).map z ∈ B.strip.domain := by |
| 1263 | rw [← V.map_graph n hz.1] |
| 1264 | exact hmap hz.2 |
| 1265 | have he := V.pressure_physical D.request D.referenceRequest j n A hK G H hz.1 |
| 1266 | ((R.phase.contDiffAt (B.strip.isOpen_domain.mem_nhds hx)).differentiableAt (by simp)) |
| 1267 | (by simpa only [V.map_graph n hz.1] using (D.request_transport n |
| 1268 | ((PhysicalResidualBridge.commonGraph (V.scale n) V.exponent (V.cover n)).map z) hz.2)) |
| 1269 | hdelta chart hchart |
| 1270 | rwa [V.pressureMode_eq_exact D.request j n] at he |
| 1271 | |
| 1272 | end StateData |
| 1273 | |
| 1274 | end Views |
| 1275 | |
| 1276 | end PrimaryData |
| 1277 | |
| 1278 | end NavierStokes.PhysicalSignedWave |