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.ActualPeriodizedSignedRealization |
| 2 | import NavierStokes.ActualSignedGeometry |
| 3 | import NavierStokes.PhysicalStageBounds |
| 4 | import NavierStokes.MixedAxisPreservation |
| 5 | import NavierStokes.CartesianCopySource |
| 6 | |
| 7 | /-! |
| 8 | # Physical data of the actual native signed copies |
| 9 | |
| 10 | The primitive signed quotient is unchanged. Its compact auxiliary cutoff |
| 11 | is repartitioned exactly, and the physical carrier uses the midpoint of |
| 12 | each actual lattice-translated slot. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace NavierStokes.ActualSignedPhysicalData |
| 18 | |
| 19 | open Set Function Filter ProblemStatement HarmonicCalculus LinearWaveBounds WeightedClasses |
| 20 | open scoped Topology ContDiff BigOperators InnerProductSpace |
| 21 | |
| 22 | attribute [local instance] Classical.propDecidable |
| 23 | |
| 24 | abbrev Plane := TorusInverse.Plane |
| 25 | abbrev Frequency := TorusInverse.Frequency |
| 26 | abbrev Cylinder := PhysicalResidualBridge.Cylinder |
| 27 | abbrev LiftPoint := PhysicalGraphBounds.LiftPoint |
| 28 | abbrev Mat2 := SmoothCovariance.Mat2 |
| 29 | abbrev Vec2 := SmoothCovariance.Vec2 |
| 30 | |
| 31 | section Repartition |
| 32 | |
| 33 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 34 | (a : WaveCoefficients D) (s : StripData D) (d : GraphDirections D) |
| 35 | (H : ℕ → D → Mat2) (T R : ℕ → D → Vec2) |
| 36 | (mask factor cutoff : ℕ → D → ℝ) (unit Ndot : ℕ → D → Space) |
| 37 | (A : ℕ → D → Space →L[ℝ] Space) (j : Fin 2) |
| 38 | |
| 39 | end Repartition |
| 40 | |
| 41 | section Copies |
| 42 | |
| 43 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {K : Type} |
| 44 | |
| 45 | end Copies |
| 46 | |
| 47 | section Geometry |
| 48 | |
| 49 | variable {D h : ℝ} |
| 50 | (sys : PartitionedCovariance.SlotSystem D h ActualSignedGeometry.radialVector ActualSignedGeometry.temporalVector) |
| 51 | |
| 52 | noncomputable def geometry (label : SlotColoring.Label) (gap : ℕ) : CommonCoverSolve.Geometry := |
| 53 | ActualSignedGeometry.slotGeometry sys ActualSignedGeometry.vectors_det label gap |
| 54 | |
| 55 | /-- The carrier center is the midpoint of the physical slot, including |
| 56 | this copy's own lattice translation. -/ |
| 57 | noncomputable def center (label : SlotColoring.Label) (k : Frequency) : Plane := |
| 58 | PartitionedCovariance.slotCenter h label + TorusAverages.latticePoint k |
| 59 | |
| 60 | theorem center_eq_anchor (label : SlotColoring.Label) (gap : ℕ) (k : Frequency) : |
| 61 | center (h := h) label k = PhysicalCopyBounds.nativeCenter (geometry sys label gap) k + |
| 62 | sys.radius • ActualSignedGeometry.temporalVector := by |
| 63 | change _ = (PartitionedCovariance.slotCenter h label - sys.radius • ActualSignedGeometry.temporalVector + |
| 64 | TorusAverages.latticePoint k) + sys.radius • ActualSignedGeometry.temporalVector |
| 65 | unfold center |
| 66 | abel |
| 67 | |
| 68 | theorem eta_basis (label : SlotColoring.Label) (gap : ℕ) (z : Plane) : |
| 69 | PhysicalGraphBounds.etaCoordinate ((geometry sys label gap).basis z) = |
| 70 | ChartScales.timeCoefficient h label.1 * z.2 := by |
| 71 | rw [geometry, ActualSignedGeometry.slotGeometry_basis, map_add, map_smul, map_smul] |
| 72 | change z.1 * PhysicalGraphBounds.etaCoordinate PhysicalGraphBounds.radialDirection + |
| 73 | (ChartScales.timeCoefficient h label.1 * z.2) * |
| 74 | PhysicalGraphBounds.etaCoordinate PhysicalGraphBounds.timeDirection = _ |
| 75 | rw [PhysicalGraphBounds.etaCoordinate_radial, PhysicalGraphBounds.etaCoordinate_time] |
| 76 | ring |
| 77 | |
| 78 | theorem eta_offset (label : SlotColoring.Label) (gap : ℕ) (k : Frequency) (Y : Plane) : |
| 79 | PhysicalGraphBounds.etaCoordinate (CommonCoverSolve.coverPower gap Y - center (h := h) label k) = |
| 80 | ChartScales.timeCoefficient h label.1 * ((geometry sys label gap).coordinates k Y).2 - sys.radius := by |
| 81 | rw [center_eq_anchor sys label gap k, ← sub_sub, map_sub, map_smul] |
| 82 | have he := PhysicalCopyBounds.native_offset (geometry sys label gap) k Y |
| 83 | change CommonCoverSolve.coverPower gap Y - _ = _ at he |
| 84 | rw [he, eta_basis] |
| 85 | change _ - sys.radius * PhysicalGraphBounds.etaCoordinate PhysicalGraphBounds.timeDirection = _ |
| 86 | rw [PhysicalGraphBounds.etaCoordinate_time, mul_one] |
| 87 | |
| 88 | /-- The physical `+ radius` convention recovers the native clock exactly; |
| 89 | using the lower endpoint as carrier center would count this shift twice. -/ |
| 90 | theorem clock_eq_native (label : SlotColoring.Label) (gap : ℕ) (k : Frequency) (Y : Plane) : |
| 91 | (PhysicalGraphBounds.etaCoordinate (CommonCoverSolve.coverPower gap Y - center (h := h) label k) + sys.radius) / |
| 92 | ChartScales.timeCoefficient h label.1 = ((geometry sys label gap).coordinates k Y).2 := by |
| 93 | rw [eta_offset] |
| 94 | field_simp [(ChartScales.timeCoefficient_pos h label.1).ne'] ; ring |
| 95 | |
| 96 | theorem width_on_core (label : SlotColoring.Label) (gap : ℕ) (k : Frequency) (Y : Plane) |
| 97 | (hy : (geometry sys label gap).coordinates k Y ∈ (ActualSignedGeometry.clockWindow sys label.1).core) : |
| 98 | |PhysicalGraphBounds.etaCoordinate (CommonCoverSolve.coverPower gap Y - center (h := h) label k)| ≤ sys.radius := by |
| 99 | rw [eta_offset] |
| 100 | have hci := ChartScales.timeCoefficient_pos h label.1 |
| 101 | have hv : 0 ≤ ((geometry sys label gap).coordinates k Y).2 ∧ |
| 102 | ((geometry sys label gap).coordinates k Y).2 ≤ ChartScales.slotLength sys.radius h label.1 := hy.2 |
| 103 | have hb := mul_le_mul_of_nonneg_left hv.2 hci.le |
| 104 | have he : ChartScales.timeCoefficient h label.1 * ChartScales.slotLength sys.radius h label.1 = |
| 105 | 2 * sys.radius := by |
| 106 | unfold ChartScales.slotLength |
| 107 | field_simp |
| 108 | exact abs_le.mpr ⟨by linarith [mul_nonneg hci.le hv.1], by linarith⟩ |
| 109 | |
| 110 | noncomputable def nativeMask (label : SlotColoring.Label) (z : Plane) : ℝ := |
| 111 | PartitionedCovariance.cutoff sys.radius z.1 * |
| 112 | PrimaryCopyBounds.outerCutoff (z.2 / ChartScales.slotLength sys.radius h label.1) |
| 113 | |
| 114 | theorem nativeMask_smooth (label : SlotColoring.Label) : ContDiff ℝ ∞ (nativeMask sys label) := |
| 115 | ((SquaredPartition.gridMask_smooth sys.radius 0).comp contDiff_fst).mul |
| 116 | (PrimaryCopyBounds.outerCutoff_smooth.comp (contDiff_snd.div_const _)) |
| 117 | |
| 118 | theorem nativeMask_support (label : SlotColoring.Label) : |
| 119 | support (nativeMask sys label) ⊆ (ActualSignedGeometry.clockWindow sys label.1).core := by |
| 120 | intro z hz |
| 121 | have hn := mul_ne_zero_iff.mp hz |
| 122 | have hu : z.1 ∈ Ioo (-sys.radius) sys.radius := by |
| 123 | rw [← PartitionedCovariance.cutoff_support sys.radius_pos] |
| 124 | exact hn.1 |
| 125 | have hv := PrimaryCopyBounds.outerCutoff_support |
| 126 | (subset_tsupport PrimaryCopyBounds.outerCutoff hn.2) |
| 127 | have hL : 0 < ChartScales.slotLength sys.radius h label.1 := |
| 128 | div_pos (mul_pos (by norm_num) sys.radius_pos) (ChartScales.timeCoefficient_pos _ _) |
| 129 | have hv0 : 0 ≤ z.2 := by |
| 130 | have he := (le_div_iff₀ hL).mp (show 0 ≤ z.2 / _ by linarith [hv.1]) |
| 131 | simpa only [zero_mul] using he |
| 132 | have hv1 : z.2 ≤ ChartScales.slotLength sys.radius h label.1 := |
| 133 | (div_le_one hL).mp (by linarith [hv.2]) |
| 134 | exact ⟨⟨hu.1.le, hu.2.le⟩, hv0, hv1⟩ |
| 135 | |
| 136 | /-- The concrete compact native layout used to periodize the same signed |
| 137 | reference. Its geometry is the existing selected slot geometry. -/ |
| 138 | noncomputable def layout (hh : 0 ≤ h) (label : SlotColoring.Label) (hl : 4 ≤ label.1) |
| 139 | (gap : ℕ) : ActualPeriodizedSignedRealization.Layout where |
| 140 | geometry _ := geometry sys label gap |
| 141 | window _ := ActualSignedGeometry.clockWindow sys label.1 |
| 142 | length _ := ChartScales.slotLength sys.radius h label.1 |
| 143 | length_pos _ := div_pos (mul_pos (by norm_num) sys.radius_pos) (ChartScales.timeCoefficient_pos _ _) |
| 144 | cutoff _ := nativeMask sys label |
| 145 | cutoff_smooth _ := nativeMask_smooth sys label |
| 146 | cutoff_support _ := nativeMask_support sys label |
| 147 | injective _ := ActualSignedGeometry.clockWindow_injective sys ActualSignedGeometry.vectors_det hh hl gap |
| 148 | |
| 149 | /-- The actual native carrier, retaining the individual lattice midpoint. -/ |
| 150 | noncomputable def carrier (label : SlotColoring.Label) (k : Frequency) |
| 151 | (p pz x0 : ℝ) (F G : PhysicalGraphBounds.Slow → ℝ) : PhysicalWaveSum.CarrierData where |
| 152 | chart := 0 |
| 153 | center := center (h := h) label k |
| 154 | angular := p |
| 155 | axial := pz |
| 156 | radial := x0 |
| 157 | F := F |
| 158 | G := G |
| 159 | |
| 160 | /-- Polar coordinates are used only as a chart for the actual Cartesian |
| 161 | lift; the free torus coordinate remains unchanged. -/ |
| 162 | noncomputable def cylinderAt (a : ℝ) (chart : PolarCharts.Index) (x : LiftPoint) : Cylinder := |
| 163 | (((PolarCharts.chart a chart (PhysicalGraphBounds.liftXY x)).1, |
| 164 | (PhysicalGraphBounds.liftZT x, x.2)), |
| 165 | (PolarCharts.chart a chart (PhysicalGraphBounds.liftXY x)).2) |
| 166 | |
| 167 | theorem slotMap_eq_native (label : SlotColoring.Label) (gap : ℕ) (k : Frequency) |
| 168 | (a : ℝ) (chart : PolarCharts.Index) (x : LiftPoint) : |
| 169 | PhysicalGraphBounds.slotMap (PolarCharts.chart a chart) |
| 170 | (ChartScales.timeCoefficient h label.1) (center (h := h) label k) sys.radius |
| 171 | (PhysicalWaveSum.upLift gap x) = |
| 172 | ActualSignedGeometry.slotCoordinates (geometry sys label gap) k (cylinderAt a chart x) := by |
| 173 | rw [PhysicalGraphBounds.slotMap_formula] |
| 174 | change (((PolarCharts.chart a chart (PhysicalGraphBounds.liftXY x)).1, PhysicalGraphBounds.liftZT x), |
| 175 | ((PolarCharts.chart a chart (PhysicalGraphBounds.liftXY x)).2, |
| 176 | (PhysicalGraphBounds.etaCoordinate (CommonCoverSolve.coverPower gap x.2 - center label k) + sys.radius) / |
| 177 | ChartScales.timeCoefficient h label.1)) = _ |
| 178 | rw [clock_eq_native] |
| 179 | rfl |
| 180 | |
| 181 | theorem carrier_phase_eq_native (label : SlotColoring.Label) (gap : ℕ) (k : Frequency) |
| 182 | (p pz x0 : ℝ) (F G : PhysicalGraphBounds.Slow → ℝ) |
| 183 | (a : ℝ) (chart : PolarCharts.Index) (x : LiftPoint) : |
| 184 | ((carrier (h := h) label k p pz x0 F G).withChart chart).phase a h label.1 sys.radius |
| 185 | (PhysicalWaveSum.upLift gap x) = |
| 186 | PhaseCalculus.phase (ChartScales.epsilon h label.1) p pz x0 F G |
| 187 | (ActualSignedGeometry.slotCoordinates (geometry sys label gap) k (cylinderAt a chart x)) := by |
| 188 | change PhaseCalculus.phase (ChartScales.epsilon h label.1) p pz x0 F G |
| 189 | (PhysicalGraphBounds.slotMap (PolarCharts.chart a chart) |
| 190 | (ChartScales.timeCoefficient h label.1) (center label k) sys.radius |
| 191 | (PhysicalWaveSum.upLift gap x)) = _ |
| 192 | rw [slotMap_eq_native] |
| 193 | |
| 194 | end Geometry |
| 195 | |
| 196 | section ActualCopies |
| 197 | |
| 198 | variable {D h : ℝ} |
| 199 | (sys : PartitionedCovariance.SlotSystem D h ActualSignedGeometry.radialVector ActualSignedGeometry.temporalVector) |
| 200 | (hh : 0 ≤ h) (label : SlotColoring.Label) (hl : 4 ≤ label.1) (gap : ℕ) |
| 201 | {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} (B : PhysicalSignedWave.PrimaryData U) |
| 202 | {reference : ℕ} (V : B.Views reference) |
| 203 | |
| 204 | noncomputable def dynamicCoefficients (request : ℕ → Cylinder → Vec2) (j : Fin 2) (k : Frequency) : |
| 205 | WaveCoefficients Cylinder := |
| 206 | ActualPeriodizedSignedRealization.coefficientsWith B (layout sys hh label hl gap) V request j |
| 207 | (ActualPeriodizedSignedRealization.sharedMask B V) |
| 208 | (ActualPeriodizedSignedRealization.nativeUnit B (layout sys hh label hl gap) V j k) |
| 209 | |
| 210 | /-- The raw mask carries only the slow cutoff. The transverse mask and |
| 211 | Gaussian together form the final compact native cutoff. -/ |
| 212 | noncomputable def dynamicCopyData (request : ℕ → Cylinder → Vec2) (j : Fin 2) : |
| 213 | PeriodizedWaveBounds.CopyData Cylinder Frequency where |
| 214 | background := (ActualPeriodizedSignedRealization.periodizedPrimary B (layout sys hh label hl gap)).viewBase |
| 215 | V.background V.frequency (fun n => V.map n) reference |
| 216 | amplitude n k := (dynamicCoefficients sys hh label hl gap B V request j k).amplitude n |
| 217 | pressure n k := (dynamicCoefficients sys hh label hl gap B V request j k).pressure n |
| 218 | cutoff n k x := PartitionedCovariance.cutoff sys.radius |
| 219 | ((geometry sys label gap).coordinates k (V.map n x).1.2.2).1 * |
| 220 | (layout sys hh label hl gap).nativeGaussian reference k (V.map n x).1.2.2 |
| 221 | source := fun _ _ => 0 |
| 222 | |
| 223 | end ActualCopies |
| 224 | |
| 225 | /-! ## Literal physical copies of the same signed reference data -/ |
| 226 | |
| 227 | /-- An actual active label, retaining the native slot label and its band |
| 228 | bound without selecting data for omitted labels. -/ |
| 229 | structure NativeLabel (active : Set PhysicalWaveSum.BandLabel) where |
| 230 | val : SlotColoring.Label |
| 231 | property : 4 ≤ val.1 |
| 232 | mem : (⟨val, property⟩ : PhysicalWaveSum.BandLabel) ∈ active |
| 233 | |
| 234 | instance {active : Set PhysicalWaveSum.BandLabel} : |
| 235 | CoeOut (NativeLabel active) PhysicalWaveSum.BandLabel := ⟨fun L => ⟨L.val, L.property⟩⟩ |
| 236 | |
| 237 | /-- The same primary/view/state triple is stored only for actual active |
| 238 | labels. Omitted physical labels will be exactly zero. -/ |
| 239 | structure SignedFamily (U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow) where |
| 240 | active : Set PhysicalWaveSum.BandLabel |
| 241 | primary : NativeLabel active → PhysicalSignedWave.PrimaryData U |
| 242 | view : (L : NativeLabel active) → (primary L).Views L.val.1 |
| 243 | state : (L : NativeLabel active) → (view L).StateData |
| 244 | column : NativeLabel active → Fin 2 |
| 245 | |
| 246 | noncomputable def positiveIndex (L : PhysicalWaveSum.BandLabel) : PhysicalWaveSum.WaveIndex 1 := |
| 247 | (L, ⟨1, by decide⟩) |
| 248 | |
| 249 | noncomputable def cylinderZero (x : LiftPoint) : Cylinder := |
| 250 | ((PolarCharts.radius (PhysicalGraphBounds.liftXY x), (PhysicalGraphBounds.liftZT x, x.2)), 0) |
| 251 | |
| 252 | /-- Rotation into Cartesian components using the actual Cartesian |
| 253 | coordinates. No choice of angular branch appears in the amplitude. -/ |
| 254 | noncomputable def rotateCoefficient (Y : Plane) (v : ComplexVector) : ComplexVector := |
| 255 | ![(Y.1 / PolarCharts.radius Y : ℝ) • v 0 - (Y.2 / PolarCharts.radius Y : ℝ) • v 1, |
| 256 | (Y.2 / PolarCharts.radius Y : ℝ) • v 0 + (Y.1 / PolarCharts.radius Y : ℝ) • v 1, |
| 257 | v 2] |
| 258 | |
| 259 | theorem rotateCoefficient_zero (Y : Plane) : rotateCoefficient Y 0 = 0 := by |
| 260 | ext i |
| 261 | fin_cases i <;> simp [rotateCoefficient] |
| 262 | |
| 263 | |
| 264 | noncomputable def rotationMap (Y : Plane) : ComplexVector →L[ℝ] ComplexVector := |
| 265 | ContinuousLinearMap.pi ![ |
| 266 | (Y.1 / PolarCharts.radius Y) • ContinuousLinearMap.proj 0 - |
| 267 | (Y.2 / PolarCharts.radius Y) • ContinuousLinearMap.proj 1, |
| 268 | (Y.2 / PolarCharts.radius Y) • ContinuousLinearMap.proj 0 + |
| 269 | (Y.1 / PolarCharts.radius Y) • ContinuousLinearMap.proj 1, |
| 270 | ContinuousLinearMap.proj 2] |
| 271 | |
| 272 | theorem rotationMap_apply (Y : Plane) (v : ComplexVector) : rotationMap Y v = rotateCoefficient Y v := by |
| 273 | ext i |
| 274 | fin_cases i <;> simp [rotationMap, rotateCoefficient] |
| 275 | |
| 276 | theorem rotateCoefficient_real_smul (Y : Plane) (c : ℝ) (v : ComplexVector) : |
| 277 | rotateCoefficient Y (c • v) = c • rotateCoefficient Y v := by |
| 278 | simpa only [rotationMap_apply] using (rotationMap Y).map_smul c v |
| 279 | |
| 280 | theorem rotateCoefficient_vectorMode (Y : Plane) (K : ℝ) (Phi : Cylinder → ℝ) |
| 281 | (v : Cylinder → ComplexVector) (x : Cylinder) (i : Fin 3) : |
| 282 | rotateCoefficient Y (HarmonicCalculus.vectorMode K Phi v x) i = |
| 283 | rotateCoefficient Y (v x) i * HarmonicCalculus.carrier K Phi x := by |
| 284 | fin_cases i <;> simp [rotateCoefficient, HarmonicCalculus.vectorMode, HarmonicCalculus.mode, |
| 285 | Complex.real_smul] <;> ring |
| 286 | |
| 287 | theorem chart_radius {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) {Y : Plane} |
| 288 | (hY : Y ∈ PolarCharts.chartDomain a j) : |
| 289 | (PolarCharts.chart a j Y).1 = PolarCharts.radius Y := by |
| 290 | rw [PolarCharts.chart_eq_localChart ha j hY, PolarCharts.localChart_apply] |
| 291 | |
| 292 | theorem chart_radius_pos {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) {Y : Plane} |
| 293 | (hY : Y ∈ PolarCharts.chartDomain a j) : 0 < PolarCharts.radius Y := by |
| 294 | have hp : 0 < (PolarCharts.rotate j Y).1 := lt_trans (by positivity : (0 : ℝ) < a / 4) hY |
| 295 | simpa only [PolarCharts.radius_rotate] using PolarCharts.radius_pos_of_fst_pos hp |
| 296 | |
| 297 | theorem rotateCoefficient_chart_re {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) {Y : Plane} |
| 298 | (hY : Y ∈ PolarCharts.chartDomain a j) (v : ComplexVector) (i : Fin 3) : |
| 299 | (rotateCoefficient Y v i).re = |
| 300 | CylindricalResidual.frame (PolarCharts.chart a j Y).2 (PhysicalCurlCovariance.realVector v) i := by |
| 301 | have hc := congrArg Prod.fst (PolarCharts.polar_chart ha j hY) |
| 302 | have hs := congrArg Prod.snd (PolarCharts.polar_chart ha j hY) |
| 303 | simp only [PolarCharts.polar, chart_radius ha j hY] at hc hs |
| 304 | have hr := (chart_radius_pos ha j hY).ne' |
| 305 | have hcos : Y.1 / PolarCharts.radius Y = Real.cos (PolarCharts.chart a j Y).2 := by |
| 306 | rw [← hc] |
| 307 | field_simp |
| 308 | have hsin : Y.2 / PolarCharts.radius Y = Real.sin (PolarCharts.chart a j Y).2 := by |
| 309 | rw [← hs] |
| 310 | field_simp |
| 311 | fin_cases i <;> simp [rotateCoefficient, hcos, hsin, CylindricalResidual.frame_apply, |
| 312 | AxisymmetricResidual.pack, coordinateVector, |
| 313 | -Complex.ofReal_cos, -Complex.ofReal_sin] |
| 314 | |
| 315 | theorem cylinderAt_fst {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) {x : LiftPoint} |
| 316 | (hx : PhysicalGraphBounds.liftXY x ∈ PolarCharts.chartDomain a j) : |
| 317 | (cylinderAt a j x).1 = (cylinderZero x).1 := by |
| 318 | simp only [cylinderAt, cylinderZero, chart_radius ha j hx] |
| 319 | |
| 320 | |
| 321 | theorem radiusPower_eq_radius (d : ℝ) (Y : Plane) : |
| 322 | PhysicalGraphBounds.radiusPower d Y = PolarCharts.radius Y ^ d := by |
| 323 | unfold PhysicalGraphBounds.radiusPower PolarCharts.radius |
| 324 | rw [Real.sqrt_eq_rpow, ← Real.rpow_mul (by positivity : 0 ≤ Y.1 ^ 2 + Y.2 ^ 2)] |
| 325 | congr 1 |
| 326 | ring |
| 327 | |
| 328 | theorem scaledRadial_forward (n : ℕ) (z : SpaceTime) : |
| 329 | PhysicalGraphBounds.scaledRadial n (z.1, CylindricalResidual.chart z.2) = |
| 330 | PolarCharts.polar (ChartScales.Q n ^ (-(1 / 2 : ℝ)) * z.2 0, z.2 1) := by |
| 331 | ext <;> simp [PhysicalGraphBounds.scaledRadial, PhysicalGraphBounds.radialProjection_apply, |
| 332 | CylindricalResidual.chart, PolarCharts.polar, AxisymmetricResidual.pack, coordinateVector] <;> ring |
| 333 | |
| 334 | /-- The exact physical Cartesian lift and the common cylindrical graph |
| 335 | have identical coordinates; in particular no fast variable is discarded. -/ |
| 336 | theorem cylinderAt_physical_forward (h : ℝ) (n : ℕ) {a : ℝ} (ha : 0 < a) |
| 337 | (j : PolarCharts.Index) (z : SpaceTime) (hr : 0 < z.2 0) |
| 338 | (hangle : z.2 1 - PolarCharts.offset j ∈ Ioo (-(Real.pi / 2)) (Real.pi / 2)) |
| 339 | (hchart : PhysicalGraphBounds.scaledRadial n (z.1, CylindricalResidual.chart z.2) ∈ |
| 340 | PolarCharts.chartDomain a j) : |
| 341 | cylinderAt a j (PhysicalGraphBounds.physicalLift h n (z.1, CylindricalResidual.chart z.2)) = |
| 342 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (ChartScales.nativeIndex h n)).map z := by |
| 343 | have hQ := ChartScales.Q_pos n |
| 344 | have hR : 0 < ChartScales.Q n ^ (-(1 / 2 : ℝ)) * z.2 0 := |
| 345 | mul_pos (Real.rpow_pos_of_pos hQ _) hr |
| 346 | have hp : PolarCharts.chart a j |
| 347 | (PhysicalGraphBounds.scaledRadial n (z.1, CylindricalResidual.chart z.2)) = |
| 348 | (ChartScales.Q n ^ (-(1 / 2 : ℝ)) * z.2 0, z.2 1) := by |
| 349 | rw [scaledRadial_forward] at hchart ⊢ |
| 350 | exact PolarCharts.chart_polar ha j hR hangle hchart |
| 351 | have hax : ChartScales.Q n ^ (-(1 / 2 : ℝ)) * ChartScales.Q n ^ h = |
| 352 | ChartScales.Q n ^ (-CoordinateAlgebra.D h) := by |
| 353 | rw [← Real.rpow_add hQ] |
| 354 | congr 1 |
| 355 | unfold CoordinateAlgebra.D |
| 356 | ring |
| 357 | have ht : ChartScales.Q n ^ (-CoordinateAlgebra.A h) * |
| 358 | ChartScales.Q n ^ (-(1 / 2 : ℝ)) * ChartScales.Q n ^ h = ChartScales.Q n ^ (-1 : ℝ) := by |
| 359 | rw [← Real.rpow_add hQ, ← Real.rpow_add hQ] |
| 360 | congr 1 |
| 361 | unfold CoordinateAlgebra.A |
| 362 | ring |
| 363 | have hf : ChartScales.Q n ^ (-CoordinateAlgebra.A h) * |
| 364 | ChartScales.Q n ^ (-(1 / 2 : ℝ)) * |
| 365 | (ChartScales.Tg ^ ChartScales.nativeIndex h n * ChartScales.Q n ^ (1 + h)) = |
| 366 | ChartScales.Tg ^ ChartScales.nativeIndex h n := by |
| 367 | calc |
| 368 | _ = ChartScales.Tg ^ ChartScales.nativeIndex h n * |
| 369 | (ChartScales.Q n ^ (-CoordinateAlgebra.A h) * ChartScales.Q n ^ (-(1 / 2 : ℝ)) * |
| 370 | ChartScales.Q n ^ (1 + h)) := by ring |
| 371 | _ = _ := by |
| 372 | rw [← Real.rpow_add hQ, ← Real.rpow_add hQ, |
| 373 | show -CoordinateAlgebra.A h + -(1 / 2 : ℝ) + (1 + h) = 0 by unfold CoordinateAlgebra.A; ring, |
| 374 | Real.rpow_zero, mul_one] |
| 375 | have hn := PhysicalGraphBounds.nativeGraph_normalized h n (z.1, CylindricalResidual.chart z.2) |
| 376 | rw [PhysicalGraphBounds.radialProfile, radiusPower_eq_radius, scaledRadial_forward, |
| 377 | PolarCharts.radius_polar, abs_of_pos hR] at hn |
| 378 | have hc : cylinderAt a j (PhysicalGraphBounds.physicalLift h n (z.1, CylindricalResidual.chart z.2)) = |
| 379 | ((ChartScales.Q n ^ (-(1 / 2 : ℝ)) * z.2 0, |
| 380 | ((ChartScales.Q n ^ (-CoordinateAlgebra.D h) * z.2 2, |
| 381 | ChartScales.Q n ^ (-1 : ℝ) * (1 - z.1)), |
| 382 | PhysicalGraphBounds.nativeGraph h n (z.1, CylindricalResidual.chart z.2))), z.2 1) := by |
| 383 | unfold cylinderAt |
| 384 | rw [PhysicalGraphBounds.liftXY_physicalLift, hp] |
| 385 | ext <;> simp [PhysicalGraphBounds.physicalLift, |
| 386 | PhysicalGraphBounds.physicalChart, PhysicalGraphBounds.chartLinear_apply, |
| 387 | CylindricalResidual.chart, AxisymmetricResidual.pack, coordinateVector] |
| 388 | ring |
| 389 | rw [hc, hn] |
| 390 | simp only [PhysicalResidualBridge.ScaledGraph.map, PhysicalResidualBridge.commonGraph, |
| 391 | hax, ht, hf, ChartScales.radialCoefficient, smul_smul] |
| 392 | |
| 393 | section PhysicalFamilies |
| 394 | |
| 395 | variable {D h : ℝ} |
| 396 | (sys : PartitionedCovariance.SlotSystem D h ActualSignedGeometry.radialVector ActualSignedGeometry.temporalVector) |
| 397 | (hh : 0 ≤ h) {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} (f : SignedFamily U) |
| 398 | |
| 399 | noncomputable def waveMask (label : SlotColoring.Label) (z : Plane) : ℝ := |
| 400 | PartitionedCovariance.cutoff sys.radius z.1 * |
| 401 | GaussianTailFlat.profile (z.2 / ChartScales.slotLength sys.radius h label.1) |
| 402 | |
| 403 | theorem waveMask_eq_compact (label : SlotColoring.Label) (z : Plane) : |
| 404 | waveMask sys label z = nativeMask sys label z * |
| 405 | GaussianTailFlat.profile (z.2 / ChartScales.slotLength sys.radius h label.1) := by |
| 406 | unfold waveMask nativeMask |
| 407 | calc |
| 408 | _ = PartitionedCovariance.cutoff sys.radius z.1 * |
| 409 | (GaussianTailFlat.profile (z.2 / ChartScales.slotLength sys.radius h label.1) * |
| 410 | PrimaryCopyBounds.outerCutoff (z.2 / ChartScales.slotLength sys.radius h label.1)) := by |
| 411 | rw [PrimaryCopyBounds.profile_mul_outerCutoff] |
| 412 | _ = _ := by ring |
| 413 | |
| 414 | theorem waveMask_support (label : SlotColoring.Label) : |
| 415 | support (waveMask sys label) ⊆ (ActualSignedGeometry.clockWindow sys label.1).core := by |
| 416 | intro z hz |
| 417 | apply nativeMask_support sys label |
| 418 | intro hn |
| 419 | exact hz (by rw [waveMask_eq_compact, hn, zero_mul]) |
| 420 | |
| 421 | noncomputable def selectedCarrier (L : NativeLabel f.active) (k : Frequency) : |
| 422 | PhysicalWaveSum.CarrierData := |
| 423 | carrier (h := h) L.val k |
| 424 | (((f.primary L).pulse (f.column L)).phase.p L.val.1) |
| 425 | (((f.primary L).pulse (f.column L)).phase.pz L.val.1) |
| 426 | (((f.primary L).pulse (f.column L)).phase.x0 L.val.1) |
| 427 | (((f.primary L).pulse (f.column L)).phase.F L.val.1) |
| 428 | (((f.primary L).pulse (f.column L)).phase.G L.val.1) |
| 429 | |
| 430 | noncomputable def extendedCarrier (L : PhysicalWaveSum.BandLabel) (k : Frequency) : |
| 431 | PhysicalWaveSum.CarrierData := |
| 432 | if hL : L ∈ f.active then |
| 433 | selectedCarrier (h := h) f ⟨L.val, L.property, hL⟩ k |
| 434 | else carrier (h := h) L.val k 0 0 0 (fun _ => 0) (fun _ => 0) |
| 435 | |
| 436 | theorem extendedCarrier_active (L : NativeLabel f.active) (k : Frequency) : |
| 437 | extendedCarrier (h := h) f L k = selectedCarrier (h := h) f L k := by |
| 438 | simp only [extendedCarrier, dite_eq_left L.mem] |
| 439 | |
| 440 | theorem extendedCarrier_center (L : PhysicalWaveSum.BandLabel) (k : Frequency) : |
| 441 | (extendedCarrier (h := h) f L k).center = center (h := h) L.val k := by |
| 442 | unfold extendedCarrier |
| 443 | split_ifs <;> rfl |
| 444 | |
| 445 | noncomputable def rawSignedAmplitude (L : NativeLabel f.active) (k : Frequency) (x : Cylinder) : |
| 446 | ComplexVector := |
| 447 | ActualPeriodizedSignedRealization.referenceScalar (f.primary L) (f.state L).referenceRequest |
| 448 | (f.column L) L.val.1 x • CurlClassBounds.complexify |
| 449 | (ActualPeriodizedSignedRealization.referenceNativeUnit (f.primary L) |
| 450 | (layout sys hh L.val L.property 0) (f.column L) L.val.1 k x) |
| 451 | |
| 452 | noncomputable def rawPotential (L : NativeLabel f.active) (k : Frequency) (x : Cylinder) : |
| 453 | ComplexVector := |
| 454 | CurlClassBounds.inverseCarrier ((f.primary L).base.frequency L.val.1) • |
| 455 | CurlClassBounds.normalCoefficient |
| 456 | ((f.primary L).base.normal (f.primary L).strip (f.primary L).directions L.val.1 x) |
| 457 | (rawSignedAmplitude sys hh f L k x) |
| 458 | |
| 459 | noncomputable def rawPressure (L : NativeLabel f.active) (k : Frequency) (x : Cylinder) : ℂ := |
| 460 | ActualPeriodizedSignedRealization.referenceScalar (f.primary L) (f.state L).referenceRequest |
| 461 | (f.column L) L.val.1 x • |
| 462 | ActualPeriodizedSignedRealization.homogeneousPressure ((f.primary L).base.frequency L.val.1) |
| 463 | ((f.primary L).base.normal (f.primary L).strip (f.primary L).directions L.val.1 x) |
| 464 | ((f.primary L).normalMotion L.val.1 x) ((f.primary L).action L.val.1 x) |
| 465 | (ActualPeriodizedSignedRealization.referenceNativeUnit (f.primary L) |
| 466 | (layout sys hh L.val L.property 0) (f.column L) L.val.1 k x) |
| 467 | |
| 468 | /-- One positive harmonic suffices because the physical field takes the |
| 469 | real part. Its native copies retain their individual centers and phases. -/ |
| 470 | noncomputable def potentialFamily (i : Fin 3) : PhysicalCopyBounds.CopyFamily 1 Frequency where |
| 471 | gap _ := 0 |
| 472 | carrier k L := extendedCarrier (h := h) f L k |
| 473 | amplitude k I x := if hL : I.1 ∈ f.active then |
| 474 | if I.2.val = 1 then |
| 475 | ((ChartScales.Q I.1.val.1 ^ (-h) : ℝ) : ℂ) * |
| 476 | (waveMask sys I.1.val ((geometry sys I.1.val 0).coordinates k x.2) : ℂ) * |
| 477 | rotateCoefficient (PhysicalGraphBounds.liftXY x) |
| 478 | (rawPotential sys hh f ⟨I.1.val, I.1.property, hL⟩ k (cylinderZero x)) i |
| 479 | else 0 |
| 480 | else 0 |
| 481 | |
| 482 | noncomputable def pressureFamily : PhysicalCopyBounds.CopyFamily 1 Frequency where |
| 483 | gap _ := 0 |
| 484 | carrier k L := extendedCarrier (h := h) f L k |
| 485 | amplitude k I x := if hL : I.1 ∈ f.active then |
| 486 | if I.2.val = 1 then |
| 487 | ((ChartScales.Q I.1.val.1 ^ (-(2 * CoordinateAlgebra.A h)) : ℝ) : ℂ) * |
| 488 | (waveMask sys I.1.val ((geometry sys I.1.val 0).coordinates k x.2) : ℂ) * |
| 489 | rawPressure sys hh f ⟨I.1.val, I.1.property, hL⟩ k (cylinderZero x) |
| 490 | else 0 |
| 491 | else 0 |
| 492 | |
| 493 | theorem potential_term_active (L : NativeLabel f.active) (k : Frequency) (i : Fin 3) |
| 494 | (a : ℝ) (w : SpaceTime) : |
| 495 | (potentialFamily sys hh f i).term a h sys.radius (positiveIndex L) k w = |
| 496 | PhysicalWaveSum.globalWave a h L.val.1 0 sys.radius (selectedCarrier (h := h) f L k) |
| 497 | ((potentialFamily sys hh f i).amplitude k (positiveIndex L)) 1 w := by |
| 498 | change PhysicalWaveSum.globalWave _ _ _ _ _ (extendedCarrier (h := h) f L k) _ _ _ = _ |
| 499 | rw [extendedCarrier_active] |
| 500 | rfl |
| 501 | |
| 502 | theorem pressure_term_active (L : NativeLabel f.active) (k : Frequency) |
| 503 | (a : ℝ) (w : SpaceTime) : |
| 504 | (pressureFamily sys hh f).term a h sys.radius (positiveIndex L) k w = |
| 505 | PhysicalWaveSum.globalWave a h L.val.1 0 sys.radius (selectedCarrier (h := h) f L k) |
| 506 | ((pressureFamily sys hh f).amplitude k (positiveIndex L)) 1 w := by |
| 507 | change PhysicalWaveSum.globalWave _ _ _ _ _ (extendedCarrier (h := h) f L k) _ _ _ = _ |
| 508 | rw [extendedCarrier_active] |
| 509 | rfl |
| 510 | |
| 511 | theorem potential_amplitude_mem (i : Fin 3) (k : Frequency) |
| 512 | (I : PhysicalWaveSum.WaveIndex 1) (x : LiftPoint) |
| 513 | (hx : (potentialFamily sys hh f i).amplitude k I x ≠ 0) : |
| 514 | (geometry sys I.1.val 0).coordinates k x.2 ∈ (ActualSignedGeometry.clockWindow sys I.1.val.1).core := by |
| 515 | by_cases hL : I.1 ∈ f.active |
| 516 | · apply waveMask_support sys I.1.val |
| 517 | intro hz |
| 518 | apply hx |
| 519 | simp only [potentialFamily, dite_eq_left hL, hz, Complex.ofReal_zero, mul_zero, zero_mul, ite_self] |
| 520 | · exact False.elim (hx (by simp [potentialFamily, hL])) |
| 521 | |
| 522 | theorem pressure_amplitude_mem (k : Frequency) (I : PhysicalWaveSum.WaveIndex 1) (x : LiftPoint) |
| 523 | (hx : (pressureFamily sys hh f).amplitude k I x ≠ 0) : |
| 524 | (geometry sys I.1.val 0).coordinates k x.2 ∈ (ActualSignedGeometry.clockWindow sys I.1.val.1).core := by |
| 525 | by_cases hL : I.1 ∈ f.active |
| 526 | · apply waveMask_support sys I.1.val |
| 527 | intro hz |
| 528 | apply hx |
| 529 | simp only [pressureFamily, dite_eq_left hL, hz, Complex.ofReal_zero, mul_zero, zero_mul, ite_self] |
| 530 | · exact False.elim (hx (by simp [pressureFamily, hL])) |
| 531 | |
| 532 | noncomputable def potentialCells (i : Fin 3) : PhysicalCopyBounds.SupportCells (potentialFamily sys hh f i) := |
| 533 | PhysicalCopyBounds.nativeSupportCells |
| 534 | (fun L => geometry sys L.val 0) (fun L => (ActualSignedGeometry.clockWindow sys L.val.1).core) |
| 535 | (fun L => (ActualSignedGeometry.clockWindow sys L.val.1).core_compact) |
| 536 | (fun L => (ActualSignedGeometry.clockWindow_injective sys ActualSignedGeometry.vectors_det hh L.property 0).mono |
| 537 | (Set.image_mono (ActualSignedGeometry.clockWindow sys L.val.1).core_subset_outer)) |
| 538 | (potential_amplitude_mem sys hh f i) |
| 539 | |
| 540 | noncomputable def pressureCells : PhysicalCopyBounds.SupportCells (pressureFamily sys hh f) := |
| 541 | PhysicalCopyBounds.nativeSupportCells |
| 542 | (fun L => geometry sys L.val 0) (fun L => (ActualSignedGeometry.clockWindow sys L.val.1).core) |
| 543 | (fun L => (ActualSignedGeometry.clockWindow sys L.val.1).core_compact) |
| 544 | (fun L => (ActualSignedGeometry.clockWindow_injective sys ActualSignedGeometry.vectors_det hh L.property 0).mono |
| 545 | (Set.image_mono (ActualSignedGeometry.clockWindow sys L.val.1).core_subset_outer)) |
| 546 | (pressure_amplitude_mem sys hh f) |
| 547 | |
| 548 | |
| 549 | /-- Finite native support justifies applying any linear potential operation |
| 550 | before or after the copy sum. -/ |
| 551 | theorem waveMask_summable_smul {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 552 | (L : PhysicalWaveSum.BandLabel) (Y : Plane) (v : Frequency → E) : |
| 553 | Summable (fun k => waveMask sys L.val ((geometry sys L.val 0).coordinates k Y) • v k) := by |
| 554 | obtain ⟨J, hJ⟩ := (geometry sys L.val 0).finite_copy_cutoffs |
| 555 | (HasCompactSupport.of_support_subset_isCompact |
| 556 | (ActualSignedGeometry.clockWindow sys L.val.1).core_compact (nativeMask_support sys L.val)) ‖Y‖ |
| 557 | apply summable_of_ne_finset_zero (s := J) |
| 558 | intro k hk |
| 559 | have hz : nativeMask sys L.val ((geometry sys L.val 0).coordinates k Y) = 0 := hJ Y le_rfl k hk |
| 560 | rw [waveMask_eq_compact, hz, zero_mul, zero_smul] |
| 561 | |
| 562 | theorem signed_raw_eq_sum (L : NativeLabel f.active) (x : Cylinder) : |
| 563 | (ActualPeriodizedSignedRealization.periodizedPrimary (f.primary L) |
| 564 | (layout sys hh L.val L.property 0)).raw (f.state L).referenceRequest (f.column L) L.val.1 x = |
| 565 | ∑' k, waveMask sys L.val ((geometry sys L.val 0).coordinates k x.1.2.2) • |
| 566 | rawSignedAmplitude sys hh f L k x := by |
| 567 | rw [ActualPeriodizedSignedRealization.reference_raw_eq_sum] |
| 568 | apply tsum_congr |
| 569 | intro k |
| 570 | rw [waveMask_eq_compact, mul_smul] |
| 571 | rfl |
| 572 | |
| 573 | noncomputable def potentialMap (K : ℝ) (N : Space) : ComplexVector →L[ℝ] ComplexVector := |
| 574 | CurlClassBounds.inverseCarrier K • |
| 575 | ((‖N‖ ^ 2)⁻¹ • CurlClassBounds.complexCrossLinear (CurlClassBounds.complexify N)) |
| 576 | |
| 577 | theorem potentialMap_apply (K : ℝ) (N : Space) (v : ComplexVector) : |
| 578 | potentialMap K N v = CurlClassBounds.inverseCarrier K • CurlClassBounds.normalCoefficient N v := rfl |
| 579 | |
| 580 | theorem signed_potential_eq_sum (L : NativeLabel f.active) (x : Cylinder) : |
| 581 | CurlClassBounds.inverseCarrier ((f.primary L).base.frequency L.val.1) • |
| 582 | CurlClassBounds.normalCoefficient |
| 583 | ((f.primary L).base.normal (f.primary L).strip (f.primary L).directions L.val.1 x) |
| 584 | ((ActualPeriodizedSignedRealization.periodizedPrimary (f.primary L) |
| 585 | (layout sys hh L.val L.property 0)).raw (f.state L).referenceRequest (f.column L) L.val.1 x) = |
| 586 | ∑' k, waveMask sys L.val ((geometry sys L.val 0).coordinates k x.1.2.2) • |
| 587 | rawPotential sys hh f L k x := by |
| 588 | change potentialMap _ _ _ = _ |
| 589 | rw [signed_raw_eq_sum] |
| 590 | rw [ContinuousLinearMap.map_tsum _ (waveMask_summable_smul sys L x.1.2.2 _)] |
| 591 | apply tsum_congr |
| 592 | intro k |
| 593 | rw [map_smul] |
| 594 | rfl |
| 595 | |
| 596 | theorem signed_pressure_eq_sum (L : NativeLabel f.active) (x : Cylinder) : |
| 597 | (ActualPeriodizedSignedRealization.periodizedPrimary (f.primary L) |
| 598 | (layout sys hh L.val L.property 0)).rawPressure (f.state L).referenceRequest (f.column L) L.val.1 x = |
| 599 | ∑' k, waveMask sys L.val ((geometry sys L.val 0).coordinates k x.1.2.2) • |
| 600 | rawPressure sys hh f L k x := by |
| 601 | let l := layout sys hh L.val L.property 0 |
| 602 | let B := f.primary L |
| 603 | let v := (ActualPeriodizedSignedRealization.periodizedPrimary B l).fundamental (f.column L) L.val.1 x |
| 604 | have hs : SignedWaveUpdate.signedScalar (ActualPeriodizedSignedRealization.periodizedPrimary B l).strip |
| 605 | (ActualPeriodizedSignedRealization.periodizedPrimary B l).matrix |
| 606 | (ActualPeriodizedSignedRealization.periodizedPrimary B l).target (f.state L).referenceRequest |
| 607 | (ActualPeriodizedSignedRealization.periodizedPrimary B l).mask (f.column L) L.val.1 x = |
| 608 | l.mask L.val.1 x.1.2.2 * ActualPeriodizedSignedRealization.referenceScalar B |
| 609 | (f.state L).referenceRequest (f.column L) L.val.1 x := |
| 610 | ActualPeriodizedSignedRealization.signedScalar_mul_mask _ _ _ _ _ _ _ _ _ |
| 611 | change l.gaussian L.val.1 x.1.2.2 • |
| 612 | ((ActualPeriodizedSignedRealization.periodizedPrimary B l).coefficients |
| 613 | (f.state L).referenceRequest (f.column L)).pressure L.val.1 x = _ |
| 614 | rw [PhysicalSignedWave.PrimaryData.coefficients, |
| 615 | ActualPeriodizedSignedRealization.coefficients_pressure_at, hs, mul_smul] |
| 616 | rw [← l.gaussian_mask_sum] |
| 617 | apply tsum_congr |
| 618 | intro k |
| 619 | by_cases hk : l.nativeMask L.val.1 k x.1.2.2 = 0 |
| 620 | · have hk' : nativeMask sys L.val ((geometry sys L.val 0).coordinates k x.1.2.2) = 0 := hk |
| 621 | simp only [hk, zero_smul, smul_zero, waveMask_eq_compact, hk', zero_mul] |
| 622 | · rw [ActualPeriodizedSignedRealization.referenceUnit_eq_native B l _ _ _ _ hk] |
| 623 | rw [waveMask_eq_compact, mul_smul, smul_comm] |
| 624 | rfl |
| 625 | |
| 626 | |
| 627 | /-- Primitive reference identities. The selected phase is the actual |
| 628 | periodic clock phase; all geometric and angular statements concern the |
| 629 | uncorrected inputs, never the output potential or velocity. -/ |
| 630 | structure ReferenceGeometry where |
| 631 | frequency : ∀ L, (f.primary L).base.frequency L.val.1 = (ChartScales.carrier h L.val.1 : ℝ) |
| 632 | phase : ∀ L, (f.primary L).base.phase L.val.1 = |
| 633 | ActualSignedGeometry.periodicPhase sys L.val 0 (ChartScales.epsilon h L.val.1) |
| 634 | (((f.primary L).pulse (f.column L)).phase.p L.val.1) |
| 635 | (((f.primary L).pulse (f.column L)).phase.pz L.val.1) |
| 636 | (((f.primary L).pulse (f.column L)).phase.x0 L.val.1) |
| 637 | (((f.primary L).pulse (f.column L)).phase.F L.val.1) |
| 638 | (((f.primary L).pulse (f.column L)).phase.G L.val.1) |
| 639 | angular : ∀ L, (f.primary L).Angular (f.state L).referenceRequest L.val.1 |
| 640 | chart : ∀ L, PhysicalSignedWave.ChartGeometry (f.primary L).base (f.primary L).strip |
| 641 | (f.primary L).directions L.val.1 h (ChartScales.Q L.val.1) (ChartScales.nativeIndex h L.val.1) |
| 642 | exponent : ∀ L, (f.view L).exponent = h |
| 643 | scale : ∀ L, (f.view L).referenceScale = ChartScales.Q L.val.1 |
| 644 | cover : ∀ L, (f.view L).referenceCover = ChartScales.nativeIndex h L.val.1 |
| 645 | |
| 646 | variable (G : ReferenceGeometry sys f) |
| 647 | |
| 648 | include G hh |
| 649 | |
| 650 | theorem rawSignedAmplitude_invariant (L : NativeLabel f.active) (k : Frequency) : |
| 651 | CopyAngularInvariance.Invariant ((0, 1) : Cylinder) (rawSignedAmplitude sys hh f L k) := by |
| 652 | intro x t |
| 653 | have hm : (f.primary L).matrix L.val.1 (x + t • (0, 1)) = (f.primary L).matrix L.val.1 x := by |
| 654 | simp only [PhysicalSignedWave.PrimaryData.matrix, SignedWaveUpdate.phaseMatrix, |
| 655 | PrimaryPulseBounds.chartCovariance, (G.angular L).coordinate x t] |
| 656 | simp only [rawSignedAmplitude, ActualPeriodizedSignedRealization.referenceScalar, |
| 657 | SignedWaveUpdate.signedScalar, hm, (G.angular L).target x t, (G.angular L).request x t, |
| 658 | (G.angular L).mask x t, ActualPeriodizedSignedRealization.referenceNativeUnit, |
| 659 | (G.angular L).coordinate x t, Prod.fst_add, Prod.smul_fst, smul_zero, add_zero] |
| 660 | |
| 661 | theorem rawPotential_invariant (L : NativeLabel f.active) (k : Frequency) : |
| 662 | CopyAngularInvariance.Invariant ((0, 1) : Cylinder) (rawPotential sys hh f L k) := by |
| 663 | intro x t |
| 664 | simp only [rawPotential, (rawSignedAmplitude_invariant sys hh f G L k) x t, |
| 665 | (G.chart L).normal_invariant (G.angular L).phase x t] |
| 666 | |
| 667 | theorem rawPressure_invariant (L : NativeLabel f.active) (k : Frequency) : |
| 668 | CopyAngularInvariance.Invariant ((0, 1) : Cylinder) (rawPressure sys hh f L k) := by |
| 669 | intro x t |
| 670 | have hm : (f.primary L).matrix L.val.1 (x + t • (0, 1)) = (f.primary L).matrix L.val.1 x := by |
| 671 | simp only [PhysicalSignedWave.PrimaryData.matrix, SignedWaveUpdate.phaseMatrix, |
| 672 | PrimaryPulseBounds.chartCovariance, (G.angular L).coordinate x t] |
| 673 | simp only [rawPressure, ActualPeriodizedSignedRealization.referenceScalar, |
| 674 | SignedWaveUpdate.signedScalar, hm, (G.angular L).target x t, (G.angular L).request x t, |
| 675 | (G.angular L).mask x t, ActualPeriodizedSignedRealization.referenceNativeUnit, |
| 676 | (G.angular L).coordinate x t, Prod.fst_add, Prod.smul_fst, smul_zero, add_zero, |
| 677 | (G.chart L).normal_invariant (G.angular L).phase x t, |
| 678 | (G.angular L).normalMotion x t, (G.angular L).action x t] |
| 679 | |
| 680 | omit sys hh f G in |
| 681 | theorem invariant_angle_zero {E : Type} (F : Cylinder → E) |
| 682 | (hF : CopyAngularInvariance.Invariant ((0, 1) : Cylinder) F) (x : Cylinder) : |
| 683 | F x = F (x.1, 0) := by |
| 684 | have he : (x.1, (0 : ℝ)) + x.2 • ((0, 1) : Cylinder) = x := by |
| 685 | ext <;> simp |
| 686 | simpa only [he] using hF (x.1, 0) x.2 |
| 687 | |
| 688 | theorem phase_eq_native (L : NativeLabel f.active) (k : Frequency) |
| 689 | (a : ℝ) (chart : PolarCharts.Index) (x : LiftPoint) |
| 690 | (hx : (geometry sys L.val 0).coordinates k x.2 ∈ (ActualSignedGeometry.clockWindow sys L.val.1).core) : |
| 691 | (f.primary L).base.phase L.val.1 (cylinderAt a chart x) = |
| 692 | ((selectedCarrier (h := h) f L k).withChart chart).phase a h L.val.1 sys.radius x := by |
| 693 | rw [G.phase L] |
| 694 | have he := (ActualSignedGeometry.periodicPhase_germ sys hh L.property 0 |
| 695 | (ChartScales.epsilon h L.val.1) |
| 696 | (((f.primary L).pulse (f.column L)).phase.p L.val.1) |
| 697 | (((f.primary L).pulse (f.column L)).phase.pz L.val.1) |
| 698 | (((f.primary L).pulse (f.column L)).phase.x0 L.val.1) |
| 699 | (((f.primary L).pulse (f.column L)).phase.F L.val.1) |
| 700 | (((f.primary L).pulse (f.column L)).phase.G L.val.1) k (x := cylinderAt a chart x) hx).eq_of_nhds |
| 701 | exact he.trans (carrier_phase_eq_native sys L.val 0 k |
| 702 | (((f.primary L).pulse (f.column L)).phase.p L.val.1) |
| 703 | (((f.primary L).pulse (f.column L)).phase.pz L.val.1) |
| 704 | (((f.primary L).pulse (f.column L)).phase.x0 L.val.1) |
| 705 | (((f.primary L).pulse (f.column L)).phase.F L.val.1) |
| 706 | (((f.primary L).pulse (f.column L)).phase.G L.val.1) a chart x).symm |
| 707 | |
| 708 | |
| 709 | omit sys hh f G in |
| 710 | theorem commonLift_zero (h : ℝ) (n : ℕ) (w : SpaceTime) : |
| 711 | PhysicalWaveSum.commonLift h n 0 w = PhysicalGraphBounds.physicalLift h n w := by |
| 712 | simp [PhysicalWaveSum.commonLift, CommonCoverSolve.coverPower] |
| 713 | |
| 714 | theorem rawPotential_cylinderAt (L : NativeLabel f.active) (k : Frequency) |
| 715 | {a : ℝ} (ha : 0 < a) (chart : PolarCharts.Index) {x : LiftPoint} |
| 716 | (hx : PhysicalGraphBounds.liftXY x ∈ PolarCharts.chartDomain a chart) : |
| 717 | rawPotential sys hh f L k (cylinderAt a chart x) = rawPotential sys hh f L k (cylinderZero x) := by |
| 718 | rw [invariant_angle_zero _ (rawPotential_invariant sys hh f G L k), cylinderAt_fst ha chart hx] |
| 719 | rfl |
| 720 | |
| 721 | theorem rawPressure_cylinderAt (L : NativeLabel f.active) (k : Frequency) |
| 722 | {a : ℝ} (ha : 0 < a) (chart : PolarCharts.Index) {x : LiftPoint} |
| 723 | (hx : PhysicalGraphBounds.liftXY x ∈ PolarCharts.chartDomain a chart) : |
| 724 | rawPressure sys hh f L k (cylinderAt a chart x) = rawPressure sys hh f L k (cylinderZero x) := by |
| 725 | rw [invariant_angle_zero _ (rawPressure_invariant sys hh f G L k), cylinderAt_fst ha chart hx] |
| 726 | rfl |
| 727 | |
| 728 | /-- The local oscillatory pressure is the native pressure with its actual |
| 729 | copy phase. Equality with the common periodic phase is used only where |
| 730 | this copy's cutoff is nonzero. -/ |
| 731 | theorem pressure_commonWave (L : NativeLabel f.active) (k : Frequency) |
| 732 | {a : ℝ} (ha : 0 < a) (chart : PolarCharts.Index) (w : SpaceTime) |
| 733 | (hchart : PhysicalGraphBounds.scaledRadial L.val.1 w ∈ PolarCharts.chartDomain a chart) : |
| 734 | PhysicalWaveSum.commonWave a h L.val.1 0 sys.radius |
| 735 | ((selectedCarrier (h := h) f L k).withChart chart) |
| 736 | ((pressureFamily sys hh f).amplitude k (positiveIndex L)) 1 w = |
| 737 | (ChartScales.Q L.val.1 ^ (-(2 * CoordinateAlgebra.A h)) : ℝ) • |
| 738 | (waveMask sys L.val ((geometry sys L.val 0).coordinates k |
| 739 | (PhysicalGraphBounds.physicalLift h L.val.1 w).2) • |
| 740 | rawPressure sys hh f L k (cylinderAt a chart (PhysicalGraphBounds.physicalLift h L.val.1 w))) * |
| 741 | HarmonicCalculus.carrier ((f.primary L).base.frequency L.val.1) |
| 742 | ((f.primary L).base.phase L.val.1) |
| 743 | (cylinderAt a chart (PhysicalGraphBounds.physicalLift h L.val.1 w)) := by |
| 744 | have hc : PhysicalGraphBounds.liftXY (PhysicalGraphBounds.physicalLift h L.val.1 w) ∈ |
| 745 | PolarCharts.chartDomain a chart := by |
| 746 | simpa only [PhysicalGraphBounds.liftXY_physicalLift] using hchart |
| 747 | simp only [PhysicalWaveSum.commonWave, commonLift_zero, pressureFamily, positiveIndex, |
| 748 | dite_eq_left L.mem, Int.cast_one, mul_one, ite_true] |
| 749 | rw [← rawPressure_cylinderAt sys hh f G L k ha chart hc] |
| 750 | by_cases hz : waveMask sys L.val ((geometry sys L.val 0).coordinates k |
| 751 | (PhysicalGraphBounds.physicalLift h L.val.1 w).2) = 0 |
| 752 | · simp [hz] |
| 753 | · rw [← phase_eq_native sys hh f G L k a chart _ (waveMask_support sys L.val hz), G.frequency L] |
| 754 | simp only [PhysicalGraphBounds.character, HarmonicCalculus.carrier, |
| 755 | HarmonicCalculus.phaseFactor, PhysicalGraphBounds.phaseFactor, Complex.real_smul] |
| 756 | congr 1 |
| 757 | ring |
| 758 | |
| 759 | |
| 760 | theorem potential_commonWave (L : NativeLabel f.active) (k : Frequency) (i : Fin 3) |
| 761 | {a : ℝ} (ha : 0 < a) (chart : PolarCharts.Index) (w : SpaceTime) |
| 762 | (hchart : PhysicalGraphBounds.scaledRadial L.val.1 w ∈ PolarCharts.chartDomain a chart) : |
| 763 | PhysicalWaveSum.commonWave a h L.val.1 0 sys.radius |
| 764 | ((selectedCarrier (h := h) f L k).withChart chart) |
| 765 | ((potentialFamily sys hh f i).amplitude k (positiveIndex L)) 1 w = |
| 766 | (ChartScales.Q L.val.1 ^ (-h) : ℝ) • |
| 767 | (waveMask sys L.val ((geometry sys L.val 0).coordinates k |
| 768 | (PhysicalGraphBounds.physicalLift h L.val.1 w).2) • |
| 769 | rotateCoefficient (PhysicalGraphBounds.liftXY (PhysicalGraphBounds.physicalLift h L.val.1 w)) |
| 770 | (rawPotential sys hh f L k (cylinderAt a chart (PhysicalGraphBounds.physicalLift h L.val.1 w))) i) * |
| 771 | HarmonicCalculus.carrier ((f.primary L).base.frequency L.val.1) |
| 772 | ((f.primary L).base.phase L.val.1) |
| 773 | (cylinderAt a chart (PhysicalGraphBounds.physicalLift h L.val.1 w)) := by |
| 774 | have hc : PhysicalGraphBounds.liftXY (PhysicalGraphBounds.physicalLift h L.val.1 w) ∈ |
| 775 | PolarCharts.chartDomain a chart := by |
| 776 | simpa only [PhysicalGraphBounds.liftXY_physicalLift] using hchart |
| 777 | simp only [PhysicalWaveSum.commonWave, commonLift_zero, potentialFamily, positiveIndex, |
| 778 | dite_eq_left L.mem, Int.cast_one, mul_one, ite_true] |
| 779 | rw [← rawPotential_cylinderAt sys hh f G L k ha chart hc] |
| 780 | by_cases hz : waveMask sys L.val ((geometry sys L.val 0).coordinates k |
| 781 | (PhysicalGraphBounds.physicalLift h L.val.1 w).2) = 0 |
| 782 | · simp [hz] |
| 783 | · rw [← phase_eq_native sys hh f G L k a chart _ (waveMask_support sys L.val hz), G.frequency L] |
| 784 | simp only [PhysicalGraphBounds.character, HarmonicCalculus.carrier, |
| 785 | HarmonicCalculus.phaseFactor, PhysicalGraphBounds.phaseFactor, Complex.real_smul] |
| 786 | congr 1 |
| 787 | ring |
| 788 | |
| 789 | omit G in |
| 790 | noncomputable def referencePotentialCoefficient (L : NativeLabel f.active) (x : Cylinder) : ComplexVector := |
| 791 | CurlClassBounds.inverseCarrier ((f.primary L).base.frequency L.val.1) • |
| 792 | CurlClassBounds.normalCoefficient |
| 793 | ((f.primary L).base.normal (f.primary L).strip (f.primary L).directions L.val.1 x) |
| 794 | ((ActualPeriodizedSignedRealization.periodizedPrimary (f.primary L) |
| 795 | (layout sys hh L.val L.property 0)).raw (f.state L).referenceRequest (f.column L) L.val.1 x) |
| 796 | |
| 797 | omit G in |
| 798 | theorem rotatedPotential_sum (L : NativeLabel f.active) (x : Cylinder) (Y : Plane) (i : Fin 3) : |
| 799 | (∑' k, waveMask sys L.val ((geometry sys L.val 0).coordinates k x.1.2.2) • |
| 800 | rotateCoefficient Y (rawPotential sys hh f L k x) i) = |
| 801 | rotateCoefficient Y (referencePotentialCoefficient sys hh f L x) i := by |
| 802 | let A : ComplexVector →L[ℝ] ℂ := (ContinuousLinearMap.proj i).comp (rotationMap Y) |
| 803 | have he := A.map_tsum (waveMask_summable_smul sys L x.1.2.2 (fun k => rawPotential sys hh f L k x)) |
| 804 | simp only [map_smul, A, ContinuousLinearMap.comp_apply, ContinuousLinearMap.proj_apply, |
| 805 | rotationMap_apply] at he |
| 806 | rw [← signed_potential_eq_sum sys hh f L x] at he |
| 807 | exact he.symm |
| 808 | |
| 809 | |
| 810 | omit hh in |
| 811 | theorem angular_integer (L : NativeLabel f.active) (k : Frequency) : |
| 812 | (ChartScales.carrier h L.val.1 : ℝ) * (selectedCarrier (h := h) f L k).angular = |
| 813 | ((G.angular L).mode : ℝ) := by |
| 814 | have he := (G.angular L).phase (0 : Cylinder) 1 |
| 815 | rw [G.phase L] at he |
| 816 | simp only [ActualSignedGeometry.periodicPhase, PhaseCalculus.phase, Prod.fst_zero, Prod.snd_zero, one_smul, zero_add, mul_zero, |
| 817 | mul_one, add_zero] at he |
| 818 | have hp : ((f.primary L).pulse (f.column L)).phase.p L.val.1 = |
| 819 | (G.angular L).mode / (f.primary L).base.frequency L.val.1 := by linarith |
| 820 | change (ChartScales.carrier h L.val.1 : ℝ) * |
| 821 | ((f.primary L).pulse (f.column L)).phase.p L.val.1 = _ |
| 822 | rw [hp, G.frequency L] |
| 823 | field_simp [PartitionedCovariance.actual_carrier_ne_zero h L.val.1] |
| 824 | |
| 825 | |
| 826 | theorem pressure_periodized_of_chart (L : NativeLabel f.active) {a b : ℝ} (ha : 0 < a) |
| 827 | (w : SpaceTime) (hw : PhysicalGraphBounds.scaledRadial L.val.1 w ∈ PhysicalGraphBounds.annulus a b) |
| 828 | (j : PolarCharts.Index) (hj : PhysicalGraphBounds.scaledRadial L.val.1 w ∈ PolarCharts.chartDomain a j) : |
| 829 | (pressureFamily sys hh f).periodized a h sys.radius (positiveIndex L) w = |
| 830 | (ChartScales.Q L.val.1 ^ (-(2 * CoordinateAlgebra.A h)) : ℝ) • |
| 831 | HarmonicCalculus.mode ((f.primary L).base.frequency L.val.1) |
| 832 | ((f.primary L).base.phase L.val.1) |
| 833 | ((ActualPeriodizedSignedRealization.periodizedPrimary (f.primary L) |
| 834 | (layout sys hh L.val L.property 0)).rawPressure (f.state L).referenceRequest (f.column L) L.val.1) |
| 835 | (cylinderAt a j (PhysicalGraphBounds.physicalLift h L.val.1 w)) := by |
| 836 | have hc := PhysicalWaveSum.chooseChart_valid ha hw |
| 837 | unfold PhysicalCopyBounds.CopyFamily.periodized |
| 838 | simp_rw [pressure_term_active] |
| 839 | change (∑' k, PhysicalWaveSum.commonWave a h L.val.1 0 sys.radius |
| 840 | ((selectedCarrier (h := h) f L k).withChart |
| 841 | (PhysicalWaveSum.chooseChart a (PhysicalGraphBounds.scaledRadial L.val.1 w))) |
| 842 | ((pressureFamily sys hh f).amplitude k (positiveIndex L)) 1 w) = _ |
| 843 | have he (k : Frequency) := PhysicalWaveSum.commonWave_charts_agree ha h L.val.1 0 sys.radius |
| 844 | (selectedCarrier (h := h) f L k) ((pressureFamily sys hh f).amplitude k (positiveIndex L)) 1 w |
| 845 | (G.angular L).mode (angular_integer sys f G L k) _ j hc hj |
| 846 | simp_rw [he, pressure_commonWave sys hh f G L _ ha j w hj] |
| 847 | rw [tsum_mul_right, tsum_const_smul'', HarmonicCalculus.mode, signed_pressure_eq_sum sys hh f L] |
| 848 | exact smul_mul_assoc _ _ _ |
| 849 | |
| 850 | theorem potential_periodized_of_chart (L : NativeLabel f.active) (i : Fin 3) |
| 851 | {a b : ℝ} (ha : 0 < a) (w : SpaceTime) |
| 852 | (hw : PhysicalGraphBounds.scaledRadial L.val.1 w ∈ PhysicalGraphBounds.annulus a b) |
| 853 | (j : PolarCharts.Index) (hj : PhysicalGraphBounds.scaledRadial L.val.1 w ∈ PolarCharts.chartDomain a j) : |
| 854 | (potentialFamily sys hh f i).periodized a h sys.radius (positiveIndex L) w = |
| 855 | (ChartScales.Q L.val.1 ^ (-h) : ℝ) • |
| 856 | (rotateCoefficient (PhysicalGraphBounds.liftXY (PhysicalGraphBounds.physicalLift h L.val.1 w)) |
| 857 | (referencePotentialCoefficient sys hh f L |
| 858 | (cylinderAt a j (PhysicalGraphBounds.physicalLift h L.val.1 w))) i * |
| 859 | HarmonicCalculus.carrier ((f.primary L).base.frequency L.val.1) |
| 860 | ((f.primary L).base.phase L.val.1) |
| 861 | (cylinderAt a j (PhysicalGraphBounds.physicalLift h L.val.1 w))) := by |
| 862 | have hc := PhysicalWaveSum.chooseChart_valid ha hw |
| 863 | unfold PhysicalCopyBounds.CopyFamily.periodized |
| 864 | simp_rw [potential_term_active] |
| 865 | change (∑' k, PhysicalWaveSum.commonWave a h L.val.1 0 sys.radius |
| 866 | ((selectedCarrier (h := h) f L k).withChart |
| 867 | (PhysicalWaveSum.chooseChart a (PhysicalGraphBounds.scaledRadial L.val.1 w))) |
| 868 | ((potentialFamily sys hh f i).amplitude k (positiveIndex L)) 1 w) = _ |
| 869 | have he (k : Frequency) := PhysicalWaveSum.commonWave_charts_agree ha h L.val.1 0 sys.radius |
| 870 | (selectedCarrier (h := h) f L k) ((potentialFamily sys hh f i).amplitude k (positiveIndex L)) 1 w |
| 871 | (G.angular L).mode (angular_integer sys f G L k) _ j hc hj |
| 872 | simp_rw [he, potential_commonWave sys hh f G L _ i ha j w hj] |
| 873 | rw [tsum_mul_right, tsum_const_smul''] |
| 874 | rw [← rotatedPotential_sum sys hh f L (cylinderAt a j (PhysicalGraphBounds.physicalLift h L.val.1 w)) |
| 875 | (PhysicalGraphBounds.liftXY (PhysicalGraphBounds.physicalLift h L.val.1 w)) i] |
| 876 | exact smul_mul_assoc _ _ _ |
| 877 | |
| 878 | |
| 879 | end PhysicalFamilies |
| 880 | |
| 881 | |
| 882 | /-! ## Explicit native sources and their physical class adapter -/ |
| 883 | |
| 884 | abbrev Native := CartesianCopySource.Native |
| 885 | abbrev SourceIndex := PhysicalWaveSum.WaveIndex 1 × Frequency |
| 886 | |
| 887 | noncomputable def nativeCylinder (y : Native) : Cylinder := |
| 888 | ((y.1, ((y.2.1.2, y.2.1.1), y.2.2)), 0) |
| 889 | |
| 890 | theorem nativeCylinder_map (x : LiftPoint) : |
| 891 | nativeCylinder (PhysicalClassBounds.cylindricalMap x) = cylinderZero x := rfl |
| 892 | |
| 893 | theorem cartesian_rotation (Y : Plane) (v : ComplexVector) : |
| 894 | CartesianCopySource.rotationMap Y v = rotateCoefficient Y v := by |
| 895 | rw [CartesianCopySource.rotationMap_apply] |
| 896 | rfl |
| 897 | |
| 898 | section NativeSources |
| 899 | |
| 900 | variable {D h : ℝ} |
| 901 | (sys : PartitionedCovariance.SlotSystem D h ActualSignedGeometry.radialVector ActualSignedGeometry.temporalVector) |
| 902 | (hh : 0 ≤ h) {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} (f : SignedFamily U) |
| 903 | |
| 904 | noncomputable def nativePotentialSource (I : SourceIndex) (n : ℕ) (y : Native) : ComplexVector := |
| 905 | if hL : I.1.1 ∈ f.active then |
| 906 | if I.1.2.val = 1 ∧ n = I.1.1.val.1 then |
| 907 | waveMask sys I.1.1.val ((geometry sys I.1.1.val 0).coordinates I.2 y.2.2) • |
| 908 | rawPotential sys hh f ⟨I.1.1.val, I.1.1.property, hL⟩ I.2 (nativeCylinder y) |
| 909 | else 0 |
| 910 | else 0 |
| 911 | |
| 912 | noncomputable def nativePressureSource (I : SourceIndex) (n : ℕ) (y : Native) : ℂ := |
| 913 | if hL : I.1.1 ∈ f.active then |
| 914 | if I.1.2.val = 1 ∧ n = I.1.1.val.1 then |
| 915 | waveMask sys I.1.1.val ((geometry sys I.1.1.val 0).coordinates I.2 y.2.2) • |
| 916 | rawPressure sys hh f ⟨I.1.1.val, I.1.1.property, hL⟩ I.2 (nativeCylinder y) |
| 917 | else 0 |
| 918 | else 0 |
| 919 | |
| 920 | theorem potential_amplitude_eq_source (i : Fin 3) (k : Frequency) |
| 921 | (I : PhysicalWaveSum.WaveIndex 1) (x : LiftPoint) : |
| 922 | (potentialFamily sys hh f i).amplitude k I x = |
| 923 | (ChartScales.Q I.1.val.1 ^ (-h) : ℝ) • |
| 924 | CartesianCopySource.rotatedSource (nativePotentialSource sys hh f) (I, k) I.1.val.1 x i := by |
| 925 | unfold CartesianCopySource.rotatedSource |
| 926 | rw [cartesian_rotation] |
| 927 | by_cases hL : I.1 ∈ f.active |
| 928 | · by_cases hI : I.2.val = 1 |
| 929 | · simp only [potentialFamily, nativePotentialSource, dite_eq_left hL, hI, and_self, |
| 930 | ite_true, nativeCylinder_map, rotateCoefficient_real_smul, Pi.smul_apply] |
| 931 | simp only [Complex.real_smul, mul_assoc] |
| 932 | rfl |
| 933 | · simp [potentialFamily, nativePotentialSource, hL, hI, rotateCoefficient_zero] |
| 934 | · simp [potentialFamily, nativePotentialSource, hL, rotateCoefficient_zero] |
| 935 | |
| 936 | theorem pressure_amplitude_eq_source (k : Frequency) (I : PhysicalWaveSum.WaveIndex 1) (x : LiftPoint) : |
| 937 | (pressureFamily sys hh f).amplitude k I x = |
| 938 | (ChartScales.Q I.1.val.1 ^ (-(2 * CoordinateAlgebra.A h)) : ℝ) • |
| 939 | nativePressureSource sys hh f (I, k) I.1.val.1 (PhysicalClassBounds.cylindricalMap x) := by |
| 940 | by_cases hL : I.1 ∈ f.active |
| 941 | · by_cases hI : I.2.val = 1 |
| 942 | · simp only [pressureFamily, nativePressureSource, dite_eq_left hL, hI, and_self, |
| 943 | ite_true, nativeCylinder_map] |
| 944 | simp only [Complex.real_smul, mul_assoc] |
| 945 | rfl |
| 946 | · simp [pressureFamily, nativePressureSource, hL, hI] |
| 947 | · simp [pressureFamily, nativePressureSource, hL] |
| 948 | |
| 949 | omit sys hh f in |
| 950 | theorem increment_zero_target (H : Mat2) (R : Vec2) (j : Fin 2) : |
| 951 | SignedCovariance.increment H 0 R j = 0 := by |
| 952 | fin_cases j <;> simp [SignedCovariance.increment, SmoothCovariance.amplitudes, SmoothCovariance.weights, |
| 953 | SmoothCovariance.cramerNumerator] |
| 954 | |
| 955 | theorem rawPotential_zero (L : NativeLabel f.active) (k : Frequency) (x : Cylinder) |
| 956 | (hx : (f.primary L).mask L.val.1 x = 0 ∨ (f.primary L).target L.val.1 x = 0) : |
| 957 | rawPotential sys hh f L k x = 0 := by |
| 958 | have hr : ActualPeriodizedSignedRealization.referenceScalar (f.primary L) |
| 959 | (f.state L).referenceRequest (f.column L) L.val.1 x = 0 := by |
| 960 | rcases hx with hm | ht |
| 961 | · simp [ActualPeriodizedSignedRealization.referenceScalar, SignedWaveUpdate.signedScalar, hm] |
| 962 | · simp [ActualPeriodizedSignedRealization.referenceScalar, SignedWaveUpdate.signedScalar, ht, |
| 963 | increment_zero_target] |
| 964 | simp [rawPotential, rawSignedAmplitude, hr, CurlClassBounds.normalCoefficient, CurlClassBounds.normalCross] |
| 965 | |
| 966 | theorem rawPressure_zero (L : NativeLabel f.active) (k : Frequency) (x : Cylinder) |
| 967 | (hx : (f.primary L).mask L.val.1 x = 0 ∨ (f.primary L).target L.val.1 x = 0) : |
| 968 | rawPressure sys hh f L k x = 0 := by |
| 969 | have hr : ActualPeriodizedSignedRealization.referenceScalar (f.primary L) |
| 970 | (f.state L).referenceRequest (f.column L) L.val.1 x = 0 := by |
| 971 | rcases hx with hm | ht |
| 972 | · simp [ActualPeriodizedSignedRealization.referenceScalar, SignedWaveUpdate.signedScalar, hm] |
| 973 | · simp [ActualPeriodizedSignedRealization.referenceScalar, SignedWaveUpdate.signedScalar, ht, |
| 974 | increment_zero_target] |
| 975 | simp only [rawPressure, hr, zero_smul] |
| 976 | |
| 977 | theorem potential_amplitude_inputs (i : Fin 3) (k : Frequency) |
| 978 | (I : PhysicalWaveSum.WaveIndex 1) (x : LiftPoint) |
| 979 | (hx : (potentialFamily sys hh f i).amplitude k I x ≠ 0) : |
| 980 | ∃ hL : I.1 ∈ f.active, I.2.val = 1 ∧ |
| 981 | (f.primary ⟨I.1.val, I.1.property, hL⟩).mask I.1.val.1 (cylinderZero x) ≠ 0 ∧ |
| 982 | (f.primary ⟨I.1.val, I.1.property, hL⟩).target I.1.val.1 (cylinderZero x) ≠ 0 := by |
| 983 | by_cases hL : I.1 ∈ f.active |
| 984 | · by_cases hI : I.2.val = 1 |
| 985 | · refine ⟨hL, hI, ?_, ?_⟩ |
| 986 | · intro hm |
| 987 | have hr := rawPotential_zero sys hh f ⟨I.1.val, I.1.property, hL⟩ k (cylinderZero x) (Or.inl hm) |
| 988 | exact hx (by simp [potentialFamily, hL, hI, hr, rotateCoefficient_zero]) |
| 989 | · intro ht |
| 990 | have hr := rawPotential_zero sys hh f ⟨I.1.val, I.1.property, hL⟩ k (cylinderZero x) (Or.inr ht) |
| 991 | exact hx (by simp [potentialFamily, hL, hI, hr, rotateCoefficient_zero]) |
| 992 | · exact False.elim (hx (by simp [potentialFamily, hL, hI])) |
| 993 | · exact False.elim (hx (by simp [potentialFamily, hL])) |
| 994 | |
| 995 | theorem pressure_amplitude_inputs (k : Frequency) (I : PhysicalWaveSum.WaveIndex 1) (x : LiftPoint) |
| 996 | (hx : (pressureFamily sys hh f).amplitude k I x ≠ 0) : |
| 997 | ∃ hL : I.1 ∈ f.active, I.2.val = 1 ∧ |
| 998 | (f.primary ⟨I.1.val, I.1.property, hL⟩).mask I.1.val.1 (cylinderZero x) ≠ 0 ∧ |
| 999 | (f.primary ⟨I.1.val, I.1.property, hL⟩).target I.1.val.1 (cylinderZero x) ≠ 0 := by |
| 1000 | by_cases hL : I.1 ∈ f.active |
| 1001 | · by_cases hI : I.2.val = 1 |
| 1002 | · refine ⟨hL, hI, ?_, ?_⟩ |
| 1003 | · intro hm |
| 1004 | have hr := rawPressure_zero sys hh f ⟨I.1.val, I.1.property, hL⟩ k (cylinderZero x) (Or.inl hm) |
| 1005 | exact hx (by simp [pressureFamily, hL, hI, hr]) |
| 1006 | · intro ht |
| 1007 | have hr := rawPressure_zero sys hh f ⟨I.1.val, I.1.property, hL⟩ k (cylinderZero x) (Or.inr ht) |
| 1008 | exact hx (by simp [pressureFamily, hL, hI, hr]) |
| 1009 | · exact False.elim (hx (by simp [pressureFamily, hL, hI])) |
| 1010 | · exact False.elim (hx (by simp [pressureFamily, hL])) |
| 1011 | |
| 1012 | |
| 1013 | /-- Localization facts about the original shared mask and target. The |
| 1014 | native domain condition is on every slow/fast fiber. No support statement |
| 1015 | about a corrected velocity, potential, pressure, or copy sum is assumed. -/ |
| 1016 | structure PrimitiveLocalization (a b : ℝ) (s : StripData Native) : Prop where |
| 1017 | normalized : ∀ (L : NativeLabel f.active) (y : Native), 0 ≤ y.1 → |
| 1018 | (f.primary L).mask L.val.1 (nativeCylinder y) ≠ 0 → |
| 1019 | (f.primary L).target L.val.1 (nativeCylinder y) ≠ 0 → |
| 1020 | 0 < y.2.1.1 ∧ |
| 1021 | 1 / 2 ≤ SimilarityCoordinates.coordinateQ (2 * h) y.2.1 ∧ |
| 1022 | SimilarityCoordinates.coordinateQ (2 * h) y.2.1 ≤ 2 ∧ |
| 1023 | a ≤ y.1 / Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) y.2.1) ∧ |
| 1024 | y.1 / Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) y.2.1) ≤ b |
| 1025 | domain : ∀ (L : NativeLabel f.active) (y : Native), 0 ≤ y.1 → |
| 1026 | (f.primary L).mask L.val.1 (nativeCylinder y) ≠ 0 → |
| 1027 | (f.primary L).target L.val.1 (nativeCylinder y) ≠ 0 → y ∈ s.domain |
| 1028 | mask_pullback : ∀ (L : NativeLabel f.active) (w : SpaceTime), w ∈ PhysicalWaveSum.preterminal → |
| 1029 | (f.primary L).mask L.val.1 (cylinderZero (PhysicalGraphBounds.physicalLift h L.val.1 w)) = |
| 1030 | PhysicalWaveSum.physicalMask (CoordinateAlgebra.D h) L.val (PhysicalWaveSum.physicalParams h w) |
| 1031 | |
| 1032 | omit sys hh f in |
| 1033 | theorem normalized_slow_norm {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) {p : Plane} |
| 1034 | (ht : 0 < p.1) (hlo : 1 / 2 ≤ SimilarityCoordinates.coordinateQ (2 * h) p) |
| 1035 | (hhi : SimilarityCoordinates.coordinateQ (2 * h) p ≤ 2) : ‖p‖ ≤ 2 := by |
| 1036 | have he := SimilarityCoordinates.coordinateQ_spec (by linarith : 0 < 2 * h) |
| 1037 | (by linarith : 2 * h < 1) ht |
| 1038 | have hq : 0 < SimilarityCoordinates.coordinateQ (2 * h) p := he.1 |
| 1039 | dsimp only [SimilarityCoordinates.forwardScalar] at he |
| 1040 | have hp : 1 / 2 ≤ SimilarityCoordinates.coordinateQ (2 * h) p ^ (2 * h) := by |
| 1041 | by_cases h1 : SimilarityCoordinates.coordinateQ (2 * h) p ≤ 1 |
| 1042 | · calc |
| 1043 | 1 / 2 ≤ SimilarityCoordinates.coordinateQ (2 * h) p := hlo |
| 1044 | _ = SimilarityCoordinates.coordinateQ (2 * h) p ^ (1 : ℝ) := (Real.rpow_one _).symm |
| 1045 | _ ≤ _ := Real.rpow_le_rpow_of_exponent_ge hq h1 (by linarith) |
| 1046 | · exact (by norm_num : (1 / 2 : ℝ) ≤ 1).trans |
| 1047 | (Real.one_le_rpow (le_of_not_ge h1) (by positivity)) |
| 1048 | have hprod : 0 ≤ p.2 ^ 2 * SimilarityCoordinates.coordinateQ (2 * h) p ^ (2 * h) := |
| 1049 | mul_nonneg (sq_nonneg _) (Real.rpow_nonneg hq.le _) |
| 1050 | have hT : |p.1| ≤ 2 := by rw [abs_of_pos ht]; linarith [he.2] |
| 1051 | have hZ : |p.2| ≤ 2 := by |
| 1052 | have hs : p.2 ^ 2 ≤ 4 := by nlinarith [he.2, sq_nonneg p.2] |
| 1053 | nlinarith [sq_abs p.2, abs_nonneg p.2] |
| 1054 | simpa only [Prod.norm_def, Real.norm_eq_abs] using max_le hT hZ |
| 1055 | |
| 1056 | variable {a b : ℝ} {s : StripData Native} |
| 1057 | (hloc : PrimitiveLocalization (h := h) f a b s) |
| 1058 | |
| 1059 | include hloc |
| 1060 | |
| 1061 | theorem primitive_annulus (hh0 : 0 < h) (hh1 : h < 1 / 2) (ha : 0 < a) (hb : 0 < b) |
| 1062 | (L : NativeLabel f.active) (x : LiftPoint) |
| 1063 | (hm : (f.primary L).mask L.val.1 (cylinderZero x) ≠ 0) |
| 1064 | (hT : (f.primary L).target L.val.1 (cylinderZero x) ≠ 0) : |
| 1065 | PhysicalGraphBounds.liftXY x ∈ PhysicalGraphBounds.annulus (a / 4) (2 * b) ∧ |
| 1066 | ‖PhysicalGraphBounds.liftZT x‖ ≤ 2 := by |
| 1067 | let y := PhysicalClassBounds.cylindricalMap x |
| 1068 | have hy := hloc.normalized L y (Real.sqrt_nonneg _) hm hT |
| 1069 | have hq : 0 < SimilarityCoordinates.coordinateQ (2 * h) y.2.1 := by linarith [hy.2.1] |
| 1070 | have hs := Real.sqrt_pos.mpr hq |
| 1071 | have hslow := normalized_slow_norm hh0 hh1 hy.1 hy.2.1 hy.2.2.1 |
| 1072 | have hlo : 1 / 2 ≤ Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) y.2.1) := |
| 1073 | (Real.le_sqrt (by norm_num) hq.le).mpr (by linarith [hy.2.1]) |
| 1074 | have hhi : Real.sqrt (SimilarityCoordinates.coordinateQ (2 * h) y.2.1) ≤ 2 := |
| 1075 | (Real.sqrt_le_left (by norm_num)).mpr (by linarith [hy.2.2.1]) |
| 1076 | have hradlo := (le_div_iff₀ hs).mp hy.2.2.2.1 |
| 1077 | have hradhi := (div_le_iff₀ hs).mp hy.2.2.2.2 |
| 1078 | have hR : y.1 = PolarCharts.radius (PhysicalGraphBounds.liftXY x) := rfl |
| 1079 | rw [hR] at hradlo hradhi |
| 1080 | have hnorm : ‖PhysicalGraphBounds.liftXY x‖ ≤ 2 * b := by |
| 1081 | exact (PolarCharts.norm_le_radius _).trans (hradhi.trans |
| 1082 | (by simpa only [mul_comm] using mul_le_mul_of_nonneg_left hhi hb.le)) |
| 1083 | have hnormlo : a / 4 ≤ ‖PhysicalGraphBounds.liftXY x‖ := by |
| 1084 | have hradius := PolarCharts.radius_le_two_norm (PhysicalGraphBounds.liftXY x) |
| 1085 | have hmul := mul_le_mul_of_nonneg_left hlo ha.le |
| 1086 | linarith |
| 1087 | constructor |
| 1088 | · exact ⟨by simpa only [Metric.mem_closedBall, dist_zero_right] using hnorm, hnormlo⟩ |
| 1089 | · change max ‖x.1.2.2.2‖ ‖x.1.1‖ ≤ 2 |
| 1090 | change max ‖x.1.1‖ ‖x.1.2.2.2‖ ≤ 2 at hslow |
| 1091 | simpa only [max_comm] using hslow |
| 1092 | |
| 1093 | theorem primitive_domain (L : NativeLabel f.active) (x : LiftPoint) |
| 1094 | (hm : (f.primary L).mask L.val.1 (cylinderZero x) ≠ 0) |
| 1095 | (hT : (f.primary L).target L.val.1 (cylinderZero x) ≠ 0) : |
| 1096 | PhysicalClassBounds.cylindricalMap x ∈ s.domain := |
| 1097 | hloc.domain L _ (Real.sqrt_nonneg _) hm hT |
| 1098 | |
| 1099 | |
| 1100 | theorem potential_support (G : ReferenceGeometry sys f) (hh0 : 0 < h) (hh1 : h < 1 / 2) |
| 1101 | (ha : 0 < a) (hb : 0 < b) (i : Fin 3) : |
| 1102 | LocalPhysicalCopyBounds.SupportData (potentialFamily sys hh f i) (a / 4) (2 * b) h sys.radius 2 0 where |
| 1103 | gap_le _ := le_rfl |
| 1104 | gap_native _ := Nat.zero_le _ |
| 1105 | angular_integer k L := by |
| 1106 | by_cases hL : L ∈ f.active |
| 1107 | · refine ⟨(G.angular ⟨L.val, L.property, hL⟩).mode, ?_⟩ |
| 1108 | simpa only [potentialFamily, extendedCarrier, dite_eq_left hL] using |
| 1109 | angular_integer sys f G ⟨L.val, L.property, hL⟩ k |
| 1110 | · exact ⟨0, by simp [potentialFamily, extendedCarrier, hL, carrier]⟩ |
| 1111 | geometry_support k I w hw := by |
| 1112 | change (potentialFamily sys hh f i).amplitude k I (PhysicalWaveSum.commonLift h I.1.val.1 0 w) ≠ 0 at hw |
| 1113 | rw [commonLift_zero] at hw |
| 1114 | obtain ⟨hL, _, hm, hT⟩ := potential_amplitude_inputs sys hh f i k I _ hw |
| 1115 | have hn := primitive_annulus (f := f) hloc hh0 hh1 ha hb ⟨I.1.val, I.1.property, hL⟩ _ hm hT |
| 1116 | refine ⟨?_, hn.2, ?_⟩ |
| 1117 | · simpa only [PhysicalGraphBounds.liftXY_physicalLift] using hn.1 |
| 1118 | · have hs := potential_amplitude_mem sys hh f i k I _ hw |
| 1119 | have hwidth := width_on_core sys I.1.val 0 k (PhysicalGraphBounds.physicalLift h I.1.val.1 w).2 hs |
| 1120 | change |PhysicalGraphBounds.etaCoordinate |
| 1121 | (PhysicalGraphBounds.nativeGraph h I.1.val.1 w - (extendedCarrier (h := h) f I.1 k).center)| ≤ sys.radius |
| 1122 | rw [extendedCarrier_center] |
| 1123 | exact hwidth |
| 1124 | mask_support k I w hw hne := by |
| 1125 | change (potentialFamily sys hh f i).amplitude k I (PhysicalWaveSum.commonLift h I.1.val.1 0 w) ≠ 0 at hne |
| 1126 | rw [commonLift_zero] at hne |
| 1127 | obtain ⟨hL, _, hm, _⟩ := potential_amplitude_inputs sys hh f i k I _ hne |
| 1128 | rw [← hloc.mask_pullback ⟨I.1.val, I.1.property, hL⟩ w hw] |
| 1129 | exact hm |
| 1130 | |
| 1131 | theorem pressure_support (G : ReferenceGeometry sys f) (hh0 : 0 < h) (hh1 : h < 1 / 2) |
| 1132 | (ha : 0 < a) (hb : 0 < b) : |
| 1133 | LocalPhysicalCopyBounds.SupportData (pressureFamily sys hh f) (a / 4) (2 * b) h sys.radius 2 0 where |
| 1134 | gap_le _ := le_rfl |
| 1135 | gap_native _ := Nat.zero_le _ |
| 1136 | angular_integer k L := by |
| 1137 | by_cases hL : L ∈ f.active |
| 1138 | · refine ⟨(G.angular ⟨L.val, L.property, hL⟩).mode, ?_⟩ |
| 1139 | simpa only [pressureFamily, extendedCarrier, dite_eq_left hL] using |
| 1140 | angular_integer sys f G ⟨L.val, L.property, hL⟩ k |
| 1141 | · exact ⟨0, by simp [pressureFamily, extendedCarrier, hL, carrier]⟩ |
| 1142 | geometry_support k I w hw := by |
| 1143 | change (pressureFamily sys hh f).amplitude k I (PhysicalWaveSum.commonLift h I.1.val.1 0 w) ≠ 0 at hw |
| 1144 | rw [commonLift_zero] at hw |
| 1145 | obtain ⟨hL, _, hm, hT⟩ := pressure_amplitude_inputs sys hh f k I _ hw |
| 1146 | have hn := primitive_annulus (f := f) hloc hh0 hh1 ha hb ⟨I.1.val, I.1.property, hL⟩ _ hm hT |
| 1147 | refine ⟨?_, hn.2, ?_⟩ |
| 1148 | · simpa only [PhysicalGraphBounds.liftXY_physicalLift] using hn.1 |
| 1149 | · have hs := pressure_amplitude_mem sys hh f k I _ hw |
| 1150 | have hwidth := width_on_core sys I.1.val 0 k (PhysicalGraphBounds.physicalLift h I.1.val.1 w).2 hs |
| 1151 | change |PhysicalGraphBounds.etaCoordinate |
| 1152 | (PhysicalGraphBounds.nativeGraph h I.1.val.1 w - (extendedCarrier (h := h) f I.1 k).center)| ≤ sys.radius |
| 1153 | rw [extendedCarrier_center] |
| 1154 | exact hwidth |
| 1155 | mask_support k I w hw hne := by |
| 1156 | change (pressureFamily sys hh f).amplitude k I (PhysicalWaveSum.commonLift h I.1.val.1 0 w) ≠ 0 at hne |
| 1157 | rw [commonLift_zero] at hne |
| 1158 | obtain ⟨hL, _, hm, _⟩ := pressure_amplitude_inputs sys hh f k I _ hne |
| 1159 | rw [← hloc.mask_pullback ⟨I.1.val, I.1.property, hL⟩ w hw] |
| 1160 | exact hm |
| 1161 | |
| 1162 | /-- The actual vector-potential sum is an axis-preserving copy potential, |
| 1163 | with the same fixed outer radius used by the physical stage estimates. -/ |
| 1164 | noncomputable def copyPotential (G : ReferenceGeometry sys f) (hh0 : 0 < h) (hh1 : h < 1 / 2) |
| 1165 | (ha : 0 < a) (hb : 0 < b) : MixedAxisPreservation.CopyPotential h where |
| 1166 | Copy := Frequency |
| 1167 | harmonics := 1 |
| 1168 | family := potentialFamily sys hh f |
| 1169 | inner := a / 4 |
| 1170 | outer := 2 * b |
| 1171 | width := sys.radius |
| 1172 | axialRadius := 2 |
| 1173 | gap := 0 |
| 1174 | inner_pos := div_pos ha (by norm_num) |
| 1175 | support := potential_support sys hh f hloc G hh0 hh1 ha hb |
| 1176 | cells := potentialCells sys hh f |
| 1177 | |
| 1178 | end NativeSources |
| 1179 | |
| 1180 | |
| 1181 | |
| 1182 | /-! ## A fixed native region for the selected carrier profiles -/ |
| 1183 | |
| 1184 | /-- Support of one full native carrier implies closed label membership, |
| 1185 | including the edge of the actual zero-extended coefficient. -/ |
| 1186 | theorem term_tsupport_labelRegion {H : ℕ} {K : Type*} |
| 1187 | {f : PhysicalCopyBounds.CopyFamily H K} {a b h r0 Z : ℝ} {gap : ℕ} |
| 1188 | (hr : LocalPhysicalCopyBounds.SupportData f a b h r0 Z gap) |
| 1189 | (hh : 0 < h) (hh1 : h < 1 / 2) (I : PhysicalWaveSum.WaveIndex H) (k : K) |
| 1190 | {w : SpaceTime} (hw : w ∈ PhysicalWaveSum.preterminal) |
| 1191 | (ht : w ∈ tsupport (f.term a h r0 I k)) : |
| 1192 | PhysicalWaveSum.physicalParams h w ∈ PhysicalWaveSum.labelRegion (CoordinateAlgebra.D h) I.1.val := by |
| 1193 | apply PhysicalWaveSum.closed_property_on_tsupport PhysicalWaveSum.preterminal_open hw |
| 1194 | (PhysicalWaveSum.physicalParams_continuousAt hh hh1 hw) |
| 1195 | (PhysicalWaveSum.labelRegion_closed _ _) ?_ ht |
| 1196 | intro y hy hny |
| 1197 | exact PhysicalWaveSum.physicalMask_support_subset _ _ |
| 1198 | (hr.mask_support k I y hy (PhysicalWaveSum.globalWave_ne_zero_amp hny)) |
| 1199 | |
| 1200 | |
| 1201 | noncomputable def nativeSlow (y : Native) : PhysicalGraphBounds.Slow := (y.1, (y.2.1.2, y.2.1.1)) |
| 1202 | |
| 1203 | theorem slotSlow_eq_nativeSlow {a : ℝ} (ha : 0 < a) (c : PhysicalWaveSum.CarrierData) |
| 1204 | (h : ℝ) (n : ℕ) (r0 : ℝ) (j : PolarCharts.Index) (w : SpaceTime) |
| 1205 | (hj : PhysicalGraphBounds.scaledRadial n w ∈ PolarCharts.chartDomain a j) : |
| 1206 | LocalPhysicalCopyBounds.slotSlow (c.withChart j) a h n r0 w = |
| 1207 | nativeSlow (PhysicalMeanJetBounds.graph h n 0 w) := by |
| 1208 | have hxy : PhysicalGraphBounds.liftXY (PhysicalGraphBounds.physicalLift h n w) ∈ |
| 1209 | PolarCharts.chartDomain a j := by simpa only [PhysicalGraphBounds.liftXY_physicalLift] using hj |
| 1210 | unfold LocalPhysicalCopyBounds.slotSlow |
| 1211 | rw [PhysicalGraphBounds.slotMap_formula] |
| 1212 | rw [PhysicalMeanJetBounds.graph, Function.comp_apply, commonLift_zero] |
| 1213 | change ((PolarCharts.chart a j (PhysicalGraphBounds.liftXY (PhysicalGraphBounds.physicalLift h n w))).1, |
| 1214 | PhysicalGraphBounds.liftZT (PhysicalGraphBounds.physicalLift h n w)) = _ |
| 1215 | rw [chart_radius ha j hxy] |
| 1216 | rfl |
| 1217 | |
| 1218 | noncomputable def nativePast : Set Native := {y | 0 < y.2.1.1} |
| 1219 | |
| 1220 | theorem nativePast_open : IsOpen nativePast := isOpen_lt continuous_const continuous_snd.fst.fst |
| 1221 | |
| 1222 | /-- Intersecting native cells with one closed slow support retains their |
| 1223 | actual local finiteness and their disjointness. -/ |
| 1224 | noncomputable def restrictCells {E K : Type*} [TopologicalSpace E] |
| 1225 | (c : PeriodizedWaveBounds.Cells E K) (s : Set E) (hs : IsClosed s) : |
| 1226 | PeriodizedWaveBounds.Cells E K where |
| 1227 | carrier n k := c.carrier n k ∩ s |
| 1228 | closed n k := (c.closed n k).inter hs |
| 1229 | locallyFinite n := (c.locallyFinite n).subset (fun _ => inter_subset_left) |
| 1230 | unique n i j x hi hj := c.unique n i j x hi.1 hj.1 |
| 1231 | |
| 1232 | noncomputable def primitiveCore {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} |
| 1233 | (f : SignedFamily U) (L : PhysicalWaveSum.BandLabel) : Set LiftPoint := |
| 1234 | {x | ∃ hL : L ∈ f.active, |
| 1235 | (f.primary ⟨L.val, L.property, hL⟩).mask L.val.1 (cylinderZero x) ≠ 0 ∧ |
| 1236 | (f.primary ⟨L.val, L.property, hL⟩).target L.val.1 (cylinderZero x) ≠ 0} |
| 1237 | |
| 1238 | section NativeBounds |
| 1239 | |
| 1240 | variable {D h : ℝ} |
| 1241 | (sys : PartitionedCovariance.SlotSystem D h ActualSignedGeometry.radialVector ActualSignedGeometry.temporalVector) |
| 1242 | (hh : 0 ≤ h) {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} (f : SignedFamily U) |
| 1243 | |
| 1244 | /-- The native cell is narrowed only by the support of the original mask |
| 1245 | and target. This avoids asking for phase estimates outside their Prepared |
| 1246 | region and does not change any coefficient. -/ |
| 1247 | noncomputable def localizedPotentialCells (i : Fin 3) : |
| 1248 | PhysicalCopyBounds.SupportCells (potentialFamily sys hh f i) where |
| 1249 | cells L := restrictCells ((potentialCells sys hh f i).cells L) |
| 1250 | (closure (primitiveCore f L)) isClosed_closure |
| 1251 | support I k x hx := by |
| 1252 | obtain ⟨hL, _, hm, ht⟩ := potential_amplitude_inputs sys hh f i k I x hx |
| 1253 | exact ⟨(potentialCells sys hh f i).support I k hx, |
| 1254 | subset_closure ⟨hL, hm, ht⟩⟩ |
| 1255 | |
| 1256 | noncomputable def localizedPressureCells : |
| 1257 | PhysicalCopyBounds.SupportCells (pressureFamily sys hh f) where |
| 1258 | cells L := restrictCells ((pressureCells sys hh f).cells L) |
| 1259 | (closure (primitiveCore f L)) isClosed_closure |
| 1260 | support I k x hx := by |
| 1261 | obtain ⟨hL, _, hm, ht⟩ := pressure_amplitude_inputs sys hh f k I x hx |
| 1262 | exact ⟨(pressureCells sys hh f).support I k hx, |
| 1263 | subset_closure ⟨hL, hm, ht⟩⟩ |
| 1264 | |
| 1265 | /-- The same selected profile functions on their genuine Prepared native |
| 1266 | regions. Only the slow coordinate cover and native polynomial jets are |
| 1267 | stored; no physical bound or carrier representation is an input. -/ |
| 1268 | structure NativeProfiles where |
| 1269 | region : PhysicalWaveSum.BandLabel → Set PhysicalGraphBounds.Slow |
| 1270 | region_open : ∀ L, IsOpen (region L) |
| 1271 | jets : PhaseJetBounds.PolynomialJets |
| 1272 | (PhysicalCopyBounds.copyBandDomain (fun (_ : Frequency) L => region L) (fun _ L => region_open L)) |
| 1273 | (fun I p => ((extendedCarrier (h := h) f I.2 I.1).F p, (extendedCarrier (h := h) f I.2 I.1).G p)) |
| 1274 | covers : ∀ L w, w ∈ PhysicalWaveSum.preterminal → |
| 1275 | PhysicalWaveSum.physicalParams h w ∈ PhysicalWaveSum.labelRegion (CoordinateAlgebra.D h) L.val → |
| 1276 | PhysicalGraphBounds.physicalLift h L.val.1 w ∈ closure (primitiveCore f L) → |
| 1277 | nativeSlow (PhysicalMeanJetBounds.graph h L.val.1 0 w) ∈ region L |
| 1278 | |
| 1279 | /-- Qualitative regularity of the literal native cut sources. The moving |
| 1280 | edge construction supplies these statements before any physical pullback. -/ |
| 1281 | structure NativeRegular : Prop where |
| 1282 | potential : ∀ I n, ContDiffOn ℝ ∞ (nativePotentialSource sys hh f I n) nativePast |
| 1283 | pressure : ∀ I n, ContDiffOn ℝ ∞ (nativePressureSource sys hh f I n) nativePast |
| 1284 | |
| 1285 | variable {a b : ℝ} (ha : 0 < a) (hp : NativeProfiles (h := h) f) |
| 1286 | |
| 1287 | noncomputable def potentialCarrier (i : Fin 3) : |
| 1288 | PhysicalCopyBounds.CarrierBounds (potentialFamily sys hh f i) (localizedPotentialCells sys hh f i) |
| 1289 | (a / 4) (2 * b) h sys.radius where |
| 1290 | region _ L := hp.region L |
| 1291 | open_region _ L := hp.region_open L |
| 1292 | jets := hp.jets |
| 1293 | contains _ I w hw hr _ hc j hj := by |
| 1294 | change LocalPhysicalCopyBounds.slotSlow ((extendedCarrier (h := h) f I.1 _).withChart j) |
| 1295 | (a / 4) h I.1.val.1 sys.radius w ∈ hp.region I.1 |
| 1296 | rw [slotSlow_eq_nativeSlow (div_pos ha (by norm_num)) _ _ _ _ _ _ hj] |
| 1297 | apply hp.covers I.1 w hw hr |
| 1298 | simpa only [potentialFamily, commonLift_zero] using hc.2 |
| 1299 | |
| 1300 | noncomputable def pressureCarrier : |
| 1301 | PhysicalCopyBounds.CarrierBounds (pressureFamily sys hh f) (localizedPressureCells sys hh f) |
| 1302 | (a / 4) (2 * b) h sys.radius where |
| 1303 | region _ L := hp.region L |
| 1304 | open_region _ L := hp.region_open L |
| 1305 | jets := hp.jets |
| 1306 | contains _ I w hw hr _ hc j hj := by |
| 1307 | change LocalPhysicalCopyBounds.slotSlow ((extendedCarrier (h := h) f I.1 _).withChart j) |
| 1308 | (a / 4) h I.1.val.1 sys.radius w ∈ hp.region I.1 |
| 1309 | rw [slotSlow_eq_nativeSlow (div_pos ha (by norm_num)) _ _ _ _ _ _ hj] |
| 1310 | apply hp.covers I.1 w hw hr |
| 1311 | simpa only [pressureFamily, commonLift_zero] using hc.2 |
| 1312 | |
| 1313 | noncomputable def liftedNativePast (a b : ℝ) : Set LiftPoint := |
| 1314 | PhysicalClassBounds.cylindricalDomain (a / 4) (2 * b) ∩ |
| 1315 | PhysicalClassBounds.cylindricalMap ⁻¹' nativePast |
| 1316 | |
| 1317 | theorem liftedNativePast_open (a b : ℝ) : IsOpen (liftedNativePast a b) := |
| 1318 | (PhysicalClassBounds.cylindricalDomain_open _ _).inter |
| 1319 | (nativePast_open.preimage CartesianCopySource.cylindricalMap_continuous) |
| 1320 | |
| 1321 | variable (hn : NativeRegular sys hh f) |
| 1322 | |
| 1323 | include hn ha |
| 1324 | |
| 1325 | theorem potential_amplitude_smooth (i : Fin 3) (k : Frequency) (I : PhysicalWaveSum.WaveIndex 1) : |
| 1326 | ContDiffOn ℝ ∞ ((potentialFamily sys hh f i).amplitude k I) (liftedNativePast a b) := by |
| 1327 | have hm : ContDiffOn ℝ ∞ PhysicalClassBounds.cylindricalMap (liftedNativePast a b) := |
| 1328 | (PhysicalClassBounds.cylindricalMap_smooth (div_pos ha (by norm_num))).mono inter_subset_left |
| 1329 | have hsrc := (hn.potential (I, k) I.1.val.1).comp hm (fun _ hx => hx.2) |
| 1330 | have hrot : ContDiffOn ℝ ∞ (fun x : LiftPoint => CartesianCopySource.rotationMap (PhysicalGraphBounds.liftXY x)) |
| 1331 | (liftedNativePast a b) := |
| 1332 | CartesianCopySource.rotationMap_smooth.comp PhysicalGraphBounds.liftXY.contDiff.contDiffOn |
| 1333 | (fun _ hx => PhysicalClassBounds.cylindricalDomain_axisFree (div_pos ha (by norm_num)) hx.1) |
| 1334 | have hv := (ContinuousLinearMap.proj i : ComplexVector →L[ℝ] ℂ).contDiff.comp_contDiffOn |
| 1335 | (hrot.clm_apply hsrc) |
| 1336 | apply (hv.const_smul (ChartScales.Q I.1.val.1 ^ (-h))).congr |
| 1337 | intro x _ |
| 1338 | exact potential_amplitude_eq_source sys hh f i k I x |
| 1339 | |
| 1340 | theorem pressure_amplitude_smooth (k : Frequency) (I : PhysicalWaveSum.WaveIndex 1) : |
| 1341 | ContDiffOn ℝ ∞ ((pressureFamily sys hh f).amplitude k I) (liftedNativePast a b) := by |
| 1342 | have hm : ContDiffOn ℝ ∞ PhysicalClassBounds.cylindricalMap (liftedNativePast a b) := |
| 1343 | (PhysicalClassBounds.cylindricalMap_smooth (div_pos ha (by norm_num))).mono inter_subset_left |
| 1344 | have hsrc := (hn.pressure (I, k) I.1.val.1).comp hm (fun _ hx => hx.2) |
| 1345 | apply (hsrc.const_smul (ChartScales.Q I.1.val.1 ^ (-(2 * CoordinateAlgebra.A h)))).congr |
| 1346 | intro x _ |
| 1347 | exact pressure_amplitude_eq_source sys hh f k I x |
| 1348 | |
| 1349 | omit sys hh f hp hn in |
| 1350 | theorem commonLift_mem_liftedNativePast (n : ℕ) {w : SpaceTime} |
| 1351 | (hw : w ∈ PhysicalWaveSum.preterminal) |
| 1352 | (hann : PhysicalGraphBounds.scaledRadial n w ∈ PhysicalGraphBounds.annulus (a / 4) (2 * b)) : |
| 1353 | PhysicalWaveSum.commonLift h n 0 w ∈ liftedNativePast a b := by |
| 1354 | constructor |
| 1355 | · change a / 4 / 2 < ‖PhysicalGraphBounds.liftXY (PhysicalWaveSum.commonLift h n 0 w)‖ ∧ |
| 1356 | ‖PhysicalGraphBounds.liftXY (PhysicalWaveSum.commonLift h n 0 w)‖ < 2 * b + 1 |
| 1357 | rw [commonLift_zero, PhysicalGraphBounds.liftXY_physicalLift] |
| 1358 | have hb' : ‖PhysicalGraphBounds.scaledRadial n w‖ ≤ 2 * b := by |
| 1359 | simpa only [Metric.mem_closedBall, dist_zero_right] using hann.1 |
| 1360 | have ha' : a / 4 ≤ ‖PhysicalGraphBounds.scaledRadial n w‖ := hann.2 |
| 1361 | exact ⟨by linarith, by linarith⟩ |
| 1362 | · exact PhysicalMeanJetBounds.graph_time_pos h n 0 hw |
| 1363 | |
| 1364 | variable {s : StripData Native} (hloc : PrimitiveLocalization (h := h) f a b s) |
| 1365 | (G : ReferenceGeometry sys f) (hh0 : 0 < h) (hh1 : h < 1 / 2) (hb : 0 < b) |
| 1366 | |
| 1367 | include hp hloc G hh0 hh1 hb |
| 1368 | |
| 1369 | theorem potentialSmooth (i : Fin 3) : |
| 1370 | LocalPhysicalCopyBounds.SmoothData (potentialFamily sys hh f i) (a / 4) h sys.radius := by |
| 1371 | let hr := potential_support sys hh f hloc G hh0 hh1 ha hb i |
| 1372 | constructor |
| 1373 | · intro k I w hw ht |
| 1374 | exact LocalPhysicalCopyBounds.SmoothNear.of_open (liftedNativePast_open a b) |
| 1375 | (potential_amplitude_smooth sys hh f ha hn i k I) |
| 1376 | (commonLift_mem_liftedNativePast ha _ hw (hr.tsupport_geometry I k ht).1) |
| 1377 | · intro k I w hw ht j hj |
| 1378 | have hc := (localizedPotentialCells sys hh f i).term_tsupport_mem |
| 1379 | (div_pos ha (by norm_num)) I k (hr.tsupport_geometry I k ht).1 ht |
| 1380 | have hl := term_tsupport_labelRegion hr hh0 hh1 I k hw ht |
| 1381 | have hp' := hp.covers I.1 w hw hl |
| 1382 | (by simpa only [potentialFamily, commonLift_zero] using hc.2) |
| 1383 | change LocalPhysicalCopyBounds.SmoothNear (extendedCarrier (h := h) f I.1 k).F |
| 1384 | (LocalPhysicalCopyBounds.slotSlow ((extendedCarrier (h := h) f I.1 k).withChart j) _ _ _ _ _) ∧ |
| 1385 | LocalPhysicalCopyBounds.SmoothNear (extendedCarrier (h := h) f I.1 k).G |
| 1386 | (LocalPhysicalCopyBounds.slotSlow ((extendedCarrier (h := h) f I.1 k).withChart j) _ _ _ _ _) |
| 1387 | rw [slotSlow_eq_nativeSlow (div_pos ha (by norm_num)) _ _ _ _ _ _ hj] |
| 1388 | exact ⟨LocalPhysicalCopyBounds.SmoothNear.of_open (hp.region_open I.1) |
| 1389 | (hp.jets.smooth (k, I.1)).fst hp', |
| 1390 | LocalPhysicalCopyBounds.SmoothNear.of_open (hp.region_open I.1) |
| 1391 | (hp.jets.smooth (k, I.1)).snd hp'⟩ |
| 1392 | |
| 1393 | theorem pressureSmooth : |
| 1394 | LocalPhysicalCopyBounds.SmoothData (pressureFamily sys hh f) (a / 4) h sys.radius := by |
| 1395 | let hr := pressure_support sys hh f hloc G hh0 hh1 ha hb |
| 1396 | constructor |
| 1397 | · intro k I w hw ht |
| 1398 | exact LocalPhysicalCopyBounds.SmoothNear.of_open (liftedNativePast_open a b) |
| 1399 | (pressure_amplitude_smooth sys hh f ha hn k I) |
| 1400 | (commonLift_mem_liftedNativePast ha _ hw (hr.tsupport_geometry I k ht).1) |
| 1401 | · intro k I w hw ht j hj |
| 1402 | have hc := (localizedPressureCells sys hh f).term_tsupport_mem |
| 1403 | (div_pos ha (by norm_num)) I k (hr.tsupport_geometry I k ht).1 ht |
| 1404 | have hl := term_tsupport_labelRegion hr hh0 hh1 I k hw ht |
| 1405 | have hp' := hp.covers I.1 w hw hl |
| 1406 | (by simpa only [pressureFamily, commonLift_zero] using hc.2) |
| 1407 | change LocalPhysicalCopyBounds.SmoothNear (extendedCarrier (h := h) f I.1 k).F |
| 1408 | (LocalPhysicalCopyBounds.slotSlow ((extendedCarrier (h := h) f I.1 k).withChart j) _ _ _ _ _) ∧ |
| 1409 | LocalPhysicalCopyBounds.SmoothNear (extendedCarrier (h := h) f I.1 k).G |
| 1410 | (LocalPhysicalCopyBounds.slotSlow ((extendedCarrier (h := h) f I.1 k).withChart j) _ _ _ _ _) |
| 1411 | rw [slotSlow_eq_nativeSlow (div_pos ha (by norm_num)) _ _ _ _ _ _ hj] |
| 1412 | exact ⟨LocalPhysicalCopyBounds.SmoothNear.of_open (hp.region_open I.1) |
| 1413 | (hp.jets.smooth (k, I.1)).fst hp', |
| 1414 | LocalPhysicalCopyBounds.SmoothNear.of_open (hp.region_open I.1) |
| 1415 | (hp.jets.smooth (k, I.1)).snd hp'⟩ |
| 1416 | |
| 1417 | end NativeBounds |
| 1418 | |
| 1419 | /-! ## From native source estimates to actual physical wave data -/ |
| 1420 | |
| 1421 | /-- Taking all three components preserves one constant before the component, |
| 1422 | label, copy, and band indices. -/ |
| 1423 | theorem componentSourceBounds {ι X : Type} [NormedAddCommGroup X] [NormedSpace ℝ X] |
| 1424 | {s : StripData X} {w : ι → ℕ → X → ℝ} {h α : ℝ} |
| 1425 | {f : ι → ℕ → X → ComplexVector} |
| 1426 | (hf : LocalPhysicalCopyBounds.LocalSourceBounds s h α w f) : |
| 1427 | LocalPhysicalCopyBounds.LocalSourceBounds s h α (fun q : Fin 3 × ι => w q.2) |
| 1428 | (fun q n x => f q.2 n x q.1) := by |
| 1429 | refine ⟨⟨fun q => hf.uniform.weight_nonneg q.2, |
| 1430 | fun q n => (ContinuousLinearMap.proj q.1 : ComplexVector →L[ℝ] ℂ).contDiff.comp_contDiffOn |
| 1431 | (hf.uniform.smooth q.2 n), ?_⟩, |
| 1432 | hf.flat_geometry, ?_, hf.epsilon_eq, hf.slow_le⟩ |
| 1433 | · intro m |
| 1434 | obtain ⟨C, hC, p, hb⟩ := hf.uniform.bounds m |
| 1435 | refine ⟨C, hC, p, ?_⟩ |
| 1436 | intro q n x hx j hj |
| 1437 | have hc := ((hf.uniform.smooth q.2 n).contDiffAt (s.isOpen_domain.mem_nhds hx)).of_le |
| 1438 | (ENat.natCast_le_of_coe_top_le_withTop le_rfl j) |
| 1439 | have hproj : ‖(ContinuousLinearMap.proj q.1 : ComplexVector →L[ℝ] ℂ)‖ ≤ 1 := by |
| 1440 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 1441 | intro v |
| 1442 | simp only [one_mul] |
| 1443 | exact norm_le_pi_norm v q.1 |
| 1444 | exact (PhysicalWaveSum.norm_jet_linear_comp_at hc (ContinuousLinearMap.proj q.1)).trans |
| 1445 | ((mul_le_of_le_one_left (norm_nonneg _) hproj).trans (hb q.2 n x hx j hj)) |
| 1446 | · obtain ⟨c, hc, hb⟩ := hf.weight_le |
| 1447 | exact ⟨c, hc, fun q => hb q.2⟩ |
| 1448 | |
| 1449 | /-- An identity source chart, with its closure property derived from the |
| 1450 | actual amplitude support. No physical derivative bound is an input. -/ |
| 1451 | noncomputable def identitySourceChart {N : ℕ} {K I : Type} |
| 1452 | (f : PhysicalCopyBounds.CopyFamily N K) (cells : PhysicalCopyBounds.SupportCells f) |
| 1453 | {a b h r Z σ : ℝ} {gap : ℕ} (ha : 0 < a) |
| 1454 | (hs : LocalPhysicalCopyBounds.SupportData f a b h r Z gap) |
| 1455 | (s : StripData LiftPoint) (source : I → ℕ → LiftPoint → ℂ) |
| 1456 | (idx : K → PhysicalWaveSum.WaveIndex N → I) |
| 1457 | (he : ∀ k J x, f.amplitude k J x = |
| 1458 | ChartScales.Q J.1.val.1 ^ σ • source (idx k J) J.1.val.1 x) |
| 1459 | (hd : ∀ k J x, f.amplitude k J x ≠ 0 → x ∈ s.domain) : |
| 1460 | LocalPhysicalCopyBounds.CommonChart f cells a b h r σ source where |
| 1461 | sourceIndex := idx |
| 1462 | map _ _ := id |
| 1463 | domain _ _ := s.domain |
| 1464 | open_domain _ _ := s.isOpen_domain |
| 1465 | smooth _ _ := contDiffOn_id |
| 1466 | positive_jets m := by |
| 1467 | refine ⟨1, le_rfl, 0, ?_⟩ |
| 1468 | intro k J x hx j hj hjm |
| 1469 | simp only [pow_zero, mul_one] |
| 1470 | exact (PhysicalGraphBounds.norm_positive_jet_linear_le |
| 1471 | (ContinuousLinearMap.id ℝ LiftPoint) x hj).trans (by simp) |
| 1472 | amplitude_eq k J x _ := he k J x |
| 1473 | contains k J z _ _ _ _ hz := by |
| 1474 | have hrad := (hs.tsupport_geometry J k hz).1 |
| 1475 | have hm := (PhysicalWaveSum.commonLift_smoothAt h J.1.val.1 (f.gap J.1) |
| 1476 | (PhysicalGraphBounds.scaledRadial_ne_zero (PhysicalGraphBounds.annulus_axisFree ha hrad))).continuousAt |
| 1477 | exact hm.continuousWithinAt.mem_closure hz |
| 1478 | (fun y hy => hd k J _ (PhysicalWaveSum.globalWave_ne_zero_amp hy)) |
| 1479 | |
| 1480 | section WaveData |
| 1481 | |
| 1482 | variable {D h : ℝ} |
| 1483 | (sys : PartitionedCovariance.SlotSystem D h ActualSignedGeometry.radialVector ActualSignedGeometry.temporalVector) |
| 1484 | (hh : 0 ≤ h) {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} (f : SignedFamily U) |
| 1485 | {a b : ℝ} {s : StripData Native} (hloc : PrimitiveLocalization (h := h) f a b s) |
| 1486 | (G : ReferenceGeometry sys f) (hh0 : 0 < h) (hh1 : h < 1 / 2) |
| 1487 | (ha : 0 < a) (hb : 0 < b) |
| 1488 | |
| 1489 | include hloc hh0 hh1 ha hb |
| 1490 | |
| 1491 | theorem potential_source_domain (i : Fin 3) (k : Frequency) (I : PhysicalWaveSum.WaveIndex 1) |
| 1492 | (x : LiftPoint) (hx : (potentialFamily sys hh f i).amplitude k I x ≠ 0) : |
| 1493 | x ∈ (CartesianCopySource.pullStrip s (a / 4) (2 * b) (div_pos ha (by norm_num))).domain := by |
| 1494 | obtain ⟨hL, _, hm, ht⟩ := potential_amplitude_inputs sys hh f i k I x hx |
| 1495 | have hg := primitive_annulus (f := f) hloc hh0 hh1 ha hb ⟨I.1.val, I.1.property, hL⟩ x hm ht |
| 1496 | refine ⟨?_, primitive_domain (f := f) hloc ⟨I.1.val, I.1.property, hL⟩ x hm ht⟩ |
| 1497 | have hu : ‖PhysicalGraphBounds.liftXY x‖ ≤ 2 * b := by |
| 1498 | simpa only [Metric.mem_closedBall, dist_zero_right] using hg.1.1 |
| 1499 | have hl : a / 4 ≤ ‖PhysicalGraphBounds.liftXY x‖ := hg.1.2 |
| 1500 | exact ⟨by change a / 4 / 2 < _; linarith, by change _ < 2 * b + 1; linarith⟩ |
| 1501 | |
| 1502 | theorem pressure_source_domain (k : Frequency) (I : PhysicalWaveSum.WaveIndex 1) |
| 1503 | (x : LiftPoint) (hx : (pressureFamily sys hh f).amplitude k I x ≠ 0) : |
| 1504 | x ∈ (CartesianCopySource.pullStrip s (a / 4) (2 * b) (div_pos ha (by norm_num))).domain := by |
| 1505 | obtain ⟨hL, _, hm, ht⟩ := pressure_amplitude_inputs sys hh f k I x hx |
| 1506 | have hg := primitive_annulus (f := f) hloc hh0 hh1 ha hb ⟨I.1.val, I.1.property, hL⟩ x hm ht |
| 1507 | refine ⟨?_, primitive_domain (f := f) hloc ⟨I.1.val, I.1.property, hL⟩ x hm ht⟩ |
| 1508 | have hu : ‖PhysicalGraphBounds.liftXY x‖ ≤ 2 * b := by |
| 1509 | simpa only [Metric.mem_closedBall, dist_zero_right] using hg.1.1 |
| 1510 | have hl : a / 4 ≤ ‖PhysicalGraphBounds.liftXY x‖ := hg.1.2 |
| 1511 | exact ⟨by change a / 4 / 2 < _; linarith, by change _ < 2 * b + 1; linarith⟩ |
| 1512 | |
| 1513 | omit sys hh hloc G hh0 hh1 ha hb in |
| 1514 | theorem carrier_frequencies {P : ℝ} (hP : 1 ≤ P) |
| 1515 | (hf : ∀ L : NativeLabel f.active, |
| 1516 | |((f.primary L).pulse (f.column L)).phase.p L.val.1| ≤ P ∧ |
| 1517 | |((f.primary L).pulse (f.column L)).phase.pz L.val.1| ≤ P ∧ |
| 1518 | |((f.primary L).pulse (f.column L)).phase.x0 L.val.1| ≤ P) |
| 1519 | (k : Frequency) (L : PhysicalWaveSum.BandLabel) : |
| 1520 | |(extendedCarrier (h := h) f L k).angular| ≤ P ∧ |
| 1521 | |(extendedCarrier (h := h) f L k).axial| ≤ P ∧ |
| 1522 | |(extendedCarrier (h := h) f L k).radial| ≤ P := by |
| 1523 | by_cases hL : L ∈ f.active |
| 1524 | · simpa only [extendedCarrier, dite_eq_left hL, selectedCarrier, carrier] using |
| 1525 | hf ⟨L.val, L.property, hL⟩ |
| 1526 | · simp only [extendedCarrier, dite_eq_right hL, carrier, abs_zero] |
| 1527 | exact ⟨le_trans zero_le_one hP, le_trans zero_le_one hP, le_trans zero_le_one hP⟩ |
| 1528 | |
| 1529 | variable (hp : NativeProfiles (h := h) f) (hn : NativeRegular sys hh f) |
| 1530 | {P : ℝ} (hP : 1 ≤ P) |
| 1531 | (hf : ∀ L : NativeLabel f.active, |
| 1532 | |((f.primary L).pulse (f.column L)).phase.p L.val.1| ≤ P ∧ |
| 1533 | |((f.primary L).pulse (f.column L)).phase.pz L.val.1| ≤ P ∧ |
| 1534 | |((f.primary L).pulse (f.column L)).phase.x0 L.val.1| ≤ P) |
| 1535 | {α : ℝ} {w : SourceIndex → ℕ → Native → ℝ} |
| 1536 | |
| 1537 | /-- The physical potential estimate is constructed from the literal cut |
| 1538 | native potential, Cartesian rotation, and the actual copy geometry. -/ |
| 1539 | noncomputable def potentialWaveData |
| 1540 | (hs : LocalPhysicalCopyBounds.LocalSourceBounds s h α w (nativePotentialSource sys hh f)) : |
| 1541 | PhysicalStageBounds.WaveData h LiftPoint (Fin 3 × SourceIndex) Frequency (Fin 3) where |
| 1542 | lowerRadius := a / 4 |
| 1543 | upperRadius := 2 * b |
| 1544 | nativeWidth := sys.radius |
| 1545 | slowBound := 2 |
| 1546 | frequencyBound := P |
| 1547 | alpha := α |
| 1548 | shift := -h |
| 1549 | harmonics := 1 |
| 1550 | gapBound := 0 |
| 1551 | lower_pos := div_pos ha (by norm_num) |
| 1552 | width_nonneg := sys.radius_pos.le |
| 1553 | slow_nonneg := by norm_num |
| 1554 | frequency_one_le := hP |
| 1555 | strip := CartesianCopySource.pullStrip s (a / 4) (2 * b) (div_pos ha (by norm_num)) |
| 1556 | weight I n x := w I.2 n (PhysicalClassBounds.cylindricalMap x) |
| 1557 | source I n x := CartesianCopySource.rotatedSource (nativePotentialSource sys hh f) I.2 n x I.1 |
| 1558 | source_bounds := componentSourceBounds (CartesianCopySource.sourceBounds_rotated |
| 1559 | (b := 2 * b) (div_pos ha (by norm_num)) hs) |
| 1560 | copies := potentialFamily sys hh f |
| 1561 | cells := localizedPotentialCells sys hh f |
| 1562 | chart i := identitySourceChart _ _ (div_pos ha (by norm_num)) |
| 1563 | (potential_support sys hh f hloc G hh0 hh1 ha hb i) _ _ (fun k I => (i, I, k)) |
| 1564 | (potential_amplitude_eq_source sys hh f i) |
| 1565 | (potential_source_domain sys hh f hloc hh0 hh1 ha hb i) |
| 1566 | chart_maps _ _ _ := fun _ hx => hx |
| 1567 | carrier := potentialCarrier sys hh f ha hp |
| 1568 | support := potential_support sys hh f hloc G hh0 hh1 ha hb |
| 1569 | smooth := potentialSmooth sys hh f ha hp hn hloc G hh0 hh1 hb |
| 1570 | frequencies _ := carrier_frequencies f hP hf |
| 1571 | |
| 1572 | /-- Pressure retains its own physical factor, exactly once. -/ |
| 1573 | noncomputable def pressureWaveData |
| 1574 | (hs : LocalPhysicalCopyBounds.LocalSourceBounds s h α w (nativePressureSource sys hh f)) : |
| 1575 | PhysicalStageBounds.WaveData h LiftPoint SourceIndex Frequency Unit where |
| 1576 | lowerRadius := a / 4 |
| 1577 | upperRadius := 2 * b |
| 1578 | nativeWidth := sys.radius |
| 1579 | slowBound := 2 |
| 1580 | frequencyBound := P |
| 1581 | alpha := α |
| 1582 | shift := -(2 * CoordinateAlgebra.A h) |
| 1583 | harmonics := 1 |
| 1584 | gapBound := 0 |
| 1585 | lower_pos := div_pos ha (by norm_num) |
| 1586 | width_nonneg := sys.radius_pos.le |
| 1587 | slow_nonneg := by norm_num |
| 1588 | frequency_one_le := hP |
| 1589 | strip := CartesianCopySource.pullStrip s (a / 4) (2 * b) (div_pos ha (by norm_num)) |
| 1590 | weight I n x := w I n (PhysicalClassBounds.cylindricalMap x) |
| 1591 | source I n x := nativePressureSource sys hh f I n (PhysicalClassBounds.cylindricalMap x) |
| 1592 | source_bounds := CartesianCopySource.sourceBounds_pullback (b := 2 * b) |
| 1593 | (div_pos ha (by norm_num)) hs |
| 1594 | copies _ := pressureFamily sys hh f |
| 1595 | cells _ := localizedPressureCells sys hh f |
| 1596 | chart _ := identitySourceChart _ _ (div_pos ha (by norm_num)) |
| 1597 | (pressure_support sys hh f hloc G hh0 hh1 ha hb) _ _ (fun k I => (I, k)) |
| 1598 | (pressure_amplitude_eq_source sys hh f) |
| 1599 | (pressure_source_domain sys hh f hloc hh0 hh1 ha hb) |
| 1600 | chart_maps _ _ _ := fun _ hx => hx |
| 1601 | carrier _ := pressureCarrier sys hh f ha hp |
| 1602 | support _ := pressure_support sys hh f hloc G hh0 hh1 ha hb |
| 1603 | smooth _ := pressureSmooth sys hh f ha hp hn hloc G hh0 hh1 hb |
| 1604 | frequencies _ := carrier_frequencies f hP hf |
| 1605 | |
| 1606 | variable |
| 1607 | (hpotential : LocalPhysicalCopyBounds.LocalSourceBounds s h α w (nativePotentialSource sys hh f)) |
| 1608 | (hpressure : LocalPhysicalCopyBounds.LocalSourceBounds s h α w (nativePressureSource sys hh f)) |
| 1609 | |
| 1610 | /- Every fixed physical jet is controlled by the supplied native exponent, |
| 1611 | with the physical potential scaling retained exactly. -/ |
| 1612 | |
| 1613 | end WaveData |
| 1614 | |
| 1615 | /-! ## Cartesian germs of the original reference fields -/ |
| 1616 | |
| 1617 | theorem polarCoordinates_backward {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 1618 | {x : SpaceTime} (hx : PhysicalGraphBounds.radialProjection x ∈ PolarCharts.chartDomain a j) : |
| 1619 | ((PhysicalCurlCovariance.polarCoordinates a j x).1, |
| 1620 | CylindricalResidual.chart (PhysicalCurlCovariance.polarCoordinates a j x).2) = x := by |
| 1621 | have hp := PolarCharts.polar_chart ha j hx |
| 1622 | refine Prod.ext rfl ?_ |
| 1623 | ext i |
| 1624 | fin_cases i |
| 1625 | · simpa [PhysicalCurlCovariance.polarCoordinates, PhysicalCurlCovariance.polarInput, |
| 1626 | CylindricalResidual.chart, coordinateVector, |
| 1627 | PiLp.single_apply, PolarCharts.polar, PhysicalGraphBounds.radialProjection_apply] |
| 1628 | using congrArg Prod.fst hp |
| 1629 | · simpa [PhysicalCurlCovariance.polarCoordinates, PhysicalCurlCovariance.polarInput, |
| 1630 | CylindricalResidual.chart, coordinateVector, |
| 1631 | PiLp.single_apply, PolarCharts.polar, PhysicalGraphBounds.radialProjection_apply] |
| 1632 | using congrArg Prod.snd hp |
| 1633 | · simp [PhysicalCurlCovariance.polarCoordinates, CylindricalResidual.chart] |
| 1634 | |
| 1635 | theorem polarCoordinates_valid {a : ℝ} (ha : 0 < a) (j : PolarCharts.Index) |
| 1636 | {x : SpaceTime} (hx : PhysicalGraphBounds.radialProjection x ∈ PolarCharts.chartDomain a j) : |
| 1637 | PhysicalCurlCovariance.polarCoordinates a j x ∈ PhysicalCurlCovariance.validCylindrical a j := by |
| 1638 | have hr : 0 < PolarCharts.radius (PhysicalGraphBounds.radialProjection x) := by |
| 1639 | rw [← PolarCharts.radius_rotate j] |
| 1640 | apply PolarCharts.radius_pos_of_fst_pos |
| 1641 | have hx' : a / 4 < (PolarCharts.rotate j (PhysicalGraphBounds.radialProjection x)).1 := hx |
| 1642 | linarith |
| 1643 | change 0 < (PhysicalCurlCovariance.polarCoordinates a j x).2 0 ∧ _ |
| 1644 | refine ⟨?_, ?_, ?_⟩ |
| 1645 | · rwa [PhysicalCurlCovariance.polarCoordinates_radius ha j hx] |
| 1646 | · simp only [PhysicalCurlCovariance.polarCoordinates, AxisymmetricResidual.pack_one, |
| 1647 | PhysicalCurlCovariance.polarInput, PolarCharts.chart_eq_localChart ha j hx, |
| 1648 | PolarCharts.localChart_apply, add_sub_cancel_right] |
| 1649 | exact ⟨Real.neg_pi_div_two_lt_arctan _, Real.arctan_lt_pi_div_two _⟩ |
| 1650 | · simpa only [PhysicalCurlCovariance.polarCoordinates, AxisymmetricResidual.pack_zero, |
| 1651 | AxisymmetricResidual.pack_one, PhysicalCurlCovariance.polarInput, Prod.eta, |
| 1652 | PolarCharts.polar_chart ha j hx] using hx |
| 1653 | |
| 1654 | section ReferenceGerms |
| 1655 | |
| 1656 | variable {D h : ℝ} |
| 1657 | (sys : PartitionedCovariance.SlotSystem D h ActualSignedGeometry.radialVector ActualSignedGeometry.temporalVector) |
| 1658 | (hh : 0 ≤ h) {U : PhaseJetBounds.Domain ℕ PhaseCalculus.Slow} (f : SignedFamily U) |
| 1659 | |
| 1660 | variable (G : ReferenceGeometry sys f) (L : NativeLabel f.active) |
| 1661 | (hPhi : ContDiffOn ℝ ∞ ((f.primary L).base.phase L.val.1) (f.primary L).strip.domain) |
| 1662 | {a b delta : ℝ} (ha : 0 < a) (hd : 0 < delta) (j : PolarCharts.Index) |
| 1663 | |
| 1664 | include G ha hd |
| 1665 | |
| 1666 | end ReferenceGerms |
| 1667 | |
| 1668 | end NavierStokes.ActualSignedPhysicalData |