import NavierStokes.GenericVelocityRates noncomputable section namespace NavierStokes.GenericTupleRealization open Set Filter ProblemStatement DiagonalResidual GenericRealizationBounds GenericDifferentialPolynomial open GenericSolenoidalRealization GenericRealization open scoped Topology ContDiff BigOperators abbrev Entry (κ : Type*) := Bool ⊕ κ def Value {κ : Type*} : Entry κ → Type | .inl _ => Space | .inr _ => ℝ instance {κ : Type*} (e : Entry κ) : NormedAddCommGroup (Value e) := match e with | .inl _ => inferInstanceAs (NormedAddCommGroup Space) | .inr _ => inferInstanceAs (NormedAddCommGroup ℝ) instance {κ : Type*} (e : Entry κ) : NormedSpace ℝ (Value e) := match e with | .inl _ => inferInstanceAs (NormedSpace ℝ Space) | .inr _ => inferInstanceAs (NormedSpace ℝ ℝ) def representatives {κ : Type*} (A B : ℕ → VelocityField) (R : κ → ℕ → PressureField) : ∀ e : Entry κ, ℕ → SpaceTime → Value e | .inl false => A | .inl true => B | .inr k => R k /-- The optional scalar entries comprise pressure and any finite stress components. Taking a singleton retains pressure alone. -/ def components {κ : Type*} (a : ℕ → ℝ) (q : SpaceTime → ℝ) (u0 : VelocityField) (s0 : κ → PressureField) (A B : ℕ → VelocityField) (R : κ → ℕ → PressureField) : Fin 3 ⊕ κ → PressureField | .inl i => fun w => positiveVelocity a q u0 A B w i | .inr k => realized a q (s0 k) (R k) def stageComponents {κ : Type*} (u0 : VelocityField) (s0 : κ → PressureField) (A B : ℕ → VelocityField) (R : κ → ℕ → PressureField) (J : ℕ) : Fin 3 ⊕ κ → PressureField | .inl i => fun w => positiveStage u0 A B J w i | .inr k => stage (s0 k) (R k) J structure Result {κ : Type*} (U : Set SpaceTime) (q : SpaceTime → ℝ) (u0 : VelocityField) (s0 : κ → PressureField) (A B : ℕ → VelocityField) (R : κ → ℕ → PressureField) (g L : ℕ → ℝ) (a : ℕ → ℕ) : Prop where positive : ∀ j, 0 < a j doubling : ∀ j, 2 * a j ≤ a (j + 1) monotone : StrictMono a tends : Tendsto (fun j => (a j : ℝ)) atTop atTop locallyFinite_representatives : ∀ e, LocallyFinite (fun j => Function.support (fun w : U => SolenoidalDiagonal.cutStage (fun j => (a j : ℝ)) q (CutStageEstimates.positiveStages (representatives A B R e)) j w)) smooth_velocity : ContDiffOn ℝ ∞ (positiveVelocity (fun j => (a j : ℝ)) q u0 A B) U smooth_scalars : ∀ k, ContDiffOn ℝ ∞ (realized (fun j => (a j : ℝ)) q (s0 k) (R k)) U divergence : ∀ w ∈ U, spatialDivergence (positiveVelocity (fun j => (a j : ℝ)) q u0 A B) w.1 w.2 = 0 approximation : ∀ i, Nonempty (ApproximationRates (scaleApproach U q) q (fun J => g (J + 1) / 2) (components (fun j => (a j : ℝ)) q u0 s0 A B R i) (fun J => stageComponents u0 s0 A B R J i)) tail_velocity : ∀ w ∈ U, ∀ J m, m ≤ J + 2 → q w < 1 / (2 * (a J : ℝ)) → ‖iteratedFDeriv ℝ m (fun y => positiveVelocity (fun j => (a j : ℝ)) q u0 A B y - positiveStage u0 A B J y) w‖ ≤ (1 / 2 : ℝ) ^ J * q w ^ (g (J + 1) / 2 - (max (CutStageEstimates.cutLoss L (m + 1)) (CutStageEstimates.cutLoss L m) + 1)) tail_scalars : ∀ k w, w ∈ U → ∀ J m, m ≤ J + 3 → q w < 1 / (2 * (a J : ℝ)) → ‖iteratedFDeriv ℝ m (fun y => realized (fun j => (a j : ℝ)) q (s0 k) (R k) y - stage (s0 k) (R k) J y) w‖ ≤ (1 / 2 : ℝ) ^ J * q w ^ (g (J + 1) / 2 - CutStageEstimates.cutLoss L m) outer_velocity : ∀ w, ContinuousAt q w → 1 / (a 0 : ℝ) < q w → positiveVelocity (fun j => (a j : ℝ)) q u0 A B =ᶠ[𝓝 w] u0 outer_scalars : ∀ k w, ContinuousAt q w → 1 / (a 0 : ℝ) < q w → realized (fun j => (a j : ℝ)) q (s0 k) (R k) =ᶠ[𝓝 w] s0 k end NavierStokes.GenericTupleRealization