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.LocalizedWaveBounds |
| 3 | import NavierStokes.UniformBlockBounds |
| 4 | import NavierStokes.ActualPhaseDefect |
| 5 | |
| 6 | /-! |
| 7 | # Uniform estimates for the chosen primary waves |
| 8 | |
| 9 | All fields below use `ActualPrimary.choice`. |
| 10 | The estimates retain the moving edge weight and the actual pulse envelope. |
| 11 | Constants precede the orientation, spatial label, band, and lattice copy. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace NavierStokes.ActualPrimaryBounds |
| 17 | |
| 18 | open Set Function Filter WeightedClasses PhaseJetBounds PrimaryCopyBounds |
| 19 | open CorrectionInitialization |
| 20 | open scoped ContDiff Topology BigOperators |
| 21 | |
| 22 | |
| 23 | abbrev Native := ActualSignedGeometry.Native |
| 24 | abbrev Point := LocalSignedRequest.Point |
| 25 | |
| 26 | noncomputable def region : LocalSignedRequest.SlowRegion (2 * ActualPrimary.h) := |
| 27 | ActualSignedGeometry.standardSlowRegion ActualPrimary.outgoing.data.h_pos ActualPrimary.outgoing.data.h_lt_half |
| 28 | |
| 29 | noncomputable def strip : StripData Point := BaseContextAssembly.nativeStrip ActualPrimary.nominal region |
| 30 | |
| 31 | noncomputable def nativeStrip : StripData Native := ActualSignedGeometry.viewStrip ActualPrimary.nominal region id |
| 32 | |
| 33 | abbrev SignedLabel (B N0 : ℕ) := Fin 2 × ActualPrimary.Label B N0 |
| 34 | |
| 35 | section NativeBounds |
| 36 | |
| 37 | variable (B N0 : ℕ) |
| 38 | |
| 39 | /-- The outer slot localization is differentiated before periodization. -/ |
| 40 | theorem outer_velocity_jets (j : Fin 2) : |
| 41 | NativeJets (NativeBandExtension.radialDomain ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared) |
| 42 | (NativeBandExtension.velocityWeight ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos j) |
| 43 | (fun L => ActualPrimary.outerRawVelocity j L) := by |
| 44 | have hb := NativeBandExtension.bandVelocity_radial_jets ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared |
| 45 | ActualPrimary.slots.radius_pos ActualPrimary.radialVector ActualPrimary.temporalVector (ActualPrimary.closedMargins B N0) j |
| 46 | (((ActualPrimary.preOuterVelocity_jets B N0 j).polynomial_smul |
| 47 | (NativeBandExtension.outerCutoff_native_polynomial ActualPrimary.certificate ActualPrimary.modulation |
| 48 | (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos)).congr |
| 49 | (fun L x _ => (NativeBandExtension.bandVelocity_eq_outer ActualPrimary.certificate ActualPrimary.modulation |
| 50 | (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos ActualPrimary.radialVector ActualPrimary.temporalVector j L x).symm)) |
| 51 | exact hb.congr (fun L x _ => congrFun (ActualPrimary.bandVelocity_eq j L) x) |
| 52 | |
| 53 | theorem outer_pressure_jets (j : Fin 2) : |
| 54 | NativeJets (NativeBandExtension.radialDomain ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared) |
| 55 | (NativeBandExtension.pressureWeight ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos j) |
| 56 | (fun L => ActualPrimary.outerRawPressure j L) := by |
| 57 | have hb := NativeBandExtension.bandPressure_radial_jets ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared |
| 58 | ActualPrimary.slots.radius_pos ActualPrimary.radialVector ActualPrimary.temporalVector (ActualPrimary.closedMargins B N0) j |
| 59 | (((ActualPrimary.preOuterPressure_jets B N0 j).polynomial_smul |
| 60 | (NativeBandExtension.outerCutoff_native_polynomial ActualPrimary.certificate ActualPrimary.modulation |
| 61 | (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos)).congr |
| 62 | (fun L x _ => (NativeBandExtension.bandPressure_eq_outer ActualPrimary.certificate ActualPrimary.modulation |
| 63 | (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos ActualPrimary.radialVector ActualPrimary.temporalVector j L x).symm)) |
| 64 | exact hb.congr (fun L x _ => congrFun (ActualPrimary.bandPressure_eq j L) x) |
| 65 | |
| 66 | /-- The annular attachment is equal to the native field on the entire |
| 67 | open radial domain, including flat dyadic and transverse boundaries. -/ |
| 68 | theorem attached_velocity_jets (j : Fin 2) : |
| 69 | NativeJets (NativeBandExtension.radialDomain ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared) |
| 70 | (NativeBandExtension.velocityWeight ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos j) |
| 71 | (fun L => ActualPrimary.attachedRawVelocity j L) := by |
| 72 | apply (outer_velocity_jets B N0 j).congr |
| 73 | intro L x hx |
| 74 | exact (WaveEdgeExtension.nativeExtension_inside ActualPrimary.nominal (ActualPrimary.outerRawVelocity j L) hx.2).symm |
| 75 | |
| 76 | theorem attached_pressure_jets (j : Fin 2) : |
| 77 | NativeJets (NativeBandExtension.radialDomain ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared) |
| 78 | (NativeBandExtension.pressureWeight ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos j) |
| 79 | (fun L => ActualPrimary.attachedRawPressure j L) := by |
| 80 | apply (outer_pressure_jets B N0 j).congr |
| 81 | intro L x hx |
| 82 | exact (WaveEdgeExtension.nativeExtension_inside ActualPrimary.nominal (ActualPrimary.outerRawPressure j L) hx.2).symm |
| 83 | |
| 84 | /-- Both signs share the same finite-jet constants. -/ |
| 85 | theorem attached_velocity_signed_jets : |
| 86 | NativeJets (signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared)) |
| 87 | (fun l => NativeBandExtension.velocityWeight ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos l.1 l.2) |
| 88 | (fun l => ActualPrimary.attachedRawVelocity l.1 l.2) := |
| 89 | NativeJets.both_signs (attached_velocity_jets B N0) |
| 90 | |
| 91 | theorem attached_pressure_signed_jets : |
| 92 | NativeJets (signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared)) |
| 93 | (fun l => NativeBandExtension.pressureWeight ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos l.1 l.2) |
| 94 | (fun l => ActualPrimary.attachedRawPressure l.1 l.2) := |
| 95 | NativeJets.both_signs (attached_pressure_jets B N0) |
| 96 | |
| 97 | end NativeBounds |
| 98 | |
| 99 | section CopyGeometry |
| 100 | |
| 101 | variable {B N0 : ℕ} |
| 102 | |
| 103 | noncomputable def spatialLabel (l : SignedLabel B N0) : SlotColoring.Label := |
| 104 | PartitionedCovariance.signedLabel (PrimaryGeometryAssembly.label ActualPrimary.nominal l.2) l.1 |
| 105 | |
| 106 | theorem label_large (l : SignedLabel B N0) : 4 ≤ (spatialLabel l).1 := |
| 107 | ((ActualPrimary.choice B N0).prepared.large _ l.2.property).four_le |
| 108 | |
| 109 | noncomputable def near (l : SignedLabel B N0) (n : ℕ) : Prop := |
| 110 | 1 ≤ n ∧ BaseChartJets.cellBand l.2 ∈ CommonWindow.levels n |
| 111 | |
| 112 | theorem near_distance {l : SignedLabel B N0} {n : ℕ} (hn : near l n) : |
| 113 | n ≤ (spatialLabel l).1 + 4 ∧ (spatialLabel l).1 ≤ n + 4 := |
| 114 | CommonWindow.distance hn.2 |
| 115 | |
| 116 | theorem geometry_eq (l : SignedLabel B N0) (n : ℕ) : |
| 117 | ActualPrimary.chartGeometry n l.1 l.2 = |
| 118 | ActualSignedGeometry.slotGeometry ActualPrimary.slots ActualPrimary.vectors_det (spatialLabel l) |
| 119 | (ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand l.2) - CommonWindow.index ActualPrimary.h n) := by |
| 120 | rfl |
| 121 | |
| 122 | theorem clock_eq (l : SignedLabel B N0) : |
| 123 | ActualPrimary.clockWindow l.2 = ActualSignedGeometry.clockWindow ActualPrimary.slots |
| 124 | (BaseChartJets.cellBand l.2) := rfl |
| 125 | |
| 126 | noncomputable def copyPoint (l : SignedLabel B N0) (n : ℕ) (k : TorusInverse.Frequency) : Native → Native := |
| 127 | ActualSignedGeometry.copyPoint ActualPrimary.slots ActualPrimary.vectors_det (spatialLabel l) |
| 128 | n (CommonWindow.index ActualPrimary.h n) k |
| 129 | |
| 130 | noncomputable def copyLinear (l : SignedLabel B N0) (n : ℕ) : Native →L[ℝ] Native := |
| 131 | ActualSignedGeometry.copyLinear ActualPrimary.slots ActualPrimary.vectors_det (spatialLabel l) |
| 132 | n (CommonWindow.index ActualPrimary.h n) |
| 133 | |
| 134 | theorem copyPoint_affine (l : SignedLabel B N0) (n : ℕ) (k : TorusInverse.Frequency) (x : Native) : |
| 135 | copyPoint l n k x = copyLinear l n x + copyPoint l n k 0 := |
| 136 | ActualSignedGeometry.copyPoint_affine _ _ _ _ _ _ _ |
| 137 | |
| 138 | theorem copyPoint_smooth (l : SignedLabel B N0) (n : ℕ) (k : TorusInverse.Frequency) : |
| 139 | ContDiff ℝ ∞ (copyPoint l n k) := by |
| 140 | have he : copyPoint l n k = fun x => copyLinear l n x + copyPoint l n k 0 := |
| 141 | funext (copyPoint_affine l n k) |
| 142 | rw [he] |
| 143 | exact (copyLinear l n).contDiff.add contDiff_const |
| 144 | |
| 145 | noncomputable def copyCost : ℝ := |
| 146 | ActualSignedGeometry.slowChangeCost ActualPrimary.h + |
| 147 | 25 * CommonCoverClass.bandArgumentCost |
| 148 | (TorusAverages.slotChart ActualPrimary.radialVector ActualPrimary.temporalVector ActualPrimary.vectors_det) |
| 149 | (CommonWindow.gap ActualPrimary.h + SlotColoring.nativeGap ActualPrimary.h) |
| 150 | |
| 151 | theorem copyCost_one : 1 ≤ copyCost := by |
| 152 | have ha := ActualSignedGeometry.slowChangeCost_one ActualPrimary.h |
| 153 | have hb := CommonCoverClass.bandArgumentCost_one_le |
| 154 | (TorusAverages.slotChart ActualPrimary.radialVector ActualPrimary.temporalVector ActualPrimary.vectors_det) |
| 155 | (CommonWindow.gap ActualPrimary.h + SlotColoring.nativeGap ActualPrimary.h) |
| 156 | unfold copyCost |
| 157 | linarith |
| 158 | |
| 159 | theorem copyLinear_bound {l : SignedLabel B N0} {n : ℕ} (hn : near l n) : |
| 160 | ‖copyLinear l n‖ ≤ copyCost * nativeStrip.slow n := |
| 161 | ActualSignedGeometry.norm_copyLinear_le ActualPrimary.slots ActualPrimary.vectors_det |
| 162 | ActualPrimary.outgoing.data.h_pos.le |
| 163 | (CommonWindow.indexBounds ActualPrimary.h ActualPrimary.outgoing.data.h_pos.le) |
| 164 | hn.1 (label_large l) (near_distance hn).1 (near_distance hn).2 |
| 165 | |
| 166 | noncomputable def copyCells (l : SignedLabel B N0) : |
| 167 | PeriodizedWaveBounds.Cells Native TorusInverse.Frequency := |
| 168 | PeriodizedWaveBounds.nativeCells (fun n => ActualPrimary.chartGeometry n l.1 l.2) |
| 169 | (fun _ => (ActualPrimary.clockWindow l.2).core) |
| 170 | (fun _ => (ActualPrimary.clockWindow l.2).core_compact) |
| 171 | (fun n => by |
| 172 | rw [geometry_eq, clock_eq] |
| 173 | exact (ActualSignedGeometry.clockWindow_injective ActualPrimary.slots ActualPrimary.vectors_det |
| 174 | ActualPrimary.outgoing.data.h_pos.le (label_large l) _).mono |
| 175 | (Set.image_mono (ActualSignedGeometry.clockWindow ActualPrimary.slots _).core_subset_outer)) |
| 176 | |
| 177 | noncomputable def pulseEnvelope (l : SignedLabel B N0) : ℝ → ℝ := |
| 178 | PrimaryPulseBounds.referenceP ((ActualPrimary.phases B N0 l.1).lam l.2) |
| 179 | ((ActualPrimary.phases B N0 l.1).u l.2) ((ActualPrimary.phases B N0 l.1).L l.2) |
| 180 | |
| 181 | noncomputable def envelope (l : SignedLabel B N0) (n : ℕ) (x : Native) : ℝ := |
| 182 | WaveEnvelopeTransport.copyEnvelope (ActualPrimary.chartGeometry n l.1 l.2) ActualPrimary.slots.radius |
| 183 | ((ActualPrimary.phases B N0 l.1).L l.2) (pulseEnvelope l) x.2 |
| 184 | |
| 185 | theorem envelope_nonneg (l : SignedLabel B N0) (n : ℕ) (x : Native) : 0 ≤ envelope l n x := |
| 186 | WaveEnvelopeTransport.copyEnvelope_nonneg _ _ _ |
| 187 | (fun t => (PrimaryPulseBounds.referenceP_pos _ _ _ t).le) _ |
| 188 | |
| 189 | theorem envelope_copy (l : SignedLabel B N0) (n : ℕ) (k : TorusInverse.Frequency) |
| 190 | {x : Native} (hx : x ∈ (copyCells l).carrier n k) : |
| 191 | envelope l n x = pulseEnvelope l (copyPoint l n k x).2.2 := by |
| 192 | have hs : WaveEnvelopeTransport.Separated (ActualPrimary.chartGeometry n l.1 l.2) |
| 193 | ActualPrimary.slots.radius ((ActualPrimary.phases B N0 l.1).L l.2) := by |
| 194 | rw [ActualPrimary.length_sign l.1 l.2, geometry_eq] |
| 195 | exact ActualSignedGeometry.slotGeometry_separated ActualPrimary.slots ActualPrimary.vectors_det |
| 196 | ActualPrimary.outgoing.data.h_pos.le (label_large l) _ |
| 197 | have hc : (ActualPrimary.chartGeometry n l.1 l.2).coordinates k x.2 ∈ |
| 198 | WaveEnvelopeTransport.rectangle ActualPrimary.slots.radius ((ActualPrimary.phases B N0 l.1).L l.2) := by |
| 199 | rw [ActualPrimary.length_sign l.1 l.2] |
| 200 | exact hx |
| 201 | have he := WaveEnvelopeTransport.copyEnvelope_eq_copy hs (pulseEnvelope l) hc |
| 202 | simp only [envelope, copyPoint, ActualSignedGeometry.copyPoint] at he ⊢ |
| 203 | exact he |
| 204 | |
| 205 | end CopyGeometry |
| 206 | |
| 207 | section NativeCopyEstimates |
| 208 | |
| 209 | variable {B N0 : ℕ} |
| 210 | |
| 211 | private theorem nat_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := |
| 212 | ENat.natCast_le_of_coe_top_le_withTop le_rfl n |
| 213 | |
| 214 | theorem copyPoint_radial (l : SignedLabel B N0) (n : ℕ) (k : TorusInverse.Frequency) |
| 215 | {x : Native} (hx : x ∈ nativeStrip.domain) : |
| 216 | copyPoint l n k x ∈ NativeBandExtension.radialInterior ActualPrimary.nominal := by |
| 217 | have hm := (ActualSignedGeometry.viewStrip_mem ActualPrimary.nominal region id x).mp hx |
| 218 | have ht := BaseContextAssembly.nativeStrip_time ActualPrimary.nominal region hm |
| 219 | have hr := BaseContextAssembly.nativeStrip_radius ActualPrimary.nominal region hm |
| 220 | refine ⟨ActualSignedGeometry.slowChange_time (ChartScales.Q_pos _) (ChartScales.Q_pos _) ht, ?_⟩ |
| 221 | change PrimaryTargetBounds.profileRadius ActualPrimary.h |
| 222 | (ActualSignedGeometry.slowChange ActualPrimary.h (ChartScales.Q n) |
| 223 | (ChartScales.Q (BaseChartJets.cellBand l.2)) x.1) ∈ |
| 224 | Ioo (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) (PrimaryTargetBounds.rightRadius ActualPrimary.nominal) |
| 225 | rw [ActualSignedGeometry.profileRadius_slowChange (ChartScales.Q_pos _) (ChartScales.Q_pos _) ht hr] |
| 226 | exact ((BaseContextAssembly.nativeStrip_mem ActualPrimary.nominal region _).mp hm).2 |
| 227 | |
| 228 | theorem copyPoint_weight (l : SignedLabel B N0) (n : ℕ) (k : TorusInverse.Frequency) |
| 229 | {x : Native} (hx : x ∈ nativeStrip.domain) : |
| 230 | PrimaryTargetBounds.movingWeight ActualPrimary.nominal (copyPoint l n k x).1 = nativeStrip.zeta x := by |
| 231 | have hm := (ActualSignedGeometry.viewStrip_mem ActualPrimary.nominal region id x).mp hx |
| 232 | have ht := BaseContextAssembly.nativeStrip_time ActualPrimary.nominal region hm |
| 233 | have hr := BaseContextAssembly.nativeStrip_radius ActualPrimary.nominal region hm |
| 234 | change PrimaryTargetBounds.movingWeight ActualPrimary.nominal |
| 235 | (ActualSignedGeometry.slowChange ActualPrimary.h (ChartScales.Q n) |
| 236 | (ChartScales.Q (BaseChartJets.cellBand l.2)) x.1) = _ |
| 237 | rw [ActualSignedGeometry.movingWeight_slowChange ActualPrimary.nominal |
| 238 | (ChartScales.Q_pos _) (ChartScales.Q_pos _) ht hr] |
| 239 | exact (ActualSignedGeometry.viewStrip_zeta ActualPrimary.nominal region id x).symm |
| 240 | |
| 241 | theorem copyPoint_growth {l : SignedLabel B N0} {n : ℕ} (hn : near l n) |
| 242 | (k : TorusInverse.Frequency) {x : Native} (hx : x ∈ nativeStrip.domain) : |
| 243 | (NativeBandExtension.radialDomain ActualPrimary.certificate ActualPrimary.modulation |
| 244 | (ActualPrimary.choice B N0).prepared).growth l.2 (copyPoint l n k x) ≤ |
| 245 | 25 * nativeStrip.growth n x := by |
| 246 | have hm := (ActualSignedGeometry.viewStrip_mem ActualPrimary.nominal region id x).mp hx |
| 247 | have ht := BaseContextAssembly.nativeStrip_time ActualPrimary.nominal region hm |
| 248 | have hr := BaseContextAssembly.nativeStrip_radius ActualPrimary.nominal region hm |
| 249 | have hρ : WaveEdgeExtension.nativeRadius ActualPrimary.h (copyPoint l n k x) = |
| 250 | PrimaryTargetBounds.profileRadius ActualPrimary.h x.1 := |
| 251 | ActualSignedGeometry.profileRadius_slowChange (ChartScales.Q_pos _) (ChartScales.Q_pos _) ht hr |
| 252 | rw [NativeBandExtension.radialDomain_growth] |
| 253 | have hg : WaveEdgeExtension.edgeGrowth (WaveEdgeExtension.nativeRadius ActualPrimary.h) |
| 254 | (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) (PrimaryTargetBounds.rightRadius ActualPrimary.nominal) |
| 255 | (copyPoint l n k x) = max 1 (nativeStrip.delta x)⁻¹ := by |
| 256 | unfold WaveEdgeExtension.edgeGrowth WaveEdgeExtension.logCoordinate |
| 257 | rw [hρ] |
| 258 | exact congrArg (fun d : ℝ => max 1 d⁻¹) |
| 259 | (ActualSignedGeometry.viewStrip_delta ActualPrimary.nominal region id x).symm |
| 260 | rw [hg] |
| 261 | have hS := PhysicalGraphBounds.S_ge_one hn.1 |
| 262 | have hs : BaseContextAssembly.slowScale (BaseChartJets.cellBand l.2) ≤ |
| 263 | 25 * BaseContextAssembly.slowScale n := by |
| 264 | unfold BaseContextAssembly.slowScale |
| 265 | rw [max_eq_right hS] |
| 266 | exact max_le (by linarith) (ActualSignedGeometry.S_window_le hn.1 (near_distance hn).2) |
| 267 | exact (mul_le_mul_of_nonneg_right hs (zero_le_one.trans (le_max_left 1 _))).trans_eq (by |
| 268 | change (25 * BaseContextAssembly.slowScale n) * max 1 (nativeStrip.delta x)⁻¹ = |
| 269 | 25 * (BaseContextAssembly.slowScale n * max 1 (nativeStrip.delta x)⁻¹) |
| 270 | ring) |
| 271 | |
| 272 | theorem epsilon_power_window {n m : ℕ} (hnm : n ≤ m + 4) (hmn : m ≤ n + 4) (α : ℝ) : |
| 273 | ChartScales.epsilon ActualPrimary.h m ^ α ≤ |
| 274 | ActualSignedGeometry.powerBound (-(ActualPrimary.h * α)) * |
| 275 | ChartScales.epsilon ActualPrimary.h n ^ α := by |
| 276 | have he : ChartScales.epsilon ActualPrimary.h m ^ α / |
| 277 | ChartScales.epsilon ActualPrimary.h n ^ α = |
| 278 | PhysicalParticularWave.ratioPower (ChartScales.Q n) (ChartScales.Q m) (-(ActualPrimary.h * α)) := by |
| 279 | rw [ChartScales.epsilon, ChartScales.epsilon, |
| 280 | ← Real.rpow_mul (ChartScales.Q_pos m).le, ← Real.rpow_mul (ChartScales.Q_pos n).le] |
| 281 | simpa only [neg_neg] using (PhysicalParticularWave.ratioPower_neg_div |
| 282 | (ChartScales.Q_pos n) (ChartScales.Q_pos m) (-(ActualPrimary.h * α))) |
| 283 | apply (div_le_iff₀ (Real.rpow_pos_of_pos (ChartScales.epsilon_pos _ _) α)).mp |
| 284 | rw [he] |
| 285 | exact ActualSignedGeometry.dyadic_ratioPower_le hnm hmn _ |
| 286 | |
| 287 | noncomputable def nativeWeight (α : ℝ) (l : SignedLabel B N0) (x : Native) : ℝ := |
| 288 | ChartScales.epsilon ActualPrimary.h (BaseChartJets.cellBand l.2) ^ α * |
| 289 | Real.sqrt (PrimaryTargetBounds.movingWeight ActualPrimary.nominal x.1) * pulseEnvelope l x.2.2 |
| 290 | |
| 291 | noncomputable def coefficientScale (a : ℝ) (l : SignedLabel B N0) (n : ℕ) : ℝ := |
| 292 | PhysicalParticularWave.ratioPower (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) a |
| 293 | |
| 294 | theorem coefficientScale_pos (a : ℝ) (l : SignedLabel B N0) (n : ℕ) : |
| 295 | 0 < coefficientScale a l n := PhysicalParticularWave.ratioPower_pos (ChartScales.Q_pos _) (ChartScales.Q_pos _) _ |
| 296 | |
| 297 | noncomputable def copied {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 298 | (a : ℝ) (f : SignedLabel B N0 → Native → E) (l : SignedLabel B N0) (n : ℕ) |
| 299 | (k : TorusInverse.Frequency) (x : Native) : E := by |
| 300 | classical |
| 301 | exact if near l n then coefficientScale a l n • f l (copyPoint l n k x) else 0 |
| 302 | |
| 303 | /-- Active-window comparisons are required only where the copy is |
| 304 | present. No comparison is imposed between remote band/label pairs. -/ |
| 305 | theorem copied_uniformLocalJets {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 306 | {a α : ℝ} {f : SignedLabel B N0 → Native → E} |
| 307 | (hf : NativeJets (signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate |
| 308 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared)) (nativeWeight α) f) : |
| 309 | PeriodizedWaveBounds.UniformLocalJets nativeStrip |
| 310 | (fun l n x => Real.sqrt (nativeStrip.zeta x) * envelope l n x) α |
| 311 | (fun l => (copyCells l).carrier) (copied a f) := by |
| 312 | let V := signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate |
| 313 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared) |
| 314 | have hs (l : SignedLabel B N0) (n : ℕ) (k : TorusInverse.Frequency) (x : Native) |
| 315 | (hx : x ∈ nativeStrip.domain) : ContDiffAt ℝ ∞ (fun y => f l (copyPoint l n k y)) x := |
| 316 | ((hf.smooth l).contDiffAt ((V.isOpen l).mem_nhds (copyPoint_radial l n k hx))).comp x |
| 317 | (copyPoint_smooth l n k).contDiffAt |
| 318 | refine ⟨?_, ?_⟩ |
| 319 | · intro l n k x hx hk |
| 320 | by_cases hn : near l n |
| 321 | · rw [show copied a f l n k = fun y => coefficientScale a l n • f l (copyPoint l n k y) from |
| 322 | funext (fun y => ite_eq_left hn)] |
| 323 | exact (hs l n k x hx).const_smul (coefficientScale a l n) |
| 324 | · rw [show copied a f l n k = fun _ => 0 from funext (fun _ => ite_eq_right hn)] |
| 325 | exact contDiffAt_const |
| 326 | · intro m |
| 327 | obtain ⟨C, hC, p, hb⟩ := hf.bound m |
| 328 | let A := ActualSignedGeometry.powerBound a * ActualSignedGeometry.powerBound (-(ActualPrimary.h * α)) |
| 329 | have hcost := copyCost_one |
| 330 | have hA : 1 ≤ A := one_le_mul_of_one_le_of_one_le |
| 331 | (ActualSignedGeometry.powerBound_one _) (ActualSignedGeometry.powerBound_one _) |
| 332 | refine ⟨C * 25 ^ p * copyCost ^ m * A, by positivity, p + m, ?_⟩ |
| 333 | intro l n k x hx hk j hj |
| 334 | by_cases hn : near l n |
| 335 | · have ht := copyPoint_radial l n k hx |
| 336 | have hG := nativeStrip.one_le_growth n x |
| 337 | have hW : 0 ≤ Real.sqrt (nativeStrip.zeta x) * envelope l n x := |
| 338 | mul_nonneg (Real.sqrt_nonneg _) (envelope_nonneg l n x) |
| 339 | have hcost := copyCost_one |
| 340 | have hS := nativeStrip.one_le_slow n |
| 341 | have hB : 1 ≤ copyCost * nativeStrip.slow n := one_le_mul_of_one_le_of_one_le hcost hS |
| 342 | have hlin : ‖copyLinear l n‖ ^ j ≤ copyCost ^ m * nativeStrip.growth n x ^ m := by |
| 343 | calc |
| 344 | _ ≤ (copyCost * nativeStrip.slow n) ^ m := |
| 345 | (pow_le_pow_left₀ (norm_nonneg _) (copyLinear_bound hn) j).trans (pow_le_pow_right₀ hB hj) |
| 346 | _ ≤ (copyCost * nativeStrip.growth n x) ^ m := by |
| 347 | gcongr |
| 348 | exact nativeStrip.slow_le_growth n x |
| 349 | _ = _ := mul_pow _ _ _ |
| 350 | have hu : ‖iteratedFDeriv ℝ j (fun y => f l (copyPoint l n k y)) x‖ ≤ |
| 351 | ‖iteratedFDeriv ℝ j (f l) (copyPoint l n k x)‖ * ‖copyLinear l n‖ ^ j := by |
| 352 | simpa only [← copyPoint_affine] using |
| 353 | norm_jet_comp_affine (V.isOpen l) (hf.smooth l) (copyLinear l n) (copyPoint l n k 0) |
| 354 | (by simp only [← copyPoint_affine]; exact ht) j |
| 355 | have hscale : coefficientScale a l n * ChartScales.epsilon ActualPrimary.h (BaseChartJets.cellBand l.2) ^ α ≤ |
| 356 | A * nativeStrip.epsilon n ^ α := by |
| 357 | calc |
| 358 | _ ≤ ActualSignedGeometry.powerBound a * |
| 359 | (ActualSignedGeometry.powerBound (-(ActualPrimary.h * α)) * |
| 360 | ChartScales.epsilon ActualPrimary.h n ^ α) := |
| 361 | mul_le_mul (ActualSignedGeometry.dyadic_ratioPower_le (near_distance hn).1 (near_distance hn).2 a) |
| 362 | (epsilon_power_window (near_distance hn).1 (near_distance hn).2 α) |
| 363 | (Real.rpow_pos_of_pos (ChartScales.epsilon_pos _ _) _).le |
| 364 | (zero_le_one.trans (ActualSignedGeometry.powerBound_one _)) |
| 365 | _ = _ := by |
| 366 | change ActualSignedGeometry.powerBound a * |
| 367 | (ActualSignedGeometry.powerBound (-(ActualPrimary.h * α)) * ChartScales.epsilon ActualPrimary.h n ^ α) = |
| 368 | A * ChartScales.epsilon ActualPrimary.h n ^ α |
| 369 | dsimp [A] |
| 370 | ring |
| 371 | rw [show copied a f l n k = fun y => coefficientScale a l n • f l (copyPoint l n k y) from |
| 372 | funext (fun y => ite_eq_left hn)] |
| 373 | rw [iteratedFDeriv_const_smul_apply' ((hs l n k x hx).of_le (nat_le_infty j)), |
| 374 | norm_smul (coefficientScale a l n) (iteratedFDeriv ℝ j (fun y => f l (copyPoint l n k y)) x), |
| 375 | Real.norm_of_nonneg (coefficientScale_pos a l n).le] |
| 376 | have hnative : nativeWeight α l (copyPoint l n k x) = |
| 377 | ChartScales.epsilon ActualPrimary.h (BaseChartJets.cellBand l.2) ^ α * |
| 378 | (Real.sqrt (nativeStrip.zeta x) * envelope l n x) := by |
| 379 | rw [nativeWeight, copyPoint_weight l n k hx, envelope_copy l n k hk] |
| 380 | ring |
| 381 | calc |
| 382 | _ ≤ coefficientScale a l n * |
| 383 | ((C * (25 * nativeStrip.growth n x) ^ p * nativeWeight α l (copyPoint l n k x)) * |
| 384 | (copyCost ^ m * nativeStrip.growth n x ^ m)) := by |
| 385 | apply mul_le_mul_of_nonneg_left _ (coefficientScale_pos a l n).le |
| 386 | apply hu.trans |
| 387 | have hfb := (hb l _ ht j hj).trans (mul_le_mul_of_nonneg_right |
| 388 | (mul_le_mul_of_nonneg_left (pow_le_pow_left₀ |
| 389 | (zero_le_one.trans (V.one_le_growth l ht)) (copyPoint_growth hn k hx) p) |
| 390 | (zero_le_one.trans hC)) (hf.nonneg l _ ht)) |
| 391 | exact mul_le_mul hfb hlin (pow_nonneg (norm_nonneg _) _) |
| 392 | ((norm_nonneg _).trans hfb) |
| 393 | _ = (C * 25 ^ p * copyCost ^ m) * nativeStrip.growth n x ^ (p + m) * |
| 394 | (coefficientScale a l n * ChartScales.epsilon ActualPrimary.h (BaseChartJets.cellBand l.2) ^ α) * |
| 395 | (Real.sqrt (nativeStrip.zeta x) * envelope l n x) := by |
| 396 | rw [hnative, mul_pow, pow_add] |
| 397 | ring |
| 398 | _ ≤ (C * 25 ^ p * copyCost ^ m) * nativeStrip.growth n x ^ (p + m) * |
| 399 | (A * nativeStrip.epsilon n ^ α) * |
| 400 | (Real.sqrt (nativeStrip.zeta x) * envelope l n x) := by gcongr |
| 401 | _ = majorant nativeStrip (fun n x => Real.sqrt (nativeStrip.zeta x) * envelope l n x) α |
| 402 | (C * 25 ^ p * copyCost ^ m * A) (p + m) n x := by unfold majorant; ring |
| 403 | · rw [show copied a f l n k = fun _ => 0 from funext (fun _ => ite_eq_right hn), iteratedFDeriv_fun_zero] |
| 404 | have hc : 0 ≤ C * 25 ^ p * copyCost ^ m * A := by positivity |
| 405 | simpa only [Pi.zero_apply, norm_zero] using majorant_nonneg nativeStrip |
| 406 | (fun n x => Real.sqrt (nativeStrip.zeta x) * envelope l n x) α hc |
| 407 | (p + m) n x (mul_nonneg (Real.sqrt_nonneg _) (envelope_nonneg l n x)) |
| 408 | |
| 409 | end NativeCopyEstimates |
| 410 | |
| 411 | section ActualCopySums |
| 412 | |
| 413 | variable {B N0 : ℕ} |
| 414 | |
| 415 | theorem velocityWeight_eq (l : SignedLabel B N0) (x : Native) : |
| 416 | NativeBandExtension.velocityWeight ActualPrimary.certificate ActualPrimary.modulation |
| 417 | (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos l.1 l.2 x = nativeWeight (1 / 2) l x := by |
| 418 | change Real.sqrt (ChartScales.epsilon ActualPrimary.h (BaseChartJets.cellBand l.2)) * |
| 419 | Real.sqrt (PrimaryTargetBounds.movingWeight ActualPrimary.nominal x.1) * |
| 420 | PrimaryPulseBounds.referenceP ((ActualPrimary.phases B N0 l.1).lam l.2) |
| 421 | ((ActualPrimary.phases B N0 l.1).u l.2) ((ActualPrimary.phases B N0 l.1).L l.2) |
| 422 | (((ActualPrimary.phases B N0 l.1).L l.2) * (x.2.2 / ((ActualPrimary.phases B N0 0).L l.2))) = _ |
| 423 | rw [ActualPrimary.length_sign l.1 l.2, |
| 424 | mul_div_cancel₀ _ ((ActualPrimary.phases B N0 0).L_pos l.2).ne'] |
| 425 | simp only [nativeWeight, pulseEnvelope, ← Real.sqrt_eq_rpow, ActualPrimary.length_sign l.1 l.2] |
| 426 | |
| 427 | theorem pressureWeight_eq (l : SignedLabel B N0) (x : Native) : |
| 428 | NativeBandExtension.pressureWeight ActualPrimary.certificate ActualPrimary.modulation |
| 429 | (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos l.1 l.2 x = nativeWeight 1 l x := by |
| 430 | change ChartScales.epsilon ActualPrimary.h (BaseChartJets.cellBand l.2) * |
| 431 | Real.sqrt (PrimaryTargetBounds.movingWeight ActualPrimary.nominal x.1) * |
| 432 | PrimaryPulseBounds.referenceP ((ActualPrimary.phases B N0 l.1).lam l.2) |
| 433 | ((ActualPrimary.phases B N0 l.1).u l.2) ((ActualPrimary.phases B N0 l.1).L l.2) |
| 434 | (((ActualPrimary.phases B N0 l.1).L l.2) * (x.2.2 / ((ActualPrimary.phases B N0 0).L l.2))) = _ |
| 435 | rw [ActualPrimary.length_sign l.1 l.2, |
| 436 | mul_div_cancel₀ _ ((ActualPrimary.phases B N0 0).L_pos l.2).ne'] |
| 437 | simp only [nativeWeight, pulseEnvelope, Real.rpow_one, ActualPrimary.length_sign l.1 l.2] |
| 438 | |
| 439 | theorem complex_velocity_native_jets : |
| 440 | NativeJets (signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate |
| 441 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared)) (nativeWeight (1 / 2)) |
| 442 | (fun l x => CurlClassBounds.complexify (ActualPrimary.attachedRawVelocity l.1 l.2 x)) := by |
| 443 | have hw : (fun l : SignedLabel B N0 => NativeBandExtension.velocityWeight ActualPrimary.certificate |
| 444 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos l.1 l.2) = |
| 445 | nativeWeight (1 / 2) := funext (fun l => funext (velocityWeight_eq l)) |
| 446 | have hh := (attached_velocity_signed_jets B N0).map CurlClassBounds.complexify |
| 447 | rw [hw] at hh |
| 448 | exact hh |
| 449 | |
| 450 | theorem pressure_native_jets : |
| 451 | NativeJets (signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate |
| 452 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared)) (nativeWeight 1) |
| 453 | (fun l => ActualPrimary.attachedRawPressure l.1 l.2) := by |
| 454 | have hw : (fun l : SignedLabel B N0 => NativeBandExtension.pressureWeight ActualPrimary.certificate |
| 455 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos l.1 l.2) = |
| 456 | nativeWeight 1 := funext (fun l => funext (pressureWeight_eq l)) |
| 457 | rw [← hw] |
| 458 | exact attached_pressure_signed_jets B N0 |
| 459 | |
| 460 | noncomputable def periodized {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 461 | (a : ℝ) (f : SignedLabel B N0 → Native → E) (l : SignedLabel B N0) (n : ℕ) : Native → E := |
| 462 | PeriodizedWaveBounds.copySum (copied a f l n) |
| 463 | |
| 464 | theorem periodized_uniform {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 465 | {a α : ℝ} {f : SignedLabel B N0 → Native → E} |
| 466 | (hf : NativeJets (signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate |
| 467 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared)) (nativeWeight α) f) |
| 468 | (hs : ∀ l x, f l x ≠ 0 → x.2 ∈ (ActualPrimary.clockWindow l.2).core) : |
| 469 | LabelSumBounds.UniformWaveClass nativeStrip envelope α (periodized a f) := by |
| 470 | apply PeriodizedWaveBounds.copySum_uniformClass copyCells |
| 471 | (fun l n x _ => mul_nonneg (Real.sqrt_nonneg _) (envelope_nonneg l n x)) |
| 472 | · intro l n k x hx |
| 473 | by_cases hn : near l n |
| 474 | · have hfn : f l (copyPoint l n k x) ≠ 0 := by |
| 475 | intro hz |
| 476 | exact hx (by simp only [copied, ite_eq_left hn, hz, smul_zero]) |
| 477 | have hk := hs l (copyPoint l n k x) hfn |
| 478 | simp only [copyPoint, ActualSignedGeometry.copyPoint] at hk ⊢ |
| 479 | exact hk |
| 480 | · exact (hx (by simp only [copied, ite_eq_right hn])).elim |
| 481 | · exact copied_uniformLocalJets hf |
| 482 | |
| 483 | theorem periodized_velocity_uniform : |
| 484 | LabelSumBounds.UniformWaveClass nativeStrip envelope (1 / 2) |
| 485 | (periodized (CoordinateAlgebra.A ActualPrimary.h) |
| 486 | (fun l : SignedLabel B N0 => fun x => CurlClassBounds.complexify (ActualPrimary.attachedRawVelocity l.1 l.2 x))) := by |
| 487 | apply periodized_uniform complex_velocity_native_jets |
| 488 | intro l x hx |
| 489 | apply ActualPrimary.attachedRawVelocity_core l.1 l.2 x |
| 490 | intro hz |
| 491 | exact hx (by rw [hz, map_zero]) |
| 492 | |
| 493 | theorem periodized_pressure_uniform : |
| 494 | LabelSumBounds.UniformWaveClass nativeStrip envelope 1 |
| 495 | (periodized (2 * CoordinateAlgebra.A ActualPrimary.h) |
| 496 | (fun l : SignedLabel B N0 => ActualPrimary.attachedRawPressure l.1 l.2)) := |
| 497 | periodized_uniform pressure_native_jets (fun l x => ActualPrimary.attachedRawPressure_core l.1 l.2 x) |
| 498 | |
| 499 | end ActualCopySums |
| 500 | |
| 501 | section InactiveBands |
| 502 | |
| 503 | variable {B N0 : ℕ} |
| 504 | |
| 505 | /-- A nonzero closed native dyadic band meets only the actual finite |
| 506 | two-level window. The stronger four-level estimates therefore apply. -/ |
| 507 | theorem near_of_closed_band (l : SignedLabel B N0) (n : ℕ) {p : PhaseCalculus.Slow} |
| 508 | (hp : p ∈ BaseContextAssembly.slowCarrier ActualPrimary.nominal region) |
| 509 | (hq : SimilarityHomogeneity.chartQ ActualPrimary.h |
| 510 | (ActualSignedGeometry.slowChange ActualPrimary.h (ChartScales.Q n) |
| 511 | (ChartScales.Q (BaseChartJets.cellBand l.2)) p) ∈ Icc (1 / 2 : ℝ) 2) : near l n := by |
| 512 | have hm := (BaseContextAssembly.nativeStrip_mem ActualPrimary.nominal region _).mp hp |
| 513 | have ht : 0 < p.2.2 := hm.1.1 |
| 514 | have hq0 : SimilarityHomogeneity.chartQ ActualPrimary.h p ∈ Ioo (1 / 2 : ℝ) 2 := hm.1.2 |
| 515 | let q := ChartScales.Q n * SimilarityHomogeneity.chartQ ActualPrimary.h p |
| 516 | have hqpos : 0 < q := mul_pos (ChartScales.Q_pos _) (by linarith [hq0.1]) |
| 517 | have he : SimilarityHomogeneity.chartQ ActualPrimary.h |
| 518 | (ActualSignedGeometry.slowChange ActualPrimary.h (ChartScales.Q n) |
| 519 | (ChartScales.Q (BaseChartJets.cellBand l.2)) p) = q / ChartScales.Q (BaseChartJets.cellBand l.2) := by |
| 520 | rw [ActualSignedGeometry.slowChange_eq_transition (ChartScales.Q_pos _) (ChartScales.Q_pos _), |
| 521 | SimilarityHomogeneity.chartQ_transition ActualPrimary.outgoing.data.h_pos |
| 522 | ActualPrimary.outgoing.data.h_lt_half (ChartScales.Q_pos _) (ChartScales.Q_pos _) ht] |
| 523 | dsimp [q] |
| 524 | ring |
| 525 | rw [he] at hq |
| 526 | have hn := PhysicalWaveSum.logCoordinate_in_band hqpos |
| 527 | (show ChartScales.Q n / 2 ≤ q by dsimp [q]; nlinarith [ChartScales.Q_pos n, hq0.1]) |
| 528 | (show q ≤ 2 * ChartScales.Q n by dsimp [q]; nlinarith [ChartScales.Q_pos n, hq0.2]) |
| 529 | have hL := PhysicalWaveSum.logCoordinate_in_band hqpos |
| 530 | (show ChartScales.Q (BaseChartJets.cellBand l.2) / 2 ≤ q by |
| 531 | have hh := (le_div_iff₀ (ChartScales.Q_pos _)).mp hq.1 |
| 532 | linarith) |
| 533 | ((div_le_iff₀ (ChartScales.Q_pos _)).mp hq.2) |
| 534 | have hnm : n ≤ BaseChartJets.cellBand l.2 + 2 := by |
| 535 | have hh : (n : ℝ) ≤ (BaseChartJets.cellBand l.2 : ℝ) + 2 := by linarith [hn.1, hL.2] |
| 536 | exact_mod_cast hh |
| 537 | have hmn : BaseChartJets.cellBand l.2 ≤ n + 2 := by |
| 538 | have hh : (BaseChartJets.cellBand l.2 : ℝ) ≤ (n : ℝ) + 2 := by linarith [hL.1, hn.2] |
| 539 | exact_mod_cast hh |
| 540 | have hm4 : 4 ≤ BaseChartJets.cellBand l.2 := label_large l |
| 541 | refine ⟨by omega, Finset.mem_insert_of_mem ?_⟩ |
| 542 | exact Finset.mem_Icc.mpr ⟨max_le (by omega) (by omega), hmn⟩ |
| 543 | |
| 544 | theorem attached_zero_inactive (l : SignedLabel B N0) (n : ℕ) {p : PhaseCalculus.Slow} |
| 545 | (hp : p ∈ BaseContextAssembly.slowCarrier ActualPrimary.nominal region) |
| 546 | (hn : ¬near l n) (Y : TorusInverse.Plane) : |
| 547 | ActualPrimary.attachedRawVelocity l.1 l.2 |
| 548 | (ActualSignedGeometry.slowChange ActualPrimary.h (ChartScales.Q n) |
| 549 | (ChartScales.Q (BaseChartJets.cellBand l.2)) p, Y) = 0 ∧ |
| 550 | ActualPrimary.attachedRawPressure l.1 l.2 |
| 551 | (ActualSignedGeometry.slowChange ActualPrimary.h (ChartScales.Q n) |
| 552 | (ChartScales.Q (BaseChartJets.cellBand l.2)) p, Y) = 0 := by |
| 553 | let y : Native := (ActualSignedGeometry.slowChange ActualPrimary.h (ChartScales.Q n) |
| 554 | (ChartScales.Q (BaseChartJets.cellBand l.2)) p, Y) |
| 555 | have ht : 0 < y.1.2.2 := ActualSignedGeometry.slowChange_time (ChartScales.Q_pos _) |
| 556 | (ChartScales.Q_pos _) (BaseContextAssembly.nativeStrip_time ActualPrimary.nominal region hp) |
| 557 | have hq : NativeBandExtension.nativeQ ActualPrimary.h y ∉ Icc (1 / 2 : ℝ) 2 := |
| 558 | fun hq => hn (near_of_closed_band l n hp hq) |
| 559 | have hz := NativeBandExtension.band_pair_zero_germ_factor ActualPrimary.certificate ActualPrimary.modulation |
| 560 | (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos ActualPrimary.radialVector |
| 561 | ActualPrimary.temporalVector l.1 l.2 |
| 562 | (NativeBandExtension.factor_zero_germ_band ActualPrimary.certificate ActualPrimary.modulation |
| 563 | (ActualPrimary.choice B N0).prepared l.2 ht hq) |
| 564 | have hv : ActualPrimary.outerRawVelocity l.1 l.2 y = 0 := by |
| 565 | have hv := hz.1.eq_of_nhds |
| 566 | simpa only [ActualPrimary.bandVelocity_eq] using hv |
| 567 | have hp' : ActualPrimary.outerRawPressure l.1 l.2 y = 0 := by |
| 568 | have hp' := hz.2.eq_of_nhds |
| 569 | simpa only [ActualPrimary.bandPressure_eq] using hp' |
| 570 | constructor |
| 571 | · change ActualPrimary.attachedRawVelocity l.1 l.2 y = 0 |
| 572 | simp only [ActualPrimary.attachedRawVelocity, WaveEdgeExtension.nativeExtension, |
| 573 | WaveEdgeExtension.extension, hv, ite_self] |
| 574 | · change ActualPrimary.attachedRawPressure l.1 l.2 y = 0 |
| 575 | simp only [ActualPrimary.attachedRawPressure, WaveEdgeExtension.nativeExtension, |
| 576 | WaveEdgeExtension.extension, hp', ite_self] |
| 577 | |
| 578 | end InactiveBands |
| 579 | |
| 580 | section LiteralCoefficients |
| 581 | |
| 582 | variable {B N0 : ℕ} |
| 583 | |
| 584 | theorem coefficientScale_eq (a : ℝ) (l : SignedLabel B N0) (n : ℕ) : |
| 585 | coefficientScale a l n = ChartScales.Q n ^ a * |
| 586 | ChartScales.Q (BaseChartJets.cellBand l.2) ^ (-a) := by |
| 587 | rw [coefficientScale, PhysicalParticularWave.ratioPower, Real.rpow_neg (ChartScales.Q_pos _).le] |
| 588 | rfl |
| 589 | |
| 590 | theorem periodized_velocity_eq (l : SignedLabel B N0) (n : ℕ) {x : Native} |
| 591 | (hx : x ∈ nativeStrip.domain) (θ : ℝ) : |
| 592 | periodized (CoordinateAlgebra.A ActualPrimary.h) |
| 593 | (fun l : SignedLabel B N0 => fun y => CurlClassBounds.complexify (ActualPrimary.attachedRawVelocity l.1 l.2 y)) l n x = |
| 594 | (ActualPrimary.chartCoefficients l.1 l.2).amplitude n (ActualSignedGeometry.meanEquiv x, θ) := by |
| 595 | classical |
| 596 | by_cases hn : near l n |
| 597 | · rw [ActualPrimary.chartCoefficients_amplitude_copies l.1 l.2 n (CommonWindow.index_le hn.2)] |
| 598 | simp only [periodized, PeriodizedWaveBounds.copySum, copied, ite_eq_left hn, |
| 599 | ActualSignedGeometry.meanEquiv.symm_apply_apply, ← tsum_const_smul''] |
| 600 | rw [coefficientScale_eq] |
| 601 | rfl |
| 602 | · have hm := (ActualSignedGeometry.viewStrip_mem ActualPrimary.nominal region id x).mp hx |
| 603 | have hz (k : TorusInverse.Frequency) : ActualPrimary.attachedRawVelocity l.1 l.2 |
| 604 | (ActualPrimary.nativeSlow l.2 (ActualPrimary.toAbsolute n (ActualSignedGeometry.meanEquiv x)), |
| 605 | (ActualPrimary.geometry l.1 l.2).coordinates k |
| 606 | (ActualPrimary.toAbsolute n (ActualSignedGeometry.meanEquiv x)).2) = 0 := by |
| 607 | rw [ActualPrimary.nativeSlow_toAbsolute_eq_slowChange] |
| 608 | exact (attached_zero_inactive l n hm hn _).1 |
| 609 | simp only [periodized, PeriodizedWaveBounds.copySum, copied, ite_eq_right hn, tsum_zero] |
| 610 | simp only [ActualPrimary.chartCoefficients, ActualPrimary.absoluteAmplitude, ActualPrimary.uncutAmplitude, |
| 611 | hz, map_zero, tsum_zero, smul_zero] |
| 612 | |
| 613 | theorem periodized_pressure_eq (l : SignedLabel B N0) (n : ℕ) {x : Native} |
| 614 | (hx : x ∈ nativeStrip.domain) (θ : ℝ) : |
| 615 | periodized (2 * CoordinateAlgebra.A ActualPrimary.h) |
| 616 | (fun l : SignedLabel B N0 => ActualPrimary.attachedRawPressure l.1 l.2) l n x = |
| 617 | (ActualPrimary.chartCoefficients l.1 l.2).pressure n (ActualSignedGeometry.meanEquiv x, θ) := by |
| 618 | classical |
| 619 | by_cases hn : near l n |
| 620 | · rw [ActualPrimary.chartCoefficients_pressure_copies l.1 l.2 n (CommonWindow.index_le hn.2)] |
| 621 | simp only [periodized, PeriodizedWaveBounds.copySum, copied, ite_eq_left hn, |
| 622 | ActualSignedGeometry.meanEquiv.symm_apply_apply, ← tsum_const_smul''] |
| 623 | rw [coefficientScale_eq] |
| 624 | rfl |
| 625 | · have hm := (ActualSignedGeometry.viewStrip_mem ActualPrimary.nominal region id x).mp hx |
| 626 | have hz (k : TorusInverse.Frequency) : ActualPrimary.attachedRawPressure l.1 l.2 |
| 627 | (ActualPrimary.nativeSlow l.2 (ActualPrimary.toAbsolute n (ActualSignedGeometry.meanEquiv x)), |
| 628 | (ActualPrimary.geometry l.1 l.2).coordinates k |
| 629 | (ActualPrimary.toAbsolute n (ActualSignedGeometry.meanEquiv x)).2) = 0 := by |
| 630 | rw [ActualPrimary.nativeSlow_toAbsolute_eq_slowChange] |
| 631 | exact (attached_zero_inactive l n hm hn _).2 |
| 632 | simp only [periodized, PeriodizedWaveBounds.copySum, copied, ite_eq_right hn, tsum_zero] |
| 633 | simp only [ActualPrimary.chartCoefficients, ActualPrimary.absolutePressure, ActualPrimary.uncutPressure, |
| 634 | hz, tsum_zero, smul_zero] |
| 635 | |
| 636 | theorem uniform_lift {D E ι : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 637 | [NormedAddCommGroup E] [NormedSpace ℝ E] {s : StripData D} |
| 638 | {w : ι → ℕ → D → ℝ} {α : ℝ} {f : ι → ℕ → D → E} |
| 639 | (hf : LabelSumBounds.UniformClass s w α f) : |
| 640 | LabelSumBounds.UniformClass (HarmonicWaveInteraction.productStrip s) |
| 641 | (fun l n x => w l n x.1) α (fun l n x => f l n x.1) := by |
| 642 | refine ⟨fun l n x hx => hf.weight_nonneg l n x.1 hx, |
| 643 | fun l n => (hf.each l |> HarmonicWaveInteraction.class_lift).smooth n, ?_⟩ |
| 644 | intro m |
| 645 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 646 | refine ⟨C, hC, p, fun l n x hx j hj => ?_⟩ |
| 647 | have hd := HarmonicWaveInteraction.norm_jet_comp_linear s.isOpen_domain (hf.smooth l n) |
| 648 | HarmonicWaveInteraction.projection hx j |
| 649 | exact (hd.trans (mul_le_of_le_one_right (norm_nonneg _) |
| 650 | (pow_le_one₀ (norm_nonneg _) HarmonicWaveInteraction.projection_norm))).trans (hb l n x.1 hx j hj) |
| 651 | |
| 652 | noncomputable def fullEnvelope (l : SignedLabel B N0) (n : ℕ) (x : ActualPrimary.FullPoint) : ℝ := |
| 653 | envelope l n (ActualSignedGeometry.meanEquiv.symm x.1) |
| 654 | |
| 655 | theorem chart_amplitude_uniform : |
| 656 | LabelSumBounds.UniformWaveClass (HarmonicWaveInteraction.productStrip strip) fullEnvelope (1 / 2) |
| 657 | (fun l : SignedLabel B N0 => (ActualPrimary.chartCoefficients l.1 l.2).amplitude) := by |
| 658 | have hh := UniformBlockBounds.uniform_reindex ActualSignedGeometry.meanEquiv.symm |
| 659 | (periodized_velocity_uniform (B := B) (N0 := N0)) |
| 660 | change LabelSumBounds.UniformWaveClass strip |
| 661 | (fun l n x => envelope l n (ActualSignedGeometry.meanEquiv.symm x)) (1 / 2) |
| 662 | (fun l n x => periodized (CoordinateAlgebra.A ActualPrimary.h) |
| 663 | (fun l : SignedLabel B N0 => fun y => CurlClassBounds.complexify (ActualPrimary.attachedRawVelocity l.1 l.2 y)) |
| 664 | l n (ActualSignedGeometry.meanEquiv.symm x)) at hh |
| 665 | apply (uniform_lift hh).congr |
| 666 | intro l n x hx |
| 667 | simpa only [ActualSignedGeometry.meanEquiv.apply_symm_apply] using |
| 668 | periodized_velocity_eq l n (x := ActualSignedGeometry.meanEquiv.symm x.1) hx x.2 |
| 669 | |
| 670 | theorem chart_pressure_uniform : |
| 671 | LabelSumBounds.UniformWaveClass (HarmonicWaveInteraction.productStrip strip) fullEnvelope 1 |
| 672 | (fun l : SignedLabel B N0 => (ActualPrimary.chartCoefficients l.1 l.2).pressure) := by |
| 673 | have hh := UniformBlockBounds.uniform_reindex ActualSignedGeometry.meanEquiv.symm |
| 674 | (periodized_pressure_uniform (B := B) (N0 := N0)) |
| 675 | change LabelSumBounds.UniformWaveClass strip |
| 676 | (fun l n x => envelope l n (ActualSignedGeometry.meanEquiv.symm x)) 1 |
| 677 | (fun l n x => periodized (2 * CoordinateAlgebra.A ActualPrimary.h) |
| 678 | (fun l : SignedLabel B N0 => ActualPrimary.attachedRawPressure l.1 l.2) |
| 679 | l n (ActualSignedGeometry.meanEquiv.symm x)) at hh |
| 680 | apply (uniform_lift hh).congr |
| 681 | intro l n x hx |
| 682 | simpa only [ActualSignedGeometry.meanEquiv.apply_symm_apply] using |
| 683 | periodized_pressure_eq l n (x := ActualSignedGeometry.meanEquiv.symm x.1) hx x.2 |
| 684 | |
| 685 | end LiteralCoefficients |
| 686 | |
| 687 | section GaussianCutoff |
| 688 | |
| 689 | variable {B N0 : ℕ} |
| 690 | |
| 691 | noncomputable def timeProjection (L : ActualPrimary.Label B N0) : Native →L[ℝ] ℝ := |
| 692 | (((ActualPrimary.phases B N0 0).L L)⁻¹) • |
| 693 | ((ContinuousLinearMap.snd ℝ ℝ ℝ).comp (ContinuousLinearMap.snd ℝ PhaseCalculus.Slow TorusInverse.Plane)) |
| 694 | |
| 695 | theorem timeProjection_norm (L : ActualPrimary.Label B N0) : |
| 696 | ‖timeProjection L‖ ≤ (ActualPrimary.choice B N0).prepared.M := by |
| 697 | have hL := (ActualPrimary.phases B N0 0).L_pos L |
| 698 | have hr := ActualPrimary.slots.radius_pos |
| 699 | have hn : 4 ≤ BaseChartJets.cellBand L := ((ActualPrimary.choice B N0).prepared.large _ L.property).four_le |
| 700 | have hlen := (ChartScales.slotLength_bounds ActualPrimary.slots.radius ActualPrimary.h |
| 701 | ActualPrimary.slots.radius_pos.le ActualPrimary.outgoing.data.h_pos.le hn).1 |
| 702 | have hS := PhysicalGraphBounds.S_ge_one (show 1 ≤ BaseChartJets.cellBand L by omega) |
| 703 | have hlow : 2 * ActualPrimary.slots.radius ≤ (ActualPrimary.phases B N0 0).L L := by |
| 704 | exact (le_mul_of_one_le_right (by positivity) hS).trans hlen |
| 705 | have hi : ((ActualPrimary.phases B N0 0).L L)⁻¹ ≤ (ActualPrimary.choice B N0).prepared.M := by |
| 706 | simpa only [one_div] using ((one_div_le_one_div_of_le (by positivity) hlow).trans |
| 707 | (ActualPrimary.choice B N0).prepared.length_bound) |
| 708 | apply le_trans _ hi |
| 709 | apply ContinuousLinearMap.opNorm_le_bound _ (inv_pos.mpr hL).le |
| 710 | intro x |
| 711 | change ‖((ActualPrimary.phases B N0 0).L L)⁻¹ * x.2.2‖ ≤ _ |
| 712 | rw [norm_mul, Real.norm_of_nonneg (inv_pos.mpr hL).le] |
| 713 | exact mul_le_mul_of_nonneg_left ((norm_snd_le x.2).trans (norm_snd_le x)) (inv_pos.mpr hL).le |
| 714 | |
| 715 | /-- The fixed compact Gaussian profile has uniform jets after the actual |
| 716 | slot rescaling, on the full radial domain. -/ |
| 717 | theorem gaussian_polynomial : |
| 718 | PolynomialJets (signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate |
| 719 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared)).toDomain |
| 720 | (fun l : SignedLabel B N0 => ActualPrimary.gaussian l.2) := by |
| 721 | have hh := gaussianCutoff_affine_jets |
| 722 | (signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate |
| 723 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared)).toDomain |
| 724 | (fun l : SignedLabel B N0 => timeProjection l.2) (fun _ => 0) |
| 725 | (ActualPrimary.choice B N0).prepared.one_le_M 0 |
| 726 | (fun l => by simpa only [pow_zero, mul_one] using timeProjection_norm l.2) |
| 727 | simp only [timeProjection, |
| 728 | _root_.smul_apply, ContinuousLinearMap.comp_apply, ContinuousLinearMap.coe_snd', |
| 729 | smul_eq_mul, add_zero, mul_comm] at hh ⊢ |
| 730 | exact hh |
| 731 | |
| 732 | noncomputable def cutNativeVelocity (l : SignedLabel B N0) (x : Native) : HarmonicCalculus.ComplexVector := |
| 733 | ActualPrimary.gaussian l.2 x • CurlClassBounds.complexify (ActualPrimary.attachedRawVelocity l.1 l.2 x) |
| 734 | |
| 735 | noncomputable def cutNativePressure (l : SignedLabel B N0) (x : Native) : ℂ := |
| 736 | ActualPrimary.gaussian l.2 x • ActualPrimary.attachedRawPressure l.1 l.2 x |
| 737 | |
| 738 | theorem cut_native_velocity_jets : |
| 739 | NativeJets (signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate |
| 740 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared)) (nativeWeight (1 / 2)) |
| 741 | (cutNativeVelocity (B := B) (N0 := N0)) := |
| 742 | complex_velocity_native_jets.polynomial_smul gaussian_polynomial |
| 743 | |
| 744 | theorem cut_native_pressure_jets : |
| 745 | NativeJets (signDomain (NativeBandExtension.radialDomain ActualPrimary.certificate |
| 746 | ActualPrimary.modulation (ActualPrimary.choice B N0).prepared)) (nativeWeight 1) |
| 747 | (cutNativePressure (B := B) (N0 := N0)) := |
| 748 | pressure_native_jets.polynomial_smul gaussian_polynomial |
| 749 | |
| 750 | theorem periodized_cut_velocity_uniform : |
| 751 | LabelSumBounds.UniformWaveClass nativeStrip envelope (1 / 2) |
| 752 | (periodized (CoordinateAlgebra.A ActualPrimary.h) (cutNativeVelocity (B := B) (N0 := N0))) := by |
| 753 | apply periodized_uniform cut_native_velocity_jets |
| 754 | intro l x hx |
| 755 | apply ActualPrimary.attachedRawVelocity_core l.1 l.2 x |
| 756 | intro hz |
| 757 | exact hx (by simp only [cutNativeVelocity, hz, map_zero, smul_zero]) |
| 758 | |
| 759 | theorem periodized_cut_pressure_uniform : |
| 760 | LabelSumBounds.UniformWaveClass nativeStrip envelope 1 |
| 761 | (periodized (2 * CoordinateAlgebra.A ActualPrimary.h) (cutNativePressure (B := B) (N0 := N0))) := by |
| 762 | apply periodized_uniform cut_native_pressure_jets |
| 763 | intro l x hx |
| 764 | apply ActualPrimary.attachedRawPressure_core l.1 l.2 x |
| 765 | intro hz |
| 766 | exact hx (by simp only [cutNativePressure, hz, smul_zero]) |
| 767 | |
| 768 | theorem gaussian_on_copy (l : SignedLabel B N0) (n : ℕ) (hn : near l n) |
| 769 | (k : TorusInverse.Frequency) (x : Native) (θ : ℝ) |
| 770 | (hc : (copyPoint l n k x).2 ∈ (ActualPrimary.clockWindow l.2).core) : |
| 771 | ActualPrimary.chartCutoff l.1 l.2 n (ActualSignedGeometry.meanEquiv x, θ) = |
| 772 | ActualPrimary.gaussian l.2 (copyPoint l n k x) := by |
| 773 | have he := ActualPrimary.chart_nativePoint l.1 l.2 n (CommonWindow.index_le hn.2) k |
| 774 | (ActualSignedGeometry.meanEquiv x) |
| 775 | simp only [ActualSignedGeometry.meanEquiv.symm_apply_apply] at he |
| 776 | change _ = copyPoint l n k x at he |
| 777 | have hs : (ActualPrimary.geometry l.1 l.2).coordinates k |
| 778 | (ActualPrimary.toAbsolute n (ActualSignedGeometry.meanEquiv x)).2 ∈ |
| 779 | (ActualPrimary.clockWindow l.2).core := by |
| 780 | rw [← he] at hc |
| 781 | exact hc |
| 782 | have hg := ActualPrimary.periodicGaussian_eq_on_core l.1 l.2 |
| 783 | (ActualPrimary.nativeSlow l.2 (ActualPrimary.toAbsolute n (ActualSignedGeometry.meanEquiv x))) |
| 784 | (ActualPrimary.toAbsolute n (ActualSignedGeometry.meanEquiv x)).2 k hs |
| 785 | rw [he] at hg |
| 786 | exact hg |
| 787 | |
| 788 | theorem periodized_cut_eq {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 789 | (a : ℝ) (f : SignedLabel B N0 → Native → E) |
| 790 | (hs : ∀ l x, f l x ≠ 0 → x.2 ∈ (ActualPrimary.clockWindow l.2).core) |
| 791 | (l : SignedLabel B N0) (n : ℕ) (x : Native) (θ : ℝ) : |
| 792 | periodized a (fun l y => ActualPrimary.gaussian l.2 y • f l y) l n x = |
| 793 | ActualPrimary.chartCutoff l.1 l.2 n (ActualSignedGeometry.meanEquiv x, θ) • periodized a f l n x := by |
| 794 | classical |
| 795 | by_cases hn : near l n |
| 796 | · simp only [periodized, PeriodizedWaveBounds.copySum, copied, ite_eq_left hn] |
| 797 | rw [← tsum_const_smul''] |
| 798 | apply tsum_congr |
| 799 | intro k |
| 800 | by_cases hz : f l (copyPoint l n k x) = 0 |
| 801 | · simp only [hz, smul_zero] |
| 802 | · rw [gaussian_on_copy l n hn k x θ (hs l _ hz)] |
| 803 | exact smul_comm _ _ _ |
| 804 | · simp only [periodized, PeriodizedWaveBounds.copySum, copied, ite_eq_right hn, tsum_zero, smul_zero] |
| 805 | |
| 806 | theorem chart_cut_amplitude_uniform : |
| 807 | LabelSumBounds.UniformWaveClass (HarmonicWaveInteraction.productStrip strip) fullEnvelope (1 / 2) |
| 808 | (fun l : SignedLabel B N0 => |
| 809 | ((ActualPrimary.chartCoefficients l.1 l.2).withCutoff (ActualPrimary.chartCutoff l.1 l.2)).amplitude) := by |
| 810 | have hh := UniformBlockBounds.uniform_reindex ActualSignedGeometry.meanEquiv.symm |
| 811 | (periodized_cut_velocity_uniform (B := B) (N0 := N0)) |
| 812 | change LabelSumBounds.UniformWaveClass strip |
| 813 | (fun l n x => envelope l n (ActualSignedGeometry.meanEquiv.symm x)) (1 / 2) |
| 814 | (fun l n x => periodized (CoordinateAlgebra.A ActualPrimary.h) cutNativeVelocity |
| 815 | l n (ActualSignedGeometry.meanEquiv.symm x)) at hh |
| 816 | apply (uniform_lift hh).congr |
| 817 | intro l n x hx |
| 818 | have hs (l : SignedLabel B N0) (y : Native) |
| 819 | (hy : CurlClassBounds.complexify (ActualPrimary.attachedRawVelocity l.1 l.2 y) ≠ 0) : |
| 820 | y.2 ∈ (ActualPrimary.clockWindow l.2).core := by |
| 821 | apply ActualPrimary.attachedRawVelocity_core l.1 l.2 y |
| 822 | intro hz |
| 823 | exact hy (by rw [hz, map_zero]) |
| 824 | have he := periodized_cut_eq (CoordinateAlgebra.A ActualPrimary.h) |
| 825 | (fun l : SignedLabel B N0 => fun y => CurlClassBounds.complexify (ActualPrimary.attachedRawVelocity l.1 l.2 y)) |
| 826 | hs l n (ActualSignedGeometry.meanEquiv.symm x.1) x.2 |
| 827 | rw [periodized_velocity_eq l n hx x.2] at he |
| 828 | simp only [ActualSignedGeometry.meanEquiv.apply_symm_apply, |
| 829 | LinearWaveBounds.WaveCoefficients.withCutoff] at he ⊢ |
| 830 | exact he |
| 831 | |
| 832 | theorem chart_cut_pressure_uniform : |
| 833 | LabelSumBounds.UniformWaveClass (HarmonicWaveInteraction.productStrip strip) fullEnvelope 1 |
| 834 | (fun l : SignedLabel B N0 => |
| 835 | ((ActualPrimary.chartCoefficients l.1 l.2).withCutoff (ActualPrimary.chartCutoff l.1 l.2)).pressure) := by |
| 836 | have hh := UniformBlockBounds.uniform_reindex ActualSignedGeometry.meanEquiv.symm |
| 837 | (periodized_cut_pressure_uniform (B := B) (N0 := N0)) |
| 838 | change LabelSumBounds.UniformWaveClass strip |
| 839 | (fun l n x => envelope l n (ActualSignedGeometry.meanEquiv.symm x)) 1 |
| 840 | (fun l n x => periodized (2 * CoordinateAlgebra.A ActualPrimary.h) cutNativePressure |
| 841 | l n (ActualSignedGeometry.meanEquiv.symm x)) at hh |
| 842 | apply (uniform_lift hh).congr |
| 843 | intro l n x hx |
| 844 | have he := periodized_cut_eq (2 * CoordinateAlgebra.A ActualPrimary.h) |
| 845 | (fun l : SignedLabel B N0 => ActualPrimary.attachedRawPressure l.1 l.2) |
| 846 | (fun l y => ActualPrimary.attachedRawPressure_core l.1 l.2 y) |
| 847 | l n (ActualSignedGeometry.meanEquiv.symm x.1) x.2 |
| 848 | rw [periodized_pressure_eq l n hx x.2] at he |
| 849 | simp only [ActualSignedGeometry.meanEquiv.apply_symm_apply, |
| 850 | LinearWaveBounds.WaveCoefficients.withCutoff] at he ⊢ |
| 851 | exact he |
| 852 | |
| 853 | end GaussianCutoff |
| 854 | |
| 855 | section EnvelopeRange |
| 856 | |
| 857 | variable {B N0 : ℕ} |
| 858 | |
| 859 | theorem envelope_le_one (l : SignedLabel B N0) (n : ℕ) (x : Native) : envelope l n x ≤ 1 := by |
| 860 | classical |
| 861 | by_cases hc : ∃ k, x ∈ (copyCells l).carrier n k |
| 862 | · obtain ⟨k, hk⟩ := hc |
| 863 | rw [envelope_copy l n k hk] |
| 864 | apply PrimaryPulseBounds.referenceP_le_one |
| 865 | ((ActualPrimary.phases B N0 l.1).lam_pos l.2) |
| 866 | ((ActualPrimary.phases B N0 l.1).u_pos l.2) |
| 867 | ((ActualPrimary.phases B N0 l.1).L_pos l.2) |
| 868 | have ht : (copyPoint l n k x).2.2 ∈ Icc 0 ((ActualPrimary.phases B N0 0).L l.2) := by |
| 869 | have hh : (copyPoint l n k x).2 ∈ (ActualPrimary.clockWindow l.2).core := by |
| 870 | simp only [copyPoint, ActualSignedGeometry.copyPoint] at hk ⊢ |
| 871 | exact hk |
| 872 | exact hh.2 |
| 873 | simpa only [ActualPrimary.length_sign l.1 l.2] using ht |
| 874 | · have hz : ∀ k : TorusInverse.Frequency, |
| 875 | (ActualPrimary.chartGeometry n l.1 l.2).coordinates k x.2 ∉ |
| 876 | WaveEnvelopeTransport.rectangle ActualPrimary.slots.radius ((ActualPrimary.phases B N0 l.1).L l.2) := by |
| 877 | intro k hk |
| 878 | apply hc |
| 879 | refine ⟨k, ?_⟩ |
| 880 | simp only [ActualPrimary.length_sign l.1 l.2] at hk |
| 881 | exact hk |
| 882 | simp only [envelope, WaveEnvelopeTransport.copyEnvelope, ite_eq_right (hz _), tsum_zero, zero_le_one] |
| 883 | |
| 884 | theorem fullEnvelope_nonneg (l : SignedLabel B N0) (n : ℕ) (x : ActualPrimary.FullPoint) : |
| 885 | 0 ≤ fullEnvelope l n x := envelope_nonneg l n _ |
| 886 | |
| 887 | theorem fullEnvelope_le_one (l : SignedLabel B N0) (n : ℕ) (x : ActualPrimary.FullPoint) : |
| 888 | fullEnvelope l n x ≤ 1 := envelope_le_one l n _ |
| 889 | |
| 890 | noncomputable def meanEnvelope (l : SignedLabel B N0) (n : ℕ) (x : Point) : ℝ := |
| 891 | fullEnvelope l n (x, 0) |
| 892 | |
| 893 | noncomputable def angularFrequency (l : SignedLabel B N0) (_n : ℕ) : ℤ := |
| 894 | PrimaryGeometryAssembly.angularMode ActualPrimary.certificate ActualPrimary.modulation |
| 895 | (ActualPrimary.choice B N0).prepared l.1 l.2 |
| 896 | |
| 897 | noncomputable def phase (l : SignedLabel B N0) (n : ℕ) (x : Point) : ℝ := |
| 898 | (ActualPrimary.chartCoefficients l.1 l.2).phase n (x, 0) |
| 899 | |
| 900 | theorem tangent_block_uniform : |
| 901 | (∀ i m, LabelSumBounds.UniformWaveClass strip meanEnvelope (1 / 2) |
| 902 | (fun l : SignedLabel B N0 => fun n x => |
| 903 | ((ActualPrimary.piece region l.1 l.2).tangentBlock (phase l) (angularFrequency l)).velocity n i m x)) ∧ |
| 904 | (∀ m, LabelSumBounds.UniformWaveClass strip meanEnvelope 1 |
| 905 | (fun l : SignedLabel B N0 => fun n x => |
| 906 | ((ActualPrimary.piece region l.1 l.2).tangentBlock (phase l) (angularFrequency l)).pressure n m x)) := |
| 907 | UniformBlockBounds.blockOfCoefficients_product_uniform |
| 908 | (fun l : SignedLabel B N0 => (ActualPrimary.chartCoefficients l.1 l.2).withCutoff |
| 909 | (ActualPrimary.chartCutoff l.1 l.2)) angularFrequency |
| 910 | chart_cut_amplitude_uniform chart_cut_pressure_uniform |
| 911 | |
| 912 | end EnvelopeRange |
| 913 | |
| 914 | section LocalControl |
| 915 | |
| 916 | variable {B N0 : ℕ} |
| 917 | |
| 918 | abbrev CopyIndex (B N0 : ℕ) := SignedLabel B N0 × TorusInverse.Frequency |
| 919 | |
| 920 | noncomputable def fullCopy (l : SignedLabel B N0) (n : ℕ) (k : TorusInverse.Frequency) |
| 921 | (x : ActualPrimary.FullPoint) : Native := copyPoint l n k (ActualSignedGeometry.meanEquiv.symm x.1) |
| 922 | |
| 923 | noncomputable def controlCell (n : ℕ) (i : CopyIndex B N0) : Set ActualPrimary.FullPoint := |
| 924 | {x | near i.1 n ∧ |
| 925 | (fullCopy i.1 n i.2 x).1 ∈ |
| 926 | (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier i.1.2 ∧ |
| 927 | (fullCopy i.1 n i.2 x).2 ∈ (ActualPrimary.clockWindow i.1.2).core ∧ |
| 928 | SimilarityHomogeneity.chartQ ActualPrimary.h (fullCopy i.1 n i.2 x).1 ∈ Icc (1 / 2 : ℝ) 2} |
| 929 | |
| 930 | noncomputable def fullStrip : StripData ActualPrimary.FullPoint := HarmonicWaveInteraction.productStrip strip |
| 931 | |
| 932 | noncomputable def nativeOfFull : ActualPrimary.FullPoint →L[ℝ] Native := |
| 933 | ActualSignedGeometry.meanEquiv.symm.toContinuousLinearEquiv.toContinuousLinearMap.comp |
| 934 | (ContinuousLinearMap.fst ℝ Point ℝ) |
| 935 | |
| 936 | theorem nativeOfFull_norm : ‖nativeOfFull‖ ≤ 1 := by |
| 937 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 938 | intro x |
| 939 | change ‖ActualSignedGeometry.meanEquiv.symm x.1‖ ≤ 1 * ‖x‖ |
| 940 | rw [ActualSignedGeometry.meanEquiv.symm.norm_map, one_mul] |
| 941 | exact norm_fst_le x |
| 942 | |
| 943 | noncomputable def slotOfNative : Native →L[ℝ] (PhaseCalculus.Slow × ℝ) := |
| 944 | (ContinuousLinearMap.fst ℝ PhaseCalculus.Slow TorusInverse.Plane).prod |
| 945 | ((ContinuousLinearMap.snd ℝ ℝ ℝ).comp (ContinuousLinearMap.snd ℝ PhaseCalculus.Slow TorusInverse.Plane)) |
| 946 | |
| 947 | theorem slotOfNative_norm : ‖slotOfNative‖ ≤ 1 := by |
| 948 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 949 | intro x |
| 950 | change max ‖x.1‖ ‖x.2.2‖ ≤ 1 * ‖x‖ |
| 951 | rw [one_mul] |
| 952 | exact max_le (norm_fst_le x) ((norm_snd_le x.2).trans (norm_snd_le x)) |
| 953 | |
| 954 | noncomputable def slotLinear (l : SignedLabel B N0) (n : ℕ) : |
| 955 | ActualPrimary.FullPoint →L[ℝ] (PhaseCalculus.Slow × ℝ) := |
| 956 | slotOfNative.comp ((copyLinear l n).comp nativeOfFull) |
| 957 | |
| 958 | theorem slotLinear_bound {l : SignedLabel B N0} {n : ℕ} (hn : near l n) : |
| 959 | ‖slotLinear l n‖ ≤ copyCost * fullStrip.slow n := by |
| 960 | calc |
| 961 | _ ≤ ‖slotOfNative‖ * (‖copyLinear l n‖ * ‖nativeOfFull‖) := |
| 962 | (ContinuousLinearMap.opNorm_comp_le _ _).trans |
| 963 | (mul_le_mul_of_nonneg_left (ContinuousLinearMap.opNorm_comp_le _ _) (norm_nonneg _)) |
| 964 | _ ≤ 1 * (‖copyLinear l n‖ * 1) := by gcongr <;> first | exact slotOfNative_norm | exact nativeOfFull_norm |
| 965 | _ ≤ _ := by simp only [one_mul, mul_one]; exact copyLinear_bound hn |
| 966 | |
| 967 | theorem slotCopy_affine (l : SignedLabel B N0) (n : ℕ) (k : TorusInverse.Frequency) (x : ActualPrimary.FullPoint) : |
| 968 | ((fullCopy l n k x).1, (fullCopy l n k x).2.2) = |
| 969 | slotLinear l n x + slotOfNative (copyPoint l n k 0) := by |
| 970 | change slotOfNative (copyPoint l n k (nativeOfFull x)) = _ |
| 971 | rw [copyPoint_affine, map_add] |
| 972 | rfl |
| 973 | |
| 974 | theorem control_maps {i : CopyIndex B N0} {n : ℕ} {x : ActualPrimary.FullPoint} |
| 975 | (hx : x ∈ fullStrip.domain) (hc : x ∈ controlCell n i) : |
| 976 | ((fullCopy i.1 n i.2 x).1, (fullCopy i.1 n i.2 x).2.2) ∈ |
| 977 | (ActualPhaseDefect.reducedJetDomain ActualPhaseDefect.paddedRegion).carrier i.1 := by |
| 978 | have hr := copyPoint_radial i.1 n i.2 (x := ActualSignedGeometry.meanEquiv.symm x.1) hx |
| 979 | apply ActualPhaseDefect.native_reduced_domain_mem ActualPhaseDefect.paddedRegion i.1.1 i.1.2 hc.2.1 |
| 980 | (ActualPhaseDefect.padded_slow_mem hr.1 hc.2.2.2 hr.2) |
| 981 | simp only [ActualPrimary.length_sign i.1.1 i.1.2] |
| 982 | exact hc.2.2.1.2 |
| 983 | |
| 984 | /-- Actual affine pullback of polynomial native jets, with constants |
| 985 | uniform over the active label, chart, and lattice copy. -/ |
| 986 | theorem polynomial_on_control {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 987 | {f : SignedLabel B N0 → PhaseCalculus.Slow × ℝ → E} |
| 988 | (hf : PolynomialJets (ActualPhaseDefect.reducedJetDomain ActualPhaseDefect.paddedRegion) f) : |
| 989 | LocalizedWaveBounds.LocalUnweighted fullStrip controlCell 0 |
| 990 | (fun n i x => f i.1 ((fullCopy i.1 n i.2 x).1, (fullCopy i.1 n i.2 x).2.2)) := by |
| 991 | let D := ActualPhaseDefect.reducedJetDomain (B := B) (N0 := N0) ActualPhaseDefect.paddedRegion |
| 992 | refine ⟨fun _ _ _ _ => zero_le_one, ?_, ?_⟩ |
| 993 | · intro n i x hx hc |
| 994 | have hm := control_maps hx hc |
| 995 | rw [slotCopy_affine] at hm |
| 996 | have hh := ((hf.smooth i.1).contDiffAt ((D.isOpen i.1).mem_nhds hm)).comp x |
| 997 | (((slotLinear i.1 n).contDiff.add |
| 998 | (contDiff_const (c := slotOfNative (copyPoint i.1 n i.2 0)))).contDiffAt) |
| 999 | simpa only [← slotCopy_affine, Function.comp_def] using hh |
| 1000 | · intro m |
| 1001 | obtain ⟨C, hC, p, hb⟩ := hf.bound m |
| 1002 | have hcost := copyCost_one |
| 1003 | refine ⟨C * 25 ^ p * copyCost ^ m, by positivity, p + m, ?_⟩ |
| 1004 | intro n i x hx hc j hj |
| 1005 | have hG := fullStrip.one_le_growth n x |
| 1006 | have hS := fullStrip.one_le_slow n |
| 1007 | have hm := control_maps hx hc |
| 1008 | have hscale : D.scale i.1 ≤ 25 * fullStrip.growth n x := by |
| 1009 | exact (ActualSignedGeometry.S_window_le hc.1.1 (near_distance hc.1).2).trans |
| 1010 | (mul_le_mul_of_nonneg_left |
| 1011 | ((le_max_right 1 (ChartScales.S n)).trans (fullStrip.slow_le_growth n x)) (by norm_num)) |
| 1012 | have hlin : ‖slotLinear i.1 n‖ ^ j ≤ copyCost ^ m * fullStrip.growth n x ^ m := by |
| 1013 | calc |
| 1014 | _ ≤ (copyCost * fullStrip.slow n) ^ m := |
| 1015 | (pow_le_pow_left₀ (norm_nonneg _) (slotLinear_bound hc.1) j).trans |
| 1016 | (pow_le_pow_right₀ (one_le_mul_of_one_le_of_one_le hcost hS) hj) |
| 1017 | _ ≤ (copyCost * fullStrip.growth n x) ^ m := by gcongr; exact fullStrip.slow_le_growth n x |
| 1018 | _ = _ := mul_pow _ _ _ |
| 1019 | have hu := norm_jet_comp_affine (D.isOpen i.1) (hf.smooth i.1) |
| 1020 | (slotLinear i.1 n) (slotOfNative (copyPoint i.1 n i.2 0)) |
| 1021 | (by simpa only [← slotCopy_affine] using hm) j |
| 1022 | simp only [← slotCopy_affine] at hu |
| 1023 | calc |
| 1024 | _ ≤ ‖iteratedFDeriv ℝ j (f i.1) ((fullCopy i.1 n i.2 x).1, (fullCopy i.1 n i.2 x).2.2)‖ * |
| 1025 | ‖slotLinear i.1 n‖ ^ j := hu |
| 1026 | _ ≤ (C * (25 * fullStrip.growth n x) ^ p) * (copyCost ^ m * fullStrip.growth n x ^ m) := by |
| 1027 | have hfb := (hb i.1 j hj _ hm).trans (mul_le_mul_of_nonneg_left |
| 1028 | (pow_le_pow_left₀ (zero_le_one.trans (D.one_le_scale i.1)) hscale p) (zero_le_one.trans hC)) |
| 1029 | exact mul_le_mul hfb hlin (pow_nonneg (norm_nonneg _) _) ((norm_nonneg _).trans hfb) |
| 1030 | _ = majorant fullStrip (fun _ _ => 1) 0 (C * 25 ^ p * copyCost ^ m) (p + m) n x := by |
| 1031 | rw [majorant, mul_pow, pow_add, Real.rpow_zero] |
| 1032 | ring |
| 1033 | |
| 1034 | noncomputable def jointPhase : PhaseFamily (SignedLabel B N0) where |
| 1035 | epsilon l := (ActualPrimary.phases B N0 l.1).phase.epsilon l.2 |
| 1036 | p l := (ActualPrimary.phases B N0 l.1).phase.p l.2 |
| 1037 | pz l := (ActualPrimary.phases B N0 l.1).phase.pz l.2 |
| 1038 | x0 l := (ActualPrimary.phases B N0 l.1).phase.x0 l.2 |
| 1039 | theta l := (ActualPrimary.phases B N0 l.1).phase.theta l.2 |
| 1040 | F l := (ActualPrimary.phases B N0 l.1).phase.F l.2 |
| 1041 | G l := (ActualPrimary.phases B N0 l.1).phase.G l.2 |
| 1042 | |
| 1043 | theorem native_normal_polynomial : |
| 1044 | PolynomialJets (ActualPhaseDefect.reducedJetDomain ActualPhaseDefect.paddedRegion) |
| 1045 | (jointPhase (B := B) (N0 := N0)).normal := by |
| 1046 | let D := ActualPhaseDefect.reducedSlowDomain (B := B) (N0 := N0) ActualPhaseDefect.paddedRegion |
| 1047 | let M := (ActualPrimary.phases B N0 0).M + (ActualPrimary.phases B N0 1).M |
| 1048 | let r := min (ActualPrimary.phases B N0 0).r (ActualPrimary.phases B N0 1).r |
| 1049 | have hM0 := (ActualPrimary.phases B N0 0).one_le_M |
| 1050 | have hM1 := (ActualPrimary.phases B N0 1).one_le_M |
| 1051 | have hM : 1 ≤ M := by dsimp [M]; linarith |
| 1052 | have hMj (j : Fin 2) : (ActualPrimary.phases B N0 j).M ≤ M := by |
| 1053 | fin_cases j <;> dsimp [M] <;> linarith |
| 1054 | have hr : 0 < r := lt_min (ActualPrimary.phases B N0 0).r_pos (ActualPrimary.phases B N0 1).r_pos |
| 1055 | have hrj (j : Fin 2) : r ≤ (ActualPrimary.phases B N0 j).r := by |
| 1056 | fin_cases j |
| 1057 | · exact min_le_left _ _ |
| 1058 | · exact min_le_right _ _ |
| 1059 | have hF : PolynomialJets D (jointPhase (B := B) (N0 := N0)).F := |
| 1060 | PrimaryGeometryAssembly.polynomial_restrict_reindex (ActualPrimary.phases B N0 0).baseF Prod.snd |
| 1061 | (fun _ => rfl) (fun _ _ hx => hx.1) |
| 1062 | have hG : PolynomialJets D (jointPhase (B := B) (N0 := N0)).G := |
| 1063 | PrimaryGeometryAssembly.polynomial_restrict_reindex (ActualPrimary.phases B N0 0).baseG Prod.snd |
| 1064 | (fun _ => rfl) (fun _ _ hx => hx.1) |
| 1065 | have hh := (jointPhase (B := B) (N0 := N0)).polynomial_jets D |
| 1066 | (fun l => (ActualPrimary.phases B N0 l.1).V l.2) |
| 1067 | (fun l => (ActualPrimary.phases B N0 l.1).openV l.2) hF hG hr hM |
| 1068 | (fun l => by |
| 1069 | have h := (ActualPrimary.phases B N0 l.1).constants l.2 |
| 1070 | exact ⟨h.1.trans (hMj _), h.2.1.trans (hMj _), h.2.2.1.trans (hMj _), h.2.2.2.trans (hMj _)⟩) |
| 1071 | (fun l => (ActualPrimary.phases B N0 l.1).epsilon_ne l.2) |
| 1072 | (fun l p hp => by |
| 1073 | have h := (ActualPrimary.phases B N0 l.1).radius l.2 p hp.1 |
| 1074 | exact ⟨(hrj _).trans h.1, h.2.trans (hMj _)⟩) |
| 1075 | (fun l t ht => ((ActualPrimary.phases B N0 l.1).slot l.2 t ht).trans |
| 1076 | (mul_le_mul_of_nonneg_right (hMj _) (zero_le_one.trans (D.one_le_scale l)))) |
| 1077 | exact hh.1 |
| 1078 | |
| 1079 | end LocalControl |
| 1080 | |
| 1081 | section ActualNormal |
| 1082 | |
| 1083 | variable {B N0 : ℕ} |
| 1084 | |
| 1085 | theorem context_normal_swap |
| 1086 | (c : CorrectionState.Context Point) (s : StripData Point) |
| 1087 | (a : LinearWaveBounds.WaveCoefficients ActualPrimary.FullPoint) |
| 1088 | (n : ℕ) (G : PhysicalResidualBridge.ScaledGraph) |
| 1089 | (hG : PhysicalResidualTZ.MatchesAtTZ c.operators G n) |
| 1090 | (hepsilon : s.epsilon n = c.operators.epsilon n) |
| 1091 | (hradius : a.radius n = fun x => x.1.1) |
| 1092 | (Φ : PhysicalResidualBridge.Cylinder → ℝ) |
| 1093 | (hphase : a.phase n = fun y => Φ (PhysicalResidualTZ.swapCylinder y)) |
| 1094 | (x : ActualPrimary.FullPoint) : |
| 1095 | a.normal (HarmonicWaveInteraction.productStrip s) (PrimaryResidualClass.directions c) n x = |
| 1096 | HarmonicCalculus.phaseNormal PhysicalResidualBridge.ScaledGraph.radius G.radial |
| 1097 | PhysicalResidualBridge.ScaledGraph.angular G.axial Φ (PhysicalResidualTZ.swapCylinder x) := by |
| 1098 | have hr : PhysicalResidualTZ.swapCylinder ((PrimaryResidualClass.directions c).radialField n x) = |
| 1099 | G.radial (PhysicalResidualTZ.swapCylinder x) := by |
| 1100 | simp [PrimaryResidualClass.directions, LinearWaveBounds.GraphDirections.radialField, |
| 1101 | PhysicalResidualTZ.swapCylinder_apply, PhysicalResidualTZ.swapSlow_apply, |
| 1102 | hG.eR, hG.vR, hG.frequency, hG.profile, PhysicalResidualBridge.ScaledGraph.radial, smul_smul] |
| 1103 | have hz : PhysicalResidualTZ.swapCylinder ((PrimaryResidualClass.directions c).axialField |
| 1104 | (HarmonicWaveInteraction.productStrip s) n x) = G.axial (PhysicalResidualTZ.swapCylinder x) := by |
| 1105 | simp [PrimaryResidualClass.directions, LinearWaveBounds.GraphDirections.axialField, |
| 1106 | PhysicalResidualTZ.swapCylinder_apply, PhysicalResidualTZ.swapSlow_apply, |
| 1107 | hG.eZ, hepsilon, hG.epsilon, PhysicalResidualBridge.ScaledGraph.axial, |
| 1108 | HarmonicWaveInteraction.productStrip, HarmonicWaveInteraction.pullbackStrip] |
| 1109 | have ha : PhysicalResidualTZ.swapCylinder (PrimaryResidualClass.directions c).angular = |
| 1110 | PhysicalResidualBridge.ScaledGraph.angular (PhysicalResidualTZ.swapCylinder x) := rfl |
| 1111 | have hd (z : ActualPrimary.FullPoint) : |
| 1112 | fderiv ℝ (fun y => Φ (PhysicalResidualTZ.swapCylinder y)) x z = |
| 1113 | fderiv ℝ Φ (PhysicalResidualTZ.swapCylinder x) (PhysicalResidualTZ.swapCylinder z) := |
| 1114 | PhysicalResidualTZ.fderiv_reindex PhysicalResidualTZ.swapCylinder.toContinuousLinearEquiv Φ x z |
| 1115 | unfold LinearWaveBounds.WaveCoefficients.normal HarmonicCalculus.phaseNormal HarmonicCalculus.along |
| 1116 | rw [hphase] |
| 1117 | simp only [hd, hr, hz, ha, hradius] |
| 1118 | rfl |
| 1119 | |
| 1120 | noncomputable def normalScale (l : SignedLabel B N0) (n : ℕ) : ℝ := |
| 1121 | PhysicalParticularWave.normalWeight (ChartScales.Q n) (ChartScales.Q (BaseChartJets.cellBand l.2)) |
| 1122 | (ChartScales.carrier ActualPrimary.h n) (ChartScales.carrier ActualPrimary.h (BaseChartJets.cellBand l.2)) |
| 1123 | |
| 1124 | noncomputable def chartNormal (l : SignedLabel B N0) (n : ℕ) : ActualPrimary.FullPoint → ProblemStatement.Space := |
| 1125 | (ActualPrimary.chartCoefficients l.1 l.2).normal fullStrip |
| 1126 | (PrimaryResidualClass.directions (ActualPrimary.commonContext B)) n |
| 1127 | |
| 1128 | theorem fullCopy_slot (l : SignedLabel B N0) (n : ℕ) (k : TorusInverse.Frequency) |
| 1129 | (x : ActualPrimary.FullPoint) : |
| 1130 | (fullCopy l n k x).2 = |
| 1131 | (ActualSignedGeometry.slotGeometry ActualPrimary.slots ActualPrimary.vectors_det (spatialLabel l) |
| 1132 | (ChartScales.nativeIndex ActualPrimary.h (spatialLabel l).1 - CommonWindow.index ActualPrimary.h n)).coordinates |
| 1133 | k (ActualSignedGeometry.meanEquiv.symm x.1).2 := rfl |
| 1134 | |
| 1135 | theorem chart_normal_germ {i : CopyIndex B N0} {n : ℕ} {x : ActualPrimary.FullPoint} |
| 1136 | (hx : x ∈ fullStrip.domain) (hc : x ∈ controlCell n i) : |
| 1137 | chartNormal i.1 n =ᶠ[𝓝 x] fun y => normalScale i.1 n • |
| 1138 | (jointPhase (B := B) (N0 := N0)).normal i.1 |
| 1139 | ((fullCopy i.1 n i.2 y).1, (fullCopy i.1 n i.2 y).2.2) := by |
| 1140 | let P := ActualPrimary.phases B N0 i.1.1 |
| 1141 | let l := spatialLabel i.1 |
| 1142 | let gap := ChartScales.nativeIndex ActualPrimary.h (BaseChartJets.cellBand i.1.2) - CommonWindow.index ActualPrimary.h n |
| 1143 | have hp : ActualSignedGeometry.slowChange ActualPrimary.h (ChartScales.Q n) |
| 1144 | (ChartScales.Q (BaseChartJets.cellBand i.1.2)) |
| 1145 | ((PhysicalResidualTZ.swapCylinder x).1.1, (PhysicalResidualTZ.swapCylinder x).1.2.1) ∈ |
| 1146 | (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier i.1.2 := hc.2.1 |
| 1147 | have hcore : (ActualSignedGeometry.slotGeometry ActualPrimary.slots ActualSignedGeometry.vectors_det l 0).coordinates i.2 |
| 1148 | (CommonCoverSolve.coverPower gap (PhysicalResidualTZ.swapCylinder x).1.2.2) ∈ |
| 1149 | (ActualSignedGeometry.clockWindow ActualPrimary.slots l.1).core := by |
| 1150 | erw [ActualSignedGeometry.slot_coordinates_from_zero] |
| 1151 | have hl : l.1 = BaseChartJets.cellBand i.1.2 := rfl |
| 1152 | have hg : gap = ChartScales.nativeIndex ActualPrimary.h (spatialLabel i.1).1 - CommonWindow.index ActualPrimary.h n := rfl |
| 1153 | have hY : (PhysicalResidualTZ.swapCylinder x).1.2.2 = (ActualSignedGeometry.meanEquiv.symm x.1).2 := rfl |
| 1154 | rw [hg, hY, ← fullCopy_slot] |
| 1155 | rw [hl, ← clock_eq i.1] |
| 1156 | exact hc.2.2.1 |
| 1157 | have hxR : 0 < x.1.1 := BaseContextAssembly.nativeStrip_radius ActualPrimary.nominal region hx |
| 1158 | have hphys := ActualSignedGeometry.phase_normal_view_germ ActualPrimary.slots |
| 1159 | ActualPrimary.outgoing.data.h_pos.le (label_large i.1) (CommonWindow.index ActualPrimary.h n) gap |
| 1160 | (ChartScales.Q_pos n) (ChartScales.Q_pos (BaseChartJets.cellBand i.1.2)) |
| 1161 | (ChartScales.carrier ActualPrimary.h n) (ChartScales.carrier ActualPrimary.h (BaseChartJets.cellBand i.1.2)) |
| 1162 | (P.phase.p i.1.2) (P.phase.pz i.1.2) (P.phase.x0 i.1.2) (P.phase.F i.1.2) (P.phase.G i.1.2) |
| 1163 | ((PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).isOpen i.1.2) |
| 1164 | (P.baseF.smooth i.1.2) (P.baseG.smooth i.1.2) i.2 (P.phase.theta i.1.2) |
| 1165 | (x := PhysicalResidualTZ.swapCylinder x) |
| 1166 | hxR hp hcore |
| 1167 | have hfull := hphys.comp_tendsto PhysicalResidualTZ.swapCylinder.continuous.continuousAt |
| 1168 | filter_upwards [hfull] with y hy |
| 1169 | rw [chartNormal, fullStrip, context_normal_swap (ActualPrimary.commonContext B) strip |
| 1170 | (ActualPrimary.chartCoefficients i.1.1 i.1.2) n |
| 1171 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) ActualPrimary.h (CommonWindow.index ActualPrimary.h n)) |
| 1172 | (CommonBaseContext.context_matches_physical ActualPrimary.certificate ActualPrimary.modulation ActualPrimary.upper B _ n) |
| 1173 | rfl rfl |
| 1174 | (ActualSignedGeometry.preparedViewPhase ActualPrimary.certificate ActualPrimary.modulation ActualPrimary.slots |
| 1175 | (ActualPrimary.choice B N0).prepared i.1.1 i.1.2 n (CommonWindow.index ActualPrimary.h n)) |
| 1176 | (funext (ActualPrimary.chartCoefficients_phase_view i.1.1 i.1.2 n (CommonWindow.index_le hc.1.2)))] |
| 1177 | apply hy.trans |
| 1178 | change normalScale i.1 n • _ = normalScale i.1 n • _ |
| 1179 | apply congrArg (fun z => normalScale i.1 n • z) |
| 1180 | change PhaseCalculus.phaseNormal _ _ _ _ _ _ _ = PhaseCalculus.phaseNormal _ _ _ _ _ _ _ |
| 1181 | erw [ActualSignedGeometry.slot_coordinates_from_zero] |
| 1182 | rfl |
| 1183 | |
| 1184 | noncomputable def normalLower : ℝ := |
| 1185 | (1 / 2 : ℝ) * (1 / ActualSignedGeometry.powerBound (ActualPrimary.h / 2 + 1 / 2)) |
| 1186 | |
| 1187 | noncomputable def normalUpper : ℝ := |
| 1188 | 2 * ActualSignedGeometry.powerBound (ActualPrimary.h / 2 + 1 / 2) |
| 1189 | |
| 1190 | theorem normalLower_pos : 0 < normalLower := by |
| 1191 | have h := ActualSignedGeometry.powerBound_one (ActualPrimary.h / 2 + 1 / 2) |
| 1192 | unfold normalLower |
| 1193 | positivity |
| 1194 | |
| 1195 | theorem normalUpper_pos : 0 < normalUpper := by |
| 1196 | have h := ActualSignedGeometry.powerBound_one (ActualPrimary.h / 2 + 1 / 2) |
| 1197 | unfold normalUpper |
| 1198 | positivity |
| 1199 | |
| 1200 | theorem normalScale_bounds {l : SignedLabel B N0} {n : ℕ} (hn : near l n) : |
| 1201 | normalLower ≤ normalScale l n ∧ normalScale l n ≤ normalUpper := by |
| 1202 | let hnear : ∀ (_ : Unit) (_ : ℕ), n ≤ BaseChartJets.cellBand l.2 + 4 ∧ |
| 1203 | BaseChartJets.cellBand l.2 ≤ n + 4 := fun _ _ => near_distance hn |
| 1204 | have hs := (ActualSignedGeometry.normalScale (fun _ => n) |
| 1205 | (fun (_ : Unit) _ => BaseChartJets.cellBand l.2) hnear ActualPrimary.outgoing.data.h_pos.le).bounds () 0 |
| 1206 | rw [ActualSignedGeometry.normalScale_value] at hs |
| 1207 | exact hs |
| 1208 | |
| 1209 | /-- A bound on an index-dependent constant is already a local all-jet |
| 1210 | bound, with the constant chosen before the index. -/ |
| 1211 | theorem local_constant {s : StripData ActualPrimary.FullPoint} |
| 1212 | {I : Type*} {K : ℕ → I → Set ActualPrimary.FullPoint} {r : ℕ → I → ℝ} {C : ℝ} |
| 1213 | (hC : 0 ≤ C) (hr : ∀ n i x, x ∈ s.domain → x ∈ K n i → |r n i| ≤ C) : |
| 1214 | LocalizedWaveBounds.LocalUnweighted s K 0 (fun n i _ => r n i) := by |
| 1215 | refine ⟨fun _ _ _ _ => zero_le_one, fun _ _ _ _ _ => contDiffAt_const, |
| 1216 | fun m => ⟨C, hC, 0, ?_⟩⟩ |
| 1217 | intro n i x hx hi j _ |
| 1218 | cases j with |
| 1219 | | zero => |
| 1220 | simpa only [norm_iteratedFDeriv_zero, Real.norm_eq_abs, majorant, |
| 1221 | Real.rpow_zero, pow_zero, mul_one] using hr n i x hx hi |
| 1222 | | succ j => simpa only [iteratedFDeriv_succ_const, Pi.zero_apply, norm_zero, majorant, |
| 1223 | Real.rpow_zero, pow_zero, mul_one] using hC |
| 1224 | |
| 1225 | theorem normalScale_local : LocalizedWaveBounds.LocalUnweighted fullStrip (controlCell (B := B) (N0 := N0)) 0 |
| 1226 | (fun n i (_ : ActualPrimary.FullPoint) => normalScale i.1 n) := by |
| 1227 | apply local_constant normalUpper_pos.le |
| 1228 | intro n i x _ hx |
| 1229 | have h := normalScale_bounds hx.1 |
| 1230 | rw [abs_of_pos (normalLower_pos.trans_le h.1)] |
| 1231 | exact h.2 |
| 1232 | |
| 1233 | theorem chart_normal_local : LocalizedWaveBounds.LocalUnweighted fullStrip (controlCell (B := B) (N0 := N0)) 0 |
| 1234 | (fun n i => chartNormal i.1 n) := by |
| 1235 | have hn := LocalizedWaveBounds.unweighted_smul (normalScale_local (B := B) (N0 := N0)) |
| 1236 | (polynomial_on_control native_normal_polynomial) |
| 1237 | have hn' : LocalizedWaveBounds.LocalUnweighted fullStrip controlCell 0 |
| 1238 | (fun n i x => normalScale i.1 n • (jointPhase (B := B) (N0 := N0)).normal i.1 |
| 1239 | ((fullCopy i.1 n i.2 x).1, (fullCopy i.1 n i.2 x).2.2)) := by |
| 1240 | simpa only [zero_add] using hn |
| 1241 | exact hn'.congr_germ (fun _ _ _ hx hc => (chart_normal_germ hx hc).symm) |
| 1242 | |
| 1243 | noncomputable def normalFloor (B N0 : ℕ) : ℝ := |
| 1244 | normalLower * min (ActualPrimary.phases B N0 0).b (ActualPrimary.phases B N0 1).b |
| 1245 | |
| 1246 | noncomputable def normalCeiling (B N0 : ℕ) : ℝ := |
| 1247 | normalUpper * max ((ActualPrimary.phases B N0 0).M ^ 2 + 3 * (ActualPrimary.phases B N0 0).M) |
| 1248 | ((ActualPrimary.phases B N0 1).M ^ 2 + 3 * (ActualPrimary.phases B N0 1).M) |
| 1249 | |
| 1250 | theorem normalFloor_pos (B N0 : ℕ) : 0 < normalFloor B N0 := |
| 1251 | mul_pos normalLower_pos (lt_min (ActualPrimary.phases B N0 0).b_pos (ActualPrimary.phases B N0 1).b_pos) |
| 1252 | |
| 1253 | theorem chart_normal_range {i : CopyIndex B N0} {n : ℕ} {x : ActualPrimary.FullPoint} |
| 1254 | (hx : x ∈ fullStrip.domain) (hc : x ∈ controlCell n i) : |
| 1255 | normalFloor B N0 ≤ ‖chartNormal i.1 n x‖ ∧ |
| 1256 | ‖chartNormal i.1 n x‖ ≤ normalCeiling B N0 := by |
| 1257 | let P := ActualPrimary.phases B N0 i.1.1 |
| 1258 | have ht : (fullCopy i.1 n i.2 x).2.2 ∈ P.V i.1.2 := |
| 1259 | P.interval i.1.2 (by erw [ActualPrimary.length_sign i.1.1 i.1.2]; exact hc.2.2.1.2) |
| 1260 | have hdom : ((fullCopy i.1 n i.2 x).1, (fullCopy i.1 n i.2 x).2.2) ∈ |
| 1261 | ((PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).slot P.V P.openV).carrier i.1.2 := |
| 1262 | ⟨hc.2.1, ht⟩ |
| 1263 | have hlow := P.normal_range.1 i.1.2 _ hdom |
| 1264 | have hupp := P.normal_range.2 i.1.2 _ hdom |
| 1265 | have hscale := normalScale_bounds hc.1 |
| 1266 | rw [(chart_normal_germ hx hc).eq_of_nhds, norm_smul, Real.norm_eq_abs, |
| 1267 | abs_of_pos (normalLower_pos.trans_le hscale.1)] |
| 1268 | have hj : i.1.1 = 0 ∨ i.1.1 = 1 := by omega |
| 1269 | have hb : min (ActualPrimary.phases B N0 0).b (ActualPrimary.phases B N0 1).b ≤ P.b := by |
| 1270 | rcases hj with h | h <;> simp only [P, h] |
| 1271 | · exact min_le_left _ _ |
| 1272 | · exact min_le_right _ _ |
| 1273 | have hM : P.M ^ 2 + 3 * P.M ≤ |
| 1274 | max ((ActualPrimary.phases B N0 0).M ^ 2 + 3 * (ActualPrimary.phases B N0 0).M) |
| 1275 | ((ActualPrimary.phases B N0 1).M ^ 2 + 3 * (ActualPrimary.phases B N0 1).M) := by |
| 1276 | rcases hj with h | h <;> simp only [P, h] |
| 1277 | · exact le_max_left _ _ |
| 1278 | · exact le_max_right _ _ |
| 1279 | exact ⟨mul_le_mul hscale.1 (hb.trans hlow) |
| 1280 | (le_min (ActualPrimary.phases B N0 0).b_pos.le (ActualPrimary.phases B N0 1).b_pos.le) |
| 1281 | (normalLower_pos.trans_le hscale.1).le, |
| 1282 | mul_le_mul hscale.2 (hupp.trans hM) (norm_nonneg _) normalUpper_pos.le⟩ |
| 1283 | |
| 1284 | theorem chart_defect_local : LocalizedWaveBounds.LocalUnweighted fullStrip (controlCell (B := B) (N0 := N0)) 1 |
| 1285 | (fun n i => ActualPhaseDefect.defect i.1.1 i.1.2 n) := by |
| 1286 | have hweight : LocalizedWaveBounds.LocalUnweighted fullStrip (controlCell (B := B) (N0 := N0)) 0 |
| 1287 | (fun n i (_ : ActualPrimary.FullPoint) => ActualPhaseDefect.materialWeight i.1.2 n) := by |
| 1288 | apply local_constant (show 0 ≤ ActualPhaseDefect.materialWeightBound by |
| 1289 | have h0 := ActualSignedGeometry.powerBound_one (ActualPrimary.h / 2 + 1 / 2) |
| 1290 | have h1 := ActualSignedGeometry.powerBound_one (CoordinateAlgebra.A ActualPrimary.h - ActualPrimary.h) |
| 1291 | unfold ActualPhaseDefect.materialWeightBound |
| 1292 | positivity) |
| 1293 | intro n i x _ hc |
| 1294 | obtain ⟨hp, hu⟩ := ActualPhaseDefect.active_materialWeight_bound i.1.2 n hc.1.2 |
| 1295 | simpa only [abs_of_pos hp] using hu |
| 1296 | have hr := polynomial_on_control (ActualPhaseDefect.native_reduced_polynomial |
| 1297 | (B := B) (N0 := N0) ActualPhaseDefect.paddedRegion) |
| 1298 | have hm := (LocalizedWaveBounds.unweighted_mul hweight hr).band_smul (LinearWaveBounds.band_epsilon fullStrip) |
| 1299 | have hm' : LocalizedWaveBounds.LocalUnweighted fullStrip (controlCell (B := B) (N0 := N0)) 1 |
| 1300 | (fun n i x => ChartScales.epsilon ActualPrimary.h n * ActualPhaseDefect.materialWeight i.1.2 n * |
| 1301 | ActualPhaseDefect.reducedExpression i.1.1 i.1.2 n i.2 x) := by |
| 1302 | simp only [zero_add, smul_eq_mul, mul_assoc, ActualPhaseDefect.reducedExpression_eq_native] at hm ⊢ |
| 1303 | exact hm |
| 1304 | apply hm'.congr_germ |
| 1305 | intro n i x hx hc |
| 1306 | apply Filter.EventuallyEq.symm |
| 1307 | apply ActualPhaseDefect.active_copy_defect_germ i.1.1 i.1.2 n hc.1.2 i.2 hx hc.2.1 |
| 1308 | rw [← clock_eq i.1] |
| 1309 | exact hc.2.2.1 |
| 1310 | |
| 1311 | end ActualNormal |
| 1312 | |
| 1313 | section ActualLocalInputs |
| 1314 | |
| 1315 | variable {B N0 : ℕ} |
| 1316 | |
| 1317 | noncomputable def cutCoefficients (l : SignedLabel B N0) : |
| 1318 | LinearWaveBounds.WaveCoefficients ActualPrimary.FullPoint := |
| 1319 | (ActualPrimary.chartCoefficients l.1 l.2).withCutoff (ActualPrimary.chartCutoff l.1 l.2) |
| 1320 | |
| 1321 | noncomputable def actualFamily : LocalizedWaveBounds.WaveFamily ActualPrimary.FullPoint (CopyIndex B N0) := |
| 1322 | LocalizedWaveBounds.WaveFamily.ofCoefficients (fun i => cutCoefficients i.1) |
| 1323 | |
| 1324 | noncomputable def directions (B : ℕ) := PrimaryResidualClass.directions (ActualPrimary.commonContext B) |
| 1325 | |
| 1326 | theorem actualFamily_normal_eq : |
| 1327 | (actualFamily (B := B) (N0 := N0)).normal fullStrip (directions B) = |
| 1328 | fun n i => chartNormal i.1 n := by |
| 1329 | funext n i x |
| 1330 | simp only [LocalizedWaveBounds.WaveFamily.normal, LocalizedWaveBounds.WaveFamily.coefficients, |
| 1331 | actualFamily, LocalizedWaveBounds.WaveFamily.ofCoefficients, cutCoefficients, |
| 1332 | LinearWaveBounds.WaveCoefficients.withCutoff, LinearWaveBounds.WaveCoefficients.normal, |
| 1333 | chartNormal, directions] |
| 1334 | |
| 1335 | theorem actualFamily_defect_eq : |
| 1336 | (actualFamily (B := B) (N0 := N0)).defect fullStrip (directions B) = |
| 1337 | fun n i => ActualPhaseDefect.defect i.1.1 i.1.2 n := by |
| 1338 | funext n i x |
| 1339 | simp only [LocalizedWaveBounds.WaveFamily.defect, LocalizedWaveBounds.WaveFamily.coefficients, |
| 1340 | actualFamily, LocalizedWaveBounds.WaveFamily.ofCoefficients, cutCoefficients, |
| 1341 | LinearWaveBounds.WaveCoefficients.withCutoff, LinearWaveBounds.WaveCoefficients.defect, |
| 1342 | ActualPhaseDefect.defect, directions, fullStrip, strip, region, ActualPrimary.standardRegion] |
| 1343 | |
| 1344 | theorem actualFamily_normal_range {i : CopyIndex B N0} {n : ℕ} {x : ActualPrimary.FullPoint} |
| 1345 | (hx : x ∈ fullStrip.domain) (hc : x ∈ controlCell n i) : |
| 1346 | normalFloor B N0 ≤ ‖(actualFamily (B := B) (N0 := N0)).normal fullStrip (directions B) n i x‖ ∧ |
| 1347 | ‖(actualFamily (B := B) (N0 := N0)).normal fullStrip (directions B) n i x‖ ≤ normalCeiling B N0 := by |
| 1348 | rw [actualFamily_normal_eq] |
| 1349 | exact chart_normal_range hx hc |
| 1350 | |
| 1351 | theorem actualFamily_good_eq : |
| 1352 | (actualFamily (B := B) (N0 := N0)).retainedGood fullStrip (directions B) = |
| 1353 | fun n i => (ActualPrimary.piece region i.1.1 i.1.2).linearGood n := by |
| 1354 | funext n i x |
| 1355 | simp only [LocalizedWaveBounds.WaveFamily.retainedGood, |
| 1356 | LocalizedWaveBounds.WaveFamily.principalVelocity, LocalizedWaveBounds.WaveFamily.remainder, |
| 1357 | LocalizedWaveBounds.WaveFamily.addAmplitude, LocalizedWaveBounds.WaveFamily.curlCorrection, |
| 1358 | LocalizedWaveBounds.WaveFamily.coefficients, actualFamily, |
| 1359 | LocalizedWaveBounds.WaveFamily.ofCoefficients, cutCoefficients, |
| 1360 | PrimaryPiece.linearGood, ActualPrimary.piece, LinearWaveBounds.WaveCoefficients.constructedGood, |
| 1361 | LinearWaveBounds.WaveCoefficients.goodCoefficient, LinearWaveBounds.WaveCoefficients.principalVelocity, |
| 1362 | LinearWaveBounds.WaveCoefficients.remainder, LinearWaveBounds.WaveCoefficients.addAmplitude, |
| 1363 | LinearWaveBounds.WaveCoefficients.withCutoff, directions, fullStrip, strip] |
| 1364 | |
| 1365 | theorem local_of_uniform {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1366 | {w : SignedLabel B N0 → ℕ → ActualPrimary.FullPoint → ℝ} {α : ℝ} |
| 1367 | {f : SignedLabel B N0 → ℕ → ActualPrimary.FullPoint → E} |
| 1368 | (hf : LabelSumBounds.UniformClass fullStrip w α f) : |
| 1369 | LocalizedWaveBounds.LocalClass fullStrip controlCell (fun n i => w i.1 n) α |
| 1370 | (fun n i => f i.1 n) := by |
| 1371 | refine ⟨fun n i x hx => hf.weight_nonneg i.1 n x hx, |
| 1372 | fun n i x hx _ => (hf.smooth i.1 n).contDiffAt (fullStrip.isOpen_domain.mem_nhds hx), ?_⟩ |
| 1373 | intro m |
| 1374 | obtain ⟨C, hC, p, hb⟩ := hf.bounds m |
| 1375 | exact ⟨C, hC, p, fun n i x hx _ j hj => hb i.1 n x hx j hj⟩ |
| 1376 | |
| 1377 | theorem carrier_band : BandBound fullStrip (-(1 / 2 : ℝ)) |
| 1378 | (fun n => (ChartScales.carrier ActualPrimary.h n : ℝ)) := by |
| 1379 | refine ⟨2, by norm_num, 0, fun n => ?_⟩ |
| 1380 | have he := fullStrip.epsilon_pos n |
| 1381 | have hk : 0 < (ChartScales.carrier ActualPrimary.h n : ℝ) := |
| 1382 | Scaling.carrier_frequency_pos he |
| 1383 | have hs := Real.sqrt_pos.mpr he |
| 1384 | have hu := (Scaling.carrier_frequency_sqrt_bounds he).2 |
| 1385 | have hs1 := Real.sqrt_le_one.mpr (fullStrip.epsilon_le_one n) |
| 1386 | have hle : (ChartScales.carrier ActualPrimary.h n : ℝ) ≤ 2 / Real.sqrt (fullStrip.epsilon n) := by |
| 1387 | apply (le_div_iff₀ hs).mpr |
| 1388 | exact hu.trans (by linarith) |
| 1389 | rw [Real.sqrt_eq_rpow] at hle |
| 1390 | simpa only [Real.norm_eq_abs, abs_of_pos hk, pow_zero, mul_one, |
| 1391 | Real.rpow_neg he.le, div_eq_mul_inv] using hle |
| 1392 | |
| 1393 | theorem inverse_carrier_band : BandBound fullStrip (1 / 2 : ℝ) |
| 1394 | (fun n => 1 / (ChartScales.carrier ActualPrimary.h n : ℝ)) := by |
| 1395 | have hb := CurlClassBounds.harmonic_inverse_bandBound fullStrip (fun _ => 1) (fun _ => by norm_num) |
| 1396 | simp only [Int.cast_one, mul_one] at hb |
| 1397 | exact hb |
| 1398 | |
| 1399 | theorem inverse_carrier_local : LocalizedWaveBounds.LocalUnweighted fullStrip |
| 1400 | (controlCell (B := B) (N0 := N0)) (1 / 2 : ℝ) |
| 1401 | (fun n _ (_ : ActualPrimary.FullPoint) => 1 / (ChartScales.carrier ActualPrimary.h n : ℝ)) := |
| 1402 | LocalizedWaveBounds.LocalClass.band_const inverse_carrier_band |
| 1403 | |
| 1404 | theorem radius_unweighted : UnweightedClass fullStrip 0 |
| 1405 | (fun _ (x : ActualPrimary.FullPoint) => x.1.1) := by |
| 1406 | have hr : UnweightedClass strip 0 (fun _ (x : Point) => x.1) := by |
| 1407 | apply BaseContextAssembly.radial_unweighted |
| 1408 | (a := BaseContextAssembly.geometryRadius ActualPrimary.nominal region) |
| 1409 | (b := Real.sqrt region.qhi * PrimaryTargetBounds.rightRadius ActualPrimary.nominal) |
| 1410 | (g := id) _ contDiff_id |
| 1411 | intro x hx |
| 1412 | exact BaseContextAssembly.movingStrip_radial_bounds ActualPrimary.outgoing.data.h_pos.le region |
| 1413 | _ _ _ _ (PrimaryTargetBounds.leftRadius_pos ActualPrimary.nominal) |
| 1414 | (div_pos (FinalSlowBase.edgeExponent_pos ActualPrimary.nominal) (by norm_num)) zero_lt_one hx |
| 1415 | exact HarmonicWaveInteraction.class_lift hr |
| 1416 | |
| 1417 | theorem slow_auxiliary (B : ℕ) : |
| 1418 | BaseContextAssembly.slowCoordinates (directions B).auxiliary.1 = 0 := rfl |
| 1419 | |
| 1420 | theorem slow_field_auxiliary (B : ℕ) (f : PhaseCalculus.Slow → ℝ) (x : ActualPrimary.FullPoint) : |
| 1421 | fderiv ℝ (fun y : ActualPrimary.FullPoint => f (BaseContextAssembly.slowCoordinates y.1)) x |
| 1422 | (directions B).auxiliary = 0 := by |
| 1423 | apply CopyAngularInvariance.Invariant.directional_zero |
| 1424 | intro y t |
| 1425 | change f (BaseContextAssembly.slowCoordinates (y.1 + t • (directions B).auxiliary.1)) = _ |
| 1426 | rw [map_add, map_smul, slow_auxiliary, smul_zero, add_zero] |
| 1427 | |
| 1428 | theorem actual_local_inputs : |
| 1429 | LocalizedWaveBounds.InputBounds fullStrip (controlCell (B := B) (N0 := N0)) |
| 1430 | (fun n i => fullEnvelope i.1 n) (1 / 2 : ℝ) ChartScales.kappa (directions B) actualFamily := by |
| 1431 | have ho := CommonBaseContext.context_operator_bounds ActualPrimary.certificate ActualPrimary.modulation |
| 1432 | ActualPrimary.upper B region (CommonWindow.index_le_native ActualPrimary.h) |
| 1433 | refine { |
| 1434 | loss_nonneg := by norm_num [ChartScales.kappa] |
| 1435 | radial_profile := LocalizedWaveBounds.LocalClass.of_global (HarmonicWaveInteraction.class_lift ho.radialProfile) |
| 1436 | radial_scale := ho.radialFrequency |
| 1437 | fast_scale := ho.fastCoefficient |
| 1438 | frequency_scale := LocalizedWaveBounds.LocalClass.band_const carrier_band |
| 1439 | radius := LocalizedWaveBounds.LocalClass.of_global radius_unweighted |
| 1440 | inverse_radius := LocalizedWaveBounds.LocalClass.of_global (HarmonicWaveInteraction.class_lift ho.invRadius) |
| 1441 | radial_base := LocalizedWaveBounds.LocalClass.of_global (HarmonicWaveInteraction.class_lift |
| 1442 | (BaseContextAssembly.radialBase_unweighted ActualPrimary.certificate ActualPrimary.modulation ActualPrimary.upper B region)) |
| 1443 | frequency_base := LocalizedWaveBounds.LocalClass.of_global (HarmonicWaveInteraction.class_lift |
| 1444 | (BaseContextAssembly.frequencyBase_unweighted ActualPrimary.certificate ActualPrimary.modulation ActualPrimary.upper B region)) |
| 1445 | axial_base := LocalizedWaveBounds.LocalClass.of_global (HarmonicWaveInteraction.class_lift |
| 1446 | (BaseContextAssembly.axialBase_unweighted ActualPrimary.certificate ActualPrimary.modulation ActualPrimary.upper B region)) |
| 1447 | radial_base_aux := ?_ |
| 1448 | frequency_base_aux := ?_ |
| 1449 | axial_base_aux := ?_ |
| 1450 | normal := by rw [actualFamily_normal_eq]; exact chart_normal_local |
| 1451 | defect := by rw [actualFamily_defect_eq]; exact chart_defect_local |
| 1452 | amplitude := fun j => local_of_uniform (chart_cut_amplitude_uniform.map (ContinuousLinearMap.proj j)) |
| 1453 | pressure := ?_ } |
| 1454 | · intro n i x _ _ |
| 1455 | exact Filter.Eventually.of_forall (slow_field_auxiliary B |
| 1456 | (BaseContextAssembly.radialSlow ActualPrimary.certificate ActualPrimary.modulation ActualPrimary.upper B n)) |
| 1457 | · intro n i x _ _ |
| 1458 | exact Filter.Eventually.of_forall (slow_field_auxiliary B |
| 1459 | (BaseContextAssembly.frequencySlow ActualPrimary.certificate ActualPrimary.modulation ActualPrimary.upper B n)) |
| 1460 | · intro n i x _ _ |
| 1461 | exact Filter.Eventually.of_forall (slow_field_auxiliary B |
| 1462 | (BaseContextAssembly.axialSlow ActualPrimary.certificate ActualPrimary.modulation ActualPrimary.upper B n)) |
| 1463 | · have hp := local_of_uniform (chart_cut_pressure_uniform (B := B) (N0 := N0)) |
| 1464 | simp only [show (1 / 2 : ℝ) + 1 / 2 = 1 by norm_num] |
| 1465 | exact hp |
| 1466 | |
| 1467 | theorem actual_local_curl : LocalizedWaveBounds.LocalWave fullStrip |
| 1468 | (controlCell (B := B) (N0 := N0)) (fun n i => fullEnvelope i.1 n) (1 - ChartScales.kappa) |
| 1469 | (fun n i => (cutCoefficients i.1).curlCorrection fullStrip (directions B) n) := by |
| 1470 | convert! actual_local_inputs.curlCorrection_class (normalFloor_pos B N0) |
| 1471 | (fun _ _ _ hx hc => (actualFamily_normal_range hx hc).1) |
| 1472 | (fun _ _ _ hx hc => (actualFamily_normal_range hx hc).2) |
| 1473 | inverse_carrier_local using 1 |
| 1474 | norm_num |
| 1475 | |
| 1476 | theorem actual_local_good : LocalizedWaveBounds.LocalWave fullStrip |
| 1477 | (controlCell (B := B) (N0 := N0)) (fun n i => fullEnvelope i.1 n) (1 - 3 * ChartScales.kappa) |
| 1478 | (actualFamily.retainedGood fullStrip (directions B)) := by |
| 1479 | convert! actual_local_inputs.retainedGood_class (show ChartScales.kappa ≤ 1 / 2 by norm_num [ChartScales.kappa]) |
| 1480 | (normalFloor_pos B N0) (fun _ _ _ hx hc => (actualFamily_normal_range hx hc).1) |
| 1481 | (fun _ _ _ hx hc => (actualFamily_normal_range hx hc).2) inverse_carrier_local using 1 |
| 1482 | norm_num |
| 1483 | |
| 1484 | end ActualLocalInputs |
| 1485 | |
| 1486 | section ActualSupportCover |
| 1487 | |
| 1488 | variable {B N0 : ℕ} |
| 1489 | |
| 1490 | theorem cut_amplitude_eq (l : SignedLabel B N0) (n : ℕ) {x : ActualPrimary.FullPoint} |
| 1491 | (hx : x ∈ fullStrip.domain) : |
| 1492 | (cutCoefficients l).amplitude n x = |
| 1493 | periodized (CoordinateAlgebra.A ActualPrimary.h) cutNativeVelocity l n (nativeOfFull x) := by |
| 1494 | have hs (l : SignedLabel B N0) (y : Native) |
| 1495 | (hy : CurlClassBounds.complexify (ActualPrimary.attachedRawVelocity l.1 l.2 y) ≠ 0) : |
| 1496 | y.2 ∈ (ActualPrimary.clockWindow l.2).core := by |
| 1497 | apply ActualPrimary.attachedRawVelocity_core l.1 l.2 y |
| 1498 | intro hz |
| 1499 | exact hy (by rw [hz, map_zero]) |
| 1500 | have he := periodized_cut_eq (CoordinateAlgebra.A ActualPrimary.h) |
| 1501 | (fun l : SignedLabel B N0 => fun y => CurlClassBounds.complexify (ActualPrimary.attachedRawVelocity l.1 l.2 y)) |
| 1502 | hs l n (ActualSignedGeometry.meanEquiv.symm x.1) x.2 |
| 1503 | rw [periodized_velocity_eq l n hx x.2] at he |
| 1504 | simp only [ActualSignedGeometry.meanEquiv.apply_symm_apply, |
| 1505 | cutCoefficients, LinearWaveBounds.WaveCoefficients.withCutoff] at he ⊢ |
| 1506 | exact he.symm |
| 1507 | |
| 1508 | theorem cut_pressure_eq (l : SignedLabel B N0) (n : ℕ) {x : ActualPrimary.FullPoint} |
| 1509 | (hx : x ∈ fullStrip.domain) : |
| 1510 | (cutCoefficients l).pressure n x = |
| 1511 | periodized (2 * CoordinateAlgebra.A ActualPrimary.h) cutNativePressure l n (nativeOfFull x) := by |
| 1512 | have he := periodized_cut_eq (2 * CoordinateAlgebra.A ActualPrimary.h) |
| 1513 | (fun l : SignedLabel B N0 => ActualPrimary.attachedRawPressure l.1 l.2) |
| 1514 | (fun l y => ActualPrimary.attachedRawPressure_core l.1 l.2 y) |
| 1515 | l n (ActualSignedGeometry.meanEquiv.symm x.1) x.2 |
| 1516 | rw [periodized_pressure_eq l n hx x.2] at he |
| 1517 | simp only [ActualSignedGeometry.meanEquiv.apply_symm_apply, |
| 1518 | cutCoefficients, LinearWaveBounds.WaveCoefficients.withCutoff] at he ⊢ |
| 1519 | exact he.symm |
| 1520 | |
| 1521 | theorem cut_amplitude_germ (l : SignedLabel B N0) (n : ℕ) {x : ActualPrimary.FullPoint} |
| 1522 | (hx : x ∈ fullStrip.domain) : |
| 1523 | (cutCoefficients l).amplitude n =ᶠ[𝓝 x] |
| 1524 | fun y => periodized (CoordinateAlgebra.A ActualPrimary.h) cutNativeVelocity l n (nativeOfFull y) := by |
| 1525 | filter_upwards [fullStrip.isOpen_domain.mem_nhds hx] with y hy |
| 1526 | exact cut_amplitude_eq l n hy |
| 1527 | |
| 1528 | theorem cut_pressure_germ (l : SignedLabel B N0) (n : ℕ) {x : ActualPrimary.FullPoint} |
| 1529 | (hx : x ∈ fullStrip.domain) : |
| 1530 | (cutCoefficients l).pressure n =ᶠ[𝓝 x] |
| 1531 | fun y => periodized (2 * CoordinateAlgebra.A ActualPrimary.h) cutNativePressure l n (nativeOfFull y) := by |
| 1532 | filter_upwards [fullStrip.isOpen_domain.mem_nhds hx] with y hy |
| 1533 | exact cut_pressure_eq l n hy |
| 1534 | |
| 1535 | theorem copied_support {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1536 | (a : ℝ) (f : SignedLabel B N0 → Native → E) |
| 1537 | (hs : ∀ l x, f l x ≠ 0 → x.2 ∈ (ActualPrimary.clockWindow l.2).core) |
| 1538 | (l : SignedLabel B N0) (n : ℕ) (k : TorusInverse.Frequency) : |
| 1539 | support (copied a f l n k) ⊆ (copyCells l).carrier n k := by |
| 1540 | intro x hx |
| 1541 | classical |
| 1542 | by_cases hn : near l n |
| 1543 | · have hfn : f l (copyPoint l n k x) ≠ 0 := by |
| 1544 | intro hz |
| 1545 | exact hx (by simp only [copied, ite_eq_left hn, hz, smul_zero]) |
| 1546 | have hk := hs l (copyPoint l n k x) hfn |
| 1547 | simp only [copyPoint, ActualSignedGeometry.copyPoint] at hk ⊢ |
| 1548 | exact hk |
| 1549 | · exact (hx (by simp only [copied, ite_eq_right hn])).elim |
| 1550 | |
| 1551 | theorem cut_native_velocity_support (l : SignedLabel B N0) (x : Native) |
| 1552 | (hx : cutNativeVelocity l x ≠ 0) : x.2 ∈ (ActualPrimary.clockWindow l.2).core := by |
| 1553 | apply ActualPrimary.attachedRawVelocity_core l.1 l.2 x |
| 1554 | intro hz |
| 1555 | exact hx (by simp only [cutNativeVelocity, hz, map_zero, smul_zero]) |
| 1556 | |
| 1557 | theorem cut_native_pressure_support (l : SignedLabel B N0) (x : Native) |
| 1558 | (hx : cutNativePressure l x ≠ 0) : x.2 ∈ (ActualPrimary.clockWindow l.2).core := by |
| 1559 | apply ActualPrimary.attachedRawPressure_core l.1 l.2 x |
| 1560 | intro hz |
| 1561 | exact hx (by simp only [cutNativePressure, hz, smul_zero]) |
| 1562 | |
| 1563 | theorem cut_native_zero_germs (l : SignedLabel B N0) {x : Native} |
| 1564 | (hT : 0 < x.1.2.2) |
| 1565 | (hout : x.1 ∉ (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2 ∨ |
| 1566 | SimilarityHomogeneity.chartQ ActualPrimary.h x.1 ∉ Icc (1 / 2 : ℝ) 2) : |
| 1567 | (cutNativeVelocity l =ᶠ[𝓝 x] fun _ => 0) ∧ (cutNativePressure l =ᶠ[𝓝 x] fun _ => 0) := by |
| 1568 | have hz : (ActualPrimary.outerRawVelocity l.1 l.2 =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 1569 | (ActualPrimary.outerRawPressure l.1 l.2 =ᶠ[𝓝 x] fun _ => 0) := by |
| 1570 | have hh : (NativeBandExtension.bandVelocity ActualPrimary.certificate ActualPrimary.modulation |
| 1571 | (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos ActualPrimary.radialVector ActualPrimary.temporalVector l.1 l.2 =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 1572 | (NativeBandExtension.bandPressure ActualPrimary.certificate ActualPrimary.modulation |
| 1573 | (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos ActualPrimary.radialVector ActualPrimary.temporalVector l.1 l.2 =ᶠ[𝓝 x] fun _ => 0) := by |
| 1574 | rcases hout with hp | hq |
| 1575 | · exact NativeBandExtension.band_pair_zero_germ_cell ActualPrimary.certificate ActualPrimary.modulation |
| 1576 | (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos ActualPrimary.radialVector ActualPrimary.temporalVector l.1 l.2 hT hp |
| 1577 | · exact NativeBandExtension.band_pair_zero_germ_factor ActualPrimary.certificate ActualPrimary.modulation |
| 1578 | (ActualPrimary.choice B N0).prepared ActualPrimary.slots.radius_pos ActualPrimary.radialVector ActualPrimary.temporalVector l.1 l.2 |
| 1579 | (NativeBandExtension.factor_zero_germ_band ActualPrimary.certificate ActualPrimary.modulation |
| 1580 | (ActualPrimary.choice B N0).prepared l.2 hT hq) |
| 1581 | simpa only [ActualPrimary.bandVelocity_eq, ActualPrimary.bandPressure_eq] using hh |
| 1582 | constructor |
| 1583 | · filter_upwards [hz.1] with y hy |
| 1584 | simp only [cutNativeVelocity, ActualPrimary.attachedRawVelocity, |
| 1585 | WaveEdgeExtension.nativeExtension, WaveEdgeExtension.extension, hy, ite_self, map_zero, smul_zero] |
| 1586 | · filter_upwards [hz.2] with y hy |
| 1587 | simp only [cutNativePressure, ActualPrimary.attachedRawPressure, |
| 1588 | WaveEdgeExtension.nativeExtension, WaveEdgeExtension.extension, hy, ite_self, smul_zero] |
| 1589 | |
| 1590 | /-- Every point has either an actual controlled native copy, or a |
| 1591 | neighborhood on which both literal input coefficients vanish. -/ |
| 1592 | theorem actual_input_cover (l : SignedLabel B N0) (n : ℕ) {x : ActualPrimary.FullPoint} |
| 1593 | (hx : x ∈ fullStrip.domain) : |
| 1594 | (∃ k, x ∈ controlCell n (l, k)) ∨ |
| 1595 | ((cutCoefficients l).amplitude n =ᶠ[𝓝 x] fun _ => 0) ∧ |
| 1596 | ((cutCoefficients l).pressure n =ᶠ[𝓝 x] fun _ => 0) := by |
| 1597 | classical |
| 1598 | have ha := cut_amplitude_germ l n hx |
| 1599 | have hp := cut_pressure_germ l n hx |
| 1600 | have hsA := copied_support (CoordinateAlgebra.A ActualPrimary.h) cutNativeVelocity |
| 1601 | cut_native_velocity_support l n |
| 1602 | have hsP := copied_support (2 * CoordinateAlgebra.A ActualPrimary.h) cutNativePressure |
| 1603 | cut_native_pressure_support l n |
| 1604 | by_cases hn : near l n |
| 1605 | · by_cases he : ∃ k, nativeOfFull x ∈ (copyCells l).carrier n k |
| 1606 | · obtain ⟨k, hk⟩ := he |
| 1607 | have hcore : (fullCopy l n k x).2 ∈ (ActualPrimary.clockWindow l.2).core := by |
| 1608 | simp only [fullCopy, copyPoint, ActualSignedGeometry.copyPoint] at hk ⊢ |
| 1609 | exact hk |
| 1610 | by_cases hc : (fullCopy l n k x).1 ∈ |
| 1611 | (PrimaryGeometryAssembly.domain ActualPrimary.nominal (ActualPrimary.choice B N0).prepared.N).carrier l.2 ∧ |
| 1612 | SimilarityHomogeneity.chartQ ActualPrimary.h (fullCopy l n k x).1 ∈ Icc (1 / 2 : ℝ) 2 |
| 1613 | · exact Or.inl ⟨k, hn, hc.1, hcore, hc.2⟩ |
| 1614 | · right |
| 1615 | have hz := cut_native_zero_germs l (x := fullCopy l n k x) |
| 1616 | (copyPoint_radial l n k (x := nativeOfFull x) hx).1 (not_and_or.mp hc) |
| 1617 | have ht : Tendsto (fullCopy l n k) (𝓝 x) (𝓝 (fullCopy l n k x)) := |
| 1618 | ((copyPoint_smooth l n k).continuous.comp nativeOfFull.continuous).continuousAt |
| 1619 | have hAz := hz.1.comp_tendsto ht |
| 1620 | have hPz := hz.2.comp_tendsto ht |
| 1621 | have hAg := (PeriodizedWaveBounds.copySum_germ (copyCells l) n |
| 1622 | (copied (CoordinateAlgebra.A ActualPrimary.h) cutNativeVelocity l n) hsA hk).comp_tendsto |
| 1623 | nativeOfFull.continuous.continuousAt |
| 1624 | have hPg := (PeriodizedWaveBounds.copySum_germ (copyCells l) n |
| 1625 | (copied (2 * CoordinateAlgebra.A ActualPrimary.h) cutNativePressure l n) hsP hk).comp_tendsto |
| 1626 | nativeOfFull.continuous.continuousAt |
| 1627 | constructor |
| 1628 | · filter_upwards [ha, hAg, hAz] with y hay hgy hzy |
| 1629 | change cutNativeVelocity l (fullCopy l n k y) = 0 at hzy |
| 1630 | simp only [Function.comp_apply] at hgy |
| 1631 | rw [hay] |
| 1632 | change PeriodizedWaveBounds.copySum _ (nativeOfFull y) = _ |
| 1633 | rw [hgy] |
| 1634 | simp only [copied, ite_eq_left hn] |
| 1635 | change coefficientScale (CoordinateAlgebra.A ActualPrimary.h) l n • |
| 1636 | cutNativeVelocity l (fullCopy l n k y) = 0 |
| 1637 | rw [hzy, smul_zero] |
| 1638 | · filter_upwards [hp, hPg, hPz] with y hpy hgy hzy |
| 1639 | change cutNativePressure l (fullCopy l n k y) = 0 at hzy |
| 1640 | simp only [Function.comp_apply] at hgy |
| 1641 | rw [hpy] |
| 1642 | change PeriodizedWaveBounds.copySum _ (nativeOfFull y) = _ |
| 1643 | rw [hgy] |
| 1644 | simp only [copied, ite_eq_left hn] |
| 1645 | change coefficientScale (2 * CoordinateAlgebra.A ActualPrimary.h) l n • |
| 1646 | cutNativePressure l (fullCopy l n k y) = 0 |
| 1647 | rw [hzy, smul_zero] |
| 1648 | · right |
| 1649 | have hAg := (PeriodizedWaveBounds.copySum_zero_germ (copyCells l) n |
| 1650 | (copied (CoordinateAlgebra.A ActualPrimary.h) cutNativeVelocity l n) hsA |
| 1651 | (not_exists.mp he)).comp_tendsto nativeOfFull.continuous.continuousAt |
| 1652 | have hPg := (PeriodizedWaveBounds.copySum_zero_germ (copyCells l) n |
| 1653 | (copied (2 * CoordinateAlgebra.A ActualPrimary.h) cutNativePressure l n) hsP |
| 1654 | (not_exists.mp he)).comp_tendsto nativeOfFull.continuous.continuousAt |
| 1655 | exact ⟨ha.trans hAg, hp.trans hPg⟩ |
| 1656 | · right |
| 1657 | constructor |
| 1658 | · filter_upwards [ha] with y hy |
| 1659 | simpa only [periodized, PeriodizedWaveBounds.copySum, copied, ite_eq_right hn, tsum_zero] using hy |
| 1660 | · filter_upwards [hp] with y hy |
| 1661 | simpa only [periodized, PeriodizedWaveBounds.copySum, copied, ite_eq_right hn, tsum_zero] using hy |
| 1662 | |
| 1663 | end ActualSupportCover |
| 1664 | |
| 1665 | section UniformActualOutputs |
| 1666 | |
| 1667 | variable {B N0 : ℕ} |
| 1668 | |
| 1669 | theorem chart_curl_uniform : LabelSumBounds.UniformWaveClass fullStrip |
| 1670 | (fullEnvelope (B := B) (N0 := N0)) (1 - ChartScales.kappa) |
| 1671 | (fun l => (cutCoefficients l).curlCorrection fullStrip (directions B)) := by |
| 1672 | have hj : PeriodizedWaveBounds.UniformLocalJets fullStrip |
| 1673 | (fun l n x => Real.sqrt (fullStrip.zeta x) * fullEnvelope l n x) |
| 1674 | (1 - ChartScales.kappa) (fun (l : SignedLabel B N0) n k => controlCell n (l, k)) |
| 1675 | (fun l n _k => (cutCoefficients l).curlCorrection fullStrip (directions B) n) := |
| 1676 | actual_local_curl.to_uniformLocalJets |
| 1677 | apply PeriodizedWaveBounds.uniformClass_of_local_germs |
| 1678 | (fun l n x _ => mul_nonneg (Real.sqrt_nonneg _) (fullEnvelope_nonneg l n x)) hj |
| 1679 | intro l n x hx |
| 1680 | rcases actual_input_cover l n hx with ⟨k, hk⟩ | ⟨ha, hp⟩ |
| 1681 | · exact Or.inl ⟨k, hk, Filter.EventuallyEq.rfl⟩ |
| 1682 | · exact Or.inr ((actualFamily (B := B) (N0 := N0)).outputs_zero_germs fullStrip (directions B) |
| 1683 | (i := (l, 0)) ha hp).1 |
| 1684 | |
| 1685 | theorem chart_exact_amplitude_uniform : LabelSumBounds.UniformWaveClass fullStrip |
| 1686 | (fullEnvelope (B := B) (N0 := N0)) (1 / 2) |
| 1687 | (fun l => (ActualPrimary.piece region l.1 l.2).exactCoefficients.amplitude) := by |
| 1688 | have hc := (chart_curl_uniform (B := B) (N0 := N0)).mono_exponent |
| 1689 | (show (1 / 2 : ℝ) ≤ 1 - ChartScales.kappa by norm_num [ChartScales.kappa]) |
| 1690 | exact chart_cut_amplitude_uniform.add hc |
| 1691 | |
| 1692 | theorem chart_difference_uniform : LabelSumBounds.UniformWaveClass fullStrip |
| 1693 | (fullEnvelope (B := B) (N0 := N0)) (1 - ChartScales.kappa) |
| 1694 | (fun l n x => (ActualPrimary.piece region l.1 l.2).exactCoefficients.amplitude n x - |
| 1695 | (cutCoefficients l).amplitude n x) := by |
| 1696 | apply chart_curl_uniform.congr |
| 1697 | intro l n x _ |
| 1698 | simp only [PrimaryPiece.exactCoefficients, ActualPrimary.piece, |
| 1699 | LinearWaveBounds.WaveCoefficients.corrected, LinearWaveBounds.WaveCoefficients.addAmplitude, |
| 1700 | cutCoefficients, add_sub_cancel_left] |
| 1701 | rfl |
| 1702 | |
| 1703 | theorem chart_exact_pressure_uniform : LabelSumBounds.UniformWaveClass fullStrip |
| 1704 | (fullEnvelope (B := B) (N0 := N0)) 1 |
| 1705 | (fun l => (ActualPrimary.piece region l.1 l.2).exactCoefficients.pressure) := |
| 1706 | chart_cut_pressure_uniform |
| 1707 | |
| 1708 | theorem chart_good_uniform : LabelSumBounds.UniformWaveClass fullStrip |
| 1709 | (fullEnvelope (B := B) (N0 := N0)) (1 - 3 * ChartScales.kappa) |
| 1710 | (fun l => (ActualPrimary.piece region l.1 l.2).linearGood) := by |
| 1711 | have hg := actual_local_good (B := B) (N0 := N0) |
| 1712 | rw [actualFamily_good_eq] at hg |
| 1713 | have hj : PeriodizedWaveBounds.UniformLocalJets fullStrip |
| 1714 | (fun l n x => Real.sqrt (fullStrip.zeta x) * fullEnvelope l n x) |
| 1715 | (1 - 3 * ChartScales.kappa) (fun (l : SignedLabel B N0) n k => controlCell n (l, k)) |
| 1716 | (fun l n _k => (ActualPrimary.piece region l.1 l.2).linearGood n) := |
| 1717 | hg.to_uniformLocalJets |
| 1718 | apply PeriodizedWaveBounds.uniformClass_of_local_germs |
| 1719 | (fun l n x _ => mul_nonneg (Real.sqrt_nonneg _) (fullEnvelope_nonneg l n x)) hj |
| 1720 | intro l n x hx |
| 1721 | rcases actual_input_cover l n hx with ⟨k, hk⟩ | ⟨ha, hp⟩ |
| 1722 | · exact Or.inl ⟨k, hk, Filter.EventuallyEq.rfl⟩ |
| 1723 | · have hz := ((actualFamily (B := B) (N0 := N0)).outputs_zero_germs fullStrip (directions B) |
| 1724 | (i := (l, 0)) ha hp).2.2 |
| 1725 | rw [actualFamily_good_eq] at hz |
| 1726 | exact Or.inr hz |
| 1727 | |
| 1728 | theorem exact_block_uniform : |
| 1729 | (∀ i m, LabelSumBounds.UniformWaveClass strip (meanEnvelope (B := B) (N0 := N0)) (1 / 2) |
| 1730 | (fun l n x => ((ActualPrimary.piece region l.1 l.2).harmonicBlock (phase l) (angularFrequency l)).velocity n i m x)) ∧ |
| 1731 | (∀ m, LabelSumBounds.UniformWaveClass strip (meanEnvelope (B := B) (N0 := N0)) 1 |
| 1732 | (fun l n x => ((ActualPrimary.piece region l.1 l.2).harmonicBlock (phase l) (angularFrequency l)).pressure n m x)) := |
| 1733 | UniformBlockBounds.blockOfCoefficients_product_uniform |
| 1734 | (fun l : SignedLabel B N0 => (ActualPrimary.piece region l.1 l.2).exactCoefficients) |
| 1735 | angularFrequency chart_exact_amplitude_uniform chart_exact_pressure_uniform |
| 1736 | |
| 1737 | theorem difference_block_uniform : |
| 1738 | ∀ i m, LabelSumBounds.UniformWaveClass strip (meanEnvelope (B := B) (N0 := N0)) |
| 1739 | (1 - ChartScales.kappa) |
| 1740 | (fun l n x => ((ActualPrimary.piece region l.1 l.2).differenceBlock (phase l) (angularFrequency l)).velocity n i m x) := by |
| 1741 | have hp : LabelSumBounds.UniformWaveClass fullStrip (fullEnvelope (B := B) (N0 := N0)) |
| 1742 | (1 - ChartScales.kappa) (fun _ _ _ => (0 : ℂ)) := |
| 1743 | LabelSumBounds.UniformClass.zero (fun l n x _ => |
| 1744 | mul_nonneg (Real.sqrt_nonneg _) (fullEnvelope_nonneg l n x)) |
| 1745 | exact (UniformBlockBounds.blockOfCoefficients_product_uniform |
| 1746 | (s := strip) (P := meanEnvelope (B := B) (N0 := N0)) |
| 1747 | (α := 1 - ChartScales.kappa) (γ := 1 - ChartScales.kappa) |
| 1748 | (fun l : SignedLabel B N0 => (ActualPrimary.piece region l.1 l.2).differenceCoefficients) |
| 1749 | angularFrequency chart_difference_uniform hp).1 |
| 1750 | |
| 1751 | end UniformActualOutputs |
| 1752 | |
| 1753 | end NavierStokes.ActualPrimaryBounds |