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.ActualInitialCoherence |
| 2 | import NavierStokes.LiftedMeanResidual |
| 3 | |
| 4 | /-! |
| 5 | # The actual initialized mean equation and incompressibility |
| 6 | |
| 7 | This module works with the literal initialized state before the final |
| 8 | initialization consumer. No `MeanHypotheses` or divergence statement is |
| 9 | an input. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.ActualInitialMeanEquation |
| 15 | |
| 16 | open Set Function Filter HarmonicCalculus |
| 17 | open CorrectionState CorrectionStep MeanIncrementBounds |
| 18 | open CorrectionInitialization.ActualPrimary |
| 19 | open scoped Topology ContDiff BigOperators |
| 20 | |
| 21 | abbrev Point := PressureStream.Lift PressureStream.Plane |
| 22 | abbrev Full := Point × ℝ |
| 23 | |
| 24 | noncomputable def strip : WeightedClasses.StripData Point := |
| 25 | BaseContextAssembly.nativeStrip nominal standardRegion |
| 26 | |
| 27 | theorem strip_to_slow {x : Point} (hx : x ∈ strip.domain) : |
| 28 | x ∈ PhysicalMeanDomain.slowDomain standardRegion.carrier := |
| 29 | ((BaseContextAssembly.nativeStrip_mem nominal standardRegion x).mp hx).1 |
| 30 | |
| 31 | theorem strip_radius {x : Point} (hx : x ∈ strip.domain) : 0 < x.1 := |
| 32 | BaseContextAssembly.nativeStrip_radius nominal standardRegion hx |
| 33 | |
| 34 | theorem strip_time {x : Point} (hx : x ∈ strip.domain) : 0 < x.2.1.1 := |
| 35 | BaseContextAssembly.nativeStrip_time nominal standardRegion hx |
| 36 | |
| 37 | /-! ## A reusable local mean-equation interface -/ |
| 38 | |
| 39 | /-- Angular regularity of the actual fields. The mean coefficients and |
| 40 | their pressure are supplied separately by the primitive invariant. -/ |
| 41 | structure AngularData (V : Set Point) (u : State Point) : Prop where |
| 42 | velocity_smooth : ∀ n i, ContDiffOn ℝ ∞ (fun p => u.oscillation n p i) |
| 43 | (LiftedMeanResidual.cylinder V) |
| 44 | pressure_smooth : ∀ n, ContDiffOn ℝ ∞ (u.oscillatoryPressure n) |
| 45 | (LiftedMeanResidual.cylinder V) |
| 46 | velocity_periodic : ∀ n i, LiftedMeanResidual.PeriodicOn V (fun p => u.oscillation n p i) |
| 47 | pressure_periodic : ∀ n, LiftedMeanResidual.PeriodicOn V (u.oscillatoryPressure n) |
| 48 | velocity_mean_zero : ∀ n x, x ∈ V → ∀ i, |
| 49 | angularAverage (fun k p => u.oscillation k p i) n x = 0 |
| 50 | pressure_mean_zero : ∀ n x, x ∈ V → angularAverage u.oscillatoryPressure n x = 0 |
| 51 | base_error_continuous : ∀ n x, x ∈ V → ∀ i, |
| 52 | Continuous (fun θ : ℝ => u.errors.base n (x, θ) i) |
| 53 | excluded_continuous : ∀ n x, x ∈ V → ∀ i, |
| 54 | Continuous (fun θ : ℝ => u.errors.total n (x, θ) i) |
| 55 | |
| 56 | theorem totalVelocity_smooth_of_primitive {coord a b : ℝ} |
| 57 | {U : LocalSignedRequest.SlowRegion coord} {c : Context Point} {u : State Point} |
| 58 | (HP : MeanStateRegularity.PrimitiveData U a b c u) |
| 59 | {V : Set Point} (hsub : V ⊆ LocalRankDefect.positiveDomain U.carrier) |
| 60 | (hw : ∀ n i, ContDiffOn ℝ ∞ (fun p => u.oscillation n p i) |
| 61 | (LiftedMeanResidual.cylinder V)) (n : ℕ) (i : Fin 3) : |
| 62 | ContDiffOn ℝ ∞ (fun p => u.totalVelocity c n p i) (LiftedMeanResidual.cylinder V) := by |
| 63 | have hs : V ⊆ PhysicalMeanDomain.slowDomain U.carrier := fun _ hx => (hsub hx).2 |
| 64 | have hb := LiftedMeanResidual.liftScalar_smooth (LiftedMeanResidual.tripleVector_smooth |
| 65 | (GaugeDebtIncrement.smoothTriple_mono HP.base.smooth hsub) n i) |
| 66 | have hm := LiftedMeanResidual.liftScalar_smooth (LiftedMeanResidual.tripleVector_smooth |
| 67 | (GaugeDebtIncrement.smoothTriple_mono HP.mean.regular.smooth hs) n i) |
| 68 | rw [LiftedMeanResidual.totalVelocity_eq] |
| 69 | exact hb.add (hm.add (hw n i)) |
| 70 | |
| 71 | theorem meanHypotheses_of_primitive {coord : ℝ} {U : LocalSignedRequest.SlowRegion coord} |
| 72 | {g : VariableGaugeMean.GaugeData PressureStream.Plane} {c : Context Point} {u : State Point} |
| 73 | (HP : MeanStateRegularity.PrimitiveData U g.radial.inner g.radial.outer c u) |
| 74 | (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) |
| 75 | (hell : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 76 | (hfixed : (VariableGaugeMean.reconstructState g c u).pressure = u.pressure) |
| 77 | {V : Set Point} (hV : IsOpen V) (hsub : V ⊆ LocalRankDefect.positiveDomain U.carrier) |
| 78 | (HA : AngularData V u) |
| 79 | (hbase : ∀ n p, p ∈ LiftedMeanResidual.cylinder V → |
| 80 | LiftedMeanResidual.realDivergence (LiftedMeanResidual.liftScalar c.operators.radius) |
| 81 | (LiftedMeanResidual.radialDirection c n) LiftedMeanResidual.angularDirection |
| 82 | (LiftedMeanResidual.axialDirection c n) (LiftedMeanResidual.baseLift c n) p = 0) |
| 83 | (hdiv : ∀ n p, p ∈ LiftedMeanResidual.cylinder V → fullDivergence c u n p = 0) : |
| 84 | LiftedMeanResidual.MeanHypotheses V c u := by |
| 85 | have hs : V ⊆ PhysicalMeanDomain.slowDomain U.carrier := fun _ hx => (hsub hx).2 |
| 86 | refine ⟨hV, ?_, ?_, HP.operators.regular.radialProfile.mono hsub, |
| 87 | GaugeDebtIncrement.smoothTriple_mono HP.base.smooth hsub, |
| 88 | GaugeDebtIncrement.smoothTriple_mono HP.mean.regular.smooth hs, |
| 89 | fun n => ((HP.pressure ha hd hell hfixed).smooth n).mono hs, |
| 90 | HA.velocity_smooth, HA.pressure_smooth, HA.velocity_periodic, HA.pressure_periodic, |
| 91 | HA.velocity_mean_zero, HA.pressure_mean_zero, hbase, hdiv, |
| 92 | HA.base_error_continuous, HA.excluded_continuous⟩ |
| 93 | · rw [HP.operators.regular.radius_eq] |
| 94 | exact contDiffOn_fst |
| 95 | · intro x hx |
| 96 | rw [HP.operators.regular.radius_eq] |
| 97 | exact (hsub hx).1.ne' |
| 98 | |
| 99 | section LocalMeanStages |
| 100 | |
| 101 | variable {coord : ℝ} {U : LocalSignedRequest.SlowRegion coord} |
| 102 | {g : VariableGaugeMean.GaugeData PressureStream.Plane} {c : Context Point} {u : State Point} |
| 103 | |
| 104 | theorem temporalIncrement_meanDivergence_zero_local |
| 105 | (HP : MeanStateRegularity.PrimitiveData U g.radial.inner g.radial.outer c u) |
| 106 | (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) |
| 107 | (hell : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 108 | (hfixed : (VariableGaugeMean.reconstructState g c u).pressure = u.pressure) |
| 109 | (htime : ℝ) (index : ℕ → ℕ) (axial slowTime : PressureStream.Plane × PressureStream.Plane) |
| 110 | (temporal : PressureStream.Plane) |
| 111 | (hcompat : c.operators = graphOperators g.radial c.operators.epsilon c.operators.fastCoefficient |
| 112 | axial slowTime temporal) |
| 113 | (n : ℕ) {x : Point} (hx : x.2.1 ∈ U.carrier) (hr : x.1 ≠ 0) : |
| 114 | meanDivergence c (VariableGaugeMean.temporalIncrementState g htime index axial c u) n x = 0 := by |
| 115 | rw [meanDivergence_eq_graph g.radial c.operators.epsilon c.operators.fastCoefficient |
| 116 | axial slowTime temporal c hcompat] |
| 117 | have hz := HP.axial_reconstructed ha hd hell hfixed |
| 118 | exact VariableGaugeMean.temporalIncrementState_divergence_zero U g ha hd hell c u |
| 119 | htime index axial n (hz.smooth n) (hz.periodic n) (hz.supported n) hx hr |
| 120 | |
| 121 | theorem rankIncrement_meanDivergence_zero_local {r : RankData PressureStream.Plane} |
| 122 | (hg : LocalRankDefect.RankGeometry g r U.carrier c u) |
| 123 | (hell : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 124 | (axial slowTime : PressureStream.Plane × PressureStream.Plane) (temporal : PressureStream.Plane) |
| 125 | (hcompat : c.operators = graphOperators g.radial c.operators.epsilon c.operators.fastCoefficient |
| 126 | axial slowTime temporal) |
| 127 | (n : ℕ) {x : Point} (hx : x.2.1 ∈ U.carrier) (hr : x.1 ≠ 0) : |
| 128 | meanDivergence c (VariableGaugeMean.rankIncrementState g r axial c u) n x = 0 := by |
| 129 | rw [meanDivergence_eq_graph g.radial c.operators.epsilon c.operators.fastCoefficient |
| 130 | axial slowTime temporal c hcompat] |
| 131 | have hf := MeanStageRegularity.rankDesired_moving hg hell |
| 132 | simpa only [VariableGaugeMean.rankIncrementState, VariableGaugeMean.rankPotential, hell] using |
| 133 | VariableGaugeMean.stream_divergence_zero U hg.primitive_inner_pos g.radial.inner_lt_outer |
| 134 | hg.exponent_pos (g.radial.frequency n) g.radial.radialDirection (c.operators.epsilon n • axial) |
| 135 | (hf.smooth n) (hf.supported n) hx hr |
| 136 | |
| 137 | theorem temporalStage_fullDivergence_local |
| 138 | (HP : MeanStateRegularity.PrimitiveData U g.radial.inner g.radial.outer c u) |
| 139 | (ha : 0 < g.radial.inner) (hd : 0 < g.radial.exponent) |
| 140 | (hell : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 141 | (hfixed : (VariableGaugeMean.reconstructState g c u).pressure = u.pressure) |
| 142 | (htime : ℝ) (index : ℕ → ℕ) (axial slowTime : PressureStream.Plane × PressureStream.Plane) |
| 143 | (temporal : PressureStream.Plane) |
| 144 | (hcompat : c.operators = graphOperators g.radial c.operators.epsilon c.operators.fastCoefficient |
| 145 | axial slowTime temporal) |
| 146 | (n : ℕ) {x : Point} (hx : x.2.1 ∈ U.carrier) (hr : x.1 ≠ 0) (θ : ℝ) |
| 147 | (hu : ∀ i, DifferentiableAt ℝ (fun y => u.totalVelocity c n y i) (x, θ)) : |
| 148 | fullDivergence c (VariableGaugeMean.temporalStageState g htime index axial c u) n (x, θ) = |
| 149 | fullDivergence c u n (x, θ) := by |
| 150 | change fullDivergence c (u.addIncrement |
| 151 | (VariableGaugeMean.temporalIncrementState g htime index axial c u) 0 0 0 |
| 152 | ⟨0, 0, VariableGaugeMean.temporalAliasState g htime index c u⟩) n (x, θ) = _ |
| 153 | rw [meanAddition_fullDivergence (PhysicalMeanDomain.slowDomain_open U.isOpen) c u _ _ _ _ |
| 154 | (MeanStageRegularity.temporalIncrement_moving HP ha hd hell hfixed htime index axial).regular.smooth |
| 155 | n hx θ hu, temporalIncrement_meanDivergence_zero_local HP ha hd hell hfixed |
| 156 | htime index axial slowTime temporal hcompat n hx hr, add_zero] |
| 157 | |
| 158 | theorem rankStage_fullDivergence_local {r : RankData PressureStream.Plane} |
| 159 | (hg : LocalRankDefect.RankGeometry g r U.carrier c u) |
| 160 | (hell : ∀ n, g.length n = VariableGaugeMean.qLength coord) |
| 161 | (axial slowTime : PressureStream.Plane × PressureStream.Plane) (temporal : PressureStream.Plane) |
| 162 | (hcompat : c.operators = graphOperators g.radial c.operators.epsilon c.operators.fastCoefficient |
| 163 | axial slowTime temporal) |
| 164 | (n : ℕ) {x : Point} (hx : x.2.1 ∈ U.carrier) (hr : x.1 ≠ 0) (θ : ℝ) |
| 165 | (hu : ∀ i, DifferentiableAt ℝ (fun y => u.totalVelocity c n y i) (x, θ)) : |
| 166 | fullDivergence c (VariableGaugeMean.rankStageState g r axial c u) n (x, θ) = |
| 167 | fullDivergence c u n (x, θ) := by |
| 168 | change fullDivergence c (u.addIncrement |
| 169 | (VariableGaugeMean.rankIncrementState g r axial c u) 0 0 0 ExcludedErrors.zero) n (x, θ) = _ |
| 170 | rw [meanAddition_fullDivergence (PhysicalMeanDomain.slowDomain_open U.isOpen) c u _ _ _ _ |
| 171 | (MeanStageRegularity.rankIncrement_moving hg hell axial).regular.smooth n hx θ hu, |
| 172 | rankIncrement_meanDivergence_zero_local hg hell axial slowTime temporal hcompat n hx hr, add_zero] |
| 173 | |
| 174 | end LocalMeanStages |
| 175 | |
| 176 | /-! ## First derivatives of the actual physical base -/ |
| 177 | |
| 178 | noncomputable def componentDivergence {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 179 | (R : E → ℝ) (Vr Vθ Vz : E → E) (a : E → Fin 3 → ℝ) (x : E) : ℝ := |
| 180 | along Vr (fun y => a y 0) x + a x 0 / R x + |
| 181 | along Vθ (fun y => a y 1) x / R x + along Vz (fun y => a y 2) x |
| 182 | |
| 183 | theorem componentDivergence_of_complex {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 184 | (R : E → ℝ) (Vr Vθ Vz : E → E) {a : E → Fin 3 → ℝ} {x : E} |
| 185 | (ha : ∀ i, DifferentiableAt ℝ (fun y => a y i) x) |
| 186 | (hz : cylindricalDivergence R Vr Vθ Vz (fun y i => (a y i : ℂ)) x = 0) : |
| 187 | componentDivergence R Vr Vθ Vz a x = 0 := by |
| 188 | have he := congrArg Complex.re hz |
| 189 | simpa only [cylindricalDivergence, along_ofReal _ (ha _), map_add, Complex.add_re, |
| 190 | Complex.real_smul, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, |
| 191 | mul_zero, sub_zero, Complex.zero_re, componentDivergence, div_eq_mul_inv, mul_comm] using he |
| 192 | |
| 193 | theorem componentDivergence_sum {E ι : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 194 | (J : Finset ι) (R : E → ℝ) (Vr Vθ Vz : E → E) {a : ι → E → Fin 3 → ℝ} {x : E} |
| 195 | (ha : ∀ j ∈ J, ∀ i, DifferentiableAt ℝ (fun y => a j y i) x) : |
| 196 | componentDivergence R Vr Vθ Vz (fun y i => ∑ j ∈ J, a j y i) x = |
| 197 | ∑ j ∈ J, componentDivergence R Vr Vθ Vz (a j) x := by |
| 198 | simp only [componentDivergence, |
| 199 | ParticularWaveAssembly.along_finset_sum J Vr (fun j y => a j y 0) (fun j hj => ha j hj 0), |
| 200 | ParticularWaveAssembly.along_finset_sum J Vθ (fun j y => a j y 1) (fun j hj => ha j hj 1), |
| 201 | ParticularWaveAssembly.along_finset_sum J Vz (fun j y => a j y 2) (fun j hj => ha j hj 2), |
| 202 | Finset.sum_div, Finset.sum_add_distrib] |
| 203 | |
| 204 | theorem componentDivergence_congr {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 205 | {U : Set E} (hU : IsOpen U) (R : E → ℝ) (Vr Vθ Vz : E → E) |
| 206 | {a b : E → Fin 3 → ℝ} (he : EqOn a b U) {x : E} (hx : x ∈ U) : |
| 207 | componentDivergence R Vr Vθ Vz a x = componentDivergence R Vr Vθ Vz b x := by |
| 208 | have hd (V : E → E) (i : Fin 3) := |
| 209 | along_congr (V := V) hU (fun y hy => congrFun (he hy) i) hx |
| 210 | simp only [componentDivergence, hd, he hx] |
| 211 | |
| 212 | theorem componentDivergence_pullback {E F : Type*} |
| 213 | [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 214 | {Ω : Set E} {U : Set F} {Γ : E → F} {l v : ℝ} |
| 215 | {R : F → ℝ} {Vr Vθ Vz Vt : F → F} {Sr Sθ Sz St : E → E} {r : E → ℝ} |
| 216 | (G : PhysicalResidualBridge.PullbackData Ω U Γ l v R Vr Vθ Vz Vt Sr Sθ Sz St r) |
| 217 | (hl : l ≠ 0) {a : F → Fin 3 → ℝ} |
| 218 | (ha : ∀ i, ContDiffOn ℝ ∞ (fun y => a y i) U) {x : E} (hx : x ∈ Ω) (hr : r x ≠ 0) : |
| 219 | componentDivergence r Sr Sθ Sz (fun y i => v * a (Γ y) i) x = |
| 220 | v * l * componentDivergence R Vr Vθ Vz a (Γ x) := by |
| 221 | have hΓ := (G.smooth.contDiffAt (G.source_open.mem_nhds hx)).differentiableAt (by simp) |
| 222 | have hd i := ((ha i).contDiffAt (G.target_open.mem_nhds (G.mapsTo hx))).differentiableAt (by simp) |
| 223 | have ht : fderiv ℝ Γ x (Sθ x) = (1 : ℝ) • Vθ (Γ x) := by |
| 224 | simpa only [one_smul] using G.angular x hx |
| 225 | simp only [componentDivergence, |
| 226 | PhysicalResidualBridge.along_scaled_pull v l hΓ (hd 0) (G.radial x hx), |
| 227 | PhysicalResidualBridge.along_scaled_pull v 1 hΓ (hd 1) ht, |
| 228 | PhysicalResidualBridge.along_scaled_pull v l hΓ (hd 2) (G.axial x hx), G.radius x hx] |
| 229 | field_simp [hl, hr] |
| 230 | |
| 231 | theorem coordinate_divergence_eq {a : ProblemStatement.SpaceTime → ProblemStatement.Space} |
| 232 | {t : ℝ} {q : ProblemStatement.Space} (ha : DifferentiableAt ℝ a (t,q)) : |
| 233 | componentDivergence LinearWaveResidual.coordinateRadius |
| 234 | (LinearWaveResidual.spaceDirection 0) (LinearWaveResidual.spaceDirection 1) |
| 235 | (LinearWaveResidual.spaceDirection 2) (fun z i => a z i) (t,q) = |
| 236 | CylindricalResidual.vectorDivergence (fun y => a (t,y)) q := by |
| 237 | have hs := ha.comp q (differentiableAt_const t |>.prodMk differentiableAt_id) |
| 238 | have hd (i j : Fin 3) : |
| 239 | along (LinearWaveResidual.spaceDirection i) (fun z => a z j) (t,q) = |
| 240 | CylindricalResidual.dCoord i (fun y => a (t,y)) q j := by |
| 241 | have hc : DifferentiableAt ℝ (fun z => a z j) (t,q) := by |
| 242 | simpa only [Function.comp_def, AxisymmetricFields.projection_apply] using |
| 243 | ((AxisymmetricFields.projection j).differentiableAt.comp (t,q) ha) |
| 244 | rw [LinearWaveResidual.along_space_slice hc] |
| 245 | exact CylindricalResidual.dCoord_map (AxisymmetricFields.projection j) hs i |
| 246 | simp only [componentDivergence, hd, LinearWaveResidual.coordinateRadius, |
| 247 | CylindricalResidual.vectorDivergence] |
| 248 | |
| 249 | theorem radialDirection_match {c : Context Point} {G : PhysicalResidualBridge.ScaledGraph} {n : ℕ} |
| 250 | (H : PhysicalResidualTZ.MatchesAtTZ c.operators G n) : |
| 251 | LiftedMeanResidual.radialDirection c n = PhysicalResidualTZ.graphRadialTZ G := by |
| 252 | funext x |
| 253 | simp [LiftedMeanResidual.radialDirection, LiftedMeanResidual.liftDirection, |
| 254 | LiftedMeanResidual.radialVector, H.eR, H.frequency, H.profile, H.vR, |
| 255 | PhysicalResidualTZ.graphRadialTZ_eq, PhysicalResidualBridge.ScaledGraph.radial] |
| 256 | rfl |
| 257 | |
| 258 | theorem axialDirection_match {c : Context Point} {G : PhysicalResidualBridge.ScaledGraph} {n : ℕ} |
| 259 | (H : PhysicalResidualTZ.MatchesAtTZ c.operators G n) : |
| 260 | LiftedMeanResidual.axialDirection c n = PhysicalResidualTZ.graphAxialTZ G := by |
| 261 | funext x |
| 262 | simp [LiftedMeanResidual.axialDirection, LiftedMeanResidual.liftDirection, |
| 263 | LiftedMeanResidual.axialVector, H.epsilon, H.eZ, PhysicalResidualTZ.graphAxialTZ_apply] |
| 264 | |
| 265 | theorem scaled_base_divergence (B n : ℕ) {x : Full} (hx : x ∈ ActualBaseResidual.domain) : |
| 266 | componentDivergence PhysicalResidualBridge.ScaledGraph.radius |
| 267 | (PhysicalResidualTZ.graphRadialTZ (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h |
| 268 | (CorrectionInitialization.CommonWindow.index h n))) PhysicalResidualTZ.graphAngularTZ |
| 269 | (PhysicalResidualTZ.graphAxialTZ (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h |
| 270 | (CorrectionInitialization.CommonWindow.index h n))) |
| 271 | (ActualBaseResidual.velocityAtScale certificate modulation upper B (ChartScales.Q n)) x = 0 := by |
| 272 | let a : ProblemStatement.SpaceTime → ProblemStatement.Space := |
| 273 | CylindricalResidual.velocityComponents (FinalSlowBase.velocity certificate modulation upper B) |
| 274 | have ha : ContDiffOn ℝ ∞ a BaseResidual.past := |
| 275 | ActualBaseResidual.velocityComponents_smooth (FinalSlowBase.velocity_smooth certificate modulation upper B) |
| 276 | have hac (i : Fin 3) : ContDiffOn ℝ ∞ (fun z => a z i) BaseResidual.past := by |
| 277 | simpa only [Function.comp_def, AxisymmetricFields.projection_apply] using |
| 278 | (AxisymmetricFields.projection i).contDiff.comp_contDiffOn ha |
| 279 | have hs := componentDivergence_pullback |
| 280 | (ActualBaseResidual.cylinderPullback (ChartScales.Q_pos n) h |
| 281 | (CorrectionInitialization.CommonWindow.index h n)) (Real.sqrt_pos.2 (ChartScales.Q_pos n)).ne' |
| 282 | hac hx hx.1.ne' |
| 283 | have ht : (ActualBaseResidual.cylinderPoint h (ChartScales.Q n) x).1 < 1 := |
| 284 | ActualBaseResidual.physicalPoint_time (h := h) (ChartScales.Q_pos n) hx.2 |
| 285 | have hq : 0 < (ActualBaseResidual.cylinderPoint h (ChartScales.Q n) x).2 0 := by |
| 286 | simpa only [ActualBaseResidual.cylinderPoint, AxisymmetricResidual.pack_zero] using |
| 287 | mul_pos (Real.sqrt_pos.2 (ChartScales.Q_pos n)) hx.1 |
| 288 | have hda := (ha.contDiffAt (BaseResidual.past_isOpen.mem_nhds ⟨ht, mem_univ _⟩)).differentiableAt (by simp) |
| 289 | have hmem : |
| 290 | ((ActualBaseResidual.cylinderPoint h (ChartScales.Q n) x).1, |
| 291 | CylindricalResidual.chart (ActualBaseResidual.cylinderPoint h (ChartScales.Q n) x).2) ∈ |
| 292 | BaseResidual.past := ⟨ht, mem_univ _⟩ |
| 293 | have hu : DifferentiableAt ℝ (FinalSlowBase.velocity certificate modulation upper B) |
| 294 | ((ActualBaseResidual.cylinderPoint h (ChartScales.Q n) x).1, |
| 295 | CylindricalResidual.chart (ActualBaseResidual.cylinderPoint h (ChartScales.Q n) x).2) := |
| 296 | ((FinalSlowBase.velocity_smooth certificate modulation upper B).contDiffAt |
| 297 | (BaseResidual.past_isOpen.mem_nhds hmem)).differentiableAt (by simp) |
| 298 | have hv : componentDivergence LinearWaveResidual.coordinateRadius |
| 299 | (LinearWaveResidual.spaceDirection 0) (LinearWaveResidual.spaceDirection 1) |
| 300 | (LinearWaveResidual.spaceDirection 2) (fun z i => a z i) |
| 301 | (ActualBaseResidual.cylinderPoint h (ChartScales.Q n) x) = 0 := by |
| 302 | exact (coordinate_divergence_eq hda).trans ((CylindricalResidual.divergence_cylindrical |
| 303 | (hu.comp _ (differentiableAt_const _ |>.prodMk differentiableAt_id)) hq).symm.trans |
| 304 | (FinalSlowBase.divergence_zero certificate modulation upper B ht _)) |
| 305 | rw [hv, mul_zero] at hs |
| 306 | simp only [a, |
| 307 | CylindricalResidual.velocityComponents, CylindricalResidual.components, |
| 308 | ActualBaseResidual.cylinderPoint, AxisymmetricResidual.pack_one] at hs ⊢ |
| 309 | exact hs |
| 310 | |
| 311 | theorem base_divergence (B n : ℕ) {x : Full} (hx : x ∈ LiftedMeanResidual.cylinder strip.domain) : |
| 312 | LiftedMeanResidual.realDivergence (LiftedMeanResidual.liftScalar (commonContext B).operators.radius) |
| 313 | (LiftedMeanResidual.radialDirection (commonContext B) n) LiftedMeanResidual.angularDirection |
| 314 | (LiftedMeanResidual.axialDirection (commonContext B) n) |
| 315 | (LiftedMeanResidual.baseLift (commonContext B) n) x = 0 := by |
| 316 | have hx' : x ∈ ActualBaseResidual.domain := ⟨strip_radius hx.1, strip_time hx.1⟩ |
| 317 | have he := componentDivergence_congr ActualBaseResidual.domain_open |
| 318 | PhysicalResidualBridge.ScaledGraph.radius |
| 319 | (PhysicalResidualTZ.graphRadialTZ (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h |
| 320 | (CorrectionInitialization.CommonWindow.index h n))) PhysicalResidualTZ.graphAngularTZ |
| 321 | (PhysicalResidualTZ.graphAxialTZ (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h |
| 322 | (CorrectionInitialization.CommonWindow.index h n))) |
| 323 | (fun y hy => ActualBaseResidual.velocityAtScale_eq_baseComponents certificate modulation upper B |
| 324 | (CorrectionInitialization.CommonWindow.index h) n hy) hx' |
| 325 | have hz := scaled_base_divergence B n hx' |
| 326 | rw [he] at hz |
| 327 | have HM : PhysicalResidualTZ.MatchesAtTZ (commonContext B).operators |
| 328 | (PhysicalResidualBridge.commonGraph (ChartScales.Q n) h (CorrectionInitialization.CommonWindow.index h n)) n := |
| 329 | CommonBaseContext.operators_match_physical h (CorrectionInitialization.CommonWindow.index h) |
| 330 | (PrimaryTargetBounds.leftRadius nominal) (PrimaryTargetBounds.rightRadius nominal) |
| 331 | (PrimaryTargetBounds.radii_ordered nominal) n |
| 332 | rw [radialDirection_match HM, axialDirection_match HM] |
| 333 | exact hz |
| 334 | |
| 335 | /-! ## The actual primary sum is divergence free -/ |
| 336 | |
| 337 | theorem strip_to_positive {x : Point} (hx : x ∈ strip.domain) : |
| 338 | x ∈ LocalRankDefect.positiveDomain standardRegion.carrier := |
| 339 | ⟨strip_radius hx, strip_to_slow hx⟩ |
| 340 | |
| 341 | theorem piece_divergence {B N0 : ℕ} (l : Label B N0 × Fin 2) (n : ℕ) {x : Full} |
| 342 | (hx : x ∈ ActualPrimaryCoherence.positiveRadialChart) : |
| 343 | componentDivergence (fun y : Full => y.1.1) |
| 344 | (LiftedMeanResidual.radialDirection (commonContext B) n) LiftedMeanResidual.angularDirection |
| 345 | (LiftedMeanResidual.axialDirection (commonContext B) n) |
| 346 | ((ActualInitialCoherence.pieces B N0 l).velocity n) x = 0 := by |
| 347 | have hv (i : Fin 3) : DifferentiableAt ℝ |
| 348 | (fun y => (ActualInitialCoherence.pieces B N0 l).velocity n y i) x := |
| 349 | ((contDiffOn_pi.mp (ActualPrimaryCoherence.piece_velocity_smooth standardRegion l.2 l.1 n) i).contDiffAt |
| 350 | (ActualPrimaryCoherence.positiveChart_open.mem_nhds hx.2)).differentiableAt (by simp) |
| 351 | have hz := ActualPrimaryCoherence.piece_full_divergence standardRegion l.2 l.1 n hx |
| 352 | have hr : (PrimaryResidualClass.directions (commonContext B)).radialField n = |
| 353 | LiftedMeanResidual.radialDirection (commonContext B) n := by |
| 354 | funext y |
| 355 | simp [PrimaryResidualClass.directions, LinearWaveBounds.GraphDirections.radialField, |
| 356 | LiftedMeanResidual.radialDirection, LiftedMeanResidual.radialVector, |
| 357 | LiftedMeanResidual.liftDirection, smul_smul] |
| 358 | have hzz : (PrimaryResidualClass.directions (commonContext B)).axialField |
| 359 | (piece standardRegion l.2 l.1).strip n = |
| 360 | LiftedMeanResidual.axialDirection (commonContext B) n := by |
| 361 | funext y |
| 362 | simp [PrimaryResidualClass.directions, LinearWaveBounds.GraphDirections.axialField, |
| 363 | LiftedMeanResidual.axialDirection, LiftedMeanResidual.axialVector, |
| 364 | LiftedMeanResidual.liftDirection] |
| 365 | rfl |
| 366 | rw [hr, hzz] at hz |
| 367 | exact componentDivergence_of_complex _ _ _ _ hv hz |
| 368 | |
| 369 | theorem seed_oscillation_divergence (B N0 n : ℕ) {x : Full} |
| 370 | (hx : x ∈ LiftedMeanResidual.cylinder strip.domain) : |
| 371 | LiftedMeanResidual.realDivergence (LiftedMeanResidual.liftScalar (commonContext B).operators.radius) |
| 372 | (LiftedMeanResidual.radialDirection (commonContext B) n) LiftedMeanResidual.angularDirection |
| 373 | (LiftedMeanResidual.axialDirection (commonContext B) n) |
| 374 | ((ActualInitialCoherence.seed B N0).oscillation n) x = 0 := by |
| 375 | change componentDivergence (fun y : Full => y.1.1) _ _ _ |
| 376 | (fun y i => ∑ l ∈ activeLabels standardRegion B N0 n, |
| 377 | (ActualInitialCoherence.pieces B N0 l).velocity n y i) x = 0 |
| 378 | rw [componentDivergence_sum _ _ _ _ _ (fun l _ i => |
| 379 | ((contDiffOn_pi.mp (ActualPrimaryCoherence.piece_velocity_smooth standardRegion l.2 l.1 n) i).contDiffAt |
| 380 | (ActualPrimaryCoherence.positiveChart_open.mem_nhds (strip_time hx.1))).differentiableAt (by simp))] |
| 381 | exact Finset.sum_eq_zero (fun l _ => piece_divergence l n ⟨strip_radius hx.1, strip_time hx.1⟩) |
| 382 | |
| 383 | theorem primary_oscillation (B N0 : ℕ) : |
| 384 | (ActualInitialCoherence.primary B N0).oscillation = |
| 385 | (ActualInitialCoherence.seed B N0).oscillation := rfl |
| 386 | |
| 387 | theorem temporal_oscillation (B N0 : ℕ) : |
| 388 | (ActualInitialCoherence.temporal B N0).oscillation = |
| 389 | (ActualInitialCoherence.seed B N0).oscillation := by |
| 390 | change (ActualInitialCoherence.seed B N0).oscillation + 0 = _ |
| 391 | exact add_zero _ |
| 392 | |
| 393 | theorem initialized_oscillation (B N0 : ℕ) : |
| 394 | (ActualInitialCoherence.initialized B N0).oscillation = |
| 395 | (ActualInitialCoherence.seed B N0).oscillation := |
| 396 | CorrectionInitialization.GaugeInitialization.initializedBands_oscillation _ _ _ _ _ _ _ _ _ |
| 397 | |
| 398 | theorem primary_fullDivergence (B N0 n : ℕ) {x : Full} |
| 399 | (hx : x ∈ LiftedMeanResidual.cylinder strip.domain) : |
| 400 | fullDivergence (commonContext B) (ActualInitialCoherence.primary B N0) n x = 0 := by |
| 401 | have he : (ActualInitialCoherence.primary B N0).totalVelocity (commonContext B) n = |
| 402 | fun y => LiftedMeanResidual.baseLift (commonContext B) n y + |
| 403 | (ActualInitialCoherence.seed B N0).oscillation n y := by |
| 404 | funext y i |
| 405 | fin_cases i <;> simp [State.totalVelocity, ActualInitialCoherence.primary, |
| 406 | CorrectionInitialization.GaugeInitialization.primaryBands, VariableGaugeMean.reconstructState, |
| 407 | ActualInitialCoherence.seed, CorrectionInitialization.bandSeed, LiftedMeanResidual.baseLift, |
| 408 | LiftedMeanResidual.tripleVector, Matrix.cons_val, Matrix.cons_val_zero, Matrix.cons_val_one] |
| 409 | have hb (i : Fin 3) := (LiftedMeanResidual.liftScalar_smooth |
| 410 | (LiftedMeanResidual.tripleVector_smooth (GaugeDebtIncrement.smoothTriple_mono |
| 411 | (ActualInitialCoherence.common_base_data B).smooth (fun _ hx => strip_to_positive hx)) n i)) |
| 412 | have hw (i : Fin 3) : ContDiffOn ℝ ∞ |
| 413 | (fun y => (ActualInitialCoherence.seed B N0).oscillation n y i) |
| 414 | (LiftedMeanResidual.cylinder strip.domain) := |
| 415 | (ActualInitialCoherence.seed_smooth B N0 n i).mono |
| 416 | (fun _ hy => ⟨strip_to_slow hy.1, hy.2⟩) |
| 417 | unfold fullDivergence |
| 418 | rw [he, LiftedMeanResidual.realDivergence_add _ _ _ _ |
| 419 | (a := LiftedMeanResidual.baseLift (commonContext B) n) |
| 420 | (b := (ActualInitialCoherence.seed B N0).oscillation n) |
| 421 | (fun i => ((hb i).contDiffAt ((LiftedMeanResidual.cylinder_open strip.isOpen_domain).mem_nhds hx)).differentiableAt (by simp)) |
| 422 | (fun i => ((hw i).contDiffAt ((LiftedMeanResidual.cylinder_open strip.isOpen_domain).mem_nhds hx)).differentiableAt (by simp))] |
| 423 | exact (congrArg₂ (fun a b : ℝ => a + b) (base_divergence B n hx) |
| 424 | (seed_oscillation_divergence B N0 n hx)).trans (zero_add 0) |
| 425 | |
| 426 | theorem common_graphOperators (B : ℕ) : |
| 427 | (commonContext B).operators = graphOperators commonGauge.radial |
| 428 | (commonContext B).operators.epsilon (commonContext B).operators.fastCoefficient |
| 429 | ((0,1),0) ((1,0),0) (TorusInverse.vector .temporal) := rfl |
| 430 | |
| 431 | theorem initialized_fullDivergence (B N0 n : ℕ) {x : Full} |
| 432 | (hx : x ∈ LiftedMeanResidual.cylinder strip.domain) : |
| 433 | fullDivergence (commonContext B) (ActualInitialCoherence.initialized B N0) n x = 0 := by |
| 434 | have hw : ∀ n i, ContDiffOn ℝ ∞ |
| 435 | (fun p => (ActualInitialCoherence.seed B N0).oscillation n p i) |
| 436 | (LiftedMeanResidual.cylinder strip.domain) := |
| 437 | fun n i => (ActualInitialCoherence.seed_smooth B N0 n i).mono |
| 438 | (fun _ hy => ⟨strip_to_slow hy.1, hy.2⟩) |
| 439 | have hp := totalVelocity_smooth_of_primitive (ActualInitialCoherence.primary_primitive B N0) |
| 440 | (fun _ hy => strip_to_positive hy) hw |
| 441 | have ht := totalVelocity_smooth_of_primitive (ActualInitialCoherence.temporal_primitive B N0) |
| 442 | (fun _ hy => strip_to_positive hy) (by simpa only [temporal_oscillation] using hw) |
| 443 | have hm := temporalStage_fullDivergence_local (ActualInitialCoherence.primary_primitive B N0) |
| 444 | (PrimaryTargetBounds.leftRadius_pos nominal) (ChartScales.radialExponent_pos h outgoing.data.h_pos.le) |
| 445 | commonGauge_length rfl h (CorrectionInitialization.CommonWindow.index h) ((0,1),0) ((1,0),0) |
| 446 | (TorusInverse.vector .temporal) (common_graphOperators B) n (strip_to_slow hx.1) |
| 447 | (strip_radius hx.1).ne' x.2 |
| 448 | (fun i => ((hp n i).contDiffAt ((LiftedMeanResidual.cylinder_open strip.isOpen_domain).mem_nhds hx)).differentiableAt (by simp)) |
| 449 | have hr := rankStage_fullDivergence_local (ActualInitialCoherence.rank_geometry_of_primitive B _ |
| 450 | (ActualInitialCoherence.temporal_primitive B N0)) commonGauge_length ((0,1),0) ((1,0),0) |
| 451 | (TorusInverse.vector .temporal) (common_graphOperators B) n (strip_to_slow hx.1) |
| 452 | (strip_radius hx.1).ne' x.2 |
| 453 | (fun i => ((ht n i).contDiffAt ((LiftedMeanResidual.cylinder_open strip.isOpen_domain).mem_nhds hx)).differentiableAt (by simp)) |
| 454 | exact hr.trans (hm.trans (primary_fullDivergence B N0 n hx)) |
| 455 | |
| 456 | /-! ## Literal angular harmonics and the retained errors -/ |
| 457 | |
| 458 | section Angular |
| 459 | |
| 460 | variable {B N0 : ℕ} |
| 461 | |
| 462 | theorem piece_velocity_angularContinuous (l : Label B N0 × Fin 2) (n : ℕ) |
| 463 | (x : Point) (i : Fin 3) : |
| 464 | Continuous (fun θ : ℝ => (ActualInitialCoherence.pieces B N0 l).velocity n (x, θ) i) := by |
| 465 | rw [← (ActualInitialCoherence.primaryBlock_represents l).1] |
| 466 | exact Complex.continuous_re.comp (HarmonicFields.field_angular_continuous _ _ _ _ _) |
| 467 | |
| 468 | theorem piece_pressure_angularContinuous (l : Label B N0 × Fin 2) (n : ℕ) (x : Point) : |
| 469 | Continuous (fun θ : ℝ => (ActualInitialCoherence.pieces B N0 l).pressure n (x, θ)) := by |
| 470 | rw [← (ActualInitialCoherence.primaryBlock_represents l).2] |
| 471 | exact Complex.continuous_re.comp (HarmonicFields.field_angular_continuous _ _ _ _ _) |
| 472 | |
| 473 | theorem piece_excluded_angularContinuous (l : Label B N0 × Fin 2) (n : ℕ) |
| 474 | (x : Point) (i : Fin 3) : |
| 475 | Continuous (fun θ : ℝ => (ActualInitialCoherence.pieces B N0 l).excluded n (x, θ) i) := by |
| 476 | rw [← ActualInitialCoherence.gaussianBlock_represents l] |
| 477 | exact Complex.continuous_re.comp (HarmonicFields.field_angular_continuous _ _ _ _ _) |
| 478 | |
| 479 | theorem piece_velocity_angularPeriodic (l : Label B N0 × Fin 2) (n : ℕ) |
| 480 | (x : Point) (i : Fin 3) : |
| 481 | Function.Periodic (fun θ : ℝ => (ActualInitialCoherence.pieces B N0 l).velocity n (x, θ) i) |
| 482 | (2 * Real.pi) := by |
| 483 | rw [← (ActualInitialCoherence.primaryBlock_represents l).1] |
| 484 | intro θ |
| 485 | exact congrArg Complex.re (HarmonicFields.field_angular_periodic _ _ _ _ _ θ) |
| 486 | |
| 487 | theorem piece_pressure_angularPeriodic (l : Label B N0 × Fin 2) (n : ℕ) (x : Point) : |
| 488 | Function.Periodic (fun θ : ℝ => (ActualInitialCoherence.pieces B N0 l).pressure n (x, θ)) |
| 489 | (2 * Real.pi) := by |
| 490 | rw [← (ActualInitialCoherence.primaryBlock_represents l).2] |
| 491 | intro θ |
| 492 | exact congrArg Complex.re (HarmonicFields.field_angular_periodic _ _ _ _ _ θ) |
| 493 | |
| 494 | private theorem conjugatePair_zero (a : Point → ℂ) (x : Point) : |
| 495 | ErrorHarmonics.conjugatePair 1 a 0 x = 0 := by |
| 496 | classical |
| 497 | change Finsupp.single (1 : ℤ) (fun y => a y / 2) 0 x + |
| 498 | (starRingEnd ℂ) (Finsupp.single (1 : ℤ) (fun y => a y / 2) 0 x) = 0 |
| 499 | simp |
| 500 | |
| 501 | theorem piece_velocity_mean_zero (l : Label B N0 × Fin 2) (n : ℕ) |
| 502 | (x : Point) (i : Fin 3) : |
| 503 | angularAverage (fun k p => (ActualInitialCoherence.pieces B N0 l).velocity k p i) n x = 0 := by |
| 504 | rw [← (ActualInitialCoherence.primaryBlock_represents l).1] |
| 505 | change HarmonicResidual.realAngularMean (fun θ => |
| 506 | (HarmonicFields.field ((ActualInitialCoherence.primaryBlock l).velocity n i) |
| 507 | ((ActualInitialCoherence.primaryBlock l).frequency n) |
| 508 | ((ActualInitialCoherence.primaryBlock l).phase n) |
| 509 | ((ActualInitialCoherence.primaryBlock l).angularFrequency n) (x, θ)).re) = 0 |
| 510 | trans (((ActualInitialCoherence.primaryBlock l).velocity n i) 0 x).re |
| 511 | · exact HarmonicResidual.realAngularMean_field _ _ _ (ActualInitialCoherence.angularMode_ne l n) x |
| 512 | · simp [ActualInitialCoherence.primaryBlock, CorrectionInitialization.PrimaryPiece.harmonicBlock, |
| 513 | CorrectionInitialization.PrimaryHarmonics.block, conjugatePair_zero] |
| 514 | |
| 515 | theorem piece_pressure_mean_zero (l : Label B N0 × Fin 2) (n : ℕ) (x : Point) : |
| 516 | angularAverage (ActualInitialCoherence.pieces B N0 l).pressure n x = 0 := by |
| 517 | rw [← (ActualInitialCoherence.primaryBlock_represents l).2] |
| 518 | change HarmonicResidual.realAngularMean (fun θ => |
| 519 | (HarmonicFields.field ((ActualInitialCoherence.primaryBlock l).pressure n) |
| 520 | ((ActualInitialCoherence.primaryBlock l).frequency n) |
| 521 | ((ActualInitialCoherence.primaryBlock l).phase n) |
| 522 | ((ActualInitialCoherence.primaryBlock l).angularFrequency n) (x, θ)).re) = 0 |
| 523 | trans (((ActualInitialCoherence.primaryBlock l).pressure n) 0 x).re |
| 524 | · exact HarmonicResidual.realAngularMean_field _ _ _ (ActualInitialCoherence.angularMode_ne l n) x |
| 525 | · simp [ActualInitialCoherence.primaryBlock, CorrectionInitialization.PrimaryPiece.harmonicBlock, |
| 526 | CorrectionInitialization.PrimaryHarmonics.block, conjugatePair_zero] |
| 527 | |
| 528 | end Angular |
| 529 | |
| 530 | theorem seed_velocity_mean_zero (B N0 n : ℕ) (x : Point) (i : Fin 3) : |
| 531 | angularAverage (fun k p => (ActualInitialCoherence.seed B N0).oscillation k p i) n x = 0 := by |
| 532 | change HarmonicResidual.realAngularMean (fun θ => |
| 533 | ∑ l ∈ activeLabels standardRegion B N0 n, |
| 534 | (ActualInitialCoherence.pieces B N0 l).velocity n (x, θ) i) = 0 |
| 535 | rw [HarmonicResidual.realAngularMean_sum _ _ |
| 536 | (fun l _ => piece_velocity_angularContinuous l n x i)] |
| 537 | exact Finset.sum_eq_zero (fun l _ => piece_velocity_mean_zero l n x i) |
| 538 | |
| 539 | theorem seed_pressure_mean_zero (B N0 n : ℕ) (x : Point) : |
| 540 | angularAverage (ActualInitialCoherence.seed B N0).oscillatoryPressure n x = 0 := by |
| 541 | change HarmonicResidual.realAngularMean (fun θ => |
| 542 | ∑ l ∈ activeLabels standardRegion B N0 n, |
| 543 | (ActualInitialCoherence.pieces B N0 l).pressure n (x, θ)) = 0 |
| 544 | rw [HarmonicResidual.realAngularMean_sum _ _ |
| 545 | (fun l _ => piece_pressure_angularContinuous l n x)] |
| 546 | exact Finset.sum_eq_zero (fun l _ => piece_pressure_mean_zero l n x) |
| 547 | |
| 548 | theorem initialized_oscillatoryPressure (B N0 : ℕ) : |
| 549 | (ActualInitialCoherence.initialized B N0).oscillatoryPressure = |
| 550 | (ActualInitialCoherence.seed B N0).oscillatoryPressure := by |
| 551 | change ((ActualInitialCoherence.seed B N0).oscillatoryPressure + 0) + 0 = _ |
| 552 | simp only [add_zero] |
| 553 | |
| 554 | theorem initialized_errors_angularContinuous (B N0 n : ℕ) {x : Point} |
| 555 | (hT : 0 < x.2.1.1) (i : Fin 3) : |
| 556 | Continuous (fun θ : ℝ => (ActualInitialCoherence.initialized B N0).errors.base n (x, θ) i) ∧ |
| 557 | Continuous (fun θ : ℝ => (ActualInitialCoherence.initialized B N0).errors.total n (x, θ) i) := by |
| 558 | obtain ⟨hb, hg, ha⟩ := CorrectionInitialization.GaugeInitialization.initializedBands_error_components |
| 559 | commonGauge rankData h (CorrectionInitialization.CommonWindow.index h) ((0,1),0) (commonContext B) |
| 560 | (activeLabels standardRegion B N0) (ActualInitialCoherence.pieces B N0) (ActualInitialCoherence.baseError B) |
| 561 | change (ActualInitialCoherence.initialized B N0).errors.base = _ at hb |
| 562 | change (ActualInitialCoherence.initialized B N0).errors.gaussian = _ at hg |
| 563 | change (ActualInitialCoherence.initialized B N0).errors.aliasError = _ at ha |
| 564 | have hbc : Continuous (fun θ : ℝ => (ActualInitialCoherence.initialized B N0).errors.base n (x, θ) i) := by |
| 565 | rw [hb] |
| 566 | exact ActualBaseResidual.baseError_angular_continuous certificate modulation upper B n hT i |
| 567 | have hgc : Continuous (fun θ : ℝ => (ActualInitialCoherence.initialized B N0).errors.gaussian n (x, θ) i) := by |
| 568 | rw [hg] |
| 569 | exact continuous_finsetSum _ (fun l _ => piece_excluded_angularContinuous l n x i) |
| 570 | have hac : Continuous (fun θ : ℝ => (ActualInitialCoherence.initialized B N0).errors.aliasError n (x, θ) i) := by |
| 571 | rw [ha] |
| 572 | change Continuous (fun _ : ℝ => |
| 573 | VariableGaugeMean.temporalAliasState commonGauge h (CorrectionInitialization.CommonWindow.index h) |
| 574 | (commonContext B) (ActualInitialCoherence.primary B N0) n (x, 0) i + |
| 575 | VariableGaugeMean.pressureAliasState commonGauge (commonContext B) |
| 576 | (ActualInitialCoherence.ranked B N0) n (x, 0) i) |
| 577 | exact continuous_const |
| 578 | exact ⟨hbc, (hbc.add hgc).add hac⟩ |
| 579 | |
| 580 | theorem initialized_angularData (B N0 : ℕ) : |
| 581 | AngularData strip.domain (ActualInitialCoherence.initialized B N0) where |
| 582 | velocity_smooth n i := by |
| 583 | rw [initialized_oscillation] |
| 584 | exact (ActualInitialCoherence.seed_smooth B N0 n i).mono |
| 585 | (fun _ hx => ⟨strip_to_slow hx.1, hx.2⟩) |
| 586 | pressure_smooth n := by |
| 587 | rw [initialized_oscillatoryPressure] |
| 588 | change ContDiffOn ℝ ∞ (fun p => ∑ l ∈ activeLabels standardRegion B N0 n, |
| 589 | (ActualInitialCoherence.pieces B N0 l).pressure n p) (LiftedMeanResidual.cylinder strip.domain) |
| 590 | apply ContDiffOn.sum |
| 591 | intro l _ |
| 592 | exact (ActualPrimaryCoherence.piece_pressure_smooth standardRegion l.2 l.1 n).mono |
| 593 | (fun _ hx => strip_time hx.1) |
| 594 | velocity_periodic n i := by |
| 595 | rw [initialized_oscillation] |
| 596 | intro x _ θ |
| 597 | change (∑ l ∈ activeLabels standardRegion B N0 n, |
| 598 | (ActualInitialCoherence.pieces B N0 l).velocity n (x, θ + 2 * Real.pi) i) = |
| 599 | ∑ l ∈ activeLabels standardRegion B N0 n, |
| 600 | (ActualInitialCoherence.pieces B N0 l).velocity n (x, θ) i |
| 601 | exact Finset.sum_congr rfl (fun l _ => piece_velocity_angularPeriodic l n x i θ) |
| 602 | pressure_periodic n := by |
| 603 | rw [initialized_oscillatoryPressure] |
| 604 | intro x _ θ |
| 605 | change (∑ l ∈ activeLabels standardRegion B N0 n, |
| 606 | (ActualInitialCoherence.pieces B N0 l).pressure n (x, θ + 2 * Real.pi)) = |
| 607 | ∑ l ∈ activeLabels standardRegion B N0 n, |
| 608 | (ActualInitialCoherence.pieces B N0 l).pressure n (x, θ) |
| 609 | exact Finset.sum_congr rfl (fun l _ => piece_pressure_angularPeriodic l n x θ) |
| 610 | velocity_mean_zero n x _ i := by |
| 611 | rw [initialized_oscillation] |
| 612 | exact seed_velocity_mean_zero B N0 n x i |
| 613 | pressure_mean_zero n x _ := by |
| 614 | rw [initialized_oscillatoryPressure] |
| 615 | exact seed_pressure_mean_zero B N0 n x |
| 616 | base_error_continuous n x hx i := (initialized_errors_angularContinuous B N0 n (strip_time hx) i).1 |
| 617 | excluded_continuous n x hx i := (initialized_errors_angularContinuous B N0 n (strip_time hx) i).2 |
| 618 | |
| 619 | /-- The literal initializer satisfies the local hypotheses of the |
| 620 | nonlinear angular-mean identity. No PDE or divergence premise is supplied. -/ |
| 621 | theorem initialized_meanHypotheses (B N0 : ℕ) : |
| 622 | LiftedMeanResidual.MeanHypotheses strip.domain (commonContext B) |
| 623 | (ActualInitialCoherence.initialized B N0) := |
| 624 | meanHypotheses_of_primitive (g := commonGauge) (ActualInitialCoherence.initialized_primitive B N0) |
| 625 | (PrimaryTargetBounds.leftRadius_pos nominal) (ChartScales.radialExponent_pos h outgoing.data.h_pos.le) |
| 626 | commonGauge_length rfl strip.isOpen_domain (fun _ hx => strip_to_positive hx) |
| 627 | (initialized_angularData B N0) (fun n _ hx => base_divergence B n hx) |
| 628 | (fun n _ hx => initialized_fullDivergence B N0 n hx) |
| 629 | |
| 630 | /-- Exact mean equation, with the same Gaussian and alias errors retained |
| 631 | by `initializedBands`. -/ |
| 632 | theorem initialized_angularMean_fullGoodResidual (B N0 n : ℕ) {x : Point} |
| 633 | (hx : x ∈ strip.domain) (i : Fin 3) : |
| 634 | angularMeanVector (fullGoodResidual (commonContext B) (ActualInitialCoherence.initialized B N0)) n x i = |
| 635 | (ActualInitialCoherence.initialized B N0).meanGoodResidual (commonContext B) n x i := |
| 636 | LiftedMeanResidual.angularMean_fullGoodResidual (initialized_meanHypotheses B N0) n hx i |
| 637 | |
| 638 | end NavierStokes.ActualInitialMeanEquation |