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.ActualParticularStageControls |
| 2 | import NavierStokes.ActualSignedDynamics |
| 3 | import NavierStokes.ClosedNativeWaveIdentities |
| 4 | import NavierStokes.ModeSolenoidalReindex |
| 5 | |
| 6 | /-! |
| 7 | # Exact dynamics of the actual particular correction |
| 8 | |
| 9 | The current harmonic residual is solved on the common cover. Geometry and |
| 10 | carrier identities are proved for the actual selected primary labels; |
| 11 | quantitative controls are supplied by `ActualParticularStageControls`. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.ActualParticularDynamics |
| 17 | |
| 18 | open Set Function Filter HarmonicCalculus |
| 19 | open CorrectionInitialization CorrectionState CorrectionStep |
| 20 | open ActualParticularStageControls CommonCoverSolve TorusInverse ParticularWaveBounds ParticularWaveAssembly |
| 21 | open scoped ContDiff Topology InnerProductSpace BigOperators |
| 22 | |
| 23 | |
| 24 | variable {B N0 : ℕ} |
| 25 | |
| 26 | noncomputable def primaryCarrier (l : Label B N0) : HarmonicBlock CyclePoint := |
| 27 | (ActualPrimary.piece ActualPrimary.standardRegion l.1 l.2).tangentBlock |
| 28 | (fun n x => (ActualPrimary.chartCoefficients l.1 l.2).phase n (x,0)) |
| 29 | (fun _ => PrimaryGeometryAssembly.angularMode ActualPrimary.certificate |
| 30 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared l.1 l.2) |
| 31 | |
| 32 | abbrev PreservesCarriers (x : CycleState (Label B N0)) : Prop := |
| 33 | ∀ l, SameCarrier (x.coefficients.blocks l) (primaryCarrier l) |
| 34 | |
| 35 | theorem carrier_frequency {x : CycleState (Label B N0)} (H : PreservesCarriers x) |
| 36 | (l : Label B N0) (n : ℕ) : |
| 37 | (x.coefficients.blocks l).frequency n = ChartScales.carrier ActualPrimary.h n := |
| 38 | (congrFun (H l).frequency n).symm |
| 39 | |
| 40 | @[simp] theorem nativeToFull_apply (z : Native) : |
| 41 | nativeToFull z = ((z.1.1.1,(z.1.1.2,z.2)),z.1.2) := rfl |
| 42 | |
| 43 | noncomputable def referencePoint (l : Label B N0) (n : ℕ) (k : Frequency) |
| 44 | (z : Native) : ActualSignedGeometry.Native := |
| 45 | (ActualSignedGeometry.swapParameter |
| 46 | (PhysicalParticularWave.parameterChange ActualPrimary.h (ChartScales.Q n) |
| 47 | (ChartScales.Q (BaseChartJets.cellBand l.2)) z.1.1), |
| 48 | (reference l).geometry.coordinates k (coverPower (gap l n) z.2)) |
| 49 | |
| 50 | theorem referencePoint_eq_copy (l : Label B N0) (n : ℕ) (k : Frequency) |
| 51 | (hi : CommonWindow.index ActualPrimary.h n ≤ |
| 52 | ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) (z : Native) : |
| 53 | referencePoint l n k z = |
| 54 | ActualPrimaryDynamics.copyPoint l.1 l.2 n k (nativeToFull z) := by |
| 55 | apply Prod.ext |
| 56 | · ext <;> |
| 57 | simp [referencePoint, PhysicalParticularWave.parameterChange, |
| 58 | PhysicalParticularWave.ratioPower, ActualSignedGeometry.swapParameter, |
| 59 | ActualPrimaryDynamics.copyPoint, ActualPrimary.nativeSlow, |
| 60 | ActualPrimary.toAbsolute, Real.sqrt_eq_rpow, nativeToFull_apply] <;> ring |
| 61 | · change (referenceGeometry l).coordinates k (coverPower (gap l n) z.2) = _ |
| 62 | have he : CopySolveCompatibility.refineGeometry (referenceGeometry l) (gap l n) = |
| 63 | ActualPrimary.chartGeometry n l.1 l.2 := by |
| 64 | simp only [CopySolveCompatibility.refineGeometry, referenceGeometry, |
| 65 | ActualSignedGeometry.slotGeometry, CommonCoverClass.bandGeometry, |
| 66 | Nat.zero_add, ActualPrimary.chartGeometry, ActualPrimary.geometry, spatialLabel, gap] |
| 67 | rfl |
| 68 | rw [← CopySolveCompatibility.coordinates_refine, he] |
| 69 | exact (ActualPrimary.chartGeometry_coordinates n l.1 l.2 hi k z.2).symm |
| 70 | |
| 71 | theorem normalWeight_eq (l : Label B N0) (n : ℕ) (j : ℤ) (hj : j ≠ 0) : |
| 72 | PhysicalParticularWave.normalWeight (ChartScales.Q n) |
| 73 | (ChartScales.Q (BaseChartJets.cellBand l.2)) |
| 74 | ((j:ℝ)*ChartScales.carrier ActualPrimary.h n) |
| 75 | ((j:ℝ)*ChartScales.carrier ActualPrimary.h (BaseChartJets.cellBand l.2)) = |
| 76 | ActualPrimaryDynamics.normalScale l.2 n := by |
| 77 | rw [ScaledActualParticularControl.normalWeight_harmonic _ _ _ _ j hj] |
| 78 | simp only [PhysicalParticularWave.normalWeight, ActualPrimaryDynamics.normalScale, |
| 79 | ActualPrimaryDynamics.radialScale_eq] |
| 80 | |
| 81 | noncomputable def data (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) := |
| 82 | (parameters x l).copyData (assembly x l).context (assembly x l).state |
| 83 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput j |
| 84 | |
| 85 | theorem data_phase {x : CycleState (Label B N0)} (H : PreservesCarriers x) |
| 86 | (l : Label B N0) (j : ℤ) : |
| 87 | (data x l j).background.phase = (background l).phase := by |
| 88 | funext n z |
| 89 | change (x.coefficients.blocks l).phase n (cycleAssoc.symm (z.1.1,z.2)) + |
| 90 | ((x.coefficients.blocks l).angularFrequency n : ℝ) / |
| 91 | (x.coefficients.blocks l).frequency n * z.1.2 = _ |
| 92 | rw [← (H l).phase, ← (H l).angular, ← (H l).frequency] |
| 93 | change (ActualPrimary.chartCoefficients l.1 l.2).phase n |
| 94 | ((z.1.1.1,(z.1.1.2,z.2)),0) + |
| 95 | (PrimaryGeometryAssembly.angularMode ActualPrimary.certificate |
| 96 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared l.1 l.2 : ℝ) / |
| 97 | (ChartScales.carrier ActualPrimary.h n : ℝ) * z.1.2 = |
| 98 | (ActualPrimary.chartCoefficients l.1 l.2).phase n (nativeToFull z) |
| 99 | simp only [ActualPrimary.chartCoefficients, ActualPrimary.absolutePhase, |
| 100 | nativeToFull_apply, mul_zero, zero_add] |
| 101 | ring |
| 102 | |
| 103 | theorem data_frequency {x : CycleState (Label B N0)} (H : PreservesCarriers x) |
| 104 | (l : Label B N0) (j : ℤ) (n : ℕ) : |
| 105 | (data x l j).background.frequency n = (j:ℝ)*ChartScales.carrier ActualPrimary.h n := by |
| 106 | change (j:ℝ)*(x.coefficients.blocks l).frequency n = _ |
| 107 | rw [carrier_frequency H] |
| 108 | |
| 109 | theorem native_strip_eq : |
| 110 | ParticularParameters.nativeStrip (associatedStrip) = |
| 111 | ParticularWaveBounds.reindexStrip nativeToFull |
| 112 | (HarmonicWaveInteraction.productStrip |
| 113 | (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion)) := rfl |
| 114 | |
| 115 | theorem background_normal (l : Label B N0) (n : ℕ) {z : Native} |
| 116 | (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) : |
| 117 | (background l).normal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z = |
| 118 | (ActualPrimary.chartCoefficients l.1 l.2).normal |
| 119 | (HarmonicWaveInteraction.productStrip |
| 120 | (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion)) |
| 121 | (PrimaryResidualClass.directions (ActualPrimary.commonContext B)) n (nativeToFull z) := by |
| 122 | have hΦ := ((ActualPrimaryCoherence.chart_phase_smooth l.1 l.2 n).contDiffAt |
| 123 | (ActualPrimaryCoherence.positiveRadialChart_open.mem_nhds |
| 124 | (show nativeToFull z ∈ ActualPrimaryCoherence.positiveRadialChart from ⟨hR,hT⟩))).differentiableAt (by simp) |
| 125 | rw [native_strip_eq] |
| 126 | have he := ParticularWaveBounds.phaseNormal_reindex nativeToFull |
| 127 | ((ActualPrimary.chartCoefficients l.1 l.2).radius n) |
| 128 | ((PrimaryResidualClass.directions (ActualPrimary.commonContext B)).radialField n) |
| 129 | (fun _ => (PrimaryResidualClass.directions (ActualPrimary.commonContext B)).angular) |
| 130 | ((PrimaryResidualClass.directions (ActualPrimary.commonContext B)).axialField |
| 131 | (HarmonicWaveInteraction.productStrip |
| 132 | (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion)) n) hΦ |
| 133 | simp only [background, directions, LinearWaveBounds.WaveCoefficients.normal, |
| 134 | ParticularWaveBounds.reindexCoefficients, ParticularWaveBounds.reindex_radialField, |
| 135 | ParticularWaveBounds.reindex_axialField] at he ⊢ |
| 136 | exact he |
| 137 | |
| 138 | theorem data_normal {x : CycleState (Label B N0)} (H : PreservesCarriers x) |
| 139 | (l : Label B N0) (j : ℤ) (n : ℕ) (z : Native) : |
| 140 | (data x l j).background.normal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z = |
| 141 | (background l).normal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z := by |
| 142 | unfold LinearWaveBounds.WaveCoefficients.normal |
| 143 | rw [data_phase H] |
| 144 | rfl |
| 145 | |
| 146 | theorem tangent_normal {x : CycleState (Label B N0)} |
| 147 | (hfrequency : ∀ l n, (x.coefficients.blocks l).frequency n = ChartScales.carrier ActualPrimary.h n) |
| 148 | (l : Label B N0) (j : ℤ) (hj : j ≠ 0) (n : ℕ) (k : Frequency) (z : Native) : |
| 149 | ((parameters x l).nativeTangent j n).normal |
| 150 | (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k z) = |
| 151 | ActualPrimaryDynamics.normalScale l.2 n • |
| 152 | ((ActualPrimary.phases B N0 l.1).frame l.2).normal |
| 153 | ((referencePoint l n k z).1, (referencePoint l n k z).2.2) := by |
| 154 | change PhysicalParticularWave.normalWeight (ChartScales.Q n) |
| 155 | (ChartScales.Q (BaseChartJets.cellBand l.2)) |
| 156 | ((j:ℝ)*(x.coefficients.blocks l).frequency n) |
| 157 | ((j:ℝ)*(x.coefficients.blocks l).frequency (BaseChartJets.cellBand l.2)) • |
| 158 | ((ActualPrimary.phases B N0 l.1).frame l.2).normal |
| 159 | ((referencePoint l n k z).1, |
| 160 | (CopySolveCompatibility.nativeTimeMap 0 |
| 161 | (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) |
| 162 | (ChartScales.Q (BaseChartJets.cellBand l.2))) |
| 163 | (((parameters x l).geometry n).coordinates k z.2)).2) = _ |
| 164 | rw [hfrequency, hfrequency, normalWeight_eq l n j hj] |
| 165 | apply congrArg (fun v => ActualPrimaryDynamics.normalScale l.2 n • |
| 166 | ((ActualPrimary.phases B N0 l.1).frame l.2).normal ((referencePoint l n k z).1, v)) |
| 167 | exact congrArg Prod.snd (ScaledTangentTransport.coordinates_transport |
| 168 | (reference l).geometry (gap l n) 0 _ _ k z.2) |
| 169 | |
| 170 | theorem native_normal_match {x : CycleState (Label B N0)} (H : PreservesCarriers x) |
| 171 | (l : Label B N0) (j : ℤ) (hj : j ≠ 0) (n : ℕ) (k : Frequency) {z : Native} |
| 172 | (hi : CommonWindow.index ActualPrimary.h n ≤ |
| 173 | ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) |
| 174 | (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) |
| 175 | (hp : (referencePoint l n k z).1 ∈ |
| 176 | (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2) |
| 177 | (ht : (referencePoint l n k z).2.2 ∈ Icc 0 ((ActualPrimary.phases B N0 l.1).L l.2)) |
| 178 | (hc : (referencePoint l n k z).2 ∈ (ActualPrimary.clockWindow l.2).core) : |
| 179 | (data x l j).background.normal (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n z = |
| 180 | ((parameters x l).nativeTangent j n).normal |
| 181 | (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k z) := by |
| 182 | rw [data_normal H, background_normal l n hR hT, |
| 183 | tangent_normal (carrier_frequency H) l j hj] |
| 184 | have he := referencePoint_eq_copy l n k hi z |
| 185 | rw [he] at hp ht hc ⊢ |
| 186 | rw [ActualPrimaryDynamics.normal_eq_copy l.1 l.2 n ActualPrimary.standardRegion k hR hT hc] |
| 187 | congr 1 |
| 188 | exact (ActualPrimaryDynamics.frame_normal (ActualPrimary.phases B N0 l.1) l.2 |
| 189 | ⟨hp,(ActualPrimary.phases B N0 l.1).interval l.2 ht⟩).symm |
| 190 | |
| 191 | theorem transported_coordinates (x : CycleState (Label B N0)) |
| 192 | (l : Label B N0) (n : ℕ) (k : Frequency) (z : Native) : |
| 193 | CopySolveCompatibility.nativeTimeMap 0 |
| 194 | (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) |
| 195 | (ChartScales.Q (BaseChartJets.cellBand l.2))) |
| 196 | (((parameters x l).geometry n).coordinates k z.2) = (referencePoint l n k z).2 := |
| 197 | ScaledTangentTransport.coordinates_transport (reference l).geometry (gap l n) 0 _ _ k z.2 |
| 198 | |
| 199 | theorem tangent_action (x : CycleState (Label B N0)) |
| 200 | (l : Label B N0) (j : ℤ) (n : ℕ) (k : Frequency) (z : Native) : |
| 201 | ((parameters x l).nativeTangent j n).action |
| 202 | (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k z) = |
| 203 | ActualPrimaryDynamics.clockScale l.2 n • PrimaryCopyBridge.baseOperator |
| 204 | ((ActualPrimary.phases B N0 l.1).phase.F l.2 (referencePoint l n k z).1) |
| 205 | ((ActualPrimary.phases B N0 l.1).phase.shear l.2 |
| 206 | ((referencePoint l n k z).1,(referencePoint l n k z).2.2)) := by |
| 207 | change PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) |
| 208 | (ChartScales.Q (BaseChartJets.cellBand l.2)) • |
| 209 | PrimaryCopyBridge.baseOperator |
| 210 | ((ActualPrimary.phases B N0 l.1).phase.F l.2 (referencePoint l n k z).1) |
| 211 | ((ActualPrimary.phases B N0 l.1).phase.shear l.2 |
| 212 | ((referencePoint l n k z).1, |
| 213 | (CopySolveCompatibility.nativeTimeMap 0 |
| 214 | (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) |
| 215 | (ChartScales.Q (BaseChartJets.cellBand l.2))) |
| 216 | (((parameters x l).geometry n).coordinates k z.2)).2)) = _ |
| 217 | rw [transported_coordinates, ← ActualPrimaryDynamics.clockScale_eq] |
| 218 | |
| 219 | theorem tangent_damping (x : CycleState (Label B N0)) |
| 220 | (l : Label B N0) (j : ℤ) (n : ℕ) (k : Frequency) (z : Native) : |
| 221 | ((parameters x l).nativeTangent j n).damping |
| 222 | (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k z) = |
| 223 | ActualPrimaryDynamics.clockScale l.2 n * ((j:ℝ)^2 * |
| 224 | (ChartScales.epsilon ActualPrimary.h (BaseChartJets.cellBand l.2) * |
| 225 | (ChartScales.carrier ActualPrimary.h (BaseChartJets.cellBand l.2) : ℝ)^2 * |
| 226 | ‖(ActualPrimary.phases B N0 l.1).phase.normal l.2 |
| 227 | ((referencePoint l n k z).1,(referencePoint l n k z).2.2)‖^2)) := by |
| 228 | change PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) |
| 229 | (ChartScales.Q (BaseChartJets.cellBand l.2)) * ((j:ℝ)^2 * |
| 230 | ((ActualPrimary.phases B N0 l.1).frame l.2).viscosity |
| 231 | ((referencePoint l n k z).1, |
| 232 | (CopySolveCompatibility.nativeTimeMap 0 |
| 233 | (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) |
| 234 | (ChartScales.Q (BaseChartJets.cellBand l.2))) |
| 235 | (((parameters x l).geometry n).coordinates k z.2)).2)) = _ |
| 236 | rw [transported_coordinates, ← ActualPrimaryDynamics.clockScale_eq] |
| 237 | rfl |
| 238 | |
| 239 | theorem native_damping_match {x : CycleState (Label B N0)} (H : PreservesCarriers x) |
| 240 | (l : Label B N0) (j : ℤ) (n : ℕ) (k : Frequency) {z : Native} |
| 241 | (hi : CommonWindow.index ActualPrimary.h n ≤ |
| 242 | ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) |
| 243 | (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) |
| 244 | (hc : (referencePoint l n k z).2 ∈ (ActualPrimary.clockWindow l.2).core) : |
| 245 | ((parameters x l).nativeTangent j n).damping |
| 246 | (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k z) = |
| 247 | (ParticularParameters.nativeStrip associatedStrip).epsilon n * |
| 248 | (data x l j).background.frequency n ^ 2 * |
| 249 | ‖(data x l j).background.normal (ParticularParameters.nativeStrip associatedStrip) |
| 250 | (directions (B := B)) n z‖ ^ 2 := by |
| 251 | rw [tangent_damping, data_normal H, background_normal l n hR hT, data_frequency H] |
| 252 | rw [referencePoint_eq_copy l n k hi z] at hc ⊢ |
| 253 | rw [ActualPrimaryDynamics.normal_eq_copy l.1 l.2 n ActualPrimary.standardRegion k hR hT hc] |
| 254 | change _ = ChartScales.epsilon ActualPrimary.h n * _ ^ 2 * _ |
| 255 | rw [mul_pow] |
| 256 | calc |
| 257 | _ = (j:ℝ)^2 * (ActualPrimaryDynamics.clockScale l.2 n * |
| 258 | (ChartScales.epsilon ActualPrimary.h (BaseChartJets.cellBand l.2) * |
| 259 | (ChartScales.carrier ActualPrimary.h (BaseChartJets.cellBand l.2) : ℝ)^2 * |
| 260 | ‖(ActualPrimary.phases B N0 l.1).phase.normal l.2 |
| 261 | (ActualPrimary.phasePoint l.2 |
| 262 | (ActualPrimaryDynamics.copyPoint l.1 l.2 n k (nativeToFull z)))‖^2)) := by simp only [ActualPrimary.phasePoint]; ring |
| 263 | _ = _ := by rw [← ActualPrimaryDynamics.damping_scale]; ring |
| 264 | |
| 265 | theorem reference_slotDirection (l : Label B N0) : |
| 266 | ParticularWaveBounds.slotDirection (reference l).geometry = |
| 267 | ChartScales.timeCoefficient ActualPrimary.h (BaseChartJets.cellBand l.2) • |
| 268 | ActualPrimary.temporalVector := by |
| 269 | change (ActualSignedGeometry.slotGeometry ActualPrimary.slots ActualPrimary.vectors_det |
| 270 | (spatialLabel l) 0).basis (0,1) = _ |
| 271 | have he := ActualSignedGeometry.slotGeometry_basis ActualPrimary.slots ActualPrimary.vectors_det |
| 272 | (spatialLabel l) 0 (0,1) |
| 273 | simp only [zero_smul, zero_add, mul_one] at he |
| 274 | exact he |
| 275 | |
| 276 | theorem native_fast (x : CycleState (Label B N0)) (l : Label B N0) (n : ℕ) |
| 277 | (hi : CommonWindow.index ActualPrimary.h n ≤ |
| 278 | ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) : |
| 279 | (directions (B := B)).fastScale n • (directions (B := B)).fast = |
| 280 | ((0 : Parameter × ℝ), ParticularWaveBounds.slotDirection ((parameters x l).geometry n)) := by |
| 281 | have hs : ParticularWaveBounds.slotDirection ((parameters x l).geometry n) = |
| 282 | CommonBaseContext.fastCoefficient ActualPrimary.h (CommonWindow.index ActualPrimary.h) n • |
| 283 | ActualPrimary.temporalVector := by |
| 284 | apply (coverPower (gap l n)).injective |
| 285 | change coverPower (gap l n) |
| 286 | (ParticularWaveBounds.slotDirection |
| 287 | (CopySolveCompatibility.transportGeometry (reference l).geometry (gap l n) 0 _ _)) = _ |
| 288 | conv_lhs => erw [ScaledTangentTransport.slotDirection_transport] |
| 289 | rw [reference_slotDirection, map_smul, |
| 290 | show coverPower (gap l n) ActualPrimary.temporalVector = |
| 291 | ChartScales.Tg ^ gap l n • ActualPrimary.temporalVector from |
| 292 | CommonBaseContext.coverPower_temporal _, smul_smul, smul_smul] |
| 293 | change (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) |
| 294 | (ChartScales.Q (BaseChartJets.cellBand l.2)) * |
| 295 | ChartScales.timeCoefficient ActualPrimary.h (BaseChartJets.cellBand l.2)) • |
| 296 | ActualPrimary.temporalVector = _ |
| 297 | congr 1 |
| 298 | rw [← ActualPrimaryDynamics.clockScale_eq] |
| 299 | unfold CommonBaseContext.fastCoefficient ChartScales.timeCoefficient ActualPrimaryDynamics.clockScale |
| 300 | have he : CommonWindow.index ActualPrimary.h n + gap l n = |
| 301 | ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2) := Nat.add_sub_of_le hi |
| 302 | rw [← he, pow_add] |
| 303 | field_simp [(Real.rpow_pos_of_pos (ChartScales.Q_pos (BaseChartJets.cellBand l.2)) |
| 304 | (1+ActualPrimary.h)).ne'] |
| 305 | rw [hs] |
| 306 | change CommonBaseContext.fastCoefficient ActualPrimary.h (CommonWindow.index ActualPrimary.h) n • |
| 307 | ((0 : Parameter × ℝ), ActualPrimary.temporalVector) = _ |
| 308 | simp only [Prod.smul_mk, smul_zero] |
| 309 | |
| 310 | theorem native_action_match (x : CycleState (Label B N0)) (l : Label B N0) |
| 311 | (j : ℤ) (n : ℕ) (k : Frequency) {z : Native} |
| 312 | (hi : CommonWindow.index ActualPrimary.h n ≤ |
| 313 | ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) |
| 314 | (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) (v : ProblemStatement.Space) : |
| 315 | CurlClassBounds.complexify (((parameters x l).nativeTangent j n).action |
| 316 | (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k z) v) = |
| 317 | LinearWaveResidual.shear ((data x l j).background.radius n) |
| 318 | ((data x l j).background.frequencyBase n) ((data x l j).background.axialBase n) |
| 319 | ((directions (B := B)).radialField n) (fun _ => CurlClassBounds.complexify v) z := by |
| 320 | let q := nativeToFull z |
| 321 | let a := ActualPrimary.chartCoefficients l.1 l.2 |
| 322 | let d := PrimaryResidualClass.directions (ActualPrimary.commonContext B) |
| 323 | have hfg := ActualPrimaryDynamics.frequency_germ l.1 l.2 n k (x := q) hR hT |
| 324 | have hgg := ActualPrimaryDynamics.axial_germ l.1 l.2 n k (x := q) hT |
| 325 | obtain ⟨hFr,hGr⟩ := ActualPrimaryDynamics.native_base_differentiable l.1 l.2 n k (x := q) hR hT |
| 326 | have hF : DifferentiableAt ℝ (a.frequencyBase n) q := |
| 327 | ((hFr.comp q (ActualPrimaryDynamics.copyPoint_hasFDerivAt l.1 l.2 n k q).fst.differentiableAt).const_mul |
| 328 | (ActualPrimaryDynamics.clockScale l.2 n)).congr_of_eventuallyEq hfg |
| 329 | have hG : DifferentiableAt ℝ (a.axialBase n) q := |
| 330 | ((hGr.comp q (ActualPrimaryDynamics.copyPoint_hasFDerivAt l.1 l.2 n k q).fst.differentiableAt).const_mul |
| 331 | (ActualPrimaryDynamics.velocityScale l.2 n)).congr_of_eventuallyEq hgg |
| 332 | have hr : LinearWaveResidual.shear ((data x l j).background.radius n) |
| 333 | ((data x l j).background.frequencyBase n) ((data x l j).background.axialBase n) |
| 334 | ((directions (B := B)).radialField n) (fun _ => CurlClassBounds.complexify v) z = |
| 335 | LinearWaveResidual.shear (a.radius n) (a.frequencyBase n) (a.axialBase n) |
| 336 | (d.radialField n) (fun _ => CurlClassBounds.complexify v) q := by |
| 337 | change LinearWaveResidual.shear (fun y => a.radius n (nativeToFull y)) |
| 338 | (fun y => a.frequencyBase n (nativeToFull y)) (fun y => a.axialBase n (nativeToFull y)) |
| 339 | ((ParticularWaveBounds.reindexDirections nativeToFull d).radialField n) |
| 340 | (fun _ => CurlClassBounds.complexify v) z = _ |
| 341 | rw [ParticularWaveBounds.reindex_radialField] |
| 342 | simp only [LinearWaveResidual.shear, ParticularWaveBounds.along_reindex nativeToFull _ hF, |
| 343 | ParticularWaveBounds.along_reindex nativeToFull _ hG, q] |
| 344 | rw [hr, tangent_action, referencePoint_eq_copy l n k hi z] |
| 345 | have hs := ActualPrimaryDynamics.copy_shear_function l.1 l.2 n k (fun _ => v) (x := q) hR hT |
| 346 | rw [SignedWaveUpdate.shear_smul] at hs |
| 347 | apply smul_right_injective _ (ActualPrimaryDynamics.velocityScale_pos l.2 n).ne' |
| 348 | simpa only [_root_.smul_apply, map_smul, smul_smul, mul_comm, |
| 349 | ActualPrimary.phasePoint, q, a, d] using hs.symm |
| 350 | |
| 351 | theorem referencePoint_contDiff (l : Label B N0) (n : ℕ) (k : Frequency) |
| 352 | (hi : CommonWindow.index ActualPrimary.h n ≤ |
| 353 | ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) : |
| 354 | ContDiff ℝ ∞ (referencePoint l n k) := by |
| 355 | have he : referencePoint l n k = |
| 356 | fun z => ActualPrimaryDynamics.copyPoint l.1 l.2 n k (nativeToFull z) := |
| 357 | funext (referencePoint_eq_copy l n k hi) |
| 358 | rw [he] |
| 359 | exact (ActualPrimaryDynamics.copyPoint_smooth l.1 l.2 n k).comp nativeToFull.contDiff |
| 360 | |
| 361 | /-- The copied normal equality is a true germ, including on the closed |
| 362 | transverse core boundary. Only slot time and the slow carrier are open. -/ |
| 363 | theorem native_normal_germ {x : CycleState (Label B N0)} (H : PreservesCarriers x) |
| 364 | (l : Label B N0) (j : ℤ) (hj : j ≠ 0) (n : ℕ) (k : Frequency) {z : Native} |
| 365 | (hi : CommonWindow.index ActualPrimary.h n ≤ |
| 366 | ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) |
| 367 | (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) |
| 368 | (hp : (referencePoint l n k z).1 ∈ |
| 369 | (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2) |
| 370 | (ht : (referencePoint l n k z).2.2 ∈ Ioo 0 ((ActualPrimary.phases B N0 l.1).L l.2)) |
| 371 | (hc : (referencePoint l n k z).2 ∈ (ActualPrimary.clockWindow l.2).core) : |
| 372 | (data x l j).background.normal (ParticularParameters.nativeStrip associatedStrip) |
| 373 | (directions (B := B)) n =ᶠ[𝓝 z] |
| 374 | fun y => ((parameters x l).nativeTangent j n).normal |
| 375 | (ParticularWaveBounds.nativePoint ((parameters x l).geometry n) k y) := by |
| 376 | have hc' := hc |
| 377 | rw [referencePoint_eq_copy l n k hi z] at hc' |
| 378 | have hn := nativeToFull.continuous.continuousAt.eventually |
| 379 | (ActualSignedDynamics.normal_eq_copy_germ l.1 l.2 n ActualPrimary.standardRegion k hR hT hc') |
| 380 | have hp' := (referencePoint_contDiff l n k hi).continuous.fst.continuousAt.eventually |
| 381 | ((PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).isOpen l.2 |
| 382 | |>.mem_nhds hp) |
| 383 | have ht' := (referencePoint_contDiff l n k hi).continuous.snd.snd.continuousAt.eventually |
| 384 | (isOpen_Ioo.mem_nhds ht) |
| 385 | filter_upwards [hn, hp', ht', |
| 386 | (isOpen_lt continuous_const continuous_fst.fst.fst).mem_nhds hR, |
| 387 | (isOpen_lt continuous_const continuous_fst.fst.snd.fst).mem_nhds hT] with y hny hpy hty hRy hTy |
| 388 | rw [data_normal H, background_normal l n hRy hTy, hny, |
| 389 | tangent_normal (carrier_frequency H) l j hj, |
| 390 | ← referencePoint_eq_copy l n k hi y] |
| 391 | congr 1 |
| 392 | have hf := ActualPrimaryDynamics.frame_normal (ActualPrimary.phases B N0 l.1) l.2 |
| 393 | (z := ((referencePoint l n k y).1,(referencePoint l n k y).2.2)) |
| 394 | ⟨hpy,(ActualPrimary.phases B N0 l.1).interval l.2 ⟨hty.1.le,hty.2.le⟩⟩ |
| 395 | simpa only [ActualPrimary.phasePoint] using hf.symm |
| 396 | |
| 397 | section ModalTangency |
| 398 | |
| 399 | variable {P : Type} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 400 | {s : WeightedClasses.StripData (P × TorusInverse.Plane)} {α : ℝ} |
| 401 | {ds : LinearWaveBounds.GraphDirections (P × TorusInverse.Plane)} |
| 402 | {frame : ℕ → PrimaryODE.FrameData (P × ℝ)} |
| 403 | {t : ℕ → TangentData P ProblemStatement.Space} |
| 404 | {source : ℕ → P × TorusInverse.Plane → ComplexVector} {j : ℤ} |
| 405 | {g : ℕ → Geometry} {len : ℕ → ℝ} {envelope : ℕ → ℝ → ℝ} |
| 406 | {C : ℕ → Frequency → Set (P × TorusInverse.Plane)} |
| 407 | |
| 408 | /-- The actual modal reconstruction is tangent throughout a neighborhood |
| 409 | of a closed-cell point. The normal match is a primitive geometric germ; |
| 410 | the tangency of both solved components follows from the modal bridges. -/ |
| 411 | theorem complexCopy_tangent_germ |
| 412 | (a : LinearWaveBounds.WaveCoefficients (P × TorusInverse.Plane)) (hL : ∀ n, 0 < len n) |
| 413 | (hr : ParticularCopyBounds.ModalControl s α frame |
| 414 | (fun n => ParticularWaveBounds.realData (t n) (source n)) j g len envelope C) |
| 415 | (hi : ParticularCopyBounds.ModalControl s α frame |
| 416 | (fun n => ParticularWaveBounds.imagData (t n) (source n)) j g len envelope C) |
| 417 | (n : ℕ) (k : Frequency) {z : P × TorusInverse.Plane} (hz : z ∈ s.domain) (hC : z ∈ C n k) |
| 418 | (hN : a.normal s ds n =ᶠ[𝓝 z] |
| 419 | fun y => (t n).normal (ParticularWaveBounds.nativePoint (g n) k y)) : |
| 420 | (fun y => normalDot (a.normal s ds n y) |
| 421 | ((ParticularWaveBounds.complexCopyCoefficients a t source g (fun _ => k) len hL).amplitude n y)) |
| 422 | =ᶠ[𝓝 z] fun _ => 0 := by |
| 423 | filter_upwards [hN, |
| 424 | (hr.open_neighborhood n k).mem_nhds (hr.contains n k z hz hC), |
| 425 | (hi.open_neighborhood n k).mem_nhds (hi.contains n k z hz hC)] with y hy hyr hyi |
| 426 | have htR := ParticularWaveBounds.copyVelocity_tangent_of_modal (frame n) |
| 427 | (ParticularWaveBounds.realData (t n) (source n)) j (g n) k (hL n).le (hr.bridge n k) hyr |
| 428 | ⟨(hr.current_slot n k y hyr).1.le,(hr.current_slot n k y hyr).2.le⟩ |
| 429 | have htI := ParticularWaveBounds.copyVelocity_tangent_of_modal (frame n) |
| 430 | (ParticularWaveBounds.imagData (t n) (source n)) j (g n) k (hL n).le (hi.bridge n k) hyi |
| 431 | ⟨(hi.current_slot n k y hyi).1.le,(hi.current_slot n k y hyi).2.le⟩ |
| 432 | rw [hy] |
| 433 | change normalDot ((t n).normal (ParticularWaveBounds.nativePoint (g n) k y)) |
| 434 | (ParticularWaveBounds.copyVelocity (ParticularWaveBounds.realData (t n) (source n)) (g n) (hL n).le k y + |
| 435 | Complex.I • ParticularWaveBounds.copyVelocity |
| 436 | (ParticularWaveBounds.imagData (t n) (source n)) (g n) (hL n).le k y) = 0 |
| 437 | have hadd (N : ProblemStatement.Space) (u v : ComplexVector) : |
| 438 | normalDot N (u + Complex.I • v) = normalDot N u + Complex.I * normalDot N v := by |
| 439 | simp only [normalDot, Pi.add_apply, Pi.smul_apply, smul_eq_mul] |
| 440 | ring |
| 441 | change normalDot ((t n).normal (ParticularWaveBounds.nativePoint (g n) k y)) |
| 442 | (ParticularWaveBounds.copyVelocity (ParticularWaveBounds.realData (t n) (source n)) (g n) (hL n).le k y) = 0 at htR |
| 443 | change normalDot ((t n).normal (ParticularWaveBounds.nativePoint (g n) k y)) |
| 444 | (ParticularWaveBounds.copyVelocity (ParticularWaveBounds.imagData (t n) (source n)) (g n) (hL n).le k y) = 0 at htI |
| 445 | rw [hadd,htR,htI,mul_zero,add_zero] |
| 446 | |
| 447 | end ModalTangency |
| 448 | |
| 449 | section ReindexGeometry |
| 450 | |
| 451 | variable {E F : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 452 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 453 | |
| 454 | theorem reindex_vector_derivative (e : E ≃ₗᵢ[ℝ] F) {V : F → F} {z : E} |
| 455 | (hV : DifferentiableAt ℝ V (e z)) (w : F) : |
| 456 | fderiv ℝ (ParticularWaveBounds.reindexVector e V) z (e.symm w) = |
| 457 | e.symm (fderiv ℝ V (e z) w) := by |
| 458 | have hd := e.symm.toContinuousLinearEquiv.hasFDerivAt.comp z |
| 459 | (hV.hasFDerivAt.comp z e.toContinuousLinearEquiv.hasFDerivAt) |
| 460 | change fderiv ℝ (e.symm.toContinuousLinearEquiv ∘ V ∘ e) z (e.symm w) = _ |
| 461 | rw [hd.fderiv] |
| 462 | simp |
| 463 | |
| 464 | theorem geometryAt_reindex (e : E ≃ₗᵢ[ℝ] F) {R : F → ℝ} {Vr Vθ Vz : F → F} {z : E} |
| 465 | (G : ClosedNativeWaveIdentities.GeometryAt R Vr Vθ Vz (e z)) : |
| 466 | ClosedNativeWaveIdentities.GeometryAt (fun y => R (e y)) |
| 467 | (ParticularWaveBounds.reindexVector e Vr) (ParticularWaveBounds.reindexVector e Vθ) |
| 468 | (ParticularWaveBounds.reindexVector e Vz) z := by |
| 469 | have smooth (V : F → F) (hV : ContDiffAt ℝ ∞ V (e z)) : |
| 470 | ContDiffAt ℝ ∞ (ParticularWaveBounds.reindexVector e V) z := |
| 471 | e.symm.contDiff.contDiffAt.comp z (hV.comp z e.contDiff.contDiffAt) |
| 472 | refine ⟨G.radius_smooth.comp z e.contDiff.contDiffAt, G.radius_ne, |
| 473 | smooth Vr G.radial_smooth, smooth Vθ G.angular_smooth, smooth Vz G.axial_smooth, ?_, ?_, ?_, ?_, ?_, ?_⟩ |
| 474 | · rw [ParticularWaveBounds.along_reindex e _ (G.radius_smooth.differentiableAt (by simp))] |
| 475 | exact G.radial_radius |
| 476 | · rw [ParticularWaveBounds.along_reindex e _ (G.radius_smooth.differentiableAt (by simp))] |
| 477 | exact G.angular_radius |
| 478 | · rw [ParticularWaveBounds.along_reindex e _ (G.radius_smooth.differentiableAt (by simp))] |
| 479 | exact G.axial_radius |
| 480 | · simp only [ParticularWaveBounds.reindexVector, |
| 481 | reindex_vector_derivative e (G.radial_smooth.differentiableAt (by simp)), |
| 482 | reindex_vector_derivative e (G.angular_smooth.differentiableAt (by simp)), G.radial_angular] |
| 483 | · simp only [ParticularWaveBounds.reindexVector, |
| 484 | reindex_vector_derivative e (G.radial_smooth.differentiableAt (by simp)), |
| 485 | reindex_vector_derivative e (G.axial_smooth.differentiableAt (by simp)), G.radial_axial] |
| 486 | · simp only [ParticularWaveBounds.reindexVector, |
| 487 | reindex_vector_derivative e (G.angular_smooth.differentiableAt (by simp)), |
| 488 | reindex_vector_derivative e (G.axial_smooth.differentiableAt (by simp)), G.angular_axial] |
| 489 | |
| 490 | theorem geometryAt_of_cylindrical {Ω : Set F} {R : F → ℝ} {Vr Vθ Vz : F → F} {z : F} |
| 491 | (G : CurlClassBounds.CylindricalGeometry Ω R Vr Vθ Vz) (hz : z ∈ Ω) : |
| 492 | ClosedNativeWaveIdentities.GeometryAt R Vr Vθ Vz z := |
| 493 | ⟨G.radius_smooth.contDiffAt (G.isOpen.mem_nhds hz), G.radius_ne z hz, |
| 494 | G.radial_smooth.contDiffAt (G.isOpen.mem_nhds hz), |
| 495 | G.angular_smooth.contDiffAt (G.isOpen.mem_nhds hz), |
| 496 | G.axial_smooth.contDiffAt (G.isOpen.mem_nhds hz), |
| 497 | G.radial_radius z hz, G.angular_radius z hz, G.axial_radius z hz, |
| 498 | G.radial_angular z hz, G.radial_axial z hz, G.angular_axial z hz⟩ |
| 499 | |
| 500 | end ReindexGeometry |
| 501 | |
| 502 | theorem native_geometry (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) |
| 503 | (n : ℕ) {z : Native} (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) : |
| 504 | ClosedNativeWaveIdentities.GeometryAt ((data x l j).background.radius n) |
| 505 | ((directions (B := B)).radialField n) (fun _ => (directions (B := B)).angular) |
| 506 | ((directions (B := B)).axialField (ParticularParameters.nativeStrip associatedStrip) n) z := by |
| 507 | have G := geometryAt_of_cylindrical |
| 508 | (ActualPrimaryCoherence.piece_geometry ActualPrimary.standardRegion B n) |
| 509 | (show nativeToFull z ∈ ActualPrimaryCoherence.positiveRadialChart from ⟨hR,hT⟩) |
| 510 | have he := geometryAt_reindex nativeToFull G |
| 511 | rw [native_strip_eq] |
| 512 | simp only [directions, ParticularWaveBounds.reindex_radialField, |
| 513 | ParticularWaveBounds.reindex_axialField] at he ⊢ |
| 514 | exact he |
| 515 | |
| 516 | theorem invariant_native {E : Type} {f : ActualPrimary.FullPoint → E} |
| 517 | (hf : CopyAngularInvariance.Invariant ((0 : CyclePoint),1) f) : |
| 518 | CopyAngularInvariance.Invariant (directions (B := B)).angular (fun z => f (nativeToFull z)) := by |
| 519 | intro z t |
| 520 | have he : nativeToFull (z+t • (directions (B := B)).angular) = |
| 521 | nativeToFull z + t • ((0 : CyclePoint),1) := by |
| 522 | rw [map_add,map_smul] |
| 523 | rfl |
| 524 | change f (nativeToFull (z+t • (directions (B := B)).angular)) = f (nativeToFull z) |
| 525 | rw [he] |
| 526 | exact hf _ _ |
| 527 | |
| 528 | theorem native_angular (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) |
| 529 | (n : ℕ) (k : Frequency) : |
| 530 | ClosedNativeWaveIdentities.AngularData ((data x l j).raw k) |
| 531 | (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) |
| 532 | (fun m => (data x l j).cutoff m k) n := by |
| 533 | have hA := ActualPrimary.chartCoefficients_angular l.1 l.2 |
| 534 | refine ⟨invariant_native (B := B) (hA.radius n), |
| 535 | invariant_native (B := B) (hA.radialBase n), |
| 536 | invariant_native (B := B) (hA.frequencyBase n), |
| 537 | invariant_native (B := B) (hA.axialBase n), ?_, ?_, ?_, ?_, ?_⟩ |
| 538 | · have hi := (invariant_native (B := B) |
| 539 | (PrimaryResidualClass.directions_radial_invariant (ActualPrimary.commonContext B) n)).map |
| 540 | nativeToFull.symm |
| 541 | simp only [directions, ParticularWaveBounds.reindex_radialField] at hi ⊢ |
| 542 | exact hi |
| 543 | · exact ⟨_, ParticularWaveAssembly.actualCarrier_affine (parameters x l).background |
| 544 | (assembly x l).carrierBlock j n⟩ |
| 545 | · exact ParticularWaveAssembly.complexCopyVelocity_invariant |
| 546 | (ParticularWaveAssembly.angleTangent_invariant _) (ParticularWaveAssembly.angleLift_invariant _) |
| 547 | ((parameters x l).geometry n) ((parameters x l).length_pos n).le k |
| 548 | · exact ParticularWaveAssembly.complexCopyPressure_invariant |
| 549 | (ParticularWaveAssembly.angleTangent_invariant _) (ParticularWaveAssembly.angleLift_invariant _) |
| 550 | ((parameters x l).geometry n) ((parameters x l).length_pos n).le k _ |
| 551 | · exact CopyAngularInvariance.nativeCutoff_invariant ((0 : Parameter), (1 : ℝ)) |
| 552 | ((parameters x l).geometry n) ((parameters x l).cutoff n) k |
| 553 | |
| 554 | theorem associated_frame_match (l : Label B N0) : |
| 555 | WaveFrameMatch (associatedContext (B := B)) (HarmonicWaveInteraction.productStrip associatedStrip) |
| 556 | (ParticularWaveBounds.reindexDirections ParticularWaveAssembly.angleShuffle (directions (B := B))) |
| 557 | (ParticularWaveBounds.reindexCoefficients ParticularWaveAssembly.angleShuffle (background l)) := by |
| 558 | refine ⟨fun _ => rfl, fun _ => rfl, ?_, rfl, ?_, ?_, |
| 559 | fun _ _ => rfl, fun _ _ => rfl, fun _ _ => rfl⟩ |
| 560 | · intro n |
| 561 | exact PrimaryResidualClass.directions_radial (associatedContext (B := B)) n |
| 562 | · intro n |
| 563 | exact PrimaryResidualClass.directions_axial associatedStrip (associatedContext (B := B)) rfl n |
| 564 | · intro n |
| 565 | exact PrimaryResidualClass.directions_time associatedStrip (associatedContext (B := B)) rfl n |
| 566 | |
| 567 | theorem native_radialProfile_smoothAt {z : Native} (hR : 0 < z.1.1.1) : |
| 568 | ContDiffAt ℝ ∞ (directions (B := B)).radialProfile z := by |
| 569 | change ContDiffAt ℝ ∞ (fun y : Native => |
| 570 | ChartScales.radialExponent ActualPrimary.h * y.1.1.1 ^ (ChartScales.radialExponent ActualPrimary.h - 1)) z |
| 571 | exact contDiffAt_const.mul (contDiffAt_fst.fst.fst.rpow_const_of_ne hR.ne') |
| 572 | |
| 573 | theorem native_base_smoothAt (x : CycleState (Label B N0)) (l : Label B N0) |
| 574 | (j : ℤ) (n : ℕ) {z : Native} (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) : |
| 575 | ContDiffAt ℝ ∞ ((data x l j).background.radialBase n) z ∧ |
| 576 | ContDiffAt ℝ ∞ ((data x l j).background.frequencyBase n) z ∧ |
| 577 | ContDiffAt ℝ ∞ ((data x l j).background.axialBase n) z := by |
| 578 | let χ : Native → PhaseCalculus.Slow := fun y => (y.1.1.1,(y.1.1.2.2,y.1.1.2.1)) |
| 579 | have hχ : ContDiff ℝ ∞ χ := contDiff_fst.fst.fst.prodMk |
| 580 | (contDiff_fst.fst.snd.snd.prodMk contDiff_fst.fst.snd.fst) |
| 581 | refine ⟨?_,?_,?_⟩ |
| 582 | · exact (BaseContextAssembly.radialSlow_smoothAt ActualPrimary.certificate ActualPrimary.modulation |
| 583 | ActualPrimary.upper B n (p := χ z) hT).comp z hχ.contDiffAt |
| 584 | · exact (ActualPrimaryCoherence.frequencySlow_smoothAt B n (p := χ z) hR hT).comp z hχ.contDiffAt |
| 585 | · exact (ActualPrimaryCoherence.axialSlow_smoothAt B n (p := χ z) hT).comp z hχ.contDiffAt |
| 586 | |
| 587 | theorem data_phase_smoothAt {x : CycleState (Label B N0)} (H : PreservesCarriers x) |
| 588 | (l : Label B N0) (j : ℤ) (n : ℕ) {z : Native} |
| 589 | (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) : |
| 590 | ContDiffAt ℝ ∞ ((data x l j).background.phase n) z := by |
| 591 | rw [data_phase H] |
| 592 | exact ((ActualPrimaryCoherence.chart_phase_smooth l.1 l.2 n).contDiffAt |
| 593 | (ActualPrimaryCoherence.positiveRadialChart_open.mem_nhds |
| 594 | (show nativeToFull z ∈ ActualPrimaryCoherence.positiveRadialChart from ⟨hR,hT⟩))).comp z |
| 595 | nativeToFull.contDiff.contDiffAt |
| 596 | |
| 597 | theorem native_cutoff_smooth (x : CycleState (Label B N0)) (l : Label B N0) |
| 598 | (j : ℤ) (n : ℕ) (k : Frequency) : |
| 599 | ContDiff ℝ ∞ ((data x l j).cutoff n k) := by |
| 600 | let χ : Native → TorusInverse.Plane := fun z => CopySolveCompatibility.nativeTimeMap 0 |
| 601 | (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) |
| 602 | (ChartScales.Q (BaseChartJets.cellBand l.2))) |
| 603 | (((parameters x l).geometry n).coordinates k z.2) |
| 604 | have hχ : ContDiff ℝ ∞ χ := by |
| 605 | change ContDiff ℝ ∞ (fun z : Native => |
| 606 | ((((parameters x l).geometry n).coordinates k z.2).1, |
| 607 | 0 + PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) |
| 608 | (ChartScales.Q (BaseChartJets.cellBand l.2)) * |
| 609 | (((parameters x l).geometry n).coordinates k z.2).2)) |
| 610 | have hcoord : ContDiff ℝ ∞ (fun z : Native => |
| 611 | ((parameters x l).geometry n).coordinates k z.2) := |
| 612 | (((parameters x l).geometry n).coordinates_contDiff k).comp contDiff_snd |
| 613 | exact hcoord.fst.prodMk (contDiff_const.add (contDiff_const.mul hcoord.snd)) |
| 614 | dsimp only [data, ParticularParameters.copyData, parameters, ParticularParameters.fromReference] |
| 615 | exact ((ActualPrimary.clockWindow l.2).cutoff_contDiff.comp hχ).mul |
| 616 | ((GaussianTailFlat.slotCutoff_contDiff ((ActualPrimary.phases B N0 l.1).L l.2)).comp hχ.snd) |
| 617 | |
| 618 | theorem native_normal_ne {x : CycleState (Label B N0)} (H : PreservesCarriers x) |
| 619 | (l : Label B N0) (j : ℤ) (n : ℕ) (k : Frequency) {z : Native} |
| 620 | (hi : CommonWindow.index ActualPrimary.h n ≤ |
| 621 | ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) |
| 622 | (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) |
| 623 | (hp : (referencePoint l n k z).1 ∈ |
| 624 | (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2) |
| 625 | (ht : (referencePoint l n k z).2.2 ∈ Icc 0 ((ActualPrimary.phases B N0 l.1).L l.2)) |
| 626 | (hc : (referencePoint l n k z).2 ∈ (ActualPrimary.clockWindow l.2).core) : |
| 627 | (data x l j).background.normal (ParticularParameters.nativeStrip associatedStrip) |
| 628 | (directions (B := B)) n z ≠ 0 := by |
| 629 | rw [data_normal H, background_normal l n hR hT] |
| 630 | rw [referencePoint_eq_copy l n k hi z] at hp ht hc |
| 631 | rw [ActualPrimaryDynamics.normal_eq_copy l.1 l.2 n ActualPrimary.standardRegion k hR hT hc] |
| 632 | apply smul_ne_zero (ActualPrimaryDynamics.normalScale_pos l.2 n).ne' |
| 633 | intro hzero |
| 634 | have hn := ActualPrimaryDynamics.frame_tail_ne (ActualPrimary.phases B N0 l.1) l.2 |
| 635 | (z := ActualPrimary.phasePoint l.2 (ActualPrimaryDynamics.copyPoint l.1 l.2 n k (nativeToFull z))) |
| 636 | ⟨hp,(ActualPrimary.phases B N0 l.1).interval l.2 ht⟩ |
| 637 | exact hn (by rw [hzero]; ext i; fin_cases i <;> rfl) |
| 638 | |
| 639 | theorem rawJets_at {x : CycleState (Label B N0)} (H : PreservesCarriers x) |
| 640 | (l : Label B N0) (j : ℤ) (n : ℕ) (k : Frequency) {z : Native} |
| 641 | (hi : CommonWindow.index ActualPrimary.h n ≤ |
| 642 | ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2)) |
| 643 | (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) |
| 644 | (hp : (referencePoint l n k z).1 ∈ |
| 645 | (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2) |
| 646 | (ht : (referencePoint l n k z).2.2 ∈ Icc 0 ((ActualPrimary.phases B N0 l.1).L l.2)) |
| 647 | (hc : (referencePoint l n k z).2 ∈ (ActualPrimary.clockWindow l.2).core) |
| 648 | (ha : ContDiffAt ℝ ∞ ((data x l j).amplitude n k) z) |
| 649 | (hpres : ContDiffAt ℝ ∞ ((data x l j).pressure n k) z) : |
| 650 | ClosedNativeWaveIdentities.RawJetsAt ((data x l j).raw k) |
| 651 | (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) |
| 652 | (fun m => (data x l j).cutoff m k) n z := by |
| 653 | obtain ⟨hb,hF,hG⟩ := native_base_smoothAt x l j n hR hT |
| 654 | exact ⟨native_radialProfile_smoothAt hR, data_phase_smoothAt H l j n hR hT, |
| 655 | contDiffAt_fst.fst.fst, hb.differentiableAt (by simp), hF.differentiableAt (by simp), |
| 656 | hG.differentiableAt (by simp), ha, hpres.differentiableAt (by simp), |
| 657 | (native_cutoff_smooth x l j n k).contDiffAt, hR.ne', native_normal_ne H l j n k hi hR hT hp ht hc⟩ |
| 658 | |
| 659 | section ZeroCutoff |
| 660 | |
| 661 | variable {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 662 | |
| 663 | omit [NormedSpace ℝ D] in |
| 664 | theorem localized_zero_of_cutoff_germ (a : PeriodizedWaveBounds.CopyData D I) |
| 665 | {n : ℕ} {i : I} {z : D} (h : a.cutoff n i =ᶠ[𝓝 z] fun _ => 0) : |
| 666 | ((a.localized i).amplitude n =ᶠ[𝓝 z] fun _ => 0) ∧ |
| 667 | ((a.localized i).pressure n =ᶠ[𝓝 z] fun _ => 0) := by |
| 668 | constructor |
| 669 | · filter_upwards [h] with y hy |
| 670 | change a.cutoff n i y • a.amplitude n i y = 0 |
| 671 | rw [hy, zero_smul] |
| 672 | · filter_upwards [h] with y hy |
| 673 | change (a.cutoff n i y : ℂ) * a.pressure n i y = 0 |
| 674 | rw [hy, Complex.ofReal_zero, zero_mul] |
| 675 | |
| 676 | theorem gaussian_eq_source_of_cutoff_germ (a : PeriodizedWaveBounds.CopyData D I) |
| 677 | (d : LinearWaveBounds.GraphDirections D) {n : ℕ} {i : I} {z : D} |
| 678 | (h : a.cutoff n i =ᶠ[𝓝 z] fun _ => 0) : |
| 679 | a.localGaussian d n i =ᶠ[𝓝 z] a.source n := by |
| 680 | have hd := ParticularWaveAssembly.along_germ h (d.fastField n) |
| 681 | filter_upwards [h, hd] with y hy hdy |
| 682 | change along (d.fastField n) (a.cutoff n i) y • a.amplitude n i y + |
| 683 | (1-a.cutoff n i y) • a.source n y = a.source n y |
| 684 | rw [hdy,hy] |
| 685 | simp [along] |
| 686 | |
| 687 | theorem cancellation_of_cutoff_germ (a : PeriodizedWaveBounds.CopyData D I) |
| 688 | (s : WeightedClasses.StripData D) (d : LinearWaveBounds.GraphDirections D) |
| 689 | {n : ℕ} {i : I} {z : D} (h : a.cutoff n i =ᶠ[𝓝 z] fun _ => 0) : |
| 690 | (a.corrected s d i).harmonicResidual s d n z + |
| 691 | (fun q => a.source n z q * carrier (a.background.frequency n) (a.background.phase n) z) = |
| 692 | (fun q => (a.localGood s d n i z q + a.localGaussian d n i z q) * |
| 693 | carrier (a.background.frequency n) (a.background.phase n) z) := by |
| 694 | obtain ⟨ha,hp⟩ := localized_zero_of_cutoff_germ a h |
| 695 | have hout := (LocalizedWaveBounds.nativeFamily a).outputs_zero_germs s d ha hp |
| 696 | have hr := CorrectionStep.harmonicResidual_zero_germ (a.corrected s d i) s d hout.2.1 hp |
| 697 | have hg : a.localGood s d n i =ᶠ[𝓝 z] fun _ => 0 := hout.2.2 |
| 698 | rw [hr.eq_of_nhds,hg.eq_of_nhds,(gaussian_eq_source_of_cutoff_germ a d h).eq_of_nhds] |
| 699 | ext q |
| 700 | simp |
| 701 | |
| 702 | end ZeroCutoff |
| 703 | |
| 704 | noncomputable def selectedDirections (e : ℕ → ActivePair B N0) : |
| 705 | LinearWaveBounds.GraphDirections Native := |
| 706 | { directions (B := B) with |
| 707 | radialScale := fun q => (directions (B := B)).radialScale (selectedBand e q) |
| 708 | fastScale := fun q => (directions (B := B)).fastScale (selectedBand e q) } |
| 709 | |
| 710 | noncomputable def modalStrip (e : ℕ → ActivePair B N0) := |
| 711 | UniformPrimaryWeights.reindexedStrip |
| 712 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip (selectedStrip e))) |
| 713 | (fun q => (q, ())) |
| 714 | |
| 715 | theorem selected_principal {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 716 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 717 | (Hs : LabelSumBounds.UniformWaveClass |
| 718 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 719 | nativeEnvelope α (currentSource x j)) |
| 720 | (e : ℕ → ActivePair B N0) (q : ℕ) (k : Frequency) {z : Native} |
| 721 | (hz : z ∈ (modalStrip e).domain) (hcell : z ∈ selectedPatch e () q k) |
| 722 | (hR : 0 < z.1.1.1) (hT : 0 < z.1.1.2.1) |
| 723 | (hp : (referencePoint (selectedLabel e q) (selectedBand e q) k z).1 ∈ |
| 724 | (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier |
| 725 | (selectedLabel e q).2) |
| 726 | (ht : (referencePoint (selectedLabel e q) (selectedBand e q) k z).2.2 ∈ |
| 727 | Icc 0 ((ActualPrimary.phases B N0 (selectedLabel e q).1).L (selectedLabel e q).2)) |
| 728 | (hc : (referencePoint (selectedLabel e q) (selectedBand e q) k z).2 ∈ |
| 729 | (ActualPrimary.clockWindow (selectedLabel e q).2).core) : |
| 730 | ((data x (selectedLabel e q) j).raw k).principal |
| 731 | (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) (selectedBand e q) z = |
| 732 | -(data x (selectedLabel e q) j).source (selectedBand e q) z := by |
| 733 | let hr := (selectedActualControl e x (carrier_frequency Hc) j hj Hs |
| 734 | ParticularWaveBounds.realPart).pull (fun q => (q, ())) |
| 735 | let hi := (selectedActualControl e x (carrier_frequency Hc) j hj Hs |
| 736 | ParticularWaveBounds.imagPart).pull (fun q => (q, ())) |
| 737 | have hindex := CommonWindow.index_le (h := ActualPrimary.h) (e q).property.2 |
| 738 | have hfreq : (selectedBackground e x j ()).frequency q ≠ 0 := by |
| 739 | change (data x (selectedLabel e q) j).background.frequency (selectedBand e q) ≠ 0 |
| 740 | rw [data_frequency Hc] |
| 741 | exact mul_ne_zero (Int.cast_ne_zero.mpr hj) |
| 742 | (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos ActualPrimary.h (selectedBand e q))).ne' |
| 743 | have hnormal : |
| 744 | (selectedBackground e x j ()).normal (modalStrip e) (selectedDirections e) q z = |
| 745 | (data x (selectedLabel e q) j).background.normal |
| 746 | (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) |
| 747 | (selectedBand e q) z := rfl |
| 748 | have hN : (selectedBackground e x j ()).normal (modalStrip e) (selectedDirections e) q z = |
| 749 | (selectedTangent e x j () q).normal |
| 750 | (ParticularWaveBounds.nativePoint (selectedGeometry e () q) k z) := by |
| 751 | rw [hnormal] |
| 752 | exact native_normal_match Hc (selectedLabel e q) j hj (selectedBand e q) k |
| 753 | hindex hR hT hp ht hc |
| 754 | have hδ : (selectedTangent e x j () q).damping |
| 755 | (ParticularWaveBounds.nativePoint (selectedGeometry e () q) k z) = |
| 756 | (modalStrip e).epsilon q * (selectedBackground e x j ()).frequency q ^ 2 * |
| 757 | ‖(selectedBackground e x j ()).normal (modalStrip e) (selectedDirections e) q z‖ ^ 2 := by |
| 758 | rw [hnormal] |
| 759 | exact native_damping_match Hc (selectedLabel e q) j (selectedBand e q) k hindex hR hT hc |
| 760 | have hfast : (selectedDirections e).fastScale q • (selectedDirections e).fast = |
| 761 | ((0 : Parameter × ℝ), slotDirection (selectedGeometry e () q)) := |
| 762 | native_fast x (selectedLabel e q) (selectedBand e q) hindex |
| 763 | have hA := native_action_match x (selectedLabel e q) j (selectedBand e q) k hindex hR hT |
| 764 | have result := NativePrincipalEquations.complexCopyCoefficients_principal_at |
| 765 | (s := modalStrip e) (dirs := selectedDirections e) |
| 766 | (frame := fun r => selectedFrame e r) (t := selectedTangent e x j ()) |
| 767 | (source := selectedSource e x j ()) (harmonic := j) |
| 768 | (g := selectedGeometry e ()) (L := selectedLength e ()) |
| 769 | (envelope := selectedPulseEnvelope e ()) (K := fun r => selectedPatch e () r) |
| 770 | (selectedBackground e x j ()) |
| 771 | (fun r => ScaledActualParticularControl.length_pos (selectedConstruction e) (selectedClock e) () r) |
| 772 | hr hi q k hz hcell hfreq hN hδ hfast hA |
| 773 | exact result |
| 774 | |
| 775 | |
| 776 | theorem controlPatch_geometry (x : CycleState (Label B N0)) (l : Label B N0) |
| 777 | (n : ℕ) (k : Frequency) {z : Native} (hz : z ∈ controlPatch l n k) : |
| 778 | 0 < z.1.1.1 ∧ 0 < z.1.1.2.1 ∧ |
| 779 | (referencePoint l n k z).1 ∈ |
| 780 | (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2 ∧ |
| 781 | (referencePoint l n k z).2.2 ∈ Ioo 0 ((ActualPrimary.phases B N0 l.1).L l.2) ∧ |
| 782 | (referencePoint l n k z).2 ∈ (ActualPrimary.clockWindow l.2).core := by |
| 783 | have hp := ActualPrimaryCoherence.piece_domain_positive ActualPrimary.standardRegion |
| 784 | (show nativeToFull z ∈ (HarmonicWaveInteraction.productStrip |
| 785 | (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion)).domain from hz.2.1.1) |
| 786 | have hslow : (referencePoint l n k z).1 ∈ |
| 787 | (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2 := |
| 788 | hz.2.1.2.1 |
| 789 | have hclock : 0 < PhysicalParticularWave.clockWeight ActualPrimary.h |
| 790 | (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) := |
| 791 | PhysicalParticularWave.ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos _) _ |
| 792 | have hc : (referencePoint l n k z).2 = |
| 793 | CopySolveCompatibility.nativeTimeMap 0 |
| 794 | (PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) |
| 795 | (ChartScales.Q (BaseChartJets.cellBand l.2))) |
| 796 | (((canonicalParameters l).geometry n).coordinates k z.2) := |
| 797 | (transported_coordinates x l n k z).symm |
| 798 | have ht : (referencePoint l n k z).2.2 ∈ Ioo 0 ((ActualPrimary.phases B N0 l.1).L l.2) := by |
| 799 | rw [hc] |
| 800 | simp only [CopySolveCompatibility.nativeTimeMap, zero_add, mem_Ioo] |
| 801 | refine ⟨mul_pos hclock hz.2.1.2.2.1, ?_⟩ |
| 802 | have hh := (lt_div_iff₀ hclock).mp hz.2.1.2.2.2 |
| 803 | simp only [mul_comm] at hh ⊢ |
| 804 | exact hh |
| 805 | refine ⟨hp.1,hp.2,hslow,ht,?_⟩ |
| 806 | change (referencePoint l n k z).2.1 ∈ Icc (-ActualPrimary.slots.radius) ActualPrimary.slots.radius ∧ |
| 807 | (referencePoint l n k z).2.2 ∈ Icc 0 ((ActualPrimary.phases B N0 0).L l.2) |
| 808 | constructor |
| 809 | · rw [hc] |
| 810 | exact hz.2.2 |
| 811 | · exact ⟨ht.1.le,ht.2.le⟩ |
| 812 | |
| 813 | |
| 814 | theorem native_principal {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 815 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 816 | (Hs : LabelSumBounds.UniformWaveClass |
| 817 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 818 | nativeEnvelope α (currentSource x j)) |
| 819 | (l : Label B N0) (n : ℕ) (k : Frequency) {z : Native} |
| 820 | (hz : z ∈ controlPatch l n k) : |
| 821 | ((data x l j).raw k).principal (ParticularParameters.nativeStrip associatedStrip) |
| 822 | (directions (B := B)) n z = -(data x l j).source n z := by |
| 823 | let e : ℕ → ActivePair B N0 := fun _ => ⟨(l,n),hz.1⟩ |
| 824 | obtain ⟨hR,hT,hp,ht,hcore⟩ := controlPatch_geometry x l n k hz |
| 825 | have hcell : z ∈ selectedPatch e () 0 k := by |
| 826 | rw [← selected_controlPatch e () 0 k] |
| 827 | exact hz |
| 828 | exact selected_principal Hc j hj Hs e 0 k hz.2.1.1 hcell hR hT hp |
| 829 | ⟨ht.1.le,ht.2.le⟩ hcore |
| 830 | |
| 831 | theorem native_tangency_germ {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 832 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 833 | (Hs : LabelSumBounds.UniformWaveClass |
| 834 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 835 | nativeEnvelope α (currentSource x j)) |
| 836 | (l : Label B N0) (n : ℕ) (k : Frequency) {z : Native} |
| 837 | (hz : z ∈ controlPatch l n k) : |
| 838 | (fun y => normalDot ((data x l j).background.normal |
| 839 | (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n y) |
| 840 | ((data x l j).amplitude n k y)) =ᶠ[𝓝 z] fun _ => 0 := by |
| 841 | let e : ℕ → ActivePair B N0 := fun _ => ⟨(l,n),hz.1⟩ |
| 842 | let hr := (selectedActualControl e x (carrier_frequency Hc) j hj Hs |
| 843 | ParticularWaveBounds.realPart).pull (fun q => (q, ())) |
| 844 | let hi := (selectedActualControl e x (carrier_frequency Hc) j hj Hs |
| 845 | ParticularWaveBounds.imagPart).pull (fun q => (q, ())) |
| 846 | obtain ⟨hR,hT,hp,ht,hcore⟩ := controlPatch_geometry x l n k hz |
| 847 | have hindex := CommonWindow.index_le (h := ActualPrimary.h) hz.1.2 |
| 848 | have hcell : z ∈ selectedPatch e () 0 k := by |
| 849 | rw [← selected_controlPatch e () 0 k] |
| 850 | exact hz |
| 851 | have hN : (selectedBackground e x j ()).normal (modalStrip e) (selectedDirections e) 0 =ᶠ[𝓝 z] |
| 852 | fun y => (selectedTangent e x j () 0).normal |
| 853 | (ParticularWaveBounds.nativePoint (selectedGeometry e () 0) k y) := |
| 854 | native_normal_germ Hc l j hj n k hindex hR hT hp ht hcore |
| 855 | have result := complexCopy_tangent_germ |
| 856 | (s := modalStrip e) (ds := selectedDirections e) |
| 857 | (frame := fun r => selectedFrame e r) (t := selectedTangent e x j ()) |
| 858 | (source := selectedSource e x j ()) (j := j) |
| 859 | (g := selectedGeometry e ()) (len := selectedLength e ()) |
| 860 | (envelope := selectedPulseEnvelope e ()) (C := fun r => selectedPatch e () r) |
| 861 | (selectedBackground e x j ()) |
| 862 | (fun r => ScaledActualParticularControl.length_pos (selectedConstruction e) (selectedClock e) () r) |
| 863 | hr hi 0 k hz.2.1.1 hcell hN |
| 864 | exact result |
| 865 | |
| 866 | theorem native_rawJets {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 867 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 868 | (Hs : LabelSumBounds.UniformWaveClass |
| 869 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 870 | nativeEnvelope α (currentSource x j)) |
| 871 | (l : Label B N0) (n : ℕ) (k : Frequency) {z : Native} |
| 872 | (hz : z ∈ controlPatch l n k) : |
| 873 | ClosedNativeWaveIdentities.RawJetsAt ((data x l j).raw k) |
| 874 | (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) |
| 875 | (fun m => (data x l j).cutoff m k) n z := by |
| 876 | obtain ⟨hR,hT,hp,ht,hcore⟩ := controlPatch_geometry x l n k hz |
| 877 | have hindex := CommonWindow.index_le (h := ActualPrimary.h) hz.1.2 |
| 878 | have hraw := ActualParticularStageControls.raw_jets x (carrier_frequency Hc) j hj Hs |
| 879 | exact rawJets_at Hc l j n k hindex hR hT hp ⟨ht.1.le,ht.2.le⟩ hcore |
| 880 | (hraw.1.smooth l n k z hz.2.1.1 hz) (hraw.2.smooth l n k z hz.2.1.1 hz) |
| 881 | |
| 882 | theorem frequency_ne {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 883 | (l : Label B N0) (j : ℤ) (hj : j ≠ 0) (n : ℕ) : |
| 884 | (data x l j).background.frequency n ≠ 0 := by |
| 885 | rw [data_frequency Hc] |
| 886 | exact mul_ne_zero (Int.cast_ne_zero.mpr hj) |
| 887 | (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos ActualPrimary.h n)).ne' |
| 888 | |
| 889 | /-- The literal common-cover inverse solves the current source at every |
| 890 | closed transverse cell point. No open-cell or final equation hypothesis is used. -/ |
| 891 | theorem native_cancellation {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 892 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 893 | (Hs : LabelSumBounds.UniformWaveClass |
| 894 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 895 | nativeEnvelope α (currentSource x j)) |
| 896 | (l : Label B N0) (n : ℕ) (k : Frequency) {z : Native} |
| 897 | (hz : z ∈ controlPatch l n k) : |
| 898 | ((data x l j).corrected (ParticularParameters.nativeStrip associatedStrip) |
| 899 | (directions (B := B)) k).harmonicResidual (ParticularParameters.nativeStrip associatedStrip) |
| 900 | (directions (B := B)) n z + |
| 901 | (fun i => (data x l j).source n z i * |
| 902 | carrier ((data x l j).background.frequency n) ((data x l j).background.phase n) z) = |
| 903 | (fun i => ((data x l j).localGood (ParticularParameters.nativeStrip associatedStrip) |
| 904 | (directions (B := B)) n k z i + (data x l j).localGaussian (directions (B := B)) n k z i) * |
| 905 | carrier ((data x l j).background.frequency n) ((data x l j).background.phase n) z) := by |
| 906 | obtain ⟨hR,hT,_⟩ := controlPatch_geometry x l n k hz |
| 907 | exact (native_rawJets Hc j hj Hs l n k hz).cancellation (native_angular x l j n k) |
| 908 | (native_geometry x l j n hR hT).radial_radius (data x l j).source |
| 909 | (native_principal Hc j hj Hs l n k hz) |
| 910 | |
| 911 | theorem native_realizes_curl {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 912 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 913 | (Hs : LabelSumBounds.UniformWaveClass |
| 914 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 915 | nativeEnvelope α (currentSource x j)) |
| 916 | (l : Label B N0) (n : ℕ) (k : Frequency) {z : Native} |
| 917 | (hz : z ∈ controlPatch l n k) : |
| 918 | CurlClassBounds.cylindricalCurl ((data x l j).background.radius n) |
| 919 | ((directions (B := B)).radialField n) (fun _ => (directions (B := B)).angular) |
| 920 | ((directions (B := B)).axialField (ParticularParameters.nativeStrip associatedStrip) n) |
| 921 | (((data x l j).localized k).curlPotential (ParticularParameters.nativeStrip associatedStrip) |
| 922 | (directions (B := B)) n) z = |
| 923 | vectorMode ((data x l j).background.frequency n) ((data x l j).background.phase n) |
| 924 | (((data x l j).corrected (ParticularParameters.nativeStrip associatedStrip) |
| 925 | (directions (B := B)) k).amplitude n) z := |
| 926 | ClosedNativeWaveIdentities.native_realizes_curl_at (a := data x l j) |
| 927 | (s := ParticularParameters.nativeStrip associatedStrip) (d := directions (B := B)) n k z |
| 928 | (native_rawJets Hc j hj Hs l n k hz) (frequency_ne Hc l j hj n) |
| 929 | (native_tangency_germ Hc j hj Hs l n k hz).eq_of_nhds |
| 930 | |
| 931 | theorem native_divergence_zero {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 932 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 933 | (Hs : LabelSumBounds.UniformWaveClass |
| 934 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 935 | nativeEnvelope α (currentSource x j)) |
| 936 | (l : Label B N0) (n : ℕ) (k : Frequency) {z : Native} |
| 937 | (hz : z ∈ controlPatch l n k) : |
| 938 | cylindricalDivergence ((data x l j).background.radius n) |
| 939 | ((directions (B := B)).radialField n) (fun _ => (directions (B := B)).angular) |
| 940 | ((directions (B := B)).axialField (ParticularParameters.nativeStrip associatedStrip) n) |
| 941 | (vectorMode ((data x l j).background.frequency n) ((data x l j).background.phase n) |
| 942 | (((data x l j).corrected (ParticularParameters.nativeStrip associatedStrip) |
| 943 | (directions (B := B)) k).amplitude n)) z = 0 := by |
| 944 | obtain ⟨hR,hT,_⟩ := controlPatch_geometry x l n k hz |
| 945 | exact ClosedNativeWaveIdentities.native_divergence_zero_at (a := data x l j) |
| 946 | (s := ParticularParameters.nativeStrip associatedStrip) (d := directions (B := B)) n k z |
| 947 | (native_rawJets Hc j hj Hs l n k hz) (native_geometry x l j n hR hT) |
| 948 | (frequency_ne Hc l j hj n) (native_tangency_germ Hc j hj Hs l n k hz) |
| 949 | |
| 950 | /-- The support information supplied by the actual incoming source and |
| 951 | the common-cover cutoff. The last alternative is proved by zero source |
| 952 | on the whole native solve path. It contains no differential equation. -/ |
| 953 | structure SupportData (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) where |
| 954 | cells : PeriodizedWaveBounds.Cells Native Frequency |
| 955 | cutoff_support : ∀ n k, support ((data x l j).cutoff n k) ⊆ cells.carrier n k |
| 956 | cover : ∀ n k z, z ∈ (ParticularParameters.nativeStrip associatedStrip).domain → |
| 957 | z ∈ cells.carrier n k → z ∈ controlPatch l n k ∨ |
| 958 | ((data x l j).cutoff n k =ᶠ[𝓝 z] fun _ => 0) ∨ |
| 959 | (((data x l j).amplitude n k =ᶠ[𝓝 z] fun _ => 0) ∧ |
| 960 | ((data x l j).pressure n k =ᶠ[𝓝 z] fun _ => 0) ∧ |
| 961 | ((data x l j).source n =ᶠ[𝓝 z] fun _ => 0)) |
| 962 | |
| 963 | theorem localized_zero_of_fields {D I : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 964 | (a : PeriodizedWaveBounds.CopyData D I) {n : ℕ} {k : I} {z : D} |
| 965 | (ha : a.amplitude n k =ᶠ[𝓝 z] fun _ => 0) |
| 966 | (hp : a.pressure n k =ᶠ[𝓝 z] fun _ => 0) : |
| 967 | ((a.localized k).amplitude n =ᶠ[𝓝 z] fun _ => 0) ∧ |
| 968 | ((a.localized k).pressure n =ᶠ[𝓝 z] fun _ => 0) := by |
| 969 | constructor |
| 970 | · filter_upwards [ha] with y hy |
| 971 | change a.cutoff n k y • a.amplitude n k y = 0 |
| 972 | rw [hy,smul_zero] |
| 973 | · filter_upwards [hp] with y hy |
| 974 | change (a.cutoff n k y : ℂ) * a.pressure n k y = 0 |
| 975 | rw [hy,mul_zero] |
| 976 | |
| 977 | theorem SupportData.localized_alternative {x : CycleState (Label B N0)} |
| 978 | {l : Label B N0} {j : ℤ} (S : SupportData x l j) |
| 979 | {n : ℕ} {k : Frequency} {z : Native} |
| 980 | (hz : z ∈ (ParticularParameters.nativeStrip associatedStrip).domain) |
| 981 | (hk : z ∈ S.cells.carrier n k) : z ∈ controlPatch l n k ∨ |
| 982 | (((data x l j).localized k).amplitude n =ᶠ[𝓝 z] fun _ => 0) ∧ |
| 983 | (((data x l j).localized k).pressure n =ᶠ[𝓝 z] fun _ => 0) := by |
| 984 | rcases S.cover n k z hz hk with hc | hcut | ⟨ha,hp,_⟩ |
| 985 | · exact Or.inl hc |
| 986 | · exact Or.inr (localized_zero_of_cutoff_germ _ hcut) |
| 987 | · exact Or.inr (localized_zero_of_fields _ ha hp) |
| 988 | |
| 989 | noncomputable def actualWave (x : CycleState (Label B N0)) (l : Label B N0) (j : ℤ) := |
| 990 | (parameters x l).wave associatedStrip (assembly x l).context (assembly x l).state |
| 991 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput j |
| 992 | |
| 993 | theorem common_cancellation {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 994 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 995 | (Hs : LabelSumBounds.UniformWaveClass |
| 996 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 997 | nativeEnvelope α (currentSource x j)) |
| 998 | (l : Label B N0) (S : SupportData x l j) (n : ℕ) {z : Native} |
| 999 | (hz : z ∈ (ParticularParameters.nativeStrip associatedStrip).domain) : |
| 1000 | (actualWave x l j).harmonicResidual (ParticularParameters.nativeStrip associatedStrip) |
| 1001 | (directions (B := B)) n z + |
| 1002 | (fun i => (data x l j).source n z i * |
| 1003 | carrier ((data x l j).background.frequency n) ((data x l j).background.phase n) z) = |
| 1004 | (fun i => ((data x l j).globalGood (ParticularParameters.nativeStrip associatedStrip) |
| 1005 | (directions (B := B)) n z i + (data x l j).globalGaussian (directions (B := B)) n z i) * |
| 1006 | carrier ((data x l j).background.frequency n) ((data x l j).background.phase n) z) := by |
| 1007 | apply (data x l j).common_cancellation S.cells S.cutoff_support |
| 1008 | (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) ?_ n hz |
| 1009 | intro m k y hy hk |
| 1010 | rcases S.cover m k y hy hk with hc | hcut | ⟨ha,hp,hf⟩ |
| 1011 | · exact native_cancellation Hc j hj Hs l m k hc |
| 1012 | · exact cancellation_of_cutoff_germ _ _ _ hcut |
| 1013 | · obtain ⟨ha',hp'⟩ := localized_zero_of_fields _ ha hp |
| 1014 | exact CorrectionStep.local_cancellation_of_zero_germs _ _ _ ha' hp' |
| 1015 | ((data x l j).localGaussian_zero_of_fields _ ha hf) hf |
| 1016 | |
| 1017 | theorem common_realizes_curl {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1018 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 1019 | (Hs : LabelSumBounds.UniformWaveClass |
| 1020 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 1021 | nativeEnvelope α (currentSource x j)) |
| 1022 | (l : Label B N0) (S : SupportData x l j) (n : ℕ) {z : Native} |
| 1023 | (hz : z ∈ (ParticularParameters.nativeStrip associatedStrip).domain) : |
| 1024 | CurlClassBounds.cylindricalCurl ((data x l j).background.radius n) |
| 1025 | ((directions (B := B)).radialField n) (fun _ => (directions (B := B)).angular) |
| 1026 | ((directions (B := B)).axialField (ParticularParameters.nativeStrip associatedStrip) n) |
| 1027 | ((data x l j).common.curlPotential (ParticularParameters.nativeStrip associatedStrip) |
| 1028 | (directions (B := B)) n) z = |
| 1029 | vectorMode ((actualWave x l j).frequency n) ((actualWave x l j).phase n) |
| 1030 | ((actualWave x l j).amplitude n) z := by |
| 1031 | apply (data x l j).common_realizes_curl S.cells S.cutoff_support |
| 1032 | (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) ?_ n hz |
| 1033 | intro m k y hy hk |
| 1034 | rcases S.localized_alternative hy hk with hc | ⟨ha,_⟩ |
| 1035 | · exact native_realizes_curl Hc j hj Hs l m k hc |
| 1036 | · exact (LocalizedCurlRealization.native_identities_of_zero_germ _ _ _ ha).1 |
| 1037 | |
| 1038 | theorem common_divergence_zero {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1039 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 1040 | (Hs : LabelSumBounds.UniformWaveClass |
| 1041 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 1042 | nativeEnvelope α (currentSource x j)) |
| 1043 | (l : Label B N0) (S : SupportData x l j) (n : ℕ) {z : Native} |
| 1044 | (hz : z ∈ (ParticularParameters.nativeStrip associatedStrip).domain) : |
| 1045 | cylindricalDivergence ((data x l j).background.radius n) |
| 1046 | ((directions (B := B)).radialField n) (fun _ => (directions (B := B)).angular) |
| 1047 | ((directions (B := B)).axialField (ParticularParameters.nativeStrip associatedStrip) n) |
| 1048 | (vectorMode ((actualWave x l j).frequency n) ((actualWave x l j).phase n) |
| 1049 | ((actualWave x l j).amplitude n)) z = 0 := by |
| 1050 | apply (data x l j).common_divergence_zero S.cells S.cutoff_support |
| 1051 | (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) ?_ n hz |
| 1052 | intro m k y hy hk |
| 1053 | rcases S.localized_alternative hy hk with hc | ⟨ha,_⟩ |
| 1054 | · exact native_divergence_zero Hc j hj Hs l m k hc |
| 1055 | · exact (LocalizedCurlRealization.native_identities_of_zero_germ _ _ _ ha).2 |
| 1056 | |
| 1057 | theorem common_smooth {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1058 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 1059 | (Hs : LabelSumBounds.UniformWaveClass |
| 1060 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 1061 | nativeEnvelope α (currentSource x j)) |
| 1062 | (l : Label B N0) (S : SupportData x l j) (n : ℕ) : |
| 1063 | ContDiffOn ℝ ∞ ((actualWave x l j).amplitude n) |
| 1064 | (ParticularParameters.nativeStrip associatedStrip).domain ∧ |
| 1065 | ContDiffOn ℝ ∞ ((actualWave x l j).pressure n) |
| 1066 | (ParticularParameters.nativeStrip associatedStrip).domain := by |
| 1067 | have hs := (ParticularParameters.nativeStrip associatedStrip).isOpen_domain |
| 1068 | constructor <;> apply hs.contDiffOn_iff.mpr <;> intro z hz |
| 1069 | · by_cases he : ∃ k, z ∈ S.cells.carrier n k |
| 1070 | · obtain ⟨k,hk⟩ := he |
| 1071 | have hn : ContDiffAt ℝ ∞ |
| 1072 | (((data x l j).corrected (ParticularParameters.nativeStrip associatedStrip) |
| 1073 | (directions (B := B)) k).amplitude n) z := by |
| 1074 | rcases S.localized_alternative hz hk with hc | ⟨ha,_⟩ |
| 1075 | · exact (native_rawJets Hc j hj Hs l n k hc).corrected_amplitude |
| 1076 | · exact contDiffAt_const.congr_of_eventuallyEq |
| 1077 | (LocalizedCurlRealization.native_zero_germs _ _ _ ha).2.1 |
| 1078 | exact hn.congr_of_eventuallyEq ((data x l j).commonCorrected_amplitude_germ |
| 1079 | S.cells S.cutoff_support (ParticularParameters.nativeStrip associatedStrip) |
| 1080 | (directions (B := B)) n hk) |
| 1081 | · exact contDiffAt_const.congr_of_eventuallyEq ((data x l j).commonCorrected_zero_germ |
| 1082 | S.cells S.cutoff_support (ParticularParameters.nativeStrip associatedStrip) |
| 1083 | (directions (B := B)) (not_exists.mp he)) |
| 1084 | · by_cases he : ∃ k, z ∈ S.cells.carrier n k |
| 1085 | · obtain ⟨k,hk⟩ := he |
| 1086 | have hn : ContDiffAt ℝ ∞ (((data x l j).localized k).pressure n) z := by |
| 1087 | rcases S.localized_alternative hz hk with hc | ⟨_,hp⟩ |
| 1088 | · have hr := (ActualParticularStageControls.raw_jets x (carrier_frequency Hc) j hj Hs).2 |
| 1089 | exact (Complex.ofRealCLM.contDiff.contDiffAt.comp z |
| 1090 | (native_cutoff_smooth x l j n k).contDiffAt).mul (hr.smooth l n k z hz hc) |
| 1091 | · exact contDiffAt_const.congr_of_eventuallyEq hp |
| 1092 | exact hn.congr_of_eventuallyEq ((data x l j).common_pressure_germ S.cells S.cutoff_support n hk) |
| 1093 | · exact contDiffAt_const.congr_of_eventuallyEq |
| 1094 | ((data x l j).common_zero_germs S.cells S.cutoff_support (not_exists.mp he)).2 |
| 1095 | |
| 1096 | |
| 1097 | theorem common_amplitude_invariant (x : CycleState (Label B N0)) (l : Label B N0) |
| 1098 | (j : ℤ) (n : ℕ) : |
| 1099 | CopyAngularInvariance.Invariant (directions (B := B)).angular ((actualWave x l j).amplitude n) := by |
| 1100 | exact (data x l j).commonCorrected_invariant (ParticularParameters.nativeStrip associatedStrip) |
| 1101 | (directions (B := B)) (directions (B := B)).angular |
| 1102 | (fun m k => (native_angular x l j m k).cutoff) |
| 1103 | (fun m k => (native_angular x l j m k).amplitude) |
| 1104 | (fun m => (native_angular x l j m 0).radius) |
| 1105 | (fun m => (native_angular x l j m 0).radial_field) |
| 1106 | (fun _ => CopyAngularInvariance.Invariant.const _) |
| 1107 | (fun m => (native_angular x l j m 0).phase) n |
| 1108 | |
| 1109 | theorem common_pressure_invariant (x : CycleState (Label B N0)) (l : Label B N0) |
| 1110 | (j : ℤ) (n : ℕ) : |
| 1111 | CopyAngularInvariance.Invariant (directions (B := B)).angular ((actualWave x l j).pressure n) := |
| 1112 | (data x l j).common_pressure_invariant (directions (B := B)).angular |
| 1113 | (fun m k => (native_angular x l j m k).cutoff) |
| 1114 | (fun m k => (native_angular x l j m k).pressure) n |
| 1115 | |
| 1116 | theorem common_good_invariant (x : CycleState (Label B N0)) (l : Label B N0) |
| 1117 | (j : ℤ) (n : ℕ) : |
| 1118 | CopyAngularInvariance.Invariant (directions (B := B)).angular |
| 1119 | ((data x l j).globalGood (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n) := |
| 1120 | (data x l j).globalGood_invariant (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) |
| 1121 | (fun m k => (native_angular x l j m k).cutoff) |
| 1122 | (fun m k => (native_angular x l j m k).amplitude) |
| 1123 | (fun m k => (native_angular x l j m k).pressure) |
| 1124 | (fun m => (native_angular x l j m 0).radius) |
| 1125 | (fun m => (native_angular x l j m 0).radial_base) |
| 1126 | (fun m => (native_angular x l j m 0).frequency_base) |
| 1127 | (fun m => (native_angular x l j m 0).axial_base) |
| 1128 | (fun m => (native_angular x l j m 0).radial_field) |
| 1129 | (fun _ => CopyAngularInvariance.Invariant.const _) |
| 1130 | (fun m => (native_angular x l j m 0).phase) n |
| 1131 | |
| 1132 | theorem common_gaussian_invariant (x : CycleState (Label B N0)) (l : Label B N0) |
| 1133 | (j : ℤ) (n : ℕ) : |
| 1134 | CopyAngularInvariance.Invariant (directions (B := B)).angular |
| 1135 | ((data x l j).globalGaussian (directions (B := B)) n) := |
| 1136 | (data x l j).globalGaussian_invariant (directions (B := B)) (directions (B := B)).angular |
| 1137 | (fun m k => (native_angular x l j m k).cutoff) |
| 1138 | (fun m k => (native_angular x l j m k).amplitude) |
| 1139 | (by |
| 1140 | intro m |
| 1141 | change CopyAngularInvariance.Invariant (((0 : Parameter),1),(0 : TorusInverse.Plane)) |
| 1142 | (angleLift (residualSource (assembly x l).context (assembly x l).state |
| 1143 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput j m)) |
| 1144 | exact angleLift_invariant _) n |
| 1145 | |
| 1146 | theorem source_frequency_ne {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1147 | (l : Label B N0) (n : ℕ) : (assembly x l).carrierBlock.frequency n ≠ 0 := by |
| 1148 | change (x.coefficients.blocks l).frequency n ≠ 0 |
| 1149 | rw [carrier_frequency Hc] |
| 1150 | exact (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos ActualPrimary.h n)).ne' |
| 1151 | |
| 1152 | noncomputable def actualUpdate (x : CycleState (Label B N0)) (l : Label B N0) (N : ℕ) := |
| 1153 | (parameters x l).updateBlock associatedStrip (assembly x l).context (assembly x l).state |
| 1154 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput N |
| 1155 | |
| 1156 | noncomputable def actualGood (x : CycleState (Label B N0)) (l : Label B N0) (N : ℕ) := |
| 1157 | (parameters x l).goodBlock associatedStrip (assembly x l).context (assembly x l).state |
| 1158 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput N |
| 1159 | |
| 1160 | noncomputable def actualGaussian (x : CycleState (Label B N0)) (l : Label B N0) (N : ℕ) := |
| 1161 | (parameters x l).gaussianBlock (assembly x l).context (assembly x l).state |
| 1162 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput N |
| 1163 | |
| 1164 | theorem update_represents {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1165 | (l : Label B N0) (N : ℕ) : |
| 1166 | (actualUpdate x l N).oscillation = |
| 1167 | (fun n z i => ∑ j ∈ modes N, (vectorMode ((actualWave x l j).frequency n) |
| 1168 | ((actualWave x l j).phase n) ((actualWave x l j).amplitude n) (angleShuffle z) i).re) ∧ |
| 1169 | (actualUpdate x l N).oscillatoryPressure = |
| 1170 | (fun n z => ∑ j ∈ modes N, (mode ((actualWave x l j).frequency n) |
| 1171 | ((actualWave x l j).phase n) ((actualWave x l j).pressure n) (angleShuffle z)).re) := by |
| 1172 | have hθ : (directions (B := B)).angular = (((0 : Parameter),1),(0 : TorusInverse.Plane)) := rfl |
| 1173 | constructor |
| 1174 | · funext n z i |
| 1175 | rw [actualUpdate, ParticularParameters.updateBlock, assembledBlock_value] |
| 1176 | apply Finset.sum_congr rfl |
| 1177 | intro j hj |
| 1178 | have hinv := common_amplitude_invariant x l j n |
| 1179 | rw [hθ] at hinv |
| 1180 | have hi := invariant_angleShuffle hinv z.1 z.2 |
| 1181 | change Complex.re (_ * _) = ((actualWave x l j).amplitude n (angleShuffle z) i * |
| 1182 | carrier ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).frequency n) |
| 1183 | ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).phase n) |
| 1184 | (angleShuffle z)).re |
| 1185 | rw [actualCarrier_character (parameters x l).background (assembly x l).carrierBlock j |
| 1186 | (source_frequency_ne Hc l) n z, hi] |
| 1187 | rfl |
| 1188 | · funext n z |
| 1189 | rw [actualUpdate, ParticularParameters.updateBlock, assembledBlock_pressure_value] |
| 1190 | apply Finset.sum_congr rfl |
| 1191 | intro j hj |
| 1192 | have hinv := common_pressure_invariant x l j n |
| 1193 | rw [hθ] at hinv |
| 1194 | have hi := invariant_angleShuffle hinv z.1 z.2 |
| 1195 | change Complex.re (_ * _) = ((actualWave x l j).pressure n (angleShuffle z) * |
| 1196 | carrier ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).frequency n) |
| 1197 | ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).phase n) |
| 1198 | (angleShuffle z)).re |
| 1199 | rw [actualCarrier_character (parameters x l).background (assembly x l).carrierBlock j |
| 1200 | (source_frequency_ne Hc l) n z, hi] |
| 1201 | rfl |
| 1202 | |
| 1203 | theorem native_phase_smooth {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1204 | (l : Label B N0) (j : ℤ) (n : ℕ) : |
| 1205 | ContDiffOn ℝ ∞ ((data x l j).background.phase n) |
| 1206 | (ParticularParameters.nativeStrip associatedStrip).domain := by |
| 1207 | apply (ParticularParameters.nativeStrip associatedStrip).isOpen_domain.contDiffOn_iff.mpr |
| 1208 | intro z hz |
| 1209 | have hp := ActualPrimaryCoherence.piece_domain_positive ActualPrimary.standardRegion |
| 1210 | (show nativeToFull z ∈ (HarmonicWaveInteraction.productStrip |
| 1211 | (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion)).domain from hz) |
| 1212 | exact data_phase_smoothAt Hc l j n hp.1 hp.2 |
| 1213 | |
| 1214 | theorem wave_smooth {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1215 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 1216 | (Hs : LabelSumBounds.UniformWaveClass |
| 1217 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 1218 | nativeEnvelope α (currentSource x j)) |
| 1219 | (l : Label B N0) (S : SupportData x l j) (n : ℕ) (i : Fin 3) : |
| 1220 | ContDiffOn ℝ ∞ (fun z => vectorMode ((actualWave x l j).frequency n) |
| 1221 | ((actualWave x l j).phase n) ((actualWave x l j).amplitude n) (angleShuffle z) i) |
| 1222 | (HarmonicResidual.liftDomain associatedStrip.domain) := by |
| 1223 | have hf := HarmonicCalculus.contDiffOn_mode ((actualWave x l j).frequency n) |
| 1224 | (native_phase_smooth Hc l j n) (contDiffOn_pi.mp (common_smooth Hc j hj Hs l S n).1 i) |
| 1225 | exact hf.comp (angleShuffle (P := Parameter)).contDiff.contDiffOn (fun _ hz => hz.1) |
| 1226 | |
| 1227 | theorem pressure_smooth {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1228 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 1229 | (Hs : LabelSumBounds.UniformWaveClass |
| 1230 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 1231 | nativeEnvelope α (currentSource x j)) |
| 1232 | (l : Label B N0) (S : SupportData x l j) (n : ℕ) : |
| 1233 | ContDiffOn ℝ ∞ (fun z => mode ((actualWave x l j).frequency n) |
| 1234 | ((actualWave x l j).phase n) ((actualWave x l j).pressure n) (angleShuffle z)) |
| 1235 | (HarmonicResidual.liftDomain associatedStrip.domain) := by |
| 1236 | have hf := HarmonicCalculus.contDiffOn_mode ((actualWave x l j).frequency n) |
| 1237 | (native_phase_smooth Hc l j n) (common_smooth Hc j hj Hs l S n).2 |
| 1238 | exact hf.comp (angleShuffle (P := Parameter)).contDiff.contDiffOn (fun _ hz => hz.1) |
| 1239 | |
| 1240 | noncomputable def supportData (x : CycleState (Label B N0)) |
| 1241 | (hs : ActualParticularStageControls.InputSupport x) |
| 1242 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) (l : Label B N0) (j : ℤ) : |
| 1243 | SupportData x l j where |
| 1244 | cells := ActualParticularStageControls.carrierCells l |
| 1245 | cutoff_support := ActualParticularStageControls.data_cutoff_support x l j |
| 1246 | cover n k _ hz hk := ActualParticularStageControls.data_control_alternative x hs hN l j n k hz hk |
| 1247 | |
| 1248 | theorem source_phase_smooth {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1249 | (l : Label B N0) (n : ℕ) : |
| 1250 | ContDiffOn ℝ ∞ ((assembly x l).carrierBlock.phase n) associatedStrip.domain := by |
| 1251 | have hsection : ContDiff ℝ ∞ (fun z : Parameter × TorusInverse.Plane => angleShuffle (z,0)) := |
| 1252 | (angleShuffle (P := Parameter)).contDiff.comp (contDiff_id.prodMk contDiff_const) |
| 1253 | have hmap : MapsTo (fun z : Parameter × TorusInverse.Plane => angleShuffle (z,0)) |
| 1254 | associatedStrip.domain (ParticularParameters.nativeStrip associatedStrip).domain := fun _ hz => hz |
| 1255 | have hh := (native_phase_smooth Hc l 1 n).comp hsection.contDiffOn hmap |
| 1256 | have he : (fun z => (data x l 1).background.phase n (angleShuffle (z,0))) = |
| 1257 | (assembly x l).carrierBlock.phase n := by |
| 1258 | funext z |
| 1259 | change (assembly x l).carrierBlock.phase n z + |
| 1260 | ((assembly x l).carrierBlock.angularFrequency n : ℝ) / |
| 1261 | (assembly x l).carrierBlock.frequency n * 0 = _ |
| 1262 | simp |
| 1263 | change ContDiffOn ℝ ∞ (fun z => (data x l 1).background.phase n (angleShuffle (z,0))) |
| 1264 | associatedStrip.domain at hh |
| 1265 | rw [he] at hh |
| 1266 | exact hh |
| 1267 | |
| 1268 | theorem source_angular_ne {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1269 | (l : Label B N0) (n : ℕ) : (assembly x l).carrierBlock.angularFrequency n ≠ 0 := by |
| 1270 | change (x.coefficients.blocks l).angularFrequency n ≠ 0 |
| 1271 | rw [← (Hc l).angular] |
| 1272 | exact PrimaryGeometryAssembly.angularMode_ne_zero ActualPrimary.certificate ActualPrimary.modulation |
| 1273 | (ActualPrimary.choice B N0).prepared l.1 l.2 |
| 1274 | |
| 1275 | theorem associated_base_smooth : |
| 1276 | MeanIncrementBounds.SmoothTriple associatedStrip.domain (associatedContext (B := B)).base := by |
| 1277 | have hh := (CommonBaseContext.context_base_bounds ActualPrimary.certificate ActualPrimary.modulation |
| 1278 | ActualPrimary.upper B ActualPrimary.standardRegion (CommonWindow.index ActualPrimary.h)).smooth |
| 1279 | exact ⟨fun n => (hh.radial n).comp cycleAssoc.symm.contDiff.contDiffOn (fun _ hz => hz), |
| 1280 | fun n => (hh.angular n).comp cycleAssoc.symm.contDiff.contDiffOn (fun _ hz => hz), |
| 1281 | fun n => (hh.axial n).comp cycleAssoc.symm.contDiff.contDiffOn (fun _ hz => hz)⟩ |
| 1282 | |
| 1283 | theorem associated_radial_smooth (n : ℕ) : |
| 1284 | ContDiffOn ℝ ∞ (HarmonicResidual.contextFrame (associatedContext (B := B)) n).radial |
| 1285 | associatedStrip.domain := by |
| 1286 | apply associatedStrip.isOpen_domain.contDiffOn_iff.mpr |
| 1287 | intro z hz |
| 1288 | have hR : 0 < z.1.1 := BaseContextAssembly.nativeStrip_radius |
| 1289 | ActualPrimary.nominal ActualPrimary.standardRegion hz |
| 1290 | have hp : ContDiffAt ℝ ∞ (associatedContext (B := B)).operators.radialProfile z := by |
| 1291 | change ContDiffAt ℝ ∞ (fun y : Parameter × TorusInverse.Plane => |
| 1292 | ChartScales.radialExponent ActualPrimary.h * y.1.1 ^ (ChartScales.radialExponent ActualPrimary.h - 1)) z |
| 1293 | exact contDiffAt_const.mul (contDiffAt_fst.fst.rpow_const_of_ne hR.ne') |
| 1294 | exact contDiffAt_const.add ((contDiffAt_const.mul hp).smul contDiffAt_const) |
| 1295 | |
| 1296 | theorem pair_smooth {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 1297 | {U : Set D} {f : D → ℂ} (hf : ContDiffOn ℝ ∞ f U) (j : ℤ) : |
| 1298 | HarmonicResidual.SmoothCoefficients U (ErrorHarmonics.conjugatePair j f) := by |
| 1299 | have hh := HarmonicWaveInteraction.smoothCoefficients_single (hf.div_const 2) j |
| 1300 | exact hh.add hh.conjugateReverse |
| 1301 | |
| 1302 | theorem update_smooth {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1303 | {α : ℝ} (N : ℕ) |
| 1304 | (Hs : ∀ j ∈ modes N, LabelSumBounds.UniformWaveClass |
| 1305 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 1306 | nativeEnvelope α (currentSource x j)) |
| 1307 | (l : Label B N0) (S : ∀ j ∈ modes N, SupportData x l j) (n : ℕ) : |
| 1308 | (∀ i, HarmonicResidual.SmoothCoefficients associatedStrip.domain ((actualUpdate x l N).velocity n i)) ∧ |
| 1309 | HarmonicResidual.SmoothCoefficients associatedStrip.domain ((actualUpdate x l N).pressure n) := by |
| 1310 | have hj (j : ℤ) (h : j ∈ modes N) : j ≠ 0 := (mem_modes N j).mp h |>.1 |
| 1311 | have hsection : ContDiff ℝ ∞ (fun z : Parameter × TorusInverse.Plane => angleShuffle (z,0)) := |
| 1312 | (angleShuffle (P := Parameter)).contDiff.comp (contDiff_id.prodMk contDiff_const) |
| 1313 | have hmap : MapsTo (fun z : Parameter × TorusInverse.Plane => angleShuffle (z,0)) |
| 1314 | associatedStrip.domain (ParticularParameters.nativeStrip associatedStrip).domain := fun _ hz => hz |
| 1315 | constructor |
| 1316 | · intro i m |
| 1317 | change ContDiffOn ℝ ∞ ((∑ j ∈ modes N, |
| 1318 | ErrorHarmonics.conjugatePair j (fun z => (actualWave x l j).amplitude n (angleShuffle (z,0)) i)) m) _ |
| 1319 | rw [AddMonoidAlgebra.coeff_sum, Finsupp.finsetSum_apply] |
| 1320 | convert! ContDiffOn.sum (fun j h => pair_smooth |
| 1321 | ((contDiffOn_pi.mp (common_smooth Hc j (hj j h) (Hs j h) l (S j h) n).1 i).comp |
| 1322 | hsection.contDiffOn hmap) j m) using 1 |
| 1323 | ext y |
| 1324 | simp only [Finset.sum_apply, Function.comp_def] |
| 1325 | · intro m |
| 1326 | change ContDiffOn ℝ ∞ ((∑ j ∈ modes N, |
| 1327 | ErrorHarmonics.conjugatePair j (fun z => (actualWave x l j).pressure n (angleShuffle (z,0)))) m) _ |
| 1328 | rw [AddMonoidAlgebra.coeff_sum, Finsupp.finsetSum_apply] |
| 1329 | convert! ContDiffOn.sum (fun j h => pair_smooth |
| 1330 | ((common_smooth Hc j (hj j h) (Hs j h) l (S j h) n).2.comp |
| 1331 | hsection.contDiffOn hmap) j m) using 1 |
| 1332 | ext y |
| 1333 | simp only [Finset.sum_apply, Function.comp_def] |
| 1334 | |
| 1335 | abbrev SourceClasses (x : CycleState (Label B N0)) (N : ℕ) (α : ℝ) : Prop := |
| 1336 | ∀ j ∈ modes N, LabelSumBounds.UniformWaveClass |
| 1337 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 1338 | nativeEnvelope α (currentSource x j) |
| 1339 | |
| 1340 | theorem section_equation {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1341 | {α : ℝ} (j : ℤ) (hj : j ≠ 0) |
| 1342 | (Hs : LabelSumBounds.UniformWaveClass |
| 1343 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip slowStrip)) |
| 1344 | nativeEnvelope α (currentSource x j)) |
| 1345 | (l : Label B N0) (S : SupportData x l j) (n : ℕ) |
| 1346 | (z : (Parameter × TorusInverse.Plane) × ℝ) (hz : z.1 ∈ associatedStrip.domain) (i : Fin 3) : |
| 1347 | (actualWave x l j).harmonicResidual (ParticularParameters.nativeStrip associatedStrip) |
| 1348 | (directions (B := B)) n (angleShuffle z) i + |
| 1349 | residualSource (assembly x l).context (assembly x l).state (assembly x l).carrierBlock |
| 1350 | (assembly x l).gaussianInput (assembly x l).aliasInput j n z.1 i * |
| 1351 | HarmonicFields.character j ((assembly x l).carrierBlock.frequency n * |
| 1352 | (assembly x l).carrierBlock.phase n z.1 + |
| 1353 | ((assembly x l).carrierBlock.angularFrequency n : ℝ) * z.2) = |
| 1354 | ((data x l j).globalGood (ParticularParameters.nativeStrip associatedStrip) |
| 1355 | (directions (B := B)) n (angleShuffle (z.1,0)) i + |
| 1356 | (data x l j).globalGaussian (directions (B := B)) n (angleShuffle (z.1,0)) i) * |
| 1357 | HarmonicFields.character j ((assembly x l).carrierBlock.frequency n * |
| 1358 | (assembly x l).carrierBlock.phase n z.1 + |
| 1359 | ((assembly x l).carrierBlock.angularFrequency n : ℝ) * z.2) := by |
| 1360 | have hg := common_good_invariant x l j n |
| 1361 | have he := common_gaussian_invariant x l j n |
| 1362 | have hθ : (directions (B := B)).angular = (((0 : Parameter),1),(0 : TorusInverse.Plane)) := rfl |
| 1363 | rw [hθ] at hg he |
| 1364 | have hgs := invariant_angleShuffle hg z.1 z.2 |
| 1365 | have hes := invariant_angleShuffle he z.1 z.2 |
| 1366 | have hh := congrFun (common_cancellation Hc j hj Hs l S n (z := angleShuffle z) hz) i |
| 1367 | change (actualWave x l j).harmonicResidual (ParticularParameters.nativeStrip associatedStrip) |
| 1368 | (directions (B := B)) n (angleShuffle z) i + |
| 1369 | residualSource (assembly x l).context (assembly x l).state (assembly x l).carrierBlock |
| 1370 | (assembly x l).gaussianInput (assembly x l).aliasInput j n z.1 i * |
| 1371 | carrier ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).frequency n) |
| 1372 | ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).phase n) |
| 1373 | (angleShuffle z) = |
| 1374 | ((data x l j).globalGood (ParticularParameters.nativeStrip associatedStrip) |
| 1375 | (directions (B := B)) n (angleShuffle z) i + |
| 1376 | (data x l j).globalGaussian (directions (B := B)) n (angleShuffle z) i) * |
| 1377 | carrier ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).frequency n) |
| 1378 | ((actualCarrier (parameters x l).background (assembly x l).carrierBlock j).phase n) |
| 1379 | (angleShuffle z) at hh |
| 1380 | rw [actualCarrier_character (parameters x l).background (assembly x l).carrierBlock j |
| 1381 | (source_frequency_ne Hc l) n z, hgs, hes] at hh |
| 1382 | exact hh |
| 1383 | |
| 1384 | theorem cancellation_sum {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1385 | {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) |
| 1386 | (l : Label B N0) (S : ∀ j ∈ modes N, SupportData x l j) |
| 1387 | (hBand : (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state |
| 1388 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).BandLimited N) |
| 1389 | (n : ℕ) (z : (Parameter × TorusInverse.Plane) × ℝ) (hz : z.1 ∈ associatedStrip.domain) : |
| 1390 | (fun i => ∑ j ∈ modes N, ((actualWave x l j).harmonicResidual |
| 1391 | (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n (angleShuffle z) i).re) + |
| 1392 | (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state |
| 1393 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).oscillation n z = |
| 1394 | (actualGood x l N).oscillation n z + (actualGaussian x l N).oscillation n z := by |
| 1395 | apply finite_cancellation (assembly x l).context (assembly x l).state (assembly x l).carrierBlock |
| 1396 | (assembly x l).gaussianInput (assembly x l).aliasInput N hBand |
| 1397 | (fun j n z => (actualWave x l j).harmonicResidual (ParticularParameters.nativeStrip associatedStrip) |
| 1398 | (directions (B := B)) n (angleShuffle z)) |
| 1399 | (fun j n z => (data x l j).globalGood (ParticularParameters.nativeStrip associatedStrip) |
| 1400 | (directions (B := B)) n (angleShuffle (z,0))) |
| 1401 | (fun j n z => (data x l j).globalGaussian (directions (B := B)) n (angleShuffle (z,0))) n z |
| 1402 | intro j hj i |
| 1403 | exact section_equation Hc j ((mem_modes N j).mp hj).1 (Hs j hj) l (S j hj) n z hz i |
| 1404 | |
| 1405 | theorem context_linear_sum {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1406 | {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) |
| 1407 | (l : Label B N0) (S : ∀ j ∈ modes N, SupportData x l j) |
| 1408 | (n : ℕ) (z : (Parameter × TorusInverse.Plane) × ℝ) (hz : z.1 ∈ associatedStrip.domain) : |
| 1409 | linearBlockField (assembly x l).context (assembly x l).carrierBlock (actualUpdate x l N) n z = |
| 1410 | fun i => ∑ j ∈ modes N, ((actualWave x l j).harmonicResidual |
| 1411 | (ParticularParameters.nativeStrip associatedStrip) (directions (B := B)) n (angleShuffle z) i).re := by |
| 1412 | have hu := update_represents Hc l N |
| 1413 | have hv (j : ℤ) (hj : j ∈ modes N) (i : Fin 3) := |
| 1414 | wave_smooth Hc j ((mem_modes N j).mp hj).1 (Hs j hj) l (S j hj) n i |
| 1415 | have hp (j : ℤ) (hj : j ∈ modes N) := |
| 1416 | pressure_smooth Hc j ((mem_modes N j).mp hj).1 (Hs j hj) l (S j hj) n |
| 1417 | have hvs (i : Fin 3) : ContDiffOn ℝ ∞ |
| 1418 | (fun y => (actualUpdate x l N).oscillation n y i) (HarmonicResidual.liftDomain associatedStrip.domain) := by |
| 1419 | rw [hu.1] |
| 1420 | exact ContDiffOn.sum (fun j hj => Complex.reCLM.contDiff.comp_contDiffOn (hv j hj i)) |
| 1421 | have hps : ContDiffOn ℝ ∞ ((actualUpdate x l N).oscillatoryPressure n) |
| 1422 | (HarmonicResidual.liftDomain associatedStrip.domain) := by |
| 1423 | rw [hu.2] |
| 1424 | exact ContDiffOn.sum (fun j hj => Complex.reCLM.contDiff.comp_contDiffOn (hp j hj)) |
| 1425 | have hcarrier : SameCarrier (assembly x l).carrierBlock (actualUpdate x l N) := ⟨rfl,rfl,rfl⟩ |
| 1426 | have hr : ContDiffOn ℝ ∞ (radialDirection (assembly x l).context n) |
| 1427 | (HarmonicResidual.liftDomain associatedStrip.domain) := |
| 1428 | HarmonicResidual.liftDirection_smooth (associated_radial_smooth n) |
| 1429 | have hB := associated_base_smooth (B := B) |
| 1430 | rw [linearBlockField_eq_real associatedStrip.isOpen_domain (assembly x l).context |
| 1431 | (assembly x l).carrierBlock (actualUpdate x l N) n hr contDiffOn_const hB |
| 1432 | (by simpa only [withCarrier_of_same hcarrier] using hvs) |
| 1433 | (by simpa only [withCarrier_of_same hcarrier] using hps) ⟨hz,trivial⟩, |
| 1434 | withCarrier_of_same hcarrier, hu.1, hu.2] |
| 1435 | have he := real_linearResidual_sum (Vθ := angularDirection) (modes N) |
| 1436 | (HarmonicResidual.liftDomain_open associatedStrip.isOpen_domain) |
| 1437 | ((assembly x l).context.operators.epsilon n) |
| 1438 | (fun y : (Parameter × TorusInverse.Plane) × ℝ => (assembly x l).context.operators.radius y.1) |
| 1439 | (timeDirection (assembly x l).context n) hr contDiffOn_const |
| 1440 | (show ContDiffOn ℝ ∞ (axialDirection (assembly x l).context n) |
| 1441 | (HarmonicResidual.liftDomain associatedStrip.domain) from contDiffOn_const) |
| 1442 | (contextRealBase (assembly x l).context n) |
| 1443 | (fun j y => vectorMode ((actualWave x l j).frequency n) ((actualWave x l j).phase n) |
| 1444 | ((actualWave x l j).amplitude n) (angleShuffle y)) |
| 1445 | (fun j y => mode ((actualWave x l j).frequency n) ((actualWave x l j).phase n) |
| 1446 | ((actualWave x l j).pressure n) (angleShuffle y)) hv hp |
| 1447 | (fun i => ((contextRealBase_smooth hB n i).contDiffAt |
| 1448 | ((HarmonicResidual.liftDomain_open associatedStrip.isOpen_domain).mem_nhds ⟨hz,trivial⟩)).differentiableAt (by simp)) |
| 1449 | ⟨hz,trivial⟩ |
| 1450 | rw [← complexBase_eq_realLift] at he |
| 1451 | rw [he] |
| 1452 | funext i |
| 1453 | apply Finset.sum_congr rfl |
| 1454 | intro j hj |
| 1455 | exact congrArg (fun f => (f i).re) ((parameters x l).native_context_residual associatedStrip (assembly x l).context |
| 1456 | (assembly x l).state (assembly x l).carrierBlock (assembly x l).gaussianInput |
| 1457 | (assembly x l).aliasInput j (associated_frame_match l) n z).symm |
| 1458 | |
| 1459 | theorem context_linear_cancellation_of_support {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1460 | {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) |
| 1461 | (l : Label B N0) (S : ∀ j ∈ modes N, SupportData x l j) |
| 1462 | (hBand : (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state |
| 1463 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).BandLimited N) |
| 1464 | (n : ℕ) (z : (Parameter × TorusInverse.Plane) × ℝ) (hz : z.1 ∈ associatedStrip.domain) : |
| 1465 | linearBlockField (assembly x l).context (assembly x l).carrierBlock (actualUpdate x l N) n z + |
| 1466 | (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state |
| 1467 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).oscillation n z = |
| 1468 | (actualGood x l N).oscillation n z + (actualGaussian x l N).oscillation n z := by |
| 1469 | rw [context_linear_sum Hc N Hs l S n z hz] |
| 1470 | exact cancellation_sum Hc N Hs l S hBand n z hz |
| 1471 | |
| 1472 | theorem full_divergence_zero {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1473 | {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) |
| 1474 | (l : Label B N0) (S : ∀ j ∈ modes N, SupportData x l j) |
| 1475 | (n : ℕ) (z : (Parameter × TorusInverse.Plane) × ℝ) (hz : z.1 ∈ associatedStrip.domain) : |
| 1476 | cylindricalDivergence (fun y => (assembly x l).context.operators.radius y.1) |
| 1477 | (radialDirection (assembly x l).context n) angularDirection |
| 1478 | (axialDirection (assembly x l).context n) |
| 1479 | (fun y i => ((actualUpdate x l N).oscillation n y i : ℂ)) z = 0 := by |
| 1480 | rw [(update_represents Hc l N).1] |
| 1481 | apply real_divergence_sum_zero (modes N) |
| 1482 | · intro j hj i |
| 1483 | exact ((wave_smooth Hc j ((mem_modes N j).mp hj).1 (Hs j hj) l (S j hj) n i).contDiffAt |
| 1484 | ((HarmonicResidual.liftDomain_open associatedStrip.isOpen_domain).mem_nhds ⟨hz,trivial⟩)).differentiableAt (by simp) |
| 1485 | · intro j hj |
| 1486 | rw [(parameters x l).native_context_divergence associatedStrip (assembly x l).context (associated_frame_match l)] |
| 1487 | exact common_divergence_zero Hc j ((mem_modes N j).mp hj).1 (Hs j hj) l (S j hj) n hz |
| 1488 | |
| 1489 | theorem modeSolenoidal_of_support {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1490 | {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) |
| 1491 | (l : Label B N0) (S : ∀ j ∈ modes N, SupportData x l j) : |
| 1492 | HarmonicWaveInteraction.ModeSolenoidal associatedStrip (assembly x l).context (actualUpdate x l N) := by |
| 1493 | apply HarmonicWaveInteraction.modeSolenoidal_of_full (assembly x l).context (actualUpdate x l N) |
| 1494 | · exact source_phase_smooth Hc l |
| 1495 | · exact source_angular_ne Hc l |
| 1496 | · intro n |
| 1497 | exact (update_smooth Hc N Hs l S n).1 |
| 1498 | · exact full_divergence_zero Hc N Hs l S |
| 1499 | |
| 1500 | /-- Actual incoming support and source classes imply solenoidality of |
| 1501 | the finite particular correction. -/ |
| 1502 | theorem modeSolenoidal {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1503 | (hs : ActualParticularStageControls.InputSupport x) |
| 1504 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 1505 | {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) (l : Label B N0) : |
| 1506 | HarmonicWaveInteraction.ModeSolenoidal associatedStrip (assembly x l).context (actualUpdate x l N) := |
| 1507 | modeSolenoidal_of_support Hc N Hs l (fun j _ => supportData x hs hN l j) |
| 1508 | |
| 1509 | /-- The actual current residual is cancelled by the finite common-cover |
| 1510 | solve, with the computed retained and Gaussian terms on the right. -/ |
| 1511 | theorem context_linear_cancellation {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1512 | (hs : ActualParticularStageControls.InputSupport x) |
| 1513 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 1514 | {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) (l : Label B N0) |
| 1515 | (hBand : (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state |
| 1516 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).BandLimited N) |
| 1517 | (n : ℕ) (z : (Parameter × TorusInverse.Plane) × ℝ) (hz : z.1 ∈ associatedStrip.domain) : |
| 1518 | linearBlockField (assembly x l).context (assembly x l).carrierBlock (actualUpdate x l N) n z + |
| 1519 | (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state |
| 1520 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).oscillation n z = |
| 1521 | (actualGood x l N).oscillation n z + (actualGaussian x l N).oscillation n z := |
| 1522 | context_linear_cancellation_of_support Hc N Hs l (fun j _ => supportData x hs hN l j) hBand n z hz |
| 1523 | |
| 1524 | noncomputable def cycleUpdate (x : CycleState (Label B N0)) (l : Label B N0) (N : ℕ) := |
| 1525 | StateReindex.block cycleAssoc (actualUpdate x l N) |
| 1526 | |
| 1527 | theorem cycle_modeSolenoidal {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1528 | (hs : ActualParticularStageControls.InputSupport x) |
| 1529 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 1530 | {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) (l : Label B N0) : |
| 1531 | HarmonicWaveInteraction.ModeSolenoidal |
| 1532 | (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion) |
| 1533 | (ActualPrimary.commonContext B) (cycleUpdate x l N) := by |
| 1534 | have hh := ModeSolenoidalReindex.modeSolenoidal_pull cycleAssoc (modeSolenoidal Hc hs hN N Hs l) |
| 1535 | simp only [assembly, associatedStrip, associatedContext, MeanBoundsReindex.strip_roundtrip, |
| 1536 | StateReindex.context_roundtrip] at hh ⊢ |
| 1537 | exact hh |
| 1538 | |
| 1539 | theorem actualUpdate_eq_canonical {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1540 | (l : Label B N0) (N : ℕ) : actualUpdate x l N = |
| 1541 | (canonicalParameters l).updateBlock associatedStrip (assembly x l).context (assembly x l).state |
| 1542 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput N := by |
| 1543 | unfold actualUpdate |
| 1544 | rw [parameters_eq_canonical x l (carrier_frequency Hc l)] |
| 1545 | |
| 1546 | |
| 1547 | theorem linearBlockField_pull {D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 1548 | [NormedAddCommGroup E] [NormedSpace ℝ E] (e : D ≃ₗᵢ[ℝ] E) |
| 1549 | (c : Context E) (a b : HarmonicBlock E) (n : ℕ) (z : D × ℝ) : |
| 1550 | linearBlockField (StateReindex.context e c) (StateReindex.block e a) (StateReindex.block e b) n z = |
| 1551 | linearBlockField c a b n (StateReindex.cylinder e z) := by |
| 1552 | have hcar : HarmonicWaveInteraction.withCarrier (StateReindex.block e a) (StateReindex.block e b) = |
| 1553 | StateReindex.block e (HarmonicWaveInteraction.withCarrier a b) := rfl |
| 1554 | have he := StateReindex.linearResidual_field_pull (StateReindex.cylinder e) (c.operators.epsilon n) |
| 1555 | (fun y : E × ℝ => c.operators.radius y.1) (radialDirection c n) angularDirection |
| 1556 | (axialDirection c n) (timeDirection c n) (complexBase c n) |
| 1557 | (LinearWaveResidual.realLift ((HarmonicWaveInteraction.withCarrier a b).oscillation n)) |
| 1558 | (fun y => ((HarmonicWaveInteraction.withCarrier a b).oscillatoryPressure n y : ℂ)) z |
| 1559 | have hθ : StateReindex.vector (StateReindex.cylinder e) (angularDirection (D := E)) = |
| 1560 | angularDirection (D := D) := by |
| 1561 | funext y |
| 1562 | change (e.symm 0, (1 : ℝ)) = (0,1) |
| 1563 | rw [map_zero] |
| 1564 | have hr : radialDirection (StateReindex.context e c) n = |
| 1565 | StateReindex.vector (StateReindex.cylinder e) (radialDirection c n) := |
| 1566 | StateReindex.radialDirection_pull e c n |
| 1567 | have hz : axialDirection (StateReindex.context e c) n = |
| 1568 | StateReindex.vector (StateReindex.cylinder e) (axialDirection c n) := |
| 1569 | StateReindex.axialDirection_pull e c n |
| 1570 | have ht : timeDirection (StateReindex.context e c) n = |
| 1571 | StateReindex.vector (StateReindex.cylinder e) (timeDirection c n) := |
| 1572 | StateReindex.timeDirection_pull e c n |
| 1573 | have hb : complexBase (StateReindex.context e c) n = |
| 1574 | fun y => complexBase c n (StateReindex.cylinder e y) := rfl |
| 1575 | rw [hθ] at he |
| 1576 | unfold linearBlockField |
| 1577 | rw [hcar, StateReindex.block_oscillation, StateReindex.block_pressure, |
| 1578 | hr, hz, ht, hb] |
| 1579 | exact congrArg (fun f => fun i => (f i).re) he |
| 1580 | |
| 1581 | |
| 1582 | theorem cycle_context_linear_cancellation {x : CycleState (Label B N0)} (Hc : PreservesCarriers x) |
| 1583 | (hs : ActualParticularStageControls.InputSupport x) |
| 1584 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 1585 | {α : ℝ} (N : ℕ) (Hs : SourceClasses x N α) (l : Label B N0) |
| 1586 | (hBand : (HarmonicResidual.residualBlock (ActualPrimary.commonContext B) x.state |
| 1587 | (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l)).BandLimited N) |
| 1588 | (n : ℕ) (z : CyclePoint × ℝ) |
| 1589 | (hz : z.1 ∈ (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion).domain) : |
| 1590 | linearBlockField (ActualPrimary.commonContext B) (x.coefficients.blocks l) (cycleUpdate x l N) n z + |
| 1591 | (HarmonicResidual.residualBlock (ActualPrimary.commonContext B) x.state |
| 1592 | (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l)).oscillation n z = |
| 1593 | (StateReindex.block cycleAssoc (actualGood x l N)).oscillation n z + |
| 1594 | (StateReindex.block cycleAssoc (actualGaussian x l N)).oscillation n z := by |
| 1595 | have hBand' : (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state |
| 1596 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).BandLimited N := by |
| 1597 | change (HarmonicResidual.residualBlock (StateReindex.context cycleAssoc.symm (ActualPrimary.commonContext B)) |
| 1598 | (StateReindex.state cycleAssoc.symm x.state) (StateReindex.block cycleAssoc.symm (x.coefficients.blocks l)) |
| 1599 | (StateReindex.blockCoefficients cycleAssoc.symm (x.coefficients.gaussian l)) |
| 1600 | (StateReindex.blockCoefficients cycleAssoc.symm (x.coefficients.aliasCoefficients l))).BandLimited N |
| 1601 | rw [StateReindex.residualBlock_pull] |
| 1602 | exact StateReindex.block_bandLimited cycleAssoc.symm hBand |
| 1603 | have hz' : (StateReindex.cylinder cycleAssoc z).1 ∈ associatedStrip.domain := by |
| 1604 | change cycleAssoc.symm (cycleAssoc z.1) ∈ |
| 1605 | (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion).domain |
| 1606 | simpa only [cycleAssoc.symm_apply_apply] using hz |
| 1607 | have hh := context_linear_cancellation Hc hs hN N Hs l hBand' n (StateReindex.cylinder cycleAssoc z) hz' |
| 1608 | have hlin := linearBlockField_pull cycleAssoc (assembly x l).context (assembly x l).carrierBlock |
| 1609 | (actualUpdate x l N) n z |
| 1610 | have hlin' : linearBlockField (ActualPrimary.commonContext B) (x.coefficients.blocks l) (cycleUpdate x l N) n z = |
| 1611 | linearBlockField (assembly x l).context (assembly x l).carrierBlock (actualUpdate x l N) n |
| 1612 | (StateReindex.cylinder cycleAssoc z) := by |
| 1613 | simp only [assembly, associatedContext, StateReindex.context_roundtrip, |
| 1614 | StateReindex.block_roundtrip] at hlin ⊢ |
| 1615 | exact hlin |
| 1616 | have hres : (HarmonicResidual.residualBlock (assembly x l).context (assembly x l).state |
| 1617 | (assembly x l).carrierBlock (assembly x l).gaussianInput (assembly x l).aliasInput).oscillation n |
| 1618 | (StateReindex.cylinder cycleAssoc z) = |
| 1619 | (HarmonicResidual.residualBlock (ActualPrimary.commonContext B) x.state |
| 1620 | (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l)).oscillation n z := by |
| 1621 | change (HarmonicResidual.residualBlock (StateReindex.context cycleAssoc.symm (ActualPrimary.commonContext B)) |
| 1622 | (StateReindex.state cycleAssoc.symm x.state) (StateReindex.block cycleAssoc.symm (x.coefficients.blocks l)) |
| 1623 | (StateReindex.blockCoefficients cycleAssoc.symm (x.coefficients.gaussian l)) |
| 1624 | (StateReindex.blockCoefficients cycleAssoc.symm (x.coefficients.aliasCoefficients l))).oscillation n _ = _ |
| 1625 | rw [StateReindex.residualBlock_pull, StateReindex.block_oscillation] |
| 1626 | simp only [StateReindex.oscillation, StateReindex.cylinder_apply, |
| 1627 | cycleAssoc.symm_apply_apply, Prod.eta] |
| 1628 | rw [hres] at hh |
| 1629 | rw [hlin', StateReindex.block_oscillation, StateReindex.block_oscillation] |
| 1630 | exact hh |
| 1631 | |
| 1632 | |
| 1633 | end NavierStokes.ActualParticularDynamics |