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.ActualSignedPhysicalData |
| 2 | import NavierStokes.ActualSignedStageControls |
| 3 | import NavierStokes.ActualReferenceRebase |
| 4 | import NavierStokes.TorusMeanRequestRebase |
| 5 | import NavierStokes.ActualCycleParameters |
| 6 | |
| 7 | /-! |
| 8 | # The actual signed family at its native reference bands |
| 9 | |
| 10 | Each primary label retains its own prepared slow domain. The otherwise |
| 11 | irrelevant band index in a physical reference is frozen at that label's |
| 12 | reference band. In particular, no global ordering of a fixed native cover |
| 13 | above all common covers is asserted. |
| 14 | |
| 15 | The request uses the actual common-reference state and its torus average. |
| 16 | Only the wave geometry is put in native coordinates: inverse-cover pullback |
| 17 | of the entire state would in general have only subcover periodicity. |
| 18 | -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | namespace NavierStokes.ActualSignedPhysicalBinding |
| 23 | |
| 24 | open Set Function Filter WeightedClasses CorrectionState TorusMeanRequestRebase |
| 25 | open scoped ContDiff Topology BigOperators |
| 26 | |
| 27 | |
| 28 | abbrev Point := LocalSignedRequest.Point |
| 29 | abbrev Cylinder := PhysicalSignedWave.Cylinder |
| 30 | abbrev Slow := PhaseCalculus.Slow |
| 31 | abbrev Plane := TorusInverse.Plane |
| 32 | abbrev Space := ProblemStatement.Space |
| 33 | abbrev Label (B N0 : ℕ) := ActualSignedStageControls.SignedLabel B N0 |
| 34 | |
| 35 | open CorrectionInitialization CorrectionInitialization.ActualPrimary |
| 36 | |
| 37 | variable {B N0 : ℕ} |
| 38 | |
| 39 | noncomputable def reference (l : Label B N0) : ℕ := BaseChartJets.cellBand l.1 |
| 40 | |
| 41 | noncomputable def domain (l : Label B N0) : PhaseJetBounds.Domain ℕ Slow := |
| 42 | ActualParticularStageControls.reindexDomain |
| 43 | (PrimaryGeometryAssembly.domain nominal (choice B N0).prepared.N) (fun _ => l.1) |
| 44 | |
| 45 | noncomputable def pulse (l : Label B N0) (j : Fin 2) : |
| 46 | PrimaryPulseBounds.PhaseConstruction (domain l) := |
| 47 | ActualParticularStageControls.reindexConstruction (phases B N0 j) (fun _ => l.1) |
| 48 | |
| 49 | @[simp] theorem pulse_frame (l : Label B N0) (j : Fin 2) (n : ℕ) : |
| 50 | (pulse l j).frame n = (phases B N0 j).frame l.1 := rfl |
| 51 | |
| 52 | noncomputable def spatialLabel (l : Label B N0) : SlotColoring.Label := |
| 53 | PartitionedCovariance.signedLabel (PrimaryGeometryAssembly.label nominal l.1) l.2 |
| 54 | |
| 55 | noncomputable def geometry (l : Label B N0) : CommonCoverSolve.Geometry := |
| 56 | ActualSignedGeometry.slotGeometry slots vectors_det (spatialLabel l) 0 |
| 57 | |
| 58 | noncomputable def nativeClock (l : Label B N0) (Y : Plane) : ℝ := |
| 59 | PeriodicPhaseAssembly.periodicClock (geometry l) (clockWindow l.1).cutoff Y |
| 60 | |
| 61 | /-- Native free coordinates mapped to the actual common reference lift. -/ |
| 62 | noncomputable def toCommon (l : Label B N0) : Point ≃L[ℝ] Point := |
| 63 | (CorrectionStep.cycleAssoc.toContinuousLinearEquiv.trans |
| 64 | (ActualReferenceRebase.inverseCover |
| 65 | (ChartScales.nativeIndex h (reference l) - CommonWindow.index h (reference l)))).trans |
| 66 | CorrectionStep.cycleAssoc.symm.toContinuousLinearEquiv |
| 67 | |
| 68 | noncomputable def toCommonCylinder (l : Label B N0) : Cylinder ≃L[ℝ] Cylinder := |
| 69 | PhysicalResidualTZ.swapCylinder.toContinuousLinearEquiv.trans |
| 70 | ((toCommon l).prodCongr (ContinuousLinearEquiv.refl ℝ ℝ)) |
| 71 | |
| 72 | @[simp] theorem toCommon_apply (l : Label B N0) (x : Point) : |
| 73 | toCommon l x = (x.1, (x.2.1, |
| 74 | (CommonCoverSolve.coverPower (ChartScales.nativeIndex h (reference l) - |
| 75 | CommonWindow.index h (reference l))).symm x.2.2)) := rfl |
| 76 | |
| 77 | @[simp] theorem toCommonCylinder_apply (l : Label B N0) (x : Cylinder) : |
| 78 | toCommonCylinder l x = ((x.1.1, ((x.1.2.1.2, x.1.2.1.1), |
| 79 | (CommonCoverSolve.coverPower (ChartScales.nativeIndex h (reference l) - |
| 80 | CommonWindow.index h (reference l))).symm x.1.2.2)), x.2) := rfl |
| 81 | |
| 82 | @[simp] theorem toCommonCylinder_symm_apply (l : Label B N0) (x : Cylinder) : |
| 83 | (toCommonCylinder l).symm x = ((x.1.1, ((x.1.2.1.2, x.1.2.1.1), |
| 84 | CommonCoverSolve.coverPower (ChartScales.nativeIndex h (reference l) - |
| 85 | CommonWindow.index h (reference l)) x.1.2.2)), x.2) := by |
| 86 | apply (toCommonCylinder l).injective |
| 87 | rw [ContinuousLinearEquiv.apply_symm_apply, toCommonCylinder_apply] |
| 88 | simp only [ContinuousLinearEquiv.symm_apply_apply] |
| 89 | |
| 90 | noncomputable def strip (l : Label B N0) : StripData Cylinder := |
| 91 | freezeStrip (ParticularWaveBounds.reindexStrip PhysicalResidualTZ.swapCylinder |
| 92 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal standardRegion))) |
| 93 | (reference l) |
| 94 | |
| 95 | noncomputable def base (l : Label B N0) : LinearWaveBounds.WaveCoefficients Cylinder := |
| 96 | freezeWave (ActualReferenceRebase.pullWave (toCommonCylinder l) |
| 97 | (chartCoefficients l.2 l.1)) (reference l) |
| 98 | |
| 99 | noncomputable def directions (l : Label B N0) : LinearWaveBounds.GraphDirections Cylinder := |
| 100 | freezeDirections (ActualReferenceRebase.pullDirections (toCommonCylinder l) |
| 101 | (PrimaryResidualClass.directions (commonContext B))) (reference l) |
| 102 | |
| 103 | /-- Actual selected primary data. Only the dummy index is repeated. -/ |
| 104 | noncomputable def primary (l : Label B N0) : PhysicalSignedWave.PrimaryData (domain l) where |
| 105 | strip := strip l |
| 106 | base := base l |
| 107 | directions := directions l |
| 108 | pulse := pulse l |
| 109 | prefactor j _ := prefactor j l.1 |
| 110 | coordinate _ x := ((x.1.1, x.1.2.1), nativeClock l x.1.2.2 / (phases B N0 0).L l.1) |
| 111 | target _ x := fun q => PrimaryTargetBounds.actualTarget modulation (x.1.1, x.1.2.1) q |
| 112 | mask _ x := spatialMask l.1 (x.1.1, x.1.2.1) |
| 113 | normalMotion _ x := (phases B N0 l.2).phase.velocity l.1 |
| 114 | ((x.1.1, x.1.2.1), nativeClock l x.1.2.2) |
| 115 | action _ x := PrimaryCopyBridge.baseOperator |
| 116 | ((phases B N0 l.2).phase.F l.1 (x.1.1, x.1.2.1)) |
| 117 | ((phases B N0 l.2).phase.shear l.1 ((x.1.1, x.1.2.1), nativeClock l x.1.2.2)) |
| 118 | |
| 119 | /-- All dummy bands describe this one native physical reference. -/ |
| 120 | noncomputable def nativeViews (l : Label B N0) : (primary l).Views (reference l) := |
| 121 | identityViews (primary l) (reference l) h (ChartScales.Q (reference l)) |
| 122 | (ChartScales.nativeIndex h (reference l)) (ChartScales.Q_pos _) |
| 123 | (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos h _)).ne' |
| 124 | |
| 125 | @[simp] theorem nativeViews_map (l : Label B N0) (n : ℕ) (x : Cylinder) : |
| 126 | (nativeViews l).map n x = x := by |
| 127 | simp [PhysicalSignedWave.PrimaryData.Views.map, nativeViews, identityViews, |
| 128 | PhysicalParticularWave.cylinderChange, ActualReferenceRebase.ratioPower_self (ChartScales.Q_pos _), |
| 129 | CommonCoverSolve.coverPower] |
| 130 | |
| 131 | @[simp] theorem nativeViews_velocity (l : Label B N0) (n : ℕ) : |
| 132 | (nativeViews l).velocity n = 1 := by |
| 133 | exact ActualReferenceRebase.ratioPower_self (ChartScales.Q_pos _) _ |
| 134 | |
| 135 | @[simp] theorem primary_frequency (l : Label B N0) (n : ℕ) : |
| 136 | (primary l).base.frequency n = (ChartScales.carrier h (reference l) : ℝ) := rfl |
| 137 | |
| 138 | @[simp] theorem primary_epsilon (l : Label B N0) (n : ℕ) : |
| 139 | (primary l).strip.epsilon n = ChartScales.epsilon h (reference l) := rfl |
| 140 | |
| 141 | theorem primary_matrix (l : Label B N0) (n : ℕ) (x : Cylinder) : |
| 142 | (primary l).matrix n x = covariance B N0 l.1 (x.1.1, x.1.2.1) := by |
| 143 | rw [covariance_eq_integral] |
| 144 | rfl |
| 145 | |
| 146 | theorem native_change_cancel (l : Label B N0) (x : Cylinder) : |
| 147 | PhysicalParticularWave.cylinderChange h (ChartScales.Q (reference l)) |
| 148 | (ChartScales.Q (reference l)) |
| 149 | (ChartScales.nativeIndex h (reference l) - CommonWindow.index h (reference l)) |
| 150 | (PhysicalResidualTZ.swapCylinder (toCommonCylinder l x)) = x := by |
| 151 | simp [PhysicalParticularWave.cylinderChange_apply, PhysicalParticularWave.chartChange_apply, |
| 152 | toCommonCylinder, toCommon, PhysicalResidualTZ.swapCylinder_apply, |
| 153 | PhysicalResidualTZ.swapSlow_apply, ActualReferenceRebase.ratioPower_self (ChartScales.Q_pos _), |
| 154 | CorrectionStep.cycleAssoc, ActualReferenceRebase.inverseCover, ParticularWaveBounds.liftAssoc] |
| 155 | |
| 156 | theorem primary_phase (l : Label B N0) (n : ℕ) : |
| 157 | (primary l).base.phase n = |
| 158 | ActualSignedGeometry.periodicPhase slots (spatialLabel l) 0 |
| 159 | (ChartScales.epsilon h (reference l)) ((pulse l l.2).phase.p (reference l)) |
| 160 | ((pulse l l.2).phase.pz (reference l)) ((pulse l l.2).phase.x0 (reference l)) |
| 161 | ((pulse l l.2).phase.F (reference l)) ((pulse l l.2).phase.G (reference l)) := by |
| 162 | funext x |
| 163 | change (chartCoefficients l.2 l.1).phase (reference l) (toCommonCylinder l x) = _ |
| 164 | rw [chartCoefficients_phase_view l.2 l.1 (reference l) (CommonWindow.index_le_native h _)] |
| 165 | unfold ActualSignedGeometry.preparedViewPhase |
| 166 | change ((ChartScales.carrier h (reference l) : ℝ) / ChartScales.carrier h (reference l)) * |
| 167 | ActualSignedGeometry.preparedPhase certificate modulation slots (choice B N0).prepared l.2 l.1 |
| 168 | (PhysicalParticularWave.cylinderChange h (ChartScales.Q (reference l)) (ChartScales.Q (reference l)) |
| 169 | (ChartScales.nativeIndex h (reference l) - CommonWindow.index h (reference l)) |
| 170 | (PhysicalResidualTZ.swapCylinder (toCommonCylinder l x))) = _ |
| 171 | rw [native_change_cancel l x] |
| 172 | have hK : (ChartScales.carrier h (reference l) : ℝ) ≠ 0 := |
| 173 | (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos h _)).ne' |
| 174 | rw [div_self hK, one_mul] |
| 175 | rfl |
| 176 | |
| 177 | /-- The native record retains the exact annular domain; it is not an empty |
| 178 | or shrinking domain chosen to make the reference data vacuous. -/ |
| 179 | theorem primary_domain (l : Label B N0) (x : Cylinder) : |
| 180 | x ∈ (primary l).strip.domain ↔ |
| 181 | PhysicalResidualTZ.swapSlow x.1 ∈ |
| 182 | (BaseContextAssembly.nativeStrip nominal standardRegion).domain := Iff.rfl |
| 183 | |
| 184 | theorem primary_time_pos (l : Label B N0) {x : Cylinder} |
| 185 | (hx : x ∈ (primary l).strip.domain) : 0 < x.1.2.1.2 := |
| 186 | BaseContextAssembly.nativeStrip_time nominal standardRegion hx |
| 187 | |
| 188 | theorem primary_slow_mem (l : Label B N0) {x : Cylinder} |
| 189 | (hx : x ∈ (primary l).strip.domain) : (x.1.2.1.2, x.1.2.1.1) ∈ standardRegion.carrier := |
| 190 | ((BaseContextAssembly.nativeStrip_mem nominal standardRegion |
| 191 | (PhysicalResidualTZ.swapSlow x.1)).mp hx).1 |
| 192 | |
| 193 | theorem primary_radial (l : Label B N0) (n : ℕ) : |
| 194 | (primary l).directions.radialField n = |
| 195 | (PhysicalResidualBridge.commonGraph (ChartScales.Q (reference l)) h |
| 196 | (ChartScales.nativeIndex h (reference l))).radial := by |
| 197 | funext x |
| 198 | simp only [primary, directions, freezeDirections, |
| 199 | LinearWaveBounds.GraphDirections.radialField, ActualReferenceRebase.pullDirections, |
| 200 | ← map_smul, ← map_add] |
| 201 | change (toCommonCylinder l).symm |
| 202 | ((PrimaryResidualClass.directions (commonContext B)).radialField (reference l) |
| 203 | (toCommonCylinder l x)) = _ |
| 204 | have hr := ActualPrimaryCoherence.chart_radial_swap B (reference l) (toCommonCylinder l x) |
| 205 | apply (toCommonCylinder l).injective |
| 206 | rw [ContinuousLinearEquiv.apply_symm_apply] |
| 207 | apply PhysicalResidualTZ.swapCylinder.injective |
| 208 | rw [hr] |
| 209 | simp [toCommonCylinder, toCommon, PhysicalResidualTZ.swapCylinder_apply, |
| 210 | PhysicalResidualTZ.swapSlow_apply, CorrectionStep.cycleAssoc, ParticularWaveBounds.liftAssoc, |
| 211 | ActualReferenceRebase.inverseCover, PhysicalResidualBridge.ScaledGraph.radial, |
| 212 | PhysicalResidualBridge.commonGraph] |
| 213 | apply (CommonCoverSolve.coverPower (ChartScales.nativeIndex h (reference l) - |
| 214 | CommonWindow.index h (reference l))).injective |
| 215 | simp only [map_smul, ContinuousLinearEquiv.apply_symm_apply] |
| 216 | rw [show CommonCoverSolve.coverPower (ChartScales.nativeIndex h (reference l) - |
| 217 | CommonWindow.index h (reference l)) PhysicalGraphBounds.radialDirection = |
| 218 | ChartScales.Lambda ^ (ChartScales.nativeIndex h (reference l) - CommonWindow.index h (reference l)) • |
| 219 | PhysicalGraphBounds.radialDirection from CommonBaseContext.coverPower_radial _, |
| 220 | smul_smul] |
| 221 | congr 1 |
| 222 | have hi := Nat.add_sub_of_le (CommonWindow.index_le_native h (reference l)) |
| 223 | conv_rhs => rw [← hi, pow_add] |
| 224 | ring |
| 225 | |
| 226 | theorem primary_angular (l : Label B N0) : |
| 227 | (primary l).directions.angular = ((0, 1) : Cylinder) := by |
| 228 | change (toCommonCylinder l).symm (0, 1) = _ |
| 229 | simp only [toCommonCylinder_symm_apply, Prod.fst_zero, Prod.snd_zero, map_zero] |
| 230 | rfl |
| 231 | |
| 232 | theorem primary_axial (l : Label B N0) (n : ℕ) : |
| 233 | (primary l).directions.axialField (primary l).strip n = |
| 234 | (PhysicalResidualBridge.commonGraph (ChartScales.Q (reference l)) h |
| 235 | (ChartScales.nativeIndex h (reference l))).axial := by |
| 236 | funext x |
| 237 | change (primary l).strip.epsilon n • |
| 238 | (toCommonCylinder l).symm (((0, ((0, 1), 0)), 0) : Cylinder) = _ |
| 239 | rw [primary_epsilon, toCommonCylinder_symm_apply] |
| 240 | simp [PhysicalResidualBridge.ScaledGraph.axial, PhysicalResidualBridge.commonGraph, ChartScales.epsilon] |
| 241 | |
| 242 | theorem primary_chart (l : Label B N0) (n : ℕ) : |
| 243 | PhysicalSignedWave.ChartGeometry (primary l).base (primary l).strip (primary l).directions n |
| 244 | h (ChartScales.Q (reference l)) (ChartScales.nativeIndex h (reference l)) := by |
| 245 | refine ⟨rfl, primary_radial l n, ?_, primary_axial l n⟩ |
| 246 | funext x |
| 247 | exact primary_angular l |
| 248 | |
| 249 | /-- The actual current common state supplies the torus-mean request. The |
| 250 | primitive hypotheses concern only the real local incoming fields. -/ |
| 251 | noncomputable def nativeStateData (l : Label B N0) (P : SignedStressPrimitive.Patch) |
| 252 | (u : State Point) |
| 253 | (H : MeanStateRegularity.PrimitiveData standardRegion P.a P.b (commonContext B) u) |
| 254 | (hp : GaugeMomentBalances.MovingField standardRegion P.a P.b u.pressure) : |
| 255 | (nativeViews l).StateData := |
| 256 | TorusMeanRequestRebase.stateData (primary l) (reference l) h (ChartScales.Q (reference l)) |
| 257 | (ChartScales.nativeIndex h (reference l)) (ChartScales.Q_pos _) |
| 258 | (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos h _)).ne' |
| 259 | outgoing.data.h_pos outgoing.data.h_lt_half standardRegion P (commonContext B) u H hp |
| 260 | (fun _ hx => primary_slow_mem l hx) |
| 261 | |
| 262 | theorem nativeStateData_referenceRequest (l : Label B N0) (P : SignedStressPrimitive.Patch) |
| 263 | (u : State Point) |
| 264 | (H : MeanStateRegularity.PrimitiveData standardRegion P.a P.b (commonContext B) u) |
| 265 | (hp : GaugeMomentBalances.MovingField standardRegion P.a P.b u.pressure) (x : Cylinder) : |
| 266 | (nativeStateData l P u H hp).referenceRequest (reference l) x = |
| 267 | LocalSignedRequest.fullRequest (BaseContextAssembly.nativeStrip nominal standardRegion) |
| 268 | P (2 * h) (commonContext B) u (reference l) (toCommonCylinder l x) := |
| 269 | TorusMeanRequestRebase.stateData_referenceRequest_fast (primary l) (reference l) h |
| 270 | (ChartScales.Q (reference l)) (ChartScales.nativeIndex h (reference l)) (ChartScales.Q_pos _) |
| 271 | (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos h _)).ne' |
| 272 | outgoing.data.h_pos outgoing.data.h_lt_half standardRegion P (commonContext B) u H hp |
| 273 | (fun _ hx => primary_slow_mem l hx) |
| 274 | (BaseContextAssembly.nativeStrip nominal standardRegion) rfl |
| 275 | (CommonCoverSolve.coverPower (ChartScales.nativeIndex h (reference l) - |
| 276 | CommonWindow.index h (reference l))).symm x |
| 277 | |
| 278 | theorem primary_phase_affine (l : Label B N0) (n : ℕ) : |
| 279 | CopyAngularInvariance.AffinePhase (0, 1) |
| 280 | ((PrimaryGeometryAssembly.angularMode certificate modulation (choice B N0).prepared l.2 l.1 : ℤ) / |
| 281 | (primary l).base.frequency n) ((primary l).base.phase n) := by |
| 282 | have hK : (ChartScales.carrier h (reference l) : ℝ) ≠ 0 := |
| 283 | (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos h _)).ne' |
| 284 | have he := PrimaryGeometryAssembly.carrier_mul_phase_p certificate modulation |
| 285 | (choice B N0).prepared slots.radius_pos l.2 l.1 |
| 286 | have hp : (pulse l l.2).phase.p (reference l) = |
| 287 | (PrimaryGeometryAssembly.angularMode certificate modulation (choice B N0).prepared l.2 l.1 : ℝ) / |
| 288 | (ChartScales.carrier h (reference l) : ℝ) := by |
| 289 | apply (eq_div_iff hK).mpr |
| 290 | simp only [mul_comm] |
| 291 | exact he |
| 292 | rw [primary_phase, primary_frequency] |
| 293 | intro x t |
| 294 | simp only [ActualSignedGeometry.periodicPhase, PhaseCalculus.phase, |
| 295 | Prod.fst_add, Prod.snd_add, Prod.smul_fst, Prod.smul_snd, |
| 296 | smul_zero, add_zero, smul_eq_mul, mul_one] |
| 297 | rw [hp] |
| 298 | ring |
| 299 | |
| 300 | noncomputable def primaryAngular (l : Label B N0) (P : SignedStressPrimitive.Patch) |
| 301 | (u : State Point) |
| 302 | (H : MeanStateRegularity.PrimitiveData standardRegion P.a P.b (commonContext B) u) |
| 303 | (hp : GaugeMomentBalances.MovingField standardRegion P.a P.b u.pressure) : |
| 304 | (primary l).Angular (nativeStateData l P u H hp).referenceRequest (reference l) where |
| 305 | mode := PrimaryGeometryAssembly.angularMode certificate modulation (choice B N0).prepared l.2 l.1 |
| 306 | phase := primary_phase_affine l (reference l) |
| 307 | coordinate := by intro x t; simp [primary] |
| 308 | target := by intro x t; simp [primary] |
| 309 | request := PhysicalSignedWave.stateRequest_invariant _ _ _ _ _ _ |
| 310 | mask := by intro x t; simp [primary] |
| 311 | normalMotion := by intro x t; simp [primary] |
| 312 | action := by intro x t; simp [primary] |
| 313 | |
| 314 | /-! The same individual native copy as the frozen signed stage. -/ |
| 315 | |
| 316 | theorem label_large (l : Label B N0) : 4 ≤ (spatialLabel l).1 := |
| 317 | ActualPrimaryBounds.label_large (l.2, l.1) |
| 318 | |
| 319 | noncomputable def layout (l : Label B N0) : ActualPeriodizedSignedRealization.Layout := |
| 320 | ActualSignedPhysicalData.layout slots outgoing.data.h_pos.le (spatialLabel l) (label_large l) 0 |
| 321 | |
| 322 | @[simp] theorem layout_geometry (l : Label B N0) (n : ℕ) : |
| 323 | (layout l).geometry n = geometry l := rfl |
| 324 | |
| 325 | @[simp] theorem layout_window (l : Label B N0) (n : ℕ) : |
| 326 | (layout l).window n = clockWindow l.1 := rfl |
| 327 | |
| 328 | @[simp] theorem pulse_length (l : Label B N0) (j : Fin 2) (n : ℕ) : |
| 329 | (pulse l j).L n = ChartScales.slotLength slots.radius h (reference l) := rfl |
| 330 | |
| 331 | noncomputable def nativeCopyPoint (l : Label B N0) (k : TorusInverse.Frequency) |
| 332 | (x : Cylinder) : ActualSignedGeometry.Native := |
| 333 | ((x.1.1, x.1.2.1), (geometry l).coordinates k x.1.2.2) |
| 334 | |
| 335 | theorem nativePoint_reference (l : Label B N0) (k : TorusInverse.Frequency) (x : Cylinder) : |
| 336 | ActualSignedStageControls.nativePoint l (reference l) k (toCommonCylinder l x) = |
| 337 | nativeCopyPoint l k x := by |
| 338 | apply Prod.ext |
| 339 | · exact nativeSlow_toAbsolute l.1 ((toCommonCylinder l x).1) |
| 340 | · change (ActualPrimary.geometry l.2 l.1).coordinates k |
| 341 | ((CommonCoverSolve.coverPower (CommonWindow.index h (reference l))).symm |
| 342 | ((CommonCoverSolve.coverPower (ChartScales.nativeIndex h (reference l) - |
| 343 | CommonWindow.index h (reference l))).symm x.1.2.2)) = _ |
| 344 | rw [chartGeometry_coordinates (reference l) l.2 l.1 (CommonWindow.index_le_native h _)] |
| 345 | rw [← ActualCarrierTransportBase.reference_refine l (reference l)] |
| 346 | rw [CopySolveCompatibility.coordinates_refine] |
| 347 | dsimp only [ActualCarrierTransportBase.gap, reference] |
| 348 | rw [ContinuousLinearEquiv.apply_symm_apply] |
| 349 | rfl |
| 350 | |
| 351 | @[simp] theorem signed_coefficientScale_reference (l : Label B N0) : |
| 352 | ActualSignedStageControls.coefficientScale l (reference l) = 1 := by |
| 353 | unfold ActualSignedStageControls.coefficientScale |
| 354 | change PhysicalSignedWave.coefficientScale (ChartScales.epsilon h (reference l)) |
| 355 | (ChartScales.epsilon h (reference l)) |
| 356 | (PhysicalParticularWave.velocityWeight h (ChartScales.Q (reference l)) |
| 357 | (ChartScales.Q (reference l))) = 1 |
| 358 | rw [show PhysicalParticularWave.velocityWeight h (ChartScales.Q (reference l)) |
| 359 | (ChartScales.Q (reference l)) = 1 from |
| 360 | ActualReferenceRebase.ratioPower_self (ChartScales.Q_pos _) _] |
| 361 | simp [PhysicalSignedWave.coefficientScale, (Real.sqrt_pos.mpr (ChartScales.epsilon_pos h _)).ne'] |
| 362 | |
| 363 | @[simp] theorem signed_clockScale_reference (l : Label B N0) : |
| 364 | ActualSignedStageControls.clockScale l (reference l) = 1 := |
| 365 | ActualReferenceRebase.ratioPower_self (ChartScales.Q_pos _) _ |
| 366 | |
| 367 | @[simp] theorem signed_normalScale_reference (l : Label B N0) : |
| 368 | ActualSignedStageControls.normalScale l (reference l) = 1 := by |
| 369 | unfold ActualSignedStageControls.normalScale PhysicalParticularWave.normalWeight |
| 370 | change ((ChartScales.carrier h (reference l) : ℝ) / ChartScales.carrier h (reference l)) * |
| 371 | PhysicalParticularWave.ratioPower (ChartScales.Q (reference l)) |
| 372 | (ChartScales.Q (reference l)) (1 / 2) = 1 |
| 373 | rw [ActualReferenceRebase.ratioPower_self (ChartScales.Q_pos _) _] |
| 374 | have hK : (ChartScales.carrier h (reference l) : ℝ) ≠ 0 := |
| 375 | (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos h _)).ne' |
| 376 | simp [hK] |
| 377 | |
| 378 | theorem signed_matrix_reference (l : Label B N0) (k : TorusInverse.Frequency) (x : Cylinder) : |
| 379 | ActualSignedStageControls.matrix l k (reference l) (toCommonCylinder l x) = |
| 380 | (primary l).matrix (reference l) x := by |
| 381 | rw [ActualSignedStageControls.matrix, nativePoint_reference, primary_matrix] |
| 382 | rfl |
| 383 | |
| 384 | theorem signed_target_reference (l : Label B N0) (k : TorusInverse.Frequency) (x : Cylinder) : |
| 385 | ActualSignedStageControls.target l k (reference l) (toCommonCylinder l x) = |
| 386 | (primary l).target (reference l) x := by |
| 387 | rw [ActualSignedStageControls.target, signed_coefficientScale_reference, nativePoint_reference] |
| 388 | simp only [one_pow, one_smul] |
| 389 | rfl |
| 390 | |
| 391 | theorem signed_mask_reference (l : Label B N0) (k : TorusInverse.Frequency) (x : Cylinder) : |
| 392 | ActualSignedStageControls.mask l k (reference l) (toCommonCylinder l x) = |
| 393 | (primary l).mask (reference l) x := by |
| 394 | rw [ActualSignedStageControls.mask, nativePoint_reference] |
| 395 | rfl |
| 396 | |
| 397 | theorem signed_unit_reference (l : Label B N0) (k : TorusInverse.Frequency) (x : Cylinder) : |
| 398 | ActualSignedStageControls.fundamental l k (reference l) (toCommonCylinder l x) = |
| 399 | ActualPeriodizedSignedRealization.nativeUnit (primary l) (layout l) (nativeViews l) |
| 400 | l.2 k (reference l) x := by |
| 401 | rw [ActualSignedStageControls.fundamental, nativePoint_reference] |
| 402 | simp only [ActualPeriodizedSignedRealization.nativeUnit, nativeViews_map] |
| 403 | rfl |
| 404 | |
| 405 | theorem signed_cutoff_reference (l : Label B N0) (k : TorusInverse.Frequency) (x : Cylinder) : |
| 406 | ActualSignedStageControls.cutoff l k (reference l) (toCommonCylinder l x) = |
| 407 | PartitionedCovariance.cutoff slots.radius ((geometry l).coordinates k x.1.2.2).1 * |
| 408 | (layout l).nativeGaussian (reference l) k x.1.2.2 := by |
| 409 | rw [ActualSignedStageControls.cutoff, nativePoint_reference] |
| 410 | rfl |
| 411 | |
| 412 | theorem nativeClock_on_core (l : Label B N0) (k : TorusInverse.Frequency) {x : Cylinder} |
| 413 | (hx : (geometry l).coordinates k x.1.2.2 ∈ (clockWindow l.1).core) : |
| 414 | nativeClock l x.1.2.2 = ((geometry l).coordinates k x.1.2.2).2 := by |
| 415 | exact (PeriodicPhaseAssembly.periodicClock_germ (P := Slow) (geometry l) (clockWindow l.1) |
| 416 | (ActualSignedGeometry.clockWindow_injective slots vectors_det outgoing.data.h_pos.le |
| 417 | (label_large l) 0) k (z := ((x.1.1, x.1.2.1), x.1.2.2)) hx).self_of_nhds |
| 418 | |
| 419 | theorem signed_normalMotion_reference (l : Label B N0) (k : TorusInverse.Frequency) {x : Cylinder} |
| 420 | (hx : (geometry l).coordinates k x.1.2.2 ∈ (clockWindow l.1).core) : |
| 421 | ActualSignedStageControls.normalMotion l k (reference l) (toCommonCylinder l x) = |
| 422 | (primary l).normalMotion (reference l) x := by |
| 423 | rw [ActualSignedStageControls.normalMotion, signed_normalScale_reference, |
| 424 | signed_clockScale_reference, nativePoint_reference] |
| 425 | simp only [one_mul, one_smul] |
| 426 | change _ = (phases B N0 l.2).phase.velocity l.1 |
| 427 | ((x.1.1, x.1.2.1), nativeClock l x.1.2.2) |
| 428 | rw [nativeClock_on_core l k hx] |
| 429 | rfl |
| 430 | |
| 431 | theorem signed_action_reference (l : Label B N0) (k : TorusInverse.Frequency) {x : Cylinder} |
| 432 | (hx : (geometry l).coordinates k x.1.2.2 ∈ (clockWindow l.1).core) : |
| 433 | ActualSignedStageControls.action l k (reference l) (toCommonCylinder l x) = |
| 434 | (primary l).action (reference l) x := by |
| 435 | rw [ActualSignedStageControls.action, signed_clockScale_reference, nativePoint_reference] |
| 436 | simp only [one_smul] |
| 437 | change _ = PrimaryCopyBridge.baseOperator _ |
| 438 | ((phases B N0 l.2).phase.shear l.1 ((x.1.1, x.1.2.1), nativeClock l x.1.2.2)) |
| 439 | rw [nativeClock_on_core l k hx] |
| 440 | rfl |
| 441 | |
| 442 | /-- The lower endpoint is the integration anchor; the physical carrier |
| 443 | retains the individual copy midpoint. -/ |
| 444 | theorem carrier_midpoint (l : Label B N0) (k : TorusInverse.Frequency) : |
| 445 | ActualSignedPhysicalData.center (h := h) (spatialLabel l) k = |
| 446 | (geometry l).center + TorusAverages.latticePoint k + slots.radius • ActualSignedGeometry.temporalVector := |
| 447 | ActualSignedPhysicalData.center_eq_anchor slots (spatialLabel l) 0 k |
| 448 | |
| 449 | theorem primary_radial_pull (l : Label B N0) (n : ℕ) (x : Cylinder) : |
| 450 | (primary l).directions.radialField n x = |
| 451 | (toCommonCylinder l).symm ((PrimaryResidualClass.directions (commonContext B)).radialField |
| 452 | (reference l) (toCommonCylinder l x)) := by |
| 453 | simp only [primary, directions, freezeDirections, ActualReferenceRebase.pullDirections, |
| 454 | LinearWaveBounds.GraphDirections.radialField, map_add, map_smul] |
| 455 | |
| 456 | theorem primary_axial_pull (l : Label B N0) (n : ℕ) (x : Cylinder) : |
| 457 | (primary l).directions.axialField (primary l).strip n x = |
| 458 | (toCommonCylinder l).symm ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 459 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal standardRegion)) |
| 460 | (reference l) (toCommonCylinder l x)) := by |
| 461 | simp only [primary, directions, freezeDirections, ActualReferenceRebase.pullDirections, |
| 462 | LinearWaveBounds.GraphDirections.axialField, map_smul] |
| 463 | rfl |
| 464 | |
| 465 | /-- Actual Fréchet derivatives transform with the native frame; no smoothness |
| 466 | of the raw phase outside its active domain is postulated. -/ |
| 467 | theorem primary_normal_reference (l : Label B N0) (n : ℕ) (x : Cylinder) : |
| 468 | (primary l).base.normal (primary l).strip (primary l).directions n x = |
| 469 | (chartCoefficients l.2 l.1).normal |
| 470 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal standardRegion)) |
| 471 | (PrimaryResidualClass.directions (commonContext B)) (reference l) (toCommonCylinder l x) := by |
| 472 | unfold LinearWaveBounds.WaveCoefficients.normal |
| 473 | have he := ActualPrimaryCoherence.phaseNormal_equiv (toCommonCylinder l) one_ne_zero |
| 474 | ((primary l).base.radius n) ((chartCoefficients l.2 l.1).radius (reference l)) |
| 475 | ((primary l).directions.radialField n) (fun _ => (primary l).directions.angular) |
| 476 | ((primary l).directions.axialField (primary l).strip n) |
| 477 | ((PrimaryResidualClass.directions (commonContext B)).radialField (reference l)) |
| 478 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 479 | ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 480 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal standardRegion)) |
| 481 | (reference l)) |
| 482 | (fun _ => by simp only [one_mul]; rfl) |
| 483 | (fun y => by rw [primary_radial_pull, ContinuousLinearEquiv.apply_symm_apply, one_smul]) |
| 484 | (fun y => by |
| 485 | change (toCommonCylinder l) ((toCommonCylinder l).symm _) = _ |
| 486 | exact (toCommonCylinder l).apply_symm_apply _) |
| 487 | (fun y => by rw [primary_axial_pull, ContinuousLinearEquiv.apply_symm_apply, one_smul]) |
| 488 | 1 ((chartCoefficients l.2 l.1).phase (reference l)) x |
| 489 | simp only [one_mul, one_smul] at he |
| 490 | exact he |
| 491 | |
| 492 | theorem nativeView_base (l : Label B N0) : |
| 493 | (ActualPeriodizedSignedRealization.periodizedPrimary (primary l) (layout l)).viewBase |
| 494 | (nativeViews l).background (nativeViews l).frequency |
| 495 | (fun n => (nativeViews l).map n) (reference l) = (primary l).base := by |
| 496 | have hK : (primary l).base.frequency (reference l) ≠ 0 := |
| 497 | (Scaling.carrier_frequency_pos (ChartScales.epsilon_pos h _)).ne' |
| 498 | have hphase : (fun n x => ((primary l).base.frequency (reference l) / |
| 499 | (nativeViews l).frequency n) * (primary l).base.phase (reference l) ((nativeViews l).map n x)) = |
| 500 | (primary l).base.phase := by |
| 501 | funext n x |
| 502 | rw [nativeViews_map] |
| 503 | change ((primary l).base.frequency (reference l) / (primary l).base.frequency (reference l)) * _ = _ |
| 504 | rw [div_self hK, one_mul] |
| 505 | rfl |
| 506 | change { (primary l).base with |
| 507 | frequency := (nativeViews l).frequency |
| 508 | phase := fun n x => ((primary l).base.frequency (reference l) / (nativeViews l).frequency n) * |
| 509 | (primary l).base.phase (reference l) ((nativeViews l).map n x) } = _ |
| 510 | rw [hphase] |
| 511 | rfl |
| 512 | |
| 513 | theorem nativeViews_clock (l : Label B N0) (n : ℕ) : (nativeViews l).clock n = 1 := |
| 514 | ActualReferenceRebase.ratioPower_self (ChartScales.Q_pos _) _ |
| 515 | |
| 516 | theorem nativeViews_normal (l : Label B N0) (n : ℕ) : (nativeViews l).normal n = 1 := by |
| 517 | change ActualSignedStageControls.normalScale l (reference l) = 1 |
| 518 | exact signed_normalScale_reference l |
| 519 | |
| 520 | theorem nativeView_target (l : Label B N0) : |
| 521 | (ActualPeriodizedSignedRealization.periodizedPrimary (primary l) (layout l)).viewTarget |
| 522 | (nativeViews l).strip (nativeViews l).velocity (fun n => (nativeViews l).map n) (reference l) = |
| 523 | (primary l).target := by |
| 524 | funext n x |
| 525 | simp only [PhysicalSignedWave.PrimaryData.viewTarget, nativeViews_velocity, nativeViews_map] |
| 526 | change PhysicalSignedWave.coefficientScale (ChartScales.epsilon h (reference l)) |
| 527 | (ChartScales.epsilon h (reference l)) 1 ^ 2 • (primary l).target (reference l) x = _ |
| 528 | have he : PhysicalSignedWave.coefficientScale (ChartScales.epsilon h (reference l)) |
| 529 | (ChartScales.epsilon h (reference l)) 1 = 1 := by |
| 530 | unfold PhysicalSignedWave.coefficientScale |
| 531 | simp [(Real.sqrt_pos.mpr (ChartScales.epsilon_pos h (reference l))).ne'] |
| 532 | rw [he] |
| 533 | simp only [one_pow, one_smul] |
| 534 | rfl |
| 535 | |
| 536 | noncomputable def nativeCoefficients (l : Label B N0) |
| 537 | (R : ℕ → Cylinder → SignedWaveUpdate.Vec2) (k : TorusInverse.Frequency) : |
| 538 | LinearWaveBounds.WaveCoefficients Cylinder := |
| 539 | SignedWaveUpdate.coefficients (primary l).base (primary l).strip (primary l).directions |
| 540 | (primary l).matrix (primary l).target R (primary l).mask |
| 541 | (ActualPeriodizedSignedRealization.nativeUnit (primary l) (layout l) (nativeViews l) l.2 k) |
| 542 | (primary l).normalMotion (primary l).action l.2 |
| 543 | |
| 544 | /-- The scalar and the reference copy family are definable before proving |
| 545 | their regularity. No proof or independently chosen request is stored. -/ |
| 546 | noncomputable def nativeRequest (l : Label B N0) (P : SignedStressPrimitive.Patch) |
| 547 | (u : State Point) : ℕ → Cylinder → SignedWaveUpdate.Vec2 := |
| 548 | PhysicalSignedWave.stateRequest (primary l).strip P h |
| 549 | (freezeContext (commonContext B) (reference l)) (freezeState u (reference l)) |
| 550 | |
| 551 | noncomputable def nativeCopies (l : Label B N0) (P : SignedStressPrimitive.Patch) |
| 552 | (u : State Point) : PeriodizedWaveBounds.CopyData Cylinder TorusInverse.Frequency := |
| 553 | ActualSignedPhysicalData.dynamicCopyData slots outgoing.data.h_pos.le (spatialLabel l) |
| 554 | (label_large l) 0 (primary l) (nativeViews l) (nativeRequest l P u) l.2 |
| 555 | |
| 556 | theorem nativeStateData_request_eq (l : Label B N0) (P : SignedStressPrimitive.Patch) |
| 557 | (u : State Point) |
| 558 | (H : MeanStateRegularity.PrimitiveData standardRegion P.a P.b (commonContext B) u) |
| 559 | (hp : GaugeMomentBalances.MovingField standardRegion P.a P.b u.pressure) : |
| 560 | (nativeStateData l P u H hp).referenceRequest = nativeRequest l P u := rfl |
| 561 | |
| 562 | theorem dynamicCoefficients_eq (l : Label B N0) |
| 563 | (R : ℕ → Cylinder → SignedWaveUpdate.Vec2) (k : TorusInverse.Frequency) : |
| 564 | ActualSignedPhysicalData.dynamicCoefficients slots outgoing.data.h_pos.le |
| 565 | (spatialLabel l) (label_large l) 0 (primary l) (nativeViews l) R l.2 k = |
| 566 | nativeCoefficients l R k := by |
| 567 | change ActualPeriodizedSignedRealization.coefficientsWith (primary l) (layout l) (nativeViews l) |
| 568 | R l.2 (ActualPeriodizedSignedRealization.sharedMask (primary l) (nativeViews l)) |
| 569 | (ActualPeriodizedSignedRealization.nativeUnit (primary l) (layout l) (nativeViews l) l.2 k) = _ |
| 570 | unfold ActualPeriodizedSignedRealization.coefficientsWith nativeCoefficients |
| 571 | rw [nativeView_base, nativeView_target] |
| 572 | congr 1 |
| 573 | · funext n x |
| 574 | simp only [nativeViews_map] |
| 575 | rfl |
| 576 | · funext n x |
| 577 | simp only [ActualPeriodizedSignedRealization.sharedMask, nativeViews_map] |
| 578 | rfl |
| 579 | · funext n x |
| 580 | simp only [nativeViews_normal, nativeViews_clock, nativeViews_map, one_mul, one_smul] |
| 581 | rfl |
| 582 | · funext n x |
| 583 | simp only [nativeViews_clock, nativeViews_map, one_smul] |
| 584 | rfl |
| 585 | |
| 586 | section LocalizedComparison |
| 587 | |
| 588 | variable (l : Label B N0) (P : SignedStressPrimitive.Patch) (u : State Point) |
| 589 | (H : MeanStateRegularity.PrimitiveData standardRegion P.a P.b (commonContext B) u) |
| 590 | (hp : GaugeMomentBalances.MovingField standardRegion P.a P.b u.pressure) |
| 591 | |
| 592 | noncomputable def referenceCopies : PeriodizedWaveBounds.CopyData Cylinder TorusInverse.Frequency := |
| 593 | ActualSignedPhysicalData.dynamicCopyData slots outgoing.data.h_pos.le (spatialLabel l) |
| 594 | (label_large l) 0 (primary l) (nativeViews l) (nativeStateData l P u H hp).referenceRequest l.2 |
| 595 | |
| 596 | noncomputable def commonCopies : PeriodizedWaveBounds.CopyData Cylinder TorusInverse.Frequency := |
| 597 | (ActualSignedStageControls.parameters l).copyData |
| 598 | (BaseContextAssembly.nativeStrip nominal standardRegion) |
| 599 | (LocalSignedRequest.fullRequest (BaseContextAssembly.nativeStrip nominal standardRegion) |
| 600 | P (2 * h) (commonContext B) u) |
| 601 | |
| 602 | theorem signedVector_reference (k : TorusInverse.Frequency) (x : Cylinder) : |
| 603 | SignedWaveUpdate.signedVector |
| 604 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal standardRegion)) |
| 605 | (ActualSignedStageControls.matrix l k) (ActualSignedStageControls.target l k) |
| 606 | (LocalSignedRequest.fullRequest (BaseContextAssembly.nativeStrip nominal standardRegion) |
| 607 | P (2 * h) (commonContext B) u) |
| 608 | (ActualSignedStageControls.mask l k) (ActualSignedStageControls.fundamental l k) |
| 609 | l.2 (reference l) (toCommonCylinder l x) = |
| 610 | SignedWaveUpdate.signedVector (primary l).strip (primary l).matrix (primary l).target |
| 611 | (nativeStateData l P u H hp).referenceRequest (primary l).mask |
| 612 | (ActualPeriodizedSignedRealization.nativeUnit (primary l) (layout l) (nativeViews l) l.2 k) |
| 613 | l.2 (reference l) x := by |
| 614 | unfold SignedWaveUpdate.signedVector SignedWaveUpdate.signedScalar |
| 615 | rw [signed_matrix_reference, signed_target_reference, signed_mask_reference, |
| 616 | signed_unit_reference, nativeStateData_referenceRequest] |
| 617 | rfl |
| 618 | |
| 619 | theorem raw_amplitude_reference (k : TorusInverse.Frequency) (x : Cylinder) : |
| 620 | (commonCopies l P u).amplitude (reference l) k (toCommonCylinder l x) = |
| 621 | (referenceCopies l P u H hp).amplitude (reference l) k x := by |
| 622 | change CurlClassBounds.complexify _ = |
| 623 | (ActualSignedPhysicalData.dynamicCoefficients slots outgoing.data.h_pos.le |
| 624 | (spatialLabel l) (label_large l) 0 (primary l) (nativeViews l) |
| 625 | (nativeStateData l P u H hp).referenceRequest l.2 k).amplitude (reference l) x |
| 626 | rw [dynamicCoefficients_eq] |
| 627 | exact congrArg CurlClassBounds.complexify (signedVector_reference l P u H hp k x) |
| 628 | |
| 629 | theorem raw_pressure_reference (k : TorusInverse.Frequency) {x : Cylinder} |
| 630 | (hx : (geometry l).coordinates k x.1.2.2 ∈ (clockWindow l.1).core) : |
| 631 | (commonCopies l P u).pressure (reference l) k (toCommonCylinder l x) = |
| 632 | (referenceCopies l P u H hp).pressure (reference l) k x := by |
| 633 | change _ = (ActualSignedPhysicalData.dynamicCoefficients slots outgoing.data.h_pos.le |
| 634 | (spatialLabel l) (label_large l) 0 (primary l) (nativeViews l) |
| 635 | (nativeStateData l P u H hp).referenceRequest l.2 k).pressure (reference l) x |
| 636 | rw [dynamicCoefficients_eq] |
| 637 | dsimp only [commonCopies, CorrectionStep.PeriodizedSignedParameters.copyData, |
| 638 | CorrectionStep.PeriodizedSignedParameters.native, CorrectionStep.SignedParameters.coefficients, |
| 639 | ActualSignedStageControls.parameters, nativeCoefficients, SignedWaveUpdate.coefficients, |
| 640 | SignedWaveUpdate.homogeneousCoefficients, ParticularWaveBounds.projectedPressure, |
| 641 | ActualSignedStageControls.directions] |
| 642 | rw [signedVector_reference l P u H hp k x, signed_normalMotion_reference l k hx, |
| 643 | signed_action_reference l k hx, ← primary_normal_reference l (reference l) x] |
| 644 | rfl |
| 645 | |
| 646 | theorem cutoff_reference (k : TorusInverse.Frequency) (x : Cylinder) : |
| 647 | (commonCopies l P u).cutoff (reference l) k (toCommonCylinder l x) = |
| 648 | (referenceCopies l P u H hp).cutoff (reference l) k x := by |
| 649 | change ActualSignedStageControls.cutoff l k (reference l) (toCommonCylinder l x) = _ |
| 650 | rw [signed_cutoff_reference] |
| 651 | simp only [referenceCopies, ActualSignedPhysicalData.dynamicCopyData, nativeViews_map] |
| 652 | rfl |
| 653 | |
| 654 | theorem reference_cutoff_core (k : TorusInverse.Frequency) {x : Cylinder} |
| 655 | (hx : (referenceCopies l P u H hp).cutoff (reference l) k x ≠ 0) : |
| 656 | (geometry l).coordinates k x.1.2.2 ∈ (clockWindow l.1).core := by |
| 657 | have he := PrimaryCopyBounds.profile_mul_outerCutoff |
| 658 | (((geometry l).coordinates k x.1.2.2).2 / ChartScales.slotLength slots.radius h (reference l)) |
| 659 | have hm : ActualSignedPhysicalData.nativeMask slots (spatialLabel l) |
| 660 | ((geometry l).coordinates k x.1.2.2) ≠ 0 := by |
| 661 | intro hm |
| 662 | apply hx |
| 663 | change PartitionedCovariance.cutoff slots.radius |
| 664 | ((geometry l).coordinates k ((nativeViews l).map (reference l) x).1.2.2).1 * |
| 665 | (layout l).nativeGaussian (reference l) k ((nativeViews l).map (reference l) x).1.2.2 = 0 |
| 666 | rw [nativeViews_map] |
| 667 | change PartitionedCovariance.cutoff slots.radius ((geometry l).coordinates k x.1.2.2).1 * |
| 668 | GaussianTailFlat.profile (((geometry l).coordinates k x.1.2.2).2 / |
| 669 | ChartScales.slotLength slots.radius h (reference l)) = 0 |
| 670 | rw [← he, mul_comm (GaussianTailFlat.profile _), ← mul_assoc] |
| 671 | change ActualSignedPhysicalData.nativeMask slots (spatialLabel l) |
| 672 | ((geometry l).coordinates k x.1.2.2) * GaussianTailFlat.profile _ = 0 |
| 673 | rw [hm, zero_mul] |
| 674 | exact ActualSignedPhysicalData.nativeMask_support slots (spatialLabel l) hm |
| 675 | |
| 676 | theorem localized_amplitude_reference (k : TorusInverse.Frequency) (x : Cylinder) : |
| 677 | ((commonCopies l P u).localized k).amplitude (reference l) (toCommonCylinder l x) = |
| 678 | ((referenceCopies l P u H hp).localized k).amplitude (reference l) x := by |
| 679 | change (commonCopies l P u).cutoff _ _ _ • (commonCopies l P u).amplitude _ _ _ = |
| 680 | (referenceCopies l P u H hp).cutoff _ _ _ • (referenceCopies l P u H hp).amplitude _ _ _ |
| 681 | rw [cutoff_reference, raw_amplitude_reference] |
| 682 | |
| 683 | theorem localized_pressure_reference (k : TorusInverse.Frequency) (x : Cylinder) : |
| 684 | ((commonCopies l P u).localized k).pressure (reference l) (toCommonCylinder l x) = |
| 685 | ((referenceCopies l P u H hp).localized k).pressure (reference l) x := by |
| 686 | change ((commonCopies l P u).cutoff _ _ _ : ℂ) * (commonCopies l P u).pressure _ _ _ = |
| 687 | ((referenceCopies l P u H hp).cutoff _ _ _ : ℂ) * (referenceCopies l P u H hp).pressure _ _ _ |
| 688 | rw [cutoff_reference] |
| 689 | by_cases hc : (referenceCopies l P u H hp).cutoff (reference l) k x = 0 |
| 690 | · simp only [hc, Complex.ofReal_zero, zero_mul] |
| 691 | · rw [raw_pressure_reference l P u H hp k (reference_cutoff_core l P u H hp k hc)] |
| 692 | |
| 693 | theorem referenceCopies_eq_nativeCopies : |
| 694 | referenceCopies l P u H hp = nativeCopies l P u := rfl |
| 695 | |
| 696 | /-- Exact cutoff repartition into the existing compact periodized family. -/ |
| 697 | theorem referenceCopies_localized (k : TorusInverse.Frequency) : |
| 698 | (referenceCopies l P u H hp).localized k = |
| 699 | (ActualPeriodizedSignedRealization.copyData (primary l) (layout l) (nativeViews l) |
| 700 | (nativeStateData l P u H hp).referenceRequest l.2).localized k := |
| 701 | ActualSignedPhysicalData.dynamic_localized_eq slots outgoing.data.h_pos.le |
| 702 | (spatialLabel l) (label_large l) 0 (primary l) (nativeViews l) |
| 703 | (nativeStateData l P u H hp).referenceRequest l.2 k |
| 704 | |
| 705 | theorem common_amplitude_reference (x : Cylinder) : |
| 706 | (commonCopies l P u).common.amplitude (reference l) (toCommonCylinder l x) = |
| 707 | (referenceCopies l P u H hp).common.amplitude (reference l) x := by |
| 708 | change (∑' k, ((commonCopies l P u).localized k).amplitude (reference l) (toCommonCylinder l x)) = |
| 709 | ∑' k, ((referenceCopies l P u H hp).localized k).amplitude (reference l) x |
| 710 | exact tsum_congr (fun k => localized_amplitude_reference l P u H hp k x) |
| 711 | |
| 712 | theorem common_pressure_reference (x : Cylinder) : |
| 713 | (commonCopies l P u).common.pressure (reference l) (toCommonCylinder l x) = |
| 714 | (referenceCopies l P u H hp).common.pressure (reference l) x := by |
| 715 | change (∑' k, ((commonCopies l P u).localized k).pressure (reference l) (toCommonCylinder l x)) = |
| 716 | ∑' k, ((referenceCopies l P u H hp).localized k).pressure (reference l) x |
| 717 | exact tsum_congr (fun k => localized_pressure_reference l P u H hp k x) |
| 718 | |
| 719 | theorem reference_background : (referenceCopies l P u H hp).background = (primary l).base := |
| 720 | nativeView_base l |
| 721 | |
| 722 | theorem reference_common_normal : |
| 723 | (referenceCopies l P u H hp).common.normal (primary l).strip (primary l).directions (reference l) = |
| 724 | (primary l).base.normal (primary l).strip (primary l).directions (reference l) := by |
| 725 | simp only [LinearWaveBounds.WaveCoefficients.normal, PeriodizedWaveBounds.CopyData.common, |
| 726 | reference_background] |
| 727 | |
| 728 | theorem curlCoefficient_reference (x : Cylinder) : |
| 729 | CurlClassBounds.inverseCarrier ((referenceCopies l P u H hp).common.frequency (reference l)) • |
| 730 | CurlClassBounds.coefficient ((referenceCopies l P u H hp).common.radius (reference l)) |
| 731 | ((primary l).directions.radialField (reference l)) (fun _ => (primary l).directions.angular) |
| 732 | ((primary l).directions.axialField (primary l).strip (reference l)) |
| 733 | ((referenceCopies l P u H hp).common.phase (reference l)) |
| 734 | ((referenceCopies l P u H hp).common.amplitude (reference l)) x = |
| 735 | CurlClassBounds.inverseCarrier ((commonCopies l P u).common.frequency (reference l)) • |
| 736 | CurlClassBounds.coefficient ((commonCopies l P u).common.radius (reference l)) |
| 737 | ((PrimaryResidualClass.directions (commonContext B)).radialField (reference l)) |
| 738 | (fun _ => (PrimaryResidualClass.directions (commonContext B)).angular) |
| 739 | ((PrimaryResidualClass.directions (commonContext B)).axialField |
| 740 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal standardRegion)) |
| 741 | (reference l)) ((commonCopies l P u).common.phase (reference l)) |
| 742 | ((commonCopies l P u).common.amplitude (reference l)) (toCommonCylinder l x) := by |
| 743 | unfold CurlClassBounds.coefficient |
| 744 | change CurlClassBounds.inverseCarrier _ • CurlClassBounds.normalCoefficient |
| 745 | ((referenceCopies l P u H hp).common.normal (primary l).strip (primary l).directions |
| 746 | (reference l) x) ((referenceCopies l P u H hp).common.amplitude (reference l) x) = _ |
| 747 | rw [reference_common_normal, primary_normal_reference, ← common_amplitude_reference] |
| 748 | rfl |
| 749 | |
| 750 | theorem reference_phase (x : Cylinder) : |
| 751 | (referenceCopies l P u H hp).common.phase (reference l) x = |
| 752 | (commonCopies l P u).common.phase (reference l) (toCommonCylinder l x) := by |
| 753 | change (referenceCopies l P u H hp).background.phase (reference l) x = _ |
| 754 | rw [reference_background] |
| 755 | rfl |
| 756 | |
| 757 | /-- The complete oscillatory curl potential, including its carrier, is the |
| 758 | same native reference. -/ |
| 759 | theorem curlPotential_reference (x : Cylinder) : |
| 760 | (referenceCopies l P u H hp).common.curlPotential (primary l).strip (primary l).directions |
| 761 | (reference l) x = |
| 762 | (commonCopies l P u).common.curlPotential |
| 763 | (HarmonicWaveInteraction.productStrip (BaseContextAssembly.nativeStrip nominal standardRegion)) |
| 764 | (PrimaryResidualClass.directions (commonContext B)) (reference l) (toCommonCylinder l x) := by |
| 765 | funext i |
| 766 | simp only [LinearWaveBounds.WaveCoefficients.curlPotential, CurlClassBounds.vectorPotential, |
| 767 | HarmonicCalculus.vectorMode, HarmonicCalculus.mode] |
| 768 | rw [curlCoefficient_reference] |
| 769 | unfold HarmonicCalculus.carrier |
| 770 | rw [reference_phase] |
| 771 | rfl |
| 772 | |
| 773 | theorem reference_exactCoefficients : |
| 774 | (referenceCopies l P u H hp).commonCorrected (primary l).strip (primary l).directions = |
| 775 | (ActualPeriodizedSignedRealization.views (primary l) (layout l) (nativeViews l)).exactCoefficients |
| 776 | (nativeStateData l P u H hp).referenceRequest l.2 := |
| 777 | ActualSignedPhysicalData.dynamic_commonCorrected_eq slots outgoing.data.h_pos.le |
| 778 | (spatialLabel l) (label_large l) 0 (primary l) (nativeViews l) |
| 779 | (nativeStateData l P u H hp).referenceRequest l.2 |
| 780 | |
| 781 | end LocalizedComparison |
| 782 | |
| 783 | /-! Bind to the literal request after the actual particular update. -/ |
| 784 | |
| 785 | noncomputable def afterParticular (x : CorrectionStep.CycleState (Label B N0)) : State Point := |
| 786 | (ActualCycleParameters.fixedParameters B N0).afterParticular x.coefficients (commonContext B) x.state |
| 787 | |
| 788 | noncomputable def cycleStateData (l : Label B N0) (x : CorrectionStep.CycleState (Label B N0)) |
| 789 | (H : MeanStateRegularity.PrimitiveData standardRegion ActualInitialization.patch.a |
| 790 | ActualInitialization.patch.b (commonContext B) (afterParticular x)) |
| 791 | (hp : GaugeMomentBalances.MovingField standardRegion ActualInitialization.patch.a |
| 792 | ActualInitialization.patch.b (afterParticular x).pressure) : (nativeViews l).StateData := |
| 793 | nativeStateData l ActualInitialization.patch (afterParticular x) H hp |
| 794 | |
| 795 | theorem afterParticular_pressure (x : CorrectionStep.CycleState (Label B N0)) |
| 796 | (H : MeanStateRegularity.PrimitiveData standardRegion ActualInitialization.patch.a |
| 797 | ActualInitialization.patch.b (commonContext B) (afterParticular x)) : |
| 798 | GaugeMomentBalances.MovingField standardRegion ActualInitialization.patch.a |
| 799 | ActualInitialization.patch.b (afterParticular x).pressure := |
| 800 | H.pressure (g := ActualInitialization.geometry.gauge) ActualInitialization.geometry.inner_pos |
| 801 | ActualInitialization.geometry.exponent_pos ActualInitialization.geometry.length_eq rfl |
| 802 | |
| 803 | noncomputable def cycleStateDataOfPrimitive (l : Label B N0) (x : CorrectionStep.CycleState (Label B N0)) |
| 804 | (H : MeanStateRegularity.PrimitiveData standardRegion ActualInitialization.patch.a |
| 805 | ActualInitialization.patch.b (commonContext B) (afterParticular x)) : (nativeViews l).StateData := |
| 806 | cycleStateData l x H (afterParticular_pressure x H) |
| 807 | |
| 808 | theorem cycleStateData_request (l : Label B N0) (x : CorrectionStep.CycleState (Label B N0)) |
| 809 | (H : MeanStateRegularity.PrimitiveData standardRegion ActualInitialization.patch.a |
| 810 | ActualInitialization.patch.b (commonContext B) (afterParticular x)) |
| 811 | (hp : GaugeMomentBalances.MovingField standardRegion ActualInitialization.patch.a |
| 812 | ActualInitialization.patch.b (afterParticular x).pressure) (z : Cylinder) : |
| 813 | (cycleStateData l x H hp).referenceRequest (reference l) z = |
| 814 | (ActualCycleParameters.fixedParameters B N0).signedRequest x.coefficients |
| 815 | (commonContext B) x.state (reference l) (toCommonCylinder l z) := |
| 816 | nativeStateData_referenceRequest l ActualInitialization.patch (afterParticular x) H hp z |
| 817 | |
| 818 | end NavierStokes.ActualSignedPhysicalBinding |