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.ActualCycleAssembly |
| 2 | import NavierStokes.ActualParticularMeanGain |
| 3 | import NavierStokes.ActualCycleCoherence |
| 4 | import NavierStokes.ActualCyclePeriodicity |
| 5 | import NavierStokes.ActualParticularDynamics |
| 6 | import NavierStokes.ActualParticularGaussian |
| 7 | |
| 8 | /-! |
| 9 | # Particular-wave data for the actual correction cycle |
| 10 | |
| 11 | The record below names the particular half of the cycle's analytic data. |
| 12 | Its producer uses the literal fixed-parameter solve and incoming invariant. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace NavierStokes.ActualParticularCycleData |
| 18 | |
| 19 | open Set Function Filter WeightedClasses CorrectionState CorrectionStep CorrectionInitialization |
| 20 | open scoped ContDiff Topology BigOperators |
| 21 | |
| 22 | |
| 23 | abbrev Point := ActualInitialization.Point |
| 24 | abbrev Index (B N0 : ℕ) := ActualInitialization.Index B N0 |
| 25 | |
| 26 | noncomputable abbrev parameters (B N0 : ℕ) := ActualCycleParameters.fixedParameters B N0 |
| 27 | |
| 28 | noncomputable abbrev block {B N0 : ℕ} (x : CycleState (Index B N0)) := |
| 29 | (parameters B N0).particularBlock x.coefficients (ActualPrimary.commonContext B) x.state |
| 30 | |
| 31 | noncomputable abbrev gaussianBlock {B N0 : ℕ} (x : CycleState (Index B N0)) := |
| 32 | (parameters B N0).particularGaussianBlock x.coefficients (ActualPrimary.commonContext B) x.state |
| 33 | |
| 34 | abbrev Invariant {B N0 : ℕ} (σ : ℝ) (x : CycleState (Index B N0)) : Prop := |
| 35 | CycleAnalyticInvariant ActualInitialization.geometry (ActualPrimary.commonContext B) |
| 36 | ActualInitialization.tangentBlock ActualInitialization.envelope |
| 37 | ActualCoreSupport.refinedCarrier σ x |
| 38 | |
| 39 | /-- The literal particular increment's analytic outputs. No signed-wave |
| 40 | estimate is required to prepare its mean and the subsequent signed request. -/ |
| 41 | structure Data {B N0 : ℕ} (x : CycleState (Index B N0)) (σ : ℝ) : Prop where |
| 42 | amplitude : ∀ i j, LabelSumBounds.UniformWaveClass ActualInitialization.strip |
| 43 | ActualInitialization.envelope (1/2+σ) (fun l n z => (block x l).velocity n i j z) |
| 44 | pressure : ∀ j, LabelSumBounds.UniformWaveClass ActualInitialization.strip |
| 45 | ActualInitialization.envelope (1+σ) (fun l n z => (block x l).pressure n j z) |
| 46 | coefficients : ∀ l n i, HarmonicResidual.SmoothCoefficients ActualInitialization.geometry.domain |
| 47 | ((block x l).velocity n i) |
| 48 | pressureCoefficients : ∀ l n, HarmonicResidual.SmoothCoefficients ActualInitialization.geometry.domain |
| 49 | ((block x l).pressure n) |
| 50 | gaussianCoefficients : ∀ l n i, HarmonicResidual.SmoothCoefficients ActualInitialization.geometry.domain |
| 51 | ((gaussianBlock x l).velocity n i) |
| 52 | solenoidal : ∀ l, HarmonicWaveInteraction.ModeSolenoidal ActualInitialization.strip |
| 53 | (ActualPrimary.commonContext B) (block x l) |
| 54 | gaussian : ∀ β i j, LabelSumBounds.UniformClass ActualInitialization.strip |
| 55 | (fun _ _ z => Real.sqrt (ActualInitialization.strip.zeta z)) β |
| 56 | (fun l n z => (gaussianBlock x l).velocity n i j z) |
| 57 | field : WaveStateRegularity.AngularSmooth ActualInitialization.geometry.domain |
| 58 | ((parameters B N0).particularVelocity x.coefficients (ActualPrimary.commonContext B) x.state) |
| 59 | pressureField : ∀ n, ContDiffOn ℝ ∞ |
| 60 | ((parameters B N0).particularPressure x.coefficients (ActualPrimary.commonContext B) x.state n) |
| 61 | (ActualInitialization.geometry.domain ×ˢ (univ : Set ℝ)) |
| 62 | periodic : OscillationPeriodic ActualPrimary.standardRegion.carrier |
| 63 | ((parameters B N0).particularVelocity x.coefficients (ActualPrimary.commonContext B) x.state) |
| 64 | support : WaveStateRegularity.WaveSupport ActualPrimary.standardRegion |
| 65 | ActualInitialization.patch.a ActualInitialization.patch.b |
| 66 | ((parameters B N0).particularVelocity x.coefficients (ActualPrimary.commonContext B) x.state) |
| 67 | linear : ∀ i j, j ≠ 0 → LabelSumBounds.UniformWaveClass ActualInitialization.strip |
| 68 | ActualInitialization.envelope (1+σ-3*ChartScales.kappa) |
| 69 | (fun l n z => |
| 70 | (HarmonicResidual.residualBlock (ActualPrimary.commonContext B) x.state |
| 71 | (x.coefficients.blocks l) (x.coefficients.gaussian l) |
| 72 | (x.coefficients.aliasCoefficients l)).velocity n i j z + |
| 73 | (HarmonicWaveInteraction.linearGoodBlock (ActualPrimary.commonContext B) |
| 74 | (x.coefficients.blocks l) (block x l) (gaussianBlock x l).velocity).velocity n i j z) |
| 75 | |
| 76 | namespace Data |
| 77 | |
| 78 | variable {B N0 : ℕ} {σ : ℝ} {x : CycleState (Index B N0)} |
| 79 | |
| 80 | /-- The actual geometric support supplies the remaining first-wave mean |
| 81 | inputs; this does not use any signed increment. -/ |
| 82 | theorem inputs (d : Data x σ) (H : Invariant σ x) |
| 83 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) : |
| 84 | ActualParticularMeanGain.Inputs x σ where |
| 85 | amplitude := d.amplitude |
| 86 | smooth := d.field |
| 87 | periodic := d.periodic |
| 88 | supported := d.support |
| 89 | old_support := ActualCycleAssembly.old_supported x H hN |
| 90 | ActualCoreSupport.refinedCarrier_subset_broad |
| 91 | particular_support := ActualCycleAssembly.particular_supported_of_inputSupport x hN |
| 92 | (ActualCycleAssembly.cycle_particular_inputSupport hN x (ActualPrimary.commonContext B) |
| 93 | (fun l => ActualCycleAssembly.inputSupport_mono (H.inputSupport l) |
| 94 | (ActualCoreSupport.refinedCarrier_subset_broad l))) |
| 95 | |
| 96 | end Data |
| 97 | |
| 98 | section NativeData |
| 99 | |
| 100 | variable {B N0 : ℕ} {σ : ℝ} {x : CycleState (Index B N0)} |
| 101 | |
| 102 | noncomputable def nativeData (x : CycleState (Index B N0)) (l : Index B N0) (j : ℤ) := |
| 103 | (ActualParticularStageControls.canonicalParameters (l.2,l.1)).copyData |
| 104 | (StateReindex.context cycleAssoc.symm (ActualPrimary.commonContext B)) |
| 105 | (StateReindex.state cycleAssoc.symm x.state) |
| 106 | (StateReindex.block cycleAssoc.symm (x.coefficients.blocks l)) |
| 107 | (StateReindex.blockCoefficients cycleAssoc.symm (x.coefficients.gaussian l)) |
| 108 | (StateReindex.blockCoefficients cycleAssoc.symm (x.coefficients.aliasCoefficients l)) j |
| 109 | |
| 110 | theorem preservesCarriers (H : Invariant σ x) : |
| 111 | ActualParticularDynamics.PreservesCarriers (ActualCycleParameters.particularState x) := |
| 112 | fun l => H.carrier (l.2,l.1) |
| 113 | |
| 114 | theorem native_inputSupport (H : Invariant σ x) : |
| 115 | ActualParticularStageControls.InputSupport (ActualCycleParameters.particularState x) := |
| 116 | fun l => ActualCycleAssembly.inputSupport_mono (H.inputSupport (l.2,l.1)) |
| 117 | (ActualCoreSupport.refinedCarrier_subset_broad (l.2,l.1)) |
| 118 | |
| 119 | theorem nativeData_eq_data (H : Invariant σ x) (l : Index B N0) (j : ℤ) : |
| 120 | nativeData x l j = ActualParticularStageControls.data |
| 121 | (ActualCycleParameters.particularState x) (l.2,l.1) j := by |
| 122 | unfold ActualParticularStageControls.data |
| 123 | rw [ActualParticularStageControls.parameters_eq_canonical _ _ |
| 124 | (ActualCycleParameters.current_frequency x l (H.carrier l))] |
| 125 | rfl |
| 126 | |
| 127 | theorem native_phase (H : Invariant σ x) (l : Index B N0) (j : ℤ) : |
| 128 | (nativeData x l j).background.phase = |
| 129 | (ActualParticularStageControls.background (l.2,l.1)).phase := by |
| 130 | rw [nativeData_eq_data H] |
| 131 | exact ActualParticularDynamics.data_phase (preservesCarriers H) (l.2,l.1) j |
| 132 | |
| 133 | theorem native_source_pull (l : Index B N0) (j : ℤ) (n : ℕ) : |
| 134 | (nativeData x l j).source n = fun z => |
| 135 | ParticularWaveAssembly.residualSource (ActualPrimary.commonContext B) x.state |
| 136 | (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l) |
| 137 | j n (ActualCarrierTransport.associatedPoint z.1.1 z.2) := |
| 138 | ActualParticularStageControls.currentSource_pull (ActualCycleParameters.particularState x) (l.2,l.1) j n |
| 139 | |
| 140 | theorem native_source_smooth (H : Invariant σ x) (l : Index B N0) (j : ℤ) (n : ℕ) : |
| 141 | ContDiffOn ℝ ∞ ((nativeData x l j).source n) |
| 142 | (ActualWaveRegularity.nativeDomain ActualWaveRegularity.particularChart ActualPrimary.standardRegion) := by |
| 143 | rw [native_source_pull] |
| 144 | apply (ActualCycleCoherence.source_smooth H ActualCoreSupport.refinedCarrier_closed |
| 145 | (fun l n _ hz hc => ActualCycleCoherence.core_radius_pos l n hz hc) l j n).comp |
| 146 | · exact (show ContDiff ℝ ∞ (fun z : ActualParticularStageControls.Native => |
| 147 | ActualCarrierTransport.associatedPoint z.1.1 z.2) by |
| 148 | exact cycleAssoc.symm.contDiff.comp |
| 149 | (contDiff_fst.fst.prodMk contDiff_snd)).contDiffOn |
| 150 | · intro z hz |
| 151 | exact hz.1 |
| 152 | |
| 153 | theorem native_source_exterior (H : Invariant σ x) (l : Index B N0) (j : ℤ) (n : ℕ) |
| 154 | {z : ActualParticularStageControls.Native} |
| 155 | (hz : z ∈ ActualWaveRegularity.nativeDomain ActualWaveRegularity.particularChart ActualPrimary.standardRegion) |
| 156 | (hr : ActualWaveRegularityData.radius (ActualWaveRegularity.particularChart.symm z) ∉ |
| 157 | Icc (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) |
| 158 | (PrimaryTargetBounds.rightRadius ActualPrimary.nominal)) : |
| 159 | (nativeData x l j).source n z = 0 := by |
| 160 | rw [native_source_pull] |
| 161 | apply (HarmonicSourceSupport.residualSource_zero_germ_on (ActualPrimary.commonContext B) x.state |
| 162 | (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l) |
| 163 | ActualInitialization.geometry.domain_open (ActualCoreSupport.refinedCarrier_closed l) |
| 164 | (H.inputSupport l) j n hz.1 ?_).self_of_nhds |
| 165 | intro hc |
| 166 | exact hr ((ActualCoreSupport.mem_refinedCarrier_iff l n hz.1.1).mp hc).2.1 |
| 167 | |
| 168 | theorem native_inactive (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 169 | (l : Index B N0) (n : ℕ) (hn : ¬ActualWaveRegularityData.Ordered l n) (j : ℤ) |
| 170 | {z : ActualParticularStageControls.Native} |
| 171 | (hz : z ∈ ActualWaveRegularity.nativeDomain ActualWaveRegularity.particularChart ActualPrimary.standardRegion) : |
| 172 | (nativeData x l j).common.amplitude n =ᶠ[𝓝 z] fun _ => 0 := by |
| 173 | exact (ActualCycleAssembly.refined_particular_zero_germs hN l (ActualPrimary.commonContext B) |
| 174 | x.state (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l) |
| 175 | (H.inputSupport l) j ActualWaveRegularityData.particularFullStrip n hz.1 |
| 176 | (fun hc => hn (ActualCycleCoherence.core_ordered l n hz.1 hc))).1 |
| 177 | |
| 178 | theorem native_source_boundary (H : Invariant σ x) (l : Index B N0) (j : ℤ) (n : ℕ) |
| 179 | {z : ActualParticularStageControls.Native} |
| 180 | (hz : z ∈ ActualWaveRegularity.nativeDomain ActualWaveRegularity.particularChart ActualPrimary.standardRegion) |
| 181 | (hr : ActualWaveRegularityData.radius (ActualWaveRegularity.particularChart.symm z) ∉ |
| 182 | Ioo (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) |
| 183 | (PrimaryTargetBounds.rightRadius ActualPrimary.nominal)) : |
| 184 | (nativeData x l j).source n z = 0 := |
| 185 | ActualWaveRegularityData.particular_zero_on_radial_faces |
| 186 | (native_source_smooth H l j n).continuousOn |
| 187 | (fun _ hz hr => native_source_exterior H l j n hz hr) hz hr |
| 188 | |
| 189 | theorem native_raw_boundary (H : Invariant σ x) (l : Index B N0) (j : ℤ) (n : ℕ) |
| 190 | (k : TorusInverse.Frequency) {z : ActualParticularStageControls.Native} |
| 191 | (hz : z ∈ ActualWaveRegularity.nativeDomain ActualWaveRegularity.particularChart ActualPrimary.standardRegion) |
| 192 | (hr : ActualWaveRegularityData.radius (ActualWaveRegularity.particularChart.symm z) ∉ |
| 193 | Ioo (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) |
| 194 | (PrimaryTargetBounds.rightRadius ActualPrimary.nominal)) : |
| 195 | (nativeData x l j).amplitude n k z = 0 := by |
| 196 | change ParticularWaveBounds.complexCopyVelocity |
| 197 | (ParticularWaveAssembly.angleTangent ((ActualParticularStageControls.canonicalParameters (l.2,l.1)).tangent j n)) |
| 198 | ((nativeData x l j).source n) ((ActualParticularStageControls.canonicalParameters (l.2,l.1)).geometry n) |
| 199 | ((ActualParticularStageControls.canonicalParameters (l.2,l.1)).length_pos n).le k z = 0 |
| 200 | apply ParticularWaveBounds.complexCopyVelocity_zero_of_path |
| 201 | intro v _hv |
| 202 | exact native_source_boundary H l j n hz hr |
| 203 | |
| 204 | theorem native_pressure_boundary (H : Invariant σ x) (l : Index B N0) (j : ℤ) (n : ℕ) |
| 205 | (k : TorusInverse.Frequency) {z : ActualParticularStageControls.Native} |
| 206 | (hz : z ∈ ActualWaveRegularity.nativeDomain ActualWaveRegularity.particularChart ActualPrimary.standardRegion) |
| 207 | (hr : ActualWaveRegularityData.radius (ActualWaveRegularity.particularChart.symm z) ∉ |
| 208 | Ioo (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) |
| 209 | (PrimaryTargetBounds.rightRadius ActualPrimary.nominal)) : |
| 210 | (nativeData x l j).pressure n k z = 0 := by |
| 211 | let t := ParticularWaveAssembly.angleTangent |
| 212 | ((ActualParticularStageControls.canonicalParameters (l.2,l.1)).tangent j n) |
| 213 | let g := (ActualParticularStageControls.canonicalParameters (l.2,l.1)).geometry n |
| 214 | let L := (ActualParticularStageControls.canonicalParameters (l.2,l.1)).length n |
| 215 | have hL : 0 ≤ L := ((ActualParticularStageControls.canonicalParameters (l.2,l.1)).length_pos n).le |
| 216 | let f := (nativeData x l j).source n |
| 217 | have hpath (v : ℝ) (_hv : v ∈ Icc 0 L) : f (z.1, g.path k z.2 v) = 0 := |
| 218 | native_source_boundary H l j n hz hr |
| 219 | have hcurrent : f z = 0 := native_source_boundary H l j n hz hr |
| 220 | change ParticularWaveBounds.complexCopyPressure t f g hL k |
| 221 | ((nativeData x l j).background.frequency n) z = 0 |
| 222 | unfold ParticularWaveBounds.complexCopyPressure |
| 223 | have hr0 := ParticularWaveBounds.copyPressure_zero_of_path (ParticularWaveBounds.realData t f) |
| 224 | g hL k ((nativeData x l j).background.frequency n) z.1 z.2 |
| 225 | (fun v hv => by |
| 226 | change ParticularWaveBounds.realPart (f (z.1,g.path k z.2 v)) = 0 |
| 227 | rw [hpath v hv, map_zero]) |
| 228 | (by change ParticularWaveBounds.realPart (f z) = 0; rw [hcurrent, map_zero]) |
| 229 | have hi0 := ParticularWaveBounds.copyPressure_zero_of_path (ParticularWaveBounds.imagData t f) |
| 230 | g hL k ((nativeData x l j).background.frequency n) z.1 z.2 |
| 231 | (fun v hv => by |
| 232 | change ParticularWaveBounds.imagPart (f (z.1,g.path k z.2 v)) = 0 |
| 233 | rw [hpath v hv, map_zero]) |
| 234 | (by change ParticularWaveBounds.imagPart (f z) = 0; rw [hcurrent, map_zero]) |
| 235 | rw [hr0, hi0, mul_zero, add_zero] |
| 236 | |
| 237 | theorem native_common_boundary (H : Invariant σ x) (l : Index B N0) (j : ℤ) (n : ℕ) |
| 238 | {z : ActualParticularStageControls.Native} |
| 239 | (hz : z ∈ ActualWaveRegularity.nativeDomain ActualWaveRegularity.particularChart ActualPrimary.standardRegion) |
| 240 | (hr : ActualWaveRegularityData.radius (ActualWaveRegularity.particularChart.symm z) ∉ |
| 241 | Ioo (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) |
| 242 | (PrimaryTargetBounds.rightRadius ActualPrimary.nominal)) : |
| 243 | (nativeData x l j).common.amplitude n z = 0 ∧ (nativeData x l j).common.pressure n z = 0 := by |
| 244 | constructor |
| 245 | · change (∑' k, (nativeData x l j).cutoff n k z • (nativeData x l j).amplitude n k z) = 0 |
| 246 | simp only [native_raw_boundary H l j n _ hz hr, smul_zero, tsum_zero] |
| 247 | · change (∑' k, ((nativeData x l j).cutoff n k z : ℂ) * (nativeData x l j).pressure n k z) = 0 |
| 248 | simp only [native_pressure_boundary H l j n _ hz hr, mul_zero, tsum_zero] |
| 249 | |
| 250 | theorem native_gaussian_boundary (H : Invariant σ x) (l : Index B N0) (j : ℤ) (n : ℕ) |
| 251 | {z : ActualParticularStageControls.Native} |
| 252 | (hz : z ∈ ActualWaveRegularity.nativeDomain ActualWaveRegularity.particularChart ActualPrimary.standardRegion) |
| 253 | (hr : ActualWaveRegularityData.radius (ActualWaveRegularity.particularChart.symm z) ∉ |
| 254 | Ioo (PrimaryTargetBounds.leftRadius ActualPrimary.nominal) |
| 255 | (PrimaryTargetBounds.rightRadius ActualPrimary.nominal)) : |
| 256 | (nativeData x l j).globalGaussian (ActualParticularStageControls.canonicalParameters (l.2,l.1)).directions n z = 0 := by |
| 257 | simp only [PeriodizedWaveBounds.CopyData.globalGaussian, PeriodizedWaveBounds.CopyData.globalTail, |
| 258 | PeriodizedWaveBounds.copySum, PeriodizedWaveBounds.CopyData.localTail, |
| 259 | native_raw_boundary H l j n _ hz hr, native_source_boundary H l j n hz hr, |
| 260 | smul_zero, tsum_zero, add_zero] |
| 261 | |
| 262 | theorem native_residual (H : Invariant σ x) : |
| 263 | UniformHarmonicInteraction.UniformVelocity |
| 264 | (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion) |
| 265 | ActualParticularStageControls.meanEnvelope (1/2+σ) |
| 266 | (fun l => HarmonicResidual.residualBlock (ActualPrimary.commonContext B) |
| 267 | (ActualCycleParameters.particularState x).state |
| 268 | ((ActualCycleParameters.particularState x).coefficients.blocks l) |
| 269 | ((ActualCycleParameters.particularState x).coefficients.gaussian l) |
| 270 | ((ActualCycleParameters.particularState x).coefficients.aliasCoefficients l)) := by |
| 271 | intro i j hj |
| 272 | have hh := (H.residual i j hj).reindex |
| 273 | (fun l : ActualParticularStageControls.Label B N0 => (l.2,l.1)) |
| 274 | refine ⟨?_, hh.smooth, ?_⟩ |
| 275 | · intro l n z hz |
| 276 | simp only [ActualParticularStageControls.meanEnvelope_eq_primary] |
| 277 | exact hh.weight_nonneg l n z hz |
| 278 | · intro m |
| 279 | obtain ⟨C,hC,p,hb⟩ := hh.bounds m |
| 280 | refine ⟨C,hC,p,?_⟩ |
| 281 | intro l n z hz q hq |
| 282 | have he := hb l n z hz q hq |
| 283 | simp only [majorant, ActualParticularStageControls.meanEnvelope_eq_primary] at he ⊢ |
| 284 | exact he |
| 285 | |
| 286 | theorem native_source_class (H : Invariant σ x) (j : ℤ) (hj : j ≠ 0) : |
| 287 | LabelSumBounds.UniformWaveClass |
| 288 | (CommonCoverClass.sourceStrip (ActualParticularControl.angleStrip ActualParticularStageControls.slowStrip)) |
| 289 | ActualParticularStageControls.nativeEnvelope (1/2+σ) |
| 290 | (ActualParticularStageControls.currentSource (ActualCycleParameters.particularState x) j) := |
| 291 | ActualParticularStageControls.current_source_class _ (native_residual H) j hj |
| 292 | |
| 293 | theorem native_envelope_le_one (l : Index B N0) (n : ℕ) (z : ActualParticularStageControls.Native) : |
| 294 | ActualParticularStageControls.nativeEnvelope (l.2,l.1) n z ≤ 1 := |
| 295 | ActualPrimaryBounds.envelope_le_one (l.2,l.1) n (0,z.2) |
| 296 | |
| 297 | theorem native_raw_class (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 298 | (l : Index B N0) (j : ℤ) (hj : j ≠ 0) : |
| 299 | MemClass ActualWaveRegularityData.particularFullStrip |
| 300 | (fun _ z => Real.sqrt (ActualWaveRegularityData.particularFullStrip.zeta z)) |
| 301 | (1/2+σ) (nativeData x l j).common.amplitude := by |
| 302 | have ha := (ActualParticularStageControls.common_bounds _ (preservesCarriers H) |
| 303 | (native_inputSupport H) hN j hj (native_source_class H j hj)).1.each (l.2,l.1) |
| 304 | rw [← nativeData_eq_data H l j] at ha |
| 305 | exact ha.mono_weight (fun _ _ _ => Real.sqrt_nonneg _) |
| 306 | (fun n z _ => mul_le_of_le_one_right (Real.sqrt_nonneg _) (native_envelope_le_one l n z)) |
| 307 | |
| 308 | theorem native_pressure_class (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 309 | (l : Index B N0) (j : ℤ) (hj : j ≠ 0) : |
| 310 | MemClass ActualWaveRegularityData.particularFullStrip |
| 311 | (fun _ z => Real.sqrt (ActualWaveRegularityData.particularFullStrip.zeta z)) |
| 312 | ((1/2+σ)+1/2) (nativeData x l j).common.pressure := by |
| 313 | have hp := (ActualParticularStageControls.common_bounds _ (preservesCarriers H) |
| 314 | (native_inputSupport H) hN j hj (native_source_class H j hj)).2.2.1.each (l.2,l.1) |
| 315 | rw [← nativeData_eq_data H l j] at hp |
| 316 | exact hp.mono_weight (fun _ _ _ => Real.sqrt_nonneg _) |
| 317 | (fun n z _ => mul_le_of_le_one_right (Real.sqrt_nonneg _) (native_envelope_le_one l n z)) |
| 318 | |
| 319 | theorem native_gaussian_class (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 320 | (l : Index B N0) (j : ℤ) (hj : j ≠ 0) (β : ℝ) : |
| 321 | MemClass ActualWaveRegularityData.particularFullStrip |
| 322 | (fun _ z => Real.sqrt (ActualWaveRegularityData.particularFullStrip.zeta z)) β |
| 323 | ((nativeData x l j).globalGaussian (ActualParticularStageControls.canonicalParameters (l.2,l.1)).directions) := by |
| 324 | have hg := (ActualParticularGaussian.globalGaussian_all_gains _ |
| 325 | (fun l => ActualCycleParameters.current_frequency x (l.2,l.1) (H.carrier (l.2,l.1))) |
| 326 | (native_inputSupport H) hN j hj (native_source_class H j hj) β).each (l.2,l.1) |
| 327 | rwa [← nativeData_eq_data H l j] at hg |
| 328 | |
| 329 | theorem native_raw_smooth (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 330 | (l : Index B N0) (j : ℤ) (hj : j ≠ 0) (n : ℕ) : |
| 331 | ContDiffOn ℝ ∞ ((nativeData x l j).common.amplitude n) |
| 332 | (ActualWaveRegularity.nativeDomain ActualWaveRegularity.particularChart ActualPrimary.standardRegion) := |
| 333 | (ActualWaveRegularityData.particular_full_regular_of_class (native_raw_class H hN l j hj) |
| 334 | (fun n _ hz hr => (native_common_boundary H l j n hz hr).1) n).1 |
| 335 | |
| 336 | theorem native_pressure_smooth (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 337 | (l : Index B N0) (j : ℤ) (hj : j ≠ 0) (n : ℕ) : |
| 338 | ContDiffOn ℝ ∞ ((nativeData x l j).common.pressure n) |
| 339 | (ActualWaveRegularity.nativeDomain ActualWaveRegularity.particularChart ActualPrimary.standardRegion) := |
| 340 | (ActualWaveRegularityData.particular_full_regular_of_class (native_pressure_class H hN l j hj) |
| 341 | (fun n _ hz hr => (native_common_boundary H l j n hz hr).2) n).1 |
| 342 | |
| 343 | theorem native_gaussian_smooth (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 344 | (l : Index B N0) (j : ℤ) (hj : j ≠ 0) (n : ℕ) : |
| 345 | ContDiffOn ℝ ∞ ((nativeData x l j).globalGaussian |
| 346 | (ActualParticularStageControls.canonicalParameters (l.2,l.1)).directions n) |
| 347 | (ActualWaveRegularity.nativeDomain ActualWaveRegularity.particularChart ActualPrimary.standardRegion) := |
| 348 | (ActualWaveRegularityData.particular_full_regular_of_class (native_gaussian_class H hN l j hj 0) |
| 349 | (fun n _ hz hr => native_gaussian_boundary H l j n hz hr) n).1 |
| 350 | |
| 351 | theorem native_corrected_smooth (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 352 | (l : Index B N0) (j : ℤ) (hj : j ≠ 0) (n : ℕ) : |
| 353 | ContDiffOn ℝ ∞ (((nativeData x l j).commonCorrected ActualWaveRegularityData.particularFullStrip |
| 354 | (ActualParticularStageControls.canonicalParameters (l.2,l.1)).directions).amplitude n) |
| 355 | (ActualWaveRegularity.nativeDomain ActualWaveRegularity.particularChart ActualPrimary.standardRegion) := |
| 356 | ActualWaveRegularityData.particular_corrected_smooth (l.2,l.1) _ _ _ _ _ j |
| 357 | (native_phase H l j) (native_raw_class H hN l j hj) |
| 358 | (fun n _ hz hr => (native_common_boundary H l j n hz hr).1) n |
| 359 | |
| 360 | theorem source_inactive (H : Invariant σ x) (l : Index B N0) (n : ℕ) |
| 361 | (hn : ¬ActualWaveRegularityData.Ordered l n) (j : ℤ) {z : Point} |
| 362 | (hz : z ∈ ActualInitialization.geometry.domain) : |
| 363 | ParticularWaveAssembly.residualSource (ActualPrimary.commonContext B) x.state |
| 364 | (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l) j n z = 0 := |
| 365 | (HarmonicSourceSupport.residualSource_zero_germ_on (ActualPrimary.commonContext B) x.state |
| 366 | (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l) |
| 367 | ActualInitialization.geometry.domain_open (ActualCoreSupport.refinedCarrier_closed l) |
| 368 | (H.inputSupport l) j n hz (fun hc => hn (ActualCycleCoherence.core_ordered l n hz hc))).self_of_nhds |
| 369 | |
| 370 | theorem native_source_periodic (H : Invariant σ x) (T : ActualCyclePeriodicity.Periodic x) |
| 371 | (l : Index B N0) (j : ℤ) (n : ℕ) (z : ActualParticularStageControls.Native) |
| 372 | (hz : z ∈ ActualWaveRegularity.nativeDomain ActualWaveRegularity.particularChart ActualPrimary.standardRegion) : |
| 373 | CommonCoverSolve.PeriodicAt ((nativeData x l j).source n) z.1 := |
| 374 | ActualCyclePeriodicity.copies_source_periodic H T |
| 375 | (fun l n hn j _ hz => source_inactive H l n hn j hz) l j n z hz |
| 376 | |
| 377 | noncomputable def nativeMode (x : CycleState (Index B N0)) (l : Index B N0) (j : ℤ) := |
| 378 | ActualWaveRegularity.modeOscillation (nativeData x l j) ActualWaveRegularityData.particularFullStrip |
| 379 | (ActualParticularStageControls.canonicalParameters (l.2,l.1)).directions |
| 380 | ActualWaveRegularity.particularChart |
| 381 | |
| 382 | theorem native_mode_smooth (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 383 | (l : Index B N0) (j : ℤ) (hj : j ≠ 0) : |
| 384 | WaveStateRegularity.AngularSmooth ActualInitialization.geometry.domain (nativeMode x l j) := |
| 385 | ActualWaveRegularityData.particular_mode_smooth (l.2,l.1) _ _ _ _ _ j |
| 386 | (native_phase H l j) (native_raw_class H hN l j hj) |
| 387 | (fun n _ hz hr => (native_common_boundary H l j n hz hr).1) |
| 388 | |
| 389 | theorem native_mode_support (H : Invariant σ x) (l : Index B N0) (j : ℤ) : |
| 390 | WaveStateRegularity.WaveSupport ActualPrimary.standardRegion |
| 391 | ActualInitialization.patch.a ActualInitialization.patch.b (nativeMode x l j) := |
| 392 | ActualWaveRegularityData.particular_mode_support (l.2,l.1) _ _ _ _ _ j |
| 393 | (fun n _ hz hr => (native_common_boundary H l j n hz hr).1) |
| 394 | |
| 395 | theorem native_mode_periodic (H : Invariant σ x) (T : ActualCyclePeriodicity.Periodic x) |
| 396 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) (l : Index B N0) (j : ℤ) : |
| 397 | OscillationPeriodic ActualPrimary.standardRegion.carrier (nativeMode x l j) := |
| 398 | ActualWaveRegularityData.particular_mode_periodic (l.2,l.1) _ _ _ _ _ j |
| 399 | (native_phase H l j) (native_source_periodic H T l j) |
| 400 | (fun n hn _ hz => native_inactive H hN l n hn j hz) |
| 401 | |
| 402 | theorem block_eq_modes (H : Invariant σ x) (l : Index B N0) : |
| 403 | (block x l).oscillation = LabelSumBounds.fieldSum |
| 404 | (fun _ => ParticularWaveAssembly.modes x.coefficients.residualBand) (nativeMode x l) := |
| 405 | ActualWaveRegularity.particularBlock_eq_modes (parameters B N0) x.coefficients |
| 406 | (ActualPrimary.commonContext B) x.state l |
| 407 | (fun n => (ActualParticularDynamics.native_angular (ActualCycleParameters.particularState x) |
| 408 | (l.2,l.1) 1 n 0).radius) |
| 409 | (fun n => (ActualParticularDynamics.native_angular (ActualCycleParameters.particularState x) |
| 410 | (l.2,l.1) 1 n 0).radial_field) |
| 411 | (H.frequency l) |
| 412 | |
| 413 | theorem block_regular (H : Invariant σ x) (T : ActualCyclePeriodicity.Periodic x) |
| 414 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) (l : Index B N0) : |
| 415 | WaveStateRegularity.AngularSmooth ActualInitialization.geometry.domain (block x l).oscillation ∧ |
| 416 | OscillationPeriodic ActualPrimary.standardRegion.carrier (block x l).oscillation ∧ |
| 417 | WaveStateRegularity.WaveSupport ActualPrimary.standardRegion |
| 418 | ActualInitialization.patch.a ActualInitialization.patch.b (block x l).oscillation := by |
| 419 | rw [block_eq_modes H l] |
| 420 | exact ActualWaveRegularity.finset_regular _ _ (fun j hj => |
| 421 | ⟨native_mode_smooth H hN l j ((ParticularWaveAssembly.mem_modes _ _).mp hj).1, |
| 422 | native_mode_periodic H T hN l j, native_mode_support H l j⟩) |
| 423 | |
| 424 | theorem field_regular (H : Invariant σ x) (T : ActualCyclePeriodicity.Periodic x) |
| 425 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) : |
| 426 | WaveStateRegularity.AngularSmooth ActualInitialization.geometry.domain |
| 427 | ((parameters B N0).particularVelocity x.coefficients (ActualPrimary.commonContext B) x.state) ∧ |
| 428 | OscillationPeriodic ActualPrimary.standardRegion.carrier |
| 429 | ((parameters B N0).particularVelocity x.coefficients (ActualPrimary.commonContext B) x.state) ∧ |
| 430 | WaveStateRegularity.WaveSupport ActualPrimary.standardRegion |
| 431 | ActualInitialization.patch.a ActualInitialization.patch.b |
| 432 | ((parameters B N0).particularVelocity x.coefficients (ActualPrimary.commonContext B) x.state) := |
| 433 | ⟨ActualWaveRegularity.finite_smooth _ _ (fun l => (block_regular H T hN l).1), |
| 434 | ActualWaveRegularity.finite_periodic _ _ (fun l => (block_regular H T hN l).2.1), |
| 435 | ActualWaveRegularity.finite_support _ _ (fun l => (block_regular H T hN l).2.2)⟩ |
| 436 | |
| 437 | end NativeData |
| 438 | |
| 439 | section FiniteCoefficients |
| 440 | |
| 441 | variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 442 | |
| 443 | theorem pair_smooth {U : Set D} {f : D → ℂ} (hf : ContDiffOn ℝ ∞ f U) (j : ℤ) : |
| 444 | HarmonicResidual.SmoothCoefficients U (ErrorHarmonics.conjugatePair j f) := by |
| 445 | intro m |
| 446 | change ContDiffOn ℝ ∞ (fun x => ErrorHarmonics.conjugatePair j f m x) U |
| 447 | simp only [ParticularWaveAssembly.pair_apply] |
| 448 | have hleft : ContDiffOn ℝ ∞ (fun x => if m = j then f x / 2 else 0) U := by |
| 449 | split_ifs |
| 450 | · exact hf.div_const _ |
| 451 | · exact contDiffOn_const |
| 452 | have hright : ContDiffOn ℝ ∞ (fun x => if -m = j then f x / 2 else 0) U := by |
| 453 | split_ifs |
| 454 | · exact hf.div_const _ |
| 455 | · exact contDiffOn_const |
| 456 | exact hleft.add (Complex.conjCLE.contDiff.comp_contDiffOn hright) |
| 457 | |
| 458 | theorem assembled_velocity_smooth {U : Set D} (N : ℕ) (k : ℕ → ℝ) |
| 459 | (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) |
| 460 | (v : ℤ → ℕ → D → HarmonicCalculus.ComplexVector) (p : ℤ → ℕ → D → ℂ) |
| 461 | (hv : ∀ j ∈ ParticularWaveAssembly.modes N, ∀ n, ContDiffOn ℝ ∞ (v j n) U) |
| 462 | (n : ℕ) (i : Fin 3) : |
| 463 | HarmonicResidual.SmoothCoefficients U |
| 464 | ((ParticularWaveAssembly.assembledBlock N k Φ kp v p).velocity n i) := by |
| 465 | intro m |
| 466 | change ContDiffOn ℝ ∞ (fun x => |
| 467 | (∑ j ∈ ParticularWaveAssembly.modes N, ErrorHarmonics.conjugatePair j (fun y => v j n y i)) m x) U |
| 468 | have he : (fun x => (∑ j ∈ ParticularWaveAssembly.modes N, |
| 469 | ErrorHarmonics.conjugatePair j (fun y => v j n y i)) m x) = |
| 470 | (fun x => ∑ j ∈ ParticularWaveAssembly.modes N, |
| 471 | ErrorHarmonics.conjugatePair j (fun y => v j n y i) m x) := by |
| 472 | funext x |
| 473 | rw [AddMonoidAlgebra.coeff_sum, Finsupp.finsetSum_apply, Finset.sum_apply] |
| 474 | rw [he] |
| 475 | apply ContDiffOn.sum |
| 476 | intro j hj |
| 477 | exact pair_smooth (contDiffOn_pi.mp (hv j hj n) i) j m |
| 478 | |
| 479 | theorem assembled_pressure_smooth {U : Set D} (N : ℕ) (k : ℕ → ℝ) |
| 480 | (Φ : ℕ → D → ℝ) (kp : ℕ → ℤ) |
| 481 | (v : ℤ → ℕ → D → HarmonicCalculus.ComplexVector) (p : ℤ → ℕ → D → ℂ) |
| 482 | (hp : ∀ j ∈ ParticularWaveAssembly.modes N, ∀ n, ContDiffOn ℝ ∞ (p j n) U) |
| 483 | (n : ℕ) : |
| 484 | HarmonicResidual.SmoothCoefficients U |
| 485 | ((ParticularWaveAssembly.assembledBlock N k Φ kp v p).pressure n) := by |
| 486 | intro m |
| 487 | change ContDiffOn ℝ ∞ (fun x => |
| 488 | (∑ j ∈ ParticularWaveAssembly.modes N, ErrorHarmonics.conjugatePair j (p j n)) m x) U |
| 489 | have he : (fun x => (∑ j ∈ ParticularWaveAssembly.modes N, |
| 490 | ErrorHarmonics.conjugatePair j (p j n)) m x) = |
| 491 | (fun x => ∑ j ∈ ParticularWaveAssembly.modes N, |
| 492 | ErrorHarmonics.conjugatePair j (p j n) m x) := by |
| 493 | funext x |
| 494 | rw [AddMonoidAlgebra.coeff_sum, Finsupp.finsetSum_apply, Finset.sum_apply] |
| 495 | rw [he] |
| 496 | apply ContDiffOn.sum |
| 497 | intro j hj |
| 498 | exact pair_smooth (hp j hj n) j m |
| 499 | |
| 500 | end FiniteCoefficients |
| 501 | |
| 502 | section Outputs |
| 503 | |
| 504 | variable {B N0 : ℕ} {σ : ℝ} {x : CycleState (Index B N0)} |
| 505 | |
| 506 | noncomputable def associatedDomain : Set (CycleSlow × TorusInverse.Plane) := |
| 507 | ActualCarrierTransport.parameterDomain ×ˢ Set.univ |
| 508 | |
| 509 | theorem native_slice_smooth {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 510 | {f : ActualParticularStageControls.Native → E} |
| 511 | (hf : ContDiffOn ℝ ∞ f (ActualWaveRegularity.nativeDomain |
| 512 | ActualWaveRegularity.particularChart ActualPrimary.standardRegion)) : |
| 513 | ContDiffOn ℝ ∞ (fun z => f (ParticularWaveAssembly.angleShuffle (z,0))) associatedDomain := by |
| 514 | apply hf.comp |
| 515 | (ParticularWaveAssembly.angleShuffle.contDiff.comp (contDiff_id.prodMk contDiff_const)).contDiffOn |
| 516 | intro z hz |
| 517 | exact ⟨hz.1, mem_univ _⟩ |
| 518 | |
| 519 | theorem coefficients_smooth (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 520 | (l : Index B N0) (n : ℕ) (i : Fin 3) : |
| 521 | HarmonicResidual.SmoothCoefficients ActualInitialization.geometry.domain ((block x l).velocity n i) := by |
| 522 | let a := ActualParticularStageControls.assembly (ActualCycleParameters.particularState x) (l.2,l.1) |
| 523 | let p := ActualParticularStageControls.canonicalParameters (l.2,l.1) |
| 524 | have hh : HarmonicResidual.SmoothCoefficients associatedDomain |
| 525 | ((p.updateBlock ActualParticularStageControls.associatedStrip a.context a.state a.carrierBlock |
| 526 | a.gaussianInput a.aliasInput x.coefficients.residualBand).velocity n i) := by |
| 527 | apply assembled_velocity_smooth |
| 528 | intro j hj m |
| 529 | exact native_slice_smooth (native_corrected_smooth H hN l j |
| 530 | ((ParticularWaveAssembly.mem_modes _ _).mp hj).1 m) |
| 531 | intro q |
| 532 | exact (hh q).comp cycleAssoc.contDiff.contDiffOn (fun z hz => ⟨hz, mem_univ _⟩) |
| 533 | |
| 534 | theorem pressure_coefficients_smooth (H : Invariant σ x) |
| 535 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) (l : Index B N0) (n : ℕ) : |
| 536 | HarmonicResidual.SmoothCoefficients ActualInitialization.geometry.domain ((block x l).pressure n) := by |
| 537 | let a := ActualParticularStageControls.assembly (ActualCycleParameters.particularState x) (l.2,l.1) |
| 538 | let p := ActualParticularStageControls.canonicalParameters (l.2,l.1) |
| 539 | have hh : HarmonicResidual.SmoothCoefficients associatedDomain |
| 540 | ((p.updateBlock ActualParticularStageControls.associatedStrip a.context a.state a.carrierBlock |
| 541 | a.gaussianInput a.aliasInput x.coefficients.residualBand).pressure n) := by |
| 542 | apply assembled_pressure_smooth |
| 543 | intro j hj m |
| 544 | exact native_slice_smooth (native_pressure_smooth H hN l j |
| 545 | ((ParticularWaveAssembly.mem_modes _ _).mp hj).1 m) |
| 546 | intro q |
| 547 | exact (hh q).comp cycleAssoc.contDiff.contDiffOn (fun z hz => ⟨hz, mem_univ _⟩) |
| 548 | |
| 549 | theorem gaussian_coefficients_smooth (H : Invariant σ x) |
| 550 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) (l : Index B N0) (n : ℕ) (i : Fin 3) : |
| 551 | HarmonicResidual.SmoothCoefficients ActualInitialization.geometry.domain |
| 552 | ((gaussianBlock x l).velocity n i) := by |
| 553 | let a := ActualParticularStageControls.assembly (ActualCycleParameters.particularState x) (l.2,l.1) |
| 554 | let p := ActualParticularStageControls.canonicalParameters (l.2,l.1) |
| 555 | have hh : HarmonicResidual.SmoothCoefficients associatedDomain |
| 556 | ((p.gaussianBlock a.context a.state a.carrierBlock a.gaussianInput a.aliasInput |
| 557 | x.coefficients.residualBand).velocity n i) := by |
| 558 | apply assembled_velocity_smooth |
| 559 | intro j hj m |
| 560 | exact native_slice_smooth (native_gaussian_smooth H hN l j |
| 561 | ((ParticularWaveAssembly.mem_modes _ _).mp hj).1 m) |
| 562 | intro q |
| 563 | exact (hh q).comp cycleAssoc.contDiff.contDiffOn (fun z hz => ⟨hz, mem_univ _⟩) |
| 564 | |
| 565 | theorem block_eq_output (H : Invariant σ x) (l : Index B N0) : |
| 566 | block x l = ActualParticularStageControls.outputBlock (ActualCycleParameters.particularState x) |
| 567 | x.coefficients.residualBand (l.2,l.1) := by |
| 568 | unfold ActualParticularStageControls.outputBlock ActualParticularStageControls.associatedUpdate |
| 569 | rw [ActualParticularStageControls.parameters_eq_canonical _ _ |
| 570 | (ActualCycleParameters.current_frequency x l (H.carrier l))] |
| 571 | rfl |
| 572 | |
| 573 | noncomputable def goodBlock (x : CycleState (Index B N0)) (l : Index B N0) := |
| 574 | ActualParticularStageControls.outputGood (ActualCycleParameters.particularState x) |
| 575 | x.coefficients.residualBand (l.2,l.1) |
| 576 | |
| 577 | theorem amplitude_bounds (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 578 | (i : Fin 3) (j : ℤ) : |
| 579 | LabelSumBounds.UniformWaveClass ActualInitialization.strip ActualInitialization.envelope |
| 580 | (1/2+σ) (fun l n z => (block x l).velocity n i j z) := by |
| 581 | have hh := ((ActualParticularStageControls.assembled_bounds _ (preservesCarriers H) |
| 582 | (native_inputSupport H) hN (native_residual H) x.coefficients.residualBand).1 i j).reindex |
| 583 | (fun l : Index B N0 => (l.2,l.1)) |
| 584 | have ht : LabelSumBounds.UniformWaveClass ActualInitialization.strip ActualInitialization.envelope |
| 585 | (1/2+σ) (fun l n z => (ActualParticularStageControls.outputBlock |
| 586 | (ActualCycleParameters.particularState x) x.coefficients.residualBand (l.2,l.1)).velocity n i j z) := by |
| 587 | simp only [LabelSumBounds.UniformWaveClass, ActualParticularStageControls.meanEnvelope_eq_primary] at hh ⊢ |
| 588 | exact hh |
| 589 | apply ht.congr |
| 590 | intro l n z _ |
| 591 | exact congrArg (fun b : HarmonicBlock Point => b.velocity n i j z) (block_eq_output H l).symm |
| 592 | |
| 593 | theorem pressure_bounds (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 594 | (j : ℤ) : |
| 595 | LabelSumBounds.UniformWaveClass ActualInitialization.strip ActualInitialization.envelope |
| 596 | (1+σ) (fun l n z => (block x l).pressure n j z) := by |
| 597 | have hh := ((ActualParticularStageControls.assembled_bounds _ (preservesCarriers H) |
| 598 | (native_inputSupport H) hN (native_residual H) x.coefficients.residualBand).2.1 j).reindex |
| 599 | (fun l : Index B N0 => (l.2,l.1)) |
| 600 | have he : (1/2:ℝ)+σ+1/2 = 1+σ := by ring |
| 601 | have ht : LabelSumBounds.UniformWaveClass ActualInitialization.strip ActualInitialization.envelope |
| 602 | (1+σ) (fun l n z => (ActualParticularStageControls.outputBlock |
| 603 | (ActualCycleParameters.particularState x) x.coefficients.residualBand (l.2,l.1)).pressure n j z) := by |
| 604 | simp only [LabelSumBounds.UniformWaveClass, ActualParticularStageControls.meanEnvelope_eq_primary, he] at hh ⊢ |
| 605 | exact hh |
| 606 | apply ht.congr |
| 607 | intro l n z _ |
| 608 | exact congrArg (fun b : HarmonicBlock Point => b.pressure n j z) (block_eq_output H l).symm |
| 609 | |
| 610 | theorem good_bounds (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 611 | (i : Fin 3) (j : ℤ) : |
| 612 | LabelSumBounds.UniformWaveClass ActualInitialization.strip ActualInitialization.envelope |
| 613 | (1+σ-3*ChartScales.kappa) (fun l n z => (goodBlock x l).velocity n i j z) := by |
| 614 | have hh := ((ActualParticularStageControls.assembled_bounds _ (preservesCarriers H) |
| 615 | (native_inputSupport H) hN (native_residual H) x.coefficients.residualBand).2.2 i j).reindex |
| 616 | (fun l : Index B N0 => (l.2,l.1)) |
| 617 | have he : (1/2:ℝ)+σ+1/2 = 1+σ := by ring |
| 618 | simp only [LabelSumBounds.UniformWaveClass, ActualParticularStageControls.meanEnvelope_eq_primary, he] at hh ⊢ |
| 619 | exact hh |
| 620 | |
| 621 | theorem gaussian_bounds (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 622 | (β : ℝ) (i : Fin 3) (m : ℤ) : |
| 623 | LabelSumBounds.UniformClass ActualInitialization.strip |
| 624 | (fun _ _ z => Real.sqrt (ActualInitialization.strip.zeta z)) β |
| 625 | (fun l n z => (gaussianBlock x l).velocity n i m z) := by |
| 626 | have hg := ActualParticularGaussian.gaussianBlock_all_gains _ |
| 627 | (fun l => ActualCycleParameters.current_frequency x (l.2,l.1) (H.carrier (l.2,l.1))) |
| 628 | (native_inputSupport H) hN x.coefficients.residualBand |
| 629 | (fun j hj => native_source_class H j ((ParticularWaveAssembly.mem_modes _ _).mp hj).1) β i m |
| 630 | have hh := (MeanBoundsReindex.uniformClass_return (s := ActualInitialization.strip) |
| 631 | (w := fun (_ : ActualParticularStageControls.Label B N0) _ z => |
| 632 | Real.sqrt (ActualInitialization.strip.zeta z)) cycleAssoc hg).reindex |
| 633 | (fun l : Index B N0 => (l.2,l.1)) |
| 634 | apply hh.congr |
| 635 | intro l n z _ |
| 636 | rw [ActualParticularStageControls.parameters_eq_canonical _ _ |
| 637 | (ActualCycleParameters.current_frequency x l (H.carrier l))] |
| 638 | rfl |
| 639 | |
| 640 | theorem solenoidal (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) |
| 641 | (l : Index B N0) : HarmonicWaveInteraction.ModeSolenoidal ActualInitialization.strip |
| 642 | (ActualPrimary.commonContext B) (block x l) := by |
| 643 | rw [block_eq_output H l] |
| 644 | exact ActualParticularDynamics.cycle_modeSolenoidal (preservesCarriers H) (native_inputSupport H) |
| 645 | hN x.coefficients.residualBand |
| 646 | (fun j hj => native_source_class H j ((ParticularWaveAssembly.mem_modes _ _).mp hj).1) (l.2,l.1) |
| 647 | |
| 648 | theorem good_carrier (x : CycleState (Index B N0)) (l : Index B N0) : |
| 649 | SameCarrier (x.coefficients.blocks l) (goodBlock x l) := ⟨rfl,rfl,rfl⟩ |
| 650 | |
| 651 | theorem good_real (x : CycleState (Index B N0)) (l : Index B N0) : |
| 652 | ErrorHarmonics.RealBlock (goodBlock x l) := by |
| 653 | constructor |
| 654 | · intro n i j z |
| 655 | exact (ParticularWaveAssembly.assembledBlock_real _ _ _ _ _ _).1 n i j (cycleAssoc z) |
| 656 | · intro n j z |
| 657 | exact (ParticularWaveAssembly.assembledBlock_real _ _ _ _ _ _).2 n j (cycleAssoc z) |
| 658 | |
| 659 | theorem gaussian_eq_cycle (H : Invariant σ x) (l : Index B N0) : |
| 660 | gaussianBlock x l = StateReindex.block cycleAssoc |
| 661 | (ActualParticularDynamics.actualGaussian (ActualCycleParameters.particularState x) (l.2,l.1) |
| 662 | x.coefficients.residualBand) := by |
| 663 | unfold ActualParticularDynamics.actualGaussian |
| 664 | rw [ActualParticularStageControls.parameters_eq_canonical _ _ |
| 665 | (ActualCycleParameters.current_frequency x l (H.carrier l))] |
| 666 | rfl |
| 667 | |
| 668 | theorem field_cancellation (H : Invariant σ x) |
| 669 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) (l : Index B N0) |
| 670 | (n : ℕ) (z : Point × ℝ) (hz : z.1 ∈ ActualInitialization.strip.domain) : |
| 671 | linearBlockField (ActualPrimary.commonContext B) (x.coefficients.blocks l) (block x l) n z + |
| 672 | (HarmonicResidual.residualBlock (ActualPrimary.commonContext B) x.state |
| 673 | (x.coefficients.blocks l) (x.coefficients.gaussian l) |
| 674 | (x.coefficients.aliasCoefficients l)).oscillation n z = |
| 675 | (goodBlock x l).oscillation n z + (gaussianBlock x l).oscillation n z := by |
| 676 | have hh := ActualParticularDynamics.cycle_context_linear_cancellation |
| 677 | (preservesCarriers H) (native_inputSupport H) hN x.coefficients.residualBand |
| 678 | (fun j hj => native_source_class H j ((ParticularWaveAssembly.mem_modes _ _).mp hj).1) |
| 679 | (l.2,l.1) (H.sourceBand l) n z hz |
| 680 | change linearBlockField (ActualPrimary.commonContext B) (x.coefficients.blocks l) |
| 681 | (ActualParticularStageControls.outputBlock (ActualCycleParameters.particularState x) |
| 682 | x.coefficients.residualBand (l.2,l.1)) n z + |
| 683 | (HarmonicResidual.residualBlock (ActualPrimary.commonContext B) x.state |
| 684 | (x.coefficients.blocks l) (x.coefficients.gaussian l) |
| 685 | (x.coefficients.aliasCoefficients l)).oscillation n z = |
| 686 | (goodBlock x l).oscillation n z + (StateReindex.block cycleAssoc |
| 687 | (ActualParticularDynamics.actualGaussian (ActualCycleParameters.particularState x) (l.2,l.1) |
| 688 | x.coefficients.residualBand)).oscillation n z at hh |
| 689 | rwa [← block_eq_output H l, ← gaussian_eq_cycle H l] at hh |
| 690 | |
| 691 | theorem linear_bounds (H : Invariant σ x) (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) : |
| 692 | ∀ i j, j ≠ 0 → LabelSumBounds.UniformWaveClass ActualInitialization.strip |
| 693 | ActualInitialization.envelope (1+σ-3*ChartScales.kappa) |
| 694 | (fun l n z => |
| 695 | (HarmonicResidual.residualBlock (ActualPrimary.commonContext B) x.state |
| 696 | (x.coefficients.blocks l) (x.coefficients.gaussian l) |
| 697 | (x.coefficients.aliasCoefficients l)).velocity n i j z + |
| 698 | (HarmonicWaveInteraction.linearGoodBlock (ActualPrimary.commonContext B) |
| 699 | (x.coefficients.blocks l) (block x l) (gaussianBlock x l).velocity).velocity n i j z) := by |
| 700 | apply linearGoodBlock_cancel_uniform (ActualPrimary.commonContext B) x.coefficients.blocks (block x) |
| 701 | (fun l => HarmonicResidual.residualBlock (ActualPrimary.commonContext B) x.state |
| 702 | (x.coefficients.blocks l) (x.coefficients.gaussian l) (x.coefficients.aliasCoefficients l)) |
| 703 | (goodBlock x) (fun l => (gaussianBlock x l).velocity) |
| 704 | · intro n |
| 705 | exact contDiffOn_const.add ((contDiffOn_const.mul |
| 706 | ((ActualInitialization.operators B).radialProfile.smooth 0)).smul contDiffOn_const) |
| 707 | · intro n |
| 708 | exact contDiffOn_const |
| 709 | · exact (ActualInitialization.base_bounds B).smooth |
| 710 | · intro l n i j |
| 711 | exact (coefficients_smooth H hN l n i j).mono ActualInitialization.geometry.strip_subset |
| 712 | · intro l n j |
| 713 | exact (pressure_coefficients_smooth H hN l n j).mono ActualInitialization.geometry.strip_subset |
| 714 | · exact H.phase |
| 715 | · exact H.angular |
| 716 | · intro l n i |
| 717 | exact HarmonicResidual.residualBlock_conjugate _ _ _ _ _ n i |
| 718 | · intro l n i |
| 719 | exact (good_real x l).1 n i |
| 720 | · intro i j _ |
| 721 | exact good_bounds H hN i j |
| 722 | · intro l n z hz θ i |
| 723 | have hs : SameCarrier (x.coefficients.blocks l) |
| 724 | (HarmonicResidual.residualBlock (ActualPrimary.commonContext B) x.state |
| 725 | (x.coefficients.blocks l) (x.coefficients.gaussian l) |
| 726 | (x.coefficients.aliasCoefficients l)) := ⟨rfl,rfl,rfl⟩ |
| 727 | rw [withCarrier_of_same hs, withCarrier_of_same (good_carrier x l)] |
| 728 | change _ + _ = _ + (gaussianBlock x l).oscillation n (z,θ) i |
| 729 | exact congrArg (fun f : Fin 3 → ℝ => f i) (field_cancellation H hN l n (z,θ) hz) |
| 730 | |
| 731 | section PressureAssembly |
| 732 | |
| 733 | open HarmonicCalculus LinearWaveBounds PeriodizedWaveBounds ParticularWaveAssembly |
| 734 | open ParticularWaveBounds CopyAngularInvariance ActualWaveRegularity |
| 735 | |
| 736 | /-- Pressure is assembled from the same actual modes as velocity. -/ |
| 737 | theorem particularBlock_pressure_eq_modes {ι : Type} (p : CycleParameters ι) |
| 738 | (v : CycleCoefficients ι) (c : Context Point) (u : State Point) (l : ι) |
| 739 | (hf : ∀ n, (v.blocks l).frequency n ≠ 0) : |
| 740 | (p.particularBlock v c u l).oscillatoryPressure = fun n z => |
| 741 | ∑ j ∈ modes v.residualBand, |
| 742 | (mode ((particularCopyData p v c u l j).background.frequency n) |
| 743 | ((particularCopyData p v c u l j).background.phase n) |
| 744 | ((particularCopyData p v c u l j).common.pressure n) (particularChart z)).re := by |
| 745 | have ha (j : ℤ) (n : ℕ) : |
| 746 | CopyAngularInvariance.Invariant (((0 : CycleSlow), 1), (0 : TorusInverse.Plane)) |
| 747 | ((particularCopyData p v c u l j).common.pressure n) := by |
| 748 | apply CopyData.common_pressure_invariant |
| 749 | · intro m k |
| 750 | exact nativeCutoff_invariant ((0 : CycleSlow), (1 : ℝ)) _ _ k |
| 751 | · intro m k |
| 752 | exact complexCopyPressure_invariant (angleTangent_invariant _) (angleLift_invariant _) |
| 753 | _ ((p.particular l).length_pos m).le k _ |
| 754 | funext n z |
| 755 | unfold CycleParameters.particularBlock |
| 756 | rw [StateReindex.block_pressure] |
| 757 | change ((p.particular l).updateBlock _ _ _ _ _ _ _).oscillatoryPressure n |
| 758 | (cycleAssoc z.1, z.2) = _ |
| 759 | rw [ParticularParameters.updateBlock, assembledBlock_pressure_value] |
| 760 | apply Finset.sum_congr rfl |
| 761 | intro j _hj |
| 762 | have hi := invariant_angleShuffle (ha j n) (cycleAssoc z.1) z.2 |
| 763 | have hc := actualCarrier_character (p.particular l).background |
| 764 | (StateReindex.block cycleAssoc.symm (v.blocks l)) j hf n (cycleAssoc z.1, z.2) |
| 765 | change Complex.re (_ * _) = Complex.re |
| 766 | (((particularCopyData p v c u l j).common.pressure n |
| 767 | (angleShuffle (cycleAssoc z.1, z.2))) * |
| 768 | carrier ((actualCarrier (p.particular l).background |
| 769 | (StateReindex.block cycleAssoc.symm (v.blocks l)) j).frequency n) |
| 770 | ((actualCarrier (p.particular l).background |
| 771 | (StateReindex.block cycleAssoc.symm (v.blocks l)) j).phase n) |
| 772 | (angleShuffle (cycleAssoc z.1, z.2))) |
| 773 | rw [hc, hi] |
| 774 | rfl |
| 775 | |
| 776 | theorem pressure_field_smooth (H : Invariant σ x) |
| 777 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) (n : ℕ) : |
| 778 | ContDiffOn ℝ ∞ ((parameters B N0).particularPressure x.coefficients |
| 779 | (ActualPrimary.commonContext B) x.state n) |
| 780 | (ActualInitialization.geometry.domain ×ˢ (univ : Set ℝ)) := by |
| 781 | change ContDiffOn ℝ ∞ (fun z => ∑ l ∈ x.coefficients.labels n, |
| 782 | (block x l).oscillatoryPressure n z) _ |
| 783 | apply ContDiffOn.sum |
| 784 | intro l _hl |
| 785 | change ContDiffOn ℝ ∞ (((parameters B N0).particularBlock x.coefficients |
| 786 | (ActualPrimary.commonContext B) x.state l).oscillatoryPressure n) _ |
| 787 | rw [particularBlock_pressure_eq_modes _ _ _ _ _ (H.frequency l)] |
| 788 | apply ContDiffOn.sum |
| 789 | intro j hj |
| 790 | exact ActualWaveRegularityData.particular_mode_pressure_smooth (l.2,l.1) _ _ _ _ _ j |
| 791 | (native_phase H l j) |
| 792 | (native_pressure_class H hN l j ((mem_modes _ _).mp hj).1) |
| 793 | (fun n _ hz hr => (native_common_boundary H l j n hz hr).2) n |
| 794 | |
| 795 | end PressureAssembly |
| 796 | |
| 797 | /-- Every field is derived for the literal particular construction from |
| 798 | the incoming analytic invariant and its separately tracked periods. -/ |
| 799 | theorem actual_data (H : Invariant σ x) (T : ActualCyclePeriodicity.Periodic x) |
| 800 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) (_hσ : 1/5 ≤ σ) : Data x σ where |
| 801 | amplitude := amplitude_bounds H hN |
| 802 | pressure := pressure_bounds H hN |
| 803 | coefficients := coefficients_smooth H hN |
| 804 | pressureCoefficients := pressure_coefficients_smooth H hN |
| 805 | gaussianCoefficients := gaussian_coefficients_smooth H hN |
| 806 | solenoidal := solenoidal H hN |
| 807 | gaussian := gaussian_bounds H hN |
| 808 | field := (field_regular H T hN).1 |
| 809 | pressureField := pressure_field_smooth H hN |
| 810 | periodic := (field_regular H T hN).2.1 |
| 811 | support := (field_regular H T hN).2.2 |
| 812 | linear := linear_bounds H hN |
| 813 | |
| 814 | theorem actual_inputs (H : Invariant σ x) (T : ActualCyclePeriodicity.Periodic x) |
| 815 | (hN : ActualCarrierGeometry.geometricThreshold ≤ N0) (hσ : 1/5 ≤ σ) : |
| 816 | ActualParticularMeanGain.Inputs x σ := |
| 817 | (actual_data H T hN hσ).inputs H hN |
| 818 | |
| 819 | end Outputs |
| 820 | |
| 821 | end NavierStokes.ActualParticularCycleData |