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.ActualInitialMeanEquation |
| 2 | import NavierStokes.ActualPrimaryDynamics |
| 3 | import NavierStokes.ActualInitialExcluded |
| 4 | import NavierStokes.ActualInitialCoherence |
| 5 | import NavierStokes.ActualInitialMean |
| 6 | import NavierStokes.GaugeRadialResidualBounds |
| 7 | import NavierStokes.CorrectionInitialization |
| 8 | import NavierStokes.ActualBaseResidual |
| 9 | import NavierStokes.ActualPrimaryBounds |
| 10 | |
| 11 | /-! |
| 12 | # The actual initialized correction state |
| 13 | |
| 14 | This consumer uses the single primary family selected by |
| 15 | `CorrectionInitialization.ActualPrimary`, retaining its exact pressure, |
| 16 | Gaussian errors and common-cover chart representations. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | namespace NavierStokes.ActualInitialization |
| 22 | |
| 23 | open Set Function Filter CorrectionState CorrectionInitialization |
| 24 | open scoped ContDiff Topology BigOperators |
| 25 | |
| 26 | abbrev Point := LocalSignedRequest.Point |
| 27 | abbrev Index (B N0 : ℕ) := ActualPrimary.Label B N0 × Fin 2 |
| 28 | |
| 29 | variable {B N0 : ℕ} |
| 30 | |
| 31 | noncomputable def primaryPiece (l : Index B N0) : PrimaryPiece (Point × ℝ) := |
| 32 | ActualPrimary.piece ActualPrimary.standardRegion l.2 l.1 |
| 33 | |
| 34 | noncomputable def phase (l : Index B N0) (n : ℕ) (x : Point) : ℝ := |
| 35 | (primaryPiece l).coefficients.phase n (x, 0) |
| 36 | |
| 37 | noncomputable def angularMode (l : Index B N0) (_n : ℕ) : ℤ := |
| 38 | PrimaryGeometryAssembly.angularMode ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared l.2 l.1 |
| 39 | |
| 40 | noncomputable def primaryBlock (l : Index B N0) : HarmonicBlock Point := |
| 41 | (primaryPiece l).harmonicBlock (phase l) (angularMode l) |
| 42 | |
| 43 | noncomputable def tangentBlock (l : Index B N0) : HarmonicBlock Point := |
| 44 | (primaryPiece l).tangentBlock (phase l) (angularMode l) |
| 45 | |
| 46 | noncomputable def curlBlock (l : Index B N0) : HarmonicBlock Point := |
| 47 | (primaryPiece l).differenceBlock (phase l) (angularMode l) |
| 48 | |
| 49 | noncomputable def gaussianBlock (l : Index B N0) : HarmonicBlock Point := |
| 50 | (primaryPiece l).excludedBlock (phase l) (angularMode l) |
| 51 | |
| 52 | theorem angularMode_ne_zero (l : Index B N0) (n : ℕ) : angularMode l n ≠ 0 := |
| 53 | PrimaryGeometryAssembly.angularMode_ne_zero ActualPrimary.certificate ActualPrimary.modulation (ActualPrimary.choice B N0).prepared l.2 l.1 |
| 54 | |
| 55 | theorem phase_split (l : Index B N0) (n : ℕ) (x : Point) (theta : ℝ) : |
| 56 | (primaryPiece l).coefficients.frequency n * (primaryPiece l).coefficients.phase n (x, theta) = |
| 57 | (primaryPiece l).coefficients.frequency n * phase l n x + (angularMode l n : ℝ) * theta := by |
| 58 | change (ActualPrimary.chartCoefficients l.2 l.1).frequency n * (ActualPrimary.chartCoefficients l.2 l.1).phase n (x, theta) = |
| 59 | (ActualPrimary.chartCoefficients l.2 l.1).frequency n * (ActualPrimary.chartCoefficients l.2 l.1).phase n (x, 0) + _ |
| 60 | rw [ActualPrimary.chartCoefficients_phase, ActualPrimary.chartCoefficients_phase] |
| 61 | simp only [ActualPrimary.absolutePhase, angularMode, mul_zero, zero_add] |
| 62 | ring |
| 63 | |
| 64 | theorem cutoff_smooth (l : Index B N0) (n : ℕ) : ContDiff ℝ ∞ ((primaryPiece l).cutoff n) := |
| 65 | (ActualPrimary.periodicGaussian_smooth l.2 l.1).comp ((ActualPrimary.toAbsolute_smooth n).snd.comp contDiff_fst) |
| 66 | |
| 67 | theorem amplitude_angle (l : Index B N0) : |
| 68 | ErrorHarmonics.AngleIndependent (primaryPiece l).coefficients.amplitude := fun _ _ _ => rfl |
| 69 | |
| 70 | theorem cutoff_angle (l : Index B N0) : |
| 71 | ErrorHarmonics.AngleIndependent (primaryPiece l).cutoff := fun _ _ _ => rfl |
| 72 | |
| 73 | theorem exact_amplitude_angle (l : Index B N0) : |
| 74 | ErrorHarmonics.AngleIndependent (primaryPiece l).exactCoefficients.amplitude := by |
| 75 | intro n x theta |
| 76 | exact CopyAngularInvariance.invariant_eq_zeroSlice |
| 77 | ((ActualPrimary.chartCoefficients_angular l.2 l.1).corrected_amplitude |
| 78 | (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion) (ActualPrimary.commonContext B) n) x theta |
| 79 | |
| 80 | theorem exact_pressure_angle (l : Index B N0) : |
| 81 | ErrorHarmonics.AngleIndependent (primaryPiece l).exactCoefficients.pressure := by |
| 82 | intro n x theta |
| 83 | exact CopyAngularInvariance.invariant_eq_zeroSlice |
| 84 | ((ActualPrimary.chartCoefficients_angular l.2 l.1).corrected_pressure |
| 85 | (BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion) (ActualPrimary.commonContext B) n) x theta |
| 86 | |
| 87 | theorem tangent_amplitude_angle (l : Index B N0) : |
| 88 | ErrorHarmonics.AngleIndependent |
| 89 | ((primaryPiece l).coefficients.withCutoff (primaryPiece l).cutoff).amplitude := fun _ _ _ => rfl |
| 90 | |
| 91 | theorem primaryBlock_represents (l : Index B N0) : |
| 92 | (primaryBlock l).oscillation = (primaryPiece l).velocity ∧ |
| 93 | (primaryBlock l).oscillatoryPressure = (primaryPiece l).pressure := |
| 94 | (primaryPiece l).harmonicBlock_represents (phase l) (angularMode l) |
| 95 | (exact_amplitude_angle l) (exact_pressure_angle l) (phase_split l) |
| 96 | |
| 97 | theorem tangentBlock_represents (l : Index B N0) : |
| 98 | (tangentBlock l).oscillation = (primaryPiece l).tangentVelocity := by |
| 99 | funext n x i |
| 100 | exact PrimaryHarmonics.block_velocity_represents |
| 101 | ((primaryPiece l).coefficients.withCutoff (primaryPiece l).cutoff) |
| 102 | (phase l) (angularMode l) (tangent_amplitude_angle l) (phase_split l) n x i |
| 103 | |
| 104 | theorem curlBlock_represents (l : Index B N0) : |
| 105 | (curlBlock l).oscillation = (primaryPiece l).velocity - (primaryPiece l).tangentVelocity := |
| 106 | (primaryPiece l).differenceBlock_represents (phase l) (angularMode l) |
| 107 | (exact_amplitude_angle l) (tangent_amplitude_angle l) (phase_split l) |
| 108 | |
| 109 | theorem gaussianBlock_represents (l : Index B N0) : |
| 110 | (gaussianBlock l).oscillation = (primaryPiece l).excluded := |
| 111 | (primaryPiece l).excludedBlock_represents (phase l) (angularMode l) |
| 112 | (cutoff_smooth l) (cutoff_angle l) (amplitude_angle l) (phase_split l) |
| 113 | |
| 114 | theorem gaussian_mean_zero (l : Index B N0) : |
| 115 | CorrectionStep.angularMeanVector (primaryPiece l).excluded = 0 := |
| 116 | (primaryPiece l).excluded_mean_zero (phase l) (angularMode l) (angularMode_ne_zero l) |
| 117 | (cutoff_smooth l) (cutoff_angle l) (amplitude_angle l) (phase_split l) |
| 118 | |
| 119 | theorem gaussian_angularContinuous (l : Index B N0) : |
| 120 | CorrectionStep.AngularContinuous (primaryPiece l).excluded := |
| 121 | (primaryPiece l).excluded_angularContinuous (phase l) (angularMode l) |
| 122 | (cutoff_smooth l) (cutoff_angle l) (amplitude_angle l) (phase_split l) |
| 123 | |
| 124 | theorem primaryBlock_band (l : Index B N0) : (primaryBlock l).BandLimited 1 := |
| 125 | PrimaryHarmonics.block_band _ _ _ |
| 126 | |
| 127 | theorem gaussianBlock_band (l : Index B N0) : (gaussianBlock l).BandLimited 1 := |
| 128 | ErrorHarmonics.gaussianBlock_band _ _ _ _ 1 _ _ _ |
| 129 | |
| 130 | noncomputable def coefficients (B N0 : ℕ) : CorrectionStep.CycleCoefficients (Index B N0) where |
| 131 | labels := ActualPrimary.activeLabels ActualPrimary.standardRegion B N0 |
| 132 | blocks := primaryBlock |
| 133 | gaussian l := (gaussianBlock l).velocity |
| 134 | aliasCoefficients _ := 0 |
| 135 | residualBand := 2 |
| 136 | |
| 137 | theorem coefficients_band (B N0 : ℕ) : CorrectionStep.CoefficientBands (coefficients B N0) := by |
| 138 | constructor |
| 139 | · intro l |
| 140 | exact ⟨fun n i => ((primaryBlock_band l).1 n i).mono (by norm_num [coefficients]), |
| 141 | fun n => ((primaryBlock_band l).2 n).mono (by norm_num [coefficients])⟩ |
| 142 | · intro l n i |
| 143 | exact ((gaussianBlock_band l).1 n i).mono (by norm_num [coefficients]) |
| 144 | · intro l n i j hj |
| 145 | simp [coefficients] at hj |
| 146 | |
| 147 | theorem gaussian_coefficientField (l : Index B N0) : |
| 148 | CorrectionStep.coefficientField (primaryBlock l) (gaussianBlock l).velocity = |
| 149 | (primaryPiece l).excluded := by |
| 150 | rw [← gaussianBlock_represents] |
| 151 | rfl |
| 152 | |
| 153 | |
| 154 | noncomputable def baseError (B : ℕ) : Oscillation Point := |
| 155 | ActualBaseResidual.baseError ActualPrimary.certificate ActualPrimary.modulation ActualPrimary.upper B |
| 156 | |
| 157 | noncomputable def sourceState (B N0 : ℕ) : State Point := |
| 158 | bandSeed (coefficients B N0).labels primaryPiece (baseError B) |
| 159 | |
| 160 | noncomputable def primaryState (B N0 : ℕ) : State Point := |
| 161 | VariableGaugeMean.reconstructState ActualPrimary.commonGauge (ActualPrimary.commonContext B) (sourceState B N0) |
| 162 | |
| 163 | noncomputable def axial : TorusInverse.Plane × TorusInverse.Plane := ((0, 1), 0) |
| 164 | |
| 165 | noncomputable def temporalState (B N0 : ℕ) : State Point := |
| 166 | VariableGaugeMean.temporalStageState ActualPrimary.commonGauge ActualPrimary.h |
| 167 | (CommonWindow.index ActualPrimary.h) axial (ActualPrimary.commonContext B) (primaryState B N0) |
| 168 | |
| 169 | noncomputable def rankState (B N0 : ℕ) : State Point := |
| 170 | VariableGaugeMean.rankStageState ActualPrimary.commonGauge ActualPrimary.rankData axial |
| 171 | (ActualPrimary.commonContext B) (temporalState B N0) |
| 172 | |
| 173 | noncomputable def initialState (B N0 : ℕ) : State Point := |
| 174 | GaugeInitialization.retainPressureAlias ActualPrimary.commonGauge (ActualPrimary.commonContext B) |
| 175 | (rankState B N0) |
| 176 | |
| 177 | noncomputable def initialAlias (B N0 : ℕ) : CorrectionStep.AxisymmetricAlias := |
| 178 | fun n x i => VariableGaugeMean.temporalAliasState ActualPrimary.commonGauge ActualPrimary.h |
| 179 | (CommonWindow.index ActualPrimary.h) (ActualPrimary.commonContext B) (primaryState B N0) n (x,0) i + |
| 180 | VariableGaugeMean.pressureAliasState ActualPrimary.commonGauge (ActualPrimary.commonContext B) |
| 181 | (rankState B N0) n (x,0) i |
| 182 | |
| 183 | /-- The initial state and its actual harmonic data are constructed together; |
| 184 | all later iterations retain these physical labels. -/ |
| 185 | noncomputable def initialCycleState (B N0 : ℕ) : CorrectionStep.CycleState (Index B N0) where |
| 186 | state := initialState B N0 |
| 187 | coefficients := coefficients B N0 |
| 188 | axisymmetricAlias := initialAlias B N0 |
| 189 | |
| 190 | theorem initialState_eq_bands (B N0 : ℕ) : |
| 191 | initialState B N0 = GaugeInitialization.initializedBands ActualPrimary.commonGauge ActualPrimary.rankData |
| 192 | ActualPrimary.h (CommonWindow.index ActualPrimary.h) axial (ActualPrimary.commonContext B) |
| 193 | (coefficients B N0).labels primaryPiece (baseError B) := rfl |
| 194 | |
| 195 | theorem initialState_error_components (B N0 : ℕ) : |
| 196 | (initialState B N0).errors.base = baseError B ∧ |
| 197 | (initialState B N0).errors.gaussian = |
| 198 | LabelSumBounds.fieldSum (coefficients B N0).labels (fun l => (primaryPiece l).excluded) ∧ |
| 199 | (initialState B N0).errors.aliasError = fun n x i => initialAlias B N0 n x.1 i := by |
| 200 | have he := GaugeInitialization.initializedBands_error_components ActualPrimary.commonGauge |
| 201 | ActualPrimary.rankData ActualPrimary.h (CommonWindow.index ActualPrimary.h) axial |
| 202 | (ActualPrimary.commonContext B) (coefficients B N0).labels primaryPiece (baseError B) |
| 203 | refine ⟨he.1, he.2.1, ?_⟩ |
| 204 | have ha := he.2.2 |
| 205 | simp only [initialAlias, VariableGaugeMean.temporalAliasState, VariableGaugeMean.pressureAliasState] at ha ⊢ |
| 206 | exact ha |
| 207 | |
| 208 | theorem initialCycleState_represents (B N0 : ℕ) : |
| 209 | CorrectionStep.CycleRepresentation (initialCycleState B N0).coefficients |
| 210 | (initialCycleState B N0).state (initialCycleState B N0).axisymmetricAlias := by |
| 211 | constructor |
| 212 | · intro n x i |
| 213 | have he := congrArg (fun f : Oscillation Point => f n x i) |
| 214 | (GaugeInitialization.initializedBands_oscillation ActualPrimary.commonGauge ActualPrimary.rankData |
| 215 | ActualPrimary.h (CommonWindow.index ActualPrimary.h) axial (ActualPrimary.commonContext B) |
| 216 | (coefficients B N0).labels primaryPiece (baseError B)) |
| 217 | change (initialState B N0).oscillation n x i = _ at he |
| 218 | change (initialState B N0).oscillation n x i = _ |
| 219 | rw [he] |
| 220 | change (∑ l ∈ (coefficients B N0).labels n, (primaryPiece l).velocity n x i) = _ |
| 221 | apply Finset.sum_congr rfl |
| 222 | intro l hl |
| 223 | exact congrArg (fun f : Oscillation Point => f n x i) (primaryBlock_represents l).1.symm |
| 224 | · intro n x |
| 225 | change (initialState B N0).oscillatoryPressure n x = _ |
| 226 | have he : (initialState B N0).oscillatoryPressure n x = |
| 227 | ∑ l ∈ (coefficients B N0).labels n, (primaryPiece l).pressure n x := by |
| 228 | simp [initialState, rankState, temporalState, primaryState, sourceState, bandSeed, |
| 229 | GaugeInitialization.retainPressureAlias, VariableGaugeMean.rankStageState, |
| 230 | VariableGaugeMean.temporalStageState, VariableGaugeMean.reconstructState, State.addIncrement] |
| 231 | rw [he] |
| 232 | apply Finset.sum_congr rfl |
| 233 | intro l hl |
| 234 | exact congrArg (fun f => f n x) (primaryBlock_represents l).2.symm |
| 235 | · intro n x i |
| 236 | change (initialState B N0).errors.gaussian n x i = _ |
| 237 | rw [(initialState_error_components B N0).2.1] |
| 238 | change (∑ l ∈ (coefficients B N0).labels n, (primaryPiece l).excluded n x i) = _ |
| 239 | apply Finset.sum_congr rfl |
| 240 | intro l hl |
| 241 | exact congrArg (fun f : Oscillation Point => f n x i) (gaussian_coefficientField l).symm |
| 242 | · intro n x i |
| 243 | change (initialState B N0).errors.aliasError n x i = _ |
| 244 | rw [(initialState_error_components B N0).2.2] |
| 245 | simp [initialCycleState, coefficients, CorrectionStep.coefficientField, HarmonicFields.field] |
| 246 | |
| 247 | end NavierStokes.ActualInitialization |
| 248 | |
| 249 | namespace NavierStokes.ActualInitialization |
| 250 | |
| 251 | open Set Function Filter CorrectionState CorrectionInitialization |
| 252 | open scoped ContDiff Topology BigOperators |
| 253 | |
| 254 | variable {B N0 : ℕ} |
| 255 | |
| 256 | theorem primaryBlock_zeroMode (l : Index B N0) : HarmonicWaveInteraction.ZeroMode (primaryBlock l) := |
| 257 | (SignedWaveUpdate.coefficientBlock_zero_coefficient |
| 258 | (primaryPiece l).coefficients.frequency (phase l) (angularMode l) |
| 259 | (fun n x => (primaryPiece l).exactCoefficients.amplitude n (x,0)) |
| 260 | (fun n x => (primaryPiece l).exactCoefficients.pressure n (x,0))).1 |
| 261 | |
| 262 | theorem primaryBlock_symmetric (l : Index B N0) (n : ℕ) (i : Fin 3) : |
| 263 | HarmonicFields.ConjugateSymmetric ((primaryBlock l).velocity n i) := |
| 264 | ErrorHarmonics.conjugatePair_symmetric 1 _ |
| 265 | |
| 266 | theorem sourceState_mean (B N0 : ℕ) : (sourceState B N0).mean = ⟨0,0,0⟩ := rfl |
| 267 | |
| 268 | theorem initialState_oscillation (B N0 : ℕ) : |
| 269 | (initialState B N0).oscillation = (sourceState B N0).oscillation := |
| 270 | GaugeInitialization.initializedBands_oscillation ActualPrimary.commonGauge ActualPrimary.rankData |
| 271 | ActualPrimary.h (CommonWindow.index ActualPrimary.h) axial (ActualPrimary.commonContext B) |
| 272 | (coefficients B N0).labels primaryPiece (baseError B) |
| 273 | |
| 274 | theorem initialState_covariance (B N0 : ℕ) : |
| 275 | (initialState B N0).covariance = (sourceState B N0).covariance := by |
| 276 | unfold State.covariance |
| 277 | rw [initialState_oscillation] |
| 278 | |
| 279 | theorem initialState_reconstructed (B N0 : ℕ) : |
| 280 | VariableGaugeMean.reconstructState ActualPrimary.commonGauge (ActualPrimary.commonContext B) |
| 281 | (initialState B N0) = initialState B N0 := rfl |
| 282 | |
| 283 | /-- The actual nonconstant residual coefficients supplied to the first |
| 284 | particular solve. The separate axisymmetric alias is removed only by |
| 285 | the angular nonconstant projection. -/ |
| 286 | noncomputable def initialResidualBlock (l : Index B N0) : HarmonicBlock Point := |
| 287 | HarmonicResidual.residualBlock (ActualPrimary.commonContext B) (initialState B N0) |
| 288 | (primaryBlock l) (gaussianBlock l).velocity 0 |
| 289 | |
| 290 | theorem initialResidualBlock_band (l : Index B N0) : (initialResidualBlock l).BandLimited 2 := by |
| 291 | have hG : ∀ n i, HarmonicFields.BandLimited ((gaussianBlock l).velocity n i) 1 := |
| 292 | (gaussianBlock_band l).1 |
| 293 | have hA : ∀ n i, HarmonicFields.BandLimited |
| 294 | ((0 : HarmonicResidual.BlockCoefficients Point) n i) 1 := |
| 295 | fun _ _ => HarmonicResidual.band_zero 1 |
| 296 | exact HarmonicResidual.residualBlock_band (ActualPrimary.commonContext B) (initialState B N0) |
| 297 | (primaryBlock l) (gaussianBlock l).velocity 0 (primaryBlock_band l) hG hA |
| 298 | |
| 299 | theorem initialResidualBlock_zeroMode (l : Index B N0) : |
| 300 | HarmonicWaveInteraction.ZeroMode (initialResidualBlock l) := |
| 301 | HarmonicResidual.residualBlock_zero_mode (ActualPrimary.commonContext B) (initialState B N0) |
| 302 | (primaryBlock l) (gaussianBlock l).velocity 0 |
| 303 | |
| 304 | theorem initialResidualBlock_symmetric (l : Index B N0) (n : ℕ) (i : Fin 3) : |
| 305 | HarmonicFields.ConjugateSymmetric ((initialResidualBlock l).velocity n i) := |
| 306 | HarmonicResidual.residualBlock_conjugate (ActualPrimary.commonContext B) (initialState B N0) |
| 307 | (primaryBlock l) (gaussianBlock l).velocity 0 n i |
| 308 | |
| 309 | end NavierStokes.ActualInitialization |
| 310 | |
| 311 | namespace NavierStokes.ActualInitialization |
| 312 | |
| 313 | open Set Filter Function WeightedClasses CorrectionState |
| 314 | open HarmonicMeanInteraction HarmonicWaveInteraction UniformHarmonicInteraction |
| 315 | open scoped ContDiff Topology |
| 316 | |
| 317 | /-- The actual nonlinear coefficient of a mean-zero state is its linear |
| 318 | coefficient plus the solenoidal self-transport. Constants remain uniform |
| 319 | before the spatial label. -/ |
| 320 | theorem zeroMean_residual_uniform |
| 321 | {D : Type} {ι : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 322 | {s : StripData D} {P : ι → ℕ → D → ℝ} {κ α γ : ℝ} |
| 323 | (c : Context D) (ho : MeanIncrementBounds.OperatorBounds s c.operators κ) |
| 324 | (hR : ∀ x ∈ s.domain, 0 < c.operators.radius x) |
| 325 | (u : State D) (hm : u.mean = ⟨0,0,0⟩) |
| 326 | (b : ι → HarmonicBlock D) (G A : ι → HarmonicResidual.BlockCoefficients D) |
| 327 | (hb : UniformVelocity s P α b) |
| 328 | (hzero : ∀ l, ZeroMode (b l)) {M : ℕ} |
| 329 | (hband : ∀ l, (b l).BandLimited M) |
| 330 | (hphase : ∀ l n, ContDiffOn ℝ ∞ ((b l).phase n) s.domain) |
| 331 | (hk : ∀ l n, (b l).frequency n ≠ 0) |
| 332 | (hdiv : ∀ l, ModeSolenoidal s c (b l)) |
| 333 | (hP0 : ∀ l n x, x ∈ s.domain → 0 ≤ P l n x) |
| 334 | (hP1 : ∀ l n x, x ∈ s.domain → P l n x ≤ 1) |
| 335 | (hA : ∀ l n i j, j ≠ 0 → A l n i j = 0) |
| 336 | (hlinear : UniformVelocity s P γ (fun l => linearGoodBlock c (b l) (b l) (G l))) |
| 337 | (hγ : γ ≤ α + α - κ) : |
| 338 | UniformVelocity s P γ (fun l => HarmonicResidual.residualBlock c u (b l) (G l) (A l)) := by |
| 339 | intro i j hj |
| 340 | have ht (m : ℤ) := (transport_uniform c ho hR hb hb hzero hzero hband |
| 341 | hphase hk hdiv hP0 hP1 m i).mono_exponent hγ |
| 342 | have hr := LabelSumBounds.uniform_realCoefficients |
| 343 | (fun l n => HarmonicResidual.transport (HarmonicResidual.contextFrame c n) |
| 344 | ((b l).frequency n) ((b l).phase n) ((b l).angularFrequency n) |
| 345 | (blockAmplitude (b l) n) (blockAmplitude (b l) n) i) ht j |
| 346 | apply ((hlinear i j hj).add hr).congr |
| 347 | intro l n x hx |
| 348 | have hmean : HarmonicResidual.stateMean u n = 0 := by |
| 349 | funext y k |
| 350 | fin_cases k <;> simp [HarmonicResidual.stateMean, hm] |
| 351 | change HarmonicResidual.nonconstant |
| 352 | (HarmonicResidual.realCoefficients (linearCoefficients c (b l) (b l) n i - G l n i)) j x + |
| 353 | HarmonicResidual.realCoefficients |
| 354 | (HarmonicResidual.transport (HarmonicResidual.contextFrame c n) |
| 355 | ((b l).frequency n) ((b l).phase n) ((b l).angularFrequency n) |
| 356 | (blockAmplitude (b l) n) (blockAmplitude (b l) n) i) j x = |
| 357 | HarmonicResidual.nonconstant |
| 358 | ((HarmonicResidual.ofBlock (b l) (G l) (A l) n).residualCoefficients |
| 359 | (HarmonicResidual.contextFrame c n) (HarmonicResidual.contextBase c n) |
| 360 | (HarmonicResidual.stateMean u n) i) j x |
| 361 | rw [nonconstant_apply_of_ne _ hj, nonconstant_apply_of_ne _ hj, hmean, |
| 362 | HarmonicResidual.LabelData.residualCoefficients] |
| 363 | simp only [add_zero] |
| 364 | let L := linearCoefficients c (b l) (b l) n i |
| 365 | let T := HarmonicResidual.transport (HarmonicResidual.contextFrame c n) |
| 366 | ((b l).frequency n) ((b l).phase n) ((b l).angularFrequency n) |
| 367 | (blockAmplitude (b l) n) (blockAmplitude (b l) n) i |
| 368 | change HarmonicResidual.realCoefficients (L - G l n i) j x + |
| 369 | HarmonicResidual.realCoefficients T j x = |
| 370 | HarmonicResidual.realCoefficients (L + T - G l n i - A l n i) j x |
| 371 | simp only [HarmonicResidual.realCoefficients_apply, coeff_add, coeff_sub, |
| 372 | hA l n i j hj, hA l n i (-j) (neg_ne_zero.mpr hj), |
| 373 | Pi.zero_apply, map_sub, map_add, sub_zero] |
| 374 | ring |
| 375 | |
| 376 | end NavierStokes.ActualInitialization |
| 377 | |
| 378 | namespace NavierStokes.ActualInitialization |
| 379 | |
| 380 | open Set Function Filter CorrectionState CorrectionInitialization WeightedClasses |
| 381 | open scoped ContDiff Topology BigOperators |
| 382 | |
| 383 | noncomputable def strip : StripData Point := |
| 384 | BaseContextAssembly.nativeStrip ActualPrimary.nominal ActualPrimary.standardRegion |
| 385 | |
| 386 | noncomputable def slowStrip : StripData TorusInverse.Plane := |
| 387 | PhysicalMeanDomain.localSlowStripData ActualPrimary.standardRegion.carrier |
| 388 | ActualPrimary.standardRegion.isOpen (ChartScales.epsilon ActualPrimary.h) |
| 389 | BaseContextAssembly.slowScale (ChartScales.epsilon_pos ActualPrimary.h) |
| 390 | (ChartScales.epsilon_le_one ActualPrimary.h ActualPrimary.outgoing.data.h_pos.le) |
| 391 | BaseContextAssembly.one_le_slowScale |
| 392 | |
| 393 | noncomputable def envelope {B N0 : ℕ} (l : Index B N0) : ℕ → Point → ℝ := |
| 394 | ActualPrimaryBounds.meanEnvelope (l.2,l.1) |
| 395 | |
| 396 | theorem envelope_nonneg {B N0 : ℕ} (l : Index B N0) (n : ℕ) (x : Point) : |
| 397 | 0 ≤ envelope l n x := ActualPrimaryBounds.fullEnvelope_nonneg _ _ _ |
| 398 | |
| 399 | theorem envelope_le_one {B N0 : ℕ} (l : Index B N0) (n : ℕ) (x : Point) : |
| 400 | envelope l n x ≤ 1 := ActualPrimaryBounds.fullEnvelope_le_one _ _ _ |
| 401 | |
| 402 | theorem operators (B : ℕ) : |
| 403 | MeanIncrementBounds.OperatorBounds strip (ActualPrimary.commonContext B).operators ChartScales.kappa := |
| 404 | CommonBaseContext.context_operator_bounds ActualPrimary.certificate ActualPrimary.modulation |
| 405 | ActualPrimary.upper B ActualPrimary.standardRegion (CommonWindow.index_le_native ActualPrimary.h) |
| 406 | |
| 407 | theorem base_bounds (B : ℕ) : |
| 408 | MeanIncrementBounds.BaseBounds strip (ActualPrimary.commonContext B).base := |
| 409 | CommonBaseContext.context_base_bounds ActualPrimary.certificate ActualPrimary.modulation |
| 410 | ActualPrimary.upper B ActualPrimary.standardRegion (CommonWindow.index ActualPrimary.h) |
| 411 | |
| 412 | theorem radius_pos (B : ℕ) (x : Point) (hx : x ∈ strip.domain) : |
| 413 | 0 < (ActualPrimary.commonContext B).operators.radius x := |
| 414 | BaseContextAssembly.nativeStrip_radius ActualPrimary.nominal ActualPrimary.standardRegion hx |
| 415 | |
| 416 | theorem strip_time (x : Point) (hx : x ∈ strip.domain) : 0 < x.2.1.1 := |
| 417 | BaseContextAssembly.nativeStrip_time ActualPrimary.nominal ActualPrimary.standardRegion hx |
| 418 | |
| 419 | theorem tangent_coefficients_uniform (B N0 : ℕ) (i : Fin 3) (j : ℤ) : |
| 420 | LabelSumBounds.UniformWaveClass strip envelope (1/2) |
| 421 | (fun l : Index B N0 => fun n x => (tangentBlock l).velocity n i j x) := |
| 422 | (ActualPrimaryBounds.tangent_block_uniform.1 i j).reindex Prod.swap |
| 423 | |
| 424 | /-- The exact curl construction retains the same pressure coefficient. -/ |
| 425 | theorem pressure_coefficients_uniform (B N0 : ℕ) (j : ℤ) : |
| 426 | LabelSumBounds.UniformWaveClass strip envelope 1 |
| 427 | (fun l : Index B N0 => fun n x => (primaryBlock l).pressure n j x) := |
| 428 | (ActualPrimaryBounds.tangent_block_uniform.2 j).reindex Prod.swap |
| 429 | |
| 430 | end NavierStokes.ActualInitialization |
| 431 | |
| 432 | namespace NavierStokes.ActualInitialization |
| 433 | |
| 434 | open Set Function Filter CorrectionState CorrectionInitialization WeightedClasses |
| 435 | open scoped ContDiff Topology BigOperators |
| 436 | |
| 437 | variable {B N0 : ℕ} |
| 438 | |
| 439 | noncomputable def goodBlock (l : Index B N0) : HarmonicBlock Point := |
| 440 | SignedWaveUpdate.coefficientBlock (primaryPiece l).coefficients.frequency |
| 441 | (phase l) (angularMode l) (fun n x => (primaryPiece l).linearGood n (x,0)) 0 |
| 442 | |
| 443 | theorem goodBlock_represents (l : Index B N0) : |
| 444 | (goodBlock l).oscillation = (primaryPiece l).linearGoodField := by |
| 445 | funext n x i |
| 446 | change (HarmonicFields.field (ErrorHarmonics.conjugatePair 1 |
| 447 | (fun y => (primaryPiece l).linearGood n (y,0) i)) |
| 448 | ((primaryPiece l).coefficients.frequency n) (phase l n) (angularMode l n) x).re = _ |
| 449 | have hi : CopyAngularInvariance.Invariant ((0 : Point),1) |
| 450 | (fun y => (primaryPiece l).linearGood n y i) := |
| 451 | ((ActualPrimary.chartCoefficients_angular l.2 l.1).constructedGood strip |
| 452 | (ActualPrimary.commonContext B) n).component i |
| 453 | have he := congrArg Complex.re (PrimaryResidualClass.pair_field_of_invariant |
| 454 | ((primaryPiece l).coefficients.frequency n) (angularMode l n) hi (phase_split l n) x) |
| 455 | simp only [PrimaryResidualClass.realProjection_apply, Complex.ofReal_re] at he |
| 456 | exact he |
| 457 | |
| 458 | theorem goodBlock_symmetric (l : Index B N0) (n : ℕ) (i : Fin 3) : |
| 459 | HarmonicFields.ConjugateSymmetric ((goodBlock l).velocity n i) := |
| 460 | ErrorHarmonics.conjugatePair_symmetric 1 _ |
| 461 | |
| 462 | theorem exact_frame_match (l : Index B N0) : |
| 463 | CorrectionStep.WaveFrameMatch (ActualPrimary.commonContext B) (primaryPiece l).strip |
| 464 | (primaryPiece l).directions (primaryPiece l).exactCoefficients := by |
| 465 | refine ⟨fun _ => rfl, fun _ => rfl, ?_, rfl, ?_, ?_, |
| 466 | fun _ _ => rfl, fun _ _ => rfl, fun _ _ => rfl⟩ |
| 467 | · intro n |
| 468 | exact PrimaryResidualClass.directions_radial (ActualPrimary.commonContext B) n |
| 469 | · intro n |
| 470 | exact PrimaryResidualClass.directions_axial strip (ActualPrimary.commonContext B) rfl n |
| 471 | · intro n |
| 472 | exact PrimaryResidualClass.directions_time strip (ActualPrimary.commonContext B) rfl n |
| 473 | |
| 474 | theorem radialDirection_smooth (B n : ℕ) : |
| 475 | ContDiffOn ℝ ∞ (CorrectionStep.radialDirection (ActualPrimary.commonContext B) n) |
| 476 | (HarmonicResidual.liftDomain strip.domain) := by |
| 477 | have hr := ((HarmonicMeanInteraction.slowGeometry (ActualPrimary.commonContext B) |
| 478 | (operators B) (radius_pos B)).radial_class.smooth n) |
| 479 | exact (hr.comp contDiffOn_fst (fun _ hx => hx.1)).prodMk contDiffOn_const |
| 480 | |
| 481 | theorem axialDirection_smooth (B n : ℕ) : |
| 482 | ContDiffOn ℝ ∞ (CorrectionStep.axialDirection (ActualPrimary.commonContext B) n) |
| 483 | (HarmonicResidual.liftDomain strip.domain) := contDiffOn_const |
| 484 | |
| 485 | /-- The real harmonic operator is the operator of the literal corrected |
| 486 | coefficient. Only regularity of those actual fields is used here. -/ |
| 487 | theorem linearBlockField_eq_piece (l : Index B N0) (n : ℕ) |
| 488 | (hphase : ContDiffOn ℝ ∞ ((primaryPiece l).coefficients.phase n) |
| 489 | (HarmonicResidual.liftDomain strip.domain)) |
| 490 | (hv : ∀ i, ContDiffOn ℝ ∞ (fun x => (primaryPiece l).exactCoefficients.amplitude n x i) |
| 491 | (HarmonicResidual.liftDomain strip.domain)) |
| 492 | (hp : ContDiffOn ℝ ∞ ((primaryPiece l).exactCoefficients.pressure n) |
| 493 | (HarmonicResidual.liftDomain strip.domain)) |
| 494 | {x : Point × ℝ} (hx : x ∈ HarmonicResidual.liftDomain strip.domain) (i : Fin 3) : |
| 495 | CorrectionStep.linearBlockField (ActualPrimary.commonContext B) (primaryBlock l) (primaryBlock l) n x i = |
| 496 | (primaryPiece l).linearResidual n x i := by |
| 497 | have he := CorrectionStep.linearBlockField_eq_modeResidual strip.isOpen_domain |
| 498 | (ActualPrimary.commonContext B) (primaryBlock l) (primaryBlock l) |
| 499 | (primaryPiece l).strip (primaryPiece l).directions (primaryPiece l).exactCoefficients |
| 500 | (exact_frame_match l) n (base_bounds B).smooth |
| 501 | (radialDirection_smooth B n) (axialDirection_smooth B n) hphase hv hp |
| 502 | (congrFun (primaryBlock_represents l).1 n) |
| 503 | (congrFun (primaryBlock_represents l).2 n) hx |
| 504 | exact congrFun he i |
| 505 | |
| 506 | end NavierStokes.ActualInitialization |
| 507 | |
| 508 | namespace NavierStokes.ActualInitialization |
| 509 | |
| 510 | open Set Filter Function WeightedClasses CorrectionState |
| 511 | open HarmonicMeanInteraction HarmonicWaveInteraction UniformHarmonicInteraction |
| 512 | open scoped ContDiff Topology |
| 513 | |
| 514 | /-- The actual initialized mean changes the primary residual by a term of |
| 515 | order at least nine tenths. The retained axisymmetric aliases do not enter |
| 516 | the nonzero harmonic coefficients. -/ |
| 517 | theorem initial_residual_uniform_of_primary (B N0 : ℕ) |
| 518 | (hprimary : UniformVelocity strip envelope (1/2) (primaryBlock (B := B) (N0 := N0))) |
| 519 | (hlinear : UniformVelocity strip envelope (7/10) |
| 520 | (fun l : Index B N0 => linearGoodBlock (CorrectionInitialization.ActualPrimary.commonContext B) |
| 521 | (primaryBlock l) (primaryBlock l) (gaussianBlock l).velocity)) |
| 522 | (hphase : ∀ (l : Index B N0) n, ContDiffOn ℝ ∞ (phase l n) strip.domain) |
| 523 | (hdiv : ∀ l : Index B N0, ModeSolenoidal strip |
| 524 | (CorrectionInitialization.ActualPrimary.commonContext B) (primaryBlock l)) |
| 525 | {C : ℕ → Index B N0 → Set Point} |
| 526 | (hNormal : ∀ i, LocalizedWaveBounds.LocalUnweighted strip C 0 |
| 527 | (fun n l x => slowNormal (CorrectionInitialization.ActualPrimary.commonContext B) |
| 528 | (operators B) (radius_pos B) (phase l) n x i)) |
| 529 | (hFreq : LocalizedWaveBounds.LocalUnweighted strip C (-(1/2)) |
| 530 | (fun n l _ => (primaryBlock l).frequency n)) |
| 531 | (hAng : LocalizedWaveBounds.LocalUnweighted strip C (-(1/2)) |
| 532 | (fun n l _ => ((primaryBlock l).angularFrequency n : ℝ))) |
| 533 | (hz : ∀ n l x, x ∈ strip.domain → x ∉ C n l → |
| 534 | ∀ i j, j ≠ 0 → (primaryBlock l).velocity n i j =ᶠ[𝓝 x] fun _ => 0) |
| 535 | (hmean : CorrectionState.CumulativeBounds strip (initialState B N0)) : |
| 536 | UniformVelocity strip envelope (7/10) (initialResidualBlock (B := B) (N0 := N0)) := by |
| 537 | have hzero : UniformVelocity strip envelope (7/10) |
| 538 | (fun l : Index B N0 => HarmonicResidual.residualBlock |
| 539 | (CorrectionInitialization.ActualPrimary.commonContext B) (sourceState B N0) |
| 540 | (primaryBlock l) (gaussianBlock l).velocity 0) := |
| 541 | zeroMean_residual_uniform (CorrectionInitialization.ActualPrimary.commonContext B) |
| 542 | (operators B) (radius_pos B) (sourceState B N0) (sourceState_mean B N0) |
| 543 | primaryBlock (fun l => (gaussianBlock l).velocity) 0 hprimary primaryBlock_zeroMode |
| 544 | primaryBlock_band hphase |
| 545 | (fun l n => (CorrectionInitialization.ActualPrimary.chartCoefficients_frequency_pos l.2 l.1 n).ne') |
| 546 | hdiv (fun l n x _ => envelope_nonneg l n x) (fun l n x _ => envelope_le_one l n x) |
| 547 | (fun _ _ _ _ _ => rfl) hlinear (by norm_num [ChartScales.kappa]) |
| 548 | have he : (initialState B N0).mean = |
| 549 | MeanIncrementBounds.updated (sourceState B N0).mean (initialState B N0).mean := by |
| 550 | rw [sourceState_mean] |
| 551 | simp only [MeanIncrementBounds.updated, zero_add] |
| 552 | have hs : MeanIncrementBounds.SmoothTriple strip.domain (sourceState B N0).mean := by |
| 553 | rw [sourceState_mean] |
| 554 | exact ⟨fun _ => contDiffOn_const, fun _ => contDiffOn_const, fun _ => contDiffOn_const⟩ |
| 555 | exact CorrectionStep.meanStage_residual_uniform |
| 556 | (CorrectionInitialization.ActualPrimary.commonContext B) (operators B) |
| 557 | (by norm_num [ChartScales.kappa]) (radius_pos B) (sourceState B N0) (initialState B N0) |
| 558 | (initialState B N0).mean he (base_bounds B).smooth hs |
| 559 | (CorrectionStep.meanIncrement_of_cumulative hmean.velocity) primaryBlock hprimary |
| 560 | hNormal hFreq hAng hz (fun l => (gaussianBlock l).velocity) 0 0 |
| 561 | (fun _ _ _ => by simpa using (HarmonicResidual.band_zero 0 (D := Point))) |
| 562 | hzero (by norm_num) |
| 563 | |
| 564 | end NavierStokes.ActualInitialization |
| 565 | |
| 566 | namespace NavierStokes.ActualInitialization |
| 567 | |
| 568 | open Set Filter Function WeightedClasses CorrectionState |
| 569 | open HarmonicMeanInteraction HarmonicWaveInteraction UniformHarmonicInteraction |
| 570 | open scoped ContDiff Topology |
| 571 | |
| 572 | noncomputable def zeroBlock {B N0 : ℕ} (l : Index B N0) : HarmonicBlock Point := |
| 573 | { primaryBlock l with velocity := 0, pressure := 0 } |
| 574 | |
| 575 | theorem zeroBlock_oscillation {B N0 : ℕ} (l : Index B N0) : |
| 576 | (zeroBlock l).oscillation = 0 := by |
| 577 | funext n x i |
| 578 | simp [zeroBlock, HarmonicBlock.oscillation, HarmonicFields.field, HarmonicFields.evaluate, HarmonicFields.Coefficients.sum] |
| 579 | |
| 580 | /-- Extract the actual linear-good coefficient from the proved primary |
| 581 | field identity, retaining its literal Gaussian coefficient. -/ |
| 582 | theorem linearGood_uniform_of_identity (B N0 : ℕ) {γ : ℝ} |
| 583 | (hprimary : UniformVelocity strip envelope (1/2) (primaryBlock (B := B) (N0 := N0))) |
| 584 | (hphase : ∀ (l : Index B N0) n, ContDiffOn ℝ ∞ ((primaryPiece l).coefficients.phase n) |
| 585 | (HarmonicResidual.liftDomain strip.domain)) |
| 586 | (hamp : ∀ (l : Index B N0) n i, |
| 587 | ContDiffOn ℝ ∞ (fun x => (primaryPiece l).exactCoefficients.amplitude n x i) |
| 588 | (HarmonicResidual.liftDomain strip.domain)) |
| 589 | (hpressure : ∀ (l : Index B N0) n, |
| 590 | ContDiffOn ℝ ∞ ((primaryPiece l).exactCoefficients.pressure n) |
| 591 | (HarmonicResidual.liftDomain strip.domain)) |
| 592 | (hgood : UniformVelocity strip envelope γ (goodBlock (B := B) (N0 := N0))) |
| 593 | (hidentity : ∀ (l : Index B N0) n x, x ∈ HarmonicResidual.liftDomain strip.domain → ∀ i, |
| 594 | (primaryPiece l).linearResidual n x i = |
| 595 | (primaryPiece l).linearGoodField n x i + (primaryPiece l).excluded n x i) : |
| 596 | UniformVelocity strip envelope γ |
| 597 | (fun l : Index B N0 => linearGoodBlock (CorrectionInitialization.ActualPrimary.commonContext B) |
| 598 | (primaryBlock l) (primaryBlock l) (gaussianBlock l).velocity) := by |
| 599 | have hphi (l : Index B N0) (n : ℕ) : ContDiffOn ℝ ∞ (phase l n) strip.domain := |
| 600 | (hphase l n).comp (HarmonicWaveInteraction.inclusion (D := Point)).contDiff.contDiffOn |
| 601 | (fun _ hx => ⟨hx, trivial⟩) |
| 602 | have hh := CorrectionStep.linearGoodBlock_cancel_uniform |
| 603 | (CorrectionInitialization.ActualPrimary.commonContext B) primaryBlock primaryBlock zeroBlock goodBlock |
| 604 | (fun l : Index B N0 => (gaussianBlock l).velocity) |
| 605 | (fun n => (slowGeometry (CorrectionInitialization.ActualPrimary.commonContext B) |
| 606 | (operators B) (radius_pos B)).radial_class.smooth n) |
| 607 | (fun _ => contDiffOn_const) (base_bounds B).smooth |
| 608 | (fun l n i => waveBounds_smooth (waveBounds_each hprimary l) (primaryBlock_zeroMode l) n i) |
| 609 | (fun l n j => ((pressure_coefficients_uniform B N0 j).each l).smooth n) |
| 610 | hphi angularMode_ne_zero |
| 611 | (fun _ _ _ _ _ => by simp [zeroBlock]) goodBlock_symmetric hgood ?_ |
| 612 | · intro i j hj |
| 613 | simpa only [zeroBlock, Pi.zero_apply, AddMonoidAlgebra.coeff_zero, Finsupp.zero_apply, zero_add] using hh i j hj |
| 614 | · intro l n x hx theta i |
| 615 | change CorrectionStep.linearBlockField _ (primaryBlock l) (primaryBlock l) n (x,theta) i + |
| 616 | (zeroBlock l).oscillation n (x,theta) i = |
| 617 | (goodBlock l).oscillation n (x,theta) i + (gaussianBlock l).oscillation n (x,theta) i |
| 618 | rw [zeroBlock_oscillation, Pi.zero_apply, Pi.zero_apply, Pi.zero_apply, add_zero, |
| 619 | goodBlock_represents, gaussianBlock_represents, |
| 620 | linearBlockField_eq_piece l n (hphase l n) (hamp l n) (hpressure l n) ⟨hx,trivial⟩ i] |
| 621 | exact hidentity l n (x,theta) ⟨hx,trivial⟩ i |
| 622 | |
| 623 | end NavierStokes.ActualInitialization |
| 624 | |
| 625 | namespace NavierStokes.ActualInitialization |
| 626 | |
| 627 | open Set Function Filter WeightedClasses CorrectionState CorrectionInitialization |
| 628 | open scoped ContDiff Topology |
| 629 | |
| 630 | /-- The signed request uses the same active annulus and reserved mean patch. -/ |
| 631 | noncomputable def patch : SignedStressPrimitive.Patch where |
| 632 | a := PrimaryTargetBounds.leftRadius ActualPrimary.nominal |
| 633 | b := PrimaryTargetBounds.rightRadius ActualPrimary.nominal |
| 634 | left := ActualPrimary.rankInner |
| 635 | right := ActualPrimary.rankOuter |
| 636 | a_pos := PrimaryTargetBounds.leftRadius_pos ActualPrimary.nominal |
| 637 | a_lt_left := ActualPrimary.active_left_before_rank |
| 638 | left_lt_right := ActualPrimary.rank_radii_ordered |
| 639 | right_lt_b := ActualPrimary.rank_before_active_right |
| 640 | |
| 641 | /-- All stages use one moving strip, common index, and pressure gauge. -/ |
| 642 | noncomputable def geometry : SignedMeanGain.Geometry where |
| 643 | coord := 2 * ActualPrimary.h |
| 644 | region := ActualPrimary.standardRegion |
| 645 | patch := patch |
| 646 | leftWeight := FinalSlowBase.edgeExponent ActualPrimary.nominal / 4 |
| 647 | rightWeight := 1 |
| 648 | left_pos := div_pos (FinalSlowBase.edgeExponent_pos ActualPrimary.nominal) (by norm_num) |
| 649 | right_pos := zero_lt_one |
| 650 | epsilon := ChartScales.epsilon ActualPrimary.h |
| 651 | slow := BaseContextAssembly.slowScale |
| 652 | epsilon_pos := ChartScales.epsilon_pos ActualPrimary.h |
| 653 | epsilon_le_one := ChartScales.epsilon_le_one ActualPrimary.h ActualPrimary.outgoing.data.h_pos.le |
| 654 | slow_ge_one := BaseContextAssembly.one_le_slowScale |
| 655 | gauge := ActualPrimary.commonGauge |
| 656 | inner_eq := rfl |
| 657 | outer_eq := rfl |
| 658 | exponent_pos := ChartScales.radialExponent_pos ActualPrimary.h ActualPrimary.outgoing.data.h_pos.le |
| 659 | length_eq := fun _ => rfl |
| 660 | fast := CommonBaseContext.fastCoefficient ActualPrimary.h (CommonWindow.index ActualPrimary.h) |
| 661 | axial := (0, 1) |
| 662 | time := (1, 0) |
| 663 | temporal := TorusInverse.vector .temporal |
| 664 | |
| 665 | theorem geometry_strip : geometry.strip = strip := rfl |
| 666 | theorem geometry_slowStrip : geometry.slowStrip = slowStrip := rfl |
| 667 | theorem geometry_operators (B : ℕ) : geometry.operators = (ActualPrimary.commonContext B).operators := rfl |
| 668 | |
| 669 | theorem initial_primitive (B N0 : ℕ) : |
| 670 | MeanStateRegularity.PrimitiveData geometry.region geometry.patch.a geometry.patch.b |
| 671 | (ActualPrimary.commonContext B) (initialState B N0) := |
| 672 | ActualInitialCoherence.initialized_primitive B N0 |
| 673 | |
| 674 | theorem initial_on_overlap (B N0 n m k : ℕ) |
| 675 | (hi : CommonWindow.index ActualPrimary.h n + k = CommonWindow.index ActualPrimary.h m) : |
| 676 | PhysicalResidualNaturality.StateOn |
| 677 | (PhysicalMeanDomain.slowDomain (ActualInitialCoherence.overlap n m)) |
| 678 | (GaugeStateCoherence.bandChartEquiv ActualPrimary.h n m k) |
| 679 | (GaugeStateCoherence.bandVelocityScale ActualPrimary.h n m) |
| 680 | (GaugeStateCoherence.bandScale n m) (initialState B N0) (initialState B N0) n m := |
| 681 | ActualInitialCoherence.initialized_on_overlap B N0 n m k hi |
| 682 | |
| 683 | theorem initial_oscillation_smooth (B N0 : ℕ) : |
| 684 | WaveStateRegularity.AngularSmooth geometry.domain (initialState B N0).oscillation := by |
| 685 | rw [initialState_oscillation] |
| 686 | exact ActualInitialCoherence.seed_smooth B N0 |
| 687 | |
| 688 | theorem initial_oscillation_support (B N0 : ℕ) : |
| 689 | WaveStateRegularity.WaveSupport geometry.region geometry.patch.a geometry.patch.b |
| 690 | (initialState B N0).oscillation := by |
| 691 | rw [initialState_oscillation] |
| 692 | exact ActualInitialCoherence.seed_support B N0 |
| 693 | |
| 694 | theorem initial_oscillation_periodic (B N0 : ℕ) : |
| 695 | CorrectionStep.OscillationPeriodic geometry.region.carrier (initialState B N0).oscillation := by |
| 696 | rw [initialState_oscillation] |
| 697 | intro n R s hs theta |
| 698 | exact ActualInitialCoherence.seed_velocity_periodic B N0 n R s theta |
| 699 | |
| 700 | theorem initial_base_angular (B N0 n : ℕ) (x : Point) (hx : x ∈ geometry.domain) (i : Fin 3) : |
| 701 | Continuous (fun theta : ℝ => (initialState B N0).errors.base n (x, theta) i) := by |
| 702 | rw [(initialState_error_components B N0).1] |
| 703 | exact ActualBaseResidual.baseError_angular_continuous ActualPrimary.certificate |
| 704 | ActualPrimary.modulation ActualPrimary.upper B n (geometry.region.time_pos _ hx) i |
| 705 | |
| 706 | theorem phase_smooth_full {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 707 | ContDiffOn ℝ ∞ ((primaryPiece l).coefficients.phase n) (HarmonicResidual.liftDomain strip.domain) := |
| 708 | (ActualPrimaryCoherence.piece_phase_smooth ActualPrimary.standardRegion l.2 l.1 n).mono |
| 709 | (fun _ hx => hx.1) |
| 710 | |
| 711 | theorem phase_smooth {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 712 | ContDiffOn ℝ ∞ (phase l n) strip.domain := |
| 713 | (phase_smooth_full l n).comp (HarmonicWaveInteraction.inclusion (D := Point)).contDiff.contDiffOn |
| 714 | (fun _ hx => ⟨hx, trivial⟩) |
| 715 | |
| 716 | theorem exact_amplitude_smooth_full {B N0 : ℕ} (l : Index B N0) (n : ℕ) (i : Fin 3) : |
| 717 | ContDiffOn ℝ ∞ (fun x => (primaryPiece l).exactCoefficients.amplitude n x i) |
| 718 | (HarmonicResidual.liftDomain strip.domain) := by |
| 719 | have hm : MapsTo (ActualPrimaryCoherence.absoluteChart n) |
| 720 | (HarmonicResidual.liftDomain strip.domain) ActualPrimaryCoherence.positiveRadialAbsolute := by |
| 721 | intro x hx |
| 722 | exact ⟨mul_pos (Real.sqrt_pos.mpr (ChartScales.Q_pos n)) |
| 723 | (BaseContextAssembly.nativeStrip_radius ActualPrimary.nominal ActualPrimary.standardRegion hx.1), |
| 724 | mul_pos (ChartScales.Q_pos n) (strip_time x.1 hx.1)⟩ |
| 725 | have he : (primaryPiece l).exactCoefficients.amplitude n = |
| 726 | fun x => ChartScales.Q n ^ CoordinateAlgebra.A ActualPrimary.h • |
| 727 | ActualPrimaryCoherence.absoluteExactAmplitude l.2 l.1 (ActualPrimaryCoherence.absoluteChart n x) := |
| 728 | funext (ActualPrimaryCoherence.exactAmplitude_representation ActualPrimary.standardRegion l.2 l.1 n) |
| 729 | rw [he] |
| 730 | exact contDiffOn_pi.mp (((ActualPrimaryCoherence.absoluteExactAmplitude_smooth l.2 l.1).comp |
| 731 | (ActualPrimaryCoherence.absoluteChart n).contDiff.contDiffOn hm).const_smul _) i |
| 732 | |
| 733 | theorem exact_pressure_smooth_full {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 734 | ContDiffOn ℝ ∞ ((primaryPiece l).exactCoefficients.pressure n) |
| 735 | (HarmonicResidual.liftDomain strip.domain) := |
| 736 | ((ActualPrimaryBounds.chart_cut_pressure_uniform.each (l.2,l.1)).smooth n).mono |
| 737 | (fun _ hx => hx.1) |
| 738 | |
| 739 | theorem initial_meanGood (B N0 n : ℕ) {x : Point} (hT : 0 < x.2.1.1) (i : Fin 3) : |
| 740 | (initialState B N0).meanGoodResidual (ActualPrimary.commonContext B) n x i = |
| 741 | (initialState B N0).reducedMeanResidual (ActualPrimary.commonContext B) n x i - |
| 742 | initialAlias B N0 n x i := |
| 743 | ActualInitialMean.initialized_meanGood B N0 n hT i |
| 744 | |
| 745 | theorem initialAlias_radial (B N0 n : ℕ) (x : Point) : |
| 746 | initialAlias B N0 n x 0 = VariableGaugeMean.pressureAliasState ActualPrimary.commonGauge |
| 747 | (ActualPrimary.commonContext B) (initialState B N0) n (x, 0) 0 := by |
| 748 | simp only [initialAlias, VariableGaugeMean.temporalAliasState, Matrix.cons_val_zero, zero_add] |
| 749 | rfl |
| 750 | |
| 751 | /-- The remaining radial mean is controlled by the actual measured pressure debt. -/ |
| 752 | theorem initial_radial_mean_class (B N0 : ℕ) {alpha : ℝ} |
| 753 | (hdebt : UnweightedClass slowStrip alpha |
| 754 | (pressureDefect (ActualPrimary.commonContext B) (initialState B N0))) : |
| 755 | MeanClass strip alpha (fun n x => |
| 756 | (initialState B N0).meanGoodResidual (ActualPrimary.commonContext B) n x 0) := by |
| 757 | have hr : GaugeRadialResidualBounds.RadialMatch geometry.region.carrier geometry.gauge |
| 758 | (ActualPrimary.commonContext B).operators := by |
| 759 | rw [← geometry_operators B] |
| 760 | exact GaugeRadialResidualBounds.RadialMatch.nativeOperators geometry.region.carrier |
| 761 | geometry.gauge geometry.epsilon geometry.fast geometry.axial geometry.time geometry.temporal |
| 762 | have hclass := GaugeRadialResidualBounds.radialMinusAlias_class geometry.region geometry.gauge |
| 763 | geometry.inner_pos geometry.exponent_pos geometry.left_pos geometry.right_pos |
| 764 | geometry.epsilon geometry.slow geometry.epsilon_pos geometry.epsilon_le_one geometry.slow_ge_one |
| 765 | geometry.length_eq (ActualPrimary.commonContext B) (initialState B N0) |
| 766 | (initial_primitive B N0) hr rfl hdebt |
| 767 | apply MeanIncrementBounds.class_congr hclass |
| 768 | intro n x hx |
| 769 | change (initialState B N0).meanGoodResidual (ActualPrimary.commonContext B) n x 0 = _ |
| 770 | rw [initial_meanGood B N0 n (strip_time x hx) 0, initialAlias_radial] |
| 771 | rfl |
| 772 | |
| 773 | end NavierStokes.ActualInitialization |
| 774 | |
| 775 | namespace NavierStokes.ActualInitialization |
| 776 | |
| 777 | open Set Function Filter WeightedClasses CorrectionState CorrectionInitialization |
| 778 | open HarmonicResidual HarmonicWaveInteraction |
| 779 | open scoped ContDiff Topology BigOperators |
| 780 | |
| 781 | theorem smooth_conjugatePair {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 782 | {U : Set D} {f : D → ℂ} (hf : ContDiffOn ℝ ∞ f U) (j : ℤ) : |
| 783 | SmoothCoefficients U (ErrorHarmonics.conjugatePair j f) := by |
| 784 | have hs := smoothCoefficients_single (hf.div_const 2) j |
| 785 | exact hs.add hs.conjugateReverse |
| 786 | |
| 787 | theorem primary_coefficients_smooth {B N0 : ℕ} (l : Index B N0) (n : ℕ) (i : Fin 3) : |
| 788 | SmoothCoefficients strip.domain ((primaryBlock l).velocity n i) := by |
| 789 | apply smooth_conjugatePair |
| 790 | exact (exact_amplitude_smooth_full l n i).comp |
| 791 | (HarmonicWaveInteraction.inclusion (D := Point)).contDiff.contDiffOn (fun _ hx => ⟨hx, trivial⟩) |
| 792 | |
| 793 | theorem primary_pressure_smooth {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 794 | SmoothCoefficients strip.domain ((primaryBlock l).pressure n) := by |
| 795 | apply smooth_conjugatePair |
| 796 | exact (exact_pressure_smooth_full l n).comp |
| 797 | (HarmonicWaveInteraction.inclusion (D := Point)).contDiff.contDiffOn (fun _ hx => ⟨hx, trivial⟩) |
| 798 | |
| 799 | theorem gaussian_coefficients_smooth {B N0 : ℕ} (l : Index B N0) (n : ℕ) (i : Fin 3) : |
| 800 | SmoothCoefficients strip.domain ((gaussianBlock l).velocity n i) := by |
| 801 | have hm : MapsTo (ActualPrimaryCoherence.absoluteChart n) |
| 802 | (HarmonicResidual.liftDomain strip.domain) ActualPrimaryCoherence.positiveAbsolute := by |
| 803 | intro x hx |
| 804 | exact mul_pos (ChartScales.Q_pos n) (strip_time x.1 hx.1) |
| 805 | have he : LinearWaveBounds.excludedSlotError (primaryPiece l).directions (primaryPiece l).cutoff |
| 806 | (primaryPiece l).coefficients.amplitude 0 n = |
| 807 | fun x => ChartScales.Q n ^ (2 * CoordinateAlgebra.A ActualPrimary.h + 1/2) • |
| 808 | ActualPrimaryCoherence.absoluteGaussianCoefficient l.2 l.1 (ActualPrimaryCoherence.absoluteChart n x) := |
| 809 | funext (ActualPrimaryCoherence.gaussianCoefficient_representation ActualPrimary.standardRegion l.2 l.1 n) |
| 810 | have hs : ContDiffOn ℝ ∞ (LinearWaveBounds.excludedSlotError (primaryPiece l).directions |
| 811 | (primaryPiece l).cutoff (primaryPiece l).coefficients.amplitude 0 n) |
| 812 | (HarmonicResidual.liftDomain strip.domain) := by |
| 813 | rw [he] |
| 814 | exact ((ActualPrimaryCoherence.absoluteGaussianCoefficient_smooth l.2 l.1).comp |
| 815 | (ActualPrimaryCoherence.absoluteChart n).contDiff.contDiffOn hm).const_smul _ |
| 816 | apply smooth_conjugatePair |
| 817 | exact (contDiffOn_pi.mp hs i).comp |
| 818 | (HarmonicWaveInteraction.inclusion (D := Point)).contDiff.contDiffOn (fun _ hx => ⟨hx, trivial⟩) |
| 819 | |
| 820 | /-- Harmonic solenoidality is extracted from the actual corrected curl. -/ |
| 821 | theorem primary_modeSolenoidal {B N0 : ℕ} (l : Index B N0) : |
| 822 | ModeSolenoidal strip (ActualPrimary.commonContext B) (primaryBlock l) := by |
| 823 | apply modeSolenoidal_of_full (ActualPrimary.commonContext B) (primaryBlock l) |
| 824 | (phase_smooth l) (angularMode_ne_zero l) (primary_coefficients_smooth l) |
| 825 | intro n x hx |
| 826 | rw [(primaryBlock_represents l).1] |
| 827 | have hd := ActualPrimaryCoherence.piece_full_divergence ActualPrimary.standardRegion l.2 l.1 n |
| 828 | (ActualPrimaryCoherence.piece_domain_positive ActualPrimary.standardRegion hx) |
| 829 | have hax : (PrimaryResidualClass.directions (ActualPrimary.commonContext B)).axialField |
| 830 | (ActualPrimary.piece ActualPrimary.standardRegion l.2 l.1).strip n = |
| 831 | liftDirection (contextFrame (ActualPrimary.commonContext B) n).axial := |
| 832 | PrimaryResidualClass.directions_axial strip (ActualPrimary.commonContext B) rfl n |
| 833 | rw [PrimaryResidualClass.directions_radial, hax] at hd |
| 834 | exact hd |
| 835 | |
| 836 | theorem primary_pressure_zero {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 837 | (primaryBlock l).pressure n 0 = 0 := |
| 838 | (SignedWaveUpdate.coefficientBlock_zero_coefficient |
| 839 | (primaryPiece l).coefficients.frequency (phase l) (angularMode l) |
| 840 | (fun n x => (primaryPiece l).exactCoefficients.amplitude n (x,0)) |
| 841 | (fun n x => (primaryPiece l).exactCoefficients.pressure n (x,0))).2 n |
| 842 | |
| 843 | theorem primary_tangent_carrier {B N0 : ℕ} (l : Index B N0) : |
| 844 | CorrectionStep.SameCarrier (primaryBlock l) (tangentBlock l) := ⟨rfl, rfl, rfl⟩ |
| 845 | |
| 846 | /-- All assumptions of local harmonic extraction follow from the actual |
| 847 | initial state and the proved support separation of its primary pieces. -/ |
| 848 | theorem initial_extraction_regular (B N0 n : ℕ) : |
| 849 | LocalResidualGrouping.ExtractionRegular strip.domain (ActualPrimary.commonContext B) |
| 850 | (initialState B N0) (coefficients B N0).labels (coefficients B N0).blocks |
| 851 | (coefficients B N0).gaussian (coefficients B N0).aliasCoefficients n := by |
| 852 | constructor |
| 853 | · exact contextFrame_regular (ActualPrimary.commonContext B) n contDiffOn_fst |
| 854 | (fun x hx => (radius_pos B x hx).ne') ((operators B).radialProfile.smooth n) |
| 855 | · intro i |
| 856 | fin_cases i |
| 857 | · exact Complex.ofRealCLM.contDiff.comp_contDiffOn ((base_bounds B).radial.smooth n) |
| 858 | · exact Complex.ofRealCLM.contDiff.comp_contDiffOn ((base_bounds B).angular.smooth n) |
| 859 | · exact Complex.ofRealCLM.contDiff.comp_contDiffOn ((base_bounds B).axial.smooth n) |
| 860 | · intro i |
| 861 | have hm := (initial_primitive B N0).mean |
| 862 | fin_cases i |
| 863 | · exact Complex.ofRealCLM.contDiff.comp_contDiffOn ((hm.radial.smooth n).mono geometry.strip_subset) |
| 864 | · exact Complex.ofRealCLM.contDiff.comp_contDiffOn ((hm.angular.smooth n).mono geometry.strip_subset) |
| 865 | · exact Complex.ofRealCLM.contDiff.comp_contDiffOn ((hm.axial.smooth n).mono geometry.strip_subset) |
| 866 | · exact (((initial_primitive B N0).pressure geometry.inner_pos geometry.exponent_pos |
| 867 | geometry.length_eq rfl).smooth n).mono geometry.strip_subset |
| 868 | · intro l hl |
| 869 | exact ⟨phase_smooth l n, fun i => (primary_coefficients_smooth l n i).realCoefficients, |
| 870 | (primary_pressure_smooth l n).realCoefficients⟩ |
| 871 | · intro l hl i |
| 872 | exact gaussian_coefficients_smooth l n i |
| 873 | · intro l hl i |
| 874 | exact smoothCoefficients_zero strip.domain |
| 875 | · intro l hl m hm hlm |
| 876 | change Disjoint (liftDomain strip.domain ∩ tsupport ((primaryBlock l).oscillation n)) |
| 877 | (liftDomain strip.domain ∩ tsupport ((primaryBlock m).oscillation n)) |
| 878 | rw [(primaryBlock_represents l).1, (primaryBlock_represents m).1, |
| 879 | LocalResidualGrouping.liftDomain_eq_preimage] |
| 880 | exact ActualPrimaryCovariance.velocity_tsupport_disjoint n hlm |
| 881 | · intro l hl |
| 882 | exact angularMode_ne_zero l n |
| 883 | |
| 884 | theorem initial_goodWave_grouped (B N0 n : ℕ) {x : Point × ℝ} |
| 885 | (hx : x.1 ∈ strip.domain) (i : Fin 3) : |
| 886 | CorrectionStep.fullGoodWaveResidual (ActualPrimary.commonContext B) (initialState B N0) n x i = |
| 887 | ∑ l ∈ (coefficients B N0).labels n, (initialResidualBlock l).oscillation n x i := |
| 888 | (initialCycleState_represents B N0).fullGoodWaveResidual_grouped_local strip.isOpen_domain |
| 889 | (initial_extraction_regular B N0 n) ⟨hx, trivial⟩ i |
| 890 | |
| 891 | end NavierStokes.ActualInitialization |
| 892 | |
| 893 | namespace NavierStokes.ActualInitialization |
| 894 | |
| 895 | open Set Function Filter WeightedClasses CorrectionState CorrectionInitialization |
| 896 | open HarmonicCalculus HarmonicWaveInteraction HarmonicMeanInteraction |
| 897 | open scoped ContDiff Topology |
| 898 | |
| 899 | /-- Restriction to zero angle and a union of actual copy cells preserve |
| 900 | the constants chosen before labels and copies. -/ |
| 901 | theorem local_slice_union {D E I J K : Type} |
| 902 | [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 903 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 904 | {s : StripData D} {C : ℕ → J × K → Set (D × ℝ)} {alpha : ℝ} |
| 905 | {f : J → ℕ → D × ℝ → E} (e : I → J) |
| 906 | (hs : ∀ l n, ContDiffOn ℝ ∞ (f l n) (productStrip s).domain) |
| 907 | (hf : LocalizedWaveBounds.LocalUnweighted (D := D × ℝ) (E := E) (I := J × K) (productStrip s) C alpha |
| 908 | (fun (n : ℕ) (i : J × K) (x : D × ℝ) => f i.1 n x)) : |
| 909 | LocalizedWaveBounds.LocalUnweighted (D := D) (E := E) (I := I) s |
| 910 | (fun n i => {x | ∃ k, (x, 0) ∈ C n (e i, k)}) alpha |
| 911 | (fun n i x => f (e i) n (x, 0)) := by |
| 912 | refine ⟨fun _ _ _ _ => zero_le_one, ?_, ?_⟩ |
| 913 | · intro n i x hx hc |
| 914 | exact (((hs (e i) n).comp (inclusion (D := D)).contDiff.contDiffOn |
| 915 | (fun _ h => h)).contDiffAt (s.isOpen_domain.mem_nhds hx)) |
| 916 | · intro m |
| 917 | obtain ⟨A, hA, p, hb⟩ := hf.bounds m |
| 918 | refine ⟨A, hA, p, ?_⟩ |
| 919 | rintro n i x hx ⟨k, hk⟩ j hj |
| 920 | have hh := norm_jet_comp_linear (productStrip s).isOpen_domain (hs (e i) n) |
| 921 | (inclusion (D := D)) hx j |
| 922 | have hp : ‖inclusion (D := D)‖ ^ j ≤ 1 := pow_le_one₀ (norm_nonneg _) inclusion_norm |
| 923 | exact (hh.trans (mul_le_of_le_one_right (norm_nonneg _) hp)).trans |
| 924 | (hb n (e i, k) (x, 0) hx hk j hj) |
| 925 | |
| 926 | noncomputable def fullNormal {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 927 | Point × ℝ → ProblemStatement.Space := |
| 928 | (primaryPiece l).coefficients.normal (primaryPiece l).strip (primaryPiece l).directions n |
| 929 | |
| 930 | theorem fullNormal_smooth {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 931 | ContDiffOn ℝ ∞ (fullNormal l n) (productStrip strip).domain := by |
| 932 | have hh := CurlClassBounds.phaseNormal_contDiffOn |
| 933 | (ActualPrimaryCoherence.piece_geometry ActualPrimary.standardRegion B n) |
| 934 | (ActualPrimaryCoherence.chart_phase_smooth l.2 l.1 n) |
| 935 | exact hh.mono (ActualPrimaryCoherence.piece_domain_positive ActualPrimary.standardRegion) |
| 936 | |
| 937 | theorem phase_slice_derivative {B N0 : ℕ} (l : Index B N0) (n : ℕ) |
| 938 | {x : Point} (hx : x ∈ strip.domain) (v : Point) : |
| 939 | fderiv ℝ (phase l n) x v = fderiv ℝ ((primaryPiece l).coefficients.phase n) (x, 0) (v, 0) := by |
| 940 | have hd := ((phase_smooth_full l n).contDiffAt |
| 941 | ((HarmonicResidual.liftDomain_open strip.isOpen_domain).mem_nhds |
| 942 | (show (x, 0) ∈ HarmonicResidual.liftDomain strip.domain from ⟨hx, trivial⟩))).differentiableAt (by simp) |
| 943 | have he := (hd.hasFDerivAt.comp x (inclusion (D := Point)).hasFDerivAt).fderiv |
| 944 | exact congrArg (fun L : Point →L[ℝ] ℝ => L v) he |
| 945 | |
| 946 | theorem slowNormal_component {B N0 : ℕ} (l : Index B N0) (n : ℕ) |
| 947 | {x : Point} (hx : x ∈ strip.domain) (i : Fin 3) : |
| 948 | slowNormal (ActualPrimary.commonContext B) (operators B) (radius_pos B) (phase l) n x i = |
| 949 | if i = 1 then 0 else fullNormal l n (x, 0) i := by |
| 950 | have hr := PrimaryResidualClass.directions_radial (ActualPrimary.commonContext B) n |
| 951 | have hz := PrimaryResidualClass.directions_axial strip (ActualPrimary.commonContext B) rfl n |
| 952 | fin_cases i |
| 953 | · change fderiv ℝ (phase l n) x _ = fderiv ℝ ((primaryPiece l).coefficients.phase n) (x,0) _ |
| 954 | change fderiv ℝ (phase l n) x _ = fderiv ℝ ((primaryPiece l).coefficients.phase n) (x,0) |
| 955 | ((PrimaryResidualClass.directions (ActualPrimary.commonContext B)).radialField n (x,0)) |
| 956 | rw [hr] |
| 957 | exact phase_slice_derivative l n hx _ |
| 958 | · simp [slowNormal, slowGeometry, phaseNormal, along] |
| 959 | · change fderiv ℝ (phase l n) x _ = fderiv ℝ ((primaryPiece l).coefficients.phase n) (x,0) _ |
| 960 | change fderiv ℝ (phase l n) x _ = fderiv ℝ ((primaryPiece l).coefficients.phase n) (x,0) |
| 961 | ((PrimaryResidualClass.directions (ActualPrimary.commonContext B)).axialField (productStrip strip) n (x,0)) |
| 962 | rw [hz] |
| 963 | exact phase_slice_derivative l n hx _ |
| 964 | |
| 965 | theorem phase_angular_affine {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 966 | CopyAngularInvariance.AffinePhase ((0 : Point),1) |
| 967 | ((angularMode l n : ℝ) / (primaryPiece l).coefficients.frequency n) |
| 968 | ((primaryPiece l).coefficients.phase n) := by |
| 969 | intro x t |
| 970 | change (ActualPrimary.absolutePhase l.2 l.1 (ActualPrimary.toAbsolute n (x.1 + t • 0), x.2 + t * 1) / |
| 971 | (ChartScales.carrier ActualPrimary.h n : ℝ)) = _ |
| 972 | simp only [smul_zero, add_zero, mul_one] |
| 973 | simp only [ActualPrimary.absolutePhase, angularMode] |
| 974 | dsimp only [primaryPiece, ActualPrimary.piece, ActualPrimary.chartCoefficients] |
| 975 | change (_ * (x.2 + t) + _) / _ = (_ * x.2 + _) / _ + (_ / _) * t |
| 976 | ring |
| 977 | |
| 978 | theorem angularMode_from_normal {B N0 : ℕ} (l : Index B N0) (n : ℕ) |
| 979 | {x : Point} (hx : x ∈ strip.domain) : |
| 980 | (angularMode l n : ℝ) = (primaryPiece l).coefficients.frequency n * x.1 * fullNormal l n (x, 0) 1 := by |
| 981 | have hd := (phase_angular_affine l n).directional_eq |
| 982 | (((phase_smooth_full l n).contDiffAt |
| 983 | ((HarmonicResidual.liftDomain_open strip.isOpen_domain).mem_nhds |
| 984 | (show (x, 0) ∈ HarmonicResidual.liftDomain strip.domain from ⟨hx, trivial⟩))).differentiableAt (by simp)) |
| 985 | have hn : fullNormal l n (x,0) 1 = |
| 986 | ((angularMode l n : ℝ) / (primaryPiece l).coefficients.frequency n) / x.1 := by |
| 987 | have hc := congrArg (fun a : ℝ => a / x.1) hd |
| 988 | simp only [fullNormal, LinearWaveBounds.WaveCoefficients.normal, phaseNormal, along, Matrix.cons_val_one, Matrix.cons_val_zero, ActualPrimary.piece, |
| 989 | PrimaryResidualClass.directions, primaryPiece] at hc ⊢ |
| 990 | exact hc |
| 991 | rw [hn] |
| 992 | have hK := (ActualPrimary.chartCoefficients_frequency_pos l.2 l.1 n).ne' |
| 993 | have hR := (BaseContextAssembly.nativeStrip_radius ActualPrimary.nominal ActualPrimary.standardRegion hx).ne' |
| 994 | have hK' : (primaryPiece l).coefficients.frequency n ≠ 0 := hK |
| 995 | field_simp [hK', hR] |
| 996 | |
| 997 | end NavierStokes.ActualInitialization |
| 998 | |
| 999 | namespace NavierStokes.ActualInitialization |
| 1000 | |
| 1001 | open Set Function Filter WeightedClasses CorrectionState CorrectionInitialization |
| 1002 | open HarmonicWaveInteraction HarmonicMeanInteraction UniformHarmonicInteraction |
| 1003 | open scoped ContDiff Topology |
| 1004 | |
| 1005 | noncomputable def meanControlCell {B N0 : ℕ} (n : ℕ) (l : Index B N0) : Set Point := |
| 1006 | {x | ∃ k : TorusInverse.Frequency, (x,0) ∈ ActualPrimaryBounds.controlCell n ((l.2,l.1), k)} |
| 1007 | |
| 1008 | theorem fullNormal_slice_local (B N0 : ℕ) (i : Fin 3) : |
| 1009 | LocalizedWaveBounds.LocalUnweighted strip meanControlCell 0 |
| 1010 | (fun n (l : Index B N0) x => fullNormal l n (x,0) i) := by |
| 1011 | have hs (l : ActualPrimaryBounds.SignedLabel B N0) (n : ℕ) : |
| 1012 | ContDiffOn ℝ ∞ (fun x => ActualPrimaryBounds.chartNormal l n x i) (productStrip strip).domain := by |
| 1013 | exact (contDiffOn_piLp 2).mp (fullNormal_smooth (l.2,l.1) n) i |
| 1014 | exact local_slice_union (s := strip) (C := ActualPrimaryBounds.controlCell) |
| 1015 | (f := fun l n x => ActualPrimaryBounds.chartNormal l n x i) Prod.swap hs |
| 1016 | (ActualPrimaryBounds.chart_normal_local.map (EuclideanSpace.proj i)) |
| 1017 | |
| 1018 | theorem slowNormal_local (B N0 : ℕ) (i : Fin 3) : |
| 1019 | LocalizedWaveBounds.LocalUnweighted strip meanControlCell 0 |
| 1020 | (fun n (l : Index B N0) x => slowNormal (ActualPrimary.commonContext B) |
| 1021 | (operators B) (radius_pos B) (phase l) n x i) := by |
| 1022 | by_cases hi : i = 1 |
| 1023 | · subst i |
| 1024 | apply (LocalizedWaveBounds.local_const (s := strip) (K := meanControlCell) (0 : ℝ)).congr_germ |
| 1025 | intro n l x hx hc |
| 1026 | filter_upwards [strip.isOpen_domain.mem_nhds hx] with y hy |
| 1027 | rw [slowNormal_component l n hy] |
| 1028 | simp |
| 1029 | · apply (fullNormal_slice_local B N0 i).congr_germ |
| 1030 | intro n l x hx hc |
| 1031 | filter_upwards [strip.isOpen_domain.mem_nhds hx] with y hy |
| 1032 | rw [slowNormal_component l n hy, ite_eq_right hi] |
| 1033 | |
| 1034 | theorem frequency_local (B N0 : ℕ) : |
| 1035 | LocalizedWaveBounds.LocalUnweighted strip meanControlCell (-(1/2 : ℝ)) |
| 1036 | (fun n (l : Index B N0) (_ : Point) => (primaryBlock l).frequency n) := |
| 1037 | LocalizedWaveBounds.LocalClass.band_const ActualPrimaryBounds.carrier_band |
| 1038 | |
| 1039 | theorem angularFrequency_local (B N0 : ℕ) : |
| 1040 | LocalizedWaveBounds.LocalUnweighted strip meanControlCell (-(1/2 : ℝ)) |
| 1041 | (fun n (l : Index B N0) (_ : Point) => ((primaryBlock l).angularFrequency n : ℝ)) := by |
| 1042 | have hrFull : UnweightedClass (productStrip strip) 0 (fun _ (x : Point × ℝ) => x.1.1) := |
| 1043 | ActualPrimaryBounds.radius_unweighted |
| 1044 | have hr : UnweightedClass strip 0 (fun _ (x : Point) => x.1) := |
| 1045 | HarmonicWaveInteraction.class_slice (s := strip) (w := fun _ _ => 1) hrFull |
| 1046 | have hm := LocalizedWaveBounds.unweighted_mul |
| 1047 | (LocalizedWaveBounds.unweighted_mul (frequency_local B N0) |
| 1048 | (LocalizedWaveBounds.LocalClass.of_global (K := meanControlCell) hr)) (fullNormal_slice_local B N0 1) |
| 1049 | have hm' : LocalizedWaveBounds.LocalUnweighted strip meanControlCell (-(1/2 : ℝ)) |
| 1050 | (fun n (l : Index B N0) x => (primaryBlock l).frequency n * x.1 * fullNormal l n (x,0) 1) := by |
| 1051 | simpa only [add_zero] using hm |
| 1052 | apply hm'.congr_germ |
| 1053 | intro n l x hx hc |
| 1054 | filter_upwards [strip.isOpen_domain.mem_nhds hx] with y hy |
| 1055 | exact (angularMode_from_normal l n hy).symm |
| 1056 | |
| 1057 | theorem primary_zero_germ_outside_control {B N0 : ℕ} (n : ℕ) (l : Index B N0) |
| 1058 | {x : Point} (hx : x ∈ strip.domain) (hc : x ∉ meanControlCell n l) (i : Fin 3) (j : ℤ) : |
| 1059 | (primaryBlock l).velocity n i j =ᶠ[𝓝 x] fun _ => 0 := by |
| 1060 | have hzero : (primaryPiece l).exactCoefficients.amplitude n =ᶠ[𝓝 (x,0)] fun _ => 0 := by |
| 1061 | rcases ActualPrimaryBounds.actual_input_cover (l.2,l.1) n (x := (x,0)) hx with ⟨k,hk⟩ | ⟨ha,hp⟩ |
| 1062 | · exact (hc ⟨k,hk⟩).elim |
| 1063 | · exact ((ActualPrimaryBounds.actualFamily (B := B) (N0 := N0)).outputs_zero_germs |
| 1064 | ActualPrimaryBounds.fullStrip (ActualPrimaryBounds.directions B) (i := ((l.2,l.1),0)) ha hp).2.1 |
| 1065 | have hz := hzero.comp_tendsto (inclusion (D := Point)).continuous.continuousAt |
| 1066 | filter_upwards [hz] with y hy |
| 1067 | change (primaryPiece l).exactCoefficients.amplitude n (y,0) = 0 at hy |
| 1068 | change ErrorHarmonics.conjugatePair 1 |
| 1069 | (fun z => (primaryPiece l).exactCoefficients.amplitude n (z,0) i) j y = 0 |
| 1070 | simp only [ParticularWaveAssembly.pair_apply, hy, Pi.zero_apply, zero_div] |
| 1071 | split_ifs <;> simp |
| 1072 | |
| 1073 | theorem primary_coefficients_uniform (B N0 : ℕ) (i : Fin 3) (j : ℤ) : |
| 1074 | LabelSumBounds.UniformWaveClass strip envelope (1/2) |
| 1075 | (fun l : Index B N0 => fun n x => (primaryBlock l).velocity n i j x) := |
| 1076 | ((ActualPrimaryBounds.exact_block_uniform (B := B) (N0 := N0)).1 i j).reindex Prod.swap |
| 1077 | |
| 1078 | theorem primary_uniform (B N0 : ℕ) : |
| 1079 | UniformVelocity strip envelope (1/2) (primaryBlock (B := B) (N0 := N0)) := |
| 1080 | fun i j _ => primary_coefficients_uniform B N0 i j |
| 1081 | |
| 1082 | theorem difference_coefficients_uniform (B N0 : ℕ) (i : Fin 3) (j : ℤ) : |
| 1083 | LabelSumBounds.UniformWaveClass strip envelope (17/25) |
| 1084 | (fun l : Index B N0 => fun n x => (primaryBlock l).velocity n i j x - (tangentBlock l).velocity n i j x) := by |
| 1085 | have hd : LabelSumBounds.UniformWaveClass (productStrip strip) |
| 1086 | (fun l : Index B N0 => fun n x => envelope l n x.1) (1 - ChartScales.kappa) |
| 1087 | (fun l n x => (primaryPiece l).exactCoefficients.amplitude n x - |
| 1088 | ((primaryPiece l).coefficients.withCutoff (primaryPiece l).cutoff).amplitude n x) := |
| 1089 | (ActualPrimaryBounds.chart_difference_uniform (B := B) (N0 := N0)).reindex Prod.swap |
| 1090 | have hs := (UniformBlockBounds.uniform_slice (s := strip) |
| 1091 | (w := fun l n x => Real.sqrt (strip.zeta x) * envelope l n x) hd).map (ContinuousLinearMap.proj i) |
| 1092 | have hp := (UniformBlockBounds.pair_uniform hs 1 j).mono_exponent |
| 1093 | (show (17/25 : ℝ) ≤ 1 - ChartScales.kappa by norm_num [ChartScales.kappa]) |
| 1094 | apply hp.congr |
| 1095 | intro l n x hx |
| 1096 | exact UniformBlockBounds.pair_sub_apply 1 j |
| 1097 | (fun y => (primaryPiece l).exactCoefficients.amplitude n (y,0) i) |
| 1098 | (fun y => ((primaryPiece l).coefficients.withCutoff (primaryPiece l).cutoff).amplitude n (y,0) i) x |
| 1099 | |
| 1100 | theorem good_coefficients_uniform (B N0 : ℕ) (i : Fin 3) (j : ℤ) : |
| 1101 | LabelSumBounds.UniformWaveClass strip envelope (7/10) |
| 1102 | (fun l : Index B N0 => fun n x => (goodBlock l).velocity n i j x) := by |
| 1103 | have hg : LabelSumBounds.UniformWaveClass (productStrip strip) |
| 1104 | (fun l : Index B N0 => fun n x => envelope l n x.1) (1 - 3 * ChartScales.kappa) |
| 1105 | (fun l => (primaryPiece l).linearGood) := |
| 1106 | (ActualPrimaryBounds.chart_good_uniform (B := B) (N0 := N0)).reindex Prod.swap |
| 1107 | have hs := (UniformBlockBounds.uniform_slice (s := strip) |
| 1108 | (w := fun l n x => Real.sqrt (strip.zeta x) * envelope l n x) hg).map (ContinuousLinearMap.proj i) |
| 1109 | exact (UniformBlockBounds.pair_uniform hs 1 j).mono_exponent |
| 1110 | (show (7/10 : ℝ) ≤ 1 - 3 * ChartScales.kappa by norm_num [ChartScales.kappa]) |
| 1111 | |
| 1112 | theorem linearGood_uniform (B N0 : ℕ) : |
| 1113 | UniformVelocity strip envelope (7/10) |
| 1114 | (fun l : Index B N0 => linearGoodBlock (ActualPrimary.commonContext B) |
| 1115 | (primaryBlock l) (primaryBlock l) (gaussianBlock l).velocity) := by |
| 1116 | apply linearGood_uniform_of_identity B N0 (primary_uniform B N0) phase_smooth_full |
| 1117 | exact_amplitude_smooth_full exact_pressure_smooth_full |
| 1118 | (fun i j _ => good_coefficients_uniform B N0 i j) |
| 1119 | intro l n x hx i |
| 1120 | exact ActualPrimaryDynamics.linearResidual_eq_on_strip l.2 l.1 n hx.1 i |
| 1121 | |
| 1122 | end NavierStokes.ActualInitialization |
| 1123 | |
| 1124 | namespace NavierStokes.ActualInitialization |
| 1125 | |
| 1126 | open Set Function Filter WeightedClasses CorrectionState CorrectionInitialization |
| 1127 | open scoped ContDiff Topology |
| 1128 | |
| 1129 | noncomputable def labelCarrier {B N0 : ℕ} (l : Index B N0) (n : ℕ) : Set Point := |
| 1130 | ActualInitialExcluded.labelCarrier (l.2, l.1) n |
| 1131 | |
| 1132 | theorem labelCarrier_closed {B N0 : ℕ} (l : Index B N0) (n : ℕ) : IsClosed (labelCarrier l n) := |
| 1133 | ActualInitialExcluded.labelCarrier_closed (l.2, l.1) n |
| 1134 | |
| 1135 | theorem native_source_core {B N0 : ℕ} (l : Index B N0) (x : ActualSignedGeometry.Native) |
| 1136 | (hg : ActualPrimary.gaussian l.1 x ≠ 0) (hr : ActualPrimary.rawVelocity l.2 l.1 x ≠ 0) : |
| 1137 | x ∈ ActualGaussianCoverage.actualSourceCore ActualPrimary.certificate ActualPrimary.modulation |
| 1138 | (ActualPrimary.choice B N0).prepared l.1 := by |
| 1139 | have hm : ActualPrimary.spatialMask l.1 x.1 ≠ 0 := by |
| 1140 | intro hz |
| 1141 | exact hr (by simp [ActualPrimary.rawVelocity, PartitionedCovariance.amplitude, hz]) |
| 1142 | have hs := ActualPrimary.spatialMask_native_support l.1 x.1 hm |
| 1143 | have ht := ActualPrimary.rawVelocity_transverse l.2 l.1 x hr |
| 1144 | have hga : |x.2.2 / ((ActualPrimary.phases B N0 0).L l.1) - 1 / 2| < 1 / 3 := |
| 1145 | lt_of_not_ge (fun h => hg (GaussianTailFlat.profile_zero h)) |
| 1146 | have hL := (ActualPrimary.phases B N0 0).L_pos l.1 |
| 1147 | have hlo : (1 / 6 : ℝ) ≤ x.2.2 / ((ActualPrimary.phases B N0 0).L l.1) := by |
| 1148 | linarith [(abs_lt.mp hga).1] |
| 1149 | have hhi : x.2.2 / ((ActualPrimary.phases B N0 0).L l.1) ≤ 5 / 6 := by |
| 1150 | linarith [(abs_lt.mp hga).2] |
| 1151 | refine ⟨hs, ⟨ht.1.le, ht.2.le⟩, ?_, ?_⟩ |
| 1152 | · change ((ActualPrimary.phases B N0 0).L l.1 / 1) / 6 ≤ x.2.2 |
| 1153 | simpa only [div_eq_mul_inv, inv_one, mul_one, one_mul, mul_comm] using (le_div_iff₀ hL).mp hlo |
| 1154 | · change x.2.2 ≤ 5 * ((ActualPrimary.phases B N0 0).L l.1 / 1) / 6 |
| 1155 | simpa only [div_eq_mul_inv, inv_one, mul_one, one_mul, mul_comm, mul_assoc, mul_left_comm] using |
| 1156 | (div_le_iff₀ hL).mp hhi |
| 1157 | |
| 1158 | theorem cut_amplitude_source_support {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 1159 | support (((primaryPiece l).coefficients.withCutoff (primaryPiece l).cutoff).amplitude n) ⊆ |
| 1160 | Prod.fst ⁻¹' labelCarrier l n := by |
| 1161 | intro x hx |
| 1162 | by_cases hc : ∃ k : TorusInverse.Frequency, |
| 1163 | (ActualPrimaryDynamics.copyPoint l.2 l.1 n k x).2 ∈ (ActualPrimary.clockWindow l.1).core |
| 1164 | · obtain ⟨k, hk⟩ := hc |
| 1165 | have ha := (ActualPrimaryDynamics.amplitude_germ l.2 l.1 n k hk).eq_of_nhds |
| 1166 | have hpsi := (ActualInitialExcluded.chartCutoff_germ (l.2,l.1) n k hk).eq_of_nhds |
| 1167 | have hg : ActualPrimary.gaussian l.1 (ActualPrimaryDynamics.copyPoint l.2 l.1 n k x) ≠ 0 := by |
| 1168 | intro hz |
| 1169 | apply hx |
| 1170 | change ActualPrimary.chartCutoff l.2 l.1 n x • (ActualPrimary.chartCoefficients l.2 l.1).amplitude n x = 0 |
| 1171 | rw [hpsi, hz, zero_smul] |
| 1172 | have hv : ActualPrimary.attachedRawVelocity l.2 l.1 (ActualPrimaryDynamics.copyPoint l.2 l.1 n k x) ≠ 0 := by |
| 1173 | intro hz |
| 1174 | apply hx |
| 1175 | change ActualPrimary.chartCutoff l.2 l.1 n x • (ActualPrimary.chartCoefficients l.2 l.1).amplitude n x = 0 |
| 1176 | rw [ha] |
| 1177 | simp only [ActualPrimaryDynamics.copyAmplitude, hz, map_zero, smul_zero] |
| 1178 | have hr : ActualPrimary.rawVelocity l.2 l.1 (ActualPrimaryDynamics.copyPoint l.2 l.1 n k x) ≠ 0 := by |
| 1179 | intro hz |
| 1180 | exact hv (by simp [ActualPrimary.attachedRawVelocity, WaveEdgeExtension.nativeExtension, |
| 1181 | WaveEdgeExtension.extension, ActualPrimary.outerRawVelocity, hz]) |
| 1182 | exact ⟨k, native_source_core l _ hg hr⟩ |
| 1183 | · have hz := (ActualPrimaryDynamics.coefficient_zero_germs l.2 l.1 n (not_exists.mp hc)).1.eq_of_nhds |
| 1184 | exact (hx (by |
| 1185 | change ActualPrimary.chartCutoff l.2 l.1 n x • (ActualPrimary.chartCoefficients l.2 l.1).amplitude n x = 0 |
| 1186 | rw [hz, smul_zero])).elim |
| 1187 | |
| 1188 | theorem cut_pressure_source_support {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 1189 | support ((primaryPiece l).exactCoefficients.pressure n) ⊆ Prod.fst ⁻¹' labelCarrier l n := by |
| 1190 | intro x hx |
| 1191 | by_cases hc : ∃ k : TorusInverse.Frequency, |
| 1192 | (ActualPrimaryDynamics.copyPoint l.2 l.1 n k x).2 ∈ (ActualPrimary.clockWindow l.1).core |
| 1193 | · obtain ⟨k, hk⟩ := hc |
| 1194 | have hp := (ActualPrimaryDynamics.pressure_germ l.2 l.1 n k hk).eq_of_nhds |
| 1195 | have hpsi := (ActualInitialExcluded.chartCutoff_germ (l.2,l.1) n k hk).eq_of_nhds |
| 1196 | have hg : ActualPrimary.gaussian l.1 (ActualPrimaryDynamics.copyPoint l.2 l.1 n k x) ≠ 0 := by |
| 1197 | intro hz |
| 1198 | apply hx |
| 1199 | change ActualPrimary.chartCutoff l.2 l.1 n x • (ActualPrimary.chartCoefficients l.2 l.1).pressure n x = 0 |
| 1200 | rw [hpsi, hz, zero_smul] |
| 1201 | have hv : ActualPrimary.attachedRawPressure l.2 l.1 (ActualPrimaryDynamics.copyPoint l.2 l.1 n k x) ≠ 0 := by |
| 1202 | intro hz |
| 1203 | apply hx |
| 1204 | change ActualPrimary.chartCutoff l.2 l.1 n x • (ActualPrimary.chartCoefficients l.2 l.1).pressure n x = 0 |
| 1205 | rw [hp] |
| 1206 | simp only [ActualPrimaryDynamics.copyPressure, hz, smul_zero] |
| 1207 | have hr : ActualPrimary.rawVelocity l.2 l.1 (ActualPrimaryDynamics.copyPoint l.2 l.1 n k x) ≠ 0 := by |
| 1208 | intro hz |
| 1209 | have hzp := ActualPrimary.rawPressure_zero_of_velocity_zero l.2 l.1 _ hz |
| 1210 | exact hv (by simp [ActualPrimary.attachedRawPressure, WaveEdgeExtension.nativeExtension, |
| 1211 | WaveEdgeExtension.extension, ActualPrimary.outerRawPressure, hzp]) |
| 1212 | exact ⟨k, native_source_core l _ hg hr⟩ |
| 1213 | · have hz := (ActualPrimaryDynamics.coefficient_zero_germs l.2 l.1 n (not_exists.mp hc)).2.eq_of_nhds |
| 1214 | exact (hx (by |
| 1215 | change ActualPrimary.chartCutoff l.2 l.1 n x • (ActualPrimary.chartCoefficients l.2 l.1).pressure n x = 0 |
| 1216 | rw [hz, smul_zero])).elim |
| 1217 | |
| 1218 | theorem primary_velocity_zero_outside_source {B N0 : ℕ} (l : Index B N0) (n : ℕ) |
| 1219 | {x : Point} (hx : x ∉ labelCarrier l n) (theta : ℝ) : |
| 1220 | (primaryBlock l).oscillation n (x,theta) = 0 := by |
| 1221 | rw [(primaryBlock_represents l).1] |
| 1222 | have hs := (primaryPiece l).velocity_tsupport_subset_tangent n |
| 1223 | have hc := closure_minimal (cut_amplitude_source_support l n) |
| 1224 | ((labelCarrier_closed l n).preimage continuous_fst) |
| 1225 | exact (notMem_tsupport_iff_eventuallyEq.mp (fun ht => hx (hc (hs ht)))).eq_of_nhds |
| 1226 | |
| 1227 | theorem primary_pressure_zero_outside_source {B N0 : ℕ} (l : Index B N0) (n : ℕ) |
| 1228 | {x : Point} (hx : x ∉ labelCarrier l n) (theta : ℝ) : |
| 1229 | (primaryBlock l).oscillatoryPressure n (x,theta) = 0 := by |
| 1230 | rw [(primaryBlock_represents l).2] |
| 1231 | have hp : (primaryPiece l).exactCoefficients.pressure n (x,theta) = 0 := by |
| 1232 | by_contra hn |
| 1233 | exact hx (cut_pressure_source_support l n hn) |
| 1234 | simp only [PrimaryPiece.pressure, HarmonicCalculus.mode, hp, zero_mul, Complex.zero_re] |
| 1235 | |
| 1236 | theorem gaussian_velocity_zero_outside_source {B N0 : ℕ} (l : Index B N0) (n : ℕ) |
| 1237 | {x : Point} (hx : x ∉ labelCarrier l n) (theta : ℝ) : |
| 1238 | (gaussianBlock l).oscillation n (x,theta) = 0 := by |
| 1239 | rw [gaussianBlock_represents] |
| 1240 | have hg := (ActualInitialExcluded.chartGaussian_zero_germ (l.2,l.1) n |
| 1241 | (x := (x,theta)) hx).eq_of_nhds |
| 1242 | funext i |
| 1243 | change ((ActualInitialExcluded.chartGaussian (l.2,l.1) n (x,theta) i) * _).re = _ |
| 1244 | simp only [hg, Pi.zero_apply, zero_mul, Complex.zero_re] |
| 1245 | |
| 1246 | theorem initial_inputSupport {B N0 : ℕ} (l : Index B N0) : |
| 1247 | HarmonicSourceSupport.InputSupportOn geometry.domain (labelCarrier l) |
| 1248 | (primaryBlock l) (gaussianBlock l).velocity 0 := by |
| 1249 | apply HarmonicSourceSupport.InputSupportOn.of_fields _ _ _ (angularMode_ne_zero l) |
| 1250 | · intro n x _ hx theta i |
| 1251 | exact congrFun (primary_velocity_zero_outside_source l n hx theta) i |
| 1252 | · intro n x _ hx theta |
| 1253 | exact primary_pressure_zero_outside_source l n hx theta |
| 1254 | · intro n x _ hx theta i |
| 1255 | exact congrFun (gaussian_velocity_zero_outside_source l n hx theta) i |
| 1256 | · intro n x _ hx theta i |
| 1257 | simp [HarmonicResidual.vectorField, HarmonicResidual.field_zero] |
| 1258 | |
| 1259 | theorem gaussian_coefficients_flat (B N0 : ℕ) (beta : ℝ) (i : Fin 3) (j : ℤ) : |
| 1260 | LabelSumBounds.UniformClass strip (fun _ _ x => Real.sqrt (strip.zeta x)) beta |
| 1261 | (fun l : Index B N0 => fun n x => (gaussianBlock l).velocity n i j x) := |
| 1262 | (ActualInitialExcluded.gaussianCoefficient_all_gains beta i j).reindex Prod.swap |
| 1263 | |
| 1264 | theorem primary_pressure_symmetric {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 1265 | HarmonicFields.ConjugateSymmetric ((primaryBlock l).pressure n) := |
| 1266 | ErrorHarmonics.conjugatePair_symmetric 1 _ |
| 1267 | |
| 1268 | theorem gaussian_coefficients_symmetric {B N0 : ℕ} (l : Index B N0) (n : ℕ) (i : Fin 3) : |
| 1269 | HarmonicFields.ConjugateSymmetric ((gaussianBlock l).velocity n i) := |
| 1270 | ErrorHarmonics.conjugatePair_symmetric 1 _ |
| 1271 | |
| 1272 | theorem absolute_exact_amplitude_smooth {B N0 : ℕ} (l : Index B N0) : |
| 1273 | ContDiffOn ℝ ∞ (ActualPrimaryCoherence.absoluteExactAmplitude l.2 l.1) |
| 1274 | ActualPrimaryCoherence.positiveAbsolute := by |
| 1275 | have hsub : tsupport (ActualPrimaryCoherence.absoluteExactAmplitude l.2 l.1) ⊆ |
| 1276 | tsupport (ActualPrimaryCoherence.absoluteCutAmplitude l.2 l.1) := by |
| 1277 | unfold ActualPrimaryCoherence.absoluteExactAmplitude CurlClassBounds.realizedCoefficient |
| 1278 | CurlClassBounds.curlRemainder |
| 1279 | exact (tsupport_add _ _).trans (union_subset subset_rfl |
| 1280 | ((tsupport_smul_subset_right _ _).trans ((tsupport_smul_subset_right _ _).trans |
| 1281 | ((CurlClassBounds.cylindricalCurl_tsupport_subset _ _ _ _ _).trans |
| 1282 | (CurlClassBounds.coefficient_tsupport_subset _ _ _ _ _ _))))) |
| 1283 | intro x hx |
| 1284 | by_cases hr : 0 < x.1.1.1 |
| 1285 | · exact ((ActualPrimaryCoherence.absoluteExactAmplitude_smooth l.2 l.1).contDiffAt |
| 1286 | (ActualPrimaryCoherence.positiveRadialAbsolute_open.mem_nhds ⟨hr,hx⟩)).contDiffWithinAt |
| 1287 | · have ha := (ActualPrimaryCoherence.absolutePair_zero_germ_outside l.2 l.1 hx |
| 1288 | (ActualPrimaryCoherence.amplitudeRadius_outside_nonpositive l.1 (le_of_not_gt hr))).1 |
| 1289 | have hc : ActualPrimaryCoherence.absoluteCutAmplitude l.2 l.1 =ᶠ[𝓝 x] fun _ => 0 := by |
| 1290 | filter_upwards [ha] with y hy |
| 1291 | simp only [ActualPrimaryCoherence.absoluteCutAmplitude, hy, smul_zero] |
| 1292 | have he : ActualPrimaryCoherence.absoluteExactAmplitude l.2 l.1 =ᶠ[𝓝 x] fun _ => 0 := |
| 1293 | notMem_tsupport_iff_eventuallyEq.mp |
| 1294 | (fun h => (notMem_tsupport_iff_eventuallyEq.mpr hc) (hsub h)) |
| 1295 | exact (contDiffAt_const.congr_of_eventuallyEq he).contDiffWithinAt |
| 1296 | |
| 1297 | theorem exact_amplitude_positive_smooth {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 1298 | ContDiffOn ℝ ∞ ((primaryPiece l).exactCoefficients.amplitude n) |
| 1299 | ActualPrimaryCoherence.positiveChart := by |
| 1300 | have hm : MapsTo (ActualPrimaryCoherence.absoluteChart n) ActualPrimaryCoherence.positiveChart |
| 1301 | ActualPrimaryCoherence.positiveAbsolute := by |
| 1302 | intro x hx |
| 1303 | exact mul_pos (ChartScales.Q_pos n) hx |
| 1304 | exact (((absolute_exact_amplitude_smooth l).comp |
| 1305 | (ActualPrimaryCoherence.absoluteChart n).contDiff.contDiffOn hm).const_smul |
| 1306 | (ChartScales.Q n ^ CoordinateAlgebra.A ActualPrimary.h)).congr |
| 1307 | (fun x _ => ActualPrimaryCoherence.exactAmplitude_representation ActualPrimary.standardRegion l.2 l.1 n x) |
| 1308 | |
| 1309 | theorem exact_pressure_positive_smooth {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 1310 | ContDiffOn ℝ ∞ ((primaryPiece l).exactCoefficients.pressure n) |
| 1311 | ActualPrimaryCoherence.positiveChart := by |
| 1312 | have hm : MapsTo (ActualPrimaryCoherence.absoluteChart n) ActualPrimaryCoherence.positiveChart |
| 1313 | ActualPrimaryCoherence.positiveAbsolute := by |
| 1314 | intro x hx |
| 1315 | exact mul_pos (ChartScales.Q_pos n) hx |
| 1316 | exact (cutoff_smooth l n).contDiffOn.smul |
| 1317 | (((ActualPrimaryCoherence.absolutePressureCoefficient_smooth l.2 l.1).comp |
| 1318 | (ActualPrimaryCoherence.absoluteChart n).contDiff.contDiffOn hm).const_smul |
| 1319 | (ChartScales.Q n ^ (2 * CoordinateAlgebra.A ActualPrimary.h))) |
| 1320 | |
| 1321 | theorem gaussian_positive_smooth {B N0 : ℕ} (l : Index B N0) (n : ℕ) : |
| 1322 | ContDiffOn ℝ ∞ (ActualInitialExcluded.chartGaussian (l.2,l.1) n) |
| 1323 | ActualPrimaryCoherence.positiveChart := by |
| 1324 | have hm : MapsTo (ActualPrimaryCoherence.absoluteChart n) ActualPrimaryCoherence.positiveChart |
| 1325 | ActualPrimaryCoherence.positiveAbsolute := by |
| 1326 | intro x hx |
| 1327 | exact mul_pos (ChartScales.Q_pos n) hx |
| 1328 | exact (((ActualPrimaryCoherence.absoluteGaussianCoefficient_smooth l.2 l.1).comp |
| 1329 | (ActualPrimaryCoherence.absoluteChart n).contDiff.contDiffOn hm).const_smul |
| 1330 | (ChartScales.Q n ^ (2 * CoordinateAlgebra.A ActualPrimary.h + 1/2))).congr |
| 1331 | (fun x _ => ActualPrimaryCoherence.gaussianCoefficient_representation ActualPrimary.standardRegion l.2 l.1 n x) |
| 1332 | |
| 1333 | theorem primary_coefficients_smooth_domain {B N0 : ℕ} (l : Index B N0) (n : ℕ) (i : Fin 3) (j : ℤ) : |
| 1334 | ContDiffOn ℝ ∞ ((primaryBlock l).velocity n i j) geometry.domain := by |
| 1335 | apply smooth_conjugatePair |
| 1336 | exact ((contDiffOn_pi.mp (exact_amplitude_positive_smooth l n) i).comp |
| 1337 | (HarmonicWaveInteraction.inclusion (D := Point)).contDiff.contDiffOn |
| 1338 | (fun x hx => geometry.region.time_pos x.2.1 hx)) |
| 1339 | |
| 1340 | theorem pressure_coefficients_smooth_domain {B N0 : ℕ} (l : Index B N0) (n : ℕ) (j : ℤ) : |
| 1341 | ContDiffOn ℝ ∞ ((primaryBlock l).pressure n j) geometry.domain := by |
| 1342 | apply smooth_conjugatePair |
| 1343 | exact (exact_pressure_positive_smooth l n).comp |
| 1344 | (HarmonicWaveInteraction.inclusion (D := Point)).contDiff.contDiffOn |
| 1345 | (fun x hx => geometry.region.time_pos x.2.1 hx) |
| 1346 | |
| 1347 | theorem gaussian_coefficients_smooth_domain {B N0 : ℕ} (l : Index B N0) (n : ℕ) (i : Fin 3) (j : ℤ) : |
| 1348 | ContDiffOn ℝ ∞ ((gaussianBlock l).velocity n i j) geometry.domain := by |
| 1349 | apply smooth_conjugatePair |
| 1350 | exact (contDiffOn_pi.mp (gaussian_positive_smooth l n) i).comp |
| 1351 | (HarmonicWaveInteraction.inclusion (D := Point)).contDiff.contDiffOn |
| 1352 | (fun x hx => geometry.region.time_pos x.2.1 hx) |
| 1353 | |
| 1354 | theorem initial_oscillatoryPressure_smooth (B N0 n : ℕ) : |
| 1355 | ContDiffOn ℝ ∞ ((initialState B N0).oscillatoryPressure n) (geometry.domain ×ˢ univ) := by |
| 1356 | have he : (initialState B N0).oscillatoryPressure n = |
| 1357 | fun x => ∑ l ∈ (coefficients B N0).labels n, (primaryPiece l).pressure n x := by |
| 1358 | funext x |
| 1359 | simp [initialState, rankState, temporalState, primaryState, sourceState, bandSeed, |
| 1360 | GaugeInitialization.retainPressureAlias, VariableGaugeMean.rankStageState, |
| 1361 | VariableGaugeMean.temporalStageState, VariableGaugeMean.reconstructState, State.addIncrement] |
| 1362 | rw [he] |
| 1363 | apply ContDiffOn.sum |
| 1364 | intro l hl |
| 1365 | exact (ActualPrimaryCoherence.piece_pressure_smooth ActualPrimary.standardRegion l.2 l.1 n).mono |
| 1366 | (fun x hx => geometry.region.time_pos x.1.2.1 hx.1) |
| 1367 | |
| 1368 | end NavierStokes.ActualInitialization |
| 1369 | |
| 1370 | namespace NavierStokes.ActualInitialization |
| 1371 | |
| 1372 | open Set Function Filter WeightedClasses CorrectionState CorrectionInitialization |
| 1373 | open HarmonicWaveInteraction UniformHarmonicInteraction |
| 1374 | open scoped ContDiff Topology BigOperators |
| 1375 | |
| 1376 | theorem initial_cumulative (B N0 : ℕ) : CumulativeBounds strip (initialState B N0) := |
| 1377 | ActualInitialMean.initial_cumulative_bounds B N0 |
| 1378 | |
| 1379 | theorem initial_mean (B N0 : ℕ) : |
| 1380 | MeanResidualBounds strip (1/5) (ActualPrimary.commonContext B) (initialState B N0) := |
| 1381 | ActualInitialMean.initial_mean_bounds B N0 |
| 1382 | |
| 1383 | theorem initial_debt (B N0 : ℕ) : |
| 1384 | DefectBounds slowStrip (1/5) (ActualPrimary.commonContext B) (initialState B N0) := |
| 1385 | ActualInitialMean.initial_debt_bounds B N0 |
| 1386 | |
| 1387 | theorem initial_zeroMasses (B N0 : ℕ) : |
| 1388 | GaugeMassPreservation.ZeroMassesOn geometry.region.carrier (initialState B N0) := |
| 1389 | ActualInitialMean.initial_zeroMasses B N0 |
| 1390 | |
| 1391 | theorem initial_covariance (B N0 : ℕ) (i j : Fin 3) : |
| 1392 | MeanClass strip 1 ((initialState B N0).covariance i j) := by |
| 1393 | rw [initialState_covariance] |
| 1394 | exact (ActualInitialMean.covariance_bounds B N0).1 i j |
| 1395 | |
| 1396 | theorem initial_axis_flat (B N0 : ℕ) (beta : ℝ) : MeanClass strip beta (initialAlias B N0) := |
| 1397 | ActualInitialExcluded.initialAlias_all_gains B N0 beta |
| 1398 | |
| 1399 | theorem initial_meanHypotheses (B N0 : ℕ) : |
| 1400 | LiftedMeanResidual.MeanHypotheses strip.domain (ActualPrimary.commonContext B) (initialState B N0) := |
| 1401 | ActualInitialMeanEquation.initialized_meanHypotheses B N0 |
| 1402 | |
| 1403 | theorem initial_residual_uniform (B N0 : ℕ) : |
| 1404 | UniformVelocity strip envelope (7/10) (initialResidualBlock (B := B) (N0 := N0)) := |
| 1405 | initial_residual_uniform_of_primary B N0 (primary_uniform B N0) (linearGood_uniform B N0) |
| 1406 | phase_smooth primary_modeSolenoidal (slowNormal_local B N0) (frequency_local B N0) |
| 1407 | (angularFrequency_local B N0) |
| 1408 | (fun n l _x hx hc i j _ => primary_zero_germ_outside_control n l hx hc i j) |
| 1409 | (initial_cumulative B N0) |
| 1410 | |
| 1411 | theorem gaussianBlock_zeroMode {B N0 : ℕ} (l : Index B N0) : ZeroMode (gaussianBlock l) := by |
| 1412 | intro n i |
| 1413 | ext x |
| 1414 | change ErrorHarmonics.conjugatePair 1 _ 0 x = 0 |
| 1415 | simp only [ParticularWaveAssembly.pair_apply] |
| 1416 | norm_num |
| 1417 | |
| 1418 | theorem initial_gaussian_mean_zero (B N0 : ℕ) : |
| 1419 | CorrectionStep.angularMeanVector (initialState B N0).errors.gaussian = 0 := by |
| 1420 | rw [(initialState_error_components B N0).2.1] |
| 1421 | simpa only [gaussianBlock_represents] using |
| 1422 | CorrectionStep.fieldSum_angularMean_zero (coefficients B N0).labels gaussianBlock |
| 1423 | gaussianBlock_zeroMode angularMode_ne_zero |
| 1424 | |
| 1425 | /-- The literal same-choice initialized state satisfies every analytic, |
| 1426 | support, regularity, and representation field used by the correction cycle. -/ |
| 1427 | theorem initial_invariant (B N0 : ℕ) : |
| 1428 | CorrectionStep.CycleAnalyticInvariant geometry (ActualPrimary.commonContext B) |
| 1429 | (tangentBlock (B := B) (N0 := N0)) envelope labelCarrier (1/5) (initialCycleState B N0) where |
| 1430 | representation := initialCycleState_represents B N0 |
| 1431 | bands := coefficients_band B N0 |
| 1432 | realCoefficients := ⟨primaryBlock_symmetric, primary_pressure_symmetric, gaussian_coefficients_symmetric⟩ |
| 1433 | inputSupport := initial_inputSupport |
| 1434 | sourceBand := initialResidualBlock_band |
| 1435 | zeroVelocity := primaryBlock_zeroMode |
| 1436 | zeroPressure := primary_pressure_zero |
| 1437 | carrier := primary_tangent_carrier |
| 1438 | phase := phase_smooth |
| 1439 | frequency := fun l n => (ActualPrimary.chartCoefficients_frequency_pos l.2 l.1 n).ne' |
| 1440 | angular := angularMode_ne_zero |
| 1441 | coefficientSmooth := primary_coefficients_smooth_domain |
| 1442 | pressureCoefficientSmooth := pressure_coefficients_smooth_domain |
| 1443 | gaussianCoefficientSmooth := gaussian_coefficients_smooth_domain |
| 1444 | solenoidal := primary_modeSolenoidal |
| 1445 | wave := primary_coefficients_uniform B N0 |
| 1446 | pressure := pressure_coefficients_uniform B N0 |
| 1447 | difference := difference_coefficients_uniform B N0 |
| 1448 | cumulative := initial_cumulative B N0 |
| 1449 | covariance := initial_covariance B N0 |
| 1450 | residual := by |
| 1451 | convert! initial_residual_uniform B N0 using 1 |
| 1452 | norm_num |
| 1453 | mean := initial_mean B N0 |
| 1454 | meanHypotheses := initial_meanHypotheses B N0 |
| 1455 | debt := initial_debt B N0 |
| 1456 | primitives := initial_primitive B N0 |
| 1457 | reconstructed := initialState_reconstructed B N0 |
| 1458 | masses := initial_zeroMasses B N0 |
| 1459 | oscillationSmooth := initial_oscillation_smooth B N0 |
| 1460 | oscillatoryPressureSmooth := initial_oscillatoryPressure_smooth B N0 |
| 1461 | oscillationPeriodic := initial_oscillation_periodic B N0 |
| 1462 | oscillationSupport := initial_oscillation_support B N0 |
| 1463 | gaussianFlat := gaussian_coefficients_flat B N0 |
| 1464 | gaussianMean := initial_gaussian_mean_zero B N0 |
| 1465 | aliasCoefficients := fun _ => rfl |
| 1466 | axisFlat := initial_axis_flat B N0 |
| 1467 | baseAngular := initial_base_angular B N0 |
| 1468 | |
| 1469 | /-- The radial component is included: all three actual good mean |
| 1470 | residuals have exponent six fifths. -/ |
| 1471 | theorem initial_mean_all_components (B N0 : ℕ) (i : Fin 3) : |
| 1472 | MeanClass strip (6/5) (fun n x => |
| 1473 | (initialState B N0).meanGoodResidual (ActualPrimary.commonContext B) n x i) := by |
| 1474 | have he : (1 + (1 : ℝ)/5) = 6/5 := by norm_num |
| 1475 | fin_cases i |
| 1476 | · apply initial_radial_mean_class |
| 1477 | simpa only [debt, Matrix.cons_val_zero, he] using initial_debt B N0 0 |
| 1478 | · have hc := (initial_mean B N0).angular |
| 1479 | simp only [he] at hc |
| 1480 | exact hc |
| 1481 | · have hc := (initial_mean B N0).axial |
| 1482 | simp only [he] at hc |
| 1483 | exact hc |
| 1484 | |
| 1485 | theorem initial_fullDivergence (B N0 n : ℕ) {x : Point × ℝ} (hx : x.1 ∈ strip.domain) : |
| 1486 | CorrectionStep.fullDivergence (ActualPrimary.commonContext B) (initialState B N0) n x = 0 := |
| 1487 | ActualInitialMeanEquation.initialized_fullDivergence B N0 n ⟨hx,trivial⟩ |
| 1488 | |
| 1489 | /-- Exact decomposition of the actual differentiated PDE, with both the |
| 1490 | mean and every stored excluded error retained. -/ |
| 1491 | theorem initial_fullResidual (B N0 n : ℕ) {x : Point × ℝ} (hx : x.1 ∈ strip.domain) (i : Fin 3) : |
| 1492 | CorrectionStep.fullResidual (ActualPrimary.commonContext B) (initialState B N0) n x i = |
| 1493 | (∑ l ∈ (coefficients B N0).labels n, (initialResidualBlock l).oscillation n x i) + |
| 1494 | (initialState B N0).meanGoodResidual (ActualPrimary.commonContext B) n x.1 i + |
| 1495 | (initialState B N0).errors.total n x i := by |
| 1496 | have he := congrArg (fun f : Oscillation Point => f n x i) |
| 1497 | (CorrectionStep.fullResidual_decomposition (ActualPrimary.commonContext B) (initialState B N0)) |
| 1498 | change CorrectionStep.fullResidual _ _ n x i = CorrectionStep.fullGoodWaveResidual _ _ n x i + |
| 1499 | CorrectionStep.angularMeanVector (CorrectionStep.fullGoodResidual _ _) n x.1 i + _ at he |
| 1500 | rw [initial_goodWave_grouped B N0 n hx i, |
| 1501 | CorrectionStep.angularMean_fullGoodResidual (initial_meanHypotheses B N0) n hx i] at he |
| 1502 | exact he |
| 1503 | |
| 1504 | |
| 1505 | /-- All derivatives of the complete stored excluded error satisfy estimates for every |
| 1506 | power on the full angular and auxiliary lift. -/ |
| 1507 | theorem initial_excluded_all_gains (B N0 : ℕ) (beta : ℝ) : |
| 1508 | UnweightedClass (HarmonicWaveInteraction.productStrip strip) beta |
| 1509 | (initialState B N0).errors.total := |
| 1510 | ActualInitialExcluded.initializedErrors_vector_all_gains B N0 beta |
| 1511 | |
| 1512 | theorem initial_excluded_component_all_gains (B N0 : ℕ) (beta : ℝ) (i : Fin 3) : |
| 1513 | UnweightedClass (HarmonicWaveInteraction.productStrip strip) beta |
| 1514 | (fun n x => (initialState B N0).errors.total n x i) := |
| 1515 | ActualInitialExcluded.initializedErrors_all_gains B N0 beta i |
| 1516 | |
| 1517 | end NavierStokes.ActualInitialization |