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.CorrectionStep |
| 2 | import NavierStokes.CrossBasedMeanComposition |
| 3 | import NavierStokes.ActualCycleExcluded |
| 4 | import NavierStokes.CycleMeanEquation |
| 5 | import NavierStokes.SignedCrossDefectClass |
| 6 | |
| 7 | /-! |
| 8 | # Analytic preservation for the literal correction cycle |
| 9 | |
| 10 | The wave inputs below are estimates and local identities for the two actual |
| 11 | constructed increments. The full residual, mean, debt, covariance, and |
| 12 | stored-error conclusions are derived for `CycleState.step`. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace NavierStokes.CorrectionAnalyticStep |
| 18 | |
| 19 | open Set Filter Function |
| 20 | open WeightedClasses MeanIncrementBounds CorrectionState CorrectionStep |
| 21 | open VariableGaugeMean LocalSignedRequest |
| 22 | open scoped ContDiff Topology BigOperators |
| 23 | |
| 24 | |
| 25 | abbrev Point := CorrectionStep.CyclePoint |
| 26 | |
| 27 | /-- Outputs of the two native constructions, on their literal current |
| 28 | source and request. No complete updated residual or mean estimate is an |
| 29 | input to this record. -/ |
| 30 | structure WaveData {ι : Type} (G : SignedMeanGain.Geometry) |
| 31 | (p : CycleParameters ι) (v : CycleCoefficients ι) (c : Context Point) (u : State Point) |
| 32 | (P : ι → ℕ → Point → ℝ) (S : ι → ℕ → Set Point) (σ κ : ℝ) : Prop where |
| 33 | carrier : ∀ l, SameCarrier ((v).blocks l) ((p).signedBlock v c u l) |
| 34 | particular : ∀ i j, LabelSumBounds.UniformWaveClass (p).strip P (1/2+σ) |
| 35 | (fun l n z => ((p).particularBlock v c u l).velocity n i j z) |
| 36 | tangent : ∀ i j, LabelSumBounds.UniformWaveClass (p).strip P (1/2+σ-κ) |
| 37 | (fun l n z => ((p).signedTangent v c u l).velocity n i j z) |
| 38 | curl : ∀ i j, LabelSumBounds.UniformWaveClass (p).strip P (1+σ-2*κ) |
| 39 | (fun l n z => ((p).signedCurl v c u l).velocity n i j z) |
| 40 | particularPressure : ∀ j, LabelSumBounds.UniformWaveClass (p).strip P (1+σ) |
| 41 | (fun l n z => ((p).particularBlock v c u l).pressure n j z) |
| 42 | signedPressure : ∀ j, LabelSumBounds.UniformWaveClass (p).strip P (1+σ-κ) |
| 43 | (fun l n z => ((p).signedBlock v c u l).pressure n j z) |
| 44 | particularSmooth : ∀ l n i, HarmonicResidual.SmoothCoefficients G.domain |
| 45 | (((p).particularBlock v c u l).velocity n i) |
| 46 | signedSmooth : ∀ l n i, HarmonicResidual.SmoothCoefficients G.domain |
| 47 | (((p).signedBlock v c u l).velocity n i) |
| 48 | particularPressureSmooth : ∀ l n, HarmonicResidual.SmoothCoefficients G.domain |
| 49 | (((p).particularBlock v c u l).pressure n) |
| 50 | signedPressureSmooth : ∀ l n, HarmonicResidual.SmoothCoefficients G.domain |
| 51 | (((p).signedBlock v c u l).pressure n) |
| 52 | particularGaussianSmooth : ∀ l n i, HarmonicResidual.SmoothCoefficients G.domain |
| 53 | (((p).particularGaussianBlock v c u l).velocity n i) |
| 54 | signedGaussianSmooth : ∀ l n i, HarmonicResidual.SmoothCoefficients G.domain |
| 55 | (((p).signedGaussianBlock v c u l).velocity n i) |
| 56 | particularSolenoidal : ∀ l, |
| 57 | HarmonicWaveInteraction.ModeSolenoidal (p).strip c ((p).particularBlock v c u l) |
| 58 | signedSolenoidal : ∀ l, |
| 59 | HarmonicWaveInteraction.ModeSolenoidal (p).strip c ((p).signedBlock v c u l) |
| 60 | particularSupport : ∀ l, HarmonicSourceSupport.InputSupportOn G.domain (S l) |
| 61 | ((p).particularBlock v c u l) ((p).particularGaussianBlock v c u l).velocity 0 |
| 62 | signedSupport : ∀ l, HarmonicSourceSupport.InputSupportOn G.domain (S l) |
| 63 | ((p).signedBlock v c u l) ((p).signedGaussianBlock v c u l).velocity 0 |
| 64 | particularGaussian : ∀ β i j, LabelSumBounds.UniformClass (p).strip |
| 65 | (fun _ _ z => Real.sqrt ((p).strip.zeta z)) β |
| 66 | (fun l n z => ((p).particularGaussianBlock v c u l).velocity n i j z) |
| 67 | signedGaussian : ∀ β i j, LabelSumBounds.UniformClass (p).strip |
| 68 | (fun _ _ z => Real.sqrt ((p).strip.zeta z)) β |
| 69 | (fun l n z => ((p).signedGaussianBlock v c u l).velocity n i j z) |
| 70 | particularField : WaveStateRegularity.AngularSmooth G.domain ((p).particularVelocity v c u) |
| 71 | signedField : WaveStateRegularity.AngularSmooth G.domain ((p).signedVelocity v c u) |
| 72 | particularPressureField : ∀ n, ContDiffOn ℝ ∞ ((p).particularPressure v c u n) |
| 73 | (G.domain ×ˢ (univ : Set ℝ)) |
| 74 | signedPressureField : ∀ n, ContDiffOn ℝ ∞ ((p).signedPressure v c u n) |
| 75 | (G.domain ×ˢ (univ : Set ℝ)) |
| 76 | particularPeriodic : OscillationPeriodic G.region.carrier ((p).particularVelocity v c u) |
| 77 | signedPeriodic : OscillationPeriodic G.region.carrier ((p).signedVelocity v c u) |
| 78 | particularRadialSupport : WaveStateRegularity.WaveSupport G.region G.patch.a G.patch.b |
| 79 | ((p).particularVelocity v c u) |
| 80 | signedRadialSupport : WaveStateRegularity.WaveSupport G.region G.patch.a G.patch.b |
| 81 | ((p).signedVelocity v c u) |
| 82 | tangentField : WaveStateRegularity.AngularSmooth G.domain |
| 83 | (LabelSumBounds.fieldSum (v).labels (fun l => ((p).signedTangent v c u l).oscillation)) |
| 84 | tangentPeriodic : OscillationPeriodic G.region.carrier |
| 85 | (LabelSumBounds.fieldSum (v).labels (fun l => ((p).signedTangent v c u l).oscillation)) |
| 86 | tangentRadialSupport : WaveStateRegularity.WaveSupport G.region G.patch.a G.patch.b |
| 87 | (LabelSumBounds.fieldSum (v).labels (fun l => ((p).signedTangent v c u l).oscillation)) |
| 88 | particularLinear : ∀ i j, j ≠ 0 → LabelSumBounds.UniformWaveClass (p).strip P (1+σ-3*κ) |
| 89 | (fun l n z => |
| 90 | (HarmonicResidual.residualBlock c u ((v).blocks l) ((v).gaussian l) ((v).aliasCoefficients l)).velocity n i j z + |
| 91 | (HarmonicWaveInteraction.linearGoodBlock c ((v).blocks l) ((p).particularBlock v c u l) |
| 92 | ((p).particularGaussianBlock v c u l).velocity).velocity n i j z) |
| 93 | signedLinear : UniformHarmonicInteraction.UniformVelocity (p).strip P (1+σ-4*κ) |
| 94 | (fun l => HarmonicWaveInteraction.linearGoodBlock c ((p).beforeSignedBlock v c u l) |
| 95 | ((p).signedBlock v c u l) ((p).signedGaussianBlock v c u l).velocity) |
| 96 | |
| 97 | namespace WaveData |
| 98 | |
| 99 | variable {ι : Type} {G : SignedMeanGain.Geometry} {p : CycleParameters ι} |
| 100 | {v : CycleCoefficients ι} {c : Context Point} {u : State Point} |
| 101 | {P : ι → ℕ → Point → ℝ} {S : ι → ℕ → Set Point} {σ κ : ℝ} |
| 102 | (W : WaveData G p v c u P S σ κ) |
| 103 | |
| 104 | include W |
| 105 | |
| 106 | /-- The signed exact coefficient is its tangent coefficient plus the |
| 107 | literal curl difference. -/ |
| 108 | theorem signed (hκ : κ ≤ 1/2) : ∀ i j, |
| 109 | LabelSumBounds.UniformWaveClass (p).strip P (1/2+σ-κ) |
| 110 | (fun l n z => ((p).signedBlock v c u l).velocity n i j z) := by |
| 111 | intro i j |
| 112 | apply ((W.tangent i j).add ((W.curl i j).mono_exponent (by linarith))).congr |
| 113 | intro l n z hz |
| 114 | change ((p).signedTangent v c u l).velocity n i j z + |
| 115 | (((p).signedBlock v c u l).velocity n i j z - ((p).signedTangent v c u l).velocity n i j z) = _ |
| 116 | ring |
| 117 | |
| 118 | theorem particular_zero_germ (hS : ∀ l n, IsClosed (S l n)) |
| 119 | (l : ι) (n : ℕ) {z : Point} (hz : z ∈ G.domain) (hn : z ∉ S l n) |
| 120 | (i : Fin 3) (j : ℤ) (hj : j ≠ 0) : |
| 121 | ((p).particularBlock v c u l).velocity n i j =ᶠ[𝓝 z] fun _ => 0 := |
| 122 | block_velocity_zero_germ_of_inputSupport G.domain_open (hS l) (W.particularSupport l) |
| 123 | ((p).particularBlock_real v c u l).1 n hz hn i j hj |
| 124 | |
| 125 | theorem signed_zero_germ (hS : ∀ l n, IsClosed (S l n)) |
| 126 | (l : ι) (n : ℕ) {z : Point} (hz : z ∈ G.domain) (hn : z ∉ S l n) |
| 127 | (i : Fin 3) (j : ℤ) (hj : j ≠ 0) : |
| 128 | ((p).signedBlock v c u l).velocity n i j =ᶠ[𝓝 z] fun _ => 0 := |
| 129 | block_velocity_zero_germ_of_inputSupport G.domain_open (hS l) (W.signedSupport l) |
| 130 | ((p).signedBlock_real v c u l).1 n hz hn i j hj |
| 131 | |
| 132 | /-- The two tensor regularity inputs are consequences of the actual |
| 133 | finite wave fields, their radial support and their torus periodicity. -/ |
| 134 | theorem covariance_moving |
| 135 | (hu : WaveStateRegularity.AngularSmooth G.domain (u).oscillation) |
| 136 | (hup : OscillationPeriodic G.region.carrier (u).oscillation) : |
| 137 | (∀ i j, GaugeMomentBalances.MovingField G.region G.patch.a G.patch.b |
| 138 | (SignedMeanGain.covarianceIncrement (u).oscillation ((p).particularVelocity v c u) i j)) ∧ |
| 139 | (∀ i j, GaugeMomentBalances.MovingField G.region G.patch.a G.patch.b |
| 140 | (SignedMeanGain.covarianceIncrement ((p).afterParticular v c u).oscillation |
| 141 | ((p).signedVelocity v c u) i j)) := by |
| 142 | refine ⟨covarianceIncrement_moving G.region hu W.particularField |
| 143 | W.particularRadialSupport hup W.particularPeriodic, ?_⟩ |
| 144 | exact covarianceIncrement_moving G.region (hu.add W.particularField) W.signedField |
| 145 | W.signedRadialSupport (hup.add W.particularPeriodic) W.signedPeriodic |
| 146 | |
| 147 | end WaveData |
| 148 | |
| 149 | /-- The fixed geometry and primitive operator data shared by every cycle. |
| 150 | The similarity data are identified with the same region, strip and gauge |
| 151 | used in the invariant, including the entire radial and free-torus fiber. -/ |
| 152 | structure StaticData (G : SignedMeanGain.Geometry) (h : ℝ) (index : ℕ → ℕ) |
| 153 | (axial : PressureStream.Plane × PressureStream.Plane) (r : RankData PressureStream.Plane) |
| 154 | (c : Context Point) (κ : ℝ) where |
| 155 | aliasData : ActualCycleExcluded.SimilarityData |
| 156 | coord : G.coord = 2 * aliasData.h |
| 157 | region : HEq G.region aliasData.region |
| 158 | inner : G.patch.a = aliasData.inner |
| 159 | outer : G.patch.b = aliasData.outer |
| 160 | gauge : G.gauge = aliasData.gauge |
| 161 | strip : G.strip = aliasData.strip |
| 162 | time : h = aliasData.h |
| 163 | index_eq : index = aliasData.index |
| 164 | operators_eq : c.operators = G.operators |
| 165 | operators : OperatorBounds G.strip c.operators κ |
| 166 | base : BaseBounds G.strip c.base |
| 167 | axial_eq : axial = (G.axial, 0) |
| 168 | temporal : c.operators.vT = (0, (0, TorusInverse.vector .temporal)) |
| 169 | fast : ∀ n, c.operators.fastCoefficient n = ChartScales.Tg ^ index n * ChartScales.Q n ^ (1+h) |
| 170 | angular_slow : LocalRankDefect.IsSlowOn G.region.carrier c.base.angular |
| 171 | axial_slow : LocalRankDefect.IsSlowOn G.region.carrier c.base.axial |
| 172 | rankExponent : ℝ |
| 173 | rankCoefficient : ℝ |
| 174 | rankParameters : RankStateBounds.NormalizedParameters G.coord rankExponent rankCoefficient r G.region.carrier |
| 175 | rankCoefficient_ne : rankCoefficient ≠ 0 |
| 176 | rank_left : G.patch.a < r.inner |
| 177 | rank_right : r.outer < G.patch.b |
| 178 | |
| 179 | namespace StaticData |
| 180 | |
| 181 | variable {G : SignedMeanGain.Geometry} {h : ℝ} {index : ℕ → ℕ} |
| 182 | {axial : PressureStream.Plane × PressureStream.Plane} {r : RankData PressureStream.Plane} |
| 183 | {c : Context Point} {κ : ℝ} (D : StaticData G h index axial r c κ) |
| 184 | |
| 185 | include D |
| 186 | |
| 187 | theorem radius_pos {z : Point} (hz : z ∈ G.strip.domain) : 0 < c.operators.radius z := by |
| 188 | rw [D.operators_eq] |
| 189 | exact G.strip_radius_pos hz |
| 190 | |
| 191 | theorem graph : ∃ slowTime : PressureStream.Plane × PressureStream.Plane, |
| 192 | ∃ temporal : PressureStream.Plane, |
| 193 | c.operators = graphOperators G.gauge.radial c.operators.epsilon c.operators.fastCoefficient |
| 194 | axial slowTime temporal := by |
| 195 | refine ⟨(G.time,0), G.temporal, ?_⟩ |
| 196 | rw [D.operators_eq, D.axial_eq] |
| 197 | rfl |
| 198 | |
| 199 | theorem time_nonneg : 0 ≤ h := by |
| 200 | rw [D.time] |
| 201 | exact D.aliasData.h_pos.le |
| 202 | |
| 203 | theorem slow_scale : ∀ n, ChartScales.S n ≤ G.slow n := by |
| 204 | have hs : G.slow = D.aliasData.slow := congrArg (fun s : StripData Point => s.slow) D.strip |
| 205 | rw [hs] |
| 206 | exact D.aliasData.slow_scale |
| 207 | |
| 208 | theorem index_lower : ∀ n, ChartScales.nativeIndex h n ≤ index n + D.aliasData.gap := by |
| 209 | simpa only [D.time, D.index_eq] using D.aliasData.index_lower |
| 210 | |
| 211 | theorem compatible {ι : Type} (particular : ι → ParticularParameters CycleSlow) |
| 212 | (signed : ι → PeriodizedSignedParameters Point TorusInverse.Frequency) : |
| 213 | ActualCycleExcluded.Compatible D.aliasData |
| 214 | (CycleParameters.ofGeometry G h index axial particular signed r) c := by |
| 215 | refine ⟨D.gauge, D.strip, D.time, D.index_eq, ?_, D.temporal⟩ |
| 216 | funext n |
| 217 | simpa only [D.time, D.index_eq] using D.fast n |
| 218 | |
| 219 | end StaticData |
| 220 | |
| 221 | private theorem primitive_region_transport {coord coord' a b : ℝ} |
| 222 | {U : SlowRegion coord} {V : SlowRegion coord'} {c : Context Point} {u : State Point} |
| 223 | (hc : coord = coord') (hU : HEq U V) |
| 224 | (H : MeanStateRegularity.PrimitiveData U a b c u) : |
| 225 | MeanStateRegularity.PrimitiveData V a b c u := by |
| 226 | subst coord' |
| 227 | have hUV := eq_of_heq hU |
| 228 | subst V |
| 229 | exact H |
| 230 | |
| 231 | private theorem moving_region_transport {coord coord' a b : ℝ} |
| 232 | {U : SlowRegion coord} {V : SlowRegion coord'} {f : MeanIncrementBounds.Field Point} |
| 233 | (hc : coord = coord') (hU : HEq U V) |
| 234 | (H : GaugeMomentBalances.MovingField U a b f) : |
| 235 | GaugeMomentBalances.MovingField V a b f := by |
| 236 | subst coord' |
| 237 | have hUV := eq_of_heq hU |
| 238 | subst V |
| 239 | exact H |
| 240 | |
| 241 | private theorem region_carrier_eq {coord coord' : ℝ} {U : SlowRegion coord} {V : SlowRegion coord'} |
| 242 | (hc : coord = coord') (hU : HEq U V) : U.carrier = V.carrier := by |
| 243 | subst coord' |
| 244 | have hUV := eq_of_heq hU |
| 245 | subst V |
| 246 | rfl |
| 247 | |
| 248 | section Assemble |
| 249 | |
| 250 | variable {ι : Type} (G : SignedMeanGain.Geometry) |
| 251 | (h : ℝ) (index : ℕ → ℕ) (axial : PressureStream.Plane × PressureStream.Plane) |
| 252 | (particular : ι → ParticularParameters CycleSlow) |
| 253 | (signed : ι → PeriodizedSignedParameters Point TorusInverse.Frequency) |
| 254 | (r : RankData PressureStream.Plane) (c : Context Point) (x : CycleState ι) |
| 255 | (primary : ι → HarmonicBlock Point) (P : ι → ℕ → Point → ℝ) |
| 256 | (S : ι → ℕ → Set Point) {σ κ : ℝ} |
| 257 | |
| 258 | local notation "p" => CycleParameters.ofGeometry G h index axial particular signed r |
| 259 | local notation "v" => x.coefficients |
| 260 | local notation "u" => x.state |
| 261 | |
| 262 | /-- Assemble the invariant after the quantitative mean calculation. |
| 263 | The public preservation theorem below derives those mean inputs from |
| 264 | the same finite waves and measured cross defects. -/ |
| 265 | private theorem assemble |
| 266 | (H : CycleAnalyticInvariant G c primary P S σ x) |
| 267 | (W : WaveData G p v c u P S σ κ) |
| 268 | (hσ : 1/5 ≤ σ) (hκsmall : κ ≤ 1/100000) |
| 269 | (ho : OperatorBounds G.strip c.operators κ) (hb : BaseBounds G.strip c.base) |
| 270 | (hR : ∀ z ∈ G.strip.domain, 0 < c.operators.radius z) |
| 271 | (hS : ∀ l n, IsClosed (S l n)) {C : ℕ → ι → Set Point} |
| 272 | (hSC : ∀ l n, S l n ⊆ C n l) |
| 273 | (hNormal : ∀ i, LocalizedWaveBounds.LocalUnweighted G.strip C 0 |
| 274 | (fun n l z => HarmonicMeanInteraction.slowNormal c ho hR ((v).blocks l).phase n z i)) |
| 275 | (hFreq : LocalizedWaveBounds.LocalUnweighted G.strip C (-(1/2)) |
| 276 | (fun n l _ => ((v).blocks l).frequency n)) |
| 277 | (hAng : LocalizedWaveBounds.LocalUnweighted G.strip C (-(1/2)) |
| 278 | (fun n l _ => (((v).blocks l).angularFrequency n : ℝ))) |
| 279 | (hP0 : ∀ l n z, z ∈ G.strip.domain → 0 ≤ P l n z) |
| 280 | (hP1 : ∀ l n z, z ∈ G.strip.domain → P l n z ≤ 1) |
| 281 | (hg : LocalRankDefect.RankGeometry G.gauge r G.region.carrier c u) |
| 282 | (hrlength : ∀ n z, z ∈ G.region.carrier → r.length n z = qLength G.coord z) |
| 283 | (hrleft : G.patch.a ≤ r.inner) (hrright : r.outer ≤ G.patch.b) |
| 284 | (hgraph : ∃ slowTime : PressureStream.Plane × PressureStream.Plane, |
| 285 | ∃ temporal : PressureStream.Plane, |
| 286 | c.operators = graphOperators G.gauge.radial c.operators.epsilon c.operators.fastCoefficient |
| 287 | axial slowTime temporal) |
| 288 | (hCovP : SignedMeanGain.TensorClass G.strip (1+σ) |
| 289 | (SignedMeanGain.covarianceIncrement (u).oscillation ((p).particularVelocity v c u))) |
| 290 | (hCovS : SignedMeanGain.TensorClass G.strip (1+σ-κ) |
| 291 | (SignedMeanGain.covarianceIncrement ((p).afterParticular v c u).oscillation ((p).signedVelocity v c u))) |
| 292 | (hTemporal : IncrementBounds G.strip (1+σ-2*κ) ((p).temporalIncrement v c u)) |
| 293 | (hRank : IncrementBounds G.strip (1+σ-2*κ) ((p).rankIncrement v c u)) |
| 294 | (hCumulative : CorrectionState.CumulativeBounds G.strip ((p).next v c u)) |
| 295 | (hDebt : DefectBounds G.slowStrip (σ+1/10) c ((p).next v c u)) |
| 296 | (hTheta : MeanClass G.strip (1+(σ+1/10)) (((p).next v c u).thetaResidual c)) |
| 297 | (hAxial : MeanClass G.strip (1+(σ+1/10)) |
| 298 | (((p).next v c u).axialResidual c - fun n z => |
| 299 | temporalAliasState G.gauge h index c ((p).afterSigned v c u) n (z,0) 2)) |
| 300 | (hAxis : ∀ β, MeanClass G.strip β ((p).nextAxisymmetricAlias v c u x.axisymmetricAlias)) : |
| 301 | CycleAnalyticInvariant G c primary P S (σ+1/10) (CycleState.step p c x) := by |
| 302 | have hsigned := W.signed (show κ ≤ 1/2 by linarith) |
| 303 | have hzpart n l z (hz : z ∈ G.strip.domain) (hn : z ∉ C n l) i j hj := |
| 304 | W.particular_zero_germ hS l n (G.strip_subset hz) (fun hmem => hn (hSC l n hmem)) i j hj |
| 305 | have hzsigned n l z (hz : z ∈ G.strip.domain) (hn : z ∉ C n l) i j hj := |
| 306 | W.signed_zero_germ hS l n (G.strip_subset hz) (fun hmem => hn (hSC l n hmem)) i j hj |
| 307 | have hNewSupport := (p).next_inputSupport v c u H.inputSupport W.particularSupport W.signedSupport |
| 308 | have hNewReal := (p).next_realCoefficients v c u H.realCoefficients |
| 309 | have hzfinal n l z (hz : z ∈ G.strip.domain) (hn : z ∉ C n l) i j hj := |
| 310 | velocity_zero_germ_of_inputSupport G.domain_open hS hNewSupport hNewReal l n |
| 311 | (G.strip_subset hz) (fun hmem => hn (hSC l n hmem)) i j hj |
| 312 | obtain ⟨hAfter, hSolenoidal⟩ := (p).waveStages_residual_gain v c u hσ hκsmall ho hR hb |
| 313 | H.cumulative.velocity W.carrier H.wave W.particular hsigned |
| 314 | (fun l n j => (H.pressureCoefficientSmooth l n j).mono G.strip_subset) |
| 315 | (fun l n j => (W.particularPressureSmooth l n j).mono G.strip_subset) |
| 316 | (fun l n j => (W.signedPressureSmooth l n j).mono G.strip_subset) |
| 317 | H.zeroVelocity H.bands.velocityPressure H.phase H.frequency H.angular H.solenoidal |
| 318 | W.particularSolenoidal W.signedSolenoidal hNormal hFreq hAng hzpart hzsigned hP0 hP1 |
| 319 | W.particularLinear W.signedLinear |
| 320 | obtain ⟨hWave, hDifference⟩ := (p).finalBlock_uniform_cumulative v c u primary hσ hκsmall |
| 321 | H.wave H.difference W.particular hsigned |
| 322 | have hResidual := (p).meanStages_residual_gain v c u hκsmall ho hR hb.smooth |
| 323 | H.cumulative.velocity.smooth hTemporal hRank (fun i j _ => hWave i j) |
| 324 | hNormal hFreq hAng hzfinal hAfter |
| 325 | have hPressure := (p).finalBlock_pressure_cumulative v c u hσ hκsmall |
| 326 | H.pressure W.particularPressure W.signedPressure |
| 327 | obtain ⟨hXP, hXS⟩ := W.covariance_moving H.oscillationSmooth H.oscillationPeriodic |
| 328 | have hPrimitive : MeanStateRegularity.PrimitiveData G.region G.gauge.radial.inner |
| 329 | G.gauge.radial.outer c u := by |
| 330 | simpa only [G.inner_eq, G.outer_eq] using H.primitives |
| 331 | have hXPg : ∀ i j, GaugeMomentBalances.MovingField G.region G.gauge.radial.inner |
| 332 | G.gauge.radial.outer (SignedMeanGain.covarianceIncrement (u).oscillation |
| 333 | ((p).particularVelocity v c u) i j) := by |
| 334 | simpa only [G.inner_eq, G.outer_eq] using hXP |
| 335 | have hXSg : ∀ i j, GaugeMomentBalances.MovingField G.region G.gauge.radial.inner |
| 336 | G.gauge.radial.outer (SignedMeanGain.covarianceIncrement ((p).afterParticular v c u).oscillation |
| 337 | ((p).signedVelocity v c u) i j) := by |
| 338 | simpa only [G.inner_eq, G.outer_eq] using hXS |
| 339 | have hpr := (p).next_primitive v c u G.region G.inner_pos G.exponent_pos G.length_eq |
| 340 | hPrimitive hXPg hXSg hg |
| 341 | have hmass := (p).next_zeroMassesOn v c u G.region G.inner_pos G.exponent_pos G.length_eq |
| 342 | hPrimitive hXPg hXSg hg hrlength |
| 343 | (by change G.gauge.radial.inner ≤ r.inner; rw [G.inner_eq]; exact hrleft) |
| 344 | (by change r.outer ≤ G.gauge.radial.outer; rw [G.outer_eq]; exact hrright) H.masses |
| 345 | have hStep : CycleMeanEquation.StepData G.region p v c u := { |
| 346 | inner_pos := G.inner_pos |
| 347 | exponent_pos := G.exponent_pos |
| 348 | length := G.length_eq |
| 349 | domain := fun z hz => ⟨G.strip_radius_pos hz, G.strip_subset hz⟩ |
| 350 | primitive := hPrimitive |
| 351 | particular_covariance := hXPg |
| 352 | signed_covariance := hXSg |
| 353 | rank := hg |
| 354 | operators := hgraph |
| 355 | particular_regular := fun l => { |
| 356 | phase := H.phase l |
| 357 | velocity := fun n i j => (W.particularSmooth l n i j).mono G.strip_subset |
| 358 | pressure := fun n j => (W.particularPressureSmooth l n j).mono G.strip_subset } |
| 359 | signed_regular := fun l => { |
| 360 | phase := by simp only [(W.carrier l).phase]; exact H.phase l |
| 361 | velocity := fun n i j => (W.signedSmooth l n i j).mono G.strip_subset |
| 362 | pressure := fun n j => (W.signedPressureSmooth l n j).mono G.strip_subset } |
| 363 | particular_solenoidal := W.particularSolenoidal |
| 364 | signed_solenoidal := W.signedSolenoidal |
| 365 | angular := H.angular |
| 366 | signed_carrier := W.carrier } |
| 367 | have hAlias := H.representation.alias_eq_lift H.aliasCoefficients |
| 368 | have hAliasContinuous : AngularContinuous (u).errors.aliasError := by |
| 369 | rw [hAlias] |
| 370 | intro n z i |
| 371 | change Continuous (fun _ : ℝ => x.axisymmetricAlias n z i) |
| 372 | exact continuous_const |
| 373 | have hAliasMean : angularMeanVector (u).errors.aliasError = x.axisymmetricAlias := by |
| 374 | rw [hAlias] |
| 375 | funext n z i |
| 376 | exact congrFun (congrFun (angularAverage_axisymmetric (fun n z => x.axisymmetricAlias n z i)) n) z |
| 377 | have hGaussianMeans (i : Fin 3) : MeanClass G.strip (1+(σ+1/10)) |
| 378 | (fun n z => angularMeanVector (u).errors.gaussian n z i) := by |
| 379 | rw [H.gaussianMean] |
| 380 | exact MemClass.zero (fun _ z hz => G.strip.zeta_nonneg z hz) |
| 381 | have hAliasMeans (i : Fin 3) : MeanClass G.strip (1+(σ+1/10)) |
| 382 | (fun n z => angularMeanVector (u).errors.aliasError n z i) := by |
| 383 | rw [hAliasMean] |
| 384 | exact (H.axisFlat _).map (ContinuousLinearMap.proj i) |
| 385 | have hMean := (p).next_meanResidualBounds v c u H.angular W.carrier |
| 386 | (fun n z hz i => H.baseAngular n z (G.strip_subset hz) i) |
| 387 | H.representation.gaussian_angularContinuous hAliasContinuous hTheta hAxial |
| 388 | (hGaussianMeans 1) (hGaussianMeans 2) (hAliasMeans 1) (hAliasMeans 2) |
| 389 | refine { |
| 390 | representation := (p).next_representation v c u H.representation W.carrier |
| 391 | bands := (p).next_coefficient_bands v c u H.bands |
| 392 | realCoefficients := hNewReal |
| 393 | inputSupport := hNewSupport |
| 394 | sourceBand := (p).next_residual_band v c u H.bands |
| 395 | zeroVelocity := (p).finalBlock_zero v c u H.zeroVelocity |
| 396 | zeroPressure := (p).finalBlock_pressure_zero v c u H.zeroPressure |
| 397 | carrier := fun l => ⟨(H.carrier l).frequency, (H.carrier l).phase, (H.carrier l).angular⟩ |
| 398 | phase := H.phase |
| 399 | frequency := H.frequency |
| 400 | angular := H.angular |
| 401 | coefficientSmooth := fun l n i j => |
| 402 | ((H.coefficientSmooth l n i j).add (W.particularSmooth l n i j)).add (W.signedSmooth l n i j) |
| 403 | pressureCoefficientSmooth := fun l n j => |
| 404 | ((H.pressureCoefficientSmooth l n j).add (W.particularPressureSmooth l n j)).add |
| 405 | (W.signedPressureSmooth l n j) |
| 406 | gaussianCoefficientSmooth := fun l n i j => |
| 407 | ((H.gaussianCoefficientSmooth l n i j).add (W.particularGaussianSmooth l n i j)).add |
| 408 | (W.signedGaussianSmooth l n i j) |
| 409 | solenoidal := hSolenoidal |
| 410 | wave := hWave |
| 411 | pressure := hPressure |
| 412 | difference := hDifference |
| 413 | cumulative := hCumulative |
| 414 | covariance := (p).next_covariance_mem v c u (by linarith : (1:ℝ) ≤ 1+σ) |
| 415 | (by linarith : (1:ℝ) ≤ 1+σ-κ) H.covariance hCovP hCovS |
| 416 | residual := hResidual |
| 417 | mean := hMean |
| 418 | meanHypotheses := hStep.next_meanHypotheses H.meanHypotheses |
| 419 | debt := hDebt |
| 420 | primitives := ?_ |
| 421 | reconstructed := hpr.2 |
| 422 | masses := hmass |
| 423 | oscillationSmooth := (p).next_oscillation_smooth v c u H.oscillationSmooth W.particularField W.signedField |
| 424 | oscillatoryPressureSmooth := ?_ |
| 425 | oscillationPeriodic := (p).next_oscillation_periodic v c u H.oscillationPeriodic |
| 426 | W.particularPeriodic W.signedPeriodic |
| 427 | oscillationSupport := (p).next_oscillation_support v c u H.oscillationSupport |
| 428 | W.particularRadialSupport W.signedRadialSupport |
| 429 | gaussianFlat := fun β => (p).next_gaussian_mem v c u (H.gaussianFlat β) |
| 430 | (W.particularGaussian β) (W.signedGaussian β) |
| 431 | gaussianMean := ?_ |
| 432 | aliasCoefficients := H.aliasCoefficients |
| 433 | axisFlat := hAxis |
| 434 | baseAngular := ?_ } |
| 435 | · have hpn := hpr.1 |
| 436 | change MeanStateRegularity.PrimitiveData G.region G.gauge.radial.inner G.gauge.radial.outer |
| 437 | c ((p).next v c u) at hpn |
| 438 | simp only [G.inner_eq, G.outer_eq] at hpn |
| 439 | exact hpn |
| 440 | · intro n |
| 441 | change ContDiffOn ℝ ∞ (((p).next v c u).oscillatoryPressure n) _ |
| 442 | rw [(p).next_oscillatoryPressure] |
| 443 | exact ((H.oscillatoryPressureSmooth n).add (W.particularPressureField n)).add (W.signedPressureField n) |
| 444 | · exact ((p).next_gaussian_angularMean v c u H.angular W.carrier |
| 445 | H.representation.gaussian_angularContinuous).trans H.gaussianMean |
| 446 | · intro n z hz i |
| 447 | change Continuous (fun θ => ((p).next v c u).errors.base n (z,θ) i) |
| 448 | rw [(p).next_base_error] |
| 449 | exact H.baseAngular n z hz i |
| 450 | |
| 451 | end Assemble |
| 452 | |
| 453 | section Preservation |
| 454 | |
| 455 | variable {ι : Type} (G : SignedMeanGain.Geometry) |
| 456 | (h : ℝ) (index : ℕ → ℕ) (axial : PressureStream.Plane × PressureStream.Plane) |
| 457 | (particular : ι → ParticularParameters CycleSlow) |
| 458 | (signed : ι → PeriodizedSignedParameters Point TorusInverse.Frequency) |
| 459 | (r : RankData PressureStream.Plane) (c : Context Point) (x : CycleState ι) |
| 460 | (primary : ι → HarmonicBlock Point) (P : ι → ℕ → Point → ℝ) |
| 461 | (S : ι → ℕ → Set Point) {σ κ : ℝ} |
| 462 | |
| 463 | local notation "p" => CycleParameters.ofGeometry G h index axial particular signed r |
| 464 | local notation "v" => x.coefficients |
| 465 | local notation "u" => x.state |
| 466 | |
| 467 | /-- The remaining inputs to one cycle are on its actual native waves and |
| 468 | their fixed geometric assembly. The only leading-covariance identity is |
| 469 | on a fixed tail; the finite head is retained by the proof. -/ |
| 470 | structure StepData (D : StaticData G h index axial r c κ) |
| 471 | (H : CycleAnalyticInvariant G c primary P S σ x) (hσ : 1/5 ≤ σ) where |
| 472 | waves : WaveData G p v c u P S σ κ |
| 473 | primaryBand : ℕ |
| 474 | primary_band : ∀ l, (primary l).BandLimited primaryBand |
| 475 | envelope_nonneg : ∀ l n z, z ∈ G.strip.domain → 0 ≤ P l n z |
| 476 | envelope_le_one : ∀ l n z, z ∈ G.strip.domain → P l n z ≤ 1 |
| 477 | cells : ℕ → ι → Set Point |
| 478 | carrier_closed : ∀ l n, IsClosed (S l n) |
| 479 | carrier_cells : ∀ l n, S l n ⊆ cells n l |
| 480 | normal : ∀ i, LocalizedWaveBounds.LocalUnweighted G.strip cells 0 |
| 481 | (fun n l z => HarmonicMeanInteraction.slowNormal c D.operators |
| 482 | (fun _ hz => D.radius_pos hz) ((v).blocks l).phase n z i) |
| 483 | frequency : LocalizedWaveBounds.LocalUnweighted G.strip cells (-(1/2)) |
| 484 | (fun n l _ => ((v).blocks l).frequency n) |
| 485 | angular : LocalizedWaveBounds.LocalUnweighted G.strip cells (-(1/2)) |
| 486 | (fun n l _ => (((v).blocks l).angularFrequency n : ℝ)) |
| 487 | assembly : SignedMeanGain.Assembly |
| 488 | ((p).signedFamily v c u primary P hσ primaryBand primary_band H.bands H.carrier waves.carrier |
| 489 | H.wave H.difference waves.particular waves.tangent waves.curl |
| 490 | envelope_nonneg envelope_le_one H.angular) |
| 491 | labels : assembly.labels = (v).labels |
| 492 | old_support : LabelSumBounds.SupportedOscillations assembly.slots assembly.label assembly.window |
| 493 | assembly.auxiliary G.strip.domain (fun l => ((v).blocks l).oscillation) |
| 494 | particular_support : LabelSumBounds.SupportedOscillations assembly.slots assembly.label assembly.window |
| 495 | assembly.auxiliary G.strip.domain (fun l => ((p).particularBlock v c u l).oscillation) |
| 496 | primary_smooth : WaveStateRegularity.AngularSmooth G.domain (SignedMeanGain.primaryField _ assembly) |
| 497 | primary_periodic : OscillationPeriodic G.region.carrier (SignedMeanGain.primaryField _ assembly) |
| 498 | rank_geometry : LocalRankDefect.RankGeometry G.gauge r G.region.carrier c u |
| 499 | tailStart : ℕ |
| 500 | cross_tail : ∀ n, tailStart ≤ n → ∀ z ∈ G.strip.domain, ∀ i : Fin 2, |
| 501 | StateMomentBalances.meanBar (SignedMeanGain.crossTensor _ assembly 0 i.succ) n z = |
| 502 | LocalSignedRequest.requestedStress G.patch G.coord c ((p).afterParticular v c u) n z i |
| 503 | |
| 504 | /-- In addition to preservation, keep the actual increments needed by |
| 505 | the physical-stage estimates. -/ |
| 506 | structure StepResult : Prop where |
| 507 | invariant : CycleAnalyticInvariant G c primary P S (σ+1/10) (CycleState.step p c x) |
| 508 | temporal : IncrementBounds G.strip (1+σ-2*κ) ((p).temporalIncrement v c u) |
| 509 | rank : IncrementBounds G.strip (1+σ-2*κ) ((p).rankIncrement v c u) |
| 510 | pressure : MeanClass G.strip (1+σ-2*κ) (((p).next v c u).pressure - (u).pressure) |
| 511 | velocityCoefficients : ∀ i j, LabelSumBounds.UniformWaveClass G.strip P (1/2+σ-κ) |
| 512 | (fun l n z => ((p).finalBlock v c u l).velocity n i j z - ((v).blocks l).velocity n i j z) |
| 513 | pressureCoefficients : ∀ j, LabelSumBounds.UniformWaveClass G.strip P (1+σ-κ) |
| 514 | (fun l n z => ((p).finalBlock v c u l).pressure n j z - ((v).blocks l).pressure n j z) |
| 515 | afterSignedTheta : MeanClass G.strip (1+σ-2*κ) (((p).afterSigned v c u).thetaResidual c) |
| 516 | afterSignedAxial : MeanClass G.strip (1+σ-2*κ) (((p).afterSigned v c u).axialResidual c) |
| 517 | |
| 518 | /-- The complete analytic step, with actual covariance estimates, |
| 519 | finite-head cross defects, temporal/rank reconstruction, and all error |
| 520 | bookkeeping derived in the proof. -/ |
| 521 | theorem step (D : StaticData G h index axial r c κ) |
| 522 | (H : CycleAnalyticInvariant G c primary P S σ x) |
| 523 | (hσ : 1/5 ≤ σ) (hκsmall : κ ≤ 1/100000) |
| 524 | (d : StepData G h index axial particular signed r c x primary P S D H hσ) : |
| 525 | StepResult G h index axial particular signed r c x primary P S (σ := σ) (κ := κ) := by |
| 526 | let W := d.waves |
| 527 | let F := (p).signedFamily v c u primary P hσ d.primaryBand d.primary_band H.bands H.carrier |
| 528 | W.carrier H.wave H.difference W.particular W.tangent W.curl d.envelope_nonneg d.envelope_le_one H.angular |
| 529 | let a : SignedMeanGain.Assembly F := d.assembly |
| 530 | have halabels : a.labels = (v).labels := d.labels |
| 531 | have hκ : 0 ≤ κ := D.operators.kappa_nonneg |
| 532 | have hfixed : (reconstructState G.gauge c u).pressure = (u).pressure := |
| 533 | congrArg (fun z : State Point => z.pressure) H.reconstructed |
| 534 | have hrep₀ : (u).oscillation = LabelSumBounds.fieldSum a.labels (fun l => ((v).blocks l).oscillation) := by |
| 535 | rw [halabels] |
| 536 | funext n z i |
| 537 | exact H.representation.velocity n z i |
| 538 | have hCov₀ := assembledCovarianceIncrement_mem (show (1:ℝ)/2 ≤ 1/2+σ by linarith) |
| 539 | a.labels a.label a.injective a.level a.window a.window_continuous a.auxiliary |
| 540 | (v).blocks ((p).particularBlock v c u) (v).residualBand H.bands.velocityPressure |
| 541 | ((p).particularBlock_band v c u) (fun _ => ⟨rfl,rfl,rfl⟩) |
| 542 | (fun i j _ => H.wave i j) (fun i j _ => W.particular i j) |
| 543 | H.zeroVelocity ((p).particularBlock_zero v c u) d.envelope_nonneg d.envelope_le_one H.angular |
| 544 | d.old_support d.particular_support u hrep₀ |
| 545 | have hCovP : SignedMeanGain.TensorClass G.strip (1+σ) |
| 546 | (SignedMeanGain.covarianceIncrement (u).oscillation ((p).particularVelocity v c u)) := by |
| 547 | simp only [halabels, CycleParameters.particularVelocity, |
| 548 | show (1:ℝ)/2+(1/2+σ) = 1+σ by ring] at hCov₀ ⊢ |
| 549 | exact hCov₀ |
| 550 | have hrep₁ : ((p).afterParticular v c u).oscillation = SignedMeanGain.oldField F a := by |
| 551 | simpa only [SignedMeanGain.oldField, halabels, F, CycleParameters.signedFamily] using |
| 552 | (p).beforeSignedBlock_represents v c u H.representation |
| 553 | have hw₂ : SignedMeanGain.tangentField F a + SignedMeanGain.curlField F a = |
| 554 | (p).signedVelocity v c u := by |
| 555 | simpa only [SignedMeanGain.tangentField, SignedMeanGain.curlField, F, |
| 556 | CycleParameters.signedFamily, halabels] using ((p).signedVelocity_split v c u).symm |
| 557 | have hCovS : SignedMeanGain.TensorClass G.strip (1+σ-κ) |
| 558 | (SignedMeanGain.covarianceIncrement ((p).afterParticular v c u).oscillation |
| 559 | ((p).signedVelocity v c u)) := by |
| 560 | have hh := (SignedMeanGain.signed_tensor_bounds hσ hκsmall F a).1 |
| 561 | rwa [SignedMeanGain.incrementTensor, ← hrep₁, hw₂] at hh |
| 562 | obtain ⟨hXP, hXS⟩ := W.covariance_moving H.oscillationSmooth H.oscillationPeriodic |
| 563 | have hXSFamily : ∀ i j, SignedMeanGain.MovingField G (SignedMeanGain.incrementTensor F a i j) := by |
| 564 | intro i j |
| 565 | rw [SignedMeanGain.incrementTensor, ← hrep₁, hw₂] |
| 566 | exact hXS i j |
| 567 | have hTangent : WaveStateRegularity.AngularSmooth G.domain (SignedMeanGain.tangentField F a) := by |
| 568 | simpa only [SignedMeanGain.tangentField, F, CycleParameters.signedFamily, halabels] using W.tangentField |
| 569 | have hTangentPer : OscillationPeriodic G.region.carrier (SignedMeanGain.tangentField F a) := by |
| 570 | simpa only [SignedMeanGain.tangentField, F, CycleParameters.signedFamily, halabels] using W.tangentPeriodic |
| 571 | have hTangentSupport : WaveStateRegularity.WaveSupport G.region G.patch.a G.patch.b |
| 572 | (SignedMeanGain.tangentField F a) := by |
| 573 | simpa only [SignedMeanGain.tangentField, F, CycleParameters.signedFamily, halabels] using W.tangentRadialSupport |
| 574 | have hCross : ∀ i j, SignedMeanGain.MovingField G (SignedMeanGain.crossTensor F a i j) := |
| 575 | symmetricCovariance_moving G.region d.primary_smooth hTangent hTangentSupport d.primary_periodic hTangentPer |
| 576 | obtain ⟨hθ, hz⟩ := H.raw_mean_bounds |
| 577 | obtain ⟨_, _, hθ₁, hz₁, _, _⟩ := waveStage_mean_gain G c u ((p).particularVelocity v c u) |
| 578 | ((p).particularPressure v c u) ((p).particularGaussian v c u) hσ hκ hκsmall H.primitives |
| 579 | D.operators D.base H.cumulative hfixed hθ hz H.debt hXP hCovP |
| 580 | have H₁ := H.primitives.waveStage G.gauge ((p).particularVelocity v c u) |
| 581 | ((p).particularPressure v c u) ((p).particularGaussian v c u) hXP |
| 582 | have hDefects := SignedCrossDefectClass.residual_defects_all_exponents_of_primitive G c |
| 583 | ((p).afterParticular v c u) F a hCross H₁ rfl hθ₁ hz₁ d.tailStart d.cross_tail |
| 584 | have H₂ := H₁.waveStage G.gauge ((p).signedVelocity v c u) |
| 585 | ((p).signedPressure v c u) ((p).signedGaussian v c u) hXS |
| 586 | have H₂g : MeanStateRegularity.PrimitiveData G.region G.gauge.radial.inner G.gauge.radial.outer |
| 587 | c ((p).afterSigned v c u) := by |
| 588 | simp only [G.inner_eq, G.outer_eq] at H₂ ⊢ |
| 589 | exact H₂ |
| 590 | have HT := MeanStageRegularity.temporalStage_primitive H₂g G.inner_pos G.exponent_pos G.length_eq |
| 591 | rfl h index axial |
| 592 | have HG := MeanStageRegularity.rankGeometry_for_state HT G.inner_pos G.gauge.radial.inner_lt_outer d.rank_geometry |
| 593 | have hMean := CrossBasedMeanComposition.CycleParameters.mean_gain_from_waves_of_cross_defects |
| 594 | G h index axial particular signed r v c u primary P hσ d.primaryBand d.primary_band H.bands |
| 595 | H.carrier W.carrier H.wave H.difference W.particular W.tangent W.curl |
| 596 | d.envelope_nonneg d.envelope_le_one H.angular a halabels H.representation H.zeroVelocity |
| 597 | ((p).particularBlock_zero v c u) d.old_support d.particular_support hκ hκsmall H.primitives |
| 598 | D.operators_eq (by simpa only [D.operators_eq] using D.operators) D.base H.cumulative hfixed |
| 599 | (fun n z hz => (H.masses n z hz).1) (fun n z hz => (H.masses n z hz).2) |
| 600 | hθ hz H.debt hXP hXSFamily hCross (hDefects (1+σ+17/100+κ)).1 (hDefects (1+σ+17/100+κ)).2 |
| 601 | D.time_nonneg D.slow_scale D.aliasData.gap D.index_lower D.temporal D.fast |
| 602 | D.angular_slow D.axial_slow HG D.rankParameters D.rankCoefficient_ne D.rank_left D.rank_right |
| 603 | obtain ⟨hSθ, hSz, _, hT, hRank, hPressure, hCumulative, hDebt, hTheta, hAxial⟩ := hMean |
| 604 | have HAlias : MeanStateRegularity.PrimitiveData D.aliasData.region D.aliasData.inner D.aliasData.outer c u := by |
| 605 | simpa only [D.inner, D.outer] using primitive_region_transport D.coord D.region H.primitives |
| 606 | have hXPAlias : ∀ i j, GaugeMomentBalances.MovingField D.aliasData.region D.aliasData.inner D.aliasData.outer |
| 607 | (SignedMeanGain.covarianceIncrement (u).oscillation ((p).particularVelocity v c u) i j) := by |
| 608 | intro i j |
| 609 | simpa only [D.inner, D.outer] using moving_region_transport D.coord D.region (hXP i j) |
| 610 | have hXSAlias : ∀ i j, GaugeMomentBalances.MovingField D.aliasData.region D.aliasData.inner D.aliasData.outer |
| 611 | (SignedMeanGain.covarianceIncrement ((p).afterParticular v c u).oscillation ((p).signedVelocity v c u) i j) := by |
| 612 | intro i j |
| 613 | simpa only [D.inner, D.outer] using moving_region_transport D.coord D.region (hXS i j) |
| 614 | have hRankAlias : LocalRankDefect.RankGeometry G.gauge r D.aliasData.region.carrier c u := by |
| 615 | simpa only [region_carrier_eq D.coord D.region] using d.rank_geometry |
| 616 | have hAxis := ActualCycleExcluded.nextAxisymmetricAlias_all_powers D.aliasData p v c u |
| 617 | (D.compatible particular signed) HAlias hXPAlias hXSAlias hRankAlias D.operators D.base |
| 618 | H.cumulative hCumulative H.covariance |
| 619 | (fun i j => (hCovP i j).mono_exponent (show (1:ℝ) ≤ 1+σ by linarith)) |
| 620 | (fun i j => (hCovS i j).mono_exponent (show (1:ℝ) ≤ 1+σ-κ by linarith)) |
| 621 | hSz x.axisymmetricAlias H.axisFlat |
| 622 | have hFull := assemble G h index axial particular signed r c x primary P S H W hσ hκsmall |
| 623 | D.operators D.base (fun _ hz => D.radius_pos hz) d.carrier_closed d.carrier_cells |
| 624 | d.normal d.frequency d.angular d.envelope_nonneg d.envelope_le_one d.rank_geometry |
| 625 | D.rankParameters.length D.rank_left.le D.rank_right.le D.graph |
| 626 | hCovP hCovS hT hRank hCumulative hDebt hTheta hAxial hAxis |
| 627 | have hInc := (p).finalBlock_increment_bounds v c u hκ W.particular (W.signed (by linarith)) |
| 628 | W.particularPressure W.signedPressure |
| 629 | exact ⟨hFull, hT, hRank, hPressure, hInc.1, hInc.2, hSθ, hSz⟩ |
| 630 | |
| 631 | /-- Projection of the complete step estimate to the stored invariant. -/ |
| 632 | theorem step_preserves (D : StaticData G h index axial r c κ) |
| 633 | (H : CycleAnalyticInvariant G c primary P S σ x) |
| 634 | (hσ : 1/5 ≤ σ) (hκsmall : κ ≤ 1/100000) |
| 635 | (d : StepData G h index axial particular signed r c x primary P S D H hσ) : |
| 636 | CycleAnalyticInvariant G c primary P S (σ+1/10) (CycleState.step p c x) := |
| 637 | (step G h index axial particular signed r c x primary P S D H hσ hκsmall d).invariant |
| 638 | |
| 639 | end Preservation |
| 640 | |
| 641 | section Iteration |
| 642 | |
| 643 | variable {ι : Type} (G : SignedMeanGain.Geometry) |
| 644 | (h : ℝ) (index : ℕ → ℕ) (axial : PressureStream.Plane × PressureStream.Plane) |
| 645 | (particular : ι → ParticularParameters CycleSlow) |
| 646 | (signed : ι → PeriodizedSignedParameters Point TorusInverse.Frequency) |
| 647 | (r : RankData PressureStream.Plane) (c : Context Point) (seed : CycleState ι) |
| 648 | (primary : ι → HarmonicBlock Point) (P : ι → ℕ → Point → ℝ) |
| 649 | (S : ι → ℕ → Set Point) {κ : ℝ} |
| 650 | |
| 651 | local notation "p" => CycleParameters.ofGeometry G h index axial particular signed r |
| 652 | local notation "state" => CycleState.iterate (fun _ => p) c seed |
| 653 | |
| 654 | /-- All stages use the same primitive parameters, strip, gauge, carriers, |
| 655 | and comparison primary. The supplied data construct each actual wave; |
| 656 | they do not assume preservation of the invariant. -/ |
| 657 | theorem iterate_invariant (D : StaticData G h index axial r c κ) |
| 658 | (σ : ℕ → ℝ) (hσ : ∀ n, 1/5 ≤ σ n) (hσstep : ∀ n, σ (n+1) = σ n + 1/10) |
| 659 | (hκsmall : κ ≤ 1/100000) |
| 660 | (hseed : CycleAnalyticInvariant G c primary P S (σ 0) seed) |
| 661 | (data : ∀ n (H : CycleAnalyticInvariant G c primary P S (σ n) (state n)), |
| 662 | StepData G h index axial particular signed r c (state n) primary P S D H (hσ n)) : |
| 663 | ∀ n, CycleAnalyticInvariant G c primary P S (σ n) (state n) := by |
| 664 | intro n |
| 665 | induction n with |
| 666 | | zero => exact hseed |
| 667 | | succ n ih => |
| 668 | have hn := step_preserves G h index axial particular signed r c (state n) primary P S |
| 669 | D ih (hσ n) hκsmall (data n ih) |
| 670 | simpa only [CycleState.iterate_succ, hσstep] using hn |
| 671 | |
| 672 | /-- The same induction also retains the actual increment estimates for |
| 673 | each positive physical stage. -/ |
| 674 | theorem iterate_results (D : StaticData G h index axial r c κ) |
| 675 | (σ : ℕ → ℝ) (hσ : ∀ n, 1/5 ≤ σ n) (hσstep : ∀ n, σ (n+1) = σ n + 1/10) |
| 676 | (hκsmall : κ ≤ 1/100000) |
| 677 | (hseed : CycleAnalyticInvariant G c primary P S (σ 0) seed) |
| 678 | (data : ∀ n (H : CycleAnalyticInvariant G c primary P S (σ n) (state n)), |
| 679 | StepData G h index axial particular signed r c (state n) primary P S D H (hσ n)) : |
| 680 | (∀ n, CycleAnalyticInvariant G c primary P S (σ n) (state n)) ∧ |
| 681 | ∀ n, StepResult G h index axial particular signed r c (state n) primary P S |
| 682 | (σ := σ n) (κ := κ) := by |
| 683 | have hi := iterate_invariant G h index axial particular signed r c seed primary P S |
| 684 | D σ hσ hσstep hκsmall hseed data |
| 685 | exact ⟨hi, fun n => step G h index axial particular signed r c (state n) primary P S |
| 686 | D (hi n) (hσ n) hκsmall (data n (hi n))⟩ |
| 687 | |
| 688 | end Iteration |
| 689 | |
| 690 | end NavierStokes.CorrectionAnalyticStep |