Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import NavierStokes.CorrectionInitialization |
| 2 | import NavierStokes.CorrectionStep |
| 3 | import NavierStokes.ActualSignedControl |
| 4 | import NavierStokes.ActualSignedGeometry |
| 5 | import NavierStokes.ActualPhaseDefect |
| 6 | import NavierStokes.ActualPrimaryDynamics |
| 7 | import NavierStokes.ActualPrimaryBounds |
| 8 | import NavierStokes.ActualSignedDynamics |
| 9 | |
| 10 | /-! |
| 11 | # Native controls for the actual signed correction |
| 12 | |
| 13 | The fixed physical primary labels and their selected frames are reused. |
| 14 | The raw signed mask contains only the slow spatial factor. Both compact |
| 15 | native factors belong to the cutoff, so no time cutoff is declared frozen |
| 16 | along the fast field. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | namespace NavierStokes.ActualSignedStageControls |
| 22 | |
| 23 | open Set Function Filter |
| 24 | open scoped ContDiff Topology BigOperators |
| 25 | open WeightedClasses |
| 26 | |
| 27 | open CorrectionInitialization |
| 28 | |
| 29 | abbrev Point := LocalSignedRequest.Point |
| 30 | abbrev FullPoint := Point × ℝ |
| 31 | abbrev Native := ActualSignedGeometry.Native |
| 32 | abbrev Plane := TorusInverse.Plane |
| 33 | abbrev Frequency := TorusInverse.Frequency |
| 34 | abbrev Space := ProblemStatement.Space |
| 35 | abbrev SignedLabel (B N0 : ℕ) := ActualPrimary.Label B N0 × Fin 2 |
| 36 | |
| 37 | variable {B N0 : ℕ} |
| 38 | |
| 39 | noncomputable def directions (B : ℕ) := PrimaryResidualClass.directions (ActualPrimary.commonContext B) |
| 40 | |
| 41 | noncomputable def nativePoint (l : SignedLabel B N0) (n : ℕ) (k : Frequency) |
| 42 | (x : FullPoint) : Native := |
| 43 | (ActualPrimary.nativeSlow l.1 (ActualPrimary.toAbsolute n x.1), |
| 44 | (ActualPrimary.geometry l.2 l.1).coordinates k (ActualPrimary.toAbsolute n x.1).2) |
| 45 | |
| 46 | noncomputable def coefficientScale (l : SignedLabel B N0) (n : ℕ) : ℝ := |
| 47 | PhysicalSignedWave.coefficientScale (ChartScales.epsilon ActualPrimary.h n) |
| 48 | (ChartScales.epsilon ActualPrimary.h (BaseChartJets.cellBand l.1)) |
| 49 | (PhysicalParticularWave.velocityWeight ActualPrimary.h (ChartScales.Q n) |
| 50 | (ChartScales.Q (BaseChartJets.cellBand l.1))) |
| 51 | |
| 52 | noncomputable def normalScale (l : SignedLabel B N0) (n : ℕ) : ℝ := |
| 53 | PhysicalParticularWave.normalWeight (ChartScales.Q n) |
| 54 | (ChartScales.Q (BaseChartJets.cellBand l.1)) (ChartScales.carrier ActualPrimary.h n) |
| 55 | (ChartScales.carrier ActualPrimary.h (BaseChartJets.cellBand l.1)) |
| 56 | |
| 57 | noncomputable def clockScale (l : SignedLabel B N0) (n : ℕ) : ℝ := |
| 58 | PhysicalParticularWave.clockWeight ActualPrimary.h (ChartScales.Q n) |
| 59 | (ChartScales.Q (BaseChartJets.cellBand l.1)) |
| 60 | |
| 61 | noncomputable def matrix (l : SignedLabel B N0) (k : Frequency) (n : ℕ) |
| 62 | (x : FullPoint) : SignedWaveUpdate.Mat2 := |
| 63 | ActualPrimary.covariance B N0 l.1 (nativePoint l n k x).1 |
| 64 | |
| 65 | noncomputable def target (l : SignedLabel B N0) (k : Frequency) (n : ℕ) |
| 66 | (x : FullPoint) : SignedWaveUpdate.Vec2 := |
| 67 | coefficientScale l n ^ 2 • |
| 68 | (fun q => PrimaryTargetBounds.actualTarget ActualPrimary.modulation (nativePoint l n k x).1 q) |
| 69 | |
| 70 | noncomputable def mask (l : SignedLabel B N0) (k : Frequency) (n : ℕ) |
| 71 | (x : FullPoint) : ℝ := ActualPrimary.spatialMask l.1 (nativePoint l n k x).1 |
| 72 | |
| 73 | noncomputable def fundamental (l : SignedLabel B N0) (k : Frequency) (n : ℕ) |
| 74 | (x : FullPoint) : Space := |
| 75 | PrimaryPulseBounds.normalizedPulse ((ActualPrimary.phases B N0 l.2).frame l.1) |
| 76 | ((ActualPrimary.phases B N0 l.2).lam l.1) ((ActualPrimary.phases B N0 l.2).u l.1) |
| 77 | ((ActualPrimary.phases B N0 l.2).L l.1) (ActualPrimary.pulseCoordinates l.1 (nativePoint l n k x)) |
| 78 | |
| 79 | noncomputable def normalMotion (l : SignedLabel B N0) (k : Frequency) (n : ℕ) |
| 80 | (x : FullPoint) : Space := |
| 81 | (normalScale l n * clockScale l n) • (ActualPrimary.phases B N0 l.2).phase.velocity l.1 |
| 82 | (ActualPrimary.phasePoint l.1 (nativePoint l n k x)) |
| 83 | |
| 84 | noncomputable def action (l : SignedLabel B N0) (k : Frequency) (n : ℕ) |
| 85 | (x : FullPoint) : Space →L[ℝ] Space := |
| 86 | clockScale l n • PrimaryCopyBridge.baseOperator |
| 87 | ((ActualPrimary.phases B N0 l.2).phase.F l.1 (nativePoint l n k x).1) |
| 88 | ((ActualPrimary.phases B N0 l.2).phase.shear l.1 (ActualPrimary.phasePoint l.1 (nativePoint l n k x))) |
| 89 | |
| 90 | noncomputable def cutoff (l : SignedLabel B N0) (k : Frequency) (n : ℕ) |
| 91 | (x : FullPoint) : ℝ := |
| 92 | PartitionedCovariance.cutoff ActualPrimary.slots.radius (nativePoint l n k x).2.1 * |
| 93 | ActualPrimary.gaussian l.1 (nativePoint l n k x) |
| 94 | |
| 95 | /-- The literal raw data accepted by the correction stage. The same |
| 96 | selected primary frame is used for the matrix, unit pulse, and pressure. -/ |
| 97 | noncomputable def parameters (l : SignedLabel B N0) : CorrectionStep.PeriodizedSignedParameters Point Frequency where |
| 98 | base := ActualPrimary.chartCoefficients l.2 l.1 |
| 99 | directions := directions B |
| 100 | matrix := matrix l |
| 101 | target := target l |
| 102 | mask := mask l |
| 103 | fundamental := fundamental l |
| 104 | normalMotion := normalMotion l |
| 105 | action := action l |
| 106 | cutoff := cutoff l |
| 107 | angularFrequency _ := PrimaryGeometryAssembly.angularMode ActualPrimary.certificate ActualPrimary.modulation |
| 108 | (ActualPrimary.choice B N0).prepared l.2 l.1 |
| 109 | column := l.2 |
| 110 | |
| 111 | theorem parameters_raw (l : SignedLabel B N0) (s : StripData Point) |
| 112 | (request : ℕ → FullPoint → SignedWaveUpdate.Vec2) (k : Frequency) : |
| 113 | ((parameters l).copyData s request).raw k = SignedWaveUpdate.coefficients |
| 114 | (ActualPrimary.chartCoefficients l.2 l.1) (HarmonicWaveInteraction.productStrip s) (directions B) |
| 115 | (matrix l k) (target l k) request (mask l k) (fundamental l k) |
| 116 | (normalMotion l k) (action l k) l.2 := rfl |
| 117 | |
| 118 | theorem coefficientScale_pos (l : SignedLabel B N0) (n : ℕ) : |
| 119 | 0 < coefficientScale l n := |
| 120 | PhysicalSignedWave.coefficientScale_pos (ChartScales.epsilon_pos ActualPrimary.h n) |
| 121 | (ChartScales.epsilon_pos ActualPrimary.h (BaseChartJets.cellBand l.1)) |
| 122 | (PhysicalParticularWave.ratioPower_pos (ChartScales.Q_pos n) (ChartScales.Q_pos _) _) |
| 123 | |
| 124 | theorem nativePoint_slow_auxiliary (l : SignedLabel B N0) (n : ℕ) (k : Frequency) |
| 125 | (x : FullPoint) (v : Plane) (t : ℝ) : |
| 126 | (nativePoint l n k (x + t • ((0, (0, v)), 0))).1 = (nativePoint l n k x).1 := by |
| 127 | simp [nativePoint, ActualPrimary.nativeSlow, ActualPrimary.toAbsolute] |
| 128 | |
| 129 | theorem nativePoint_angle (l : SignedLabel B N0) (n : ℕ) (k : Frequency) |
| 130 | (x : FullPoint) (t : ℝ) : |
| 131 | nativePoint l n k (x + t • ((0 : Point), (1 : ℝ))) = nativePoint l n k x := by |
| 132 | simp only [nativePoint, Prod.fst_add, Prod.smul_fst, smul_zero, add_zero] |
| 133 | |
| 134 | theorem directions_fast (B : ℕ) : (directions B).fast = ((0, (0, ActualPrimary.temporalVector)), 0) := rfl |
| 135 | |
| 136 | theorem matrix_frozen (l : SignedLabel B N0) (k : Frequency) : |
| 137 | SignedWaveUpdate.FrozenAlong (directions B).fast (matrix l k) := by |
| 138 | intro n x t |
| 139 | rw [directions_fast] |
| 140 | simp only [matrix, nativePoint_slow_auxiliary] |
| 141 | |
| 142 | theorem target_frozen (l : SignedLabel B N0) (k : Frequency) : |
| 143 | SignedWaveUpdate.FrozenAlong (directions B).fast (target l k) := by |
| 144 | intro n x t |
| 145 | rw [directions_fast] |
| 146 | simp only [target, nativePoint_slow_auxiliary] |
| 147 | |
| 148 | theorem mask_frozen (l : SignedLabel B N0) (k : Frequency) : |
| 149 | SignedWaveUpdate.FrozenAlong (directions B).fast (mask l k) := by |
| 150 | intro n x t |
| 151 | rw [directions_fast] |
| 152 | simp only [mask, nativePoint_slow_auxiliary] |
| 153 | |
| 154 | theorem request_frozen (s : StripData Point) (P : SignedStressPrimitive.Patch) (coord : ℝ) |
| 155 | (c : CorrectionState.Context Point) (u : CorrectionState.State Point) : |
| 156 | SignedWaveUpdate.FrozenAlong (directions B).fast (LocalSignedRequest.fullRequest s P coord c u) := by |
| 157 | rw [directions_fast] |
| 158 | exact LocalSignedRequest.fullRequest_torus_frozen s P coord c u ActualPrimary.temporalVector |
| 159 | |
| 160 | /-! ## The request is estimated from actual current residuals -/ |
| 161 | |
| 162 | theorem fullRequest_jets_from_residuals (G : SignedMeanGain.Geometry) |
| 163 | (c : CorrectionState.Context Point) (u : CorrectionState.State Point) (alpha : ℝ) |
| 164 | (H : MeanStateRegularity.PrimitiveData G.region G.patch.a G.patch.b c u) |
| 165 | (hfixed : VariableGaugeMean.reconstructState G.gauge c u = u) |
| 166 | (hθ : MeanClass G.strip alpha (u.thetaResidual c)) |
| 167 | (hz : MeanClass G.strip alpha (u.axialResidual c)) |
| 168 | {Λ I : Type} (K : Λ → ℕ → I → Set FullPoint) : |
| 169 | ∀ q, PeriodizedWaveBounds.UniformLocalJets (HarmonicWaveInteraction.productStrip G.strip) |
| 170 | (fun _ _ x => G.strip.zeta x.1) (alpha - 1) K |
| 171 | (fun _ n _ x => LocalSignedRequest.fullRequest G.strip G.patch G.coord c u n x q) := by |
| 172 | have H' : MeanStateRegularity.PrimitiveData G.region G.gauge.radial.inner |
| 173 | G.gauge.radial.outer c u := by simpa only [G.inner_eq, G.outer_eq] using H |
| 174 | have htheta := H.theta G.patch.a_pos G.patch.a_lt_b |
| 175 | have haxial := H'.axial_reconstructed G.inner_pos G.exponent_pos G.length_eq |
| 176 | (congrArg CorrectionState.State.pressure hfixed) |
| 177 | have haxial' : GaugeMomentBalances.MovingField G.region G.patch.a G.patch.b |
| 178 | (u.axialResidual c) := by simpa only [G.inner_eq, G.outer_eq] using haxial |
| 179 | exact ActualSignedControl.physical_fullRequest_localJets G.region G.patch G.left_pos G.right_pos |
| 180 | G.epsilon G.slow G.epsilon_pos G.epsilon_le_one G.slow_ge_one c u alpha |
| 181 | htheta.smooth haxial'.smooth (MeanStateRegularity.MovingField.movingSupport htheta) |
| 182 | (MeanStateRegularity.MovingField.movingSupport haxial') hθ hz K |
| 183 | |
| 184 | /-- The initial cycle invariant gives the request class without assuming |
| 185 | any request derivative or signed output bound. -/ |
| 186 | theorem fullRequest_jets_from_invariant {ι : Type} (G : SignedMeanGain.Geometry) |
| 187 | (c : CorrectionState.Context Point) (primary : ι → CorrectionState.HarmonicBlock Point) |
| 188 | (P : ι → ℕ → Point → ℝ) (labelCarrier : ι → ℕ → Set Point) |
| 189 | (sigma : ℝ) (u : CorrectionStep.CycleState ι) |
| 190 | (H : CorrectionStep.CycleAnalyticInvariant G c primary P labelCarrier sigma u) |
| 191 | {Λ I : Type} (K : Λ → ℕ → I → Set FullPoint) : |
| 192 | ∀ q, PeriodizedWaveBounds.UniformLocalJets (HarmonicWaveInteraction.productStrip G.strip) |
| 193 | (fun _ _ x => G.strip.zeta x.1) sigma K |
| 194 | (fun _ n _ x => LocalSignedRequest.fullRequest G.strip G.patch G.coord c u.state n x q) := by |
| 195 | have hh := fullRequest_jets_from_residuals G c u.state (1 + sigma) H.primitives H.reconstructed |
| 196 | H.raw_mean_bounds.1 H.raw_mean_bounds.2 K |
| 197 | simpa only [show (1 : ℝ) + sigma - 1 = sigma by ring] using hh |
| 198 | |
| 199 | /-! ## Native input jets on a neighborhood of the closed band -/ |
| 200 | |
| 201 | open PhaseJetBounds PrimaryCopyBounds |
| 202 | |
| 203 | abbrev PulseLabel (B N0 : ℕ) := Fin 2 × ActualPrimary.Label B N0 |
| 204 | |
| 205 | noncomputable def slowJetDomain (U : LocalSignedRequest.SlowRegion (2 * ActualPrimary.h)) : |
| 206 | JetDomain (PulseLabel B N0) PhaseCalculus.Slow where |
| 207 | toDomain := ActualPhaseDefect.reducedSlowDomain U |
| 208 | growth l p := (BaseContextAssembly.nativeStrip ActualPrimary.nominal U).growth |
| 209 | (BaseChartJets.cellBand l.2) (BaseContextAssembly.insertSlow p) |
| 210 | scale_le_growth l _ _ := (le_max_right 1 (ChartScales.S (BaseChartJets.cellBand l.2))).trans |
| 211 | ((BaseContextAssembly.nativeStrip ActualPrimary.nominal U).slow_le_growth _ _) |
| 212 | |
| 213 | theorem slow_geometry (U : LocalSignedRequest.SlowRegion (2 * ActualPrimary.h)) : |
| 214 | BaseChartJets.GeometryBounds (slowJetDomain (B := B) (N0 := N0) U).toDomain ActualPrimary.h |
| 215 | (BaseContextAssembly.geometryRadius ActualPrimary.nominal U) |
| 216 | (BaseContextAssembly.geometryBound ActualPrimary.nominal U) |
| 217 | (U.qlo / 2) (BaseContextAssembly.geometryUpper U) |
| 218 | (NominalConeAssembly.activeLeft ActualPrimary.nominal) |
| 219 | (NominalConeAssembly.activeRight ActualPrimary.nominal) := by |
| 220 | have h := BaseContextAssembly.native_geometry ActualPrimary.nominal U (PulseLabel B N0) |
| 221 | exact ⟨fun l p hp => h.time l p hp.2, fun l p hp => h.radius l p hp.2, |
| 222 | fun l p hp => h.bounded l p hp.2, fun l p hp => h.q_range l p hp.2, |
| 223 | fun l p hp => h.x_range l p hp.2⟩ |
| 224 | |
| 225 | theorem slow_inverse_edge (U : LocalSignedRequest.SlowRegion (2 * ActualPrimary.h)) |
| 226 | (l : PulseLabel B N0) {p : PhaseCalculus.Slow} |
| 227 | (hp : p ∈ (slowJetDomain U).carrier l) : |
| 228 | (FinalSlowBase.edgeDistance ActualPrimary.nominal |
| 229 | (BaseChartJets.normalizedCoordinates ActualPrimary.h p).2)⁻¹ ≤ (slowJetDomain U).growth l p := by |
| 230 | let st := BaseContextAssembly.nativeStrip ActualPrimary.nominal U |
| 231 | have hm := (BaseContextAssembly.nativeStrip_mem ActualPrimary.nominal U _).mp hp.2 |
| 232 | have ht : 0 < p.2.2 := U.time_pos _ hm.1 |
| 233 | have hδ := st.delta_pos _ hp.2 |
| 234 | have hle := ActualSignedGeometry.radialDelta_le_edge (W := ActualPrimary.nominal) hm.2 |
| 235 | (BaseChartJets.normalizedCoordinates ActualPrimary.h p).2.2 |
| 236 | simp only [BaseContextAssembly.slowCoordinates_insert] at hle |
| 237 | rw [PrimaryTargetBounds.profileRadius_sq (F := ActualPrimary.outgoing) ht] at hle |
| 238 | have heq : PrimaryTargetBounds.profileRadius ActualPrimary.h p = |
| 239 | (LocalSignedRequest.profileMap (2 * ActualPrimary.h) (BaseContextAssembly.insertSlow p)).1 := by |
| 240 | unfold PrimaryTargetBounds.profileRadius |
| 241 | rw [BaseChartJets.normalizedCoordinates_eq] |
| 242 | rfl |
| 243 | rw [heq] at hle |
| 244 | have hi : (FinalSlowBase.edgeDistance ActualPrimary.nominal |
| 245 | (BaseChartJets.normalizedCoordinates ActualPrimary.h p).2)⁻¹ ≤ |
| 246 | (st.delta (BaseContextAssembly.insertSlow p))⁻¹ := by |
| 247 | simpa only [one_div] using one_div_le_one_div_of_le hδ hle |
| 248 | exact hi.trans ((le_max_right 1 _).trans |
| 249 | (le_mul_of_one_le_left (le_trans zero_le_one (le_max_left 1 _)) (st.one_le_slow _))) |
| 250 | |
| 251 | theorem native_target_jets (U : LocalSignedRequest.SlowRegion (2 * ActualPrimary.h)) : |
| 252 | NativeJets (slowJetDomain (B := B) (N0 := N0) U) |
| 253 | (fun _ => PrimaryTargetBounds.movingWeight ActualPrimary.nominal) |
| 254 | (fun _ => PrimaryTargetBounds.actualTarget ActualPrimary.modulation) := |
| 255 | PrimaryCopyBounds.actualTarget_jets ActualPrimary.modulation ActualPrimary.profile.fullTrueCone |
| 256 | (slowJetDomain U) (BaseContextAssembly.geometryRadius_pos ActualPrimary.nominal U) |
| 257 | (div_pos U.qlo_pos (by norm_num)) (slow_geometry U) (slow_inverse_edge U) |
| 258 | |
| 259 | theorem native_matrix_jets (r c : Fin 2) : |
| 260 | PolynomialJets (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N) |
| 261 | (fun l p => ActualPrimary.covariance B N0 l p r c) := by |
| 262 | rw [ActualPrimary.covariance_eq_integral] |
| 263 | exact PrimaryPulseBounds.primaryCovariance_entry_polynomial _ ActualPrimary.prefactor |
| 264 | (fun j => (ActualPrimary.phases B N0 j).frame) |
| 265 | (fun j => (ActualPrimary.phases B N0 j).lam) |
| 266 | (fun j => (ActualPrimary.phases B N0 j).u) |
| 267 | (fun j => (ActualPrimary.phases B N0 j).L) |
| 268 | (ActualPrimary.nativeReferenceBounds B N0).prefactor_jets |
| 269 | (fun j => (ActualPrimary.phases B N0 j).pulse_jets) |
| 270 | (fun j => (ActualPrimary.phases B N0 j).lam_pos) |
| 271 | (fun j => (ActualPrimary.phases B N0 j).u_pos) |
| 272 | (fun j => (ActualPrimary.phases B N0 j).L_pos) r c |
| 273 | |
| 274 | theorem native_matrix_slot_jets (U : LocalSignedRequest.SlowRegion (2 * ActualPrimary.h)) (r c : Fin 2) : |
| 275 | PolynomialJets (ActualPhaseDefect.reducedJetDomain (B := B) (N0 := N0) U) |
| 276 | (fun l z => ActualPrimary.covariance B N0 l.2 z.1 r c) := by |
| 277 | have h : PolynomialJets (slowJetDomain (B := B) (N0 := N0) U).toDomain |
| 278 | (fun l p => ActualPrimary.covariance B N0 l.2 p r c) := |
| 279 | PrimaryGeometryAssembly.polynomial_restrict_reindex (native_matrix_jets r c) Prod.snd |
| 280 | (fun _ => rfl) (fun _ _ hp => hp.1) |
| 281 | exact h.lift_slot _ _ |
| 282 | |
| 283 | theorem native_mask_jets (U : LocalSignedRequest.SlowRegion (2 * ActualPrimary.h)) : |
| 284 | PolynomialJets (slowJetDomain (B := B) (N0 := N0) U).toDomain |
| 285 | (fun l => ActualPrimary.spatialMask l.2) := by |
| 286 | have hcoord := BaseChartJets.polynomial_of_unit (BaseChartJets.normalizedCoordinates_polynomial |
| 287 | ActualPrimary.outgoing.data.h_pos ActualPrimary.outgoing.data.h_lt_half |
| 288 | (div_pos U.qlo_pos (by norm_num)) (slow_geometry (B := B) (N0 := N0) U)) |
| 289 | have hq := hcoord.clm (ContinuousLinearMap.fst ℝ ℝ SlowBorelBase.Inner) |
| 290 | have hdy : PolynomialJets (slowJetDomain (B := B) (N0 := N0) U).toDomain |
| 291 | (fun _ p => SquaredPartition.dyadicProfile (BaseChartJets.normalizedCoordinates ActualPrimary.h p).1) := by |
| 292 | apply hq.compact_comp isOpen_univ SquaredPartition.dyadicProfile_smooth.contDiffOn |
| 293 | (isCompact_Icc : IsCompact (Icc (U.qlo / 2) (BaseContextAssembly.geometryUpper U))) (subset_univ _) |
| 294 | intro l p hp |
| 295 | exact ⟨((slow_geometry U).q_range l p hp).1.le, ((slow_geometry U).q_range l p hp).2.le⟩ |
| 296 | have hm := nativeMask_jets (slowJetDomain (B := B) (N0 := N0) U).toDomain |
| 297 | (fun l => BaseChartJets.cellBand l.2) (fun l => (PrimaryGeometryAssembly.label ActualPrimary.nominal l.2).2) |
| 298 | (fun l => l.2.val.property.1) (fun _ => rfl) |
| 299 | apply (hdy.mul hm).congr |
| 300 | intro l p _ |
| 301 | have he := (ActualPrimary.spatialMask_eq l.2 p).symm |
| 302 | simp only [BaseChartJets.normalizedCoordinates_eq] |
| 303 | exact he |
| 304 | |
| 305 | noncomputable def unitDomain : JetDomain (ActualPrimary.Label B N0) (PhaseCalculus.Slow × ℝ) where |
| 306 | toDomain := PrimaryPulseBounds.productDomain |
| 307 | (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N) |
| 308 | (fun _ => Ioo (0 : ℝ) 1) (fun _ => isOpen_Ioo) |
| 309 | growth l _ := ChartScales.S (BaseChartJets.cellBand l) |
| 310 | scale_le_growth _ _ _ := le_rfl |
| 311 | |
| 312 | noncomputable def nativeUnit (l : PulseLabel B N0) : PhaseCalculus.Slow × ℝ → Space := |
| 313 | PrimaryPulseBounds.normalizedPulse ((ActualPrimary.phases B N0 l.1).frame l.2) |
| 314 | ((ActualPrimary.phases B N0 l.1).lam l.2) ((ActualPrimary.phases B N0 l.1).u l.2) |
| 315 | ((ActualPrimary.phases B N0 l.1).L l.2) |
| 316 | |
| 317 | noncomputable def nativeEnvelope (l : PulseLabel B N0) (z : PhaseCalculus.Slow × ℝ) : ℝ := |
| 318 | PrimaryPulseBounds.referenceP ((ActualPrimary.phases B N0 l.1).lam l.2) |
| 319 | ((ActualPrimary.phases B N0 l.1).u l.2) ((ActualPrimary.phases B N0 l.1).L l.2) |
| 320 | ((ActualPrimary.phases B N0 l.1).L l.2 * z.2) |
| 321 | |
| 322 | theorem native_unit_jets : NativeJets (signDomain (unitDomain (B := B) (N0 := N0))) |
| 323 | nativeEnvelope nativeUnit := by |
| 324 | change NativeJets (signDomain (unitDomain (B := B) (N0 := N0))) |
| 325 | (fun l z => PrimaryPulseBounds.referenceP ((ActualPrimary.phases B N0 l.1).lam l.2) |
| 326 | ((ActualPrimary.phases B N0 l.1).u l.2) ((ActualPrimary.phases B N0 l.1).L l.2) |
| 327 | ((ActualPrimary.phases B N0 l.1).L l.2 * z.2)) |
| 328 | (fun l => PrimaryPulseBounds.normalizedPulse ((ActualPrimary.phases B N0 l.1).frame l.2) |
| 329 | ((ActualPrimary.phases B N0 l.1).lam l.2) ((ActualPrimary.phases B N0 l.1).u l.2) |
| 330 | ((ActualPrimary.phases B N0 l.1).L l.2)) |
| 331 | exact NativeJets.both_signs (V := unitDomain) |
| 332 | (w := fun j l z => PrimaryPulseBounds.referenceP ((ActualPrimary.phases B N0 j).lam l) |
| 333 | ((ActualPrimary.phases B N0 j).u l) ((ActualPrimary.phases B N0 j).L l) |
| 334 | ((ActualPrimary.phases B N0 j).L l * z.2)) |
| 335 | (f := fun j l => PrimaryPulseBounds.normalizedPulse ((ActualPrimary.phases B N0 j).frame l) |
| 336 | ((ActualPrimary.phases B N0 j).lam l) ((ActualPrimary.phases B N0 j).u l) |
| 337 | ((ActualPrimary.phases B N0 j).L l)) |
| 338 | (fun j => NativeJets.of_envelope (ActualPrimary.phases B N0 j).pulse_jets) |
| 339 | |
| 340 | noncomputable def nativePhase : PhaseFamily (PulseLabel B N0) where |
| 341 | epsilon l := (ActualPrimary.phases B N0 l.1).phase.epsilon l.2 |
| 342 | p l := (ActualPrimary.phases B N0 l.1).phase.p l.2 |
| 343 | pz l := (ActualPrimary.phases B N0 l.1).phase.pz l.2 |
| 344 | x0 l := (ActualPrimary.phases B N0 l.1).phase.x0 l.2 |
| 345 | theta l := (ActualPrimary.phases B N0 l.1).phase.theta l.2 |
| 346 | F l := (ActualPrimary.phases B N0 l.1).phase.F l.2 |
| 347 | G l := (ActualPrimary.phases B N0 l.1).phase.G l.2 |
| 348 | |
| 349 | theorem native_phase_jets (U : LocalSignedRequest.SlowRegion (2 * ActualPrimary.h)) : |
| 350 | PolynomialJets (ActualPhaseDefect.reducedJetDomain U) (nativePhase (B := B) (N0 := N0)).normal ∧ |
| 351 | PolynomialJets (ActualPhaseDefect.reducedJetDomain U) (nativePhase (B := B) (N0 := N0)).velocity ∧ |
| 352 | PolynomialJets (ActualPhaseDefect.reducedJetDomain U) (nativePhase (B := B) (N0 := N0)).shear := by |
| 353 | let D := ActualPhaseDefect.reducedSlowDomain (B := B) (N0 := N0) U |
| 354 | let M := (ActualPrimary.phases B N0 0).M + (ActualPrimary.phases B N0 1).M |
| 355 | let r := min (ActualPrimary.phases B N0 0).r (ActualPrimary.phases B N0 1).r |
| 356 | have hM0 := (ActualPrimary.phases B N0 0).one_le_M |
| 357 | have hM1 := (ActualPrimary.phases B N0 1).one_le_M |
| 358 | have hM : 1 ≤ M := by dsimp [M]; linarith |
| 359 | have hMj (j : Fin 2) : (ActualPrimary.phases B N0 j).M ≤ M := by |
| 360 | fin_cases j <;> dsimp [M] <;> linarith |
| 361 | have hr : 0 < r := lt_min (ActualPrimary.phases B N0 0).r_pos (ActualPrimary.phases B N0 1).r_pos |
| 362 | have hrj (j : Fin 2) : r ≤ (ActualPrimary.phases B N0 j).r := by |
| 363 | fin_cases j |
| 364 | · exact min_le_left _ _ |
| 365 | · exact min_le_right _ _ |
| 366 | have hF : PolynomialJets D (nativePhase (B := B) (N0 := N0)).F := |
| 367 | PrimaryGeometryAssembly.polynomial_restrict_reindex (ActualPrimary.phases B N0 0).baseF Prod.snd |
| 368 | (fun _ => rfl) (fun _ _ hx => hx.1) |
| 369 | have hG : PolynomialJets D (nativePhase (B := B) (N0 := N0)).G := |
| 370 | PrimaryGeometryAssembly.polynomial_restrict_reindex (ActualPrimary.phases B N0 0).baseG Prod.snd |
| 371 | (fun _ => rfl) (fun _ _ hx => hx.1) |
| 372 | exact (nativePhase (B := B) (N0 := N0)).polynomial_jets D |
| 373 | (fun l => (ActualPrimary.phases B N0 l.1).V l.2) |
| 374 | (fun l => (ActualPrimary.phases B N0 l.1).openV l.2) hF hG hr hM |
| 375 | (fun l => by |
| 376 | have h := (ActualPrimary.phases B N0 l.1).constants l.2 |
| 377 | exact ⟨h.1.trans (hMj _), h.2.1.trans (hMj _), h.2.2.1.trans (hMj _), h.2.2.2.trans (hMj _)⟩) |
| 378 | (fun l => (ActualPrimary.phases B N0 l.1).epsilon_ne l.2) |
| 379 | (fun l p hp => by |
| 380 | have h := (ActualPrimary.phases B N0 l.1).radius l.2 p hp.1 |
| 381 | exact ⟨(hrj _).trans h.1, h.2.trans (hMj _)⟩) |
| 382 | (fun l t ht => ((ActualPrimary.phases B N0 l.1).slot l.2 t ht).trans |
| 383 | (mul_le_mul_of_nonneg_right (hMj _) (zero_le_one.trans (D.one_le_scale l)))) |
| 384 | |
| 385 | theorem native_action_jets (U : LocalSignedRequest.SlowRegion (2 * ActualPrimary.h)) : |
| 386 | PolynomialJets (ActualPhaseDefect.reducedJetDomain (B := B) (N0 := N0) U) |
| 387 | (fun l z => PrimaryCopyBridge.baseOperator ((nativePhase (B := B) (N0 := N0)).F l z.1) |
| 388 | ((nativePhase (B := B) (N0 := N0)).shear l z)) := by |
| 389 | have hF : PolynomialJets (ActualPhaseDefect.reducedSlowDomain (B := B) (N0 := N0) U) |
| 390 | (nativePhase (B := B) (N0 := N0)).F := |
| 391 | PrimaryGeometryAssembly.polynomial_restrict_reindex (ActualPrimary.phases B N0 0).baseF Prod.snd |
| 392 | (fun _ => rfl) (fun _ _ hx => hx.1) |
| 393 | exact ((hF.lift_slot _ _).pair (native_phase_jets U).2.2).clm PrimaryCopyBridge.baseOperatorFamily |
| 394 | |
| 395 | /-! ## The actual band scalars -/ |
| 396 | |
| 397 | noncomputable def coefficientLower : ℝ := |
| 398 | (1 / ActualSignedGeometry.powerBound (CoordinateAlgebra.A ActualPrimary.h)) * |
| 399 | (1 / ActualSignedGeometry.powerBound (-(ActualPrimary.h / 2))) |
| 400 | |
| 401 | noncomputable def coefficientUpper : ℝ := |
| 402 | ActualSignedGeometry.powerBound (CoordinateAlgebra.A ActualPrimary.h) * |
| 403 | ActualSignedGeometry.powerBound (-(ActualPrimary.h / 2)) |
| 404 | |
| 405 | theorem coefficientLower_pos : 0 < coefficientLower := by |
| 406 | have h₁ := ActualSignedGeometry.powerBound_one (CoordinateAlgebra.A ActualPrimary.h) |
| 407 | have h₂ := ActualSignedGeometry.powerBound_one (-(ActualPrimary.h / 2)) |
| 408 | unfold coefficientLower |
| 409 | positivity |
| 410 | |
| 411 | theorem coefficientUpper_one : 1 ≤ coefficientUpper := |
| 412 | one_le_mul_of_one_le_of_one_le (ActualSignedGeometry.powerBound_one _) |
| 413 | (ActualSignedGeometry.powerBound_one _) |
| 414 | |
| 415 | theorem coefficientScale_bounds (l : SignedLabel B N0) {n : ℕ} |
| 416 | (hnm : n ≤ BaseChartJets.cellBand l.1 + 4) (hmn : BaseChartJets.cellBand l.1 ≤ n + 4) : |
| 417 | coefficientLower ≤ coefficientScale l n ∧ coefficientScale l n ≤ coefficientUpper := by |
| 418 | let hnear : ∀ (_ : Unit) (_ : ℕ), n ≤ BaseChartJets.cellBand l.1 + 4 ∧ |
| 419 | BaseChartJets.cellBand l.1 ≤ n + 4 := fun _ _ => ⟨hnm, hmn⟩ |
| 420 | have h := (ActualSignedGeometry.coefficientScale (fun _ => n) |
| 421 | (fun (_ : Unit) _ => BaseChartJets.cellBand l.1) hnear ActualPrimary.h).bounds () 0 |
| 422 | rw [ActualSignedGeometry.coefficientScale_value] at h |
| 423 | exact h |
| 424 | |
| 425 | theorem nativePoint_eq_dynamics (l : SignedLabel B N0) (n : ℕ) (k : Frequency) : |
| 426 | nativePoint l n k = ActualPrimaryDynamics.copyPoint l.2 l.1 n k := rfl |
| 427 | |
| 428 | theorem clockScale_eq_dynamics (l : SignedLabel B N0) (n : ℕ) : |
| 429 | clockScale l n = ActualPrimaryDynamics.clockScale l.1 n := by |
| 430 | change ChartScales.Q n ^ (CoordinateAlgebra.A ActualPrimary.h + 1 / 2) / |
| 431 | ChartScales.Q (BaseChartJets.cellBand l.1) ^ (CoordinateAlgebra.A ActualPrimary.h + 1 / 2) = _ |
| 432 | rw [show CoordinateAlgebra.A ActualPrimary.h + 1 / 2 = 1 + ActualPrimary.h by |
| 433 | unfold CoordinateAlgebra.A |
| 434 | ring] |
| 435 | rfl |
| 436 | |
| 437 | theorem normalScale_eq_dynamics (l : SignedLabel B N0) (n : ℕ) : |
| 438 | normalScale l n = ActualPrimaryDynamics.normalScale l.1 n := by |
| 439 | simp only [normalScale, PhysicalParticularWave.normalWeight, PhysicalParticularWave.ratioPower, |
| 440 | ← Real.sqrt_eq_rpow, ActualPrimaryDynamics.normalScale, ActualPrimaryDynamics.radialScale] |
| 441 | |
| 442 | /-! ## One family of support cells in every band -/ |
| 443 | |
| 444 | noncomputable def absoluteNative (l : SignedLabel B N0) (n : ℕ) (x : FullPoint) : Native := |
| 445 | (ActualPrimary.nativeSlow l.1 (ActualPrimary.toAbsolute n x.1), (ActualPrimary.toAbsolute n x.1).2) |
| 446 | |
| 447 | theorem absoluteNative_smooth (l : SignedLabel B N0) (n : ℕ) : |
| 448 | ContDiff ℝ ∞ (absoluteNative l n) := |
| 449 | ((ActualPrimary.nativeSlow_smooth l.1).comp ((ActualPrimary.toAbsolute_smooth n).comp contDiff_fst)).prodMk |
| 450 | (((ActualPrimary.toAbsolute_smooth n).comp contDiff_fst).snd) |
| 451 | |
| 452 | noncomputable def absoluteCells (l : SignedLabel B N0) : PeriodizedWaveBounds.Cells Native Frequency := |
| 453 | PeriodizedWaveBounds.nativeCells (fun _ => ActualPrimary.geometry l.2 l.1) |
| 454 | (fun _ => (ActualPrimary.clockWindow l.1).core) (fun _ => (ActualPrimary.clockWindow l.1).core_compact) |
| 455 | (fun _ => by |
| 456 | have hg : ActualPrimary.geometry l.2 l.1 = ActualSignedGeometry.slotGeometry |
| 457 | ActualPrimary.slots ActualPrimary.vectors_det |
| 458 | (PartitionedCovariance.signedLabel (PrimaryGeometryAssembly.label ActualPrimary.nominal l.1) l.2) |
| 459 | (ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.1)) := rfl |
| 460 | have hc : ActualPrimary.clockWindow l.1 = ActualSignedGeometry.clockWindow |
| 461 | ActualPrimary.slots (BaseChartJets.cellBand l.1) := rfl |
| 462 | rw [hg, hc] |
| 463 | exact (ActualSignedGeometry.clockWindow_injective ActualPrimary.slots ActualPrimary.vectors_det |
| 464 | ActualPrimary.outgoing.data.h_pos.le |
| 465 | (l := PartitionedCovariance.signedLabel (PrimaryGeometryAssembly.label ActualPrimary.nominal l.1) l.2) |
| 466 | ((ActualPrimary.choice B N0).prepared.large _ l.1.property).four_le |
| 467 | (ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.1))).mono |
| 468 | (Set.image_mono (ActualSignedGeometry.clockWindow ActualPrimary.slots _).core_subset_outer)) |
| 469 | |
| 470 | /-- The copy cells use the fixed absolute primary geometry even in bands |
| 471 | where the label is inactive. No truncated negative cover gap occurs. -/ |
| 472 | noncomputable def cells (l : SignedLabel B N0) : PeriodizedWaveBounds.Cells FullPoint Frequency where |
| 473 | carrier n k := absoluteNative l n ⁻¹' (absoluteCells l).carrier n k |
| 474 | closed n k := ((absoluteCells l).closed n k).preimage (absoluteNative_smooth l n).continuous |
| 475 | locallyFinite n := by |
| 476 | intro x |
| 477 | obtain ⟨V, hV, hfinite⟩ := (absoluteCells l).locallyFinite n (absoluteNative l n x) |
| 478 | refine ⟨absoluteNative l n ⁻¹' V, (absoluteNative_smooth l n).continuous.continuousAt hV, ?_⟩ |
| 479 | apply hfinite.subset |
| 480 | rintro k ⟨y, hy, hyV⟩ |
| 481 | exact ⟨absoluteNative l n y, hy, hyV⟩ |
| 482 | unique n i j x hi hj := (absoluteCells l).unique n i j (absoluteNative l n x) hi hj |
| 483 | |
| 484 | theorem cells_mem (l : SignedLabel B N0) (n : ℕ) (k : Frequency) (x : FullPoint) : |
| 485 | x ∈ (cells l).carrier n k ↔ (nativePoint l n k x).2 ∈ (ActualPrimary.clockWindow l.1).core := Iff.rfl |
| 486 | |
| 487 | theorem nativePoint_smooth (l : SignedLabel B N0) (n : ℕ) (k : Frequency) : |
| 488 | ContDiff ℝ ∞ (nativePoint l n k) := ActualPrimaryDynamics.copyPoint_smooth l.2 l.1 n k |
| 489 | |
| 490 | noncomputable def nativeTime (l : SignedLabel B N0) (n : ℕ) (k : Frequency) (x : FullPoint) : ℝ := |
| 491 | (ActualPrimary.pulseCoordinates l.1 (nativePoint l n k x)).2 |
| 492 | |
| 493 | theorem nativeTime_smooth (l : SignedLabel B N0) (n : ℕ) (k : Frequency) : |
| 494 | ContDiff ℝ ∞ (nativeTime l n k) := (nativePoint_smooth l n k).snd.snd.div_const _ |
| 495 | |
| 496 | theorem cutoff_smooth (l : SignedLabel B N0) (n : ℕ) (k : Frequency) : |
| 497 | ContDiff ℝ ∞ (cutoff l k n) := |
| 498 | ((SquaredPartition.gridMask_smooth ActualPrimary.slots.radius 0).comp |
| 499 | (nativePoint_smooth l n k).snd.fst).mul |
| 500 | (GaussianTailFlat.profile_contDiff.comp (nativeTime_smooth l n k)) |
| 501 | |
| 502 | theorem cutoff_support (l : SignedLabel B N0) (n : ℕ) (k : Frequency) : |
| 503 | support (cutoff l k n) ⊆ (cells l).carrier n k := by |
| 504 | intro x hx |
| 505 | have hu : PartitionedCovariance.cutoff ActualPrimary.slots.radius (nativePoint l n k x).2.1 ≠ 0 := by |
| 506 | intro hz |
| 507 | exact hx (by simp only [cutoff, hz, zero_mul]) |
| 508 | have hg : GaussianTailFlat.profile (nativeTime l n k x) ≠ 0 := by |
| 509 | intro hz |
| 510 | exact hx (by simp only [cutoff, ActualPrimary.gaussian, nativeTime] at hz ⊢; rw [hz, mul_zero]) |
| 511 | have hdist : |nativeTime l n k x - 1 / 2| < 1 / 3 := by |
| 512 | by_contra hn |
| 513 | exact hg (GaussianTailFlat.profile_zero (le_of_not_gt hn)) |
| 514 | obtain ⟨htlo, hthi⟩ := abs_lt.mp hdist |
| 515 | have htime : nativeTime l n k x ∈ Ioo (0 : ℝ) 1 := ⟨by linarith, by linarith⟩ |
| 516 | have hL := (ActualPrimary.phases B N0 0).L_pos l.1 |
| 517 | apply (cells_mem l n k x).mpr |
| 518 | have hu' := hu |
| 519 | change (nativePoint l n k x).2.1 ∈ support (PartitionedCovariance.cutoff ActualPrimary.slots.radius) at hu' |
| 520 | rw [PartitionedCovariance.cutoff_support ActualPrimary.slots.radius_pos] at hu' |
| 521 | refine ⟨⟨hu'.1.le, hu'.2.le⟩, ?_⟩ |
| 522 | change (nativePoint l n k x).2.2 ∈ Icc 0 ((ActualPrimary.phases B N0 0).L l.1) |
| 523 | exact ⟨((div_pos_iff_of_pos_right hL).mp htime.1).le, ((div_lt_one hL).mp htime.2).le⟩ |
| 524 | |
| 525 | theorem cutoff_zero_germ_outside_time (l : SignedLabel B N0) (n : ℕ) (k : Frequency) |
| 526 | {x : FullPoint} (hx : nativeTime l n k x ∉ Icc (1 / 10 : ℝ) (9 / 10)) : |
| 527 | cutoff l k n =ᶠ[𝓝 x] fun _ => 0 := by |
| 528 | have hdist : 1 / 3 < |nativeTime l n k x - 1 / 2| := by |
| 529 | rcases not_and_or.mp hx with hlo | hhi |
| 530 | · have hh := lt_of_not_ge hlo |
| 531 | rw [abs_of_neg (by linarith)] |
| 532 | linarith |
| 533 | · have hh := lt_of_not_ge hhi |
| 534 | rw [abs_of_pos (by linarith)] |
| 535 | linarith |
| 536 | have hg := (GaussianTailFlat.profile_eventually_zero hdist).comp_tendsto |
| 537 | (nativeTime_smooth l n k).continuous.continuousAt |
| 538 | filter_upwards [hg] with y hy |
| 539 | change GaussianTailFlat.profile (nativeTime l n k y) = 0 at hy |
| 540 | change PartitionedCovariance.cutoff _ _ * GaussianTailFlat.profile (nativeTime l n k y) = 0 |
| 541 | rw [hy, mul_zero] |
| 542 | |
| 543 | /-! ## Uniform transport on the actual closed control cells -/ |
| 544 | |
| 545 | noncomputable def fullStrip : StripData FullPoint := ActualPrimaryBounds.fullStrip |
| 546 | |
| 547 | noncomputable def envelope (l : SignedLabel B N0) : ℕ → FullPoint → ℝ := |
| 548 | ActualPrimaryBounds.fullEnvelope (l.2, l.1) |
| 549 | |
| 550 | noncomputable def phaseCell (l : SignedLabel B N0) (n : ℕ) (k : Frequency) : Set FullPoint := |
| 551 | {x | x ∈ ActualPrimaryBounds.controlCell n ((l.2, l.1), k) ∧ |
| 552 | nativeTime l n k x ∈ Icc (1 / 10 : ℝ) (9 / 10)} |
| 553 | |
| 554 | theorem nativePoint_eq_fullCopy (l : SignedLabel B N0) (n : ℕ) (k : Frequency) |
| 555 | (hn : ActualPrimaryBounds.near (l.2, l.1) n) : |
| 556 | nativePoint l n k = ActualPrimaryBounds.fullCopy (l.2, l.1) n k := by |
| 557 | funext x |
| 558 | apply Prod.ext |
| 559 | · exact ActualPrimary.nativeSlow_toAbsolute_eq_slowChange l.1 n x.1 |
| 560 | · change (ActualPrimary.geometry l.2 l.1).coordinates k |
| 561 | ((CommonCoverSolve.coverPower (CommonWindow.index ActualPrimary.h n)).symm x.1.2.2) = |
| 562 | (ActualPrimary.chartGeometry n l.2 l.1).coordinates k x.1.2.2 |
| 563 | exact ActualPrimary.chartGeometry_coordinates_active n l.2 l.1 hn.2 k x.1.2.2 |
| 564 | |
| 565 | theorem phaseCell_time {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 566 | (hc : x ∈ phaseCell l n k) : nativeTime l n k x ∈ Ioo (0 : ℝ) 1 := |
| 567 | ⟨by linarith [hc.2.1], by linarith [hc.2.2]⟩ |
| 568 | |
| 569 | theorem uniform_of_primary {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 570 | {w : PulseLabel B N0 → ℕ → FullPoint → ℝ} {α : ℝ} |
| 571 | {f : ℕ → ActualPrimaryBounds.CopyIndex B N0 → FullPoint → E} |
| 572 | (hf : LocalizedWaveBounds.LocalClass fullStrip ActualPrimaryBounds.controlCell |
| 573 | (fun n i => w i.1 n) α f) : |
| 574 | PeriodizedWaveBounds.UniformLocalJets fullStrip (fun l => w (l.2, l.1)) α phaseCell |
| 575 | (fun l n k => f n ((l.2, l.1), k)) := by |
| 576 | refine ⟨fun l n k x hx hc => hf.smooth n ((l.2, l.1), k) x hx hc.1, ?_⟩ |
| 577 | intro m |
| 578 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 579 | exact ⟨C, hC, p, fun l n k x hx hc j hj => hb n ((l.2, l.1), k) x hx hc.1 j hj⟩ |
| 580 | |
| 581 | /-- The affine derivative bound is required only on active cells. The |
| 582 | single derivative constant still precedes every label, band and copy. -/ |
| 583 | theorem native_jets_on_phaseCell {J D E : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 584 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 585 | {V : JetDomain J D} {w : J → D → ℝ} {f : J → D → E} (hf : NativeJets V w f) |
| 586 | (index : SignedLabel B N0 → ℕ → J) |
| 587 | (L : SignedLabel B N0 → ℕ → Frequency → FullPoint →L[ℝ] D) |
| 588 | (c : SignedLabel B N0 → ℕ → Frequency → D) |
| 589 | (W : SignedLabel B N0 → ℕ → FullPoint → ℝ) |
| 590 | {A H : ℝ} (hA : 1 ≤ A) (hH : 1 ≤ H) |
| 591 | (hmap : ∀ l n k x, x ∈ fullStrip.domain → x ∈ phaseCell l n k → |
| 592 | L l n k x + c l n k ∈ V.carrier (index l n)) |
| 593 | (hgrowth : ∀ l n k x, x ∈ fullStrip.domain → x ∈ phaseCell l n k → |
| 594 | V.growth (index l n) (L l n k x + c l n k) ≤ A * fullStrip.growth n x) |
| 595 | (hlinear : ∀ l n k x, x ∈ fullStrip.domain → x ∈ phaseCell l n k → |
| 596 | ‖L l n k‖ ≤ H * fullStrip.slow n) |
| 597 | (hweight : ∀ l n k x, x ∈ fullStrip.domain → x ∈ phaseCell l n k → |
| 598 | w (index l n) (L l n k x + c l n k) ≤ W l n x) : |
| 599 | PeriodizedWaveBounds.UniformLocalJets fullStrip W 0 phaseCell |
| 600 | (fun l n k x => f (index l n) (L l n k x + c l n k)) := by |
| 601 | refine ⟨?_, ?_⟩ |
| 602 | · intro l n k x hx hc |
| 603 | exact ((hf.smooth (index l n)).contDiffAt |
| 604 | ((V.isOpen (index l n)).mem_nhds (hmap l n k x hx hc))).comp x |
| 605 | (((L l n k).contDiff.add contDiff_const).contDiffAt) |
| 606 | · intro m |
| 607 | obtain ⟨C, hC, p, hb⟩ := hf.bound m |
| 608 | refine ⟨C * A ^ p * H ^ m, by positivity, p + m, ?_⟩ |
| 609 | intro l n k x hx hc j hj |
| 610 | have hm := hmap l n k x hx hc |
| 611 | have hG := fullStrip.one_le_growth n x |
| 612 | have hS := fullStrip.one_le_slow n |
| 613 | have hGN := V.one_le_growth (index l n) hm |
| 614 | have hw := hf.nonneg (index l n) _ hm |
| 615 | have hW : 0 ≤ W l n x := hw.trans (hweight l n k x hx hc) |
| 616 | have hlin : ‖L l n k‖ ^ j ≤ H ^ m * fullStrip.growth n x ^ m := by |
| 617 | calc |
| 618 | _ ≤ (H * fullStrip.slow n) ^ m := |
| 619 | (pow_le_pow_left₀ (norm_nonneg _) (hlinear l n k x hx hc) j).trans |
| 620 | (pow_le_pow_right₀ (one_le_mul_of_one_le_of_one_le hH hS) hj) |
| 621 | _ ≤ (H * fullStrip.growth n x) ^ m := by gcongr; exact fullStrip.slow_le_growth n x |
| 622 | _ = _ := mul_pow _ _ _ |
| 623 | have hu := norm_jet_comp_affine (V.isOpen (index l n)) (hf.smooth (index l n)) |
| 624 | (L l n k) (c l n k) hm j |
| 625 | calc |
| 626 | _ ≤ ‖iteratedFDeriv ℝ j (f (index l n)) (L l n k x + c l n k)‖ * ‖L l n k‖ ^ j := hu |
| 627 | _ ≤ (C * V.growth (index l n) (L l n k x + c l n k) ^ p * |
| 628 | w (index l n) (L l n k x + c l n k)) * (H ^ m * fullStrip.growth n x ^ m) := |
| 629 | mul_le_mul (hb _ _ hm j hj) hlin (by positivity) |
| 630 | (mul_nonneg (mul_nonneg (zero_le_one.trans hC) |
| 631 | (pow_nonneg (zero_le_one.trans hGN) _)) hw) |
| 632 | _ ≤ (C * (A * fullStrip.growth n x) ^ p * W l n x) * |
| 633 | (H ^ m * fullStrip.growth n x ^ m) := by |
| 634 | gcongr |
| 635 | · exact hgrowth l n k x hx hc |
| 636 | · exact hweight l n k x hx hc |
| 637 | _ = majorant fullStrip (W l) 0 (C * A ^ p * H ^ m) (p + m) n x := by |
| 638 | rw [majorant, Real.rpow_zero, mul_pow, pow_add] |
| 639 | ring |
| 640 | |
| 641 | theorem matrix_local_jets (r c : Fin 2) : |
| 642 | PeriodizedWaveBounds.UniformLocalJets fullStrip (fun _ _ _ => 1) 0 (phaseCell (B := B) (N0 := N0)) |
| 643 | (fun l n k x => matrix l k n x r c) := by |
| 644 | have hp := uniform_of_primary (w := fun _ _ _ => 1) (ActualPrimaryBounds.polynomial_on_control |
| 645 | (native_matrix_slot_jets (B := B) (N0 := N0) ActualPhaseDefect.paddedRegion r c)) |
| 646 | apply ActualSignedControl.uniform_local_congr hp |
| 647 | intro l n k x _ hc |
| 648 | dsimp only [matrix] |
| 649 | rw [nativePoint_eq_fullCopy l n k hc.1.1] |
| 650 | |
| 651 | noncomputable def slowLinear (l : SignedLabel B N0) (n : ℕ) : FullPoint →L[ℝ] PhaseCalculus.Slow := |
| 652 | (ContinuousLinearMap.fst ℝ PhaseCalculus.Slow ℝ).comp (ActualPrimaryBounds.slotLinear (l.2, l.1) n) |
| 653 | |
| 654 | theorem slowLinear_bound {l : SignedLabel B N0} {n : ℕ} |
| 655 | (hn : ActualPrimaryBounds.near (l.2, l.1) n) : |
| 656 | ‖slowLinear l n‖ ≤ ActualPrimaryBounds.copyCost * fullStrip.slow n := by |
| 657 | have hp : ‖ContinuousLinearMap.fst ℝ PhaseCalculus.Slow ℝ‖ ≤ 1 := by |
| 658 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 659 | intro x |
| 660 | simpa only [ContinuousLinearMap.coe_fst', one_mul] using norm_fst_le x |
| 661 | calc |
| 662 | _ ≤ ‖ContinuousLinearMap.fst ℝ PhaseCalculus.Slow ℝ‖ * |
| 663 | ‖ActualPrimaryBounds.slotLinear (l.2, l.1) n‖ := ContinuousLinearMap.opNorm_comp_le _ _ |
| 664 | _ ≤ 1 * (ActualPrimaryBounds.copyCost * fullStrip.slow n) := |
| 665 | mul_le_mul hp (ActualPrimaryBounds.slotLinear_bound hn) (norm_nonneg _) zero_le_one |
| 666 | _ = _ := one_mul _ |
| 667 | |
| 668 | theorem slowCopy_affine (l : SignedLabel B N0) (n : ℕ) (k : Frequency) (x : FullPoint) : |
| 669 | (ActualPrimaryBounds.fullCopy (l.2, l.1) n k x).1 = |
| 670 | slowLinear l n x + (ActualPrimaryBounds.fullCopy (l.2, l.1) n k 0).1 := by |
| 671 | have he := congrArg Prod.fst (ActualPrimaryBounds.slotCopy_affine (l.2, l.1) n k x) |
| 672 | exact he |
| 673 | |
| 674 | theorem slow_growth_eq (U : LocalSignedRequest.SlowRegion (2 * ActualPrimary.h)) |
| 675 | (l : PulseLabel B N0) (x : Native) : |
| 676 | (slowJetDomain U).growth l x.1 = |
| 677 | (NativeBandExtension.radialDomain ActualPrimary.certificate ActualPrimary.modulation |
| 678 | (ActualPrimary.choice B N0).prepared).growth l.2 x := rfl |
| 679 | |
| 680 | theorem copied_target_jets : |
| 681 | PeriodizedWaveBounds.UniformLocalJets fullStrip (fun _ _ x => fullStrip.zeta x) 0 |
| 682 | (phaseCell (B := B) (N0 := N0)) |
| 683 | (fun l n k x => PrimaryTargetBounds.actualTarget ActualPrimary.modulation (nativePoint l n k x).1) := by |
| 684 | have hh := native_jets_on_phaseCell (native_target_jets (B := B) (N0 := N0) ActualPhaseDefect.paddedRegion) |
| 685 | (fun l _ => (l.2, l.1)) (fun l n _ => slowLinear l n) |
| 686 | (fun l n k => (ActualPrimaryBounds.fullCopy (l.2, l.1) n k 0).1) |
| 687 | (fun _ _ x => fullStrip.zeta x) (A := 25) (H := ActualPrimaryBounds.copyCost) |
| 688 | (by norm_num) ActualPrimaryBounds.copyCost_one |
| 689 | (fun l n k x hx hc => by |
| 690 | rw [← slowCopy_affine] |
| 691 | exact (ActualPrimaryBounds.control_maps hx hc.1).1) |
| 692 | (fun l n k x hx hc => by |
| 693 | rw [← slowCopy_affine, slow_growth_eq] |
| 694 | exact ActualPrimaryBounds.copyPoint_growth hc.1.1 k hx) |
| 695 | (fun _ _ _ _ _ hc => slowLinear_bound hc.1.1) |
| 696 | (fun l n k x hx _ => by |
| 697 | rw [← slowCopy_affine] |
| 698 | exact le_of_eq (ActualPrimaryBounds.copyPoint_weight (l.2, l.1) n k hx)) |
| 699 | apply ActualSignedControl.uniform_local_congr hh |
| 700 | intro l n k x _ hc |
| 701 | rw [nativePoint_eq_fullCopy l n k hc.1.1] |
| 702 | exact Filter.Eventually.of_forall (fun y => by dsimp only; rw [← slowCopy_affine]) |
| 703 | |
| 704 | theorem uniform_scalar_mul {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 705 | {w : SignedLabel B N0 → ℕ → FullPoint → ℝ} {α : ℝ} |
| 706 | {r : SignedLabel B N0 → ℕ → Frequency → FullPoint → ℝ} |
| 707 | {f : SignedLabel B N0 → ℕ → Frequency → FullPoint → E} |
| 708 | (hr : PeriodizedWaveBounds.UniformLocalJets fullStrip (fun _ _ _ => 1) 0 phaseCell r) |
| 709 | (hf : PeriodizedWaveBounds.UniformLocalJets fullStrip w α phaseCell f) |
| 710 | (hw : ∀ l n x, x ∈ fullStrip.domain → 0 ≤ w l n x) : |
| 711 | PeriodizedWaveBounds.UniformLocalJets fullStrip w α phaseCell |
| 712 | (fun l n k x => r l n k x • f l n k x) := by |
| 713 | have ha := LocalizedWaveBounds.LocalClass.of_uniformLocalJets (fun _ _ _ _ => zero_le_one) hr |
| 714 | have hb := LocalizedWaveBounds.LocalClass.of_uniformLocalJets hw hf |
| 715 | apply LocalizedWaveBounds.LocalClass.to_uniformLocalJets |
| 716 | simpa only [one_mul, zero_add] using ha.smul hb |
| 717 | |
| 718 | theorem uniform_map {E F : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 719 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 720 | {w : SignedLabel B N0 → ℕ → FullPoint → ℝ} {α : ℝ} |
| 721 | {f : SignedLabel B N0 → ℕ → Frequency → FullPoint → E} |
| 722 | (hf : PeriodizedWaveBounds.UniformLocalJets fullStrip w α phaseCell f) |
| 723 | (hw : ∀ l n x, x ∈ fullStrip.domain → 0 ≤ w l n x) (L : E →L[ℝ] F) : |
| 724 | PeriodizedWaveBounds.UniformLocalJets fullStrip w α phaseCell (fun l n k x => L (f l n k x)) := |
| 725 | ((LocalizedWaveBounds.LocalClass.of_uniformLocalJets hw hf).map L).to_uniformLocalJets |
| 726 | |
| 727 | theorem coefficientSquare_local_jets : |
| 728 | PeriodizedWaveBounds.UniformLocalJets fullStrip (fun _ _ _ => 1) 0 |
| 729 | (phaseCell (B := B) (N0 := N0)) (fun l n _ (_ : FullPoint) => coefficientScale l n ^ 2) := by |
| 730 | have hh : LocalizedWaveBounds.LocalUnweighted fullStrip ActualPrimaryBounds.controlCell 0 |
| 731 | (fun n (i : ActualPrimaryBounds.CopyIndex B N0) (_ : FullPoint) => coefficientScale (i.1.2, i.1.1) n ^ 2) := by |
| 732 | apply ActualPrimaryBounds.local_constant (sq_nonneg coefficientUpper) |
| 733 | intro n i x _ hx |
| 734 | have hh := coefficientScale_bounds (i.1.2, i.1.1) |
| 735 | (ActualPrimaryBounds.near_distance hx.1).1 (ActualPrimaryBounds.near_distance hx.1).2 |
| 736 | rw [abs_of_nonneg (sq_nonneg _)] |
| 737 | exact pow_le_pow_left₀ (coefficientScale_pos _ _).le hh.2 2 |
| 738 | exact uniform_of_primary (w := fun _ _ _ => 1) hh |
| 739 | |
| 740 | theorem target_local_jets (q : Fin 2) : |
| 741 | PeriodizedWaveBounds.UniformLocalJets fullStrip (fun _ _ x => fullStrip.zeta x) 0 |
| 742 | (phaseCell (B := B) (N0 := N0)) (fun l n k x => target l k n x q) := by |
| 743 | have ht := uniform_map (copied_target_jets (B := B) (N0 := N0)) |
| 744 | (fun _ _ x hx => fullStrip.zeta_nonneg x hx) (PiLp.proj 2 (fun _ : Fin 2 => ℝ) q) |
| 745 | have hh := uniform_scalar_mul coefficientSquare_local_jets ht |
| 746 | (fun _ _ x hx => fullStrip.zeta_nonneg x hx) |
| 747 | exact hh |
| 748 | |
| 749 | theorem mask_local_jets : |
| 750 | PeriodizedWaveBounds.UniformLocalJets fullStrip (fun _ _ _ => 1) 0 |
| 751 | (phaseCell (B := B) (N0 := N0)) (fun l n k => mask l k n) := by |
| 752 | have hm := (native_mask_jets (B := B) (N0 := N0) ActualPhaseDefect.paddedRegion).lift_slot |
| 753 | (fun i => (ActualPrimary.phases B N0 i.1).V i.2) |
| 754 | (fun i => (ActualPrimary.phases B N0 i.1).openV i.2) |
| 755 | have hp := uniform_of_primary (w := fun _ _ _ => 1) (ActualPrimaryBounds.polynomial_on_control hm) |
| 756 | apply ActualSignedControl.uniform_local_congr hp |
| 757 | intro l n k x _ hc |
| 758 | apply Filter.Eventually.of_forall |
| 759 | intro y |
| 760 | change ActualPrimary.spatialMask l.1 (ActualPrimaryBounds.fullCopy (l.2, l.1) n k y).1 = |
| 761 | ActualPrimary.spatialMask l.1 (nativePoint l n k y).1 |
| 762 | rw [nativePoint_eq_fullCopy l n k hc.1.1] |
| 763 | |
| 764 | theorem fullStrip_zeta_pos {x : FullPoint} (hx : x ∈ fullStrip.domain) : 0 < fullStrip.zeta x := by |
| 765 | have hr := (BaseContextAssembly.nativeStrip_mem ActualPrimary.nominal ActualPrimaryBounds.region x.1).mp hx |
| 766 | have hT := BaseContextAssembly.nativeStrip_time ActualPrimary.nominal ActualPrimaryBounds.region hx |
| 767 | have hi : (ActualSignedGeometry.meanEquiv.symm x.1) ∈ |
| 768 | NativeBandExtension.radialInterior ActualPrimary.nominal := ⟨hT, hr.2⟩ |
| 769 | have hp := (NativeBandExtension.radialInterior_spec ActualPrimary.nominal hi).2.2.2 |
| 770 | have he := ActualSignedGeometry.viewStrip_zeta ActualPrimary.nominal ActualPrimaryBounds.region id |
| 771 | (ActualSignedGeometry.meanEquiv.symm x.1) |
| 772 | change fullStrip.zeta x = PrimaryTargetBounds.movingWeight ActualPrimary.nominal |
| 773 | (ActualSignedGeometry.meanEquiv.symm x.1).1 at he |
| 774 | rw [he] |
| 775 | exact hp |
| 776 | |
| 777 | theorem covariance_margins {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 778 | (hx : x ∈ fullStrip.domain) (hc : x ∈ phaseCell l n k) : |
| 779 | (1 / 5 : ℝ) ^ 2 * (ActualPrimary.choice B N0).detGap ≤ |
| 780 | |(PrimaryPulseBounds.normalizedMatrix (Real.sqrt (fullStrip.slow n)) (matrix l k n x)).det| ∧ |
| 781 | (∀ r c, |Real.sqrt (fullStrip.slow n) * matrix l k n x r c| ≤ |
| 782 | 5 * (ActualPrimary.choice B N0).entryBound) ∧ |
| 783 | (∀ j, (coefficientLower ^ 2 * (ActualPrimary.choice B N0).inverseLower) * fullStrip.zeta x ≤ |
| 784 | SmoothCovariance.weights (matrix l k n x) (target l k n x) j) := by |
| 785 | have hrad := ActualPrimaryBounds.copyPoint_radial (l.2, l.1) n k |
| 786 | (x := ActualSignedGeometry.meanEquiv.symm x.1) hx |
| 787 | have hi : ActualPrimaryBounds.fullCopy (l.2, l.1) n k x ∈ |
| 788 | NativeBandExtension.radialInterior ActualPrimary.nominal := ⟨hrad.1, hrad.2⟩ |
| 789 | have hq : NativeBandExtension.nativeQ ActualPrimary.h (ActualPrimaryBounds.fullCopy (l.2, l.1) n k x) ∈ |
| 790 | Icc (1 / 2 : ℝ) 2 := hc.1.2.2.2 |
| 791 | have hz := ActualPrimary.covariance_bounds B N0 l.1 _ |
| 792 | (NativeBandExtension.reference_of_closed_band ActualPrimary.nominal hi hq) hc.1.2.1 |
| 793 | have hw : PrimaryTargetBounds.movingWeight ActualPrimary.nominal |
| 794 | (ActualPrimaryBounds.fullCopy (l.2, l.1) n k x).1 = fullStrip.zeta x := |
| 795 | ActualPrimaryBounds.copyPoint_weight (l.2, l.1) n k hx |
| 796 | rw [hw] at hz |
| 797 | have hn := hc.1.1 |
| 798 | have hband : 1 ≤ BaseChartJets.cellBand l.1 := |
| 799 | le_trans (by norm_num) (ActualPrimaryBounds.label_large (l.2, l.1)) |
| 800 | have hS : fullStrip.slow n = ChartScales.S n := |
| 801 | max_eq_right (PhysicalGraphBounds.S_ge_one hn.1) |
| 802 | have hrat := ActualSignedGeometry.sqrt_S_window hn.1 hband |
| 803 | (ActualPrimaryBounds.near_distance hn).1 (ActualPrimaryBounds.near_distance hn).2 |
| 804 | rw [← hS] at hrat |
| 805 | have hs := coefficientScale_bounds l (ActualPrimaryBounds.near_distance hn).1 |
| 806 | (ActualPrimaryBounds.near_distance hn).2 |
| 807 | have hh := ActualSignedControl.rescale_margins (R := Real.sqrt (fullStrip.slow n)) |
| 808 | (c := coefficientScale l n) (clo := coefficientLower) (rlo := 1 / 5) (rhi := 5) hz |
| 809 | (Real.one_le_sqrt.mpr (PhysicalGraphBounds.S_ge_one hband)) |
| 810 | (ActualPrimary.choice B N0).detGap_pos.le (ActualPrimary.choice B N0).inverseLower_pos.le |
| 811 | (fullStrip.zeta_nonneg x hx) coefficientLower_pos hs.1 (by norm_num) hrat.1 hrat.2 |
| 812 | simpa only [matrix, target, nativePoint_eq_fullCopy l n k hn] using hh |
| 813 | |
| 814 | /-- The uniform covariance record is constructed from the actual selected |
| 815 | matrix and leading target, including both closed dyadic endpoints. -/ |
| 816 | noncomputable def nativeCovariance (B N0 : ℕ) : |
| 817 | SignedCopyBounds.UniformNativeCovariance fullStrip (phaseCell (B := B) (N0 := N0)) matrix target where |
| 818 | matrix_jets := matrix_local_jets |
| 819 | target_jets := target_local_jets |
| 820 | zeta_pos := fun _ hx => fullStrip_zeta_pos hx |
| 821 | determinantGap := (1 / 5 : ℝ) ^ 2 * (ActualPrimary.choice B N0).detGap |
| 822 | entryBound := 5 * (ActualPrimary.choice B N0).entryBound |
| 823 | primaryLower := coefficientLower ^ 2 * (ActualPrimary.choice B N0).inverseLower |
| 824 | gap_pos := mul_pos (by norm_num) (ActualPrimary.choice B N0).detGap_pos |
| 825 | entry_one := one_le_mul_of_one_le_of_one_le (by norm_num) (ActualPrimary.choice B N0).entryBound_ge_one |
| 826 | lower_pos := mul_pos (sq_pos_of_pos coefficientLower_pos) (ActualPrimary.choice B N0).inverseLower_pos |
| 827 | determinant := fun _ _ _ _ hx hc => (covariance_margins hx hc).1 |
| 828 | entries := fun _ _ _ _ hx hc => (covariance_margins hx hc).2.1 |
| 829 | lower := fun _ _ _ _ hx hc => (covariance_margins hx hc).2.2 |
| 830 | |
| 831 | noncomputable def normalizeNative (L : ActualPrimary.Label B N0) : |
| 832 | Native →L[ℝ] (PhaseCalculus.Slow × ℝ) := |
| 833 | (ContinuousLinearMap.fst ℝ PhaseCalculus.Slow Plane).prod |
| 834 | (ActualPrimaryBounds.timeProjection L) |
| 835 | |
| 836 | theorem normalizeNative_apply (L : ActualPrimary.Label B N0) (x : Native) : |
| 837 | normalizeNative L x = ActualPrimary.pulseCoordinates L x := by |
| 838 | change (x.1, ((ActualPrimary.phases B N0 0).L L)⁻¹ * x.2.2) = |
| 839 | (x.1, x.2.2 / (ActualPrimary.phases B N0 0).L L) |
| 840 | rw [div_eq_mul_inv, mul_comm] |
| 841 | |
| 842 | theorem normalizeNative_norm (L : ActualPrimary.Label B N0) : |
| 843 | ‖normalizeNative L‖ ≤ (ActualPrimary.choice B N0).prepared.M := by |
| 844 | have hM := (ActualPrimary.choice B N0).prepared.one_le_M |
| 845 | apply ContinuousLinearMap.opNorm_le_bound _ (zero_le_one.trans hM) |
| 846 | intro x |
| 847 | change max ‖x.1‖ ‖ActualPrimaryBounds.timeProjection L x‖ ≤ _ |
| 848 | apply max_le |
| 849 | · exact (norm_fst_le x).trans (le_mul_of_one_le_left (norm_nonneg x) hM) |
| 850 | · exact (ContinuousLinearMap.le_opNorm _ x).trans |
| 851 | (mul_le_mul_of_nonneg_right (ActualPrimaryBounds.timeProjection_norm L) (norm_nonneg x)) |
| 852 | |
| 853 | noncomputable def pulseLinear (l : SignedLabel B N0) (n : ℕ) : |
| 854 | FullPoint →L[ℝ] (PhaseCalculus.Slow × ℝ) := |
| 855 | (normalizeNative l.1).comp |
| 856 | ((ActualPrimaryBounds.copyLinear (l.2, l.1) n).comp ActualPrimaryBounds.nativeOfFull) |
| 857 | |
| 858 | theorem pulseLinear_bound {l : SignedLabel B N0} {n : ℕ} |
| 859 | (hn : ActualPrimaryBounds.near (l.2, l.1) n) : |
| 860 | ‖pulseLinear l n‖ ≤ |
| 861 | ((ActualPrimary.choice B N0).prepared.M * ActualPrimaryBounds.copyCost) * fullStrip.slow n := by |
| 862 | calc |
| 863 | _ ≤ ‖normalizeNative l.1‖ * |
| 864 | (‖ActualPrimaryBounds.copyLinear (l.2, l.1) n‖ * ‖ActualPrimaryBounds.nativeOfFull‖) := |
| 865 | (ContinuousLinearMap.opNorm_comp_le _ _).trans |
| 866 | (mul_le_mul_of_nonneg_left (ContinuousLinearMap.opNorm_comp_le _ _) (norm_nonneg _)) |
| 867 | _ ≤ (ActualPrimary.choice B N0).prepared.M * |
| 868 | ((ActualPrimaryBounds.copyCost * fullStrip.slow n) * 1) := |
| 869 | mul_le_mul (normalizeNative_norm l.1) |
| 870 | (mul_le_mul (ActualPrimaryBounds.copyLinear_bound hn) ActualPrimaryBounds.nativeOfFull_norm |
| 871 | (norm_nonneg _) (mul_nonneg (zero_le_one.trans ActualPrimaryBounds.copyCost_one) |
| 872 | (zero_le_one.trans (fullStrip.one_le_slow n)))) |
| 873 | (mul_nonneg (norm_nonneg _) (norm_nonneg _)) |
| 874 | (zero_le_one.trans (ActualPrimary.choice B N0).prepared.one_le_M) |
| 875 | _ = _ := by ring |
| 876 | |
| 877 | theorem pulseCopy_affine (l : SignedLabel B N0) (n : ℕ) (k : Frequency) (x : FullPoint) : |
| 878 | ActualPrimary.pulseCoordinates l.1 (ActualPrimaryBounds.fullCopy (l.2, l.1) n k x) = |
| 879 | pulseLinear l n x + |
| 880 | ActualPrimary.pulseCoordinates l.1 (ActualPrimaryBounds.fullCopy (l.2, l.1) n k 0) := by |
| 881 | rw [← normalizeNative_apply, ← normalizeNative_apply] |
| 882 | change normalizeNative l.1 (ActualPrimaryBounds.copyPoint (l.2, l.1) n k |
| 883 | (ActualPrimaryBounds.nativeOfFull x)) = _ |
| 884 | rw [ActualPrimaryBounds.copyPoint_affine, map_add] |
| 885 | rfl |
| 886 | |
| 887 | theorem nativeEnvelope_copy (l : SignedLabel B N0) (n : ℕ) (k : Frequency) (x : FullPoint) : |
| 888 | nativeEnvelope (l.2, l.1) |
| 889 | (ActualPrimary.pulseCoordinates l.1 (ActualPrimaryBounds.fullCopy (l.2, l.1) n k x)) = |
| 890 | ActualPrimaryBounds.pulseEnvelope (l.2, l.1) (ActualPrimaryBounds.fullCopy (l.2, l.1) n k x).2.2 := by |
| 891 | change PrimaryPulseBounds.referenceP _ _ _ |
| 892 | (((ActualPrimary.phases B N0 l.2).L l.1) * |
| 893 | ((ActualPrimaryBounds.fullCopy (l.2, l.1) n k x).2.2 / (ActualPrimary.phases B N0 0).L l.1)) = |
| 894 | PrimaryPulseBounds.referenceP _ _ _ (ActualPrimaryBounds.fullCopy (l.2, l.1) n k x).2.2 |
| 895 | congr 1 |
| 896 | rw [ActualPrimary.length_sign l.2 l.1, |
| 897 | mul_div_cancel₀ _ ((ActualPrimary.phases B N0 0).L_pos l.1).ne'] |
| 898 | |
| 899 | theorem fundamental_local_jets : |
| 900 | PeriodizedWaveBounds.UniformLocalJets fullStrip (envelope (B := B) (N0 := N0)) 0 phaseCell |
| 901 | (fun l n k => fundamental l k n) := by |
| 902 | have hh := native_jets_on_phaseCell (native_unit_jets (B := B) (N0 := N0)) |
| 903 | (fun l _ => (l.2, l.1)) (fun l n _ => pulseLinear l n) |
| 904 | (fun l n k => ActualPrimary.pulseCoordinates l.1 (ActualPrimaryBounds.fullCopy (l.2, l.1) n k 0)) |
| 905 | envelope (A := 25) (H := (ActualPrimary.choice B N0).prepared.M * ActualPrimaryBounds.copyCost) |
| 906 | (by norm_num) (one_le_mul_of_one_le_of_one_le (ActualPrimary.choice B N0).prepared.one_le_M |
| 907 | ActualPrimaryBounds.copyCost_one) |
| 908 | (fun l n k x _ hc => by |
| 909 | rw [← pulseCopy_affine] |
| 910 | refine ⟨hc.1.2.1, ?_⟩ |
| 911 | have ht := phaseCell_time hc |
| 912 | simpa only [nativeTime, nativePoint_eq_fullCopy l n k hc.1.1] using ht) |
| 913 | (fun l n k x _ hc => by |
| 914 | change ChartScales.S (BaseChartJets.cellBand l.1) ≤ _ |
| 915 | exact (ActualSignedGeometry.S_window_le hc.1.1.1 |
| 916 | (ActualPrimaryBounds.near_distance hc.1.1).2).trans |
| 917 | (mul_le_mul_of_nonneg_left ((le_max_right 1 (ChartScales.S n)).trans |
| 918 | (fullStrip.slow_le_growth n x)) (by norm_num))) |
| 919 | (fun _ _ _ _ _ hc => pulseLinear_bound hc.1.1) |
| 920 | (fun l n k x _ hc => by |
| 921 | rw [← pulseCopy_affine, nativeEnvelope_copy] |
| 922 | exact le_of_eq (ActualPrimaryBounds.envelope_copy (l.2, l.1) n k hc.1.2.2.1).symm) |
| 923 | apply ActualSignedControl.uniform_local_congr hh |
| 924 | intro l n k x _ hc |
| 925 | apply Filter.Eventually.of_forall |
| 926 | intro y |
| 927 | change nativeUnit (l.2, l.1) (pulseLinear l n y + _) = |
| 928 | nativeUnit (l.2, l.1) (ActualPrimary.pulseCoordinates l.1 (nativePoint l n k y)) |
| 929 | rw [← pulseCopy_affine, nativePoint_eq_fullCopy l n k hc.1.1] |
| 930 | |
| 931 | theorem normalScale_local_jets : |
| 932 | PeriodizedWaveBounds.UniformLocalJets fullStrip (fun _ _ _ => 1) 0 |
| 933 | (phaseCell (B := B) (N0 := N0)) (fun l n _ (_ : FullPoint) => normalScale l n) := |
| 934 | uniform_of_primary (w := fun _ _ _ => 1) ActualPrimaryBounds.normalScale_local |
| 935 | |
| 936 | theorem clockScale_local_jets : |
| 937 | PeriodizedWaveBounds.UniformLocalJets fullStrip (fun _ _ _ => 1) 0 |
| 938 | (phaseCell (B := B) (N0 := N0)) (fun l n _ (_ : FullPoint) => clockScale l n) := by |
| 939 | have hh : LocalizedWaveBounds.LocalUnweighted fullStrip ActualPrimaryBounds.controlCell 0 |
| 940 | (fun n (i : ActualPrimaryBounds.CopyIndex B N0) (_ : FullPoint) => clockScale (i.1.2, i.1.1) n) := by |
| 941 | apply ActualPrimaryBounds.local_constant |
| 942 | (zero_le_one.trans (ActualSignedGeometry.powerBound_one (CoordinateAlgebra.A ActualPrimary.h + 1 / 2))) |
| 943 | intro n i x _ hc |
| 944 | change |PhysicalParticularWave.ratioPower (ChartScales.Q n) |
| 945 | (ChartScales.Q (BaseChartJets.cellBand i.1.2)) (CoordinateAlgebra.A ActualPrimary.h + 1 / 2)| ≤ _ |
| 946 | rw [abs_of_pos (PhysicalParticularWave.ratioPower_pos |
| 947 | (ChartScales.Q_pos n) (ChartScales.Q_pos _) _)] |
| 948 | exact ActualSignedGeometry.dyadic_ratioPower_le |
| 949 | (ActualPrimaryBounds.near_distance hc.1).1 (ActualPrimaryBounds.near_distance hc.1).2 _ |
| 950 | exact uniform_of_primary (w := fun _ _ _ => 1) hh |
| 951 | |
| 952 | theorem normal_local_jets : |
| 953 | PeriodizedWaveBounds.UniformLocalJets fullStrip (fun _ _ _ => 1) 0 |
| 954 | (phaseCell (B := B) (N0 := N0)) |
| 955 | (fun l n _ => (ActualPrimary.chartCoefficients l.2 l.1).normal fullStrip (directions B) n) := |
| 956 | uniform_of_primary (w := fun _ _ _ => 1) ActualPrimaryBounds.chart_normal_local |
| 957 | |
| 958 | theorem normal_range {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 959 | (hx : x ∈ fullStrip.domain) (hc : x ∈ phaseCell l n k) : |
| 960 | ActualPrimaryBounds.normalFloor B N0 ≤ |
| 961 | ‖(ActualPrimary.chartCoefficients l.2 l.1).normal fullStrip (directions B) n x‖ ∧ |
| 962 | ‖(ActualPrimary.chartCoefficients l.2 l.1).normal fullStrip (directions B) n x‖ ≤ |
| 963 | ActualPrimaryBounds.normalCeiling B N0 := |
| 964 | ActualPrimaryBounds.chart_normal_range (i := ((l.2, l.1), k)) (n := n) (x := x) hx hc.1 |
| 965 | |
| 966 | theorem normalMotion_local_jets : |
| 967 | PeriodizedWaveBounds.UniformLocalJets fullStrip (fun _ _ _ => 1) 0 |
| 968 | (phaseCell (B := B) (N0 := N0)) (fun l n k => normalMotion l k n) := by |
| 969 | have hs := uniform_scalar_mul (normalScale_local_jets (B := B) (N0 := N0)) |
| 970 | clockScale_local_jets (fun _ _ _ _ => zero_le_one) |
| 971 | have hv := uniform_of_primary (w := fun _ _ _ => 1) (ActualPrimaryBounds.polynomial_on_control |
| 972 | (native_phase_jets (B := B) (N0 := N0) ActualPhaseDefect.paddedRegion).2.1) |
| 973 | have hh := uniform_scalar_mul hs hv (fun _ _ _ _ => zero_le_one) |
| 974 | apply ActualSignedControl.uniform_local_congr hh |
| 975 | intro l n k x _ hc |
| 976 | apply Filter.Eventually.of_forall |
| 977 | intro y |
| 978 | change (normalScale l n * clockScale l n) • |
| 979 | (nativePhase (B := B) (N0 := N0)).velocity (l.2, l.1) |
| 980 | ((ActualPrimaryBounds.fullCopy (l.2, l.1) n k y).1, |
| 981 | (ActualPrimaryBounds.fullCopy (l.2, l.1) n k y).2.2) = |
| 982 | (normalScale l n * clockScale l n) • (ActualPrimary.phases B N0 l.2).phase.velocity l.1 |
| 983 | (ActualPrimary.phasePoint l.1 (nativePoint l n k y)) |
| 984 | rw [nativePoint_eq_fullCopy l n k hc.1.1] |
| 985 | rfl |
| 986 | |
| 987 | theorem action_local_jets : |
| 988 | PeriodizedWaveBounds.UniformLocalJets fullStrip (fun _ _ _ => 1) 0 |
| 989 | (phaseCell (B := B) (N0 := N0)) (fun l n k => action l k n) := by |
| 990 | have hv := uniform_of_primary (w := fun _ _ _ => 1) (ActualPrimaryBounds.polynomial_on_control |
| 991 | (native_action_jets (B := B) (N0 := N0) ActualPhaseDefect.paddedRegion)) |
| 992 | have hh := uniform_scalar_mul clockScale_local_jets hv (fun _ _ _ _ => zero_le_one) |
| 993 | apply ActualSignedControl.uniform_local_congr hh |
| 994 | intro l n k x _ hc |
| 995 | apply Filter.Eventually.of_forall |
| 996 | intro y |
| 997 | change clockScale l n • |
| 998 | PrimaryCopyBridge.baseOperator |
| 999 | ((nativePhase (B := B) (N0 := N0)).F (l.2, l.1) (ActualPrimaryBounds.fullCopy (l.2, l.1) n k y).1) |
| 1000 | ((nativePhase (B := B) (N0 := N0)).shear (l.2, l.1) |
| 1001 | ((ActualPrimaryBounds.fullCopy (l.2, l.1) n k y).1, |
| 1002 | (ActualPrimaryBounds.fullCopy (l.2, l.1) n k y).2.2)) = action l k n y |
| 1003 | unfold action |
| 1004 | rw [nativePoint_eq_fullCopy l n k hc.1.1] |
| 1005 | rfl |
| 1006 | |
| 1007 | noncomputable def transverseProjection : Native →L[ℝ] ℝ := |
| 1008 | (ContinuousLinearMap.fst ℝ ℝ ℝ).comp (ContinuousLinearMap.snd ℝ PhaseCalculus.Slow Plane) |
| 1009 | |
| 1010 | theorem transverseProjection_norm : ‖transverseProjection‖ ≤ 1 := by |
| 1011 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 1012 | intro x |
| 1013 | simpa only [transverseProjection, ContinuousLinearMap.comp_apply, |
| 1014 | ContinuousLinearMap.coe_fst', ContinuousLinearMap.coe_snd', one_mul] using |
| 1015 | (norm_fst_le x.2).trans (norm_snd_le x) |
| 1016 | |
| 1017 | theorem native_cutoff_jets : |
| 1018 | NativeJets (signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate |
| 1019 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared)) (fun _ _ => 1) |
| 1020 | (fun l : PulseLabel B N0 => fun x : Native => |
| 1021 | PartitionedCovariance.cutoff ActualPrimary.slots.radius x.2.1 * ActualPrimary.gaussian l.2 x) := by |
| 1022 | have ht := affine_profile_jets |
| 1023 | (signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate |
| 1024 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared)).toDomain |
| 1025 | (PartitionedCovariance.cutoff ActualPrimary.slots.radius) |
| 1026 | (SquaredPartition.gridMask_smooth ActualPrimary.slots.radius 0) |
| 1027 | (fun m => by |
| 1028 | obtain ⟨C, hC, hb⟩ := SquaredPartition.exists_uniform_jet_bound |
| 1029 | (SquaredPartition.gridMask_smooth ActualPrimary.slots.radius 0) |
| 1030 | (SquaredPartition.gridMask_compactSupport ActualPrimary.slots.radius ActualPrimary.slots.radius_pos 0) m |
| 1031 | exact ⟨C, hC.le, hb⟩) |
| 1032 | (fun _ : PulseLabel B N0 => transverseProjection) (fun _ => 0) (K := 1) le_rfl 0 |
| 1033 | (fun _ => by simpa only [pow_zero, mul_one] using transverseProjection_norm) |
| 1034 | have ht' : PolynomialJets |
| 1035 | (signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate |
| 1036 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared)).toDomain |
| 1037 | (fun _ : PulseLabel B N0 => fun x : Native => PartitionedCovariance.cutoff ActualPrimary.slots.radius x.2.1) := by |
| 1038 | simpa only [transverseProjection, ContinuousLinearMap.comp_apply, |
| 1039 | ContinuousLinearMap.coe_fst', ContinuousLinearMap.coe_snd', add_zero] using ht |
| 1040 | exact NativeJets.of_polynomial (ht'.mul ActualPrimaryBounds.gaussian_polynomial) |
| 1041 | |
| 1042 | noncomputable def fullCopyLinear (l : SignedLabel B N0) (n : ℕ) : FullPoint →L[ℝ] Native := |
| 1043 | (ActualPrimaryBounds.copyLinear (l.2, l.1) n).comp ActualPrimaryBounds.nativeOfFull |
| 1044 | |
| 1045 | theorem fullCopyLinear_bound {l : SignedLabel B N0} {n : ℕ} |
| 1046 | (hn : ActualPrimaryBounds.near (l.2, l.1) n) : |
| 1047 | ‖fullCopyLinear l n‖ ≤ ActualPrimaryBounds.copyCost * fullStrip.slow n := by |
| 1048 | calc |
| 1049 | _ ≤ ‖ActualPrimaryBounds.copyLinear (l.2, l.1) n‖ * ‖ActualPrimaryBounds.nativeOfFull‖ := |
| 1050 | ContinuousLinearMap.opNorm_comp_le _ _ |
| 1051 | _ ≤ ‖ActualPrimaryBounds.copyLinear (l.2, l.1) n‖ * 1 := |
| 1052 | mul_le_mul_of_nonneg_left ActualPrimaryBounds.nativeOfFull_norm (norm_nonneg _) |
| 1053 | _ ≤ _ := by simp only [mul_one]; exact ActualPrimaryBounds.copyLinear_bound hn |
| 1054 | |
| 1055 | theorem fullCopy_affine (l : SignedLabel B N0) (n : ℕ) (k : Frequency) (x : FullPoint) : |
| 1056 | ActualPrimaryBounds.fullCopy (l.2, l.1) n k x = fullCopyLinear l n x + |
| 1057 | ActualPrimaryBounds.fullCopy (l.2, l.1) n k 0 := |
| 1058 | ActualPrimaryBounds.copyPoint_affine (l.2, l.1) n k (ActualPrimaryBounds.nativeOfFull x) |
| 1059 | |
| 1060 | theorem cutoff_local_jets : |
| 1061 | PeriodizedWaveBounds.UniformLocalJets fullStrip (fun _ _ _ => 1) 0 |
| 1062 | (phaseCell (B := B) (N0 := N0)) (fun l n k => cutoff l k n) := by |
| 1063 | have hh := native_jets_on_phaseCell (native_cutoff_jets (B := B) (N0 := N0)) |
| 1064 | (fun l _ => (l.2, l.1)) (fun l n _ => fullCopyLinear l n) |
| 1065 | (fun l n k => ActualPrimaryBounds.fullCopy (l.2, l.1) n k 0) |
| 1066 | (fun _ _ _ => 1) (A := 25) (H := ActualPrimaryBounds.copyCost) |
| 1067 | (by norm_num) ActualPrimaryBounds.copyCost_one |
| 1068 | (fun l n k x hx _ => by |
| 1069 | rw [← fullCopy_affine] |
| 1070 | exact ActualPrimaryBounds.copyPoint_radial (l.2, l.1) n k hx) |
| 1071 | (fun l n k x hx hc => by |
| 1072 | rw [← fullCopy_affine] |
| 1073 | exact ActualPrimaryBounds.copyPoint_growth hc.1.1 k hx) |
| 1074 | (fun _ _ _ _ _ hc => fullCopyLinear_bound hc.1.1) |
| 1075 | (fun _ _ _ _ _ _ => le_rfl) |
| 1076 | apply ActualSignedControl.uniform_local_congr hh |
| 1077 | intro l n k x _ hc |
| 1078 | apply Filter.Eventually.of_forall |
| 1079 | intro y |
| 1080 | change PartitionedCovariance.cutoff _ (fullCopyLinear l n y + _).2.1 * |
| 1081 | ActualPrimary.gaussian l.1 (fullCopyLinear l n y + _) = cutoff l k n y |
| 1082 | unfold cutoff |
| 1083 | rw [← fullCopy_affine, nativePoint_eq_fullCopy l n k hc.1.1] |
| 1084 | |
| 1085 | theorem uniform_select_two {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1086 | {w : SignedLabel B N0 → ℕ → FullPoint → ℝ} {α : ℝ} |
| 1087 | {f : Fin 2 → SignedLabel B N0 → ℕ → Frequency → FullPoint → E} |
| 1088 | (hf : ∀ j, PeriodizedWaveBounds.UniformLocalJets fullStrip w α phaseCell (f j)) |
| 1089 | (hw : ∀ l n x, x ∈ fullStrip.domain → 0 ≤ w l n x) : |
| 1090 | PeriodizedWaveBounds.UniformLocalJets fullStrip w α phaseCell |
| 1091 | (fun l => f l.2 l) := by |
| 1092 | refine ⟨fun l => (hf l.2).smooth l, ?_⟩ |
| 1093 | intro m |
| 1094 | obtain ⟨C, hC, p, h0⟩ := (hf 0).bounds m |
| 1095 | obtain ⟨D, hD, q, h1⟩ := (hf 1).bounds m |
| 1096 | refine ⟨C + D, add_nonneg hC hD, p + q, ?_⟩ |
| 1097 | intro l n k x hx hc j hj |
| 1098 | have hs : l.2 = 0 ∨ l.2 = 1 := by omega |
| 1099 | rcases hs with hs | hs |
| 1100 | · rw [hs] |
| 1101 | exact (h0 l n k x hx hc j hj).trans |
| 1102 | ((majorant_mono_degree fullStrip (w l) α hC (Nat.le_add_right p q) n x (hw l n x hx)).trans |
| 1103 | (PeriodizedWaveBounds.majorant_mono_constant fullStrip (w l) α (le_add_of_nonneg_right hD) |
| 1104 | (p + q) n x (hw l n x hx))) |
| 1105 | · rw [hs] |
| 1106 | exact (h1 l n k x hx hc j hj).trans |
| 1107 | ((majorant_mono_degree fullStrip (w l) α hD (Nat.le_add_left q p) n x (hw l n x hx)).trans |
| 1108 | (PeriodizedWaveBounds.majorant_mono_constant fullStrip (w l) α (le_add_of_nonneg_left hC) |
| 1109 | (p + q) n x (hw l n x hx))) |
| 1110 | |
| 1111 | theorem inverse_frequency_uniform : |
| 1112 | UniformPrimaryWeights.UniformBandBound fullStrip (1 / 2) |
| 1113 | (fun i : SignedLabel B N0 × Frequency => fun n => |
| 1114 | 1 / (ActualPrimary.chartCoefficients i.1.2 i.1.1).frequency n) := by |
| 1115 | obtain ⟨C, hC, p, hb⟩ := ActualPrimaryBounds.inverse_carrier_band |
| 1116 | exact ⟨C, hC, p, fun _ n => hb n⟩ |
| 1117 | |
| 1118 | /-- The selected column is estimated uniformly before the physical label, |
| 1119 | band, and copy. Every matrix and unit in this theorem is the actual fixed |
| 1120 | primary construction; only the new signed request varies. -/ |
| 1121 | theorem raw_coefficients_jets {β : ℝ} {request : ℕ → FullPoint → SignedWaveUpdate.Vec2} |
| 1122 | (hR : ∀ q, PeriodizedWaveBounds.UniformLocalJets fullStrip |
| 1123 | (fun _ _ x => fullStrip.zeta x) β (phaseCell (B := B) (N0 := N0)) |
| 1124 | (fun _ n _ x => request n x q)) : |
| 1125 | PeriodizedWaveBounds.UniformLocalJets fullStrip |
| 1126 | (fun (l : SignedLabel B N0) n x => Real.sqrt (fullStrip.zeta x) * envelope l n x) (β + 1 / 2) phaseCell |
| 1127 | (fun l n k => (((parameters l).copyData ActualPrimaryBounds.strip request).raw k).amplitude n) ∧ |
| 1128 | PeriodizedWaveBounds.UniformLocalJets fullStrip |
| 1129 | (fun (l : SignedLabel B N0) n x => Real.sqrt (fullStrip.zeta x) * envelope l n x) (β + 1) phaseCell |
| 1130 | (fun l n k => (((parameters l).copyData ActualPrimaryBounds.strip request).raw k).pressure n) := by |
| 1131 | classical |
| 1132 | cases isEmpty_or_nonempty (SignedLabel B N0) with |
| 1133 | | inl h => |
| 1134 | let := h |
| 1135 | constructor <;> refine ⟨fun l => isEmptyElim l, fun _ => ⟨0, le_rfl, 0, fun l => isEmptyElim l⟩⟩ |
| 1136 | | inr h => |
| 1137 | let := h |
| 1138 | have hw : ∀ l n x, x ∈ fullStrip.domain → 0 ≤ envelope (B := B) (N0 := N0) l n x := |
| 1139 | fun l n x _ => ActualPrimaryBounds.fullEnvelope_nonneg (l.2, l.1) n x |
| 1140 | have hh (j : Fin 2) := SignedCopyBounds.uniform_coefficients_jets |
| 1141 | (a := fun (l : SignedLabel B N0) (_ : Frequency) => ActualPrimary.chartCoefficients l.2 l.1) |
| 1142 | (d := fun (_ : SignedLabel B N0) (_ : Frequency) => directions B) |
| 1143 | (R := fun (_ : SignedLabel B N0) (_ : Frequency) => request) |
| 1144 | (H := matrix) (T := target) (mask := mask) (v := fundamental) |
| 1145 | (Ndot := normalMotion) (A := action) (W := envelope) |
| 1146 | (nativeCovariance B N0) hR mask_local_jets fundamental_local_jets hw |
| 1147 | normal_local_jets normalMotion_local_jets action_local_jets |
| 1148 | (ActualPrimaryBounds.normalFloor_pos B N0) |
| 1149 | (fun l n k x hx hc => (normal_range (l := l) (n := n) (k := k) (x := x) hx hc).1) |
| 1150 | (fun l n k x hx hc => (normal_range (l := l) (n := n) (k := k) (x := x) hx hc).2) |
| 1151 | inverse_frequency_uniform j |
| 1152 | have hweight l n x hx := mul_nonneg (Real.sqrt_nonneg (fullStrip.zeta x)) (hw l n x hx) |
| 1153 | constructor |
| 1154 | · exact uniform_select_two (fun j => (hh j).1) hweight |
| 1155 | · exact uniform_select_two (fun j => (hh j).2) hweight |
| 1156 | |
| 1157 | /-- The actual full request is derived from the current residuals. No |
| 1158 | request-output class or signed-output estimate is an input. -/ |
| 1159 | theorem actual_raw_coefficients_jets (G : SignedMeanGain.Geometry) |
| 1160 | (hs : G.strip = ActualPrimaryBounds.strip) |
| 1161 | (c : CorrectionState.Context Point) (u : CorrectionState.State Point) (α : ℝ) |
| 1162 | (H : MeanStateRegularity.PrimitiveData G.region G.patch.a G.patch.b c u) |
| 1163 | (hfixed : VariableGaugeMean.reconstructState G.gauge c u = u) |
| 1164 | (hθ : MeanClass G.strip α (u.thetaResidual c)) |
| 1165 | (hz : MeanClass G.strip α (u.axialResidual c)) : |
| 1166 | PeriodizedWaveBounds.UniformLocalJets fullStrip |
| 1167 | (fun (l : SignedLabel B N0) n x => Real.sqrt (fullStrip.zeta x) * envelope l n x) (α - 1 / 2) |
| 1168 | (phaseCell (B := B) (N0 := N0)) |
| 1169 | (fun l n k => (((parameters l).copyData ActualPrimaryBounds.strip |
| 1170 | (LocalSignedRequest.fullRequest G.strip G.patch G.coord c u)).raw k).amplitude n) ∧ |
| 1171 | PeriodizedWaveBounds.UniformLocalJets fullStrip |
| 1172 | (fun (l : SignedLabel B N0) n x => Real.sqrt (fullStrip.zeta x) * envelope l n x) α phaseCell |
| 1173 | (fun l n k => (((parameters l).copyData ActualPrimaryBounds.strip |
| 1174 | (LocalSignedRequest.fullRequest G.strip G.patch G.coord c u)).raw k).pressure n) := by |
| 1175 | have hr := fullRequest_jets_from_residuals G c u α H hfixed hθ hz |
| 1176 | (phaseCell (B := B) (N0 := N0)) |
| 1177 | have hr' : ∀ q, PeriodizedWaveBounds.UniformLocalJets fullStrip |
| 1178 | (fun _ _ x => fullStrip.zeta x) (α - 1) (phaseCell (B := B) (N0 := N0)) |
| 1179 | (fun _ n _ x => LocalSignedRequest.fullRequest G.strip G.patch G.coord c u n x q) := by |
| 1180 | simp only [hs] at hr ⊢ |
| 1181 | exact hr |
| 1182 | simpa only [show α - 1 + 1 / 2 = α - 1 / 2 by ring, sub_add_cancel] using |
| 1183 | raw_coefficients_jets hr' |
| 1184 | |
| 1185 | noncomputable def covariance_at_label (l : SignedLabel B N0) : |
| 1186 | SignedCopyBounds.NativeCovariance fullStrip (phaseCell l) (matrix l) (target l) where |
| 1187 | matrix_jets a b := ((nativeCovariance B N0).matrix_jets a b).each l |
| 1188 | target_jets a := ((nativeCovariance B N0).target_jets a).each l |
| 1189 | zeta_pos := (nativeCovariance B N0).zeta_pos |
| 1190 | determinantGap := (nativeCovariance B N0).determinantGap |
| 1191 | entryBound := (nativeCovariance B N0).entryBound |
| 1192 | primaryLower := (nativeCovariance B N0).primaryLower |
| 1193 | gap_pos := (nativeCovariance B N0).gap_pos |
| 1194 | entry_one := (nativeCovariance B N0).entry_one |
| 1195 | lower_pos := (nativeCovariance B N0).lower_pos |
| 1196 | determinant := (nativeCovariance B N0).determinant l |
| 1197 | entries := (nativeCovariance B N0).entries l |
| 1198 | lower := (nativeCovariance B N0).lower l |
| 1199 | |
| 1200 | theorem primary_weight_pos {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 1201 | (hx : x ∈ fullStrip.domain) (hc : x ∈ phaseCell l n k) (j : Fin 2) : |
| 1202 | 0 < SmoothCovariance.weights (matrix l k n x) (target l k n x) j := |
| 1203 | (mul_pos (nativeCovariance B N0).lower_pos (fullStrip_zeta_pos hx)).trans_le |
| 1204 | ((nativeCovariance B N0).lower l n k x hx hc j) |
| 1205 | |
| 1206 | open scoped InnerProductSpace |
| 1207 | open HarmonicCalculus |
| 1208 | |
| 1209 | theorem fundamental_eq_unitPulse (l : SignedLabel B N0) (n : ℕ) (k : Frequency) : |
| 1210 | fundamental l k n = ActualSignedDynamics.unitPulse l.2 l.1 n k := rfl |
| 1211 | |
| 1212 | theorem normalMotion_eq_unitMotion (l : SignedLabel B N0) (n : ℕ) (k : Frequency) : |
| 1213 | normalMotion l k n = ActualSignedDynamics.unitMotion l.2 l.1 n k := by |
| 1214 | funext x |
| 1215 | unfold normalMotion ActualSignedDynamics.unitMotion |
| 1216 | rw [normalScale_eq_dynamics, clockScale_eq_dynamics] |
| 1217 | rfl |
| 1218 | |
| 1219 | theorem action_eq_unitAction (l : SignedLabel B N0) (n : ℕ) (k : Frequency) : |
| 1220 | action l k n = ActualSignedDynamics.unitAction l.2 l.1 n k := by |
| 1221 | funext x |
| 1222 | unfold action ActualSignedDynamics.unitAction |
| 1223 | rw [clockScale_eq_dynamics] |
| 1224 | rfl |
| 1225 | |
| 1226 | theorem phaseCell_slow {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 1227 | (hc : x ∈ phaseCell l n k) : |
| 1228 | (nativePoint l n k x).1 ∈ |
| 1229 | (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.1 := by |
| 1230 | rw [nativePoint_eq_fullCopy l n k hc.1.1] |
| 1231 | exact hc.1.2.1 |
| 1232 | |
| 1233 | theorem phaseCell_slot {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 1234 | (hc : x ∈ phaseCell l n k) : |
| 1235 | (nativePoint l n k x).2 ∈ (ActualPrimary.clockWindow l.1).core := by |
| 1236 | rw [nativePoint_eq_fullCopy l n k hc.1.1] |
| 1237 | exact hc.1.2.2.1 |
| 1238 | |
| 1239 | theorem phaseCell_unitTime {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 1240 | (hc : x ∈ phaseCell l n k) : |
| 1241 | (nativePoint l n k x).2.2 / (ActualPrimary.phases B N0 l.2).L l.1 ∈ Ioo (0 : ℝ) 1 := by |
| 1242 | simpa only [nativeTime, ActualPrimary.pulseCoordinates, ActualPrimary.length_sign] using phaseCell_time hc |
| 1243 | |
| 1244 | theorem actual_unit_ode {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 1245 | (hx : x ∈ fullStrip.domain) (hc : x ∈ phaseCell l n k) : |
| 1246 | along ((directions B).fastField n) (fundamental l k n) x = |
| 1247 | TangentProjection.projectedRhs |
| 1248 | ((ActualPrimary.chartCoefficients l.2 l.1).normal fullStrip (directions B) n x) |
| 1249 | (normalMotion l k n x) (fundamental l k n x) |
| 1250 | (action l k n x (fundamental l k n x)) 0 |
| 1251 | (fullStrip.epsilon n * (ActualPrimary.chartCoefficients l.2 l.1).frequency n ^ 2 * |
| 1252 | ‖(ActualPrimary.chartCoefficients l.2 l.1).normal fullStrip (directions B) n x‖ ^ 2) := by |
| 1253 | rw [fundamental_eq_unitPulse, normalMotion_eq_unitMotion, action_eq_unitAction] |
| 1254 | exact ActualSignedDynamics.unitPulse_ode l.2 l.1 n ActualPrimaryBounds.region k |
| 1255 | (BaseContextAssembly.nativeStrip_radius ActualPrimary.nominal ActualPrimaryBounds.region hx) |
| 1256 | (BaseContextAssembly.nativeStrip_time ActualPrimary.nominal ActualPrimaryBounds.region hx) |
| 1257 | (phaseCell_slow hc) (phaseCell_unitTime hc) (phaseCell_slot hc) |
| 1258 | |
| 1259 | theorem actual_unit_action {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 1260 | (hx : x ∈ fullStrip.domain) : |
| 1261 | CurlClassBounds.complexify (action l k n x (fundamental l k n x)) = |
| 1262 | LinearWaveResidual.shear ((ActualPrimary.chartCoefficients l.2 l.1).radius n) |
| 1263 | ((ActualPrimary.chartCoefficients l.2 l.1).frequencyBase n) |
| 1264 | ((ActualPrimary.chartCoefficients l.2 l.1).axialBase n) |
| 1265 | ((directions B).radialField n) (fun y => CurlClassBounds.complexify (fundamental l k n y)) x := by |
| 1266 | rw [fundamental_eq_unitPulse, action_eq_unitAction] |
| 1267 | exact ActualSignedDynamics.unitPulse_action l.2 l.1 n k |
| 1268 | (BaseContextAssembly.nativeStrip_radius ActualPrimary.nominal ActualPrimaryBounds.region hx) |
| 1269 | (BaseContextAssembly.nativeStrip_time ActualPrimary.nominal ActualPrimaryBounds.region hx) |
| 1270 | |
| 1271 | theorem actual_unit_tangent_germ {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 1272 | (hx : x ∈ fullStrip.domain) (hc : x ∈ phaseCell l n k) : |
| 1273 | (fun y => ⟪(ActualPrimary.chartCoefficients l.2 l.1).normal fullStrip (directions B) n y, |
| 1274 | fundamental l k n y⟫_ℝ) =ᶠ[𝓝 x] fun _ => 0 := by |
| 1275 | rw [fundamental_eq_unitPulse] |
| 1276 | exact ActualSignedDynamics.unitPulse_tangent_germ l.2 l.1 n ActualPrimaryBounds.region k |
| 1277 | (BaseContextAssembly.nativeStrip_radius ActualPrimary.nominal ActualPrimaryBounds.region hx) |
| 1278 | (BaseContextAssembly.nativeStrip_time ActualPrimary.nominal ActualPrimaryBounds.region hx) |
| 1279 | (phaseCell_slow hc) (phaseCell_unitTime hc) (phaseCell_slot hc) |
| 1280 | |
| 1281 | /-- A genuine ambient tangency germ for the actual signed amplitude. |
| 1282 | It remains valid at the closed transverse and dyadic boundaries. -/ |
| 1283 | theorem raw_tangent_germ (request : ℕ → FullPoint → SignedWaveUpdate.Vec2) |
| 1284 | {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 1285 | (hx : x ∈ fullStrip.domain) (hc : x ∈ phaseCell l n k) : |
| 1286 | (fun y => normalDot ((ActualPrimary.chartCoefficients l.2 l.1).normal fullStrip (directions B) n y) |
| 1287 | ((((parameters l).copyData ActualPrimaryBounds.strip request).raw k).amplitude n y)) |
| 1288 | =ᶠ[𝓝 x] fun _ => 0 := by |
| 1289 | filter_upwards [actual_unit_tangent_germ hx hc] with y hy |
| 1290 | change normalDot _ (CurlClassBounds.complexify |
| 1291 | (SignedWaveUpdate.signedScalar fullStrip (matrix l k) (target l k) request (mask l k) l.2 n y • |
| 1292 | fundamental l k n y)) = 0 |
| 1293 | rw [SignedWaveUpdate.normalDot_complexify, inner_smul_right, hy, mul_zero, Complex.ofReal_zero] |
| 1294 | |
| 1295 | /-- The literal signed quotient satisfies its homogeneous principal |
| 1296 | equation, with no global covariance-control premise. -/ |
| 1297 | theorem raw_principal_zero {β : ℝ} {request : ℕ → FullPoint → SignedWaveUpdate.Vec2} |
| 1298 | (hR : ∀ q, PeriodizedWaveBounds.UniformLocalJets fullStrip |
| 1299 | (fun _ _ x => fullStrip.zeta x) β (phaseCell (B := B) (N0 := N0)) |
| 1300 | (fun _ n _ x => request n x q)) |
| 1301 | (hfrozen : SignedWaveUpdate.FrozenAlong (directions B).fast request) |
| 1302 | {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 1303 | (hx : x ∈ fullStrip.domain) (hc : x ∈ phaseCell l n k) : |
| 1304 | (((parameters l).copyData ActualPrimaryBounds.strip request).raw k).principal |
| 1305 | fullStrip (directions B) n x = 0 := by |
| 1306 | exact NativePrincipalEquations.signed_coefficients_principal_at |
| 1307 | (a := fun _ : Frequency => ActualPrimary.chartCoefficients l.2 l.1) |
| 1308 | (dirs := fun _ : Frequency => directions B) |
| 1309 | (R := fun _ : Frequency => request) (v := fundamental l) |
| 1310 | (Ndot := normalMotion l) (A := action l) |
| 1311 | (covariance_at_label l) (fun q => (hR q).each l) (mask_local_jets.each l) |
| 1312 | (fundamental_local_jets.each l) l.2 n k hx hc |
| 1313 | (matrix_frozen l k) (target_frozen l k) hfrozen (mask_frozen l k) |
| 1314 | (Scaling.carrier_frequency_pos (fullStrip.epsilon_pos n)).ne' |
| 1315 | (actual_unit_ode hx hc) (actual_unit_action hx) |
| 1316 | |
| 1317 | theorem fullRequest_principal_zero {β : ℝ} (s : StripData Point) |
| 1318 | (P : SignedStressPrimitive.Patch) (coord : ℝ) |
| 1319 | (c : CorrectionState.Context Point) (u : CorrectionState.State Point) |
| 1320 | (hR : ∀ q, PeriodizedWaveBounds.UniformLocalJets fullStrip |
| 1321 | (fun _ _ x => fullStrip.zeta x) β (phaseCell (B := B) (N0 := N0)) |
| 1322 | (fun _ n _ x => LocalSignedRequest.fullRequest s P coord c u n x q)) |
| 1323 | {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 1324 | (hx : x ∈ fullStrip.domain) (hc : x ∈ phaseCell l n k) : |
| 1325 | (((parameters l).copyData ActualPrimaryBounds.strip |
| 1326 | (LocalSignedRequest.fullRequest s P coord c u)).raw k).principal fullStrip (directions B) n x = 0 := |
| 1327 | raw_principal_zero hR (request_frozen s P coord c u) hx hc |
| 1328 | |
| 1329 | /-- The current residuals provide every request estimate needed by the |
| 1330 | actual homogeneous signed equation. -/ |
| 1331 | theorem actual_principal_zero (G : SignedMeanGain.Geometry) |
| 1332 | (hs : G.strip = ActualPrimaryBounds.strip) |
| 1333 | (c : CorrectionState.Context Point) (u : CorrectionState.State Point) (α : ℝ) |
| 1334 | (H : MeanStateRegularity.PrimitiveData G.region G.patch.a G.patch.b c u) |
| 1335 | (hfixed : VariableGaugeMean.reconstructState G.gauge c u = u) |
| 1336 | (hθ : MeanClass G.strip α (u.thetaResidual c)) |
| 1337 | (hz : MeanClass G.strip α (u.axialResidual c)) |
| 1338 | {l : SignedLabel B N0} {n : ℕ} {k : Frequency} {x : FullPoint} |
| 1339 | (hx : x ∈ fullStrip.domain) (hc : x ∈ phaseCell l n k) : |
| 1340 | (((parameters l).copyData ActualPrimaryBounds.strip |
| 1341 | (LocalSignedRequest.fullRequest G.strip G.patch G.coord c u)).raw k).principal |
| 1342 | fullStrip (directions B) n x = 0 := by |
| 1343 | have hr := fullRequest_jets_from_residuals G c u α H hfixed hθ hz |
| 1344 | (phaseCell (B := B) (N0 := N0)) |
| 1345 | have hr' : ∀ q, PeriodizedWaveBounds.UniformLocalJets fullStrip |
| 1346 | (fun _ _ x => fullStrip.zeta x) (α - 1) (phaseCell (B := B) (N0 := N0)) |
| 1347 | (fun _ n _ x => LocalSignedRequest.fullRequest G.strip G.patch G.coord c u n x q) := by |
| 1348 | simp only [hs] at hr ⊢ |
| 1349 | exact hr |
| 1350 | exact fullRequest_principal_zero G.strip G.patch G.coord c u hr' hx hc |
| 1351 | |
| 1352 | end NavierStokes.ActualSignedStageControls |