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.ActualPrimaryCoherence |
| 2 | import NavierStokes.ActualPhaseDefect |
| 3 | import NavierStokes.LocalizedWaveBounds |
| 4 | |
| 5 | /-! |
| 6 | # Exact dynamics of the selected primary pulses |
| 7 | |
| 8 | The native equation uses the same selected frame, covariance amplitude and |
| 9 | pressure as `CorrectionInitialization.ActualPrimary`. Its homogeneous |
| 10 | equation is localized to the Gaussian support: the outer attachment cutoff |
| 11 | is deliberately differentiated outside that support. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.ActualPrimaryDynamics |
| 17 | |
| 18 | open Set Function Filter HarmonicCalculus |
| 19 | open CorrectionInitialization CorrectionInitialization.ActualPrimary |
| 20 | open scoped ContDiff Topology InnerProductSpace BigOperators |
| 21 | |
| 22 | |
| 23 | abbrev Native := ActualSignedGeometry.Native |
| 24 | abbrev Space := ProblemStatement.Space |
| 25 | |
| 26 | section Frame |
| 27 | |
| 28 | variable {I : Type*} {U : PhaseJetBounds.Domain I PhaseCalculus.Slow} |
| 29 | |
| 30 | theorem frame_tail_ne (P : PrimaryPulseBounds.PhaseConstruction U) (i : I) |
| 31 | {z : PhaseCalculus.Slow × ℝ} (hz : z ∈ (U.slot P.V P.openV).carrier i) : |
| 32 | MovingFrameODE.tail (P.phase.normal i z) ≠ 0 := by |
| 33 | have hB : 0 < P.B i := lt_of_lt_of_le (by linarith [P.b_pos]) (P.B_bound i).1 |
| 34 | exact (PhaseEstimates.normal_lower_bounds hB (P.K_unit i) |
| 35 | (P.error_small i z hz) (P.normal_close i z hz)).2.2.1 |
| 36 | |
| 37 | theorem frame_normal (P : PrimaryPulseBounds.PhaseConstruction U) (i : I) |
| 38 | {z : PhaseCalculus.Slow × ℝ} (hz : z ∈ (U.slot P.V P.openV).carrier i) : |
| 39 | (P.frame i).normal z = P.phase.normal i z := |
| 40 | PrimaryODE.FrameData.ofNormalLocal_normal _ _ _ _ _ _ _ _ (frame_tail_ne P i hz) |
| 41 | |
| 42 | theorem frame_motion (P : PrimaryPulseBounds.PhaseConstruction U) (i : I) |
| 43 | {z : PhaseCalculus.Slow × ℝ} (hz : z ∈ (U.slot P.V P.openV).carrier i) : |
| 44 | (P.frame i).normalMotion z = P.phase.velocity i z := by |
| 45 | have hF := ((P.baseF.smooth i).contDiffAt ((U.isOpen i).mem_nhds hz.1)).differentiableAt (by simp) |
| 46 | have hG := ((P.baseG.smooth i).contDiffAt ((U.isOpen i).mem_nhds hz.1)).differentiableAt (by simp) |
| 47 | exact PrimaryODE.FrameData.ofNormalLocal_normalMotion _ _ _ _ _ _ _ _ |
| 48 | (PhaseCalculus.hasDerivAt_phaseNormal_slot _ _ _ _ _ _ _ _ _ (P.epsilon_ne i) hF hG) |
| 49 | (frame_tail_ne P i hz) |
| 50 | |
| 51 | end Frame |
| 52 | |
| 53 | section NativeDynamics |
| 54 | |
| 55 | variable {B N0 : ℕ} |
| 56 | |
| 57 | theorem rawVelocity_hasDerivAt (j : Fin 2) (L : Label B N0) {x : Native} |
| 58 | (hp : x.1 ∈ (PrimaryGeometryAssembly.domain nominal (choice B N0).prepared.N).carrier L) |
| 59 | (ht : x.2.2 ∈ Ioo 0 ((phases B N0 j).L L)) : |
| 60 | HasDerivAt (fun t => rawVelocity j L (x.1, (x.2.1,t))) |
| 61 | (TangentProjection.projectedRhs |
| 62 | ((phases B N0 j).phase.normal L (phasePoint L x)) |
| 63 | ((phases B N0 j).phase.velocity L (phasePoint L x)) |
| 64 | (rawVelocity j L x) |
| 65 | (PrimaryCopyBridge.baseOperator ((phases B N0 j).phase.F L x.1) |
| 66 | ((phases B N0 j).phase.shear L (phasePoint L x)) (rawVelocity j L x)) |
| 67 | 0 (((phases B N0 j).frame L).viscosity (phasePoint L x))) x.2.2 := by |
| 68 | let P := phases B N0 j |
| 69 | let ell := P.L L |
| 70 | let a := PartitionedCovariance.amplitude (ChartScales.epsilon h (BaseChartJets.cellBand L)) |
| 71 | (spatialMask L x.1 * PartitionedCovariance.cutoff slots.radius x.2.1) |
| 72 | (covariance B N0 L x.1) (fun k => PrimaryTargetBounds.actualTarget modulation x.1 k) j |
| 73 | have hL : 0 < ell := P.L_pos L |
| 74 | have hθ : x.2.2 / ell ∈ Ioo (0 : ℝ) 1 := |
| 75 | ⟨div_pos ht.1 hL, (div_lt_one hL).mpr ht.2⟩ |
| 76 | have hd := PrimaryPulseBounds.normalizedPulse_hasDerivAt (P.frame L) (P.lam L) (P.u L) hL |
| 77 | ((PrimaryGeometryAssembly.domain nominal (choice B N0).prepared.N).carrier L) |
| 78 | ((sourcePair L x.1 hp).coefficient_continuous j) hp ((sourcePair L x.1 hp).kinematics j) hθ |
| 79 | have hv : ell * (x.2.2 / ell) = x.2.2 := mul_div_cancel₀ _ hL.ne' |
| 80 | have hz : phasePoint L x ∈ |
| 81 | ((PrimaryGeometryAssembly.domain nominal (choice B N0).prepared.N).slot P.V P.openV).carrier L := |
| 82 | ⟨hp, P.interval L ⟨ht.1.le, ht.2.le⟩⟩ |
| 83 | have hd' := (hd.scomp x.2.2 ((hasDerivAt_id x.2.2).div_const ell)).const_smul a |
| 84 | simp only [hv, one_div, smul_smul, inv_mul_cancel₀ hL.ne', one_smul] at hd' |
| 85 | have he (t : ℝ) : rawVelocity j L (x.1,(x.2.1,t)) = |
| 86 | a • PrimaryPulseBounds.normalizedPulse (P.frame L) (P.lam L) (P.u L) ell (x.1,t/ell) := by |
| 87 | simp only [rawVelocity, pulseCoordinates, a, ell, P, length_sign] |
| 88 | simp only [he] |
| 89 | convert! hd' using 1 |
| 90 | rw [show (P.frame L).normal (x.1,x.2.2) = P.phase.normal L (phasePoint L x) from |
| 91 | frame_normal P L hz, |
| 92 | show (P.frame L).normalMotion (x.1,x.2.2) = P.phase.velocity L (phasePoint L x) from |
| 93 | frame_motion P L hz, map_smul, SignedWaveUpdate.projectedRhs_smul] |
| 94 | rfl |
| 95 | |
| 96 | theorem frame_viscosity (j : Fin 2) (L : Label B N0) (x : Native) : |
| 97 | ((phases B N0 j).frame L).viscosity (phasePoint L x) = |
| 98 | ChartScales.epsilon h (BaseChartJets.cellBand L) * |
| 99 | (ChartScales.carrier h (BaseChartJets.cellBand L) : ℝ)^2 * |
| 100 | ‖(phases B N0 j).phase.normal L (phasePoint L x)‖^2 := rfl |
| 101 | |
| 102 | theorem rawVelocity_hasDerivAt_on_slot (j : Fin 2) (L : Label B N0) {x : Native} |
| 103 | (hT : 0 < x.1.2.2) (ht : x.2.2 ∈ Ioo 0 ((phases B N0 j).L L)) : |
| 104 | HasDerivAt (fun t => rawVelocity j L (x.1, (x.2.1,t))) |
| 105 | (TangentProjection.projectedRhs |
| 106 | ((phases B N0 j).phase.normal L (phasePoint L x)) |
| 107 | ((phases B N0 j).phase.velocity L (phasePoint L x)) |
| 108 | (rawVelocity j L x) |
| 109 | (PrimaryCopyBridge.baseOperator ((phases B N0 j).phase.F L x.1) |
| 110 | ((phases B N0 j).phase.shear L (phasePoint L x)) (rawVelocity j L x)) |
| 111 | 0 (ChartScales.epsilon h (BaseChartJets.cellBand L) * |
| 112 | (ChartScales.carrier h (BaseChartJets.cellBand L) : ℝ)^2 * |
| 113 | ‖(phases B N0 j).phase.normal L (phasePoint L x)‖^2)) x.2.2 := by |
| 114 | by_cases hm : spatialMask L x.1 = 0 |
| 115 | · have hz (t : ℝ) : rawVelocity j L (x.1,(x.2.1,t)) = 0 := by |
| 116 | simp [rawVelocity, PartitionedCovariance.amplitude, hm] |
| 117 | have hz' : rawVelocity j L x = 0 := by simpa only [Prod.mk.eta] using hz x.2.2 |
| 118 | simp only [hz, map_zero] |
| 119 | simpa [TangentProjection.projectedRhs, TangentProjection.tangentProj] using |
| 120 | hasDerivAt_const x.2.2 (0 : Space) |
| 121 | · simpa only [frame_viscosity] using |
| 122 | rawVelocity_hasDerivAt j L (spatialMask_carrier L hT hm) ht |
| 123 | |
| 124 | theorem gaussian_slot (L : Label B N0) {x : Native} (hg : gaussian L x ≠ 0) : |
| 125 | x.2.2 ∈ Ioo 0 ((phases B N0 0).L L) := by |
| 126 | have hb : |x.2.2 / (phases B N0 0).L L - 1/2| < 1/3 := by |
| 127 | by_contra hn |
| 128 | exact hg (GaussianTailFlat.profile_zero (le_of_not_gt hn)) |
| 129 | have hL := (phases B N0 0).L_pos L |
| 130 | have h0 : 0 < x.2.2 / (phases B N0 0).L L := by linarith [(abs_lt.mp hb).1] |
| 131 | have h1 : x.2.2 / (phases B N0 0).L L < 1 := by linarith [(abs_lt.mp hb).2] |
| 132 | exact ⟨(div_pos_iff.mp h0).resolve_right (by rintro ⟨_, hz⟩; linarith) |>.1, |
| 133 | (div_lt_one hL).mp h1⟩ |
| 134 | |
| 135 | theorem outerCutoff_one_germ (L : Label B N0) {x : Native} (hg : gaussian L x ≠ 0) : |
| 136 | (fun t : ℝ => PrimaryCopyBounds.outerCutoff (t / (phases B N0 0).L L)) =ᶠ[𝓝 x.2.2] |
| 137 | fun _ => 1 := by |
| 138 | have hb : |x.2.2 / (phases B N0 0).L L - 1/2| < 1/3 := by |
| 139 | by_contra hn |
| 140 | exact hg (GaussianTailFlat.profile_zero (le_of_not_gt hn)) |
| 141 | have hc : Continuous (fun t : ℝ => |t / (phases B N0 0).L L - 1/2|) := by fun_prop |
| 142 | filter_upwards [hc.continuousAt.eventually (isOpen_Iio.mem_nhds hb)] with t ht |
| 143 | exact PrimaryCopyBounds.outerCutoff_one ht.le |
| 144 | |
| 145 | theorem attachedVelocity_hasDerivAt (j : Fin 2) (L : Label B N0) {x : Native} |
| 146 | (hT : 0 < x.1.2.2) (hg : gaussian L x ≠ 0) : |
| 147 | HasDerivAt (fun t => attachedRawVelocity j L (x.1, (x.2.1,t))) |
| 148 | (TangentProjection.projectedRhs |
| 149 | ((phases B N0 j).phase.normal L (phasePoint L x)) |
| 150 | ((phases B N0 j).phase.velocity L (phasePoint L x)) |
| 151 | (attachedRawVelocity j L x) |
| 152 | (PrimaryCopyBridge.baseOperator ((phases B N0 j).phase.F L x.1) |
| 153 | ((phases B N0 j).phase.shear L (phasePoint L x)) (attachedRawVelocity j L x)) |
| 154 | 0 (ChartScales.epsilon h (BaseChartJets.cellBand L) * |
| 155 | (ChartScales.carrier h (BaseChartJets.cellBand L) : ℝ)^2 * |
| 156 | ‖(phases B N0 j).phase.normal L (phasePoint L x)‖^2)) x.2.2 := by |
| 157 | by_cases hr : WaveEdgeExtension.nativeRadius h x ∈ |
| 158 | Ioo (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal) |
| 159 | · have he : (fun t => attachedRawVelocity j L (x.1,(x.2.1,t))) =ᶠ[𝓝 x.2.2] |
| 160 | fun t => rawVelocity j L (x.1,(x.2.1,t)) := by |
| 161 | filter_upwards [outerCutoff_one_germ L hg] with t ht |
| 162 | have hr' : WaveEdgeExtension.nativeRadius h (x.1,(x.2.1,t)) ∈ |
| 163 | Ioo (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal) := hr |
| 164 | rw [attachedRawVelocity, WaveEdgeExtension.nativeExtension_inside nominal _ hr'] |
| 165 | simp only [outerRawVelocity, pulseCoordinates, ht, one_smul] |
| 166 | have hv := he.eq_of_nhds |
| 167 | simp only [Prod.mk.eta] at hv |
| 168 | rw [hv] |
| 169 | exact (rawVelocity_hasDerivAt_on_slot j L hT (by simpa only [length_sign] using gaussian_slot L hg)).congr_of_eventuallyEq he |
| 170 | · have hz (t : ℝ) : attachedRawVelocity j L (x.1,(x.2.1,t)) = 0 := |
| 171 | WaveEdgeExtension.nativeExtension_outside nominal _ hr |
| 172 | have hz' : attachedRawVelocity j L x = 0 := by simpa only [Prod.mk.eta] using hz x.2.2 |
| 173 | simp only [hz, map_zero] |
| 174 | simpa [TangentProjection.projectedRhs, TangentProjection.tangentProj] using |
| 175 | hasDerivAt_const x.2.2 (0 : Space) |
| 176 | |
| 177 | theorem attachedPressure_eq (j : Fin 2) (L : Label B N0) {x : Native} |
| 178 | (hg : gaussian L x ≠ 0) : |
| 179 | attachedRawPressure j L x = Complex.I * |
| 180 | (TangentProjection.pressureCoefficient |
| 181 | ((phases B N0 j).phase.normal L (phasePoint L x)) |
| 182 | ((phases B N0 j).phase.velocity L (phasePoint L x)) |
| 183 | (attachedRawVelocity j L x) |
| 184 | (PrimaryCopyBridge.baseOperator ((phases B N0 j).phase.F L x.1) |
| 185 | ((phases B N0 j).phase.shear L (phasePoint L x)) (attachedRawVelocity j L x)) 0 : ℂ) / |
| 186 | (ChartScales.carrier h (BaseChartJets.cellBand L) : ℝ) := by |
| 187 | have ho := (outerCutoff_one_germ L hg).eq_of_nhds |
| 188 | by_cases hr : WaveEdgeExtension.nativeRadius h x ∈ |
| 189 | Ioo (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal) |
| 190 | · simp only [attachedRawPressure, attachedRawVelocity, |
| 191 | WaveEdgeExtension.nativeExtension_inside nominal _ hr, |
| 192 | outerRawPressure, outerRawVelocity, pulseCoordinates, ho, one_smul] |
| 193 | rfl |
| 194 | · simp only [attachedRawPressure, attachedRawVelocity, |
| 195 | WaveEdgeExtension.nativeExtension_outside nominal _ hr, map_zero] |
| 196 | simp [TangentProjection.pressureCoefficient] |
| 197 | |
| 198 | end NativeDynamics |
| 199 | |
| 200 | section Coordinates |
| 201 | |
| 202 | variable {B N0 : ℕ} |
| 203 | |
| 204 | theorem geometry_radial (j : Fin 2) (L : Label B N0) : |
| 205 | (geometry j L).coordinateLinear radialVector = |
| 206 | (ChartScales.Lambda ^ ChartScales.nativeIndex h (BaseChartJets.cellBand L), 0) := |
| 207 | ActualSignedGeometry.slot_coordinate_radial slots |
| 208 | (PartitionedCovariance.signedLabel (PrimaryGeometryAssembly.label nominal L) j) _ |
| 209 | |
| 210 | theorem geometry_temporal (j : Fin 2) (L : Label B N0) : |
| 211 | (geometry j L).coordinateLinear temporalVector = |
| 212 | (0, (ChartScales.Q (BaseChartJets.cellBand L) ^ (1+h))⁻¹) := by |
| 213 | let g := geometry j L |
| 214 | let n := BaseChartJets.cellBand L |
| 215 | have hb : g.basis (0, (ChartScales.timeCoefficient h n)⁻¹) = temporalVector := by |
| 216 | change (TorusAverages.slotChart radialVector temporalVector vectors_det) |
| 217 | ((TorusAverages.transverseChart (ChartScales.timeCoefficient h n) |
| 218 | (ChartScales.timeCoefficient_pos h n).ne') (0, (ChartScales.timeCoefficient h n)⁻¹)) = _ |
| 219 | simp [TorusAverages.transverseChart_apply, TorusAverages.slotChart_apply, |
| 220 | (ChartScales.timeCoefficient_pos h n).ne'] |
| 221 | have he : g.basis.symm temporalVector = (0, (ChartScales.timeCoefficient h n)⁻¹) := |
| 222 | (g.basis.symm_apply_eq).mpr hb.symm |
| 223 | change g.basis.symm (CommonCoverSolve.coverPower (ChartScales.nativeIndex h n) temporalVector) = _ |
| 224 | rw [show CommonCoverSolve.coverPower (ChartScales.nativeIndex h n) temporalVector = |
| 225 | ChartScales.Tg ^ ChartScales.nativeIndex h n • temporalVector from |
| 226 | CommonBaseContext.coverPower_temporal _, map_smul, he] |
| 227 | simp only [Prod.smul_mk, smul_eq_mul] |
| 228 | ext <;> simp [ChartScales.timeCoefficient, mul_inv_rev, n, |
| 229 | ne_of_gt (pow_pos ChartScales.Tg_pos (ChartScales.nativeIndex h (BaseChartJets.cellBand L))), |
| 230 | mul_left_comm] |
| 231 | |
| 232 | noncomputable def absoluteNativeLinear (j : Fin 2) (L : Label B N0) : |
| 233 | ActualPrimaryCoherence.Absolute →L[ℝ] Native where |
| 234 | toFun x := (nativeSlow L x.1, (geometry j L).coordinateLinear x.1.2) |
| 235 | map_add' x y := by |
| 236 | ext <;> simp [nativeSlow, add_div, map_add] |
| 237 | map_smul' c x := by |
| 238 | ext <;> simp [nativeSlow, mul_div_assoc, map_smul] |
| 239 | cont := ((nativeSlow_smooth L).continuous.comp continuous_fst).prodMk |
| 240 | ((geometry j L).coordinateLinear.continuous.comp continuous_fst.snd) |
| 241 | |
| 242 | noncomputable def copyLinear (j : Fin 2) (L : Label B N0) (n : ℕ) : FullPoint →L[ℝ] Native := |
| 243 | (absoluteNativeLinear j L).comp (ActualPrimaryCoherence.absoluteChart n).toContinuousLinearMap |
| 244 | |
| 245 | noncomputable def copyPoint (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 246 | (k : TorusInverse.Frequency) (x : FullPoint) : Native := |
| 247 | (nativeSlow L (toAbsolute n x.1), (geometry j L).coordinates k (toAbsolute n x.1).2) |
| 248 | |
| 249 | theorem copyPoint_affine (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 250 | (k : TorusInverse.Frequency) (x : FullPoint) : |
| 251 | copyPoint j L n k x = copyLinear j L n x + (0,(geometry j L).coordinates k 0) := by |
| 252 | apply Prod.ext |
| 253 | · simp [copyPoint, copyLinear, absoluteNativeLinear] |
| 254 | · change (geometry j L).coordinates k _ = _ + _ |
| 255 | rw [CommonCoverSolve.Geometry.coordinates_eq_affine, add_comm] |
| 256 | rfl |
| 257 | |
| 258 | theorem copyPoint_hasFDerivAt (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 259 | (k : TorusInverse.Frequency) (x : FullPoint) : |
| 260 | HasFDerivAt (copyPoint j L n k) (copyLinear j L n) x := by |
| 261 | simpa only [← copyPoint_affine] using |
| 262 | (copyLinear j L n).hasFDerivAt.add_const (0,(geometry j L).coordinates k 0) |
| 263 | |
| 264 | theorem copyPoint_smooth (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 265 | (k : TorusInverse.Frequency) : ContDiff ℝ ∞ (copyPoint j L n k) := by |
| 266 | simpa only [← copyPoint_affine] using |
| 267 | (copyLinear j L n).contDiff.add |
| 268 | (contDiff_const (c := (0,(geometry j L).coordinates k 0))) |
| 269 | |
| 270 | noncomputable def clockScale (L : Label B N0) (n : ℕ) : ℝ := |
| 271 | ChartScales.Q n ^ (1+h) / ChartScales.Q (BaseChartJets.cellBand L) ^ (1+h) |
| 272 | |
| 273 | noncomputable def radialScale (L : Label B N0) (n : ℕ) : ℝ := |
| 274 | Real.sqrt (ChartScales.Q n) / Real.sqrt (ChartScales.Q (BaseChartJets.cellBand L)) |
| 275 | |
| 276 | noncomputable def velocityScale (L : Label B N0) (n : ℕ) : ℝ := |
| 277 | ChartScales.Q n ^ CoordinateAlgebra.A h / |
| 278 | ChartScales.Q (BaseChartJets.cellBand L) ^ CoordinateAlgebra.A h |
| 279 | |
| 280 | theorem copyLinear_fast (j : Fin 2) (L : Label B N0) (n : ℕ) (x : FullPoint) : |
| 281 | copyLinear j L n ((PrimaryResidualClass.directions (commonContext B)).fastField n x) = |
| 282 | (0,(0,clockScale L n)) := by |
| 283 | change absoluteNativeLinear j L (ActualPrimaryCoherence.absoluteChart n |
| 284 | ((PrimaryResidualClass.directions (commonContext B)).fastField n x)) = _ |
| 285 | rw [ActualPrimaryCoherence.absoluteChart_fast, map_smul] |
| 286 | change ChartScales.Q n ^ (1+h) • |
| 287 | (nativeSlow L ((0,(0,0)),temporalVector), (geometry j L).coordinateLinear temporalVector) = _ |
| 288 | rw [geometry_temporal] |
| 289 | simp [nativeSlow, clockScale, div_eq_mul_inv] |
| 290 | |
| 291 | theorem copyPoint_fast_line (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 292 | (k : TorusInverse.Frequency) (x : FullPoint) (t : ℝ) : |
| 293 | copyPoint j L n k (x+t • (PrimaryResidualClass.directions (commonContext B)).fastField n x) = |
| 294 | ((copyPoint j L n k x).1, |
| 295 | ((copyPoint j L n k x).2.1, (copyPoint j L n k x).2.2+t*clockScale L n)) := by |
| 296 | rw [copyPoint_affine, map_add, map_smul, copyLinear_fast] |
| 297 | rw [copyPoint_affine] |
| 298 | ext <;> simp |
| 299 | all_goals ring |
| 300 | |
| 301 | noncomputable def slotLinear (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 302 | FullPoint →L[ℝ] PhaseCalculus.Slot := |
| 303 | ((ContinuousLinearMap.fst ℝ PhaseCalculus.Slow TorusInverse.Plane).comp (copyLinear j L n)).prod |
| 304 | ((ContinuousLinearMap.snd ℝ LocalSignedRequest.Point ℝ).prod |
| 305 | ((ContinuousLinearMap.snd ℝ ℝ ℝ).comp |
| 306 | ((ContinuousLinearMap.snd ℝ PhaseCalculus.Slow TorusInverse.Plane).comp (copyLinear j L n)))) |
| 307 | |
| 308 | noncomputable def slotPoint (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 309 | (k : TorusInverse.Frequency) (x : FullPoint) : PhaseCalculus.Slot := |
| 310 | ((copyPoint j L n k x).1,(x.2,(copyPoint j L n k x).2.2)) |
| 311 | |
| 312 | theorem slotLinear_apply (j : Fin 2) (L : Label B N0) (n : ℕ) (x : FullPoint) : |
| 313 | slotLinear j L n x = ((copyLinear j L n x).1,(x.2,(copyLinear j L n x).2.2)) := rfl |
| 314 | |
| 315 | theorem slotPoint_hasFDerivAt (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 316 | (k : TorusInverse.Frequency) (x : FullPoint) : |
| 317 | HasFDerivAt (slotPoint j L n k) (slotLinear j L n) x := |
| 318 | (copyPoint_hasFDerivAt j L n k x).fst.prodMk |
| 319 | (hasFDerivAt_snd.prodMk (copyPoint_hasFDerivAt j L n k x).snd.snd) |
| 320 | |
| 321 | theorem slotLinear_radial (j : Fin 2) (L : Label B N0) (n : ℕ) (x : FullPoint) : |
| 322 | slotLinear j L n ((PrimaryResidualClass.directions (commonContext B)).radialField n x) = |
| 323 | radialScale L n • PhaseCalculus.eR := by |
| 324 | have he := ActualPrimaryCoherence.absoluteChart_radial B n x |
| 325 | rw [slotLinear_apply] |
| 326 | have hz : ((PrimaryResidualClass.directions (commonContext B)).radialField n x).2 = 0 := by |
| 327 | simp [LinearWaveBounds.GraphDirections.radialField, PrimaryResidualClass.directions] |
| 328 | rw [hz] |
| 329 | change ((absoluteNativeLinear j L (ActualPrimaryCoherence.absoluteChart n |
| 330 | ((PrimaryResidualClass.directions (commonContext B)).radialField n x))).1, |
| 331 | (0,(absoluteNativeLinear j L (ActualPrimaryCoherence.absoluteChart n |
| 332 | ((PrimaryResidualClass.directions (commonContext B)).radialField n x))).2.2)) = _ |
| 333 | rw [he] |
| 334 | simp only [map_smul] |
| 335 | change ((Real.sqrt (ChartScales.Q n) • nativeSlow L |
| 336 | ((1,(0,0)), RadialPullback.radialJacobian (ChartScales.radialExponent h) |
| 337 | (toAbsolute n x.1).1.1 • radialVector)), |
| 338 | (0,(Real.sqrt (ChartScales.Q n) • (geometry j L).coordinateLinear |
| 339 | (RadialPullback.radialJacobian (ChartScales.radialExponent h) (toAbsolute n x.1).1.1 • radialVector)).2)) = _ |
| 340 | rw [map_smul, geometry_radial] |
| 341 | simp [nativeSlow, radialScale, PhaseCalculus.eR, div_eq_mul_inv] |
| 342 | |
| 343 | theorem slotLinear_angular (j : Fin 2) (L : Label B N0) (n : ℕ) (x : FullPoint) : |
| 344 | slotLinear j L n (PrimaryResidualClass.directions (commonContext B)).angular = |
| 345 | PhaseCalculus.eTheta := by |
| 346 | have he := ActualPrimaryCoherence.absoluteChart_angular B n x |
| 347 | change ((absoluteNativeLinear j L (ActualPrimaryCoherence.absoluteChart n |
| 348 | (PrimaryResidualClass.directions (commonContext B)).angular)).1, |
| 349 | (1,(absoluteNativeLinear j L (ActualPrimaryCoherence.absoluteChart n |
| 350 | (PrimaryResidualClass.directions (commonContext B)).angular)).2.2)) = _ |
| 351 | rw [he] |
| 352 | simp [absoluteNativeLinear, ActualPrimaryCoherence.absoluteAngular, nativeSlow, PhaseCalculus.eTheta] |
| 353 | |
| 354 | theorem radialScale_epsilon (L : Label B N0) (n : ℕ) : |
| 355 | radialScale L n * ChartScales.epsilon h (BaseChartJets.cellBand L) = |
| 356 | Real.sqrt (ChartScales.Q n) / ChartScales.Q (BaseChartJets.cellBand L) ^ CoordinateAlgebra.D h := by |
| 357 | unfold radialScale ChartScales.epsilon |
| 358 | rw [Real.sqrt_eq_rpow, Real.sqrt_eq_rpow] |
| 359 | rw [div_mul_eq_mul_div, mul_div_assoc, ← Real.rpow_sub (ChartScales.Q_pos _)] |
| 360 | rw [show h - 1/2 = -CoordinateAlgebra.D h by unfold CoordinateAlgebra.D; ring, |
| 361 | Real.rpow_neg (ChartScales.Q_pos _).le] |
| 362 | ring |
| 363 | |
| 364 | theorem slotLinear_axial (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 365 | (U : LocalSignedRequest.SlowRegion (2*h)) (x : FullPoint) : |
| 366 | slotLinear j L n ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 367 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n x) = |
| 368 | (radialScale L n * ChartScales.epsilon h (BaseChartJets.cellBand L)) • PhaseCalculus.eZ := by |
| 369 | have he := ActualPrimaryCoherence.absoluteChart_axial B n U x |
| 370 | rw [slotLinear_apply] |
| 371 | have hz : ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 372 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n x).2 = 0 := by |
| 373 | simp [LinearWaveBounds.GraphDirections.axialField, PrimaryResidualClass.directions] |
| 374 | rw [hz] |
| 375 | change ((absoluteNativeLinear j L (ActualPrimaryCoherence.absoluteChart n |
| 376 | ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 377 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n x))).1, |
| 378 | (0,(absoluteNativeLinear j L (ActualPrimaryCoherence.absoluteChart n |
| 379 | ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 380 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n x))).2.2)) = _ |
| 381 | rw [he, map_smul, radialScale_epsilon] |
| 382 | simp [absoluteNativeLinear, ActualPrimaryCoherence.absoluteAxial, nativeSlow, |
| 383 | PhaseCalculus.eZ, div_eq_mul_inv] |
| 384 | |
| 385 | theorem slotPoint_radius (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 386 | (k : TorusInverse.Frequency) (x : FullPoint) : |
| 387 | (slotPoint j L n k x).1.1 = radialScale L n * x.1.1 := by |
| 388 | simp [slotPoint, copyPoint, nativeSlow, toAbsolute, radialScale] |
| 389 | ring |
| 390 | |
| 391 | theorem copyPoint_time_pos (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 392 | (k : TorusInverse.Frequency) {x : FullPoint} (hT : 0 < x.1.2.1.1) : |
| 393 | 0 < (copyPoint j L n k x).1.2.2 := |
| 394 | div_pos (mul_pos (ChartScales.Q_pos n) hT) (ChartScales.Q_pos _) |
| 395 | |
| 396 | /-- Transport of an actual native time derivative. This also applies to |
| 397 | the unweighted fundamental and to later signed amplitudes. -/ |
| 398 | theorem along_copy {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 399 | (j : Fin 2) (L : Label B N0) (n : ℕ) (k : TorusInverse.Frequency) |
| 400 | (f : Native → E) {x : FullPoint} {v : E} |
| 401 | (hd : HasDerivAt (fun t => f ((copyPoint j L n k x).1, |
| 402 | ((copyPoint j L n k x).2.1,t))) v (copyPoint j L n k x).2.2) |
| 403 | (hf : DifferentiableAt ℝ (fun y => f (copyPoint j L n k y)) x) : |
| 404 | along ((PrimaryResidualClass.directions (commonContext B)).fastField n) |
| 405 | (fun y => f (copyPoint j L n k y)) x = clockScale L n • v := by |
| 406 | have ht : HasDerivAt (fun t : ℝ => (copyPoint j L n k x).2.2+t*clockScale L n) |
| 407 | (clockScale L n) 0 := by |
| 408 | simpa using ((hasDerivAt_id (0 : ℝ)).mul_const (clockScale L n)).const_add |
| 409 | (copyPoint j L n k x).2.2 |
| 410 | have hp := hd.scomp_of_eq (0 : ℝ) ht (by simp) |
| 411 | have hl : HasDerivAt (fun t : ℝ => x+t • |
| 412 | (PrimaryResidualClass.directions (commonContext B)).fastField n x) |
| 413 | ((PrimaryResidualClass.directions (commonContext B)).fastField n x) 0 := by |
| 414 | simpa using ((hasDerivAt_id (0 : ℝ)).smul_const |
| 415 | ((PrimaryResidualClass.directions (commonContext B)).fastField n x)).const_add x |
| 416 | have hh := hf.hasFDerivAt.comp_hasDerivAt_of_eq (0 : ℝ) hl (by simp) |
| 417 | simp only [Function.comp_def, copyPoint_fast_line] at hh hp |
| 418 | exact hh.unique hp |
| 419 | |
| 420 | end Coordinates |
| 421 | |
| 422 | section CopyGerms |
| 423 | |
| 424 | variable {B N0 : ℕ} |
| 425 | |
| 426 | noncomputable def coefficientPoint (L : Label B N0) (n : ℕ) (x : FullPoint) : Native := |
| 427 | (nativeSlow L (toAbsolute n x.1), (toAbsolute n x.1).2) |
| 428 | |
| 429 | theorem coefficientPoint_smooth (L : Label B N0) (n : ℕ) : |
| 430 | ContDiff ℝ ∞ (coefficientPoint L n) := |
| 431 | ((nativeSlow_smooth L).comp ((toAbsolute_smooth n).comp contDiff_fst)).prodMk |
| 432 | (((toAbsolute_smooth n).comp contDiff_fst).snd) |
| 433 | |
| 434 | noncomputable def nativePhase (j : Fin 2) (L : Label B N0) : PhaseCalculus.Slot → ℝ := |
| 435 | PhaseCalculus.phase ((phases B N0 j).phase.epsilon L) |
| 436 | ((phases B N0 j).phase.p L) ((phases B N0 j).phase.pz L) ((phases B N0 j).phase.x0 L) |
| 437 | ((phases B N0 j).phase.F L) ((phases B N0 j).phase.G L) |
| 438 | |
| 439 | theorem phase_germ (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 440 | (k : TorusInverse.Frequency) {x : FullPoint} |
| 441 | (hc : (copyPoint j L n k x).2 ∈ (clockWindow L).core) : |
| 442 | (chartCoefficients j L).phase n =ᶠ[𝓝 x] |
| 443 | fun y => ((ChartScales.carrier h (BaseChartJets.cellBand L) : ℝ) / |
| 444 | (ChartScales.carrier h n : ℝ)) * nativePhase j L (slotPoint j L n k y) := by |
| 445 | have he := PeriodicPhaseAssembly.periodicClock_germ (geometry j L) (clockWindow L) |
| 446 | (clockWindow_injective j L) k (z := coefficientPoint L n x) hc |
| 447 | have hp := PrimaryGeometryAssembly.carrier_mul_phase_p certificate modulation |
| 448 | (choice B N0).prepared slots.radius_pos j L |
| 449 | change (ChartScales.carrier h (BaseChartJets.cellBand L) : ℝ) * |
| 450 | (phases B N0 j).phase.p L = _ at hp |
| 451 | filter_upwards [(coefficientPoint_smooth L n).continuous.continuousAt.eventually he] with y hy |
| 452 | simp only [chartCoefficients, absolutePhase, periodicPhase] |
| 453 | change (_ + (ChartScales.carrier h (BaseChartJets.cellBand L) : ℝ) * |
| 454 | (_ + _ - PeriodicPhaseAssembly.periodicClock (geometry j L) (clockWindow L).cutoff |
| 455 | (coefficientPoint L n y).2 * _)) / (ChartScales.carrier h n : ℝ) = _ |
| 456 | rw [hy, ← hp] |
| 457 | simp only [nativePhase, PhaseCalculus.phase, slotPoint, copyPoint, coefficientPoint] |
| 458 | ring |
| 459 | |
| 460 | theorem cutoff_eq_copy (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 461 | (k : TorusInverse.Frequency) {x : FullPoint} |
| 462 | (hc : (copyPoint j L n k x).2 ∈ (clockWindow L).core) : |
| 463 | chartCutoff j L n x = gaussian L (copyPoint j L n k x) := |
| 464 | periodicGaussian_eq_on_core j L (coefficientPoint L n x).1 |
| 465 | (coefficientPoint L n x).2 k hc |
| 466 | |
| 467 | theorem velocityScale_eq (L : Label B N0) (n : ℕ) : |
| 468 | velocityScale L n = ChartScales.Q n ^ CoordinateAlgebra.A h * |
| 469 | ChartScales.Q (BaseChartJets.cellBand L) ^ (-CoordinateAlgebra.A h) := by |
| 470 | rw [Real.rpow_neg (ChartScales.Q_pos _).le] |
| 471 | rfl |
| 472 | |
| 473 | theorem pressureScale_eq (L : Label B N0) (n : ℕ) : |
| 474 | velocityScale L n ^ 2 = ChartScales.Q n ^ (2 * CoordinateAlgebra.A h) * |
| 475 | ChartScales.Q (BaseChartJets.cellBand L) ^ (-(2 * CoordinateAlgebra.A h)) := by |
| 476 | unfold velocityScale |
| 477 | rw [div_pow, ← Real.rpow_mul_natCast (ChartScales.Q_pos n).le, |
| 478 | ← Real.rpow_mul_natCast (ChartScales.Q_pos (BaseChartJets.cellBand L)).le] |
| 479 | norm_num only [Nat.cast_ofNat] |
| 480 | rw [mul_comm (CoordinateAlgebra.A h) 2, Real.rpow_neg (ChartScales.Q_pos _).le] |
| 481 | rfl |
| 482 | |
| 483 | noncomputable def copyAmplitude (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 484 | (k : TorusInverse.Frequency) (x : FullPoint) : ComplexVector := |
| 485 | velocityScale L n • CurlClassBounds.complexify (attachedRawVelocity j L (copyPoint j L n k x)) |
| 486 | |
| 487 | noncomputable def copyPressure (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 488 | (k : TorusInverse.Frequency) (x : FullPoint) : ℂ := |
| 489 | velocityScale L n ^ 2 • attachedRawPressure j L (copyPoint j L n k x) |
| 490 | |
| 491 | theorem amplitude_germ (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 492 | (k : TorusInverse.Frequency) {x : FullPoint} |
| 493 | (hc : (copyPoint j L n k x).2 ∈ (clockWindow L).core) : |
| 494 | (chartCoefficients j L).amplitude n =ᶠ[𝓝 x] copyAmplitude j L n k := by |
| 495 | let f : TorusInverse.Frequency → Native → ComplexVector := fun l z => |
| 496 | CurlClassBounds.complexify (attachedRawVelocity j L (z.1,(geometry j L).coordinates l z.2)) |
| 497 | have hs (l) : support (f l) ⊆ (copyCells j L).carrier 0 l := by |
| 498 | intro z hz |
| 499 | change (geometry j L).coordinates l z.2 ∈ (clockWindow L).core |
| 500 | apply attachedRawVelocity_core j L (z.1,(geometry j L).coordinates l z.2) |
| 501 | intro he |
| 502 | exact hz (by simp only [f, he, map_zero]) |
| 503 | have he := PeriodizedWaveBounds.copySum_germ (copyCells j L) 0 f hs |
| 504 | (x := coefficientPoint L n x) hc |
| 505 | filter_upwards [(coefficientPoint_smooth L n).continuous.continuousAt.eventually he] with y hy |
| 506 | change ChartScales.Q n ^ CoordinateAlgebra.A h • |
| 507 | (ChartScales.Q (BaseChartJets.cellBand L) ^ (-CoordinateAlgebra.A h) • |
| 508 | PeriodizedWaveBounds.copySum f (coefficientPoint L n y)) = _ |
| 509 | rw [hy, smul_smul, ← velocityScale_eq] |
| 510 | rfl |
| 511 | |
| 512 | theorem pressure_germ (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 513 | (k : TorusInverse.Frequency) {x : FullPoint} |
| 514 | (hc : (copyPoint j L n k x).2 ∈ (clockWindow L).core) : |
| 515 | (chartCoefficients j L).pressure n =ᶠ[𝓝 x] copyPressure j L n k := by |
| 516 | let f : TorusInverse.Frequency → Native → ℂ := fun l z => |
| 517 | attachedRawPressure j L (z.1,(geometry j L).coordinates l z.2) |
| 518 | have hs (l) : support (f l) ⊆ (copyCells j L).carrier 0 l := |
| 519 | fun z hz => attachedRawPressure_core j L _ hz |
| 520 | have he := PeriodizedWaveBounds.copySum_germ (copyCells j L) 0 f hs |
| 521 | (x := coefficientPoint L n x) hc |
| 522 | filter_upwards [(coefficientPoint_smooth L n).continuous.continuousAt.eventually he] with y hy |
| 523 | change ChartScales.Q n ^ (2 * CoordinateAlgebra.A h) • |
| 524 | (ChartScales.Q (BaseChartJets.cellBand L) ^ (-(2 * CoordinateAlgebra.A h)) • |
| 525 | PeriodizedWaveBounds.copySum f (coefficientPoint L n y)) = _ |
| 526 | rw [hy, smul_smul, ← pressureScale_eq] |
| 527 | rfl |
| 528 | |
| 529 | theorem coefficient_zero_germs (j : Fin 2) (L : Label B N0) (n : ℕ) {x : FullPoint} |
| 530 | (hc : ∀ k : TorusInverse.Frequency, (copyPoint j L n k x).2 ∉ (clockWindow L).core) : |
| 531 | ((chartCoefficients j L).amplitude n =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 532 | ((chartCoefficients j L).pressure n =ᶠ[𝓝 x] fun _ => 0) := by |
| 533 | have hA := PeriodizedWaveBounds.copySum_zero_germ (copyCells j L) 0 |
| 534 | (fun l (z : Native) => CurlClassBounds.complexify |
| 535 | (attachedRawVelocity j L (z.1,(geometry j L).coordinates l z.2))) |
| 536 | (fun l z hz => attachedRawVelocity_core j L (z.1,(geometry j L).coordinates l z.2) (by |
| 537 | intro he |
| 538 | exact hz (by simp only [he, map_zero]))) (x := coefficientPoint L n x) hc |
| 539 | have hP := PeriodizedWaveBounds.copySum_zero_germ (copyCells j L) 0 |
| 540 | (fun l (z : Native) => attachedRawPressure j L (z.1,(geometry j L).coordinates l z.2)) |
| 541 | (fun l z hz => attachedRawPressure_core j L (z.1,(geometry j L).coordinates l z.2) hz) |
| 542 | (x := coefficientPoint L n x) hc |
| 543 | constructor |
| 544 | · filter_upwards [(coefficientPoint_smooth L n).continuous.continuousAt.eventually hA] with y hy |
| 545 | have hh := congrArg (fun z : ComplexVector => ChartScales.Q n ^ CoordinateAlgebra.A h • |
| 546 | (ChartScales.Q (BaseChartJets.cellBand L) ^ (-CoordinateAlgebra.A h) • z)) hy |
| 547 | simpa only [smul_zero, coefficientPoint, PeriodizedWaveBounds.copySum, chartCoefficients, |
| 548 | absoluteAmplitude, uncutAmplitude] using hh |
| 549 | · filter_upwards [(coefficientPoint_smooth L n).continuous.continuousAt.eventually hP] with y hy |
| 550 | have hh := congrArg (fun z : ℂ => ChartScales.Q n ^ (2 * CoordinateAlgebra.A h) • |
| 551 | (ChartScales.Q (BaseChartJets.cellBand L) ^ (-(2 * CoordinateAlgebra.A h)) • z)) hy |
| 552 | simpa only [smul_zero, coefficientPoint, PeriodizedWaveBounds.copySum, chartCoefficients, |
| 553 | absolutePressure, uncutPressure] using hh |
| 554 | |
| 555 | end CopyGerms |
| 556 | |
| 557 | section PhaseNormal |
| 558 | |
| 559 | variable {B N0 : ℕ} |
| 560 | |
| 561 | theorem radialScale_pos (L : Label B N0) (n : ℕ) : 0 < radialScale L n := |
| 562 | div_pos (Real.sqrt_pos.mpr (ChartScales.Q_pos n)) (Real.sqrt_pos.mpr (ChartScales.Q_pos _)) |
| 563 | |
| 564 | theorem velocityScale_pos (L : Label B N0) (n : ℕ) : 0 < velocityScale L n := |
| 565 | div_pos (Real.rpow_pos_of_pos (ChartScales.Q_pos n) _) (Real.rpow_pos_of_pos (ChartScales.Q_pos _) _) |
| 566 | |
| 567 | theorem clockScale_eq (L : Label B N0) (n : ℕ) : clockScale L n = |
| 568 | PhysicalParticularWave.clockWeight h (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand L)) := by |
| 569 | unfold clockScale PhysicalParticularWave.clockWeight PhysicalParticularWave.ratioPower |
| 570 | congr 2 <;> unfold CoordinateAlgebra.A <;> ring |
| 571 | |
| 572 | theorem radialScale_eq (L : Label B N0) (n : ℕ) : radialScale L n = |
| 573 | PhysicalParticularWave.ratioPower (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand L)) (1/2) := by |
| 574 | simp only [radialScale, PhysicalParticularWave.ratioPower, Real.sqrt_eq_rpow] |
| 575 | |
| 576 | theorem clockScale_factor (L : Label B N0) (n : ℕ) : |
| 577 | clockScale L n = velocityScale L n * radialScale L n := by |
| 578 | rw [clockScale_eq, radialScale_eq] |
| 579 | exact ActualPhaseDefect.clock_eq_velocity_radial (ChartScales.Q_pos n) (ChartScales.Q_pos _) h |
| 580 | |
| 581 | theorem copyPoint_radius_pos (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 582 | (k : TorusInverse.Frequency) {x : FullPoint} (hR : 0 < x.1.1) : |
| 583 | 0 < (copyPoint j L n k x).1.1 := by |
| 584 | change 0 < (slotPoint j L n k x).1.1 |
| 585 | rw [slotPoint_radius] |
| 586 | exact mul_pos (radialScale_pos L n) hR |
| 587 | |
| 588 | theorem native_base_differentiable (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 589 | (k : TorusInverse.Frequency) {x : FullPoint} |
| 590 | (hR : 0 < x.1.1) (hT : 0 < x.1.2.1.1) : |
| 591 | DifferentiableAt ℝ ((phases B N0 j).phase.F L) (copyPoint j L n k x).1 ∧ |
| 592 | DifferentiableAt ℝ ((phases B N0 j).phase.G L) (copyPoint j L n k x).1 := by |
| 593 | rw [phase_frequency, phase_axial] |
| 594 | exact ⟨(ActualPrimaryCoherence.frequencySlow_smoothAt B _ (copyPoint_radius_pos j L n k hR) |
| 595 | (copyPoint_time_pos j L n k hT)).differentiableAt (by simp), |
| 596 | (ActualPrimaryCoherence.axialSlow_smoothAt B _ (copyPoint_time_pos j L n k hT)).differentiableAt (by simp)⟩ |
| 597 | |
| 598 | noncomputable def normalScale (L : Label B N0) (n : ℕ) : ℝ := |
| 599 | ((ChartScales.carrier h (BaseChartJets.cellBand L) : ℝ) / (ChartScales.carrier h n : ℝ)) * |
| 600 | radialScale L n |
| 601 | |
| 602 | theorem normalScale_pos (L : Label B N0) (n : ℕ) : 0 < normalScale L n := |
| 603 | mul_pos (div_pos (chartCoefficients_frequency_pos (B := B) (N0 := N0) 0 L _) |
| 604 | (chartCoefficients_frequency_pos (B := B) (N0 := N0) 0 L _)) (radialScale_pos L n) |
| 605 | |
| 606 | theorem normal_eq_copy (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 607 | (U : LocalSignedRequest.SlowRegion (2*h)) (k : TorusInverse.Frequency) {x : FullPoint} |
| 608 | (hR : 0 < x.1.1) (hT : 0 < x.1.2.1.1) |
| 609 | (hc : (copyPoint j L n k x).2 ∈ (clockWindow L).core) : |
| 610 | (chartCoefficients j L).normal |
| 611 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) |
| 612 | (PrimaryResidualClass.directions (commonContext B)) n x = |
| 613 | normalScale L n • (phases B N0 j).phase.normal L (phasePoint L (copyPoint j L n k x)) := by |
| 614 | obtain ⟨hF,hG⟩ := native_base_differentiable j L n k hR hT |
| 615 | have hp := PrimaryMaterialDefect.differentiableAt_phase |
| 616 | ((phases B N0 j).phase.epsilon L) ((phases B N0 j).phase.p L) |
| 617 | ((phases B N0 j).phase.pz L) ((phases B N0 j).phase.x0 L) |
| 618 | ((phases B N0 j).phase.F L) ((phases B N0 j).phase.G L) (slotPoint j L n k x) hF hG |
| 619 | have hd := (((hp.hasFDerivAt.comp x (slotPoint_hasFDerivAt j L n k x)).const_mul |
| 620 | ((ChartScales.carrier h (BaseChartJets.cellBand L) : ℝ) / (ChartScales.carrier h n : ℝ)))).congr_of_eventuallyEq |
| 621 | (phase_germ j L n k hc) |
| 622 | have htheta : PhaseCalculus.phaseNormal ((phases B N0 j).phase.epsilon L) |
| 623 | ((phases B N0 j).phase.p L) ((phases B N0 j).phase.pz L) ((phases B N0 j).phase.x0 L) |
| 624 | ((phases B N0 j).phase.F L) ((phases B N0 j).phase.G L) (slotPoint j L n k x) = |
| 625 | (phases B N0 j).phase.normal L (phasePoint L (copyPoint j L n k x)) := by |
| 626 | rw [PhaseCalculus.phaseNormal_formula _ _ _ _ _ _ (slotPoint j L n k x) |
| 627 | ((phases B N0 j).epsilon_ne L) hF hG] |
| 628 | unfold PhaseJetBounds.PhaseFamily.normal |
| 629 | simp only [phasePoint] |
| 630 | rw [PhaseCalculus.phaseNormal_formula _ _ _ _ _ _ |
| 631 | ((copyPoint j L n k x).1, ((phases B N0 j).phase.theta L, (copyPoint j L n k x).2.2)) |
| 632 | ((phases B N0 j).epsilon_ne L) hF hG] |
| 633 | rfl |
| 634 | rw [← htheta] |
| 635 | have hrad : (chartCoefficients j L).radius n x = x.1.1 := rfl |
| 636 | have heps : (phases B N0 j).phase.epsilon L = ChartScales.epsilon h (BaseChartJets.cellBand L) := rfl |
| 637 | ext i |
| 638 | fin_cases i <;> |
| 639 | simp [LinearWaveBounds.WaveCoefficients.normal, HarmonicCalculus.phaseNormal, |
| 640 | HarmonicCalculus.along, hd.fderiv, |
| 641 | ContinuousLinearMap.comp_apply, slotLinear_radial, slotLinear_angular j L n x, |
| 642 | slotLinear_axial, map_smul, smul_eq_mul, PiLp.smul_apply, |
| 643 | PhaseCalculus.phaseNormal, normalScale, hrad, heps] |
| 644 | · ring |
| 645 | · rw [slotPoint_radius] |
| 646 | field_simp [(radialScale_pos L n).ne', hR.ne'] |
| 647 | · ring |
| 648 | |
| 649 | end PhaseNormal |
| 650 | |
| 651 | section BaseAction |
| 652 | |
| 653 | variable {B N0 : ℕ} |
| 654 | |
| 655 | theorem frequency_germ (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 656 | (k : TorusInverse.Frequency) {x : FullPoint} (hR : 0 < x.1.1) (hT : 0 < x.1.2.1.1) : |
| 657 | (chartCoefficients j L).frequencyBase n =ᶠ[𝓝 x] |
| 658 | fun y => clockScale L n * (phases B N0 j).phase.F L (copyPoint j L n k y).1 := by |
| 659 | filter_upwards [(isOpen_lt continuous_const continuous_fst.fst).mem_nhds hR, |
| 660 | (isOpen_lt continuous_const continuous_fst.snd.fst.fst).mem_nhds hT] with y hyR hyT |
| 661 | change BaseContextAssembly.frequencySlow certificate modulation upper B n |
| 662 | (BaseContextAssembly.slowCoordinates y.1) = _ |
| 663 | rw [phase_frequency, clockScale_eq] |
| 664 | change _ = _ * BaseContextAssembly.frequencySlow certificate modulation upper B _ |
| 665 | (nativeSlow L (toAbsolute n y.1)) |
| 666 | rw [nativeSlow_toAbsolute_eq_slowChange] |
| 667 | exact ActualPhaseDefect.frequencySlow_change certificate modulation upper B n _ hyT hyR |
| 668 | |
| 669 | theorem axial_germ (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 670 | (k : TorusInverse.Frequency) {x : FullPoint} (hT : 0 < x.1.2.1.1) : |
| 671 | (chartCoefficients j L).axialBase n =ᶠ[𝓝 x] |
| 672 | fun y => velocityScale L n * (phases B N0 j).phase.G L (copyPoint j L n k y).1 := by |
| 673 | filter_upwards [(isOpen_lt continuous_const continuous_fst.snd.fst.fst).mem_nhds hT] with y hyT |
| 674 | change BaseContextAssembly.axialSlow certificate modulation upper B n |
| 675 | (BaseContextAssembly.slowCoordinates y.1) = _ |
| 676 | rw [phase_axial] |
| 677 | change _ = _ * BaseContextAssembly.axialSlow certificate modulation upper B _ |
| 678 | (nativeSlow L (toAbsolute n y.1)) |
| 679 | rw [nativeSlow_toAbsolute_eq_slowChange] |
| 680 | exact ActualPhaseDefect.axialSlow_change certificate modulation upper B n _ hyT |
| 681 | |
| 682 | theorem slow_radial_derivative (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 683 | (k : TorusInverse.Frequency) (a : ℝ) (f : PhaseCalculus.Slow → ℝ) {x : FullPoint} |
| 684 | (hf : DifferentiableAt ℝ f (copyPoint j L n k x).1) : |
| 685 | along ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 686 | (fun y => a * f (copyPoint j L n k y).1) x = |
| 687 | a * radialScale L n * PhaseCalculus.slowR f (copyPoint j L n k x).1 := by |
| 688 | have hd := ((hf.hasFDerivAt.comp x (copyPoint_hasFDerivAt j L n k x).fst).const_mul a).fderiv |
| 689 | simp only [Function.comp_def] at hd |
| 690 | have hr := congrArg Prod.fst (slotLinear_radial j L n x) |
| 691 | change (copyLinear j L n ((PrimaryResidualClass.directions (commonContext B)).radialField n x)).1 = |
| 692 | radialScale L n • (1,(0,0)) at hr |
| 693 | simp only [along, hd, _root_.smul_apply, ContinuousLinearMap.comp_apply, |
| 694 | ContinuousLinearMap.coe_fst', hr, map_smul, smul_eq_mul, PhaseCalculus.slowR] |
| 695 | ring |
| 696 | |
| 697 | theorem copy_shear_function (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 698 | (k : TorusInverse.Frequency) (v : Native → Space) {x : FullPoint} |
| 699 | (hR : 0 < x.1.1) (hT : 0 < x.1.2.1.1) : |
| 700 | LinearWaveResidual.shear ((chartCoefficients j L).radius n) |
| 701 | ((chartCoefficients j L).frequencyBase n) ((chartCoefficients j L).axialBase n) |
| 702 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 703 | (fun y => velocityScale L n • CurlClassBounds.complexify (v (copyPoint j L n k y))) x = |
| 704 | (clockScale L n * velocityScale L n) • CurlClassBounds.complexify |
| 705 | (PrimaryCopyBridge.baseOperator ((phases B N0 j).phase.F L (copyPoint j L n k x).1) |
| 706 | ((phases B N0 j).phase.shear L (phasePoint L (copyPoint j L n k x))) |
| 707 | (v (copyPoint j L n k x))) := by |
| 708 | obtain ⟨hF,hG⟩ := native_base_differentiable j L n k hR hT |
| 709 | have hf := frequency_germ j L n k hR hT |
| 710 | have hg := axial_germ j L n k hT |
| 711 | have hfr := (ParticularWaveAssembly.along_germ hf |
| 712 | ((PrimaryResidualClass.directions (commonContext B)).radialField n)).eq_of_nhds |
| 713 | have hgr := (ParticularWaveAssembly.along_germ hg |
| 714 | ((PrimaryResidualClass.directions (commonContext B)).radialField n)).eq_of_nhds |
| 715 | rw [slow_radial_derivative j L n k _ _ hF] at hfr |
| 716 | rw [slow_radial_derivative j L n k _ _ hG, ← clockScale_factor] at hgr |
| 717 | have hr := slotPoint_radius j L n k x |
| 718 | change (copyPoint j L n k x).1.1 = radialScale L n * x.1.1 at hr |
| 719 | unfold LinearWaveResidual.shear |
| 720 | rw [hfr, hgr, hf.eq_of_nhds] |
| 721 | have hrad : (chartCoefficients j L).radius n x = x.1.1 := rfl |
| 722 | ext i |
| 723 | fin_cases i <;> |
| 724 | simp [hrad, PrimaryCopyBridge.baseOperator_apply, MovingFrameODE.baseAction, |
| 725 | PhaseJetBounds.PhaseFamily.shear, PhaseEstimates.shearVector, |
| 726 | MovingFrameODE.pack, MovingFrameODE.tail, MovingFrameODE.unitTheta, |
| 727 | CurlClassBounds.complexify_apply, phasePoint, hr, Complex.ofReal_mul, |
| 728 | Complex.ofReal_add, Complex.ofReal_neg] <;> ring |
| 729 | |
| 730 | theorem copy_shear (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 731 | (k : TorusInverse.Frequency) {x : FullPoint} (hR : 0 < x.1.1) (hT : 0 < x.1.2.1.1) : |
| 732 | LinearWaveResidual.shear ((chartCoefficients j L).radius n) |
| 733 | ((chartCoefficients j L).frequencyBase n) ((chartCoefficients j L).axialBase n) |
| 734 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 735 | (copyAmplitude j L n k) x = |
| 736 | (clockScale L n * velocityScale L n) • CurlClassBounds.complexify |
| 737 | (PrimaryCopyBridge.baseOperator ((phases B N0 j).phase.F L (copyPoint j L n k x).1) |
| 738 | ((phases B N0 j).phase.shear L (phasePoint L (copyPoint j L n k x))) |
| 739 | (attachedRawVelocity j L (copyPoint j L n k x))) := |
| 740 | copy_shear_function j L n k (attachedRawVelocity j L) hR hT |
| 741 | |
| 742 | end BaseAction |
| 743 | |
| 744 | section ScaledDynamics |
| 745 | |
| 746 | variable {B N0 : ℕ} |
| 747 | |
| 748 | theorem epsilon_scale (L : Label B N0) (n : ℕ) : |
| 749 | ChartScales.epsilon h n * radialScale L n ^ 2 = |
| 750 | clockScale L n * ChartScales.epsilon h (BaseChartJets.cellBand L) := by |
| 751 | unfold radialScale clockScale ChartScales.epsilon |
| 752 | rw [div_pow, Real.sq_sqrt (ChartScales.Q_pos n).le, |
| 753 | Real.sq_sqrt (ChartScales.Q_pos (BaseChartJets.cellBand L)).le, |
| 754 | Real.rpow_add (ChartScales.Q_pos n), |
| 755 | Real.rpow_add (ChartScales.Q_pos (BaseChartJets.cellBand L)), |
| 756 | Real.rpow_one, Real.rpow_one] |
| 757 | field_simp [(ChartScales.Q_pos (BaseChartJets.cellBand L)).ne', |
| 758 | (Real.rpow_pos_of_pos (ChartScales.Q_pos (BaseChartJets.cellBand L)) h).ne'] |
| 759 | |
| 760 | theorem damping_scale (L : Label B N0) (n : ℕ) (N : Space) : |
| 761 | ChartScales.epsilon h n * (ChartScales.carrier h n : ℝ)^2 * ‖normalScale L n • N‖^2 = |
| 762 | clockScale L n * (ChartScales.epsilon h (BaseChartJets.cellBand L) * |
| 763 | (ChartScales.carrier h (BaseChartJets.cellBand L) : ℝ)^2 * ‖N‖^2) := by |
| 764 | have hk : (ChartScales.carrier h n : ℝ) ≠ 0 := (chartCoefficients_frequency_pos 0 L n).ne' |
| 765 | rw [norm_smul, Real.norm_eq_abs, mul_pow, sq_abs] |
| 766 | unfold normalScale |
| 767 | rw [mul_pow, div_pow] |
| 768 | calc |
| 769 | _ = (ChartScales.epsilon h n * radialScale L n ^ 2) * |
| 770 | (ChartScales.carrier h (BaseChartJets.cellBand L) : ℝ)^2 * ‖N‖^2 := by field_simp |
| 771 | _ = _ := by rw [epsilon_scale]; ring |
| 772 | |
| 773 | noncomputable def copyVelocity (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 774 | (k : TorusInverse.Frequency) (x : FullPoint) : Space := |
| 775 | velocityScale L n • attachedRawVelocity j L (copyPoint j L n k x) |
| 776 | |
| 777 | noncomputable def copyMotion (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 778 | (k : TorusInverse.Frequency) (x : FullPoint) : Space := |
| 779 | (normalScale L n * clockScale L n) • |
| 780 | (phases B N0 j).phase.velocity L (phasePoint L (copyPoint j L n k x)) |
| 781 | |
| 782 | noncomputable def copyAction (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 783 | (k : TorusInverse.Frequency) (x : FullPoint) : Space := |
| 784 | (clockScale L n * velocityScale L n) • |
| 785 | PrimaryCopyBridge.baseOperator ((phases B N0 j).phase.F L (copyPoint j L n k x).1) |
| 786 | ((phases B N0 j).phase.shear L (phasePoint L (copyPoint j L n k x))) |
| 787 | (attachedRawVelocity j L (copyPoint j L n k x)) |
| 788 | |
| 789 | theorem copyVelocity_differentiable (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 790 | (k : TorusInverse.Frequency) {x : FullPoint} (hT : 0 < x.1.2.1.1) : |
| 791 | DifferentiableAt ℝ (copyVelocity j L n k) x := |
| 792 | (((attachedRawVelocity_smooth B N0 j L).contDiffAt |
| 793 | (WaveEdgeExtension.nativeSlowDomain_open.mem_nhds (copyPoint_time_pos j L n k hT))).differentiableAt |
| 794 | (by simp) |>.comp x (copyPoint_hasFDerivAt j L n k x).differentiableAt).fun_const_smul _ |
| 795 | |
| 796 | theorem copyVelocity_ode (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 797 | (U : LocalSignedRequest.SlowRegion (2*h)) (k : TorusInverse.Frequency) {x : FullPoint} |
| 798 | (hR : 0 < x.1.1) (hT : 0 < x.1.2.1.1) |
| 799 | (hc : (copyPoint j L n k x).2 ∈ (clockWindow L).core) |
| 800 | (hg : chartCutoff j L n x ≠ 0) : |
| 801 | along ((PrimaryResidualClass.directions (commonContext B)).fastField n) |
| 802 | (copyVelocity j L n k) x = |
| 803 | TangentProjection.projectedRhs |
| 804 | ((chartCoefficients j L).normal |
| 805 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) |
| 806 | (PrimaryResidualClass.directions (commonContext B)) n x) |
| 807 | (copyMotion j L n k x) (copyVelocity j L n k x) (copyAction j L n k x) 0 |
| 808 | (ChartScales.epsilon h n * (ChartScales.carrier h n : ℝ)^2 * |
| 809 | ‖(chartCoefficients j L).normal |
| 810 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) |
| 811 | (PrimaryResidualClass.directions (commonContext B)) n x‖^2) := by |
| 812 | let z := copyPoint j L n k x |
| 813 | have hgz : gaussian L z ≠ 0 := by rwa [cutoff_eq_copy j L n k hc] at hg |
| 814 | have hd := attachedVelocity_hasDerivAt j L (copyPoint_time_pos j L n k hT) hgz |
| 815 | have htime : HasDerivAt (fun t : ℝ => z.2.2 + t * clockScale L n) (clockScale L n) 0 := by |
| 816 | simpa using ((hasDerivAt_id (0 : ℝ)).mul_const (clockScale L n)).const_add z.2.2 |
| 817 | have hd' := (hd.scomp_of_eq (0 : ℝ) htime (by simp [z])).const_smul (velocityScale L n) |
| 818 | have hline : HasDerivAt |
| 819 | (fun t : ℝ => x+t • (PrimaryResidualClass.directions (commonContext B)).fastField n x) |
| 820 | ((PrimaryResidualClass.directions (commonContext B)).fastField n x) 0 := by |
| 821 | simpa using ((hasDerivAt_id (0 : ℝ)).smul_const |
| 822 | ((PrimaryResidualClass.directions (commonContext B)).fastField n x)).const_add x |
| 823 | have hh := (copyVelocity_differentiable j L n k hT).hasFDerivAt.comp_hasDerivAt_of_eq |
| 824 | (0 : ℝ) hline (by simp) |
| 825 | simp only [Function.comp_def, copyVelocity, copyPoint_fast_line] at hh |
| 826 | simp only [Function.comp_def, z] at hd' |
| 827 | have he := hh.unique hd' |
| 828 | change along ((PrimaryResidualClass.directions (commonContext B)).fastField n) (copyVelocity j L n k) x = _ at he |
| 829 | rw [he, normal_eq_copy j L n U k hR hT hc, damping_scale] |
| 830 | have hs := NormalScaling.projectedRhs_rescale |
| 831 | ((phases B N0 j).phase.normal L (phasePoint L z)) |
| 832 | ((phases B N0 j).phase.velocity L (phasePoint L z)) |
| 833 | (attachedRawVelocity j L z) |
| 834 | (PrimaryCopyBridge.baseOperator ((phases B N0 j).phase.F L z.1) |
| 835 | ((phases B N0 j).phase.shear L (phasePoint L z)) (attachedRawVelocity j L z)) |
| 836 | (0 : Space) (clockScale L n) (velocityScale L n) |
| 837 | (ChartScales.epsilon h (BaseChartJets.cellBand L) * |
| 838 | (ChartScales.carrier h (BaseChartJets.cellBand L) : ℝ)^2 * |
| 839 | ‖(phases B N0 j).phase.normal L (phasePoint L z)‖^2) (normalScale_pos L n).ne' |
| 840 | simpa only [copyVelocity, copyMotion, copyAction, smul_zero, smul_smul, mul_comm, z] using hs.symm |
| 841 | |
| 842 | theorem pressure_scale_algebra {K Kr r : ℝ} (hK : K ≠ 0) (hKr : Kr ≠ 0) |
| 843 | (hr : r ≠ 0) (b c : ℝ) : |
| 844 | b ^ 2 • (Complex.I * (c : ℂ) / (Kr : ℂ)) = |
| 845 | Complex.I * (((b * r * b / ((Kr / K) * r)) * c : ℝ) : ℂ) / (K : ℂ) := by |
| 846 | simp only [Complex.real_smul, Complex.ofReal_mul, Complex.ofReal_div, Complex.ofReal_pow] |
| 847 | field_simp [Complex.ofReal_ne_zero.mpr hK, Complex.ofReal_ne_zero.mpr hKr, |
| 848 | Complex.ofReal_ne_zero.mpr hr] |
| 849 | |
| 850 | theorem copyPressure_projected (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 851 | (U : LocalSignedRequest.SlowRegion (2*h)) (k : TorusInverse.Frequency) {x : FullPoint} |
| 852 | (hR : 0 < x.1.1) (hT : 0 < x.1.2.1.1) |
| 853 | (hc : (copyPoint j L n k x).2 ∈ (clockWindow L).core) |
| 854 | (hg : chartCutoff j L n x ≠ 0) : |
| 855 | copyPressure j L n k x = |
| 856 | ParticularWaveBounds.projectedPressure (ChartScales.carrier h n) |
| 857 | ((chartCoefficients j L).normal |
| 858 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) |
| 859 | (PrimaryResidualClass.directions (commonContext B)) n) |
| 860 | (copyMotion j L n k) (copyVelocity j L n k) (copyAction j L n k) (fun _ => 0) x := by |
| 861 | have hgz : gaussian L (copyPoint j L n k x) ≠ 0 := by rwa [cutoff_eq_copy j L n k hc] at hg |
| 862 | have hk : (ChartScales.carrier h n : ℝ) ≠ 0 := (chartCoefficients_frequency_pos 0 L n).ne' |
| 863 | have hkr : (ChartScales.carrier h (BaseChartJets.cellBand L) : ℝ) ≠ 0 := |
| 864 | (chartCoefficients_frequency_pos 0 L _).ne' |
| 865 | unfold copyPressure ParticularWaveBounds.projectedPressure |
| 866 | rw [attachedPressure_eq j L hgz, normal_eq_copy j L n U k hR hT hc] |
| 867 | simp only [copyMotion, copyVelocity, copyAction] |
| 868 | rw [show (0 : Space) = (clockScale L n * velocityScale L n) • (0 : Space) by simp, |
| 869 | NormalScaling.pressureCoefficient_rescale _ _ _ _ _ _ _ (normalScale_pos L n).ne'] |
| 870 | rw [clockScale_factor] |
| 871 | simpa only [smul_zero, normalScale] using |
| 872 | pressure_scale_algebra hk hkr (radialScale_pos L n).ne' (velocityScale L n) |
| 873 | (TangentProjection.pressureCoefficient |
| 874 | ((phases B N0 j).phase.normal L (phasePoint L (copyPoint j L n k x))) |
| 875 | ((phases B N0 j).phase.velocity L (phasePoint L (copyPoint j L n k x))) |
| 876 | (attachedRawVelocity j L (copyPoint j L n k x)) |
| 877 | (PrimaryCopyBridge.baseOperator ((phases B N0 j).phase.F L (copyPoint j L n k x).1) |
| 878 | ((phases B N0 j).phase.shear L (phasePoint L (copyPoint j L n k x))) |
| 879 | (attachedRawVelocity j L (copyPoint j L n k x))) 0) |
| 880 | |
| 881 | theorem copy_principal_zero (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 882 | (U : LocalSignedRequest.SlowRegion (2*h)) (k : TorusInverse.Frequency) {x : FullPoint} |
| 883 | (hR : 0 < x.1.1) (hT : 0 < x.1.2.1.1) |
| 884 | (hc : (copyPoint j L n k x).2 ∈ (clockWindow L).core) |
| 885 | (hg : chartCutoff j L n x ≠ 0) : |
| 886 | LinearWaveResidual.principal (ChartScales.epsilon h n) (ChartScales.carrier h n) |
| 887 | ((chartCoefficients j L).radius n) ((chartCoefficients j L).frequencyBase n) |
| 888 | ((chartCoefficients j L).axialBase n) |
| 889 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 890 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 891 | ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 892 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n) |
| 893 | ((PrimaryResidualClass.directions (commonContext B)).fastField n) |
| 894 | ((chartCoefficients j L).phase n) (copyAmplitude j L n k) (copyPressure j L n k) x = 0 := by |
| 895 | have ha : CurlClassBounds.complexify (copyAction j L n k x) = |
| 896 | LinearWaveResidual.shear ((chartCoefficients j L).radius n) |
| 897 | ((chartCoefficients j L).frequencyBase n) ((chartCoefficients j L).axialBase n) |
| 898 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 899 | (fun y => CurlClassBounds.complexify (copyVelocity j L n k y)) x := by |
| 900 | have he := (copy_shear j L n k hR hT).symm |
| 901 | simp only [copyAction, copyVelocity, map_smul] at he ⊢ |
| 902 | exact he |
| 903 | have hh := ParticularWaveBounds.principal_eq_neg_source_of_projected |
| 904 | (ChartScales.epsilon h n) (ChartScales.carrier h n) (chartCoefficients_frequency_pos j L n).ne' |
| 905 | ((chartCoefficients j L).radius n) ((chartCoefficients j L).frequencyBase n) |
| 906 | ((chartCoefficients j L).axialBase n) ((chartCoefficients j L).phase n) |
| 907 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 908 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 909 | ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 910 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n) |
| 911 | ((PrimaryResidualClass.directions (commonContext B)).fastField n) |
| 912 | (copyVelocity j L n k) (copyMotion j L n k) (copyAction j L n k) (fun _ => 0) |
| 913 | (copyVelocity_differentiable j L n k hT) (copyVelocity_ode j L n U k hR hT hc hg) ha |
| 914 | have hp := copyPressure_projected j L n U k hR hT hc hg |
| 915 | dsimp only [LinearWaveBounds.WaveCoefficients.normal] at hp |
| 916 | ext i |
| 917 | have hi := congrFun hh i |
| 918 | simp only [LinearWaveResidual.principal] at hi |
| 919 | rw [← hp] at hi |
| 920 | simp only [LinearWaveResidual.principal, copyVelocity, map_smul, copyAmplitude, |
| 921 | map_zero, Pi.neg_apply, Pi.zero_apply, neg_zero] at hi ⊢ |
| 922 | exact hi |
| 923 | |
| 924 | /-- The global attachment only satisfies the homogeneous equation on the |
| 925 | actual Gaussian support. No band-nearness or global slot premise occurs. -/ |
| 926 | theorem principal_zero_on_cutoff (j : Fin 2) (L : Label B N0) (n : ℕ) |
| 927 | (U : LocalSignedRequest.SlowRegion (2*h)) {x : FullPoint} |
| 928 | (hR : 0 < x.1.1) (hT : 0 < x.1.2.1.1) (hg : chartCutoff j L n x ≠ 0) : |
| 929 | (chartCoefficients j L).principal |
| 930 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) |
| 931 | (PrimaryResidualClass.directions (commonContext B)) n x = 0 := by |
| 932 | classical |
| 933 | by_cases hc : ∃ k : TorusInverse.Frequency, (copyPoint j L n k x).2 ∈ (clockWindow L).core |
| 934 | · obtain ⟨k,hk⟩ := hc |
| 935 | have he := (PeriodizedWaveBounds.principal_germ (amplitude_germ j L n k hk) |
| 936 | (pressure_germ j L n k hk) (ChartScales.epsilon h n) (ChartScales.carrier h n) |
| 937 | ((chartCoefficients j L).radius n) ((chartCoefficients j L).frequencyBase n) |
| 938 | ((chartCoefficients j L).axialBase n) ((chartCoefficients j L).phase n) |
| 939 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 940 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 941 | ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 942 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n) |
| 943 | ((PrimaryResidualClass.directions (commonContext B)).fastField n)).eq_of_nhds |
| 944 | exact he.trans (copy_principal_zero j L n U k hR hT hk hg) |
| 945 | · obtain ⟨hA,hP⟩ := coefficient_zero_germs j L n (not_exists.mp hc) |
| 946 | have he := (PeriodizedWaveBounds.principal_germ hA hP |
| 947 | (ChartScales.epsilon h n) (ChartScales.carrier h n) |
| 948 | ((chartCoefficients j L).radius n) ((chartCoefficients j L).frequencyBase n) |
| 949 | ((chartCoefficients j L).axialBase n) ((chartCoefficients j L).phase n) |
| 950 | ((PrimaryResidualClass.directions (commonContext B)).radialField n) |
| 951 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 952 | ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 953 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) n) |
| 954 | ((PrimaryResidualClass.directions (commonContext B)).fastField n)).eq_of_nhds |
| 955 | exact he.trans (by simp []) |
| 956 | |
| 957 | end ScaledDynamics |
| 958 | |
| 959 | section Algebra |
| 960 | |
| 961 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 962 | |
| 963 | /-- The exact cutoff and curl algebra only needs the localized principal |
| 964 | equation. The actual primary application below supplies every hypothesis. -/ |
| 965 | theorem localLinearIdentity (a : LinearWaveBounds.WaveCoefficients E) |
| 966 | (s : WeightedClasses.StripData E) (d : LinearWaveBounds.GraphDirections E) |
| 967 | (ψ : ℕ → E → ℝ) (f : ℕ → E → ComplexVector) (n : ℕ) |
| 968 | {Ω : Set E} (hg : LocalizedWaveBounds.ExactOn ((a.withCutoff ψ).addAmplitude f) s d n Ω) |
| 969 | {x : E} (hx : x ∈ Ω) |
| 970 | (hA : ∀ i, DifferentiableAt ℝ (fun y => a.amplitude n y i) x) |
| 971 | (hψ : DifferentiableAt ℝ (ψ n) x) |
| 972 | (hf : ∀ i, DifferentiableAt ℝ (fun y => f n y i) x) |
| 973 | (hz : ψ n x • a.principal s d n x = 0) (i : Fin 3) : |
| 974 | (((a.withCutoff ψ).addAmplitude f).harmonicResidual s d n x i).re = |
| 975 | (vectorMode (a.frequency n) (a.phase n) (a.goodCoefficient s d ψ f n) x i).re + |
| 976 | (vectorMode (a.frequency n) (a.phase n) |
| 977 | (LinearWaveBounds.excludedSlotError d ψ a.amplitude 0 n) x i).re := by |
| 978 | have hcut := LocalizedWaveBounds.principal_cutoff_at a s d ψ 0 n x hA hψ |
| 979 | simp only [Pi.zero_apply, add_zero, hz, zero_add] at hcut |
| 980 | have hadd := LocalizedWaveBounds.principal_add_at (a.withCutoff ψ) s d f n x |
| 981 | (fun i => hψ.smul (hA i)) hf |
| 982 | have he : ((a.withCutoff ψ).addAmplitude f).principal s d n x + |
| 983 | ((a.withCutoff ψ).addAmplitude f).remainder s d n x = |
| 984 | a.goodCoefficient s d ψ f n x + LinearWaveBounds.excludedSlotError d ψ a.amplitude 0 n x := by |
| 985 | rw [hadd, hcut] |
| 986 | change _ + a.principalVelocity s d f n x + _ = |
| 987 | (a.principalVelocity s d f n x + _) + _ |
| 988 | abel |
| 989 | rw [LocalizedWaveBounds.harmonicResidual_eq_on hg hx] |
| 990 | change ((((a.withCutoff ψ).addAmplitude f).principal s d n x + |
| 991 | ((a.withCutoff ψ).addAmplitude f).remainder s d n x) i * |
| 992 | carrier (a.frequency n) (a.phase n) x).re = _ |
| 993 | rw [he] |
| 994 | simp only [Pi.add_apply, add_mul, Complex.add_re] |
| 995 | rfl |
| 996 | |
| 997 | end Algebra |
| 998 | |
| 999 | section Residual |
| 1000 | |
| 1001 | variable {B N0 : ℕ} |
| 1002 | |
| 1003 | theorem absoluteChart_positive (n : ℕ) {x : FullPoint} |
| 1004 | (hx : x ∈ ActualPrimaryCoherence.positiveRadialChart) : |
| 1005 | ActualPrimaryCoherence.absoluteChart n x ∈ ActualPrimaryCoherence.positiveRadialAbsolute := |
| 1006 | ⟨mul_pos (Real.sqrt_pos.mpr (ChartScales.Q_pos n)) hx.1, mul_pos (ChartScales.Q_pos n) hx.2⟩ |
| 1007 | |
| 1008 | theorem amplitude_smooth (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1009 | ContDiffOn ℝ ∞ ((chartCoefficients j L).amplitude n) ActualPrimaryCoherence.positiveRadialChart := by |
| 1010 | exact (((ActualPrimaryCoherence.absoluteAmplitude_smooth j L).comp |
| 1011 | (ActualPrimaryCoherence.absoluteChart n).contDiff.contDiffOn |
| 1012 | (fun _ hx => (absoluteChart_positive n hx).2)).const_smul |
| 1013 | (ChartScales.Q n ^ CoordinateAlgebra.A h)) |
| 1014 | |
| 1015 | theorem pressure_smooth (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1016 | ContDiffOn ℝ ∞ ((chartCoefficients j L).pressure n) ActualPrimaryCoherence.positiveRadialChart := by |
| 1017 | exact (((ActualPrimaryCoherence.absolutePressureCoefficient_smooth j L).comp |
| 1018 | (ActualPrimaryCoherence.absoluteChart n).contDiff.contDiffOn |
| 1019 | (fun _ hx => (absoluteChart_positive n hx).2)).const_smul |
| 1020 | (ChartScales.Q n ^ (2 * CoordinateAlgebra.A h))) |
| 1021 | |
| 1022 | theorem cutoff_smooth (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1023 | ContDiff ℝ ∞ (chartCutoff j L n) := |
| 1024 | (periodicGaussian_smooth j L).comp (((toAbsolute_smooth n).comp contDiff_fst).snd) |
| 1025 | |
| 1026 | theorem phase_smooth (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1027 | ContDiffOn ℝ ∞ ((chartCoefficients j L).phase n) ActualPrimaryCoherence.positiveRadialChart := by |
| 1028 | rw [ActualPrimaryCoherence.phase_representation] |
| 1029 | exact contDiffOn_const.mul ((ActualPrimaryCoherence.absolutePhase_smooth j L).comp |
| 1030 | (ActualPrimaryCoherence.absoluteChart n).contDiff.contDiffOn |
| 1031 | (fun _ hx => absoluteChart_positive n hx)) |
| 1032 | |
| 1033 | theorem exactAmplitude_smooth (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1034 | (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1035 | ContDiffOn ℝ ∞ ((piece U j L).exactCoefficients.amplitude n) ActualPrimaryCoherence.positiveRadialChart := by |
| 1036 | have he : (piece U j L).exactCoefficients.amplitude n = fun x => |
| 1037 | ChartScales.Q n ^ CoordinateAlgebra.A h • |
| 1038 | ActualPrimaryCoherence.absoluteExactAmplitude j L (ActualPrimaryCoherence.absoluteChart n x) := |
| 1039 | funext (ActualPrimaryCoherence.exactAmplitude_representation U j L n) |
| 1040 | rw [he] |
| 1041 | exact ((ActualPrimaryCoherence.absoluteExactAmplitude_smooth j L).comp |
| 1042 | (ActualPrimaryCoherence.absoluteChart n).contDiff.contDiffOn |
| 1043 | (fun _ hx => absoluteChart_positive n hx)).const_smul _ |
| 1044 | |
| 1045 | theorem curl_smooth (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1046 | (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1047 | ContDiffOn ℝ ∞ (((chartCoefficients j L).withCutoff (chartCutoff j L)).curlCorrection |
| 1048 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) |
| 1049 | (PrimaryResidualClass.directions (commonContext B)) n) ActualPrimaryCoherence.positiveRadialChart := by |
| 1050 | have hc := (cutoff_smooth j L n).contDiffOn.smul (amplitude_smooth j L n) |
| 1051 | apply ((exactAmplitude_smooth U j L n).sub hc).congr |
| 1052 | intro x _ |
| 1053 | change _ = (chartCutoff j L n x • (chartCoefficients j L).amplitude n x + |
| 1054 | ((chartCoefficients j L).withCutoff (chartCutoff j L)).curlCorrection |
| 1055 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) |
| 1056 | (PrimaryResidualClass.directions (commonContext B)) n x) - |
| 1057 | chartCutoff j L n x • (chartCoefficients j L).amplitude n x |
| 1058 | rw [add_sub_cancel_left] |
| 1059 | |
| 1060 | theorem base_smooth (j : Fin 2) (L : Label B N0) (n : ℕ) {x : FullPoint} |
| 1061 | (hx : x ∈ ActualPrimaryCoherence.positiveRadialChart) : |
| 1062 | ContDiffAt ℝ ∞ ((chartCoefficients j L).radialBase n) x ∧ |
| 1063 | ContDiffAt ℝ ∞ ((chartCoefficients j L).frequencyBase n) x ∧ |
| 1064 | ContDiffAt ℝ ∞ ((chartCoefficients j L).axialBase n) x := by |
| 1065 | have hs : ContDiffAt ℝ ∞ (fun y : FullPoint => BaseContextAssembly.slowCoordinates y.1) x := |
| 1066 | BaseContextAssembly.slowCoordinates.contDiff.contDiffAt.comp x contDiffAt_fst |
| 1067 | exact ⟨(BaseContextAssembly.radialSlow_smoothAt certificate modulation upper B n hx.2).comp x hs, |
| 1068 | (ActualPrimaryCoherence.frequencySlow_smoothAt B n hx.1 hx.2).comp x hs, |
| 1069 | (ActualPrimaryCoherence.axialSlow_smoothAt B n hx.2).comp x hs⟩ |
| 1070 | |
| 1071 | theorem exactOn (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1072 | (j : Fin 2) (L : Label B N0) (n : ℕ) : |
| 1073 | LocalizedWaveBounds.ExactOn (piece U j L).exactCoefficients |
| 1074 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U)) |
| 1075 | (PrimaryResidualClass.directions (commonContext B)) n ActualPrimaryCoherence.positiveRadialChart := by |
| 1076 | let ha := chartCoefficients_angular j L |
| 1077 | have hp : ContDiffOn ℝ ∞ ((piece U j L).exactCoefficients.pressure n) |
| 1078 | ActualPrimaryCoherence.positiveRadialChart := |
| 1079 | (cutoff_smooth j L n).contDiffOn.smul (pressure_smooth j L n) |
| 1080 | have hA := exactAmplitude_smooth U j L n |
| 1081 | have hΦ := phase_smooth j L n |
| 1082 | refine ⟨ActualPrimaryCoherence.positiveRadialChart_open, ?_, hΦ, |
| 1083 | (fun i => (contDiffOn_pi.mp hA) i), ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_, ?_⟩ |
| 1084 | · intro x hx |
| 1085 | have hh : ContDiffAt ℝ ∞ (fun y : FullPoint => |
| 1086 | RadialPullback.radialJacobian (ChartScales.radialExponent h) y.1.1) x := |
| 1087 | contDiffAt_const.mul (contDiffAt_fst.fst.rpow_const_of_ne hx.1.ne') |
| 1088 | exact hh.contDiffWithinAt |
| 1089 | · intro x _ |
| 1090 | exact differentiableAt_fst.fst |
| 1091 | · intro x hx |
| 1092 | exact (base_smooth j L n hx).1.differentiableAt (by simp) |
| 1093 | · intro x hx |
| 1094 | exact (base_smooth j L n hx).2.1.differentiableAt (by simp) |
| 1095 | · intro x hx |
| 1096 | exact (base_smooth j L n hx).2.2.differentiableAt (by simp) |
| 1097 | · intro x hx |
| 1098 | exact (hp.contDiffAt (ActualPrimaryCoherence.positiveRadialChart_open.mem_nhds hx)).differentiableAt (by simp) |
| 1099 | · intro x hx |
| 1100 | exact hx.1.ne' |
| 1101 | · intro x hx |
| 1102 | change fderiv ℝ (fun y : FullPoint => y.1.1) x |
| 1103 | ((PrimaryResidualClass.directions (commonContext B)).radialField n x) = 1 |
| 1104 | rw [(hasFDerivAt_fst.fst (x := x)).fderiv] |
| 1105 | simp [LinearWaveBounds.GraphDirections.radialField, PrimaryResidualClass.directions, |
| 1106 | commonContext, CommonBaseContext.context, CommonBaseContext.operators, |
| 1107 | CorrectionState.graphOperators, CommonBaseContext.reconstruction] |
| 1108 | · intro x hx i |
| 1109 | exact ((CopyAngularInvariance.base_invariant (ha.radius n) (ha.radialBase n) |
| 1110 | (ha.frequencyBase n) (ha.axialBase n)).component i).along_zero x |
| 1111 | · intro i x hx |
| 1112 | exact ((ha.corrected_amplitude (BaseContextAssembly.nativeStrip nominal U) (commonContext B) n).component i).along_zero x |
| 1113 | · obtain ⟨m,hm⟩ := ha.phase n |
| 1114 | exact ⟨m, fun x hx => hm.directional_eq |
| 1115 | ((hΦ.contDiffAt (ActualPrimaryCoherence.positiveRadialChart_open.mem_nhds hx)).differentiableAt (by simp))⟩ |
| 1116 | · intro x hx |
| 1117 | exact (ha.corrected_pressure (BaseContextAssembly.nativeStrip nominal U) (commonContext B) n).along_zero x |
| 1118 | |
| 1119 | /-- Exact decomposition of the same selected, attached, periodized and |
| 1120 | curl-corrected primary piece. The Gaussian derivative is retained. -/ |
| 1121 | theorem linearResidual_eq (U : LocalSignedRequest.SlowRegion (2*h)) |
| 1122 | (j : Fin 2) (L : Label B N0) (n : ℕ) {x : FullPoint} |
| 1123 | (hx : x ∈ ActualPrimaryCoherence.positiveRadialChart) (i : Fin 3) : |
| 1124 | (piece U j L).linearResidual n x i = |
| 1125 | (piece U j L).linearGoodField n x i + (piece U j L).excluded n x i := by |
| 1126 | let a := chartCoefficients j L |
| 1127 | let s := HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal U) |
| 1128 | let d := PrimaryResidualClass.directions (commonContext B) |
| 1129 | let ψ := chartCutoff j L |
| 1130 | let f := (a.withCutoff ψ).curlCorrection s d |
| 1131 | have hA : ∀ i, DifferentiableAt ℝ (fun y => a.amplitude n y i) x := fun i => |
| 1132 | (((contDiffOn_pi.mp (amplitude_smooth j L n)) i).contDiffAt |
| 1133 | (ActualPrimaryCoherence.positiveRadialChart_open.mem_nhds hx)).differentiableAt (by simp) |
| 1134 | have hψ : DifferentiableAt ℝ (ψ n) x := (cutoff_smooth j L n).differentiable (by simp) x |
| 1135 | have hf : ∀ i, DifferentiableAt ℝ (fun y => f n y i) x := fun i => |
| 1136 | (((contDiffOn_pi.mp (curl_smooth U j L n)) i).contDiffAt |
| 1137 | (ActualPrimaryCoherence.positiveRadialChart_open.mem_nhds hx)).differentiableAt (by simp) |
| 1138 | have hz : ψ n x • a.principal s d n x = 0 := by |
| 1139 | by_cases hh : ψ n x = 0 |
| 1140 | · rw [hh, zero_smul] |
| 1141 | · rw [principal_zero_on_cutoff j L n U hx.1 hx.2 hh, smul_zero] |
| 1142 | exact localLinearIdentity a s d ψ f n (exactOn U j L n) hx hA hψ hf hz i |
| 1143 | |
| 1144 | theorem linearResidual_eq_on_strip (j : Fin 2) (L : Label B N0) (n : ℕ) {x : FullPoint} |
| 1145 | (hx : x.1 ∈ (BaseContextAssembly.nativeStrip nominal standardRegion).domain) (i : Fin 3) : |
| 1146 | (piece standardRegion j L).linearResidual n x i = |
| 1147 | (piece standardRegion j L).linearGoodField n x i + |
| 1148 | (piece standardRegion j L).excluded n x i := |
| 1149 | linearResidual_eq standardRegion j L n |
| 1150 | ⟨BaseContextAssembly.nativeStrip_radius nominal standardRegion hx, |
| 1151 | BaseContextAssembly.nativeStrip_time nominal standardRegion hx⟩ i |
| 1152 | |
| 1153 | end Residual |
| 1154 | |
| 1155 | end NavierStokes.ActualPrimaryDynamics |