| @@ -164,101 +164,6 @@ noncomputable def coefficients (a : WaveCoefficients X) (s : StripData X) |
| 164 | 164 | WaveCoefficients X := |
| 165 | 165 | SignedWaveUpdate.coefficients a s d H T (fun n x => (2 : ℝ) • T n x) mask v Ndot A j |
| 166 | 166 | |
| 167 | | -noncomputable def piece (a : WaveCoefficients X) (s : StripData X) |
| 168 | | - (d : GraphDirections X) (H : ℕ → X → SmoothCovariance.Mat2) |
| 169 | | - (T : ℕ → X → SmoothCovariance.Vec2) (mask : ℕ → X → ℝ) |
| 170 | | - (v Ndot : ℕ → X → PrimaryODE.Space) |
| 171 | | - (A : ℕ → X → PrimaryODE.Space →L[ℝ] PrimaryODE.Space) |
| 172 | | - (cutoff : ℕ → X → ℝ) (j : Fin 2) : PrimaryPiece X := |
| 173 | | - ⟨s, d, coefficients a s d H T mask v Ndot A j, cutoff⟩ |
| 174 | | - |
| 175 | | -theorem twice_target_class {s : StripData X} {T : ℕ → X → SmoothCovariance.Vec2} |
| 176 | | - (hT : ∀ i, MeanClass s 0 (fun n x => T n x i)) (i : Fin 2) : |
| 177 | | - MeanClass s 0 (fun n x => ((2 : ℝ) • T n x) i) := |
| 178 | | - MeanIncrementBounds.Class.smul (hT i) 2 |
| 179 | | - |
| 180 | | -/-- The primary pressure and amplitude estimates come from their formulas; |
| 181 | | -the input record supplies only the fixed background geometry. -/ |
| 182 | | -theorem inputBounds {s : StripData X} {d : GraphDirections X} {a : WaveCoefficients X} |
| 183 | | - {P₀ P : ℕ → X → ℝ} {α₀ κ : ℝ} (hbase : InputBounds s P₀ α₀ κ d a) |
| 184 | | - {H : ℕ → X → SmoothCovariance.Mat2} {T : ℕ → X → SmoothCovariance.Vec2} |
| 185 | | - {mask : ℕ → X → ℝ} {v Ndot : ℕ → X → PrimaryODE.Space} |
| 186 | | - {A : ℕ → X → PrimaryODE.Space →L[ℝ] PrimaryODE.Space} |
| 187 | | - (hcov : SignedWaveUpdate.CovarianceControl s H T) (hm : UnweightedClass s 0 mask) |
| 188 | | - (hv : MemClass s P 0 v) |
| 189 | | - (hN : PhaseJetBounds.PolynomialJets (CurlClassBounds.phaseDomain s) (a.normal s d)) |
| 190 | | - (hNdot : UnweightedClass s 0 Ndot) (hA : UnweightedClass s 0 A) |
| 191 | | - {b M : ℝ} (hb : 0 < b) |
| 192 | | - (hlo : ∀ n x, x ∈ s.domain → b ≤ ‖a.normal s d n x‖) |
| 193 | | - (hhi : ∀ n x, x ∈ s.domain → ‖a.normal s d n x‖ ≤ M) |
| 194 | | - (hK : BandBound s (1 / 2) (fun n => 1 / a.frequency n)) (j : Fin 2) : |
| 195 | | - InputBounds s P (1 / 2) κ d (coefficients a s d H T mask v Ndot A j) := by |
| 196 | | - simpa only [coefficients, zero_add] using |
| 197 | | - SignedWaveUpdate.coefficients_inputBounds hbase hcov (twice_target_class hcov.target_jets) |
| 198 | | - hm hv hN hNdot hA hb hlo hhi hK j |
| 199 | | - |
| 200 | | -/-- The only ODE used here is the constructed normalized primary fundamental. |
| 201 | | -In particular no principal equation for the output coefficient is assumed. -/ |
| 202 | | -theorem phase_principal_zero {s : StripData X} {d : GraphDirections X} |
| 203 | | - (a : WaveCoefficients X) {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 204 | | - (F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U) (pref : Fin 2 → ℕ → ℝ) |
| 205 | | - (χ : ℕ → X → PhaseCalculus.Slow × ℝ) |
| 206 | | - {T : ℕ → X → SmoothCovariance.Vec2} {mask : ℕ → X → ℝ} |
| 207 | | - {Ndot : ℕ → X → PrimaryODE.Space} |
| 208 | | - {A : ℕ → X → PrimaryODE.Space →L[ℝ] PrimaryODE.Space} |
| 209 | | - (hscale : ∀ n, U.scale n = s.slow n) |
| 210 | | - (hχ : PhaseJetBounds.PolynomialJets (PrimaryPulseBounds.phaseDomain s) χ) |
| 211 | | - (hmap : ∀ n x, x ∈ s.domain → χ n x ∈ U.carrier n ×ˢ Ioo (0 : ℝ) 1) |
| 212 | | - (hcov : SignedWaveUpdate.CovarianceControl s (SignedWaveUpdate.phaseMatrix F pref χ) T) |
| 213 | | - (hm : UnweightedClass s 0 mask) |
| 214 | | - (hHf : SignedWaveUpdate.FrozenAlong d.fast (SignedWaveUpdate.phaseMatrix F pref χ)) |
| 215 | | - (hTf : SignedWaveUpdate.FrozenAlong d.fast T) (hmf : SignedWaveUpdate.FrozenAlong d.fast mask) |
| 216 | | - (hK : ∀ n, a.frequency n ≠ 0) (j : Fin 2) |
| 217 | | - (hcoef : ∀ n, ContinuousOn (((F j).frame n).coefficient 1) |
| 218 | | - (U.carrier n ×ˢ Icc 0 ((F j).L n))) |
| 219 | | - (hkin : ∀ n x, x ∈ s.domain → ((F j).frame n).Kinematics (χ n x).1 (Icc 0 ((F j).L n))) |
| 220 | | - (hclock : ∀ n x, x ∈ s.domain → ∀ t : ℝ, |
| 221 | | - χ n (x + t • d.fastField n x) = ((χ n x).1, (χ n x).2 + t / (F j).L n)) |
| 222 | | - (hnormal : ∀ n x, x ∈ s.domain → |
| 223 | | - ((F j).frame n).normal ((χ n x).1, (F j).L n * (χ n x).2) = a.normal s d n x) |
| 224 | | - (hmotion : ∀ n x, x ∈ s.domain → |
| 225 | | - ((F j).frame n).normalMotion ((χ n x).1, (F j).L n * (χ n x).2) = Ndot n x) |
| 226 | | - (haction : ∀ n x, x ∈ s.domain → ∀ z : PrimaryODE.Space, |
| 227 | | - MovingFrameODE.baseAction (((F j).frame n).F ((χ n x).1, (F j).L n * (χ n x).2)) |
| 228 | | - (((F j).frame n).shear ((χ n x).1, (F j).L n * (χ n x).2)) z = A n x z) |
| 229 | | - (hdamp : ∀ n x, x ∈ s.domain → |
| 230 | | - ((F j).frame n).viscosity ((χ n x).1, (F j).L n * (χ n x).2) = |
| 231 | | - s.epsilon n * a.frequency n ^ 2 * ‖a.normal s d n x‖ ^ 2) |
| 232 | | - (hphysical : ∀ n x, x ∈ s.domain → |
| 233 | | - CurlClassBounds.complexify (A n x (SignedWaveUpdate.phaseFundamental F χ j n x)) = |
| 234 | | - LinearWaveResidual.shear (a.radius n) (a.frequencyBase n) (a.axialBase n) (d.radialField n) |
| 235 | | - (fun y => CurlClassBounds.complexify (SignedWaveUpdate.phaseFundamental F χ j n y)) x) : |
| 236 | | - ∀ n x, x ∈ s.domain → |
| 237 | | - (coefficients a s d (SignedWaveUpdate.phaseMatrix F pref χ) T mask |
| 238 | | - (SignedWaveUpdate.phaseFundamental F χ j) Ndot A j).principal s d n x = 0 := by |
| 239 | | - exact SignedWaveUpdate.phase_coefficients_principal_zero a F pref χ hscale hχ hmap hcov |
| 240 | | - (twice_target_class hcov.target_jets) hm hHf hTf |
| 241 | | - (fun n x t => congrArg (fun z : SmoothCovariance.Vec2 => (2 : ℝ) • z) (hTf n x t)) |
| 242 | | - hmf hK j hcoef hkin hclock hnormal hmotion haction hdamp hphysical |
| 243 | | - |
| 244 | | -/-- The physical shear operator is built from the actual radial derivatives |
| 245 | | -of the two background profiles. -/ |
| 246 | | -noncomputable def physicalAction (R F G : X → ℝ) (Vr : X → X) (x : X) : |
| 247 | | - PrimaryODE.Space →L[ℝ] PrimaryODE.Space := |
| 248 | | - PrimaryCopyBridge.baseOperator (F x) |
| 249 | | - !₂[R x * HarmonicCalculus.along Vr F x, HarmonicCalculus.along Vr G x] |
| 250 | | - |
| 251 | | -theorem physicalAction_eq_shear (R F G : X → ℝ) (Vr : X → X) |
| 252 | | - (v : X → PrimaryODE.Space) (x : X) : |
| 253 | | - CurlClassBounds.complexify (physicalAction R F G Vr x (v x)) = |
| 254 | | - LinearWaveResidual.shear R F G Vr (fun y => CurlClassBounds.complexify (v y)) x := by |
| 255 | | - ext i |
| 256 | | - fin_cases i <;> |
| 257 | | - simp [physicalAction, PrimaryCopyBridge.baseOperator_apply, MovingFrameODE.baseAction, |
| 258 | | - MovingFrameODE.pack, MovingFrameODE.tail, MovingFrameODE.unitTheta, |
| 259 | | - CurlClassBounds.complexify, LinearWaveResidual.shear, Complex.ofReal_mul, |
| 260 | | - Complex.ofReal_add, Complex.ofReal_neg] <;> ring |
| 261 | | - |
| 262 | 167 | private theorem class_pair {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 263 | 168 | [NormedAddCommGroup F] [NormedSpace ℝ F] {s : StripData X} {w : ℕ → X → ℝ} |
| 264 | 169 | {α : ℝ} {f : ℕ → X → E} {g : ℕ → X → F} |
| @@ -267,195 +172,6 @@ private theorem class_pair {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ |
| 267 | 172 | simpa using (hf.map (ContinuousLinearMap.inl ℝ E F)).add |
| 268 | 173 | (hg.map (ContinuousLinearMap.inr ℝ E F)) |
| 269 | 174 | |
| 270 | | -/-- The physical action has order zero because the fixed background is |
| 271 | | -independent of the radial fast variable. -/ |
| 272 | | -theorem physicalAction_class {s : StripData X} {d : GraphDirections X} |
| 273 | | - {a : WaveCoefficients X} {P : ℕ → X → ℝ} {α κ : ℝ} |
| 274 | | - (h : InputBounds s P α κ d a) : |
| 275 | | - UnweightedClass s 0 (fun n => physicalAction (a.radius n) (a.frequencyBase n) |
| 276 | | - (a.axialBase n) (d.radialField n)) := by |
| 277 | | - have hFr := d.Dr_base_mem h.frequency_base h.frequency_base_aux |
| 278 | | - have hGr := d.Dr_base_mem h.axial_base h.axial_base_aux |
| 279 | | - have hRFr : UnweightedClass s 0 |
| 280 | | - (fun n x => a.radius n x * d.Dr a.frequencyBase n x) := by |
| 281 | | - simpa only [zero_add] using unweighted_mul h.radius hFr |
| 282 | | - exact ((class_pair h.frequency_base ((class_pair hRFr hGr).map MovingFrameODE.pairCLM)).map |
| 283 | | - PrimaryCopyBridge.baseOperatorFamily) |
| 284 | | - |
| 285 | | -theorem normal_pullback (χ : X → PhaseCalculus.Slot) (ε p pz x0 : ℝ) |
| 286 | | - (F G : PhaseCalculus.Slow → ℝ) (Vr Vθ Vz : X → X) {x : X} |
| 287 | | - (hχ : DifferentiableAt ℝ χ x) |
| 288 | | - (hF : DifferentiableAt ℝ F (χ x).1) (hG : DifferentiableAt ℝ G (χ x).1) |
| 289 | | - (hr : fderiv ℝ χ x (Vr x) = PhaseCalculus.eR) |
| 290 | | - (hθ : fderiv ℝ χ x (Vθ x) = PhaseCalculus.eTheta) |
| 291 | | - (hz : fderiv ℝ χ x (Vz x) = ε • PhaseCalculus.eZ) : |
| 292 | | - HarmonicCalculus.phaseNormal (fun y => (χ y).1.1) Vr Vθ Vz |
| 293 | | - (PhaseCalculus.phase ε p pz x0 F G ∘ χ) x = |
| 294 | | - PhaseCalculus.phaseNormal ε p pz x0 F G (χ x) := by |
| 295 | | - have hd := fderiv_comp x (PrimaryMaterialDefect.differentiableAt_phase ε p pz x0 F G (χ x) hF hG) hχ |
| 296 | | - ext i |
| 297 | | - fin_cases i <;> |
| 298 | | - simp [HarmonicCalculus.phaseNormal, PhaseCalculus.phaseNormal, |
| 299 | | - HarmonicCalculus.along, hd, hr, hθ, hz] |
| 300 | | - |
| 301 | | -theorem native_normal {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 302 | | - (P : PrimaryPulseBounds.PhaseConstruction U) (s : StripData X) (d : GraphDirections X) |
| 303 | | - (χ : ℕ → X → PhaseCalculus.Slot) (b : ℕ → PhaseCalculus.Slow → ℝ) |
| 304 | | - (amplitude : ℕ → X → HarmonicCalculus.ComplexVector) (pressure : ℕ → X → ℂ) |
| 305 | | - (frequency : ℕ → ℝ) (hχ : PrimaryMaterialDefect.NativeCoordinates s d χ) |
| 306 | | - (hmap : ∀ n, MapsTo (fun x => (χ n x).1) s.domain (U.carrier n)) |
| 307 | | - (heps : ∀ n, P.phase.epsilon n = s.epsilon n) |
| 308 | | - (n : ℕ) {x : X} (hx : x ∈ s.domain) : |
| 309 | | - (PrimaryMaterialDefect.coefficients P b χ amplitude pressure frequency).normal s d n x = |
| 310 | | - P.phase.normal n ((χ n x).1, (χ n x).2.2) := by |
| 311 | | - have hF := ((P.baseF.smooth n).contDiffAt ((U.isOpen n).mem_nhds (hmap n hx))).differentiableAt (by simp) |
| 312 | | - have hG := ((P.baseG.smooth n).contDiffAt ((U.isOpen n).mem_nhds (hmap n hx))).differentiableAt (by simp) |
| 313 | | - have hphase : PrimaryMaterialDefect.pulledPhase P χ n = |
| 314 | | - PhaseCalculus.phase (s.epsilon n) (P.phase.p n) (P.phase.pz n) (P.phase.x0 n) |
| 315 | | - (P.phase.F n) (P.phase.G n) ∘ χ n := by |
| 316 | | - funext y |
| 317 | | - simp [PrimaryMaterialDefect.pulledPhase, heps n] |
| 318 | | - change HarmonicCalculus.phaseNormal (fun y => (χ n y).1.1) (d.radialField n) |
| 319 | | - (fun _ => d.angular) (d.axialField s n) (PrimaryMaterialDefect.pulledPhase P χ n) x = _ |
| 320 | | - rw [hphase, normal_pullback (χ n) _ _ _ _ _ _ _ _ _ (hχ.differentiable n x hx) |
| 321 | | - hF hG (hχ.radialField n hx) (hχ.angular n x hx) (hχ.axialField n hx)] |
| 322 | | - simp only [PhaseJetBounds.PhaseFamily.normal, heps n] |
| 323 | | - rw [PhaseCalculus.phaseNormal_formula _ _ _ _ _ _ (χ n x) (s.epsilon_pos n).ne' hF hG, |
| 324 | | - PhaseCalculus.phaseNormal_formula _ _ _ _ _ _ |
| 325 | | - ((χ n x).1, P.phase.theta n, (χ n x).2.2) (s.epsilon_pos n).ne' hF hG] |
| 326 | | - |
| 327 | | -theorem native_slow_derivative {s : StripData X} {d : GraphDirections X} |
| 328 | | - {χ : ℕ → X → PhaseCalculus.Slot} (hχ : PrimaryMaterialDefect.NativeCoordinates s d χ) |
| 329 | | - (F : ℕ → PhaseCalculus.Slow → ℝ) (n : ℕ) {x : X} (hx : x ∈ s.domain) |
| 330 | | - (hF : DifferentiableAt ℝ (F n) (χ n x).1) : |
| 331 | | - HarmonicCalculus.along (d.radialField n) (fun y => F n (χ n y).1) x = |
| 332 | | - PhaseCalculus.slowR (F n) (χ n x).1 := by |
| 333 | | - have hd := fderiv_comp x hF (hχ.differentiable n x hx).fst |
| 334 | | - change (fderiv ℝ (F n ∘ fun y => (χ n y).1) x) (d.radialField n x) = _ |
| 335 | | - rw [hd, ContinuousLinearMap.comp_apply] |
| 336 | | - have hs := congrArg Prod.fst (hχ.radialField n hx) |
| 337 | | - change (fderiv ℝ (χ n) x (d.radialField n x)).1 = (1, 0) at hs |
| 338 | | - rw [fderiv.fst (hχ.differentiable n x hx)] |
| 339 | | - change (fderiv ℝ (F n) (χ n x).1) ((fderiv ℝ (χ n) x (d.radialField n x)).1) = _ |
| 340 | | - rw [hs] |
| 341 | | - rfl |
| 342 | | - |
| 343 | | -theorem native_slow_auxiliary {s : StripData X} {d : GraphDirections X} |
| 344 | | - {χ : ℕ → X → PhaseCalculus.Slot} (hχ : PrimaryMaterialDefect.NativeCoordinates s d χ) |
| 345 | | - (F : ℕ → PhaseCalculus.Slow → ℝ) (n : ℕ) {x : X} (hx : x ∈ s.domain) |
| 346 | | - (hF : DifferentiableAt ℝ (F n) (χ n x).1) : |
| 347 | | - fderiv ℝ (fun y => F n (χ n y).1) x d.auxiliary = 0 := by |
| 348 | | - have hd := fderiv_comp x hF (hχ.differentiable n x hx).fst |
| 349 | | - change (fderiv ℝ (F n ∘ fun y => (χ n y).1) x) d.auxiliary = _ |
| 350 | | - rw [hd, ContinuousLinearMap.comp_apply] |
| 351 | | - have hs := congrArg Prod.fst (hχ.auxiliary n x hx) |
| 352 | | - change (fderiv ℝ (χ n) x d.auxiliary).1 = 0 at hs |
| 353 | | - rw [fderiv.fst (hχ.differentiable n x hx)] |
| 354 | | - change (fderiv ℝ (F n) (χ n x).1) ((fderiv ℝ (χ n) x d.auxiliary).1) = _ |
| 355 | | - rw [hs, map_zero] |
| 356 | | - |
| 357 | | -theorem native_normal_jets {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 358 | | - (P : PrimaryPulseBounds.PhaseConstruction U) (s : StripData X) (d : GraphDirections X) |
| 359 | | - (χ : ℕ → X → PhaseCalculus.Slot) (b : ℕ → PhaseCalculus.Slow → ℝ) |
| 360 | | - (amplitude : ℕ → X → HarmonicCalculus.ComplexVector) (pressure : ℕ → X → ℂ) |
| 361 | | - (frequency : ℕ → ℝ) (hχ : PrimaryMaterialDefect.NativeCoordinates s d χ) |
| 362 | | - (hcoords : PhaseJetBounds.PolynomialJets (PrimaryPulseBounds.phaseDomain s) |
| 363 | | - (fun n x => ((χ n x).1, (χ n x).2.2))) |
| 364 | | - (hscale : ∀ n, U.scale n = s.slow n) |
| 365 | | - (hmap : ∀ n x, x ∈ s.domain → (χ n x).1 ∈ U.carrier n ∧ (χ n x).2.2 ∈ P.V n) |
| 366 | | - (heps : ∀ n, P.phase.epsilon n = s.epsilon n) : |
| 367 | | - PhaseJetBounds.PolynomialJets (CurlClassBounds.phaseDomain s) |
| 368 | | - ((PrimaryMaterialDefect.coefficients P b χ amplitude pressure frequency).normal s d) := by |
| 369 | | - have hn := ((PrimaryPulseBounds.EnvelopeJets.of_polynomial P.normal_jets).comp hcoords hscale |
| 370 | | - hmap).to_polynomial (fun _ _ _ => le_rfl) |
| 371 | | - apply hn.congr |
| 372 | | - intro n x hx |
| 373 | | - exact (native_normal P s d χ b amplitude pressure frequency hχ |
| 374 | | - (fun n x hx => (hmap n x hx).1) heps n hx).symm |
| 375 | | - |
| 376 | | -/-- A raw background record with zero wave and pressure is verified from |
| 377 | | -the actual phase, base jets and chart. Its material defect and phase-normal |
| 378 | | -bounds are derived here, not supplied as output estimates. -/ |
| 379 | | -theorem native_background_bounds {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 380 | | - (P : PrimaryPulseBounds.PhaseConstruction U) (s : StripData X) (d : GraphDirections X) |
| 381 | | - (χ : ℕ → X → PhaseCalculus.Slot) (b : ℕ → PhaseCalculus.Slow → ℝ) |
| 382 | | - (frequency : ℕ → ℝ) {κ : ℝ} |
| 383 | | - (hχ : PrimaryMaterialDefect.NativeCoordinates s d χ) |
| 384 | | - (hcoords : PhaseJetBounds.PolynomialJets (PrimaryPulseBounds.phaseDomain s) |
| 385 | | - (fun n x => ((χ n x).1, (χ n x).2.2))) |
| 386 | | - (hscale : ∀ n, U.scale n = s.slow n) |
| 387 | | - (hmap : ∀ n x, x ∈ s.domain → (χ n x).1 ∈ U.carrier n ∧ (χ n x).2.2 ∈ P.V n) |
| 388 | | - (heps : ∀ n, P.phase.epsilon n = s.epsilon n) |
| 389 | | - (hR : ∀ n x, x ∈ s.domain → 0 < (χ n x).1.1) |
| 390 | | - (hζ : ∀ x ∈ s.domain, s.zeta x ≤ 1) |
| 391 | | - (hb : UnweightedClass s 1 (fun n x => b n (χ n x).1)) |
| 392 | | - (hbs : ∀ n, ContDiffOn ℝ ∞ (b n) (U.carrier n)) |
| 393 | | - (hκ : 0 ≤ κ) (hprofile : UnweightedClass s 0 (fun _ => d.radialProfile)) |
| 394 | | - (hradial : BandBound s (-κ) d.radialScale) |
| 395 | | - (hfast : BandBound s 0 d.fastScale) |
| 396 | | - (hfrequency : BandBound s (-(1 / 2 : ℝ)) frequency) : |
| 397 | | - InputBounds s (fun _ _ => 1) 0 κ d |
| 398 | | - (PrimaryMaterialDefect.coefficients P b χ 0 0 frequency) := by |
| 399 | | - have hslow := hcoords.clm (ContinuousLinearMap.fst ℝ PhaseCalculus.Slow ℝ) |
| 400 | | - have hslot := PrimaryPulseBounds.polynomial_memClass s |
| 401 | | - (hcoords.clm (ContinuousLinearMap.snd ℝ PhaseCalculus.Slow ℝ)) |
| 402 | | - have hslowmap : ∀ n, MapsTo (fun x => (χ n x).1) s.domain (U.carrier n) := |
| 403 | | - fun n x hx => (hmap n x hx).1 |
| 404 | | - have hradius := hslow.clm (ContinuousLinearMap.fst ℝ ℝ (ℝ × ℝ)) |
| 405 | | - have hinverse := hradius.inv P.r_pos |
| 406 | | - (fun n x hx => (P.radius n _ (hslowmap n hx)).1) |
| 407 | | - (fun n x hx => (P.radius n _ (hslowmap n hx)).2) |
| 408 | | - have hF := PrimaryMaterialDefect.polynomial_comp_unweighted P.baseF hslow hscale hslowmap |
| 409 | | - have hG := PrimaryMaterialDefect.polynomial_comp_unweighted P.baseG hslow hscale hslowmap |
| 410 | | - have hnormal := native_normal_jets P s d χ b 0 0 frequency hχ hcoords hscale hmap heps |
| 411 | | - have hw : ∀ (_n : ℕ) (x : X), x ∈ s.domain → 0 ≤ Real.sqrt (s.zeta x) * (1 : ℝ) := |
| 412 | | - fun _ _ _ => mul_nonneg (Real.sqrt_nonneg _) zero_le_one |
| 413 | | - refine { |
| 414 | | - loss_nonneg := hκ |
| 415 | | - zeta_le_one := hζ |
| 416 | | - radial_profile := hprofile |
| 417 | | - radial_scale := hradial |
| 418 | | - fast_scale := hfast |
| 419 | | - frequency_scale := hfrequency |
| 420 | | - radius := PrimaryPulseBounds.polynomial_memClass s hradius |
| 421 | | - inverse_radius := PrimaryPulseBounds.polynomial_memClass s hinverse |
| 422 | | - radial_base := hb |
| 423 | | - frequency_base := hF |
| 424 | | - axial_base := hG |
| 425 | | - radial_base_aux := ?_ |
| 426 | | - frequency_base_aux := ?_ |
| 427 | | - axial_base_aux := ?_ |
| 428 | | - normal := ?_ |
| 429 | | - defect := PrimaryMaterialDefect.defect_class P s d χ b 0 0 frequency hχ |
| 430 | | - hslow hslot hscale hslowmap heps hR hb |
| 431 | | - amplitude := fun _ => MemClass.zero hw |
| 432 | | - pressure := MemClass.zero hw } |
| 433 | | - · intro n x hx |
| 434 | | - exact native_slow_auxiliary hχ b n hx |
| 435 | | - (((hbs n).contDiffAt ((U.isOpen n).mem_nhds (hslowmap n hx))).differentiableAt (by simp)) |
| 436 | | - · intro n x hx |
| 437 | | - exact native_slow_auxiliary hχ P.phase.F n hx |
| 438 | | - (((P.baseF.smooth n).contDiffAt ((U.isOpen n).mem_nhds (hslowmap n hx))).differentiableAt (by simp)) |
| 439 | | - · intro n x hx |
| 440 | | - exact native_slow_auxiliary hχ P.phase.G n hx |
| 441 | | - (((P.baseG.smooth n).contDiffAt ((U.isOpen n).mem_nhds (hslowmap n hx))).differentiableAt (by simp)) |
| 442 | | - · intro i |
| 443 | | - exact PrimaryPulseBounds.polynomial_memClass s |
| 444 | | - (hnormal.clm (PiLp.proj 2 (fun _ : Fin 3 => ℝ) i)) |
| 445 | | - |
| 446 | | -theorem native_normal_range {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 447 | | - (P : PrimaryPulseBounds.PhaseConstruction U) (s : StripData X) (d : GraphDirections X) |
| 448 | | - (χ : ℕ → X → PhaseCalculus.Slot) (b : ℕ → PhaseCalculus.Slow → ℝ) |
| 449 | | - (amplitude : ℕ → X → HarmonicCalculus.ComplexVector) (pressure : ℕ → X → ℂ) |
| 450 | | - (frequency : ℕ → ℝ) (hχ : PrimaryMaterialDefect.NativeCoordinates s d χ) |
| 451 | | - (hmap : ∀ n x, x ∈ s.domain → (χ n x).1 ∈ U.carrier n ∧ (χ n x).2.2 ∈ P.V n) |
| 452 | | - (heps : ∀ n, P.phase.epsilon n = s.epsilon n) (n : ℕ) {x : X} (hx : x ∈ s.domain) : |
| 453 | | - P.b ≤ ‖(PrimaryMaterialDefect.coefficients P b χ amplitude pressure frequency).normal s d n x‖ ∧ |
| 454 | | - ‖(PrimaryMaterialDefect.coefficients P b χ amplitude pressure frequency).normal s d n x‖ ≤ |
| 455 | | - P.M ^ 2 + 3 * P.M := by |
| 456 | | - rw [native_normal P s d χ b amplitude pressure frequency hχ (fun n x hx => (hmap n x hx).1) heps n hx] |
| 457 | | - exact ⟨P.normal_range.1 n _ (hmap n x hx), P.normal_range.2 n _ (hmap n x hx)⟩ |
| 458 | | - |
| 459 | 175 | theorem frame_jets {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 460 | 176 | (P : PrimaryPulseBounds.PhaseConstruction U) : |
| 461 | 177 | PhaseJetBounds.FrameJets (U.slot P.V P.openV) P.frame := |
| @@ -478,12 +194,6 @@ theorem frame_tail_ne_zero {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 478 | 194 | exact (PhaseEstimates.normal_lower_bounds hB (P.K_unit n) |
| 479 | 195 | (P.error_small n z hz) (P.normal_close n z hz)).2.2.1 |
| 480 | 196 | |
| 481 | | -theorem frame_normal {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 482 | | - (P : PrimaryPulseBounds.PhaseConstruction U) (n : ℕ) |
| 483 | | - {z : PhaseCalculus.Slow × ℝ} (hz : z ∈ (U.slot P.V P.openV).carrier n) : |
| 484 | | - (P.frame n).normal z = P.phase.normal n z := by |
| 485 | | - exact PrimaryODE.FrameData.ofNormalLocal_normal _ _ _ _ _ _ _ _ (frame_tail_ne_zero P n hz) |
| 486 | | - |
| 487 | 197 | theorem frame_kinematics {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 488 | 198 | (P : PrimaryPulseBounds.PhaseConstruction U) (n : ℕ) |
| 489 | 199 | {q : PhaseCalculus.Slow} (hq : q ∈ U.carrier n) : |
| @@ -501,284 +211,11 @@ theorem frame_kinematics {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 501 | 211 | · intro v _ |
| 502 | 212 | exact PrimaryODE.hasDerivAt_referenceProfile (P.c0 n) (P.u n) (P.L n) v |
| 503 | 213 | |
| 504 | | -theorem frame_normalMotion {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 505 | | - (P : PrimaryPulseBounds.PhaseConstruction U) (n : ℕ) |
| 506 | | - {z : PhaseCalculus.Slow × ℝ} (hz : z ∈ (U.slot P.V P.openV).carrier n) : |
| 507 | | - (P.frame n).normalMotion z = P.phase.velocity n z := by |
| 508 | | - have hF := ((P.baseF.smooth n).contDiffAt ((U.isOpen n).mem_nhds hz.1)).differentiableAt (by simp) |
| 509 | | - have hG := ((P.baseG.smooth n).contDiffAt ((U.isOpen n).mem_nhds hz.1)).differentiableAt (by simp) |
| 510 | | - exact PrimaryODE.FrameData.ofNormalLocal_normalMotion _ _ _ _ _ _ _ _ |
| 511 | | - (PhaseCalculus.hasDerivAt_phaseNormal_slot _ _ _ _ _ _ _ _ _ (P.epsilon_ne n) hF hG) |
| 512 | | - (frame_tail_ne_zero P n hz) |
| 513 | | - |
| 514 | | -theorem native_frame_action {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 515 | | - (P : PrimaryPulseBounds.PhaseConstruction U) (s : StripData X) (d : GraphDirections X) |
| 516 | | - (χ : ℕ → X → PhaseCalculus.Slot) (b : ℕ → PhaseCalculus.Slow → ℝ) |
| 517 | | - (frequency : ℕ → ℝ) (hχ : PrimaryMaterialDefect.NativeCoordinates s d χ) |
| 518 | | - (hmap : ∀ n, MapsTo (fun x => (χ n x).1) s.domain (U.carrier n)) |
| 519 | | - (n : ℕ) {x : X} (hx : x ∈ s.domain) (v : PrimaryODE.Space) : |
| 520 | | - MovingFrameODE.baseAction ((P.frame n).F ((χ n x).1, (χ n x).2.2)) |
| 521 | | - ((P.frame n).shear ((χ n x).1, (χ n x).2.2)) v = |
| 522 | | - physicalAction ((PrimaryMaterialDefect.coefficients P b χ 0 0 frequency).radius n) |
| 523 | | - ((PrimaryMaterialDefect.coefficients P b χ 0 0 frequency).frequencyBase n) |
| 524 | | - ((PrimaryMaterialDefect.coefficients P b χ 0 0 frequency).axialBase n) |
| 525 | | - (d.radialField n) x v := by |
| 526 | | - have hF := ((P.baseF.smooth n).contDiffAt ((U.isOpen n).mem_nhds (hmap n hx))).differentiableAt (by simp) |
| 527 | | - have hG := ((P.baseG.smooth n).contDiffAt ((U.isOpen n).mem_nhds (hmap n hx))).differentiableAt (by simp) |
| 528 | | - have hFr := native_slow_derivative hχ P.phase.F n hx hF |
| 529 | | - have hGr := native_slow_derivative hχ P.phase.G n hx hG |
| 530 | | - simp only [PrimaryPulseBounds.PhaseConstruction.frame, PhaseJetBounds.PhaseFamily.frameData, |
| 531 | | - PrimaryODE.FrameData.ofNormalLocal, PhaseJetBounds.PhaseFamily.shear, |
| 532 | | - PhaseEstimates.shearVector, PrimaryMaterialDefect.coefficients, physicalAction, |
| 533 | | - PrimaryCopyBridge.baseOperator_apply, hFr, hGr] |
| 534 | | - |
| 535 | 214 | noncomputable def pulseCoordinates {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 536 | 215 | (P : PrimaryPulseBounds.PhaseConstruction U) (χ : ℕ → X → PhaseCalculus.Slot) : |
| 537 | 216 | ℕ → X → PhaseCalculus.Slow × ℝ := |
| 538 | 217 | fun n x => ((χ n x).1, (χ n x).2.2 / P.L n) |
| 539 | 218 | |
| 540 | | -omit [NormedAddCommGroup X] [NormedSpace ℝ X] in |
| 541 | | -theorem pulseCoordinates_scaled {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 542 | | - (P : PrimaryPulseBounds.PhaseConstruction U) (χ : ℕ → X → PhaseCalculus.Slot) |
| 543 | | - (n : ℕ) (x : X) : P.L n * (pulseCoordinates P χ n x).2 = (χ n x).2.2 := by |
| 544 | | - dsimp only [pulseCoordinates] |
| 545 | | - field_simp [(P.L_pos n).ne'] |
| 546 | | - |
| 547 | | -noncomputable def nativeCoefficients {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 548 | | - (F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U) (pref : Fin 2 → ℕ → ℝ) |
| 549 | | - (s : StripData X) (d : GraphDirections X) (χ : ℕ → X → PhaseCalculus.Slot) |
| 550 | | - (b : ℕ → PhaseCalculus.Slow → ℝ) (frequency : ℕ → ℝ) |
| 551 | | - (T : ℕ → X → SmoothCovariance.Vec2) (mask : ℕ → X → ℝ) (j : Fin 2) : |
| 552 | | - WaveCoefficients X := |
| 553 | | - let a := PrimaryMaterialDefect.coefficients (F j) b χ 0 0 frequency |
| 554 | | - let ψ := pulseCoordinates (F j) χ |
| 555 | | - coefficients a s d (SignedWaveUpdate.phaseMatrix F pref ψ) T mask |
| 556 | | - (SignedWaveUpdate.phaseFundamental F ψ j) |
| 557 | | - (fun n x => (F j).phase.velocity n ((χ n x).1, (χ n x).2.2)) |
| 558 | | - (fun n => physicalAction (a.radius n) (a.frequencyBase n) (a.axialBase n) (d.radialField n)) j |
| 559 | | - |
| 560 | | -/-- The native coefficient has its actual primary pressure and satisfies |
| 561 | | -the principal equation by the constructed ODE. All matching assumptions |
| 562 | | -concern the chart, the scalar viscosity and the primitive slow inputs. -/ |
| 563 | | -theorem native_principal_zero {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 564 | | - (F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U) (pref : Fin 2 → ℕ → ℝ) |
| 565 | | - (s : StripData X) (d : GraphDirections X) (χ : ℕ → X → PhaseCalculus.Slot) |
| 566 | | - (b : ℕ → PhaseCalculus.Slow → ℝ) (frequency : ℕ → ℝ) |
| 567 | | - (T : ℕ → X → SmoothCovariance.Vec2) (mask : ℕ → X → ℝ) (j : Fin 2) |
| 568 | | - (hχ : PrimaryMaterialDefect.NativeCoordinates s d χ) |
| 569 | | - (hscale : ∀ n, U.scale n = s.slow n) |
| 570 | | - (hcoords : PhaseJetBounds.PolynomialJets (PrimaryPulseBounds.phaseDomain s) |
| 571 | | - (pulseCoordinates (F j) χ)) |
| 572 | | - (hmap : ∀ n x, x ∈ s.domain → (χ n x).1 ∈ U.carrier n ∧ |
| 573 | | - (χ n x).2.2 ∈ Ioo (0 : ℝ) ((F j).L n)) |
| 574 | | - (heps : ∀ n, (F j).phase.epsilon n = s.epsilon n) |
| 575 | | - (hν : ∀ n, (F j).viscosity n = s.epsilon n * frequency n ^ 2) |
| 576 | | - (hcov : SignedWaveUpdate.CovarianceControl s |
| 577 | | - (SignedWaveUpdate.phaseMatrix F pref (pulseCoordinates (F j) χ)) T) |
| 578 | | - (hm : UnweightedClass s 0 mask) |
| 579 | | - (hslow : ∀ n x (t : ℝ), (χ n (x + t • d.fast)).1 = (χ n x).1) |
| 580 | | - (hTf : SignedWaveUpdate.FrozenAlong d.fast T) (hmf : SignedWaveUpdate.FrozenAlong d.fast mask) |
| 581 | | - (hclock : ∀ n x, x ∈ s.domain → ∀ t : ℝ, |
| 582 | | - χ n (x + t • d.fastField n x) = ((χ n x).1, (χ n x).2.1, (χ n x).2.2 + t)) |
| 583 | | - (hfrequency : ∀ n, frequency n ≠ 0) : |
| 584 | | - ∀ n x, x ∈ s.domain → (nativeCoefficients F pref s d χ b frequency T mask j).principal s d n x = 0 := by |
| 585 | | - let a := PrimaryMaterialDefect.coefficients (F j) b χ 0 0 frequency |
| 586 | | - let ψ := pulseCoordinates (F j) χ |
| 587 | | - have hψmap : ∀ n x, x ∈ s.domain → ψ n x ∈ U.carrier n ×ˢ Ioo (0 : ℝ) 1 := by |
| 588 | | - intro n x hx |
| 589 | | - exact ⟨(hmap n x hx).1, div_pos (hmap n x hx).2.1 ((F j).L_pos n), |
| 590 | | - (div_lt_one ((F j).L_pos n)).mpr (hmap n x hx).2.2⟩ |
| 591 | | - have hV (n : ℕ) (x : X) (hx : x ∈ s.domain) : |
| 592 | | - ((χ n x).1, (χ n x).2.2) ∈ (U.slot (F j).V (F j).openV).carrier n := |
| 593 | | - ⟨(hmap n x hx).1, (F j).interval n ⟨(hmap n x hx).2.1.le, (hmap n x hx).2.2.le⟩⟩ |
| 594 | | - have hHf : SignedWaveUpdate.FrozenAlong d.fast (SignedWaveUpdate.phaseMatrix F pref ψ) := by |
| 595 | | - intro n x t |
| 596 | | - simp only [SignedWaveUpdate.phaseMatrix, PrimaryPulseBounds.chartCovariance, ψ, |
| 597 | | - pulseCoordinates, hslow] |
| 598 | | - change ∀ n x, x ∈ s.domain → |
| 599 | | - (coefficients a s d (SignedWaveUpdate.phaseMatrix F pref ψ) T mask |
| 600 | | - (SignedWaveUpdate.phaseFundamental F ψ j) |
| 601 | | - (fun n x => (F j).phase.velocity n ((χ n x).1, (χ n x).2.2)) |
| 602 | | - (fun n => physicalAction (a.radius n) (a.frequencyBase n) (a.axialBase n) (d.radialField n)) j).principal s d n x = 0 |
| 603 | | - apply phase_principal_zero a F pref ψ hscale hcoords hψmap hcov hm hHf hTf hmf hfrequency j |
| 604 | | - · exact frame_coefficient_continuous (F j) |
| 605 | | - · intro n x hx |
| 606 | | - exact frame_kinematics (F j) n (hmap n x hx).1 |
| 607 | | - · intro n x hx t |
| 608 | | - simp only [ψ, pulseCoordinates, hclock n x hx t, add_div] |
| 609 | | - · intro n x hx |
| 610 | | - change ((F j).frame n).normal ((χ n x).1, (F j).L n * (pulseCoordinates (F j) χ n x).2) = _ |
| 611 | | - rw [pulseCoordinates_scaled, frame_normal (F j) n (hV n x hx)] |
| 612 | | - exact (native_normal (F j) s d χ b 0 0 frequency hχ (fun n x hx => (hmap n x hx).1) heps n hx).symm |
| 613 | | - · intro n x hx |
| 614 | | - change ((F j).frame n).normalMotion ((χ n x).1, (F j).L n * (pulseCoordinates (F j) χ n x).2) = _ |
| 615 | | - rw [pulseCoordinates_scaled] |
| 616 | | - exact frame_normalMotion (F j) n (hV n x hx) |
| 617 | | - · intro n x hx v |
| 618 | | - change MovingFrameODE.baseAction |
| 619 | | - (((F j).frame n).F ((χ n x).1, (F j).L n * (pulseCoordinates (F j) χ n x).2)) |
| 620 | | - (((F j).frame n).shear ((χ n x).1, (F j).L n * (pulseCoordinates (F j) χ n x).2)) v = _ |
| 621 | | - rw [pulseCoordinates_scaled] |
| 622 | | - exact native_frame_action (F j) s d χ b frequency hχ (fun n x hx => (hmap n x hx).1) n hx v |
| 623 | | - · intro n x hx |
| 624 | | - change (F j).viscosity n * |
| 625 | | - ‖(F j).phase.normal n ((χ n x).1, (F j).L n * (pulseCoordinates (F j) χ n x).2)‖ ^ 2 = _ |
| 626 | | - rw [pulseCoordinates_scaled, hν, native_normal (F j) s d χ b 0 0 frequency hχ |
| 627 | | - (fun n x hx => (hmap n x hx).1) heps n hx] |
| 628 | | - rfl |
| 629 | | - · intro n x _ |
| 630 | | - exact physicalAction_eq_shear _ _ _ _ _ x |
| 631 | | - |
| 632 | | -/-- All primary coefficient and pressure estimates are derived from the |
| 633 | | -same native ODE and matrix. The background record has zero amplitude and |
| 634 | | -zero pressure, so no primary output estimate is an input. -/ |
| 635 | | -theorem native_inputBounds {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 636 | | - (F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U) (pref : Fin 2 → ℕ → ℝ) |
| 637 | | - (s : StripData X) (d : GraphDirections X) (χ : ℕ → X → PhaseCalculus.Slot) |
| 638 | | - (b : ℕ → PhaseCalculus.Slow → ℝ) (frequency : ℕ → ℝ) |
| 639 | | - (T : ℕ → X → SmoothCovariance.Vec2) (mask : ℕ → X → ℝ) (j : Fin 2) {κ : ℝ} |
| 640 | | - (hχ : PrimaryMaterialDefect.NativeCoordinates s d χ) |
| 641 | | - (hscale : ∀ n, U.scale n = s.slow n) |
| 642 | | - (hnative : PhaseJetBounds.PolynomialJets (PrimaryPulseBounds.phaseDomain s) |
| 643 | | - (fun n x => ((χ n x).1, (χ n x).2.2))) |
| 644 | | - (hcoords : PhaseJetBounds.PolynomialJets (PrimaryPulseBounds.phaseDomain s) |
| 645 | | - (pulseCoordinates (F j) χ)) |
| 646 | | - (hmap : ∀ n x, x ∈ s.domain → (χ n x).1 ∈ U.carrier n ∧ |
| 647 | | - (χ n x).2.2 ∈ Ioo (0 : ℝ) ((F j).L n)) |
| 648 | | - (heps : ∀ n, (F j).phase.epsilon n = s.epsilon n) |
| 649 | | - (hR : ∀ n x, x ∈ s.domain → 0 < (χ n x).1.1) |
| 650 | | - (hζ : ∀ x ∈ s.domain, s.zeta x ≤ 1) |
| 651 | | - (hb : UnweightedClass s 1 (fun n x => b n (χ n x).1)) |
| 652 | | - (hbs : ∀ n, ContDiffOn ℝ ∞ (b n) (U.carrier n)) |
| 653 | | - (hκ : 0 ≤ κ) (hprofile : UnweightedClass s 0 (fun _ => d.radialProfile)) |
| 654 | | - (hradial : BandBound s (-κ) d.radialScale) (hfast : BandBound s 0 d.fastScale) |
| 655 | | - (hfrequency : BandBound s (-(1 / 2 : ℝ)) frequency) |
| 656 | | - (hK : BandBound s (1 / 2) (fun n => 1 / frequency n)) |
| 657 | | - (hcov : SignedWaveUpdate.CovarianceControl s |
| 658 | | - (SignedWaveUpdate.phaseMatrix F pref (pulseCoordinates (F j) χ)) T) |
| 659 | | - (hm : UnweightedClass s 0 mask) : |
| 660 | | - InputBounds s (SignedWaveUpdate.phaseEnvelope F (pulseCoordinates (F j) χ) j) |
| 661 | | - (1 / 2) κ d (nativeCoefficients F pref s d χ b frequency T mask j) := by |
| 662 | | - let a := PrimaryMaterialDefect.coefficients (F j) b χ 0 0 frequency |
| 663 | | - let ψ := pulseCoordinates (F j) χ |
| 664 | | - have hV (n : ℕ) (x : X) (hx : x ∈ s.domain) : |
| 665 | | - (χ n x).1 ∈ U.carrier n ∧ (χ n x).2.2 ∈ (F j).V n := |
| 666 | | - ⟨(hmap n x hx).1, (F j).interval n ⟨(hmap n x hx).2.1.le, (hmap n x hx).2.2.le⟩⟩ |
| 667 | | - have hψmap : ∀ n x, x ∈ s.domain → ψ n x ∈ U.carrier n ×ˢ Ioo (0 : ℝ) 1 := by |
| 668 | | - intro n x hx |
| 669 | | - exact ⟨(hmap n x hx).1, div_pos (hmap n x hx).2.1 ((F j).L_pos n), |
| 670 | | - (div_lt_one ((F j).L_pos n)).mpr (hmap n x hx).2.2⟩ |
| 671 | | - have hbase := native_background_bounds (F j) s d χ b frequency hχ hnative hscale hV |
| 672 | | - heps hR hζ hb hbs hκ hprofile hradial hfast hfrequency |
| 673 | | - have hv := SignedWaveUpdate.phaseFundamental_class F ψ hscale hcoords hψmap j |
| 674 | | - have hn := native_normal_jets (F j) s d χ b 0 0 frequency hχ hnative hscale hV heps |
| 675 | | - have hdot := (F j).phase.polynomial_jets U (F j).V (F j).openV (F j).baseF (F j).baseG |
| 676 | | - (F j).r_pos (F j).one_le_M (F j).constants (F j).epsilon_ne (F j).radius (F j).slot |
| 677 | | - have hNdot : UnweightedClass s 0 |
| 678 | | - (fun n x => (F j).phase.velocity n ((χ n x).1, (χ n x).2.2)) := |
| 679 | | - ((PrimaryPulseBounds.EnvelopeJets.of_polynomial hdot.2.1).comp hnative hscale hV).memClass s |
| 680 | | - (fun _ => rfl) (fun _ => rfl) |
| 681 | | - exact inputBounds hbase hcov hm hv hn hNdot (physicalAction_class hbase) (F j).b_pos |
| 682 | | - (fun n x hx => (native_normal_range (F j) s d χ b 0 0 frequency hχ hV heps n hx).1) |
| 683 | | - (fun n x hx => (native_normal_range (F j) s d χ b 0 0 frequency hχ hV heps n hx).2) hK j |
| 684 | | - |
| 685 | | -theorem native_tangent {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 686 | | - (F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U) (pref : Fin 2 → ℕ → ℝ) |
| 687 | | - (s : StripData X) (d : GraphDirections X) (χ : ℕ → X → PhaseCalculus.Slot) |
| 688 | | - (b : ℕ → PhaseCalculus.Slow → ℝ) (frequency : ℕ → ℝ) |
| 689 | | - (T : ℕ → X → SmoothCovariance.Vec2) (mask : ℕ → X → ℝ) (j : Fin 2) |
| 690 | | - (hχ : PrimaryMaterialDefect.NativeCoordinates s d χ) |
| 691 | | - (hmap : ∀ n x, x ∈ s.domain → (χ n x).1 ∈ U.carrier n ∧ (χ n x).2.2 ∈ (F j).V n) |
| 692 | | - (heps : ∀ n, (F j).phase.epsilon n = s.epsilon n) |
| 693 | | - (n : ℕ) {x : X} (hx : x ∈ s.domain) : |
| 694 | | - HarmonicCalculus.normalDot ((nativeCoefficients F pref s d χ b frequency T mask j).normal s d n x) |
| 695 | | - ((nativeCoefficients F pref s d χ b frequency T mask j).amplitude n x) = 0 := by |
| 696 | | - apply SignedWaveUpdate.coefficients_tangent |
| 697 | | - · intro m y hy |
| 698 | | - have ht := SignedWaveUpdate.phaseFundamental_tangent F (pulseCoordinates (F j) χ) j m y |
| 699 | | - change ⟪((F j).frame m).normal ((χ m y).1, (F j).L m * (pulseCoordinates (F j) χ m y).2), |
| 700 | | - SignedWaveUpdate.phaseFundamental F (pulseCoordinates (F j) χ) j m y⟫_ℝ = 0 at ht |
| 701 | | - rw [pulseCoordinates_scaled, frame_normal (F j) m (hmap m y hy)] at ht |
| 702 | | - rw [native_normal (F j) s d χ b 0 0 frequency hχ (fun m y hy => (hmap m y hy).1) heps m hy] |
| 703 | | - exact ht |
| 704 | | - · exact hx |
| 705 | | - |
| 706 | | -theorem physicalAction_invariant {θ : X} {R F G : X → ℝ} {Vr : X → X} |
| 707 | | - (hR : CopyAngularInvariance.Invariant θ R) (hF : CopyAngularInvariance.Invariant θ F) |
| 708 | | - (hG : CopyAngularInvariance.Invariant θ G) (hVr : CopyAngularInvariance.Invariant θ Vr) : |
| 709 | | - CopyAngularInvariance.Invariant θ (physicalAction R F G Vr) := by |
| 710 | | - intro x t |
| 711 | | - simp only [physicalAction, hR x t, hF x t, hF.along hVr x t, hG.along hVr x t] |
| 712 | | - |
| 713 | | -/-- Angular symmetry is derived from the coordinate translation and the |
| 714 | | -primitive slow data, including the actual reconstructed primary pressure. -/ |
| 715 | | -theorem native_angularInputs {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 716 | | - (F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U) (pref : Fin 2 → ℕ → ℝ) |
| 717 | | - (s : StripData X) (d : GraphDirections X) (χ : ℕ → X → PhaseCalculus.Slot) |
| 718 | | - (b : ℕ → PhaseCalculus.Slow → ℝ) (frequency : ℕ → ℝ) |
| 719 | | - (T : ℕ → X → SmoothCovariance.Vec2) (mask cutoff : ℕ → X → ℝ) (j : Fin 2) |
| 720 | | - (hangle : ∀ n x (t : ℝ), χ n (x + t • d.angular) = |
| 721 | | - ((χ n x).1, (χ n x).2.1 + t, (χ n x).2.2)) |
| 722 | | - (hc : ∀ n, ContDiffOn ℝ ∞ (χ n) s.domain) |
| 723 | | - (hmap : ∀ n, MapsTo (fun x => (χ n x).1) s.domain (U.carrier n)) |
| 724 | | - (hT : SignedWaveUpdate.FrozenAlong d.angular T) |
| 725 | | - (hm : SignedWaveUpdate.FrozenAlong d.angular mask) |
| 726 | | - (hcut : SignedWaveUpdate.FrozenAlong d.angular cutoff) |
| 727 | | - (hprofile : CopyAngularInvariance.Invariant d.angular d.radialProfile) : |
| 728 | | - let a := PrimaryMaterialDefect.coefficients (F j) b χ 0 0 frequency |
| 729 | | - let ψ := pulseCoordinates (F j) χ |
| 730 | | - SignedWaveUpdate.AngularInputs s d a (SignedWaveUpdate.phaseMatrix F pref ψ) T |
| 731 | | - (fun n x => (2 : ℝ) • T n x) mask (SignedWaveUpdate.phaseFundamental F ψ j) |
| 732 | | - (fun n x => (F j).phase.velocity n ((χ n x).1, (χ n x).2.2)) |
| 733 | | - (fun n => physicalAction (a.radius n) (a.frequencyBase n) (a.axialBase n) (d.radialField n)) |
| 734 | | - cutoff (F j).phase.p := by |
| 735 | | - let a := PrimaryMaterialDefect.coefficients (F j) b χ 0 0 frequency |
| 736 | | - have hi (n : ℕ) (f : PhaseCalculus.Slow → ℝ) : |
| 737 | | - CopyAngularInvariance.Invariant d.angular (fun x => f (χ n x).1) := by |
| 738 | | - intro x t |
| 739 | | - simp only [hangle] |
| 740 | | - have hr (n : ℕ) : CopyAngularInvariance.Invariant d.angular (a.radius n) := by |
| 741 | | - intro x t |
| 742 | | - simp only [a, PrimaryMaterialDefect.coefficients, hangle] |
| 743 | | - have hVr (n : ℕ) : CopyAngularInvariance.Invariant d.angular (d.radialField n) := by |
| 744 | | - intro x t |
| 745 | | - simp only [GraphDirections.radialField, hprofile x t] |
| 746 | | - refine { |
| 747 | | - radius := hr |
| 748 | | - radial_base := fun n => hi n (b n) |
| 749 | | - frequency_base := fun n => hi n ((F j).phase.F n) |
| 750 | | - axial_base := fun n => hi n ((F j).phase.G n) |
| 751 | | - radial_profile := hprofile |
| 752 | | - phase := ?_ |
| 753 | | - phase_smooth := ?_ |
| 754 | | - matrix := ?_ |
| 755 | | - primary_target := hT |
| 756 | | - signed_target := fun n x t => congrArg (fun v : SmoothCovariance.Vec2 => (2 : ℝ) • v) (hT n x t) |
| 757 | | - mask := hm |
| 758 | | - fundamental := ?_ |
| 759 | | - normal_motion := ?_ |
| 760 | | - action := fun n => physicalAction_invariant (hr n) (hi n ((F j).phase.F n)) |
| 761 | | - (hi n ((F j).phase.G n)) (hVr n) |
| 762 | | - cutoff := hcut } |
| 763 | | - · intro n x t |
| 764 | | - simp only [PrimaryMaterialDefect.coefficients, PrimaryMaterialDefect.pulledPhase, |
| 765 | | - PhaseCalculus.phase, hangle] |
| 766 | | - ring |
| 767 | | - · intro n |
| 768 | | - have hF := ((F j).baseF.smooth n).comp (hc n).fst (hmap n) |
| 769 | | - have hG := ((F j).baseG.smooth n).comp (hc n).fst (hmap n) |
| 770 | | - exact (((contDiffOn_const.mul (hc n).snd.fst).add |
| 771 | | - (contDiffOn_const.mul (hc n).fst.snd.fst)).add |
| 772 | | - (contDiffOn_const.mul (hc n).fst.fst)).sub |
| 773 | | - ((hc n).snd.snd.mul ((contDiffOn_const.mul hF).add (contDiffOn_const.mul hG))) |
| 774 | | - · intro n x t |
| 775 | | - simp only [SignedWaveUpdate.phaseMatrix, PrimaryPulseBounds.chartCovariance, |
| 776 | | - pulseCoordinates, hangle] |
| 777 | | - · intro n x t |
| 778 | | - simp only [SignedWaveUpdate.phaseFundamental, pulseCoordinates, hangle] |
| 779 | | - · intro n x t |
| 780 | | - simp only [hangle] |
| 781 | | - |
| 782 | 219 | section NativePair |
| 783 | 220 | |
| 784 | 221 | open PartitionedCovariance |
| @@ -918,25 +355,6 @@ noncomputable def afterTemporal (p : ReconstructionData) (h : ℝ) |
| 918 | 355 | (baseError : Oscillation (Lift S)) : State (Lift S) := |
| 919 | 356 | temporalStage p h axial c (primaryStage p c labels pieces baseError) |
| 920 | 357 | |
| 921 | | -noncomputable def afterRank (p : ReconstructionData) (r : RankData S) (h : ℝ) |
| 922 | | - (axial : S × PressureStream.Plane) (c : Context (Lift S)) |
| 923 | | - (labels : Finset ι) (pieces : ι → PrimaryPiece (Lift S × ℝ)) |
| 924 | | - (baseError : Oscillation (Lift S)) : State (Lift S) := |
| 925 | | - rankStage p r axial c (afterTemporal p h axial c labels pieces baseError) |
| 926 | | - |
| 927 | | -/-- The current pressure alias is retained once, after the final pressure |
| 928 | | -reconstruction. Earlier obsolete pressure aliases are not accumulated. -/ |
| 929 | | -noncomputable def retainPressureAlias (p : ReconstructionData) (c : Context (Lift S)) |
| 930 | | - (u : State (Lift S)) : State (Lift S) := |
| 931 | | - { u with errors := ⟨u.errors.base, u.errors.gaussian, |
| 932 | | - u.errors.aliasError + pressureAlias p c u⟩ } |
| 933 | | - |
| 934 | | -noncomputable def initialized (p : ReconstructionData) (r : RankData S) (h : ℝ) |
| 935 | | - (axial : S × PressureStream.Plane) (c : Context (Lift S)) |
| 936 | | - (labels : Finset ι) (pieces : ι → PrimaryPiece (Lift S × ℝ)) |
| 937 | | - (baseError : Oscillation (Lift S)) : State (Lift S) := |
| 938 | | - retainPressureAlias p c (afterRank p r h axial c labels pieces baseError) |
| 939 | | - |
| 940 | 358 | end Construction |
| 941 | 359 | |
| 942 | 360 | namespace GaugeInitialization |
| @@ -958,23 +376,11 @@ noncomputable def afterTemporal (g : GaugeData S) (h : ℝ) (index : ℕ → ℕ |
| 958 | 376 | (baseError : Oscillation (PressureStream.Lift S)) : State (PressureStream.Lift S) := |
| 959 | 377 | temporalStageState g h index axial c (primaryStage g c labels pieces baseError) |
| 960 | 378 | |
| 961 | | -noncomputable def afterRank (g : GaugeData S) (r : RankData S) (h : ℝ) (index : ℕ → ℕ) |
| 962 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 963 | | - (labels : Finset ι) (pieces : ι → PrimaryPiece (PressureStream.Lift S × ℝ)) |
| 964 | | - (baseError : Oscillation (PressureStream.Lift S)) : State (PressureStream.Lift S) := |
| 965 | | - rankStageState g r axial c (afterTemporal g h index axial c labels pieces baseError) |
| 966 | | - |
| 967 | 379 | noncomputable def retainPressureAlias (g : GaugeData S) (c : Context (PressureStream.Lift S)) |
| 968 | 380 | (u : State (PressureStream.Lift S)) : State (PressureStream.Lift S) := |
| 969 | 381 | { u with errors := ⟨u.errors.base, u.errors.gaussian, |
| 970 | 382 | u.errors.aliasError + pressureAliasState g c u⟩ } |
| 971 | 383 | |
| 972 | | -noncomputable def initialized (g : GaugeData S) (r : RankData S) (h : ℝ) (index : ℕ → ℕ) |
| 973 | | - (axial : S × PressureStream.Plane) (c : Context (PressureStream.Lift S)) |
| 974 | | - (labels : Finset ι) (pieces : ι → PrimaryPiece (PressureStream.Lift S × ℝ)) |
| 975 | | - (baseError : Oscillation (PressureStream.Lift S)) : State (PressureStream.Lift S) := |
| 976 | | - retainPressureAlias g c (afterRank g r h index axial c labels pieces baseError) |
| 977 | | - |
| 978 | 384 | end GaugeInitialization |
| 979 | 385 | |
| 980 | 386 | namespace GaugeInitialization |
| @@ -1671,21 +1077,6 @@ open WeightedClasses LinearWaveBounds PrimaryConstruction |
| 1671 | 1077 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 1672 | 1078 | {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 1673 | 1079 | |
| 1674 | | -noncomputable def piece (F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U) |
| 1675 | | - (pref : Fin 2 → ℕ → ℝ) (s : StripData D) (c : Context D) |
| 1676 | | - (χ : ℕ → D × ℝ → PhaseCalculus.Slot) (b : ℕ → PhaseCalculus.Slow → ℝ) |
| 1677 | | - (frequency : ℕ → ℝ) (T : ℕ → D × ℝ → SmoothCovariance.Vec2) |
| 1678 | | - (mask cutoff : ℕ → D × ℝ → ℝ) (j : Fin 2) : PrimaryPiece (D × ℝ) where |
| 1679 | | - strip := HarmonicWaveInteraction.productStrip s |
| 1680 | | - directions := PrimaryResidualClass.directions c |
| 1681 | | - coefficients := nativeCoefficients F pref (HarmonicWaveInteraction.productStrip s) |
| 1682 | | - (PrimaryResidualClass.directions c) χ b frequency T mask j |
| 1683 | | - cutoff := cutoff |
| 1684 | | - |
| 1685 | | -noncomputable def envelope (F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U) |
| 1686 | | - (χ : ℕ → D × ℝ → PhaseCalculus.Slot) (j : Fin 2) : ℕ → D → ℝ := |
| 1687 | | - fun n x => SignedWaveUpdate.phaseEnvelope F (pulseCoordinates (F j) χ) j n (x, 0) |
| 1688 | | - |
| 1689 | 1080 | /-- Native geometric and coefficient data. The principal equation, wave |
| 1690 | 1081 | amplitude bounds, homogeneous pressure bounds and nonlinear residual bound |
| 1691 | 1082 | are derived below rather than stored in this record. -/ |
| @@ -1748,101 +1139,6 @@ variable {F : Fin 2 → PrimaryPulseBounds.PhaseConstruction U} {pref : Fin 2 |
| 1748 | 1139 | |
| 1749 | 1140 | include C |
| 1750 | 1141 | |
| 1751 | | -theorem frequency_ne (n : ℕ) : frequency n ≠ 0 := by |
| 1752 | | - intro hz |
| 1753 | | - have h := C.angular_frequency n |
| 1754 | | - rw [hz, zero_mul] at h |
| 1755 | | - exact C.angular_ne n (by exact_mod_cast h.symm) |
| 1756 | | - |
| 1757 | | -theorem envelope_eq : SignedWaveUpdate.phaseEnvelope F (pulseCoordinates (F j) χ) j = |
| 1758 | | - fun n p => envelope F χ j n p.1 := by |
| 1759 | | - funext n p |
| 1760 | | - have hi : CopyAngularInvariance.Invariant ((0 : D), 1) |
| 1761 | | - (SignedWaveUpdate.phaseEnvelope F (pulseCoordinates (F j) χ) j n) := by |
| 1762 | | - intro x t |
| 1763 | | - simp only [SignedWaveUpdate.phaseEnvelope, pulseCoordinates, C.angle] |
| 1764 | | - exact CopyAngularInvariance.invariant_eq_zeroSlice hi p.1 p.2 |
| 1765 | | - |
| 1766 | | -theorem inputBounds : InputBounds (HarmonicWaveInteraction.productStrip s) |
| 1767 | | - (fun n p => envelope F χ j n p.1) (1 / 2) ChartScales.kappa |
| 1768 | | - (PrimaryResidualClass.directions c) (piece F pref s c χ b frequency T mask cutoff j).coefficients := by |
| 1769 | | - have he := native_inputBounds F pref (HarmonicWaveInteraction.productStrip s) |
| 1770 | | - (PrimaryResidualClass.directions c) χ b frequency T mask j C.coordinates C.scale C.native_jets |
| 1771 | | - C.normalized_jets C.chart_range C.epsilon C.radius_pos |
| 1772 | | - (fun x hx => C.operators.weight_le_one x.1 hx) C.radial_base C.radial_base_smooth |
| 1773 | | - C.operators.kappa_nonneg (HarmonicWaveInteraction.class_lift C.operators.radialProfile) |
| 1774 | | - C.operators.radialFrequency C.operators.fastCoefficient C.frequency_bound C.inverse_frequency |
| 1775 | | - C.covariance C.mask_bound |
| 1776 | | - rw [C.envelope_eq] at he |
| 1777 | | - exact he |
| 1778 | | - |
| 1779 | | -theorem inputs : PrimaryResidualClass.Inputs s (envelope F χ j) ChartScales.kappa c |
| 1780 | | - (piece F pref s c χ b frequency T mask cutoff j).coefficients cutoff kp := by |
| 1781 | | - let st := HarmonicWaveInteraction.productStrip s |
| 1782 | | - let dirs := PrimaryResidualClass.directions c |
| 1783 | | - let a := PrimaryMaterialDefect.coefficients (F j) b χ 0 0 frequency |
| 1784 | | - have hV (n : ℕ) (x : D × ℝ) (hx : x.1 ∈ s.domain) : |
| 1785 | | - (χ n x).1 ∈ U.carrier n ∧ (χ n x).2.2 ∈ (F j).V n := |
| 1786 | | - ⟨(C.chart_range n x hx).1, (F j).interval n |
| 1787 | | - ⟨(C.chart_range n x hx).2.1.le, (C.chart_range n x hx).2.2.le⟩⟩ |
| 1788 | | - have ha := native_angularInputs F pref st dirs χ b frequency T mask cutoff j C.angle |
| 1789 | | - C.chart_smooth (fun n x hx => (C.chart_range n x hx).1) C.target_angle C.mask_angle |
| 1790 | | - C.cutoff_angle (PrimaryResidualClass.invariant_fst c.operators.radialProfile) |
| 1791 | | - have hn := native_normal_jets (F j) st dirs χ b 0 0 frequency C.coordinates C.native_jets C.scale hV C.epsilon |
| 1792 | | - have hsolve := native_principal_zero F pref st dirs χ b frequency T mask j C.coordinates C.scale |
| 1793 | | - C.normalized_jets C.chart_range C.epsilon C.viscosity C.covariance C.mask_bound C.slow_frozen |
| 1794 | | - C.target_frozen C.mask_frozen C.clock C.frequency_ne |
| 1795 | | - refine { |
| 1796 | | - matching := ⟨C.matching.epsilon, C.matching.radius, C.matching.base⟩ |
| 1797 | | - operators := C.operators |
| 1798 | | - loss_le := by norm_num [ChartScales.kappa] |
| 1799 | | - coefficients := C.inputBounds |
| 1800 | | - cutoff := C.cutoff_bound |
| 1801 | | - angular := { |
| 1802 | | - radius := ha.radius |
| 1803 | | - radialBase := ha.radial_base |
| 1804 | | - frequencyBase := ha.frequency_base |
| 1805 | | - axialBase := ha.axial_base |
| 1806 | | - phase := fun n => ⟨(F j).phase.p n, ha.phase n⟩ |
| 1807 | | - amplitude := ha.amplitude j |
| 1808 | | - pressure := ha.pressure j |
| 1809 | | - cutoff := C.cutoff_angle } |
| 1810 | | - phase_smooth := ha.phase_smooth |
| 1811 | | - phase_split := ?_ |
| 1812 | | - frequency_ne := C.frequency_ne |
| 1813 | | - angular_ne := C.angular_ne |
| 1814 | | - normal_jets := hn |
| 1815 | | - normal_bounds := ⟨(F j).b, (F j).M ^ 2 + 3 * (F j).M, (F j).b_pos, ?_, ?_⟩ |
| 1816 | | - inverse_frequency := C.inverse_frequency |
| 1817 | | - geometry := C.geometry |
| 1818 | | - tangent := ?_ |
| 1819 | | - principal_zero := fun n x hx _ => hsolve n x hx |
| 1820 | | - profile_nonneg := ?_ |
| 1821 | | - profile_le_one := ?_ |
| 1822 | | - radius_pos := ?_ } |
| 1823 | | - · intro n x θ |
| 1824 | | - have hh := CopyAngularInvariance.affinePhase_eq_zeroSlice (ha.phase n) x θ |
| 1825 | | - change frequency n * a.phase n (x, θ) = frequency n * a.phase n (x, 0) + _ |
| 1826 | | - rw [hh, mul_add, ← mul_assoc, C.angular_frequency n] |
| 1827 | | - · intro n x hx |
| 1828 | | - exact (native_normal_range (F j) st dirs χ b 0 0 frequency C.coordinates hV C.epsilon n hx).1 |
| 1829 | | - · intro n x hx |
| 1830 | | - exact (native_normal_range (F j) st dirs χ b 0 0 frequency C.coordinates hV C.epsilon n hx).2 |
| 1831 | | - · intro n x hx |
| 1832 | | - exact native_tangent F pref st dirs χ b frequency T mask j C.coordinates hV C.epsilon n hx |
| 1833 | | - · intro n x hx |
| 1834 | | - exact (PrimaryPulseBounds.referenceP_pos _ _ _ _).le |
| 1835 | | - · intro n x hx |
| 1836 | | - change PrimaryPulseBounds.referenceP _ _ _ ((F j).L n * (pulseCoordinates (F j) χ n (x, 0)).2) ≤ 1 |
| 1837 | | - rw [pulseCoordinates_scaled] |
| 1838 | | - exact PrimaryPulseBounds.referenceP_le_one ((F j).lam_pos n) ((F j).u_pos n) ((F j).L_pos n) |
| 1839 | | - ⟨(C.chart_range n (x, 0) hx).2.1.le, (C.chart_range n (x, 0) hx).2.2.le⟩ |
| 1840 | | - · intro x hx |
| 1841 | | - have hr := congrArg (fun f : ℕ → D × ℝ → ℝ => f 0 (x, 0)) C.matching.radius |
| 1842 | | - change (χ 0 (x, 0)).1.1 = c.operators.radius x at hr |
| 1843 | | - rw [← hr] |
| 1844 | | - exact C.radius_pos 0 (x, 0) hx |
| 1845 | | - |
| 1846 | 1142 | end Control |
| 1847 | 1143 | |
| 1848 | 1144 | end NativeResidual |