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.CorrectionInitialization |
| 2 | import NavierStokes.PhysicalCurlCovariance |
| 3 | import NavierStokes.TemporalStateCoherence |
| 4 | |
| 5 | /-! |
| 6 | # Coherence of the constructed primary waves |
| 7 | |
| 8 | The phase, coefficient, cutoff, and chart in this file are the actual |
| 9 | `CorrectionInitialization.ActualPrimary` constructors. Their differentiated |
| 10 | curl correction and Gaussian term are transported on the whole free lift. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.ActualPrimaryCoherence |
| 16 | |
| 17 | open Set Function Filter HarmonicCalculus |
| 18 | open scoped Topology ContDiff InnerProductSpace |
| 19 | |
| 20 | open CorrectionInitialization |
| 21 | open CorrectionInitialization.ActualPrimary |
| 22 | |
| 23 | section ExactCalculus |
| 24 | |
| 25 | variable {E F : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 26 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 27 | |
| 28 | /-- An invertible chart transports the actual derivative, including at |
| 29 | points where Lean's derivative is defined to be zero. -/ |
| 30 | theorem phaseNormal_equiv (e : E ≃L[ℝ] F) {l : ℝ} (hl : l ≠ 0) |
| 31 | (r : E → ℝ) (R : F → ℝ) (Sr St Sz : E → E) (Vr Vt Vz : F → F) |
| 32 | (hr : ∀ x, R (e x) = l * r x) |
| 33 | (hDr : ∀ x, e (Sr x) = l • Vr (e x)) |
| 34 | (hDt : ∀ x, e (St x) = Vt (e x)) |
| 35 | (hDz : ∀ x, e (Sz x) = l • Vz (e x)) (b : ℝ) (Φ : F → ℝ) (x : E) : |
| 36 | phaseNormal r Sr St Sz (fun y => b * Φ (e y)) x = |
| 37 | (b*l) • phaseNormal R Vr Vt Vz Φ (e x) := by |
| 38 | have hd1 := PhysicalResidualNaturality.along_pull e b l Sr Vr Φ x (hDr x) |
| 39 | have hd2 := PhysicalResidualNaturality.along_pull e b 1 St Vt Φ x (by simpa using hDt x) |
| 40 | have hd3 := PhysicalResidualNaturality.along_pull e b l Sz Vz Φ x (hDz x) |
| 41 | simp only [smul_eq_mul, mul_one] at hd1 hd2 hd3 |
| 42 | have hcancel (z : ℝ) : l * (b * (l⁻¹ * z)) = b*z := by |
| 43 | rw [mul_left_comm l b, mul_inv_cancel_left₀ hl] |
| 44 | ext i |
| 45 | fin_cases i <;> simp [phaseNormal, hd1, hd2, hd3, |
| 46 | smul_eq_mul, hr, div_eq_mul_inv, mul_inv_rev] |
| 47 | ring_nf |
| 48 | simp only [mul_left_comm, mul_comm] |
| 49 | simp only [hcancel] |
| 50 | |
| 51 | theorem cylindricalCurl_equiv (e : E ≃L[ℝ] F) {l : ℝ} (hl : l ≠ 0) |
| 52 | (r : E → ℝ) (R : F → ℝ) (Sr St Sz : E → E) (Vr Vt Vz : F → F) |
| 53 | (hr : ∀ x, R (e x) = l * r x) |
| 54 | (hDr : ∀ x, e (Sr x) = l • Vr (e x)) |
| 55 | (hDt : ∀ x, e (St x) = Vt (e x)) |
| 56 | (hDz : ∀ x, e (Sz x) = l • Vz (e x)) (c : ℝ) (a : F → ComplexVector) (x : E) : |
| 57 | CurlClassBounds.cylindricalCurl r Sr St Sz (fun y => c • a (e y)) x = |
| 58 | (c*l) • CurlClassBounds.cylindricalCurl R Vr Vt Vz a (e x) := by |
| 59 | have hd1 i := PhysicalResidualNaturality.along_pull e c l Sr Vr (fun y => a y i) x (hDr x) |
| 60 | have hd2 i := PhysicalResidualNaturality.along_pull e c 1 St Vt (fun y => a y i) x (by simpa using hDt x) |
| 61 | have hd3 i := PhysicalResidualNaturality.along_pull e c l Sz Vz (fun y => a y i) x (hDz x) |
| 62 | have hc : (l : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hl |
| 63 | simp only [Complex.real_smul, mul_one, Complex.ofReal_mul] at hd1 hd2 hd3 |
| 64 | have hcancel (z : ℂ) : (l:ℂ) * ((c:ℂ) * ((l:ℂ)⁻¹ * z)) = (c:ℂ)*z := by |
| 65 | rw [mul_left_comm (l:ℂ) (c:ℂ), mul_inv_cancel_left₀ hc] |
| 66 | ext i |
| 67 | fin_cases i <;> simp [CurlClassBounds.cylindricalCurl, Pi.smul_apply, |
| 68 | hd1, hd2, hd3, Complex.real_smul, |
| 69 | hr, Complex.ofReal_mul, mul_inv_rev] <;> ring_nf <;> |
| 70 | simp [mul_assoc, mul_comm, hc] |
| 71 | |
| 72 | theorem realizedCoefficient_equiv (e : E ≃L[ℝ] F) {l b K L : ℝ} |
| 73 | (hl : l ≠ 0) (hb : b ≠ 0) (hK : K ≠ 0) (hKL : K*b = L) |
| 74 | (r : E → ℝ) (R : F → ℝ) (Sr St Sz : E → E) (Vr Vt Vz : F → F) |
| 75 | (hr : ∀ x, R (e x) = l * r x) |
| 76 | (hDr : ∀ x, e (Sr x) = l • Vr (e x)) |
| 77 | (hDt : ∀ x, e (St x) = Vt (e x)) |
| 78 | (hDz : ∀ x, e (Sz x) = l • Vz (e x)) (c : ℝ) |
| 79 | (Φ : F → ℝ) (a : F → ComplexVector) (x : E) : |
| 80 | CurlClassBounds.realizedCoefficient K r Sr St Sz |
| 81 | (fun y => b * Φ (e y)) (fun y => c • a (e y)) x = |
| 82 | c • CurlClassBounds.realizedCoefficient L R Vr Vt Vz Φ a (e x) := by |
| 83 | have hcoef : CurlClassBounds.coefficient r Sr St Sz |
| 84 | (fun y => b * Φ (e y)) (fun y => c • a (e y)) = |
| 85 | fun y => (c/(b*l)) • CurlClassBounds.coefficient R Vr Vt Vz Φ a (e y) := by |
| 86 | funext y |
| 87 | unfold CurlClassBounds.coefficient |
| 88 | rw [phaseNormal_equiv e hl r R Sr St Sz Vr Vt Vz hr hDr hDt hDz] |
| 89 | exact PhysicalCurlCovariance.normalCoefficient_scale _ _ (mul_ne_zero hb hl) c |
| 90 | rw [CurlClassBounds.realizedCoefficient, hcoef, CurlClassBounds.curlRemainder, |
| 91 | cylindricalCurl_equiv e hl r R Sr St Sz Vr Vt Vz hr hDr hDt hDz] |
| 92 | have hs : (1/K) * (c/(b*l)*l) = c * (1/L) := by |
| 93 | rw [← hKL] |
| 94 | field_simp |
| 95 | simp only [CurlClassBounds.realizedCoefficient, CurlClassBounds.curlRemainder, |
| 96 | smul_add, smul_comm Complex.I, smul_smul, hs] |
| 97 | |
| 98 | end ExactCalculus |
| 99 | |
| 100 | /-! ## The literal absolute chart and its directions -/ |
| 101 | |
| 102 | abbrev ChartPoint := LocalSignedRequest.Point × ℝ |
| 103 | abbrev Absolute := AbsolutePoint × ℝ |
| 104 | |
| 105 | noncomputable def absoluteChart (n : ℕ) : ChartPoint ≃L[ℝ] Absolute where |
| 106 | toFun x := (toAbsolute n x.1, x.2) |
| 107 | invFun x := (fromAbsolute n x.1, x.2) |
| 108 | left_inv x := Prod.ext (fromAbsolute_toAbsolute n x.1) rfl |
| 109 | right_inv x := Prod.ext (toAbsolute_fromAbsolute n x.1) rfl |
| 110 | map_add' x y := by ext <;> simp [toAbsolute, mul_add] |
| 111 | map_smul' c x := by ext <;> simp [toAbsolute, mul_assoc, mul_comm] |
| 112 | continuous_toFun := ((toAbsolute_smooth n).continuous.comp continuous_fst).prodMk continuous_snd |
| 113 | continuous_invFun := ((fromAbsolute_smooth n).continuous.comp continuous_fst).prodMk continuous_snd |
| 114 | |
| 115 | @[simp] theorem absoluteChart_apply (n : ℕ) (x : ChartPoint) : |
| 116 | absoluteChart n x = (toAbsolute n x.1, x.2) := rfl |
| 117 | |
| 118 | @[simp] theorem absoluteChart_symm_apply (n : ℕ) (x : Absolute) : |
| 119 | (absoluteChart n).symm x = (fromAbsolute n x.1, x.2) := rfl |
| 120 | |
| 121 | noncomputable def absoluteRadius (x : Absolute) : ℝ := x.1.1.1 |
| 122 | |
| 123 | noncomputable def absoluteRadial (x : Absolute) : Absolute := |
| 124 | (((1,(0,0)), RadialPullback.radialJacobian (ChartScales.radialExponent h) x.1.1.1 • radialVector), 0) |
| 125 | |
| 126 | noncomputable def absoluteAxial (_ : Absolute) : Absolute := (((0,(1,0)),0),0) |
| 127 | noncomputable def absoluteAngular (_ : Absolute) : Absolute := (0,1) |
| 128 | noncomputable def absoluteFast (_ : Absolute) : Absolute := (((0,(0,0)),temporalVector),0) |
| 129 | |
| 130 | theorem cover_inverse_radial (i : ℕ) (a : ℝ) : |
| 131 | (CommonCoverSolve.coverPower i).symm ((ChartScales.Lambda^i * a) • radialVector) = a • radialVector := by |
| 132 | apply (CommonCoverSolve.coverPower i).injective |
| 133 | rw [ContinuousLinearEquiv.apply_symm_apply, map_smul] |
| 134 | rw [show CommonCoverSolve.coverPower i radialVector = ChartScales.Lambda^i • radialVector from |
| 135 | CommonBaseContext.coverPower_radial i, smul_smul] |
| 136 | congr 1 |
| 137 | ring |
| 138 | |
| 139 | theorem cover_inverse_temporal (i : ℕ) (a : ℝ) : |
| 140 | (CommonCoverSolve.coverPower i).symm ((ChartScales.Tg^i * a) • temporalVector) = a • temporalVector := by |
| 141 | apply (CommonCoverSolve.coverPower i).injective |
| 142 | rw [ContinuousLinearEquiv.apply_symm_apply, map_smul] |
| 143 | rw [show CommonCoverSolve.coverPower i temporalVector = ChartScales.Tg^i • temporalVector from |
| 144 | CommonBaseContext.coverPower_temporal i, smul_smul] |
| 145 | congr 1 |
| 146 | ring |
| 147 | |
| 148 | theorem sqrt_radialJacobian {q : ℝ} (hq : 0 < q) (d R : ℝ) : |
| 149 | q^(d/2) * RadialPullback.radialJacobian d R = |
| 150 | Real.sqrt q * RadialPullback.radialJacobian d (Real.sqrt q * R) := by |
| 151 | simp only [RadialPullback.radialJacobian, |
| 152 | TemporalStateCoherence.mul_rpow_pos_left (Real.sqrt_pos.mpr hq)] |
| 153 | rw [Real.sqrt_eq_rpow, ← Real.rpow_mul hq.le] |
| 154 | have he : q^(d/2) = q^(1/2:ℝ) * q^((1/2:ℝ)*(d-1)) := by |
| 155 | rw [← Real.rpow_add hq] |
| 156 | congr 1 |
| 157 | ring |
| 158 | rw [he] |
| 159 | ring |
| 160 | |
| 161 | theorem absoluteChart_radius (n : ℕ) (x : ChartPoint) : |
| 162 | absoluteRadius (absoluteChart n x) = Real.sqrt (ChartScales.Q n) * x.1.1 := rfl |
| 163 | |
| 164 | theorem absoluteChart_radial (B n : ℕ) (x : ChartPoint) : |
| 165 | absoluteChart n ((PrimaryResidualClass.directions (commonContext B)).radialField n x) = |
| 166 | Real.sqrt (ChartScales.Q n) • absoluteRadial (absoluteChart n x) := by |
| 167 | have he : (PrimaryResidualClass.directions (commonContext B)).radialField n x = |
| 168 | ((1, ((0,0), ((ChartScales.Lambda ^ CommonWindow.index h n * |
| 169 | ChartScales.Q n ^ (ChartScales.radialExponent h / 2)) * |
| 170 | RadialPullback.radialJacobian (ChartScales.radialExponent h) x.1.1) • radialVector)),0) := by |
| 171 | simp [LinearWaveBounds.GraphDirections.radialField, PrimaryResidualClass.directions, |
| 172 | commonContext, CommonBaseContext.context, CommonBaseContext.operators, |
| 173 | CorrectionState.graphOperators, CommonBaseContext.reconstruction, |
| 174 | CommonBaseContext.radialFrequency, smul_smul, radialVector] |
| 175 | rfl |
| 176 | rw [he] |
| 177 | change (toAbsolute n |
| 178 | (1, ((0,0), ((ChartScales.Lambda ^ CommonWindow.index h n * |
| 179 | ChartScales.Q n ^ (ChartScales.radialExponent h / 2)) * |
| 180 | RadialPullback.radialJacobian (ChartScales.radialExponent h) x.1.1) • radialVector)),0) = _ |
| 181 | simp only [toAbsolute, mul_zero, mul_one] |
| 182 | rw [mul_assoc, cover_inverse_radial, sqrt_radialJacobian (ChartScales.Q_pos n)] |
| 183 | simp [absoluteRadial, absoluteChart_apply, toAbsolute, smul_smul] |
| 184 | |
| 185 | theorem absoluteChart_axial (B n : ℕ) (U : LocalSignedRequest.SlowRegion (2*h)) (x : ChartPoint) : |
| 186 | absoluteChart n ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 187 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n x) = |
| 188 | Real.sqrt (ChartScales.Q n) • absoluteAxial (absoluteChart n x) := by |
| 189 | have he : ChartScales.Q n ^ CoordinateAlgebra.D h * ChartScales.Q n ^ h = Real.sqrt (ChartScales.Q n) := by |
| 190 | rw [← Real.rpow_add (ChartScales.Q_pos n), Real.sqrt_eq_rpow] |
| 191 | congr 1 |
| 192 | unfold CoordinateAlgebra.D |
| 193 | ring |
| 194 | have hx : (PrimaryResidualClass.directions (commonContext B)).axialField |
| 195 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n x = |
| 196 | ((0, ((0,ChartScales.Q n ^ h),0)),0) := by |
| 197 | change ChartScales.Q n ^ h • ((0, ((0,1),0)),0) = _ |
| 198 | simp |
| 199 | rw [hx] |
| 200 | change (toAbsolute n (0, ((0,ChartScales.Q n ^ h),0)),0) = _ |
| 201 | simp [toAbsolute, absoluteAxial, he] |
| 202 | |
| 203 | theorem absoluteChart_angular (B n : ℕ) (x : ChartPoint) : |
| 204 | absoluteChart n (PrimaryResidualClass.directions (commonContext B)).angular = |
| 205 | absoluteAngular (absoluteChart n x) := by |
| 206 | change (toAbsolute n 0,1) = (0,1) |
| 207 | simp [toAbsolute] |
| 208 | |
| 209 | theorem absoluteChart_fast (B n : ℕ) (x : ChartPoint) : |
| 210 | absoluteChart n ((PrimaryResidualClass.directions (commonContext B)).fastField n x) = |
| 211 | ChartScales.Q n ^ (1+h) • absoluteFast (absoluteChart n x) := by |
| 212 | have he : (PrimaryResidualClass.directions (commonContext B)).fastField n x = |
| 213 | ((0, ((0,0), (ChartScales.Tg ^ CommonWindow.index h n * |
| 214 | ChartScales.Q n ^ (1+h)) • temporalVector)),0) := by |
| 215 | simp [LinearWaveBounds.GraphDirections.fastField, PrimaryResidualClass.directions, |
| 216 | commonContext, CommonBaseContext.context, CommonBaseContext.operators, |
| 217 | CorrectionState.graphOperators, CommonBaseContext.fastCoefficient, temporalVector] |
| 218 | rfl |
| 219 | rw [he] |
| 220 | change (toAbsolute n (0, ((0,0), |
| 221 | (ChartScales.Tg ^ CommonWindow.index h n * ChartScales.Q n ^ (1+h)) • temporalVector)),0) = _ |
| 222 | simp only [toAbsolute, mul_zero] |
| 223 | rw [cover_inverse_temporal] |
| 224 | simp [absoluteFast] |
| 225 | |
| 226 | /-! ## The actual cut coefficient, corrected wave, and Gaussian field -/ |
| 227 | |
| 228 | variable {B N0 : ℕ} |
| 229 | |
| 230 | noncomputable def absoluteCutAmplitude (j : Fin 2) (L : Label B N0) (x : Absolute) : ComplexVector := |
| 231 | periodicGaussian j L x.1.2 • absoluteAmplitude j L x.1 |
| 232 | |
| 233 | noncomputable def absoluteExactAmplitude (j : Fin 2) (L : Label B N0) : Absolute → ComplexVector := |
| 234 | CurlClassBounds.realizedCoefficient 1 absoluteRadius absoluteRadial absoluteAngular absoluteAxial |
| 235 | (absolutePhase j L) (absoluteCutAmplitude j L) |
| 236 | |
| 237 | noncomputable def absoluteVelocity (j : Fin 2) (L : Label B N0) (x : Absolute) : Fin 3 → ℝ := |
| 238 | fun i => (vectorMode 1 (absolutePhase j L) (absoluteExactAmplitude j L) x i).re |
| 239 | |
| 240 | noncomputable def absoluteGaussianCoefficient (j : Fin 2) (L : Label B N0) (x : Absolute) : ComplexVector := |
| 241 | along absoluteFast (fun y => periodicGaussian j L y.1.2) x • absoluteAmplitude j L x.1 |
| 242 | |
| 243 | noncomputable def absoluteGaussian (j : Fin 2) (L : Label B N0) (x : Absolute) : Fin 3 → ℝ := |
| 244 | fun i => (vectorMode 1 (absolutePhase j L) (absoluteGaussianCoefficient j L) x i).re |
| 245 | |
| 246 | theorem cutAmplitude_representation (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 247 | ((chartCoefficients j L).withCutoff (chartCutoff j L)).amplitude n = |
| 248 | fun x => ChartScales.Q n ^ CoordinateAlgebra.A h • absoluteCutAmplitude j L (absoluteChart n x) := by |
| 249 | funext x |
| 250 | simp only [LinearWaveBounds.WaveCoefficients.withCutoff, chartCutoff, chartCoefficients, |
| 251 | absoluteCutAmplitude, absoluteChart_apply, smul_smul] |
| 252 | rw [mul_comm] |
| 253 | |
| 254 | theorem phase_representation (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 255 | (chartCoefficients j L).phase n = |
| 256 | fun x => (1 / (ChartScales.carrier h n : ℝ)) * absolutePhase j L (absoluteChart n x) := by |
| 257 | funext x |
| 258 | simp [chartCoefficients, absoluteChart_apply, div_eq_mul_inv, mul_comm] |
| 259 | |
| 260 | /-- Full-fiber transport of the coefficient actually used by the iteration. |
| 261 | No equality of corrected fields, nor a tangency assertion, is an input. -/ |
| 262 | theorem exactAmplitude_representation (U : LocalSignedRequest.SlowRegion (2*h)) |
| 263 | (j : Fin 2) (L : Label B N0) (n : ℕ) (x : ChartPoint) : |
| 264 | (piece U j L).exactCoefficients.amplitude n x = |
| 265 | ChartScales.Q n ^ CoordinateAlgebra.A h • absoluteExactAmplitude j L (absoluteChart n x) := by |
| 266 | have hk : (ChartScales.carrier h n : ℝ) ≠ 0 := (chartCoefficients_frequency_pos j L n).ne' |
| 267 | change CurlClassBounds.realizedCoefficient (ChartScales.carrier h n) (fun y : ChartPoint => y.1.1) |
| 268 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 269 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 270 | ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 271 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n) |
| 272 | ((chartCoefficients j L).phase n) |
| 273 | (((chartCoefficients j L).withCutoff (chartCutoff j L)).amplitude n) x = _ |
| 274 | rw [phase_representation, cutAmplitude_representation] |
| 275 | exact realizedCoefficient_equiv (absoluteChart n) (Real.sqrt_pos.mpr (ChartScales.Q_pos n)).ne' |
| 276 | (one_div_ne_zero hk) hk (mul_one_div_cancel hk) _ _ _ _ _ _ _ _ |
| 277 | (absoluteChart_radius n) (absoluteChart_radial B n) (absoluteChart_angular B n) |
| 278 | (absoluteChart_axial B n U) _ _ _ x |
| 279 | |
| 280 | theorem piece_velocity_representation (U : LocalSignedRequest.SlowRegion (2*h)) |
| 281 | (j : Fin 2) (L : Label B N0) (n : ℕ) (x : ChartPoint) : |
| 282 | (piece U j L).velocity n x = |
| 283 | ChartScales.Q n ^ CoordinateAlgebra.A h • absoluteVelocity j L (absoluteChart n x) := by |
| 284 | funext i |
| 285 | change ((piece U j L).exactCoefficients.amplitude n x i * |
| 286 | carrier ((chartCoefficients j L).frequency n) ((chartCoefficients j L).phase n) x).re = _ |
| 287 | rw [exactAmplitude_representation, chartCoefficients_carrier] |
| 288 | simp only [absoluteVelocity, vectorMode, mode, Pi.smul_apply, Complex.real_smul, |
| 289 | absoluteChart_apply, smul_eq_mul, Complex.mul_re, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, |
| 290 | zero_mul, add_zero] |
| 291 | ring |
| 292 | |
| 293 | theorem gaussianCoefficient_representation (U : LocalSignedRequest.SlowRegion (2*h)) |
| 294 | (j : Fin 2) (L : Label B N0) (n : ℕ) (x : ChartPoint) : |
| 295 | LinearWaveBounds.excludedSlotError (piece U j L).directions (piece U j L).cutoff |
| 296 | (piece U j L).coefficients.amplitude 0 n x = |
| 297 | ChartScales.Q n ^ (2 * CoordinateAlgebra.A h + 1/2) • absoluteGaussianCoefficient j L (absoluteChart n x) := by |
| 298 | have hd := PhysicalResidualNaturality.along_pull (absoluteChart n) 1 |
| 299 | (ChartScales.Q n ^ (1+h)) ((PrimaryResidualClass.directions (commonContext B)).fastField n) |
| 300 | absoluteFast (fun y => periodicGaussian j L y.1.2) x (absoluteChart_fast B n x) |
| 301 | simp only [one_mul, smul_eq_mul, absoluteChart_apply] at hd |
| 302 | have hs : ChartScales.Q n ^ (1+h) * ChartScales.Q n ^ CoordinateAlgebra.A h = |
| 303 | ChartScales.Q n ^ (2 * CoordinateAlgebra.A h + 1/2) := by |
| 304 | rw [← Real.rpow_add (ChartScales.Q_pos n)] |
| 305 | congr 1 |
| 306 | unfold CoordinateAlgebra.A |
| 307 | ring |
| 308 | change along ((PrimaryResidualClass.directions (commonContext B)).fastField n) |
| 309 | (fun y => periodicGaussian j L (toAbsolute n y.1).2) x • |
| 310 | (ChartScales.Q n ^ CoordinateAlgebra.A h • absoluteAmplitude j L (toAbsolute n x.1)) + (1 - _) • (0 : ComplexVector) = _ |
| 311 | rw [smul_zero, add_zero] |
| 312 | rw [hd] |
| 313 | simp only [absoluteGaussianCoefficient, smul_smul, absoluteChart_apply] |
| 314 | rw [mul_right_comm, hs] |
| 315 | |
| 316 | theorem piece_excluded_representation (U : LocalSignedRequest.SlowRegion (2*h)) |
| 317 | (j : Fin 2) (L : Label B N0) (n : ℕ) (x : ChartPoint) : |
| 318 | (piece U j L).excluded n x = |
| 319 | ChartScales.Q n ^ (2 * CoordinateAlgebra.A h + 1/2) • absoluteGaussian j L (absoluteChart n x) := by |
| 320 | funext i |
| 321 | change (LinearWaveBounds.excludedSlotError (piece U j L).directions (piece U j L).cutoff |
| 322 | (piece U j L).coefficients.amplitude 0 n x i * |
| 323 | carrier ((chartCoefficients j L).frequency n) ((chartCoefficients j L).phase n) x).re = _ |
| 324 | rw [gaussianCoefficient_representation, chartCoefficients_carrier] |
| 325 | simp only [absoluteGaussian, vectorMode, mode, Pi.smul_apply, Complex.real_smul, |
| 326 | absoluteChart_apply, smul_eq_mul, Complex.mul_re, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, |
| 327 | zero_mul, add_zero] |
| 328 | ring |
| 329 | |
| 330 | /-! ## Exact comparison of two genuine common-cover bands -/ |
| 331 | |
| 332 | theorem band_power_cancel (n m : ℕ) (a : ℝ) : |
| 333 | ChartScales.Q m ^ a * (ChartScales.Q n / ChartScales.Q m) ^ a = ChartScales.Q n ^ a := by |
| 334 | rw [Real.div_rpow (ChartScales.Q_pos n).le (ChartScales.Q_pos m).le] |
| 335 | exact mul_div_cancel₀ _ (Real.rpow_pos_of_pos (ChartScales.Q_pos m) a).ne' |
| 336 | |
| 337 | theorem toAbsolute_bandChart (n m k : ℕ) |
| 338 | (hi : CommonWindow.index h n + k = CommonWindow.index h m) (x : LocalSignedRequest.Point) : |
| 339 | toAbsolute m (GaugeStateCoherence.bandChartEquiv h n m k x) = toAbsolute n x := by |
| 340 | simp only [GaugeStateCoherence.bandChartEquiv_apply, toAbsolute, |
| 341 | GaugeStateCoherence.bandSlowEquiv_apply] |
| 342 | apply Prod.ext |
| 343 | · apply Prod.ext |
| 344 | · change Real.sqrt (ChartScales.Q m) * (GaugeStateCoherence.bandScale n m * x.1) = |
| 345 | Real.sqrt (ChartScales.Q n) * x.1 |
| 346 | rw [Real.sqrt_eq_rpow, Real.sqrt_eq_rpow, ← mul_assoc] |
| 347 | rw [GaugeStateCoherence.bandScale, band_power_cancel] |
| 348 | · apply Prod.ext |
| 349 | · change ChartScales.Q m ^ CoordinateAlgebra.D h * |
| 350 | ((ChartScales.Q n / ChartScales.Q m) ^ CoordinateAlgebra.D h * x.2.1.2) = _ |
| 351 | rw [← mul_assoc, band_power_cancel] |
| 352 | · change ChartScales.Q m * ((ChartScales.Q n / ChartScales.Q m) * x.2.1.1) = _ |
| 353 | rw [← mul_assoc, mul_div_cancel₀ _ (ChartScales.Q_pos m).ne'] |
| 354 | · change (CommonCoverSolve.coverPower (CommonWindow.index h m)).symm |
| 355 | (TemporalMeanUpdate.coverMap k x.2.2) = _ |
| 356 | apply (CommonCoverSolve.coverPower (CommonWindow.index h m)).injective |
| 357 | rw [ContinuousLinearEquiv.apply_symm_apply, ← hi, Nat.add_comm, |
| 358 | CopySolveCompatibility.coverPower_add, ContinuousLinearEquiv.apply_symm_apply, |
| 359 | MeanChartCompatibility.coverMap_eq_coverPower] |
| 360 | |
| 361 | theorem piece_velocity_band (U : LocalSignedRequest.SlowRegion (2*h)) |
| 362 | (j : Fin 2) (L : Label B N0) (n m k : ℕ) |
| 363 | (hi : CommonWindow.index h n + k = CommonWindow.index h m) (x : ChartPoint) : |
| 364 | (piece U j L).velocity n x = GaugeStateCoherence.bandVelocityScale h n m • |
| 365 | (piece U j L).velocity m (GaugeStateCoherence.bandChartEquiv h n m k x.1,x.2) := by |
| 366 | rw [piece_velocity_representation, piece_velocity_representation] |
| 367 | simp only [absoluteChart_apply, toAbsolute_bandChart n m k hi, smul_smul] |
| 368 | congr 1 |
| 369 | rw [GaugeStateCoherence.bandVelocityScale, mul_comm, band_power_cancel] |
| 370 | |
| 371 | theorem band_pressure_cancel (n m : ℕ) : |
| 372 | (GaugeStateCoherence.bandVelocityScale h n m * GaugeStateCoherence.bandVelocityScale h n m) * |
| 373 | ChartScales.Q m ^ (2 * CoordinateAlgebra.A h) = ChartScales.Q n ^ (2 * CoordinateAlgebra.A h) := by |
| 374 | rw [GaugeStateCoherence.bandVelocityScale, ← Real.rpow_add (div_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m))] |
| 375 | rw [show CoordinateAlgebra.A h + CoordinateAlgebra.A h = 2 * CoordinateAlgebra.A h by ring, |
| 376 | mul_comm, band_power_cancel] |
| 377 | |
| 378 | theorem band_source_cancel (n m : ℕ) : |
| 379 | (GaugeStateCoherence.bandVelocityScale h n m * GaugeStateCoherence.bandVelocityScale h n m * |
| 380 | GaugeStateCoherence.bandScale n m) * ChartScales.Q m ^ (2 * CoordinateAlgebra.A h + 1/2) = |
| 381 | ChartScales.Q n ^ (2 * CoordinateAlgebra.A h + 1/2) := by |
| 382 | rw [GaugeStateCoherence.bandVelocityScale, GaugeStateCoherence.bandScale, |
| 383 | ← Real.rpow_add (div_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m)), |
| 384 | ← Real.rpow_add (div_pos (ChartScales.Q_pos n) (ChartScales.Q_pos m))] |
| 385 | rw [show CoordinateAlgebra.A h + CoordinateAlgebra.A h + 1/2 = 2 * CoordinateAlgebra.A h + 1/2 by ring, |
| 386 | mul_comm, band_power_cancel] |
| 387 | |
| 388 | theorem piece_pressure_band (U : LocalSignedRequest.SlowRegion (2*h)) |
| 389 | (j : Fin 2) (L : Label B N0) (n m k : ℕ) |
| 390 | (hi : CommonWindow.index h n + k = CommonWindow.index h m) (x : ChartPoint) : |
| 391 | (piece U j L).pressure n x = |
| 392 | (GaugeStateCoherence.bandVelocityScale h n m * GaugeStateCoherence.bandVelocityScale h n m) * |
| 393 | (piece U j L).pressure m (GaugeStateCoherence.bandChartEquiv h n m k x.1,x.2) := by |
| 394 | rw [piece_pressure_representation, piece_pressure_representation, |
| 395 | toAbsolute_bandChart n m k hi, ← mul_assoc, band_pressure_cancel] |
| 396 | |
| 397 | theorem piece_excluded_band (U : LocalSignedRequest.SlowRegion (2*h)) |
| 398 | (j : Fin 2) (L : Label B N0) (n m k : ℕ) |
| 399 | (hi : CommonWindow.index h n + k = CommonWindow.index h m) (x : ChartPoint) : |
| 400 | (piece U j L).excluded n x = |
| 401 | (GaugeStateCoherence.bandVelocityScale h n m * GaugeStateCoherence.bandVelocityScale h n m * |
| 402 | GaugeStateCoherence.bandScale n m) • |
| 403 | (piece U j L).excluded m (GaugeStateCoherence.bandChartEquiv h n m k x.1,x.2) := by |
| 404 | rw [piece_excluded_representation, piece_excluded_representation] |
| 405 | simp only [absoluteChart_apply, toAbsolute_bandChart n m k hi, smul_smul] |
| 406 | rw [band_source_cancel] |
| 407 | |
| 408 | /-! ## Ordinary regularity before restricting to a bounded strip -/ |
| 409 | |
| 410 | noncomputable def positiveChart : Set ChartPoint := {x | 0 < x.1.2.1.1} |
| 411 | noncomputable def positiveRadialChart : Set ChartPoint := {x | 0 < x.1.1 ∧ 0 < x.1.2.1.1} |
| 412 | noncomputable def positiveAbsolute : Set Absolute := {x | 0 < x.1.1.2.2} |
| 413 | noncomputable def positiveRadialAbsolute : Set Absolute := {x | 0 < x.1.1.1 ∧ 0 < x.1.1.2.2} |
| 414 | |
| 415 | theorem positiveChart_open : IsOpen positiveChart := |
| 416 | isOpen_lt continuous_const continuous_fst.snd.fst.fst |
| 417 | theorem positiveRadialChart_open : IsOpen positiveRadialChart := |
| 418 | (isOpen_lt continuous_const continuous_fst.fst).inter positiveChart_open |
| 419 | theorem positiveAbsolute_open : IsOpen positiveAbsolute := |
| 420 | isOpen_lt continuous_const continuous_fst.fst.snd.snd |
| 421 | theorem positiveRadialAbsolute_open : IsOpen positiveRadialAbsolute := |
| 422 | (isOpen_lt continuous_const continuous_fst.fst.fst).inter positiveAbsolute_open |
| 423 | |
| 424 | theorem frequencySlow_smoothAt (B n : ℕ) {p : PhaseCalculus.Slow} |
| 425 | (hR : 0 < p.1) (hT : 0 < p.2.2) : |
| 426 | ContDiffAt ℝ ∞ (BaseContextAssembly.frequencySlow certificate modulation upper B n) p := by |
| 427 | have hs := (BaseContextAssembly.physicalComponent_smoothAt certificate modulation upper B n 1 |
| 428 | (x := BaseContextAssembly.insertSlow p) hT).comp p BaseContextAssembly.insertSlow.contDiff.contDiffAt |
| 429 | have he : (fun y => BaseContextAssembly.frequencySlow certificate modulation upper B n y) =ᶠ[𝓝 p] |
| 430 | (fun y => (ChartScales.Q n ^ CoordinateAlgebra.A h * |
| 431 | FinalSlowBase.velocity certificate modulation upper B |
| 432 | (BaseContextAssembly.physicalPoint h n (BaseContextAssembly.insertSlow y)) 1) / y.1) := by |
| 433 | filter_upwards [(isOpen_lt continuous_const continuous_fst).mem_nhds hR, |
| 434 | (isOpen_lt continuous_const continuous_snd.snd).mem_nhds hT] with y hyR hyT |
| 435 | have hh := BaseContextAssembly.angularBase_physical certificate modulation upper B n |
| 436 | (x := BaseContextAssembly.insertSlow y) hyT hyR |
| 437 | apply (eq_div_iff hyR.ne').mpr |
| 438 | simp only [BaseContextAssembly.base, BaseContextAssembly.frequencyBase, |
| 439 | BaseContextAssembly.frequencySlow, BaseContextAssembly.insertSlow, |
| 440 | BaseContextAssembly.slowCoordinates_apply, mul_comm] at hh ⊢ |
| 441 | exact hh |
| 442 | exact (hs.div contDiffAt_fst hR.ne').congr_of_eventuallyEq he |
| 443 | |
| 444 | theorem axialSlow_smoothAt (B n : ℕ) {p : PhaseCalculus.Slow} (hT : 0 < p.2.2) : |
| 445 | ContDiffAt ℝ ∞ (BaseContextAssembly.axialSlow certificate modulation upper B n) p := by |
| 446 | have hs := (BaseContextAssembly.physicalComponent_smoothAt certificate modulation upper B n 2 |
| 447 | (x := BaseContextAssembly.insertSlow p) hT).comp p BaseContextAssembly.insertSlow.contDiff.contDiffAt |
| 448 | have he : (fun y => BaseContextAssembly.axialSlow certificate modulation upper B n y) =ᶠ[𝓝 p] |
| 449 | (fun y => ChartScales.Q n ^ CoordinateAlgebra.A h * |
| 450 | FinalSlowBase.velocity certificate modulation upper B |
| 451 | (BaseContextAssembly.physicalPoint h n (BaseContextAssembly.insertSlow y)) 2) := by |
| 452 | filter_upwards [(isOpen_lt continuous_const continuous_snd.snd).mem_nhds hT] with y hyT |
| 453 | exact BaseContextAssembly.axialBase_physical certificate modulation upper B n |
| 454 | (x := BaseContextAssembly.insertSlow y) hyT |
| 455 | exact hs.congr_of_eventuallyEq he |
| 456 | |
| 457 | theorem absoluteAmplitude_smooth (j : Fin 2) (L : Label B N0) : |
| 458 | ContDiffOn ℝ ∞ (fun x : Absolute => absoluteAmplitude j L x.1) positiveAbsolute := by |
| 459 | have hg : ContDiff ℝ ∞ (fun x : Absolute => (nativeSlow L x.1,x.1.2)) := |
| 460 | ((nativeSlow_smooth L).comp contDiff_fst).prodMk contDiff_fst.snd |
| 461 | have hm : MapsTo (fun x : Absolute => (nativeSlow L x.1,x.1.2)) positiveAbsolute |
| 462 | WaveEdgeExtension.nativeSlowDomain := by |
| 463 | intro x hx |
| 464 | exact div_pos hx (ChartScales.Q_pos _) |
| 465 | exact ((uncutAmplitude_smooth j L).comp hg.contDiffOn hm).const_smul _ |
| 466 | |
| 467 | theorem absolutePressureCoefficient_smooth (j : Fin 2) (L : Label B N0) : |
| 468 | ContDiffOn ℝ ∞ (fun x : Absolute => absolutePressure j L x.1) positiveAbsolute := by |
| 469 | have hg : ContDiff ℝ ∞ (fun x : Absolute => (nativeSlow L x.1,x.1.2)) := |
| 470 | ((nativeSlow_smooth L).comp contDiff_fst).prodMk contDiff_fst.snd |
| 471 | have hm : MapsTo (fun x : Absolute => (nativeSlow L x.1,x.1.2)) positiveAbsolute |
| 472 | WaveEdgeExtension.nativeSlowDomain := by |
| 473 | intro x hx |
| 474 | exact div_pos hx (ChartScales.Q_pos _) |
| 475 | exact ((uncutPressure_smooth j L).comp hg.contDiffOn hm).const_smul _ |
| 476 | |
| 477 | theorem absoluteCutoff_smooth (j : Fin 2) (L : Label B N0) : |
| 478 | ContDiff ℝ ∞ (fun x : Absolute => periodicGaussian j L x.1.2) := |
| 479 | (periodicGaussian_smooth j L).comp contDiff_fst.snd |
| 480 | |
| 481 | theorem absoluteCutAmplitude_smooth (j : Fin 2) (L : Label B N0) : |
| 482 | ContDiffOn ℝ ∞ (absoluteCutAmplitude j L) positiveAbsolute := |
| 483 | (absoluteCutoff_smooth j L).contDiffOn.smul (absoluteAmplitude_smooth j L) |
| 484 | |
| 485 | theorem absolutePhase_smooth (j : Fin 2) (L : Label B N0) : |
| 486 | ContDiffOn ℝ ∞ (absolutePhase j L) positiveRadialAbsolute := by |
| 487 | intro x hx |
| 488 | have hR : 0 < (nativeSlow L x.1).1 := div_pos hx.1 (Real.sqrt_pos.mpr (ChartScales.Q_pos _)) |
| 489 | have hT : 0 < (nativeSlow L x.1).2.2 := div_pos hx.2 (ChartScales.Q_pos _) |
| 490 | have hp := ((nativeSlow_smooth L).comp contDiff_fst).contDiffAt (x := x) |
| 491 | have hF : ContDiffAt ℝ ∞ (fun y : Absolute => (phases B N0 j).phase.F L (nativeSlow L y.1)) x := |
| 492 | (frequencySlow_smoothAt B _ hR hT).comp x hp |
| 493 | have hG : ContDiffAt ℝ ∞ (fun y : Absolute => (phases B N0 j).phase.G L (nativeSlow L y.1)) x := |
| 494 | (axialSlow_smoothAt B _ hT).comp x hp |
| 495 | have hc : ContDiffAt ℝ ∞ (fun y : Absolute => |
| 496 | PeriodicPhaseAssembly.periodicClock (geometry j L) (clockWindow L).cutoff y.1.2) x := |
| 497 | ((PeriodicPhaseAssembly.periodicClock_contDiff (geometry j L) (clockWindow L)).comp contDiff_fst.snd).contDiffAt |
| 498 | have hP : ContDiffAt ℝ ∞ (fun y : Absolute => periodicPhase j L (nativeSlow L y.1) y.1.2) x := |
| 499 | ((contDiffAt_const.mul hp.snd.fst).add (contDiffAt_const.mul hp.fst)).sub |
| 500 | (hc.mul ((contDiffAt_const.mul hF).add (contDiffAt_const.mul hG))) |
| 501 | exact ((contDiffAt_const.mul contDiffAt_snd).add (contDiffAt_const.mul hP)).contDiffWithinAt |
| 502 | |
| 503 | theorem absoluteRadial_smooth : ContDiffOn ℝ ∞ absoluteRadial positiveRadialAbsolute := by |
| 504 | intro x hx |
| 505 | have hr : ContDiffAt ℝ ∞ (fun y : Absolute => |
| 506 | RadialPullback.radialJacobian (ChartScales.radialExponent h) y.1.1.1) x := |
| 507 | contDiffAt_const.mul (contDiffAt_fst.fst.fst.rpow_const_of_ne hx.1.ne') |
| 508 | exact ((contDiffAt_const.prodMk (hr.smul contDiffAt_const)).prodMk contDiffAt_const).contDiffWithinAt |
| 509 | |
| 510 | noncomputable def absoluteNormal (j : Fin 2) (L : Label B N0) : Absolute → ProblemStatement.Space := |
| 511 | phaseNormal absoluteRadius absoluteRadial absoluteAngular absoluteAxial (absolutePhase j L) |
| 512 | |
| 513 | theorem absoluteNormal_smooth (j : Fin 2) (L : Label B N0) : |
| 514 | ContDiffOn ℝ ∞ (absoluteNormal j L) positiveRadialAbsolute := by |
| 515 | apply (contDiffOn_piLp 2).mpr |
| 516 | intro i |
| 517 | fin_cases i |
| 518 | · exact HarmonicCalculus.contDiffOn_along positiveRadialAbsolute_open absoluteRadial_smooth (absolutePhase_smooth j L) |
| 519 | · exact (HarmonicCalculus.contDiffOn_along positiveRadialAbsolute_open contDiffOn_const (absolutePhase_smooth j L)).div |
| 520 | contDiffOn_fst.fst.fst (fun x hx => hx.1.ne') |
| 521 | · exact HarmonicCalculus.contDiffOn_along positiveRadialAbsolute_open contDiffOn_const (absolutePhase_smooth j L) |
| 522 | |
| 523 | theorem absolutePhase_angular (j : Fin 2) (L : Label B N0) : |
| 524 | CopyAngularInvariance.AffinePhase ((0 : AbsolutePoint),1) |
| 525 | (PrimaryGeometryAssembly.angularMode certificate modulation (choice B N0).prepared j L : ℝ) |
| 526 | (absolutePhase j L) := by |
| 527 | intro x t |
| 528 | simp only [absolutePhase, Prod.fst_add, Prod.smul_fst, smul_zero, add_zero, |
| 529 | Prod.snd_add, Prod.smul_snd, smul_eq_mul, mul_one] |
| 530 | ring |
| 531 | |
| 532 | theorem absoluteNormal_ne (j : Fin 2) (L : Label B N0) {x : Absolute} |
| 533 | (hx : x ∈ positiveRadialAbsolute) : absoluteNormal j L x ≠ 0 := by |
| 534 | have hd := (absolutePhase_angular j L).directional_eq |
| 535 | (((absolutePhase_smooth j L).contDiffAt (positiveRadialAbsolute_open.mem_nhds hx)).differentiableAt (by simp)) |
| 536 | have hc : absoluteNormal j L x 1 = |
| 537 | (PrimaryGeometryAssembly.angularMode certificate modulation (choice B N0).prepared j L : ℝ) / x.1.1.1 := by |
| 538 | simpa only [absoluteNormal, phaseNormal, absoluteAngular, absoluteRadius, along, |
| 539 | PiLp.single_apply, Matrix.cons_val_one, Matrix.cons_val_zero] using congrArg (fun a : ℝ => a / x.1.1.1) hd |
| 540 | have hp : (PrimaryGeometryAssembly.angularMode certificate modulation (choice B N0).prepared j L : ℝ) ≠ 0 := |
| 541 | Int.cast_ne_zero.mpr (PrimaryGeometryAssembly.angularMode_ne_zero certificate modulation (choice B N0).prepared j L) |
| 542 | intro hz |
| 543 | have hh := congrArg (fun v : ProblemStatement.Space => v 1) hz |
| 544 | change absoluteNormal j L x 1 = 0 at hh |
| 545 | rw [hc] at hh |
| 546 | exact div_ne_zero hp hx.1.ne' hh |
| 547 | |
| 548 | theorem absoluteExactAmplitude_smooth (j : Fin 2) (L : Label B N0) : |
| 549 | ContDiffOn ℝ ∞ (absoluteExactAmplitude j L) positiveRadialAbsolute := by |
| 550 | have ha : ContDiffOn ℝ ∞ (absoluteCutAmplitude j L) positiveRadialAbsolute := |
| 551 | (absoluteCutAmplitude_smooth j L).mono (fun _ hx => hx.2) |
| 552 | have hb := CurlClassBounds.normalCoefficient_contDiffOn (absoluteNormal_smooth j L) ha |
| 553 | (fun _ hx => absoluteNormal_ne j L hx) |
| 554 | have hc := CurlClassBounds.cylindricalCurl_contDiffOn positiveRadialAbsolute_open |
| 555 | (R := absoluteRadius) (Vθ := absoluteAngular) (Vz := absoluteAxial) |
| 556 | (contDiffOn_fst.fst.fst.inv (fun x hx => hx.1.ne')) absoluteRadial_smooth |
| 557 | contDiffOn_const contDiffOn_const hb |
| 558 | exact ha.add ((hc.const_smul Complex.I).const_smul (1 / (1 : ℝ))) |
| 559 | |
| 560 | theorem absoluteVelocity_smooth_radial (j : Fin 2) (L : Label B N0) : |
| 561 | ContDiffOn ℝ ∞ (absoluteVelocity j L) positiveRadialAbsolute := by |
| 562 | apply contDiffOn_pi.mpr |
| 563 | intro i |
| 564 | exact Complex.reCLM.contDiff.comp_contDiffOn |
| 565 | (HarmonicCalculus.contDiffOn_mode 1 (absolutePhase_smooth j L) |
| 566 | (contDiffOn_pi.mp (absoluteExactAmplitude_smooth j L) i)) |
| 567 | |
| 568 | noncomputable def amplitudeRadius (L : Label B N0) (x : Absolute) : ℝ := |
| 569 | PrimaryTargetBounds.profileRadius h (nativeSlow L x.1) |
| 570 | |
| 571 | theorem amplitudeRadius_smoothAt (L : Label B N0) {x : Absolute} |
| 572 | (hx : x ∈ positiveAbsolute) : ContDiffAt ℝ ∞ (amplitudeRadius L) x := by |
| 573 | have hy : 0 < (nativeSlow L x.1).2.2 := |
| 574 | div_pos hx (ChartScales.Q_pos _) |
| 575 | have hp : ContDiffAt ℝ ∞ (fun y : Absolute => nativeSlow L y.1) x := |
| 576 | ((nativeSlow_smooth L).comp contDiff_fst).contDiffAt |
| 577 | have hq := BaseChartJets.normalizedCoordinates_q_pos outgoing.data.h_pos outgoing.data.h_lt_half hy |
| 578 | have hs := (BaseChartJets.normalizedCoordinates_smoothAt outgoing.data.h_pos outgoing.data.h_lt_half hy).comp x hp |
| 579 | exact hp.fst.div (hs.fst.sqrt hq.ne') (Real.sqrt_pos.mpr hq).ne' |
| 580 | |
| 581 | theorem absoluteAmplitude_zero_outside (j : Fin 2) (L : Label B N0) (x : Absolute) |
| 582 | (hx : amplitudeRadius L x ∉ Ioo (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal)) : |
| 583 | absoluteAmplitude j L x.1 = 0 := by |
| 584 | change _ • (∑' k : TorusInverse.Frequency, CurlClassBounds.complexify |
| 585 | (WaveEdgeExtension.nativeExtension nominal (outerRawVelocity j L) |
| 586 | (nativeSlow L x.1,(geometry j L).coordinates k x.1.2))) = 0 |
| 587 | have hz : (∑' k : TorusInverse.Frequency, CurlClassBounds.complexify |
| 588 | (WaveEdgeExtension.nativeExtension nominal (outerRawVelocity j L) |
| 589 | (nativeSlow L x.1,(geometry j L).coordinates k x.1.2))) = 0 := by |
| 590 | simpa only [tsum_zero] using (tsum_congr (fun k : TorusInverse.Frequency => |
| 591 | show CurlClassBounds.complexify (WaveEdgeExtension.nativeExtension nominal (outerRawVelocity j L) |
| 592 | (nativeSlow L x.1,(geometry j L).coordinates k x.1.2)) = 0 by |
| 593 | rw [WaveEdgeExtension.nativeExtension_outside nominal _ |
| 594 | (x := (nativeSlow L x.1,(geometry j L).coordinates k x.1.2)) hx, map_zero])) |
| 595 | rw [hz, smul_zero] |
| 596 | |
| 597 | theorem absolutePressure_zero_outside (j : Fin 2) (L : Label B N0) (x : Absolute) |
| 598 | (hx : amplitudeRadius L x ∉ Ioo (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal)) : |
| 599 | absolutePressure j L x.1 = 0 := by |
| 600 | change _ • (∑' k : TorusInverse.Frequency, |
| 601 | WaveEdgeExtension.nativeExtension nominal (outerRawPressure j L) |
| 602 | (nativeSlow L x.1,(geometry j L).coordinates k x.1.2)) = 0 |
| 603 | have hz : (∑' k : TorusInverse.Frequency, |
| 604 | WaveEdgeExtension.nativeExtension nominal (outerRawPressure j L) |
| 605 | (nativeSlow L x.1,(geometry j L).coordinates k x.1.2)) = 0 := by |
| 606 | simpa only [tsum_zero] using (tsum_congr (fun k : TorusInverse.Frequency => |
| 607 | show WaveEdgeExtension.nativeExtension nominal (outerRawPressure j L) |
| 608 | (nativeSlow L x.1,(geometry j L).coordinates k x.1.2) = 0 from |
| 609 | WaveEdgeExtension.nativeExtension_outside nominal _ hx)) |
| 610 | rw [hz, smul_zero] |
| 611 | |
| 612 | theorem absolutePair_zero_germ_outside (j : Fin 2) (L : Label B N0) {x : Absolute} |
| 613 | (hT : x ∈ positiveAbsolute) |
| 614 | (hx : amplitudeRadius L x ∉ Icc (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal)) : |
| 615 | ((fun y : Absolute => absoluteAmplitude j L y.1) =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 616 | ((fun y : Absolute => absolutePressure j L y.1) =ᶠ[𝓝 x] fun _ => 0) := by |
| 617 | have hn : ∀ᶠ y in 𝓝 x, amplitudeRadius L y ∉ |
| 618 | Icc (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal) := |
| 619 | (amplitudeRadius_smoothAt L hT).continuousAt.eventually (isClosed_Icc.isOpen_compl.mem_nhds hx) |
| 620 | constructor |
| 621 | · filter_upwards [hn] with y hy |
| 622 | exact absoluteAmplitude_zero_outside j L y (fun hh => hy ⟨hh.1.le,hh.2.le⟩) |
| 623 | · filter_upwards [hn] with y hy |
| 624 | exact absolutePressure_zero_outside j L y (fun hh => hy ⟨hh.1.le,hh.2.le⟩) |
| 625 | |
| 626 | theorem absoluteVelocity_tsupport (j : Fin 2) (L : Label B N0) : |
| 627 | tsupport (absoluteVelocity j L) ⊆ tsupport (absoluteCutAmplitude j L) := by |
| 628 | have hc : tsupport (absoluteExactAmplitude j L) ⊆ tsupport (absoluteCutAmplitude j L) := by |
| 629 | unfold absoluteExactAmplitude CurlClassBounds.realizedCoefficient CurlClassBounds.curlRemainder |
| 630 | exact (tsupport_add _ _).trans (union_subset subset_rfl |
| 631 | ((tsupport_smul_subset_right _ _).trans ((tsupport_smul_subset_right _ _).trans |
| 632 | ((CurlClassBounds.cylindricalCurl_tsupport_subset _ _ _ _ _).trans |
| 633 | (CurlClassBounds.coefficient_tsupport_subset _ _ _ _ _ _))))) |
| 634 | apply Subset.trans _ hc |
| 635 | apply closure_mono |
| 636 | intro x hx hz |
| 637 | apply hx |
| 638 | funext i |
| 639 | simp [absoluteVelocity, vectorMode, mode, hz] |
| 640 | |
| 641 | theorem absoluteVelocity_zero_germ_outside (j : Fin 2) (L : Label B N0) {x : Absolute} |
| 642 | (hT : x ∈ positiveAbsolute) |
| 643 | (hx : amplitudeRadius L x ∉ Icc (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal)) : |
| 644 | absoluteVelocity j L =ᶠ[𝓝 x] fun _ => 0 := by |
| 645 | have ha := (absolutePair_zero_germ_outside j L hT hx).1 |
| 646 | have hc : absoluteCutAmplitude j L =ᶠ[𝓝 x] fun _ => 0 := by |
| 647 | filter_upwards [ha] with y hy |
| 648 | simp [absoluteCutAmplitude, hy] |
| 649 | exact notMem_tsupport_iff_eventuallyEq.mp |
| 650 | (fun hm => (notMem_tsupport_iff_eventuallyEq.mpr hc) (absoluteVelocity_tsupport j L hm)) |
| 651 | |
| 652 | theorem amplitudeRadius_nonpositive (L : Label B N0) {x : Absolute} (hx : x.1.1.1 ≤ 0) : |
| 653 | amplitudeRadius L x ≤ 0 := by |
| 654 | change ((x.1.1.1 / Real.sqrt (ChartScales.Q (BaseChartJets.cellBand L))) / |
| 655 | Real.sqrt _) ≤ 0 |
| 656 | exact div_nonpos_of_nonpos_of_nonneg |
| 657 | (div_nonpos_of_nonpos_of_nonneg hx (Real.sqrt_nonneg _)) (Real.sqrt_nonneg _) |
| 658 | |
| 659 | theorem amplitudeRadius_outside_nonpositive (L : Label B N0) {x : Absolute} (hx : x.1.1.1 ≤ 0) : |
| 660 | amplitudeRadius L x ∉ Icc (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal) := by |
| 661 | intro hi |
| 662 | exact (not_lt_of_ge (amplitudeRadius_nonpositive L hx)) |
| 663 | ((PrimaryTargetBounds.leftRadius_pos nominal).trans_le hi.1) |
| 664 | |
| 665 | theorem absoluteVelocity_smooth (j : Fin 2) (L : Label B N0) : |
| 666 | ContDiffOn ℝ ∞ (absoluteVelocity j L) positiveAbsolute := by |
| 667 | intro x hx |
| 668 | by_cases hr : 0 < x.1.1.1 |
| 669 | · exact ((absoluteVelocity_smooth_radial j L).contDiffAt |
| 670 | (positiveRadialAbsolute_open.mem_nhds ⟨hr,hx⟩)).contDiffWithinAt |
| 671 | · exact (contDiffAt_const.congr_of_eventuallyEq |
| 672 | (absoluteVelocity_zero_germ_outside j L hx |
| 673 | (amplitudeRadius_outside_nonpositive L (le_of_not_gt hr)))).contDiffWithinAt |
| 674 | |
| 675 | theorem absolutePressureMode_smooth (j : Fin 2) (L : Label B N0) : |
| 676 | ContDiffOn ℝ ∞ (absolutePressureMode j L) positiveAbsolute := by |
| 677 | have hp : ContDiffOn ℝ ∞ (fun y : Absolute => absolutePressure j L y.1) positiveRadialAbsolute := |
| 678 | (absolutePressureCoefficient_smooth j L).mono (fun _ hx => hx.2) |
| 679 | have hs : ContDiffOn ℝ ∞ (absolutePressureMode j L) positiveRadialAbsolute := |
| 680 | Complex.reCLM.contDiff.comp_contDiffOn (HarmonicCalculus.contDiffOn_mode 1 (absolutePhase_smooth j L) |
| 681 | ((absoluteCutoff_smooth j L).contDiffOn.smul hp)) |
| 682 | intro x hx |
| 683 | by_cases hr : 0 < x.1.1.1 |
| 684 | · exact (hs.contDiffAt (positiveRadialAbsolute_open.mem_nhds ⟨hr,hx⟩)).contDiffWithinAt |
| 685 | · have hp := (absolutePair_zero_germ_outside j L hx |
| 686 | (amplitudeRadius_outside_nonpositive L (le_of_not_gt hr))).2 |
| 687 | have hz : absolutePressureMode j L =ᶠ[𝓝 x] fun _ => 0 := by |
| 688 | filter_upwards [hp] with y hy |
| 689 | simp [absolutePressureMode, mode, hy] |
| 690 | exact (contDiffAt_const.congr_of_eventuallyEq hz).contDiffWithinAt |
| 691 | |
| 692 | theorem piece_velocity_smooth (U : LocalSignedRequest.SlowRegion (2*h)) |
| 693 | (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 694 | ContDiffOn ℝ ∞ ((piece U j L).velocity n) positiveChart := by |
| 695 | have hm : MapsTo (absoluteChart n) positiveChart positiveAbsolute := by |
| 696 | intro x hx |
| 697 | exact mul_pos (ChartScales.Q_pos n) hx |
| 698 | exact (((absoluteVelocity_smooth j L).comp (absoluteChart n).contDiff.contDiffOn hm).const_smul |
| 699 | (ChartScales.Q n ^ CoordinateAlgebra.A h)).congr |
| 700 | (fun x _ => piece_velocity_representation U j L n x) |
| 701 | |
| 702 | theorem piece_pressure_smooth (U : LocalSignedRequest.SlowRegion (2*h)) |
| 703 | (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 704 | ContDiffOn ℝ ∞ ((piece U j L).pressure n) positiveChart := by |
| 705 | have hm : MapsTo (absoluteChart n) positiveChart positiveAbsolute := by |
| 706 | intro x hx |
| 707 | exact mul_pos (ChartScales.Q_pos n) hx |
| 708 | exact (contDiffOn_const.mul |
| 709 | ((absolutePressureMode_smooth j L).comp (absoluteChart n).contDiff.contDiffOn hm)).congr |
| 710 | (fun x _ => piece_pressure_representation U j L n x) |
| 711 | |
| 712 | theorem absoluteTangent_smooth (j : Fin 2) (L : Label B N0) : |
| 713 | ContDiffOn ℝ ∞ (absoluteTangent j L) positiveAbsolute := by |
| 714 | have ha : ContDiffOn ℝ ∞ (absoluteCutAmplitude j L) positiveRadialAbsolute := |
| 715 | (absoluteCutAmplitude_smooth j L).mono (fun _ hx => hx.2) |
| 716 | have hs : ContDiffOn ℝ ∞ (absoluteTangent j L) positiveRadialAbsolute := by |
| 717 | apply contDiffOn_pi.mpr |
| 718 | intro i |
| 719 | exact Complex.reCLM.contDiff.comp_contDiffOn (HarmonicCalculus.contDiffOn_mode 1 |
| 720 | (absolutePhase_smooth j L) (contDiffOn_pi.mp ha i)) |
| 721 | intro x hx |
| 722 | by_cases hr : 0 < x.1.1.1 |
| 723 | · exact (hs.contDiffAt (positiveRadialAbsolute_open.mem_nhds ⟨hr,hx⟩)).contDiffWithinAt |
| 724 | · have hp := (absolutePair_zero_germ_outside j L hx |
| 725 | (amplitudeRadius_outside_nonpositive L (le_of_not_gt hr))).1 |
| 726 | have hz : absoluteTangent j L =ᶠ[𝓝 x] fun _ => 0 := by |
| 727 | filter_upwards [hp] with y hy |
| 728 | funext i |
| 729 | simp [absoluteTangent, vectorMode, mode, hy] |
| 730 | exact (contDiffAt_const.congr_of_eventuallyEq hz).contDiffWithinAt |
| 731 | |
| 732 | theorem piece_tangentVelocity_smooth (U : LocalSignedRequest.SlowRegion (2*h)) |
| 733 | (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 734 | ContDiffOn ℝ ∞ ((piece U j L).tangentVelocity n) positiveChart := by |
| 735 | have hm : MapsTo (absoluteChart n) positiveChart positiveAbsolute := by |
| 736 | intro x hx |
| 737 | exact mul_pos (ChartScales.Q_pos n) hx |
| 738 | exact (((absoluteTangent_smooth j L).comp (absoluteChart n).contDiff.contDiffOn hm).const_smul |
| 739 | (ChartScales.Q n ^ CoordinateAlgebra.A h)).congr |
| 740 | (fun x _ => piece_tangent_representation U j L n x) |
| 741 | |
| 742 | theorem absoluteGaussianCoefficient_smooth (j : Fin 2) (L : Label B N0) : |
| 743 | ContDiffOn ℝ ∞ (absoluteGaussianCoefficient j L) positiveAbsolute := by |
| 744 | have hd : ContDiffOn ℝ ∞ (along absoluteFast (fun y => periodicGaussian j L y.1.2)) positiveAbsolute := |
| 745 | HarmonicCalculus.contDiffOn_along positiveAbsolute_open contDiffOn_const |
| 746 | (absoluteCutoff_smooth j L).contDiffOn |
| 747 | exact hd.smul (absoluteAmplitude_smooth j L) |
| 748 | |
| 749 | theorem absoluteGaussian_smooth (j : Fin 2) (L : Label B N0) : |
| 750 | ContDiffOn ℝ ∞ (absoluteGaussian j L) positiveAbsolute := by |
| 751 | have ha : ContDiffOn ℝ ∞ (absoluteGaussianCoefficient j L) positiveRadialAbsolute := |
| 752 | (absoluteGaussianCoefficient_smooth j L).mono (fun _ hx => hx.2) |
| 753 | have hs : ContDiffOn ℝ ∞ (absoluteGaussian j L) positiveRadialAbsolute := by |
| 754 | apply contDiffOn_pi.mpr |
| 755 | intro i |
| 756 | exact Complex.reCLM.contDiff.comp_contDiffOn (HarmonicCalculus.contDiffOn_mode 1 |
| 757 | (absolutePhase_smooth j L) (contDiffOn_pi.mp ha i)) |
| 758 | intro x hx |
| 759 | by_cases hr : 0 < x.1.1.1 |
| 760 | · exact (hs.contDiffAt (positiveRadialAbsolute_open.mem_nhds ⟨hr,hx⟩)).contDiffWithinAt |
| 761 | · have hp := (absolutePair_zero_germ_outside j L hx |
| 762 | (amplitudeRadius_outside_nonpositive L (le_of_not_gt hr))).1 |
| 763 | have hz : absoluteGaussian j L =ᶠ[𝓝 x] fun _ => 0 := by |
| 764 | filter_upwards [hp] with y hy |
| 765 | funext i |
| 766 | simp [absoluteGaussian, absoluteGaussianCoefficient, vectorMode, mode, hy] |
| 767 | exact (contDiffAt_const.congr_of_eventuallyEq hz).contDiffWithinAt |
| 768 | |
| 769 | theorem piece_excluded_smooth (U : LocalSignedRequest.SlowRegion (2*h)) |
| 770 | (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 771 | ContDiffOn ℝ ∞ ((piece U j L).excluded n) positiveChart := by |
| 772 | have hm : MapsTo (absoluteChart n) positiveChart positiveAbsolute := by |
| 773 | intro x hx |
| 774 | exact mul_pos (ChartScales.Q_pos n) hx |
| 775 | exact (((absoluteGaussian_smooth j L).comp (absoluteChart n).contDiff.contDiffOn hm).const_smul |
| 776 | (ChartScales.Q n ^ (2 * CoordinateAlgebra.A h + 1/2))).congr |
| 777 | (fun x _ => piece_excluded_representation U j L n x) |
| 778 | |
| 779 | theorem amplitudeRadius_chart (L : Label B N0) (n : ℕ) {x : ChartPoint} |
| 780 | (hT : 0 < x.1.2.1.1) (hR : 0 < x.1.1) : |
| 781 | amplitudeRadius L (absoluteChart n x) = x.1.1 / VariableGaugeMean.qLength (2*h) x.1.2.1 := by |
| 782 | change PrimaryTargetBounds.profileRadius h (nativeSlow L (toAbsolute n x.1)) = _ |
| 783 | rw [nativeSlow_toAbsolute_eq_slowChange, |
| 784 | ActualSignedGeometry.profileRadius_slowChange (F := outgoing) |
| 785 | (ChartScales.Q_pos n) (ChartScales.Q_pos _) hT hR] |
| 786 | unfold PrimaryTargetBounds.profileRadius VariableGaugeMean.qLength |
| 787 | rw [BaseChartJets.normalizedCoordinates_eq] |
| 788 | rfl |
| 789 | |
| 790 | theorem piece_velocity_zero_germ_nonpositive (U : LocalSignedRequest.SlowRegion (2*h)) |
| 791 | (j : Fin 2) (L : Label B N0) (n : ℕ) {x : ChartPoint} |
| 792 | (hT : 0 < x.1.2.1.1) (hR : x.1.1 ≤ 0) : |
| 793 | (piece U j L).velocity n =ᶠ[𝓝 x] fun _ => 0 := by |
| 794 | have ht : absoluteChart n x ∈ positiveAbsolute := mul_pos (ChartScales.Q_pos n) hT |
| 795 | have hr : (absoluteChart n x).1.1.1 ≤ 0 := |
| 796 | mul_nonpos_of_nonneg_of_nonpos (Real.sqrt_nonneg _) hR |
| 797 | have hz := (absoluteVelocity_zero_germ_outside j L ht (amplitudeRadius_outside_nonpositive L hr)).comp_tendsto |
| 798 | (absoluteChart n).continuous.continuousAt |
| 799 | filter_upwards [hz] with y hy |
| 800 | change absoluteVelocity j L (absoluteChart n y) = 0 at hy |
| 801 | rw [piece_velocity_representation, hy, smul_zero] |
| 802 | |
| 803 | theorem piece_velocity_support (U : LocalSignedRequest.SlowRegion (2*h)) |
| 804 | (j : Fin 2) (L : Label B N0) (n : ℕ) {x : ChartPoint} |
| 805 | (hT : 0 < x.1.2.1.1) (hne : (piece U j L).velocity n x ≠ 0) : |
| 806 | x.1.1 ∈ Icc (VariableGaugeMean.qLength (2*h) x.1.2.1 * PrimaryTargetBounds.leftRadius nominal) |
| 807 | (VariableGaugeMean.qLength (2*h) x.1.2.1 * PrimaryTargetBounds.rightRadius nominal) := by |
| 808 | have hr : 0 < x.1.1 := by |
| 809 | by_contra hh |
| 810 | exact hne ((piece_velocity_zero_germ_nonpositive U j L n hT (le_of_not_gt hh)).self_of_nhds) |
| 811 | have ht : absoluteChart n x ∈ positiveAbsolute := mul_pos (ChartScales.Q_pos n) hT |
| 812 | have hm : amplitudeRadius L (absoluteChart n x) ∈ |
| 813 | Icc (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal) := by |
| 814 | by_contra hh |
| 815 | have hz := (absoluteVelocity_zero_germ_outside j L ht hh).self_of_nhds |
| 816 | apply hne |
| 817 | rw [piece_velocity_representation, hz, smul_zero] |
| 818 | rw [amplitudeRadius_chart L n hT hr] at hm |
| 819 | have hq : 0 < VariableGaugeMean.qLength (2*h) x.1.2.1 := |
| 820 | VariableGaugeMean.qLength_pos (by linarith [outgoing.data.h_pos]) |
| 821 | (by linarith [outgoing.data.h_lt_half]) hT |
| 822 | exact ⟨by simpa only [mul_comm] using (le_div_iff₀ hq).mp hm.1, |
| 823 | by simpa only [mul_comm] using (div_le_iff₀ hq).mp hm.2⟩ |
| 824 | |
| 825 | /-! ## Periodicity on the genuine common covers -/ |
| 826 | |
| 827 | section PeriodicCalculus |
| 828 | |
| 829 | variable {E F : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 830 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 831 | |
| 832 | theorem along_translate (w : E) {f : E → F} {V : E → E} |
| 833 | (hf : ∀ x, f (x+w) = f x) (hV : ∀ x, V (x+w) = V x) (x : E) : |
| 834 | along V f (x+w) = along V f x := by |
| 835 | unfold along |
| 836 | rw [← fderiv_comp_add_right w, show (fun y => f (y+w)) = f from funext hf, hV] |
| 837 | |
| 838 | theorem phaseNormal_translate (w : E) {R Φ : E → ℝ} {Vr Vt Vz : E → E} |
| 839 | (hR : ∀ x, R (x+w) = R x) (hΦ : ∀ x, Φ (x+w) = Φ x) |
| 840 | (hr : ∀ x, Vr (x+w) = Vr x) (ht : ∀ x, Vt (x+w) = Vt x) |
| 841 | (hz : ∀ x, Vz (x+w) = Vz x) (x : E) : |
| 842 | phaseNormal R Vr Vt Vz Φ (x+w) = phaseNormal R Vr Vt Vz Φ x := by |
| 843 | simp only [phaseNormal, hR, along_translate w hΦ hr, |
| 844 | along_translate w hΦ ht, along_translate w hΦ hz] |
| 845 | |
| 846 | theorem cylindricalCurl_translate (w : E) {R : E → ℝ} {Vr Vt Vz : E → E} |
| 847 | {a : E → ComplexVector} (hR : ∀ x, R (x+w) = R x) |
| 848 | (ha : ∀ x, a (x+w) = a x) (hr : ∀ x, Vr (x+w) = Vr x) |
| 849 | (ht : ∀ x, Vt (x+w) = Vt x) (hz : ∀ x, Vz (x+w) = Vz x) (x : E) : |
| 850 | CurlClassBounds.cylindricalCurl R Vr Vt Vz a (x+w) = |
| 851 | CurlClassBounds.cylindricalCurl R Vr Vt Vz a x := by |
| 852 | have hi i : ∀ y, a (y+w) i = a y i := fun y => congrFun (ha y) i |
| 853 | have hdr i := along_translate w (f := fun y => a y i) (hi i) hr x |
| 854 | have hdt i := along_translate w (f := fun y => a y i) (hi i) ht x |
| 855 | have hdz i := along_translate w (f := fun y => a y i) (hi i) hz x |
| 856 | simp only [CurlClassBounds.cylindricalCurl, hR, ha, |
| 857 | hdr, hdt, hdz] |
| 858 | |
| 859 | theorem realizedCoefficient_translate (w : E) (K : ℝ) {R Φ : E → ℝ} |
| 860 | {Vr Vt Vz : E → E} {a : E → ComplexVector} |
| 861 | (hR : ∀ x, R (x+w) = R x) (hΦ : ∀ x, Φ (x+w) = Φ x) |
| 862 | (ha : ∀ x, a (x+w) = a x) (hr : ∀ x, Vr (x+w) = Vr x) |
| 863 | (ht : ∀ x, Vt (x+w) = Vt x) (hz : ∀ x, Vz (x+w) = Vz x) (x : E) : |
| 864 | CurlClassBounds.realizedCoefficient K R Vr Vt Vz Φ a (x+w) = |
| 865 | CurlClassBounds.realizedCoefficient K R Vr Vt Vz Φ a x := by |
| 866 | have hc : ∀ y, CurlClassBounds.coefficient R Vr Vt Vz Φ a (y+w) = |
| 867 | CurlClassBounds.coefficient R Vr Vt Vz Φ a y := by |
| 868 | intro y |
| 869 | simp only [CurlClassBounds.coefficient, phaseNormal_translate w hR hΦ hr ht hz, ha] |
| 870 | simp only [CurlClassBounds.realizedCoefficient, CurlClassBounds.curlRemainder, |
| 871 | ha, cylindricalCurl_translate w hR hc hr ht hz] |
| 872 | |
| 873 | end PeriodicCalculus |
| 874 | |
| 875 | noncomputable def chartDeck (k : TorusInverse.Frequency) : ChartPoint := |
| 876 | ((0, ((0,0), TorusAverages.latticePoint k)),0) |
| 877 | |
| 878 | theorem native_copy_sum_periodic {E : Type} [NormedAddCommGroup E] |
| 879 | (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 880 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) |
| 881 | (f : TorusInverse.Plane → E) (Y : TorusInverse.Plane) (k : TorusInverse.Frequency) : |
| 882 | (∑' a : TorusInverse.Frequency, f ((geometry j L).coordinates a |
| 883 | ((CommonCoverSolve.coverPower (CommonWindow.index h n)).symm (Y + TorusAverages.latticePoint k)))) = |
| 884 | ∑' a : TorusInverse.Frequency, f ((geometry j L).coordinates a |
| 885 | ((CommonCoverSolve.coverPower (CommonWindow.index h n)).symm Y)) := by |
| 886 | simp only [chartGeometry_coordinates n j L hi] |
| 887 | change PeriodizedWaveBounds.copySum (fun a Z => f ((chartGeometry n j L).coordinates a Z)) |
| 888 | (Y + TorusAverages.latticePoint k) = _ |
| 889 | apply PeriodizedWaveBounds.copySum_translate _ (fun Z => Z + TorusAverages.latticePoint k) |
| 890 | (Equiv.addRight (CommonCoverSolve.coverIndex (chartGeometry n j L).gap k)) |
| 891 | intro a Z |
| 892 | exact congrArg f ((chartGeometry n j L).coordinates_deck a k Z) |
| 893 | |
| 894 | theorem native_clock_periodic (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 895 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) |
| 896 | (Y : TorusInverse.Plane) (k : TorusInverse.Frequency) : |
| 897 | PeriodicPhaseAssembly.periodicClock (geometry j L) (clockWindow L).cutoff |
| 898 | ((CommonCoverSolve.coverPower (CommonWindow.index h n)).symm (Y + TorusAverages.latticePoint k)) = |
| 899 | PeriodicPhaseAssembly.periodicClock (geometry j L) (clockWindow L).cutoff |
| 900 | ((CommonCoverSolve.coverPower (CommonWindow.index h n)).symm Y) := |
| 901 | native_copy_sum_periodic j L n hi (fun z => (clockWindow L).cutoff z * z.2) Y k |
| 902 | |
| 903 | theorem chart_phase_periodic (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 904 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) |
| 905 | (k : TorusInverse.Frequency) (x : ChartPoint) : |
| 906 | (chartCoefficients j L).phase n (x + chartDeck k) = (chartCoefficients j L).phase n x := by |
| 907 | simp only [chartCoefficients, absolutePhase, periodicPhase, nativeSlow, toAbsolute, |
| 908 | chartDeck, Prod.fst_add, Prod.snd_add, add_zero, native_clock_periodic j L n hi] |
| 909 | |
| 910 | theorem chart_amplitude_periodic (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 911 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) |
| 912 | (k : TorusInverse.Frequency) (x : ChartPoint) : |
| 913 | (chartCoefficients j L).amplitude n (x + chartDeck k) = (chartCoefficients j L).amplitude n x := by |
| 914 | simp only [chartCoefficients, absoluteAmplitude, nativeSlow, toAbsolute, |
| 915 | chartDeck, Prod.fst_add, Prod.snd_add, add_zero, uncutAmplitude] |
| 916 | exact congrArg (fun a : ComplexVector => ChartScales.Q n ^ CoordinateAlgebra.A h • |
| 917 | (ChartScales.Q (BaseChartJets.cellBand L) ^ (-CoordinateAlgebra.A h) • a)) |
| 918 | (native_copy_sum_periodic j L n hi |
| 919 | (fun z => CurlClassBounds.complexify (attachedRawVelocity j L (nativeSlow L (toAbsolute n x.1), z))) |
| 920 | x.1.2.2 k) |
| 921 | |
| 922 | theorem chart_pressure_periodic (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 923 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) |
| 924 | (k : TorusInverse.Frequency) (x : ChartPoint) : |
| 925 | (chartCoefficients j L).pressure n (x + chartDeck k) = (chartCoefficients j L).pressure n x := by |
| 926 | simp only [chartCoefficients, absolutePressure, nativeSlow, toAbsolute, |
| 927 | chartDeck, Prod.fst_add, Prod.snd_add, add_zero, uncutPressure] |
| 928 | exact congrArg (fun a : ℂ => ChartScales.Q n ^ (2*CoordinateAlgebra.A h) • |
| 929 | (ChartScales.Q (BaseChartJets.cellBand L) ^ (-(2*CoordinateAlgebra.A h)) • a)) |
| 930 | (native_copy_sum_periodic j L n hi |
| 931 | (fun z => attachedRawPressure j L (nativeSlow L (toAbsolute n x.1), z)) x.1.2.2 k) |
| 932 | |
| 933 | theorem chart_cutoff_periodic (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 934 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) |
| 935 | (k : TorusInverse.Frequency) (x : ChartPoint) : |
| 936 | chartCutoff j L n (x + chartDeck k) = chartCutoff j L n x := by |
| 937 | simp only [chartCutoff, periodicGaussian, toAbsolute, chartDeck, Prod.snd_add, |
| 938 | Prod.fst_add, native_clock_periodic j L n hi] |
| 939 | |
| 940 | theorem chart_radial_periodic (B n : ℕ) (k : TorusInverse.Frequency) (x : ChartPoint) : |
| 941 | (PrimaryResidualClass.directions (commonContext B)).radialField n (x+chartDeck k) = |
| 942 | (PrimaryResidualClass.directions (commonContext B)).radialField n x := by |
| 943 | apply (absoluteChart n).injective |
| 944 | rw [absoluteChart_radial, absoluteChart_radial] |
| 945 | simp [absoluteRadial, absoluteChart_apply, toAbsolute, chartDeck] |
| 946 | |
| 947 | theorem piece_exactAmplitude_periodic (U : LocalSignedRequest.SlowRegion (2*h)) |
| 948 | (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 949 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) |
| 950 | (k : TorusInverse.Frequency) (x : ChartPoint) : |
| 951 | (piece U j L).exactCoefficients.amplitude n (x+chartDeck k) = |
| 952 | (piece U j L).exactCoefficients.amplitude n x := by |
| 953 | apply realizedCoefficient_translate (chartDeck k) |
| 954 | · intro y |
| 955 | change (y+chartDeck k).1.1 = y.1.1 |
| 956 | simp [chartDeck] |
| 957 | · exact chart_phase_periodic j L n hi k |
| 958 | · intro y |
| 959 | change chartCutoff j L n (y+chartDeck k) • (chartCoefficients j L).amplitude n (y+chartDeck k) = _ |
| 960 | rw [chart_cutoff_periodic j L n hi k, chart_amplitude_periodic j L n hi k] |
| 961 | rfl |
| 962 | · exact chart_radial_periodic B n k |
| 963 | · intro y; rfl |
| 964 | · intro y; rfl |
| 965 | |
| 966 | theorem piece_velocity_periodic (U : LocalSignedRequest.SlowRegion (2*h)) |
| 967 | (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 968 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) |
| 969 | (k : TorusInverse.Frequency) (x : ChartPoint) : |
| 970 | (piece U j L).velocity n (x+chartDeck k) = (piece U j L).velocity n x := by |
| 971 | funext i |
| 972 | change ((piece U j L).exactCoefficients.amplitude n (x+chartDeck k) i * |
| 973 | carrier ((chartCoefficients j L).frequency n) ((chartCoefficients j L).phase n) (x+chartDeck k)).re = _ |
| 974 | rw [piece_exactAmplitude_periodic U j L n hi k] |
| 975 | simp only [carrier, chart_phase_periodic j L n hi k] |
| 976 | rfl |
| 977 | |
| 978 | theorem piece_tangentVelocity_periodic (U : LocalSignedRequest.SlowRegion (2*h)) |
| 979 | (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 980 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) |
| 981 | (k : TorusInverse.Frequency) (x : ChartPoint) : |
| 982 | (piece U j L).tangentVelocity n (x+chartDeck k) = (piece U j L).tangentVelocity n x := by |
| 983 | funext i |
| 984 | change ((chartCutoff j L n (x+chartDeck k) • (chartCoefficients j L).amplitude n (x+chartDeck k)) i * |
| 985 | carrier ((chartCoefficients j L).frequency n) ((chartCoefficients j L).phase n) (x+chartDeck k)).re = _ |
| 986 | rw [chart_cutoff_periodic j L n hi k, chart_amplitude_periodic j L n hi k] |
| 987 | simp only [carrier, chart_phase_periodic j L n hi k] |
| 988 | rfl |
| 989 | |
| 990 | theorem piece_pressure_periodic (U : LocalSignedRequest.SlowRegion (2*h)) |
| 991 | (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 992 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) |
| 993 | (k : TorusInverse.Frequency) (x : ChartPoint) : |
| 994 | (piece U j L).pressure n (x+chartDeck k) = (piece U j L).pressure n x := by |
| 995 | change ((chartCutoff j L n (x+chartDeck k) • (chartCoefficients j L).pressure n (x+chartDeck k)) * |
| 996 | carrier ((chartCoefficients j L).frequency n) ((chartCoefficients j L).phase n) (x+chartDeck k)).re = _ |
| 997 | rw [chart_cutoff_periodic j L n hi k, chart_pressure_periodic j L n hi k] |
| 998 | simp only [carrier, chart_phase_periodic j L n hi k] |
| 999 | rfl |
| 1000 | |
| 1001 | theorem piece_excluded_periodic (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1002 | (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 1003 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) |
| 1004 | (k : TorusInverse.Frequency) (x : ChartPoint) : |
| 1005 | (piece U j L).excluded n (x+chartDeck k) = (piece U j L).excluded n x := by |
| 1006 | have hd := along_translate (chartDeck k) (chart_cutoff_periodic j L n hi k) |
| 1007 | (show ∀ y, (piece U j L).directions.fastField n (y+chartDeck k) = |
| 1008 | (piece U j L).directions.fastField n y from fun _ => rfl) x |
| 1009 | funext i |
| 1010 | change ((along ((piece U j L).directions.fastField n) (chartCutoff j L n) (x+chartDeck k) • |
| 1011 | (chartCoefficients j L).amplitude n (x+chartDeck k) + (1-chartCutoff j L n (x+chartDeck k)) • |
| 1012 | (0 : ComplexVector)) i * carrier ((chartCoefficients j L).frequency n) |
| 1013 | ((chartCoefficients j L).phase n) (x+chartDeck k)).re = _ |
| 1014 | rw [hd, chart_amplitude_periodic j L n hi k, chart_cutoff_periodic j L n hi k] |
| 1015 | simp only [carrier, chart_phase_periodic j L n hi k] |
| 1016 | rfl |
| 1017 | |
| 1018 | theorem radius_mem_of_amplitudeRadius_mem (L : Label B N0) (n : ℕ) {x : ChartPoint} |
| 1019 | (hT : 0 < x.1.2.1.1) |
| 1020 | (hm : amplitudeRadius L (absoluteChart n x) ∈ |
| 1021 | Icc (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal)) : |
| 1022 | x.1.1 ∈ Icc (VariableGaugeMean.qLength (2*h) x.1.2.1 * PrimaryTargetBounds.leftRadius nominal) |
| 1023 | (VariableGaugeMean.qLength (2*h) x.1.2.1 * PrimaryTargetBounds.rightRadius nominal) := by |
| 1024 | have hr : 0 < x.1.1 := by |
| 1025 | by_contra hh |
| 1026 | exact amplitudeRadius_outside_nonpositive L |
| 1027 | (mul_nonpos_of_nonneg_of_nonpos (Real.sqrt_nonneg _) (le_of_not_gt hh)) hm |
| 1028 | rw [amplitudeRadius_chart L n hT hr] at hm |
| 1029 | have hq : 0 < VariableGaugeMean.qLength (2*h) x.1.2.1 := |
| 1030 | VariableGaugeMean.qLength_pos (by linarith [outgoing.data.h_pos]) |
| 1031 | (by linarith [outgoing.data.h_lt_half]) hT |
| 1032 | exact ⟨by simpa only [mul_comm] using (le_div_iff₀ hq).mp hm.1, |
| 1033 | by simpa only [mul_comm] using (div_le_iff₀ hq).mp hm.2⟩ |
| 1034 | |
| 1035 | theorem piece_pressure_support (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1036 | (j : Fin 2) (L : Label B N0) (n : ℕ) {x : ChartPoint} |
| 1037 | (hT : 0 < x.1.2.1.1) (hne : (piece U j L).pressure n x ≠ 0) : |
| 1038 | x.1.1 ∈ Icc (VariableGaugeMean.qLength (2*h) x.1.2.1 * PrimaryTargetBounds.leftRadius nominal) |
| 1039 | (VariableGaugeMean.qLength (2*h) x.1.2.1 * PrimaryTargetBounds.rightRadius nominal) := by |
| 1040 | apply radius_mem_of_amplitudeRadius_mem L n hT |
| 1041 | by_contra hh |
| 1042 | have hp := (absolutePair_zero_germ_outside j L (mul_pos (ChartScales.Q_pos n) hT) hh).2.self_of_nhds |
| 1043 | change absolutePressure j L (toAbsolute n x.1) = 0 at hp |
| 1044 | apply hne |
| 1045 | rw [piece_pressure_representation] |
| 1046 | simp [absolutePressureMode, mode, hp] |
| 1047 | |
| 1048 | theorem piece_excluded_support (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1049 | (j : Fin 2) (L : Label B N0) (n : ℕ) {x : ChartPoint} |
| 1050 | (hT : 0 < x.1.2.1.1) (hne : (piece U j L).excluded n x ≠ 0) : |
| 1051 | x.1.1 ∈ Icc (VariableGaugeMean.qLength (2*h) x.1.2.1 * PrimaryTargetBounds.leftRadius nominal) |
| 1052 | (VariableGaugeMean.qLength (2*h) x.1.2.1 * PrimaryTargetBounds.rightRadius nominal) := by |
| 1053 | apply radius_mem_of_amplitudeRadius_mem L n hT |
| 1054 | by_contra hh |
| 1055 | have hp := (absolutePair_zero_germ_outside j L (mul_pos (ChartScales.Q_pos n) hT) hh).1.self_of_nhds |
| 1056 | change absoluteAmplitude j L (toAbsolute n x.1) = 0 at hp |
| 1057 | apply hne |
| 1058 | rw [piece_excluded_representation] |
| 1059 | ext i |
| 1060 | simp [absoluteGaussian, absoluteGaussianCoefficient, vectorMode, mode, hp] |
| 1061 | |
| 1062 | /-! ## Tangency of the actual native pulse -/ |
| 1063 | |
| 1064 | theorem constructed_frame_normal {ι : Type} {D : PhaseJetBounds.Domain ι PhaseCalculus.Slow} |
| 1065 | (P : PrimaryPulseBounds.PhaseConstruction D) (i : ι) |
| 1066 | {z : PhaseCalculus.Slow × ℝ} (hz : z ∈ (D.slot P.V P.openV).carrier i) : |
| 1067 | (P.frame i).normal z = P.phase.normal i z := by |
| 1068 | have hB : 0 < P.B i := lt_of_lt_of_le (by linarith [P.b_pos]) (P.B_bound i).1 |
| 1069 | have hn := (PhaseEstimates.normal_lower_bounds hB (P.K_unit i) |
| 1070 | (P.error_small i z hz) (P.normal_close i z hz)).2.2.1 |
| 1071 | exact PrimaryODE.FrameData.ofNormalLocal_normal _ _ _ _ _ _ _ _ hn |
| 1072 | |
| 1073 | theorem native_pulse_tangent (j : Fin 2) (L : Label B N0) {x : ActualSignedGeometry.Native} |
| 1074 | (hx : x ∈ (ActualSignedGeometry.nativeDomain certificate modulation (choice B N0).prepared).carrier L) : |
| 1075 | ⟪(phases B N0 j).phase.normal L (x.1,x.2.2), cutVelocity j L x⟫_ℝ = 0 := by |
| 1076 | have hz : (x.1,x.2.2) ∈ |
| 1077 | ((PrimaryGeometryAssembly.domain nominal (choice B N0).prepared.N).slot |
| 1078 | (phases B N0 j).V (phases B N0 j).openV).carrier L := |
| 1079 | ⟨hx.1.1, (phases B N0 j).interval L ⟨hx.2.2.1.le, hx.2.2.2.le⟩⟩ |
| 1080 | have htime : (phases B N0 j).L L * (pulseCoordinates L x).2 = x.2.2 := by |
| 1081 | change (phases B N0 0).L L * (x.2.2 / (phases B N0 0).L L) = x.2.2 |
| 1082 | exact mul_div_cancel₀ _ ((phases B N0 0).L_pos L).ne' |
| 1083 | simp only [cutVelocity, rawVelocity, inner_smul_right, PrimaryPulseBounds.normalizedPulse, |
| 1084 | htime] |
| 1085 | dsimp only [pulseCoordinates] |
| 1086 | rw [← constructed_frame_normal (phases B N0 j) L hz] |
| 1087 | rw [PrimaryODE.FrameData.ambient_tangent] |
| 1088 | simp |
| 1089 | |
| 1090 | theorem cutVelocity_native_mem (j : Fin 2) (L : Label B N0) {x : ActualSignedGeometry.Native} |
| 1091 | (hT : 0 < x.1.2.2) |
| 1092 | (hr : PrimaryTargetBounds.profileRadius h x.1 ∈ |
| 1093 | Ioo (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal)) |
| 1094 | (hne : cutVelocity j L x ≠ 0) : |
| 1095 | x ∈ (ActualSignedGeometry.nativeDomain certificate modulation (choice B N0).prepared).carrier L := by |
| 1096 | have hraw : rawVelocity j L x ≠ 0 := by |
| 1097 | intro he; exact hne (by simp [cutVelocity,he]) |
| 1098 | have hg : GaussianTailFlat.profile (pulseCoordinates L x).2 ≠ 0 := by |
| 1099 | intro he; exact hne (by simp [cutVelocity,gaussian,he]) |
| 1100 | have hm : spatialMask L x.1 ≠ 0 := by |
| 1101 | intro he |
| 1102 | apply hraw |
| 1103 | simp [rawVelocity, PartitionedCovariance.amplitude, he] |
| 1104 | have hu : PartitionedCovariance.cutoff slots.radius x.2.1 ≠ 0 := by |
| 1105 | intro he |
| 1106 | apply hraw |
| 1107 | simp [rawVelocity, PartitionedCovariance.amplitude, he] |
| 1108 | apply ActualSignedGeometry.nativeCutoff_nonzero_mem certificate modulation (choice B N0).prepared |
| 1109 | slots.radius_pos L hT hr |
| 1110 | have hh := mul_ne_zero (mul_ne_zero hm hu) hg |
| 1111 | rw [spatialMask_eq] at hh |
| 1112 | exact hh |
| 1113 | |
| 1114 | theorem cutVelocity_core (j : Fin 2) (L : Label B N0) {x : ActualSignedGeometry.Native} |
| 1115 | (hx : cutVelocity j L x ≠ 0) : x.2 ∈ (clockWindow L).core := by |
| 1116 | apply outerRawVelocity_core j L x |
| 1117 | intro he |
| 1118 | exact hx (by rw [cutVelocity_eq_outer, he, smul_zero]) |
| 1119 | |
| 1120 | theorem commonAmplitude_eq_copy (j : Fin 2) (L : Label B N0) (p : PhaseCalculus.Slow) |
| 1121 | (Y : TorusInverse.Plane) (k : TorusInverse.Frequency) |
| 1122 | (hk : cutVelocity j L (p,(geometry j L).coordinates k Y) ≠ 0) : |
| 1123 | commonAmplitude j L p Y = |
| 1124 | CurlClassBounds.complexify (cutVelocity j L (p,(geometry j L).coordinates k Y)) := by |
| 1125 | unfold commonAmplitude |
| 1126 | apply tsum_eq_single k |
| 1127 | intro m hmk |
| 1128 | have hm : cutVelocity j L (p,(geometry j L).coordinates m Y) = 0 := by |
| 1129 | by_contra hh |
| 1130 | have he := (copyCells j L).unique 0 m k (p,Y) (cutVelocity_core j L hh) (cutVelocity_core j L hk) |
| 1131 | exact hmk he |
| 1132 | rw [hm,map_zero] |
| 1133 | |
| 1134 | theorem chart_radial_swap (B n : ℕ) (x : ChartPoint) : |
| 1135 | PhysicalResidualTZ.swapCylinder ((PrimaryResidualClass.directions (commonContext B)).radialField n x) = |
| 1136 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).radial |
| 1137 | (PhysicalResidualTZ.swapCylinder x) := by |
| 1138 | simp [PhysicalResidualTZ.swapCylinder_apply, PhysicalResidualTZ.swapSlow_apply, |
| 1139 | PrimaryResidualClass.directions, commonContext, CommonBaseContext.context, |
| 1140 | CommonBaseContext.operators, CorrectionState.graphOperators, |
| 1141 | CommonBaseContext.reconstruction, CommonBaseContext.radialFrequency, |
| 1142 | LinearWaveBounds.GraphDirections.radialField, PhysicalResidualBridge.ScaledGraph.radial, |
| 1143 | PhysicalResidualBridge.commonGraph, GraphCalculus.radialSpeed, RadialPullback.radialJacobian, PhysicalGraphBounds.radialDirection, TorusInverse.vector] |
| 1144 | ring |
| 1145 | |
| 1146 | theorem chart_axial_swap (B n : ℕ) (U : LocalSignedRequest.SlowRegion (2*h)) (x : ChartPoint) : |
| 1147 | PhysicalResidualTZ.swapCylinder ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 1148 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n x) = |
| 1149 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).axial |
| 1150 | (PhysicalResidualTZ.swapCylinder x) := by |
| 1151 | change PhysicalResidualTZ.swapCylinder (ChartScales.Q n ^ h • (((0,((0,1),0)),0) : ChartPoint)) = _ |
| 1152 | simp [PhysicalResidualTZ.swapCylinder_apply, PhysicalResidualTZ.swapSlow_apply, |
| 1153 | PhysicalResidualBridge.ScaledGraph.axial, PhysicalResidualBridge.commonGraph] |
| 1154 | |
| 1155 | theorem chart_normal_view (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1156 | (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 1157 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) (x : ChartPoint) : |
| 1158 | (chartCoefficients j L).normal (piece U j L).strip (piece U j L).directions n x = |
| 1159 | phaseNormal PhysicalResidualBridge.ScaledGraph.radius |
| 1160 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).radial |
| 1161 | PhysicalResidualBridge.ScaledGraph.angular |
| 1162 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).axial |
| 1163 | (ActualSignedGeometry.preparedViewPhase certificate modulation slots (choice B N0).prepared |
| 1164 | j L n (CommonWindow.index h n)) (PhysicalResidualTZ.swapCylinder x) := by |
| 1165 | have hp : (chartCoefficients j L).phase n = fun y => |
| 1166 | 1 * ActualSignedGeometry.preparedViewPhase certificate modulation slots (choice B N0).prepared |
| 1167 | j L n (CommonWindow.index h n) (PhysicalResidualTZ.swapCylinder y) := by |
| 1168 | funext y |
| 1169 | simpa only [one_mul] using chartCoefficients_phase_view j L n hi y |
| 1170 | change phaseNormal _ _ _ _ ((chartCoefficients j L).phase n) x = _ |
| 1171 | rw [hp] |
| 1172 | have he := phaseNormal_equiv |
| 1173 | PhysicalResidualTZ.swapCylinder.toContinuousLinearEquiv one_ne_zero |
| 1174 | (fun y : ChartPoint => y.1.1) PhysicalResidualBridge.ScaledGraph.radius |
| 1175 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 1176 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 1177 | ((PrimaryResidualClass.directions (commonContext B)).axialField (piece U j L).strip n) |
| 1178 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).radial |
| 1179 | PhysicalResidualBridge.ScaledGraph.angular |
| 1180 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).axial |
| 1181 | (fun _ => (one_mul _).symm) (fun y => by simpa using chart_radial_swap B n y) |
| 1182 | (fun _ => rfl) (fun y => by simp only [one_smul]; exact chart_axial_swap B n U y) 1 |
| 1183 | (ActualSignedGeometry.preparedViewPhase certificate modulation slots (choice B N0).prepared |
| 1184 | j L n (CommonWindow.index h n)) x |
| 1185 | simp only [one_mul, one_smul] at he ⊢ |
| 1186 | exact he |
| 1187 | |
| 1188 | theorem chart_phase_smooth (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1189 | ContDiffOn ℝ ∞ ((chartCoefficients j L).phase n) positiveRadialChart := by |
| 1190 | have hm : MapsTo (absoluteChart n) positiveRadialChart positiveRadialAbsolute := by |
| 1191 | intro x hx |
| 1192 | exact ⟨mul_pos (Real.sqrt_pos.mpr (ChartScales.Q_pos n)) hx.1, |
| 1193 | mul_pos (ChartScales.Q_pos n) hx.2⟩ |
| 1194 | exact ((absolutePhase_smooth j L).comp (absoluteChart n).contDiff.contDiffOn hm).div_const _ |
| 1195 | |
| 1196 | theorem chart_amplitude_smooth (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1197 | ContDiffOn ℝ ∞ ((chartCoefficients j L).amplitude n) positiveChart := by |
| 1198 | have hm : MapsTo (absoluteChart n) positiveChart positiveAbsolute := by |
| 1199 | intro x hx |
| 1200 | exact mul_pos (ChartScales.Q_pos n) hx |
| 1201 | exact ((absoluteAmplitude_smooth j L).comp (absoluteChart n).contDiff.contDiffOn hm).const_smul _ |
| 1202 | |
| 1203 | theorem chart_cutoff_smooth (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1204 | ContDiff ℝ ∞ (chartCutoff j L n) := |
| 1205 | (periodicGaussian_smooth j L).comp (((toAbsolute_smooth n).comp contDiff_fst).snd) |
| 1206 | |
| 1207 | theorem piece_domain_positive (U : LocalSignedRequest.SlowRegion (2*h)) : |
| 1208 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)).domain ⊆ |
| 1209 | positiveRadialChart := by |
| 1210 | intro x hx |
| 1211 | have he := (BaseContextAssembly.nativeStrip_mem nominal U x.1).mp hx |
| 1212 | exact ⟨BaseContextAssembly.nativeStrip_radius nominal U hx, U.time_pos _ he.1⟩ |
| 1213 | |
| 1214 | theorem piece_phase_smooth (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1215 | (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1216 | ContDiffOn ℝ ∞ ((chartCoefficients j L).phase n) |
| 1217 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)).domain := |
| 1218 | (chart_phase_smooth j L n).mono (piece_domain_positive U) |
| 1219 | |
| 1220 | theorem piece_amplitude_smooth (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1221 | (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1222 | ContDiffOn ℝ ∞ ((chartCoefficients j L).amplitude n) |
| 1223 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)).domain := |
| 1224 | (chart_amplitude_smooth j L n).mono (fun _ hx => (piece_domain_positive U hx).2) |
| 1225 | |
| 1226 | theorem chart_normal_copy (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1227 | (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 1228 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) |
| 1229 | (k : TorusInverse.Frequency) (x : ChartPoint) |
| 1230 | (hx : (nativeSlow L (toAbsolute n x.1), (geometry j L).coordinates k (toAbsolute n x.1).2) ∈ |
| 1231 | (ActualSignedGeometry.nativeDomain certificate modulation (choice B N0).prepared).carrier L) : |
| 1232 | (chartCoefficients j L).normal (piece U j L).strip (piece U j L).directions n x = |
| 1233 | PhysicalParticularWave.normalWeight (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand L)) |
| 1234 | (ChartScales.carrier h n) (ChartScales.carrier h (BaseChartJets.cellBand L)) • |
| 1235 | (phases B N0 j).phase.normal L |
| 1236 | (nativeSlow L (toAbsolute n x.1), ((geometry j L).coordinates k (toAbsolute n x.1).2).2) := by |
| 1237 | have hp : ActualSignedGeometry.copyPoint slots vectors_det |
| 1238 | (PartitionedCovariance.signedLabel (PrimaryGeometryAssembly.label nominal L) j) |
| 1239 | n (CommonWindow.index h n) k (ActualSignedGeometry.cylinderNative (PhysicalResidualTZ.swapCylinder x)) = |
| 1240 | (nativeSlow L (toAbsolute n x.1), (geometry j L).coordinates k (toAbsolute n x.1).2) := |
| 1241 | (chart_nativePoint j L n hi k x.1).symm |
| 1242 | have hc : ActualSignedGeometry.copyPoint slots vectors_det |
| 1243 | (PartitionedCovariance.signedLabel (PrimaryGeometryAssembly.label nominal L) j) |
| 1244 | n (CommonWindow.index h n) k (ActualSignedGeometry.cylinderNative (PhysicalResidualTZ.swapCylinder x)) ∈ |
| 1245 | (ActualSignedGeometry.nativeDomain certificate modulation (choice B N0).prepared).carrier L := by |
| 1246 | rwa [hp] |
| 1247 | have hg := (ActualSignedGeometry.preparedView_normal_germ certificate modulation slots |
| 1248 | (choice B N0).prepared j L n (CommonWindow.index h n) k hc).self_of_nhds |
| 1249 | dsimp only at hg |
| 1250 | rw [chart_normal_view U j L n hi x] |
| 1251 | refine hg.trans ?_ |
| 1252 | erw [ActualSignedGeometry.phaseNormal_pulseCoordinates, hp] |
| 1253 | rfl |
| 1254 | |
| 1255 | theorem cutAmplitude_inside (j : Fin 2) (L : Label B N0) (n : ℕ) (x : ChartPoint) |
| 1256 | (hr : amplitudeRadius L (absoluteChart n x) ∈ |
| 1257 | Ioo (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal)) : |
| 1258 | ((chartCoefficients j L).withCutoff (chartCutoff j L)).amplitude n x = |
| 1259 | (ChartScales.Q n ^ CoordinateAlgebra.A h * |
| 1260 | ChartScales.Q (BaseChartJets.cellBand L) ^ (-CoordinateAlgebra.A h)) • |
| 1261 | commonAmplitude j L (nativeSlow L (toAbsolute n x.1)) (toAbsolute n x.1).2 := by |
| 1262 | change periodicGaussian j L (toAbsolute n x.1).2 • |
| 1263 | (ChartScales.Q n ^ CoordinateAlgebra.A h • |
| 1264 | (ChartScales.Q (BaseChartJets.cellBand L) ^ (-CoordinateAlgebra.A h) • |
| 1265 | uncutAmplitude j L (nativeSlow L (toAbsolute n x.1)) (toAbsolute n x.1).2)) = _ |
| 1266 | calc |
| 1267 | _ = (ChartScales.Q n ^ CoordinateAlgebra.A h * |
| 1268 | ChartScales.Q (BaseChartJets.cellBand L) ^ (-CoordinateAlgebra.A h)) • |
| 1269 | (periodicGaussian j L (toAbsolute n x.1).2 • |
| 1270 | uncutAmplitude j L (nativeSlow L (toAbsolute n x.1)) (toAbsolute n x.1).2) := by |
| 1271 | simp only [smul_smul] |
| 1272 | congr 1 |
| 1273 | ring |
| 1274 | _ = _ := congrArg (fun a : ComplexVector => |
| 1275 | (ChartScales.Q n ^ CoordinateAlgebra.A h * |
| 1276 | ChartScales.Q (BaseChartJets.cellBand L) ^ (-CoordinateAlgebra.A h)) • a) |
| 1277 | (periodic_cutoff_amplitude j L (nativeSlow L (toAbsolute n x.1)) hr (toAbsolute n x.1).2) |
| 1278 | |
| 1279 | theorem cutAmplitude_outside (j : Fin 2) (L : Label B N0) (n : ℕ) (x : ChartPoint) |
| 1280 | (hr : amplitudeRadius L (absoluteChart n x) ∉ |
| 1281 | Ioo (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal)) : |
| 1282 | ((chartCoefficients j L).withCutoff (chartCutoff j L)).amplitude n x = 0 := by |
| 1283 | have hz := absoluteAmplitude_zero_outside j L (absoluteChart n x) hr |
| 1284 | change chartCutoff j L n x • (ChartScales.Q n ^ CoordinateAlgebra.A h • |
| 1285 | absoluteAmplitude j L (absoluteChart n x).1) = 0 |
| 1286 | rw [hz,smul_zero,smul_zero] |
| 1287 | |
| 1288 | theorem piece_cutAmplitude_tangent (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1289 | (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 1290 | (hi : CommonWindow.index h n ≤ ChartScales.nativeIndex h (BaseChartJets.cellBand L)) |
| 1291 | {x : ChartPoint} (hT : 0 < x.1.2.1.1) : |
| 1292 | normalDot ((chartCoefficients j L).normal (piece U j L).strip (piece U j L).directions n x) |
| 1293 | (((chartCoefficients j L).withCutoff (chartCutoff j L)).amplitude n x) = 0 := by |
| 1294 | classical |
| 1295 | by_cases hr : amplitudeRadius L (absoluteChart n x) ∈ |
| 1296 | Ioo (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal) |
| 1297 | · rw [cutAmplitude_inside j L n x hr] |
| 1298 | by_cases hc : ∃ k : TorusInverse.Frequency, |
| 1299 | cutVelocity j L (nativeSlow L (toAbsolute n x.1), (geometry j L).coordinates k (toAbsolute n x.1).2) ≠ 0 |
| 1300 | · obtain ⟨k,hk⟩ := hc |
| 1301 | have ht : 0 < (nativeSlow L (toAbsolute n x.1)).2.2 := |
| 1302 | div_pos (mul_pos (ChartScales.Q_pos n) hT) (ChartScales.Q_pos _) |
| 1303 | have hm := cutVelocity_native_mem j L |
| 1304 | (x := (nativeSlow L (toAbsolute n x.1), (geometry j L).coordinates k (toAbsolute n x.1).2)) ht hr hk |
| 1305 | rw [commonAmplitude_eq_copy j L _ _ k hk, chart_normal_copy U j L n hi k x hm, |
| 1306 | PhysicalParticularWave.normalDot_scaled, SignedWaveUpdate.normalDot_complexify, |
| 1307 | native_pulse_tangent j L hm, Complex.ofReal_zero, mul_zero] |
| 1308 | · push Not at hc |
| 1309 | have hz : commonAmplitude j L (nativeSlow L (toAbsolute n x.1)) (toAbsolute n x.1).2 = 0 := by |
| 1310 | simp only [commonAmplitude,hc,map_zero,tsum_zero] |
| 1311 | rw [hz,smul_zero] |
| 1312 | simp [normalDot] |
| 1313 | · rw [cutAmplitude_outside j L n x hr] |
| 1314 | simp [normalDot] |
| 1315 | |
| 1316 | |
| 1317 | noncomputable def chartRadiusLinear : ChartPoint →L[ℝ] ℝ := |
| 1318 | (ContinuousLinearMap.fst ℝ ℝ _).comp (ContinuousLinearMap.fst ℝ _ ℝ) |
| 1319 | |
| 1320 | noncomputable def chartRadialCurve (n : ℕ) (r : ℝ) : ChartPoint := |
| 1321 | PhysicalResidualTZ.swapCylinder |
| 1322 | (PhysicalCurlCovariance.ScaledGraph.radialCurve |
| 1323 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)) r) |
| 1324 | |
| 1325 | theorem chartRadialCurve_smoothAt (n : ℕ) {r : ℝ} (hr : r ≠ 0) : |
| 1326 | ContDiffAt ℝ ∞ (chartRadialCurve n) r := |
| 1327 | PhysicalResidualTZ.swapCylinder.contDiff.contDiffAt.comp r |
| 1328 | (PhysicalCurlCovariance.ScaledGraph.radialCurve_smoothAt _ hr) |
| 1329 | |
| 1330 | theorem chart_radial_curve (B n : ℕ) : |
| 1331 | (PrimaryResidualClass.directions (commonContext B)).radialField n = |
| 1332 | fun x => chartRadialCurve n (chartRadiusLinear x) := by |
| 1333 | funext x |
| 1334 | apply PhysicalResidualTZ.swapCylinder.injective |
| 1335 | rw [chart_radial_swap] |
| 1336 | simp only [chartRadialCurve, PhysicalResidualTZ.swapCylinder_swapCylinder] |
| 1337 | rfl |
| 1338 | |
| 1339 | theorem chart_radial_aux_derivative (B n : ℕ) {x : ChartPoint} (hx : x.1.1 ≠ 0) |
| 1340 | (v : ChartPoint) (hv : v.1.1 = 0) : |
| 1341 | fderiv ℝ ((PrimaryResidualClass.directions (commonContext B)).radialField n) x v = 0 := by |
| 1342 | rw [chart_radial_curve] |
| 1343 | change fderiv ℝ (chartRadialCurve n ∘ chartRadiusLinear) x v = 0 |
| 1344 | rw [fderiv_comp x ((chartRadialCurve_smoothAt n hx).differentiableAt (by simp)) |
| 1345 | chartRadiusLinear.differentiableAt, ContinuousLinearMap.fderiv] |
| 1346 | change fderiv ℝ (chartRadialCurve n) x.1.1 v.1.1 = 0 |
| 1347 | rw [hv,map_zero] |
| 1348 | |
| 1349 | theorem piece_geometry (U : LocalSignedRequest.SlowRegion (2*h)) (B n : ℕ) : |
| 1350 | CurlClassBounds.CylindricalGeometry positiveRadialChart (fun x : ChartPoint => x.1.1) |
| 1351 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 1352 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 1353 | ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 1354 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n) := by |
| 1355 | have ha : (PrimaryResidualClass.directions (commonContext B)).axialField |
| 1356 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n = |
| 1357 | fun _ : ChartPoint => ((0,((0,ChartScales.Q n ^ h),0)),0) := by |
| 1358 | funext x |
| 1359 | change ChartScales.Q n ^ h • (((0,((0,1),0)),0) : ChartPoint) = _ |
| 1360 | simp |
| 1361 | rw [ha] |
| 1362 | refine ⟨positiveRadialChart_open, chartRadiusLinear.contDiff.contDiffOn, |
| 1363 | fun _ hx => hx.1.ne', ?_, contDiffOn_const, contDiffOn_const, ?_, ?_, ?_, ?_, ?_, ?_⟩ |
| 1364 | · rw [chart_radial_curve] |
| 1365 | intro x hx |
| 1366 | exact ((chartRadialCurve_smoothAt n hx.1.ne').comp x |
| 1367 | chartRadiusLinear.contDiff.contDiffAt).contDiffWithinAt |
| 1368 | · intro x hx |
| 1369 | change fderiv ℝ chartRadiusLinear x _ = 1 |
| 1370 | rw [ContinuousLinearMap.fderiv, chart_radial_curve] |
| 1371 | rfl |
| 1372 | · intro x hx |
| 1373 | change fderiv ℝ chartRadiusLinear x _ = 0 |
| 1374 | rw [ContinuousLinearMap.fderiv] |
| 1375 | rfl |
| 1376 | · intro x hx |
| 1377 | change fderiv ℝ chartRadiusLinear x _ = 0 |
| 1378 | rw [ContinuousLinearMap.fderiv] |
| 1379 | rfl |
| 1380 | · intro x hx |
| 1381 | rw [chart_radial_aux_derivative B n hx.1.ne' _ rfl] |
| 1382 | simp |
| 1383 | · intro x hx |
| 1384 | rw [chart_radial_aux_derivative B n hx.1.ne' _ rfl] |
| 1385 | simp |
| 1386 | · intro x hx |
| 1387 | simp |
| 1388 | |
| 1389 | |
| 1390 | theorem chart_normal_absolute (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1391 | (j : Fin 2) (L : Label B N0) (n : ℕ) (x : ChartPoint) : |
| 1392 | (chartCoefficients j L).normal (piece U j L).strip (piece U j L).directions n x = |
| 1393 | ((1 / (ChartScales.carrier h n : ℝ)) * Real.sqrt (ChartScales.Q n)) • |
| 1394 | absoluteNormal j L (absoluteChart n x) := by |
| 1395 | change phaseNormal (fun y : ChartPoint => y.1.1) |
| 1396 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 1397 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 1398 | ((PrimaryResidualClass.directions (commonContext B)).axialField (piece U j L).strip n) |
| 1399 | ((chartCoefficients j L).phase n) x = _ |
| 1400 | rw [phase_representation] |
| 1401 | exact phaseNormal_equiv (absoluteChart n) (Real.sqrt_pos.mpr (ChartScales.Q_pos n)).ne' |
| 1402 | _ _ _ _ _ _ _ _ (absoluteChart_radius n) (absoluteChart_radial B n) |
| 1403 | (absoluteChart_angular B n) (absoluteChart_axial B n U) _ _ x |
| 1404 | |
| 1405 | theorem absoluteCutAmplitude_tangent (j : Fin 2) (L : Label B N0) {x : Absolute} |
| 1406 | (hx : x ∈ positiveAbsolute) : |
| 1407 | normalDot (absoluteNormal j L x) (absoluteCutAmplitude j L x) = 0 := by |
| 1408 | let n := BaseChartJets.cellBand L |
| 1409 | have ht : 0 < ((absoluteChart n).symm x).1.2.1.1 := div_pos hx (ChartScales.Q_pos n) |
| 1410 | have he := piece_cutAmplitude_tangent standardRegion j L n |
| 1411 | (CommonWindow.index_le_native h n) ht |
| 1412 | rw [chart_normal_absolute, cutAmplitude_representation] at he |
| 1413 | simp only [ContinuousLinearEquiv.apply_symm_apply] at he |
| 1414 | rw [PhysicalParticularWave.normalDot_scaled] at he |
| 1415 | have hK : (ChartScales.carrier h n : ℝ) ≠ 0 := (chartCoefficients_frequency_pos j L n).ne' |
| 1416 | have hc : (((1 / (ChartScales.carrier h n : ℝ)) * Real.sqrt (ChartScales.Q n) : ℝ) : ℂ) ≠ 0 := |
| 1417 | Complex.ofReal_ne_zero.mpr (mul_ne_zero (one_div_ne_zero hK) |
| 1418 | (Real.sqrt_pos.mpr (ChartScales.Q_pos n)).ne') |
| 1419 | have ha : ((ChartScales.Q n ^ CoordinateAlgebra.A h : ℝ) : ℂ) ≠ 0 := |
| 1420 | Complex.ofReal_ne_zero.mpr (Real.rpow_pos_of_pos (ChartScales.Q_pos n) _).ne' |
| 1421 | exact (mul_eq_zero.mp he).resolve_left (mul_ne_zero hc ha) |
| 1422 | |
| 1423 | /-- Tangency holds on every band. A valid native cover proves it first, |
| 1424 | then the exact absolute normal and amplitude laws remove any index restriction. -/ |
| 1425 | theorem piece_tangent (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1426 | (j : Fin 2) (L : Label B N0) (n : ℕ) {x : ChartPoint} |
| 1427 | (hx : x ∈ positiveChart) : |
| 1428 | normalDot ((chartCoefficients j L).normal (piece U j L).strip (piece U j L).directions n x) |
| 1429 | (((chartCoefficients j L).withCutoff (chartCutoff j L)).amplitude n x) = 0 := by |
| 1430 | rw [chart_normal_absolute, cutAmplitude_representation, PhysicalParticularWave.normalDot_scaled, |
| 1431 | absoluteCutAmplitude_tangent j L (mul_pos (ChartScales.Q_pos n) hx), mul_zero] |
| 1432 | |
| 1433 | theorem piece_normal_ne (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1434 | (j : Fin 2) (L : Label B N0) (n : ℕ) {x : ChartPoint} |
| 1435 | (hx : x ∈ positiveRadialChart) : |
| 1436 | (chartCoefficients j L).normal (piece U j L).strip (piece U j L).directions n x ≠ 0 := by |
| 1437 | rw [chart_normal_absolute] |
| 1438 | apply smul_ne_zero |
| 1439 | · exact mul_ne_zero (one_div_ne_zero (chartCoefficients_frequency_pos j L n).ne') |
| 1440 | (Real.sqrt_pos.mpr (ChartScales.Q_pos n)).ne' |
| 1441 | · exact absoluteNormal_ne j L ⟨mul_pos (Real.sqrt_pos.mpr (ChartScales.Q_pos n)) hx.1, |
| 1442 | mul_pos (ChartScales.Q_pos n) hx.2⟩ |
| 1443 | |
| 1444 | theorem piece_exactAmplitude_smooth (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1445 | (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1446 | ContDiffOn ℝ ∞ ((piece U j L).exactCoefficients.amplitude n) positiveRadialChart := by |
| 1447 | have hm : MapsTo (absoluteChart n) positiveRadialChart positiveRadialAbsolute := by |
| 1448 | intro x hx |
| 1449 | exact ⟨mul_pos (Real.sqrt_pos.mpr (ChartScales.Q_pos n)) hx.1, |
| 1450 | mul_pos (ChartScales.Q_pos n) hx.2⟩ |
| 1451 | exact (((absoluteExactAmplitude_smooth j L).comp (absoluteChart n).contDiff.contDiffOn hm).const_smul |
| 1452 | (ChartScales.Q n ^ CoordinateAlgebra.A h)).congr |
| 1453 | (fun x _ => exactAmplitude_representation U j L n x) |
| 1454 | |
| 1455 | theorem piece_complexVelocity_smooth (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1456 | (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1457 | ContDiffOn ℝ ∞ (vectorMode ((chartCoefficients j L).frequency n) ((chartCoefficients j L).phase n) |
| 1458 | ((piece U j L).exactCoefficients.amplitude n)) positiveRadialChart := by |
| 1459 | apply contDiffOn_pi.mpr |
| 1460 | intro i |
| 1461 | exact HarmonicCalculus.contDiffOn_mode _ (chart_phase_smooth j L n) |
| 1462 | (contDiffOn_pi.mp (piece_exactAmplitude_smooth U j L n) i) |
| 1463 | |
| 1464 | theorem piece_complex_divergence (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1465 | (j : Fin 2) (L : Label B N0) (n : ℕ) {x : ChartPoint} |
| 1466 | (hx : x ∈ positiveRadialChart) : |
| 1467 | cylindricalDivergence (fun y : ChartPoint => y.1.1) |
| 1468 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 1469 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 1470 | ((PrimaryResidualClass.directions (commonContext B)).axialField (piece U j L).strip n) |
| 1471 | (vectorMode ((chartCoefficients j L).frequency n) ((chartCoefficients j L).phase n) |
| 1472 | ((piece U j L).exactCoefficients.amplitude n)) x = 0 := by |
| 1473 | exact CurlClassBounds.realizedCoefficient_divergence (piece_geometry U B n) |
| 1474 | (chartCoefficients_frequency_pos j L n).ne' (chart_phase_smooth j L n) |
| 1475 | ((chart_cutoff_smooth j L n).contDiffOn.smul |
| 1476 | ((chart_amplitude_smooth j L n).mono (fun _ hy => hy.2))) |
| 1477 | (fun _ hy => piece_normal_ne U j L n hy) (fun _ hy => piece_tangent U j L n hy.2) hx |
| 1478 | |
| 1479 | /-- Literal real corrected field, with the radial connection term included. -/ |
| 1480 | theorem piece_full_divergence (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1481 | (j : Fin 2) (L : Label B N0) (n : ℕ) {x : ChartPoint} |
| 1482 | (hx : x ∈ positiveRadialChart) : |
| 1483 | cylindricalDivergence (fun y : ChartPoint => y.1.1) |
| 1484 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 1485 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 1486 | ((PrimaryResidualClass.directions (commonContext B)).axialField (piece U j L).strip n) |
| 1487 | (fun y i => ((piece U j L).velocity n y i : ℂ)) x = 0 := by |
| 1488 | change cylindricalDivergence _ _ _ _ |
| 1489 | (fun y i => PrimaryResidualClass.realProjection |
| 1490 | (vectorMode ((chartCoefficients j L).frequency n) ((chartCoefficients j L).phase n) |
| 1491 | ((piece U j L).exactCoefficients.amplitude n) y i)) x = 0 |
| 1492 | rw [PrimaryResidualClass.divergence_map PrimaryResidualClass.realProjection _ _ _ _ |
| 1493 | (fun i => ((contDiffOn_pi.mp (piece_complexVelocity_smooth U j L n) i).contDiffAt |
| 1494 | (positiveRadialChart_open.mem_nhds hx)).differentiableAt (by simp)), |
| 1495 | piece_complex_divergence U j L n hx, map_zero] |
| 1496 | |
| 1497 | /-- The absolute free lift evaluated on the actual physical cylindrical graph. -/ |
| 1498 | noncomputable def physicalLift (z : ProblemStatement.SpaceTime) : Absolute := |
| 1499 | (((z.2 0, (z.2 2, 1-z.1)), |
| 1500 | (z.2 0)^ChartScales.radialExponent h • PhysicalGraphBounds.radialDirection + |
| 1501 | z.1 • PhysicalGraphBounds.timeDirection), z.2 1) |
| 1502 | |
| 1503 | theorem absoluteChart_physical (n : ℕ) {z : ProblemStatement.SpaceTime} (hr : 0 < z.2 0) : |
| 1504 | absoluteChart n (PhysicalResidualTZ.swapCylinder |
| 1505 | ((PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).map z)) = |
| 1506 | physicalLift z := by |
| 1507 | apply (absoluteChart n).symm.injective |
| 1508 | rw [ContinuousLinearEquiv.symm_apply_apply, PhysicalResidualBridge.commonGraph_eq_physicalToChart h n _ hr, |
| 1509 | MeanChartCompatibility.physicalToChart_apply, MeanChartCompatibility.coverMap_eq_coverPower] |
| 1510 | simp only [absoluteChart_symm_apply, fromAbsolute, physicalLift, PhysicalResidualBridge.absoluteLift, |
| 1511 | PhysicalResidualTZ.swapCylinder_apply, PhysicalResidualTZ.swapSlow_apply, MeanChartCompatibility.chartScale, |
| 1512 | Real.rpow_neg (ChartScales.Q_pos n).le, Real.rpow_one, Real.sqrt_eq_rpow, div_eq_mul_inv] |
| 1513 | ext <;> ring |
| 1514 | |
| 1515 | noncomputable def physicalPhase (j : Fin 2) (L : Label B N0) : ProblemStatement.SpaceTime → ℝ := |
| 1516 | fun z => absolutePhase j L (physicalLift z) |
| 1517 | |
| 1518 | noncomputable def physicalAmplitude (j : Fin 2) (L : Label B N0) : ProblemStatement.SpaceTime → ComplexVector := |
| 1519 | fun z => absoluteCutAmplitude j L (physicalLift z) |
| 1520 | |
| 1521 | noncomputable def liftedPhase (j : Fin 2) (L : Label B N0) (n : ℕ) : ChartPoint → ℝ := |
| 1522 | fun x => (chartCoefficients j L).phase n (PhysicalResidualTZ.swapCylinder x) |
| 1523 | |
| 1524 | noncomputable def liftedAmplitude (j : Fin 2) (L : Label B N0) (n : ℕ) : ChartPoint → ComplexVector := |
| 1525 | fun x => ((chartCoefficients j L).withCutoff (chartCutoff j L)).amplitude n |
| 1526 | (PhysicalResidualTZ.swapCylinder x) |
| 1527 | |
| 1528 | noncomputable def liftedDomain : Set ChartPoint := |
| 1529 | PhysicalResidualTZ.swapCylinder ⁻¹' positiveRadialChart |
| 1530 | |
| 1531 | theorem liftedDomain_open : IsOpen liftedDomain := |
| 1532 | positiveRadialChart_open.preimage PhysicalResidualTZ.swapCylinder.continuous |
| 1533 | |
| 1534 | theorem liftedPhase_smooth (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1535 | ContDiffOn ℝ ∞ (liftedPhase j L n) liftedDomain := |
| 1536 | (chart_phase_smooth j L n).comp PhysicalResidualTZ.swapCylinder.contDiff.contDiffOn |
| 1537 | (fun _ hx => hx) |
| 1538 | |
| 1539 | theorem liftedAmplitude_smooth (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1540 | ContDiffOn ℝ ∞ (liftedAmplitude j L n) liftedDomain := by |
| 1541 | have hc : ContDiffOn ℝ ∞ |
| 1542 | (((chartCoefficients j L).withCutoff (chartCutoff j L)).amplitude n) positiveRadialChart := |
| 1543 | (chart_cutoff_smooth j L n).contDiffOn.smul |
| 1544 | ((chart_amplitude_smooth j L n).mono (fun _ hx => hx.2)) |
| 1545 | exact hc.comp PhysicalResidualTZ.swapCylinder.contDiff.contDiffOn (fun _ hx => hx) |
| 1546 | |
| 1547 | theorem chart_normal_lifted (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1548 | (j : Fin 2) (L : Label B N0) (n : ℕ) (x : ChartPoint) : |
| 1549 | (chartCoefficients j L).normal (piece U j L).strip (piece U j L).directions n |
| 1550 | (PhysicalResidualTZ.swapCylinder x) = |
| 1551 | phaseNormal PhysicalResidualBridge.ScaledGraph.radius |
| 1552 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).radial |
| 1553 | PhysicalResidualBridge.ScaledGraph.angular |
| 1554 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).axial |
| 1555 | (liftedPhase j L n) x := by |
| 1556 | have he := phaseNormal_equiv PhysicalResidualTZ.swapCylinder.toContinuousLinearEquiv one_ne_zero |
| 1557 | (fun y : ChartPoint => y.1.1) PhysicalResidualBridge.ScaledGraph.radius |
| 1558 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 1559 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 1560 | ((PrimaryResidualClass.directions (commonContext B)).axialField (piece U j L).strip n) |
| 1561 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).radial |
| 1562 | PhysicalResidualBridge.ScaledGraph.angular |
| 1563 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).axial |
| 1564 | (fun _ => (one_mul _).symm) (fun y => by simpa using chart_radial_swap B n y) |
| 1565 | (fun _ => rfl) (fun y => by simp only [one_smul]; exact chart_axial_swap B n U y) 1 |
| 1566 | (liftedPhase j L n) (PhysicalResidualTZ.swapCylinder x) |
| 1567 | simp only [liftedPhase, one_mul, one_smul] at he ⊢ |
| 1568 | exact he |
| 1569 | |
| 1570 | theorem lifted_realized (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1571 | (j : Fin 2) (L : Label B N0) (n : ℕ) (x : ChartPoint) : |
| 1572 | (piece U j L).exactCoefficients.amplitude n (PhysicalResidualTZ.swapCylinder x) = |
| 1573 | CurlClassBounds.realizedCoefficient ((chartCoefficients j L).frequency n) |
| 1574 | PhysicalResidualBridge.ScaledGraph.radius |
| 1575 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).radial |
| 1576 | PhysicalResidualBridge.ScaledGraph.angular |
| 1577 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).axial |
| 1578 | (liftedPhase j L n) (liftedAmplitude j L n) x := by |
| 1579 | have he := realizedCoefficient_equiv PhysicalResidualTZ.swapCylinder.toContinuousLinearEquiv |
| 1580 | one_ne_zero one_ne_zero (chartCoefficients_frequency_pos j L n).ne' (mul_one _) |
| 1581 | (fun y : ChartPoint => y.1.1) PhysicalResidualBridge.ScaledGraph.radius |
| 1582 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 1583 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 1584 | ((PrimaryResidualClass.directions (commonContext B)).axialField (piece U j L).strip n) |
| 1585 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).radial |
| 1586 | PhysicalResidualBridge.ScaledGraph.angular |
| 1587 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).axial |
| 1588 | (fun _ => (one_mul _).symm) (fun y => by simpa using chart_radial_swap B n y) |
| 1589 | (fun _ => rfl) (fun y => by simp only [one_smul]; exact chart_axial_swap B n U y) 1 |
| 1590 | (liftedPhase j L n) (liftedAmplitude j L n) (PhysicalResidualTZ.swapCylinder x) |
| 1591 | simp only [liftedPhase, liftedAmplitude, one_mul, one_smul] at he ⊢ |
| 1592 | exact he |
| 1593 | |
| 1594 | theorem physicalPhase_eq (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 1595 | {z : ProblemStatement.SpaceTime} (hr : 0 < z.2 0) : |
| 1596 | physicalPhase j L z = (chartCoefficients j L).frequency n * liftedPhase j L n |
| 1597 | ((PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).map z) := by |
| 1598 | rw [liftedPhase, chartCoefficients_phase] |
| 1599 | exact congrArg (absolutePhase j L) (absoluteChart_physical n hr).symm |
| 1600 | |
| 1601 | theorem physicalAmplitude_eq (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 1602 | {z : ProblemStatement.SpaceTime} (hr : 0 < z.2 0) : |
| 1603 | physicalAmplitude j L z = ChartScales.Q n ^ (-CoordinateAlgebra.A h) • liftedAmplitude j L n |
| 1604 | ((PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).map z) := by |
| 1605 | rw [liftedAmplitude, cutAmplitude_representation] |
| 1606 | dsimp only |
| 1607 | rw [absoluteChart_physical n hr, smul_smul, |
| 1608 | ← Real.rpow_add (ChartScales.Q_pos n), neg_add_cancel, Real.rpow_zero, one_smul] |
| 1609 | rfl |
| 1610 | |
| 1611 | noncomputable def physicalAngular : ProblemStatement.SpaceTime := |
| 1612 | (0,ProblemStatement.coordinateVector 1) |
| 1613 | |
| 1614 | theorem physicalLift_angular (z : ProblemStatement.SpaceTime) (s : ℝ) : |
| 1615 | physicalLift (z+s • physicalAngular) = physicalLift z + s • ((0 : AbsolutePoint),1) := by |
| 1616 | ext <;> simp [physicalLift, physicalAngular, ProblemStatement.coordinateVector] |
| 1617 | |
| 1618 | theorem physicalPhase_angular (j : Fin 2) (L : Label B N0) : |
| 1619 | CopyAngularInvariance.AffinePhase physicalAngular |
| 1620 | (PrimaryGeometryAssembly.angularMode certificate modulation (choice B N0).prepared j L : ℝ) |
| 1621 | (physicalPhase j L) := by |
| 1622 | intro x t |
| 1623 | exact (congrArg (absolutePhase j L) (physicalLift_angular x t)).trans |
| 1624 | (absolutePhase_angular j L (physicalLift x) t) |
| 1625 | |
| 1626 | theorem physicalAmplitude_angular (j : Fin 2) (L : Label B N0) : |
| 1627 | CopyAngularInvariance.Invariant physicalAngular (physicalAmplitude j L) := by |
| 1628 | intro x t |
| 1629 | change absoluteCutAmplitude j L (physicalLift (x+t • physicalAngular)) = _ |
| 1630 | rw [physicalLift_angular] |
| 1631 | simp [absoluteCutAmplitude,physicalAmplitude] |
| 1632 | |
| 1633 | noncomputable def physicalPotential (j : Fin 2) (L : Label B N0) : |
| 1634 | ProblemStatement.SpaceTime → ComplexVector := |
| 1635 | PhysicalCurlCovariance.referencePotential 1 (physicalPhase j L) (physicalAmplitude j L) |
| 1636 | |
| 1637 | theorem physicalPotential_periodic (j : Fin 2) (L : Label B N0) (t r z : ℝ) : |
| 1638 | Periodic (fun θ => physicalPotential j L (t,AxisymmetricResidual.pack r θ z)) (2*Real.pi) := by |
| 1639 | have hR : CopyAngularInvariance.Invariant physicalAngular LinearWaveResidual.coordinateRadius := by |
| 1640 | intro x s |
| 1641 | simp [physicalAngular, LinearWaveResidual.coordinateRadius, ProblemStatement.coordinateVector] |
| 1642 | have hturn := PhysicalCurlCovariance.vectorPotential_fullTurn |
| 1643 | (PrimaryGeometryAssembly.angularMode certificate modulation (choice B N0).prepared j L) |
| 1644 | hR (CopyAngularInvariance.Invariant.const (0,ProblemStatement.coordinateVector 0)) |
| 1645 | (CopyAngularInvariance.Invariant.const physicalAngular) |
| 1646 | (CopyAngularInvariance.Invariant.const (0,ProblemStatement.coordinateVector 2)) |
| 1647 | (physicalPhase_angular j L) (physicalAmplitude_angular j L) (one_mul _) |
| 1648 | intro θ |
| 1649 | have hp : ((t,AxisymmetricResidual.pack r θ z) : ProblemStatement.SpaceTime) + |
| 1650 | (2*Real.pi) • physicalAngular = (t,AxisymmetricResidual.pack r (θ+2*Real.pi) z) := by |
| 1651 | apply Prod.ext |
| 1652 | · simp [physicalAngular] |
| 1653 | · ext i |
| 1654 | fin_cases i <;> simp [physicalAngular, ProblemStatement.coordinateVector] |
| 1655 | have he := hturn (t,AxisymmetricResidual.pack r θ z) |
| 1656 | simp only [hp] at he |
| 1657 | exact he |
| 1658 | |
| 1659 | /-- One fixed radius for each original label, chosen from its actual |
| 1660 | physical scale and the positive inner support radius. -/ |
| 1661 | noncomputable def physicalAxisRadius (L : Label B N0) : ℝ := |
| 1662 | Real.sqrt (ChartScales.Q (BaseChartJets.cellBand L)) * PrimaryTargetBounds.leftRadius nominal / 4 |
| 1663 | |
| 1664 | theorem physicalAxisRadius_pos (L : Label B N0) : 0 < physicalAxisRadius L := |
| 1665 | div_pos (mul_pos (Real.sqrt_pos.mpr (ChartScales.Q_pos _)) (PrimaryTargetBounds.leftRadius_pos nominal)) |
| 1666 | (by norm_num) |
| 1667 | |
| 1668 | theorem absoluteAmplitude_zero_mask (j : Fin 2) (L : Label B N0) (x : AbsolutePoint) |
| 1669 | (hx : spatialMask L (nativeSlow L x) = 0) : absoluteAmplitude j L x = 0 := by |
| 1670 | have hraw (Y : TorusInverse.Plane) : rawVelocity j L (nativeSlow L x,Y) = 0 := by |
| 1671 | simp [rawVelocity, PartitionedCovariance.amplitude, hx] |
| 1672 | have hsum : uncutAmplitude j L (nativeSlow L x) x.2 = 0 := by |
| 1673 | unfold uncutAmplitude |
| 1674 | have hh (k : TorusInverse.Frequency) : |
| 1675 | attachedRawVelocity j L (nativeSlow L x, (geometry j L).coordinates k x.2) = 0 := by |
| 1676 | simp [attachedRawVelocity, WaveEdgeExtension.nativeExtension, WaveEdgeExtension.extension, |
| 1677 | outerRawVelocity, hraw] |
| 1678 | simp only [hh,map_zero,tsum_zero] |
| 1679 | simp [absoluteAmplitude,hsum] |
| 1680 | |
| 1681 | theorem physicalAmplitude_zero_axis (j : Fin 2) (L : Label B N0) (z : ProblemStatement.SpaceTime) |
| 1682 | (hz : z.2 0 ≤ physicalAxisRadius L) : physicalAmplitude j L z = 0 := by |
| 1683 | have hr : amplitudeRadius L (physicalLift z) ∉ |
| 1684 | Ioo (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal) ∨ |
| 1685 | spatialMask L (nativeSlow L (physicalLift z).1) = 0 := by |
| 1686 | by_cases hm : spatialMask L (nativeSlow L (physicalLift z).1) = 0 |
| 1687 | · exact Or.inr hm |
| 1688 | left |
| 1689 | have hq := (spatialMask_q_range L _ hm).1 |
| 1690 | have hs : 1/2 < Real.sqrt (SimilarityCoordinates.coordinateQ (2*h) |
| 1691 | ((nativeSlow L (physicalLift z).1).2.2,(nativeSlow L (physicalLift z).1).2.1)) := by |
| 1692 | apply (Real.lt_sqrt (by norm_num)).2 |
| 1693 | linarith |
| 1694 | have hu : (nativeSlow L (physicalLift z).1).1 ≤ PrimaryTargetBounds.leftRadius nominal / 4 := by |
| 1695 | change z.2 0 / Real.sqrt (ChartScales.Q (BaseChartJets.cellBand L)) ≤ _ |
| 1696 | apply (div_le_iff₀ (Real.sqrt_pos.mpr (ChartScales.Q_pos _))).2 |
| 1697 | convert! hz using 1 |
| 1698 | unfold physicalAxisRadius |
| 1699 | ring |
| 1700 | intro hx |
| 1701 | have hx1 := hx.1 |
| 1702 | simp only [amplitudeRadius,PrimaryTargetBounds.profileRadius,BaseChartJets.normalizedCoordinates_eq, |
| 1703 | SimilarityHomogeneity.chartQ] at hx1 |
| 1704 | have hn := (lt_div_iff₀ (lt_trans (by norm_num : (0:ℝ)<1/2) hs)).mp hx1 |
| 1705 | have hp := PrimaryTargetBounds.leftRadius_pos nominal |
| 1706 | nlinarith |
| 1707 | have he : absoluteAmplitude j L (physicalLift z).1 = 0 := by |
| 1708 | rcases hr with hr | hr |
| 1709 | · exact absoluteAmplitude_zero_outside j L (physicalLift z) hr |
| 1710 | · exact absoluteAmplitude_zero_mask j L (physicalLift z).1 hr |
| 1711 | simp [physicalAmplitude, absoluteCutAmplitude, he] |
| 1712 | |
| 1713 | theorem physicalPotential_zero_axis (j : Fin 2) (L : Label B N0) (z : ProblemStatement.SpaceTime) |
| 1714 | (hz : z.2 0 ≤ physicalAxisRadius L) : physicalPotential j L z = 0 := by |
| 1715 | have ha := physicalAmplitude_zero_axis j L z hz |
| 1716 | ext i |
| 1717 | simp [physicalPotential, PhysicalCurlCovariance.referencePotential, |
| 1718 | CurlClassBounds.vectorPotential, vectorMode, mode, CurlClassBounds.coefficient, |
| 1719 | CurlClassBounds.normalCoefficient, CurlClassBounds.normalCross,ha] |
| 1720 | |
| 1721 | |
| 1722 | theorem periodic_value_of_polar_eq {E : Type} (f : TorusInverse.Plane → E) |
| 1723 | (hf : ∀ r, Periodic (fun θ => f (r,θ)) (2*Real.pi)) |
| 1724 | {r θ : ℝ} (hr : r ≠ 0) {q : TorusInverse.Plane} (hqr : q.1 = r) |
| 1725 | (hq : PolarCharts.polar q = PolarCharts.polar (r,θ)) : f q = f (r,θ) := by |
| 1726 | have hc : Real.cos q.2 = Real.cos θ := by |
| 1727 | apply mul_left_cancel₀ hr |
| 1728 | simpa only [PolarCharts.polar,hqr] using congrArg Prod.fst hq |
| 1729 | have hs : Real.sin q.2 = Real.sin θ := by |
| 1730 | apply mul_left_cancel₀ hr |
| 1731 | simpa only [PolarCharts.polar,hqr] using congrArg Prod.snd hq |
| 1732 | obtain ⟨n,hn⟩ := Real.Angle.angle_eq_iff_two_pi_dvd_sub.mp (Real.Angle.cos_sin_inj hc hs) |
| 1733 | have he : q.2 = θ+n*(2*Real.pi) := by nlinarith [hn] |
| 1734 | rw [← Prod.eta q,hqr,he] |
| 1735 | exact ((hf r).int_mul n) θ |
| 1736 | |
| 1737 | /-- The complete periodic potential gives a forward representation at every |
| 1738 | positive cylindrical radius, including angles outside the chosen inverse chart. -/ |
| 1739 | theorem globalPotential_forward {a : ℝ} (ha : 0 < a) |
| 1740 | (B : ProblemStatement.SpaceTime → ComplexVector) |
| 1741 | (hper : ∀ t r z : ℝ, Periodic (fun θ => B (t,AxisymmetricResidual.pack r θ z)) (2*Real.pi)) |
| 1742 | (hzero : ∀ z : ProblemStatement.SpaceTime, z.2 0 ≤ a → B z = 0) |
| 1743 | {z : ProblemStatement.SpaceTime} (hr : 0 < z.2 0) : |
| 1744 | PhysicalCurlCovariance.globalCartesianPotential a B (z.1,CylindricalResidual.chart z.2) = |
| 1745 | CylindricalResidual.frame (z.2 1) (PhysicalCurlCovariance.realVector (B z)) := by |
| 1746 | classical |
| 1747 | have he : PhysicalGraphBounds.radialProjection (z.1,CylindricalResidual.chart z.2) = |
| 1748 | PolarCharts.polar (z.2 0,z.2 1) := by |
| 1749 | simp [PhysicalGraphBounds.radialProjection_apply,CylindricalResidual.chart,PolarCharts.polar] |
| 1750 | by_cases hc : ∃ j : PolarCharts.Index, PolarCharts.polar (z.2 0,z.2 1) ∈ PolarCharts.chartDomain a j |
| 1751 | · obtain ⟨j,hj⟩ := hc |
| 1752 | rw [PhysicalCurlCovariance.globalCartesianPotential_eq_local ha B hper j (by simpa only [he] using hj)] |
| 1753 | let f : TorusInverse.Plane → ProblemStatement.Space := fun p => |
| 1754 | CylindricalResidual.frame p.2 (PhysicalCurlCovariance.realVector |
| 1755 | (B (z.1,AxisymmetricResidual.pack p.1 p.2 (z.2 2)))) |
| 1756 | have hf (r : ℝ) : Periodic (fun θ => f (r,θ)) (2*Real.pi) := by |
| 1757 | intro θ |
| 1758 | dsimp only [f] |
| 1759 | rw [PhysicalCurlCovariance.frame_periodic θ] |
| 1760 | have he := hper z.1 r (z.2 2) θ |
| 1761 | dsimp only at he |
| 1762 | rw [he] |
| 1763 | have hqr : (PolarCharts.chart a j (PolarCharts.polar (z.2 0,z.2 1))).1 = z.2 0 := by |
| 1764 | rw [PolarCharts.chart_eq_localChart ha j hj,PolarCharts.localChart_apply, |
| 1765 | PolarCharts.radius_polar,abs_of_pos hr] |
| 1766 | have hp := periodic_value_of_polar_eq f hf hr.ne' hqr (PolarCharts.polar_chart ha j hj) |
| 1767 | have hpack : AxisymmetricResidual.pack (z.2 0) (z.2 1) (z.2 2) = z.2 := by |
| 1768 | ext i |
| 1769 | fin_cases i <;> simp |
| 1770 | calc |
| 1771 | _ = f (PolarCharts.chart a j (PolarCharts.polar (z.2 0,z.2 1))) := by |
| 1772 | simp only [PhysicalCurlCovariance.cartesianPotential,PhysicalCurlCovariance.polarCoordinates, |
| 1773 | PhysicalCurlCovariance.polarInput,he,f] |
| 1774 | simp only [CylindricalResidual.chart,AxisymmetricResidual.pack_two] |
| 1775 | _ = f (z.2 0,z.2 1) := hp |
| 1776 | _ = _ := by dsimp only [f]; rw [hpack] |
| 1777 | · have hn : ‖PolarCharts.polar (z.2 0,z.2 1)‖ ≤ a/4 := by |
| 1778 | obtain ⟨j,hj⟩ := PolarCharts.exists_rotate_fst_ge (p := PolarCharts.polar (z.2 0,z.2 1)) le_rfl |
| 1779 | apply le_of_not_gt |
| 1780 | intro hh |
| 1781 | exact hc ⟨j,lt_of_lt_of_le hh hj⟩ |
| 1782 | have hz : z.2 0 ≤ a := by |
| 1783 | have hb := PolarCharts.radius_le_two_norm (PolarCharts.polar (z.2 0,z.2 1)) |
| 1784 | rw [PolarCharts.radius_polar,abs_of_pos hr] at hb |
| 1785 | linarith |
| 1786 | have hc' : ¬∃ j : PolarCharts.Index, |
| 1787 | PhysicalGraphBounds.radialProjection (z.1,CylindricalResidual.chart z.2) ∈ PolarCharts.chartDomain a j := by |
| 1788 | simpa only [he] using hc |
| 1789 | rw [PhysicalCurlCovariance.globalCartesianPotential,dite_eq_right hc',hzero z hz] |
| 1790 | have hp : AxisymmetricResidual.pack 0 0 0 = (0 : ProblemStatement.Space) := by |
| 1791 | ext i |
| 1792 | fin_cases i <;> simp |
| 1793 | simp [PhysicalCurlCovariance.realVector,hp] |
| 1794 | |
| 1795 | theorem globalPotential_forward_germ {a : ℝ} (ha : 0 < a) |
| 1796 | (B : ProblemStatement.SpaceTime → ComplexVector) |
| 1797 | (hper : ∀ t r z : ℝ, Periodic (fun θ => B (t,AxisymmetricResidual.pack r θ z)) (2*Real.pi)) |
| 1798 | (hzero : ∀ z : ProblemStatement.SpaceTime, z.2 0 ≤ a → B z = 0) |
| 1799 | {z : ProblemStatement.SpaceTime} (hr : 0 < z.2 0) : |
| 1800 | (fun y => PhysicalCurlCovariance.globalCartesianPotential a B (y.1,CylindricalResidual.chart y.2)) =ᶠ[𝓝 z] |
| 1801 | (fun y => CylindricalResidual.frame (y.2 1) (PhysicalCurlCovariance.realVector (B y))) := |
| 1802 | eventually_of_mem ((isOpen_lt continuous_const (PhysicalGraphBounds.coordinateProjection 0).continuous).mem_nhds hr) |
| 1803 | (fun _ hy => globalPotential_forward ha B hper hzero hy) |
| 1804 | |
| 1805 | |
| 1806 | /-! ## One actual Cartesian potential for every primary label -/ |
| 1807 | |
| 1808 | theorem physical_source (n : ℕ) {z : ProblemStatement.SpaceTime} |
| 1809 | (ht : z.1 < 1) (hr : 0 < z.2 0) : |
| 1810 | z ∈ (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).source liftedDomain := by |
| 1811 | refine ⟨hr,?_⟩ |
| 1812 | change (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).map z ∈ liftedDomain |
| 1813 | rw [PhysicalResidualBridge.commonGraph_map (ChartScales.Q_pos n) h _ hr] |
| 1814 | change 0 < ChartScales.Q n ^ (-(1/2:ℝ)) * z.2 0 ∧ 0 < (1-z.1) / ChartScales.Q n |
| 1815 | exact ⟨mul_pos (Real.rpow_pos_of_pos (ChartScales.Q_pos n) _) hr, |
| 1816 | div_pos (sub_pos.mpr ht) (ChartScales.Q_pos n)⟩ |
| 1817 | |
| 1818 | theorem liftedNormal_ne (j : Fin 2) (L : Label B N0) (n : ℕ) {x : ChartPoint} (hx : x ∈ liftedDomain) : |
| 1819 | phaseNormal PhysicalResidualBridge.ScaledGraph.radius |
| 1820 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).radial |
| 1821 | PhysicalResidualBridge.ScaledGraph.angular |
| 1822 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).axial |
| 1823 | (liftedPhase j L n) x ≠ 0 := by |
| 1824 | rw [← chart_normal_lifted standardRegion j L n x] |
| 1825 | exact piece_normal_ne standardRegion j L n hx |
| 1826 | |
| 1827 | theorem lifted_tangent (j : Fin 2) (L : Label B N0) (n : ℕ) {x : ChartPoint} (hx : x ∈ liftedDomain) : |
| 1828 | normalDot (phaseNormal PhysicalResidualBridge.ScaledGraph.radius |
| 1829 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).radial |
| 1830 | PhysicalResidualBridge.ScaledGraph.angular |
| 1831 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).axial |
| 1832 | (liftedPhase j L n) x) (liftedAmplitude j L n x) = 0 := by |
| 1833 | rw [← chart_normal_lifted standardRegion j L n x] |
| 1834 | exact piece_tangent standardRegion j L n hx.2 |
| 1835 | |
| 1836 | theorem liftedPotential_smooth (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1837 | ContDiffOn ℝ ∞ (CurlClassBounds.vectorPotential ((chartCoefficients j L).frequency n) |
| 1838 | PhysicalResidualBridge.ScaledGraph.radius |
| 1839 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).radial |
| 1840 | PhysicalResidualBridge.ScaledGraph.angular |
| 1841 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).axial |
| 1842 | (liftedPhase j L n) (liftedAmplitude j L n)) liftedDomain := |
| 1843 | CurlClassBounds.vectorPotential_contDiffOn |
| 1844 | (PhysicalCurlCovariance.ScaledGraph.geometry _ liftedDomain_open (fun _ hx => hx.1.ne')) _ |
| 1845 | (liftedPhase_smooth j L n) (liftedAmplitude_smooth j L n) (fun _ hx => liftedNormal_ne j L n hx) |
| 1846 | |
| 1847 | theorem physicalPotential_smooth (j : Fin 2) (L : Label B N0) : |
| 1848 | ContDiffOn ℝ ∞ (physicalPotential j L) {z : ProblemStatement.SpaceTime | z.1 < 1 ∧ 0 < z.2 0} := by |
| 1849 | have he := PhysicalCurlCovariance.referencePotential_eq_on (ChartScales.Q_pos 0) h (CommonWindow.index h 0) |
| 1850 | liftedDomain_open one_ne_zero (chartCoefficients_frequency_pos j L 0).ne' |
| 1851 | (liftedPhase_smooth j L 0) (liftedAmplitude j L 0) (physicalPhase j L) (physicalAmplitude j L) |
| 1852 | (fun z hz => by simpa only [one_mul] using physicalPhase_eq j L 0 hz.1) |
| 1853 | (fun z hz => physicalAmplitude_eq j L 0 hz.1) |
| 1854 | intro z hz |
| 1855 | have hs := physical_source 0 hz.1 hz.2 |
| 1856 | have hm := (PhysicalResidualBridge.commonGraph (ChartScales.Q 0) h (CommonWindow.index h 0)).map_smoothAt |
| 1857 | (mul_pos (Real.rpow_pos_of_pos (ChartScales.Q_pos 0) _) hz.2).ne' |
| 1858 | have hc := ((liftedPotential_smooth j L 0).contDiffAt (liftedDomain_open.mem_nhds hs.2)).comp z hm |
| 1859 | apply ContDiffAt.contDiffWithinAt |
| 1860 | apply (hc.const_smul (ChartScales.Q 0 ^ (-h))).congr_of_eventuallyEq |
| 1861 | exact eventually_of_mem |
| 1862 | ((PhysicalResidualBridge.commonGraph (ChartScales.Q 0) h (CommonWindow.index h 0)).source_open |
| 1863 | (Real.rpow_pos_of_pos (ChartScales.Q_pos 0) _) liftedDomain_open |>.mem_nhds hs) |
| 1864 | (fun _ hy => he hy) |
| 1865 | |
| 1866 | /-- No band index occurs in this Cartesian potential. The cutoff is the |
| 1867 | original periodic Gaussian, and the polar chart is chosen from its full-turn-compatible values. -/ |
| 1868 | noncomputable def cartesianPotential (j : Fin 2) (L : Label B N0) : ProblemStatement.VelocityField := |
| 1869 | PhysicalCurlCovariance.globalCartesianPotential (physicalAxisRadius L) (physicalPotential j L) |
| 1870 | |
| 1871 | noncomputable def cartesianVelocity (j : Fin 2) (L : Label B N0) : ProblemStatement.VelocityField := |
| 1872 | SpatialCurl.spatialCurl (cartesianPotential j L) |
| 1873 | |
| 1874 | theorem cartesianPotential_smooth (j : Fin 2) (L : Label B N0) : |
| 1875 | ContDiffOn ℝ ∞ (cartesianPotential j L) {z : ProblemStatement.SpaceTime | z.1 < 1} := |
| 1876 | (PhysicalCurlCovariance.globalCartesianPotential_smoothOn (physicalAxisRadius_pos L) isOpen_Iio |
| 1877 | (physicalPotential_smooth j L) (physicalPotential_periodic j L) (physicalPotential_zero_axis j L)).mono |
| 1878 | (fun _ hz => ⟨hz,trivial⟩) |
| 1879 | |
| 1880 | theorem cartesianVelocity_axis_zero (j : Fin 2) (L : Label B N0) (t : ℝ) (x : ProblemStatement.Space) |
| 1881 | (hx : x 0 = 0) (hy : x 1 = 0) : cartesianVelocity j L (t,x) = 0 := by |
| 1882 | apply PhysicalCurlCovariance.spatialCurl_zero_of_zero_near |
| 1883 | apply PhysicalCurlCovariance.globalCartesianPotential_zero_germ (physicalAxisRadius_pos L) |
| 1884 | (physicalPotential_zero_axis j L) |
| 1885 | simpa only [PhysicalGraphBounds.radialProjection_apply,PolarCharts.radius,hx,hy, |
| 1886 | zero_pow (by decide : 2 ≠ 0),zero_add,Real.sqrt_zero] using physicalAxisRadius_pos L |
| 1887 | |
| 1888 | /-- Every actual band velocity is the rotating-frame representation of |
| 1889 | the curl of the same constructed Cartesian potential. This includes all |
| 1890 | positive radii and all angles, without a native-cover restriction. -/ |
| 1891 | theorem piece_cartesian_velocity (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1892 | (j : Fin 2) (L : Label B N0) (n : ℕ) {z : ProblemStatement.SpaceTime} |
| 1893 | (ht : z.1 < 1) (hr : 0 < z.2 0) (i : Fin 3) : |
| 1894 | (piece U j L).velocity n (PhysicalResidualTZ.swapCylinder |
| 1895 | ((PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).map z)) i = |
| 1896 | ChartScales.Q n ^ CoordinateAlgebra.A h * CylindricalResidual.frame (-(z.2 1)) |
| 1897 | (cartesianVelocity j L (z.1,CylindricalResidual.chart z.2)) i := by |
| 1898 | have hA : DifferentiableAt ℝ (cartesianPotential j L) (z.1,CylindricalResidual.chart z.2) := |
| 1899 | ((cartesianPotential_smooth j L).contDiffAt (x := (z.1,CylindricalResidual.chart z.2)) |
| 1900 | ((isOpen_lt continuous_fst continuous_const).mem_nhds ht)).differentiableAt (by simp) |
| 1901 | have he := globalPotential_forward_germ (physicalAxisRadius_pos L) (physicalPotential j L) |
| 1902 | (physicalPotential_periodic j L) (physicalPotential_zero_axis j L) hr |
| 1903 | have hc := PhysicalCurlCovariance.reference_correctedWave (ChartScales.Q_pos n) h (CommonWindow.index h n) |
| 1904 | liftedDomain_open (fun _ hx => hx.1.ne') one_ne_zero (chartCoefficients_frequency_pos j L n).ne' |
| 1905 | (liftedPhase_smooth j L n) (liftedAmplitude_smooth j L n) |
| 1906 | (fun _ hx => liftedNormal_ne j L n hx) (fun _ hx => lifted_tangent j L n hx) |
| 1907 | (physicalPhase j L) (physicalAmplitude j L) |
| 1908 | (fun z hz => by simpa only [one_mul] using physicalPhase_eq j L n hz.1) |
| 1909 | (fun z hz => physicalAmplitude_eq j L n hz.1) (physical_source n ht hr) hA he i |
| 1910 | change ((piece U j L).exactCoefficients.amplitude n _ i * |
| 1911 | carrier ((chartCoefficients j L).frequency n) ((chartCoefficients j L).phase n) _).re = _ |
| 1912 | rw [lifted_realized U j L n] |
| 1913 | exact hc |
| 1914 | |
| 1915 | noncomputable def physicalPressure (j : Fin 2) (L : Label B N0) : ProblemStatement.SpaceTime → ℝ := |
| 1916 | fun z => absolutePressureMode j L (physicalLift z) |
| 1917 | |
| 1918 | theorem piece_physical_pressure (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1919 | (j : Fin 2) (L : Label B N0) (n : ℕ) {z : ProblemStatement.SpaceTime} (hr : 0 < z.2 0) : |
| 1920 | (piece U j L).pressure n (PhysicalResidualTZ.swapCylinder |
| 1921 | ((PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CommonWindow.index h n)).map z)) = |
| 1922 | ChartScales.Q n ^ (2*CoordinateAlgebra.A h) * physicalPressure j L z := by |
| 1923 | rw [piece_pressure_representation] |
| 1924 | change ChartScales.Q n ^ (2*CoordinateAlgebra.A h) * |
| 1925 | absolutePressureMode j L (absoluteChart n _) = _ |
| 1926 | rw [absoluteChart_physical n hr] |
| 1927 | rfl |
| 1928 | |
| 1929 | theorem cartesianVelocity_smooth (j : Fin 2) (L : Label B N0) : |
| 1930 | ContDiffOn ℝ ∞ (cartesianVelocity j L) {z : ProblemStatement.SpaceTime | z.1 < 1} := by |
| 1931 | have ha : ContDiffOn ℝ ∞ (cartesianPotential j L) ((Iio 1) ×ˢ (univ : Set ProblemStatement.Space)) := |
| 1932 | (cartesianPotential_smooth j L).mono (fun _ hx => hx.1) |
| 1933 | exact (SpatialCurl.contDiffOn_spatialCurl ha (by simp)).mono (fun _ hx => ⟨hx,trivial⟩) |
| 1934 | |
| 1935 | theorem cartesianVelocity_divergence (j : Fin 2) (L : Label B N0) {t : ℝ} |
| 1936 | (ht : t < 1) (x : ProblemStatement.Space) : |
| 1937 | ProblemStatement.spatialDivergence (cartesianVelocity j L) t x = 0 := by |
| 1938 | have ha : ContDiffOn ℝ 2 (cartesianPotential j L) ((Iio 1) ×ˢ (univ : Set ProblemStatement.Space)) := |
| 1939 | ((cartesianPotential_smooth j L).mono (fun _ hx => hx.1)).of_le (WithTop.coe_le_coe.mpr le_top) |
| 1940 | exact SpatialCurl.spatialDivergence_spatialCurl_on ha ht x |
| 1941 | |
| 1942 | end NavierStokes.ActualPrimaryCoherence |