import NavierStokes.GluedStageEstimates import NavierStokes.SharpPhysicalLogBounds import NavierStokes.SharpWaveStageBounds import NavierStokes.SharpMeanStageBounds noncomputable section namespace NavierStokes.SharpGluedStageBounds open Set Function Filter ProblemStatement PhysicalWaveSum open scoped Topology ContDiff BigOperators open CorrectionInitialization CorrectionInitialization.ActualPrimary ActualStageEstimates section SignedAndMean variable {B N0 N : ℕ} {D : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] {I K : Type*} (R : RunData B N0) (M : ActualMeanPhysicalData.InitialCycleInput B N0 N (fun _ => ActualCycleParameters.fixedParameters B N0)) (hN : 4 ≤ N) (W : GluedStageEstimates.SignedInputs D I K) private theorem potential_gain (j : ℕ) : ActualIterationLedger.gain h (j+1) ≤ h * (W.potential j).alpha := by have hg := ActualIterationLedger.gain_le_wave outgoing.data.h_pos.le ActualCyclePreservation.kappa_small (Nat.succ_pos j) rw [← nativePotential_eq_ledger j] at hg exact hg.trans (mul_le_mul_of_nonneg_left (W.potential_exponent j) outgoing.data.h_pos.le) private theorem pressure_gain (j : ℕ) : ActualIterationLedger.gain h (j+1) ≤ h * (W.pressure j).alpha := by have hg := ActualIterationLedger.gain_le_wavePressure outgoing.data.h_pos.le ActualCyclePreservation.kappa_small (Nat.succ_pos j) rw [← nativePressure_eq_ledger j] at hg exact hg.trans (mul_le_mul_of_nonneg_left (W.pressure_exponent j) outgoing.data.h_pos.le) private theorem mean_gain (j : ℕ) : ActualIterationLedger.gain h (j+1) ≤ h * (1+ActualIterationLedger.sigma j-2*ChartScales.kappa) := by rw [nativeMean_eq_ledger] exact ActualIterationLedger.gain_le_mean outgoing.data.h_pos.le ActualCyclePreservation.kappa_small (Nat.succ_pos j) private theorem mean_degree : CoordinateAlgebra.A h - 1/2 ≤ 2*CoordinateAlgebra.A h := by unfold CoordinateAlgebra.A linarith [outgoing.data.h_pos] end SignedAndMean end NavierStokes.SharpGluedStageBounds