import NavierStokes.MeanIncrementBounds /-! # Changes in the angularly averaged residual Section 8.1, equation (8.3), of *Finite time blowup for Navier–Stokes* (166-page version) gives the azimuthal and axial residuals and the radial pressure source. This module subtracts those expressions before and after a covariance increment, first with the mean fixed and then with a simultaneous mean update. It also bounds the covariance contributions from a bound on each tensor entry. -/ noncomputable section namespace NavierStokes.CorrectionStep open Set WeightedClasses MeanIncrementBounds open scoped ContDiff BigOperators variable {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] abbrev ScalarField (D : Type) := MeanIncrementBounds.Field D abbrev Tensor (D : Type) := Fin 3 → Fin 3 → ScalarField D /-- These are changes of the literal covariance terms in (8.3). -/ noncomputable def thetaCovarianceChange (o : Operators D) (X : Tensor D) : ScalarField D := o.radialDiv 2 (X 0 1) + o.dz (X 2 1) theorem smooth_updated {U : Set D} {m h : Triple D} (hm : SmoothTriple U m) (hh : SmoothTriple U h) : SmoothTriple U (updated m h) := ⟨hm.radial.add hh.radial, hm.angular.add hh.angular, hm.axial.add hh.axial⟩ section CovarianceChanges variable {U : Set D} (hU : IsOpen U) (o : Operators D) {b m : Triple D} (hb : SmoothTriple U b) (hm : SmoothTriple U m) (W X : Tensor D) (hW : ∀ i j, SmoothOn U (W i j)) (hX : ∀ i j, SmoothOn U (X i j)) end CovarianceChanges section JointChanges variable {U : Set D} (hU : IsOpen U) (o : Operators D) (ha : ContDiffOn ℝ ∞ o.radialProfile U) {b m h : Triple D} (hb : SmoothTriple U b) (hm : SmoothTriple U m) (hh : SmoothTriple U h) (W X : Tensor D) (hW : ∀ i j, SmoothOn U (W i j)) (hX : ∀ i j, SmoothOn U (X i j)) end JointChanges /-- A bound on each actual tensor entry. It is not a bound on the resulting residual and contains no update-preservation assertion. -/ def TensorClass (s : StripData D) (α : ℝ) (X : Tensor D) : Prop := ∀ i j, MeanClass s α (X i j) section CovarianceBounds variable {s : StripData D} {o : Operators D} {κ α : ℝ} (ho : OperatorBounds s o κ) {X : Tensor D} (hX : TensorClass s α X) end CovarianceBounds end NavierStokes.CorrectionStep