import NavierStokes.ActualPhysicalStageBounds import NavierStokes.SharpMeanJetBounds noncomputable section namespace NavierStokes.ActualPhysicalStageBounds.MeanInput open Set Function Filter ProblemStatement open SharpMeanJetBounds SharpPhysicalCarrier open scoped Topology ContDiff private theorem common_loss_bound {h degree q C α : ℝ} {m k : ℕ} (hh : 0 ≤ h) (hdegree : degree ≤ 2*CoordinateAlgebra.A h) (hkm : k ≤ m+1) (hq : 0 < q) (hq1 : q ≤ 1) (hC : 0 ≤ C) (N : ℕ) : C*q^(h*α-meanLoss h degree k)*(1+|Real.log q|)^N ≤ C*q^(h*α-physicalLoss h m)*(1+|Real.log q|)^N := by have hk : (k:ℝ) ≤ (m:ℝ)+1 := by exact_mod_cast hkm have hm : 0 ≤ (m:ℝ)+1 := by positivity have he : h*α-physicalLoss h m ≤ h*α-meanLoss h degree k := by unfold physicalLoss meanLoss derivativeCost nlinarith exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left (Real.rpow_le_rpow_of_exponent_ge hq hq1 he) hC) (by positivity) end NavierStokes.ActualPhysicalStageBounds.MeanInput