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 Euler.PacketInitializedUniformBounds |
| 2 | import Euler.PacketCorrectionOutputPolynomial |
| 3 | import Euler.PacketInitializedRadiusPolynomial |
| 4 | import Euler.PacketWeightedPhysicalErrors |
| 5 | import Euler.PacketExactGlobalShear |
| 6 | import Euler.PacketInitializedHessianError |
| 7 | import Euler.PacketLiftedFlowData |
| 8 | |
| 9 | /-! One fixed polynomial controls both correction admissibility and every |
| 10 | source multiplier in the same-Q shear/Hessian and graph-flow estimates. -/ |
| 11 | |
| 12 | /-! ## From `Euler/PacketPhysicalCostPolynomial.lean` |
| 13 | |
| 14 | The text of `Euler/PacketPhysicalCostPolynomial.lean`, folded into this file, which was its only importer. -/ |
| 15 | |
| 16 | section |
| 17 | |
| 18 | /-! Fixed polynomial envelopes for the physical remainder, correction |
| 19 | error and lifted-flow input costs. All spatial derivative orders here are |
| 20 | fixed (H6 and one physical derivative). -/ |
| 21 | |
| 22 | noncomputable section |
| 23 | |
| 24 | namespace EulerPacketPhysicalCost |
| 25 | |
| 26 | open EulerSmoothLimit EulerPacketTerminalDatum EulerPacketProfileRecursion |
| 27 | EulerPacketCylinderField EulerPacketCorrectionConstants EulerPacketCorrectionScalar |
| 28 | EulerPacketCorrectionOutput EulerPacketFiveCost EulerCylinderSobolevSpace |
| 29 | EulerCylinderCoordinates EulerPacketPhysicalGevrey EulerPacketInverseFlowGevrey |
| 30 | EulerAllOrderDriftCorrection EulerPacketGraphHessian EulerPolynomialCost |
| 31 | EulerParameterWordGevrey |
| 32 | |
| 33 | def coordinateCost : ℝ := ‖coordinateEquiv.symm.toContinuousLinearMap‖ |
| 34 | |
| 35 | def physicalEnvelope (X S : ℝ) : ℝ := |
| 36 | 3*X*((1+18*X^2*X)*(9*X^2*(X+coordinateCost*2*S)+2)) |
| 37 | |
| 38 | def shearEnvelope (X : ℝ) : ℝ := |
| 39 | coordinateCost*(sobolevEmbeddingConstant period 3*fixedVelocityGradeCost X X 1*(4*X))*X+ |
| 40 | (8*coordinateCost*sobolevEmbeddingConstant period 3*X*(fixedVelocityGradeCost X X 2+2))*X |
| 41 | |
| 42 | def hessianEnvelope (X : ℝ) : ℝ := |
| 43 | sobolevEmbeddingConstant period 3*fixedVelocityGradeCost X X 1*X^2*(X+coordinateCost*(4*X))+ |
| 44 | 9*X*physicalEnvelope X (4*X)*sobolevEmbeddingConstant period 3*(fixedVelocityGradeCost X X 2+2) |
| 45 | |
| 46 | def timeEnvelope (X : ℝ) : ℝ := |
| 47 | 6*EulerPacketRadiusPolynomial.normalEnvelope X* |
| 48 | (fixedVelocityGradeCost X X 1+fixedVelocityGradeCost X X 2+1) |
| 49 | |
| 50 | def radiusEnvelope (X : ℝ) : ℝ := 1+coordinateCost*(4*X+4*inverseRadiusEnvelope X) |
| 51 | |
| 52 | def velocityInputEnvelope (X : ℝ) : ℝ := liftedInputConstant period*(velocity X X X+normal X X X) |
| 53 | def errorInputEnvelope (X : ℝ) : ℝ := 2*liftedInputConstant period*outputEnvelope period X |
| 54 | def timeInputEnvelope (X : ℝ) : ℝ := 2*liftedInputConstant period*(timeEnvelope X+outputEnvelope period X) |
| 55 | def weightedErrorEnvelope (X : ℝ) : ℝ := |
| 56 | (1+9*X)*physicalEnvelope X (4*inverseRadiusEnvelope X)*sobolevEmbeddingConstant period 3* |
| 57 | outputEnvelope period X |
| 58 | |
| 59 | def extraEnvelope (X : ℝ) : ℝ := |
| 60 | 1+outputEnvelope period X+radiusEnvelope X+velocityInputEnvelope X+errorInputEnvelope X+ |
| 61 | timeInputEnvelope X+weightedErrorEnvelope X+shearEnvelope X+hessianEnvelope X |
| 62 | |
| 63 | def extraPolynomial : Polynomial ℝ := |
| 64 | let X : Polynomial ℝ := Polynomial.X |
| 65 | let c := Polynomial.C coordinateCost |
| 66 | let e := Polynomial.C (sobolevEmbeddingConstant period 3) |
| 67 | let l := Polynomial.C (liftedInputConstant period) |
| 68 | let o := outputPolynomial period |
| 69 | let i := 1+8*X+4*X^2+X |
| 70 | let a1 := gradePolynomial 1 |
| 71 | let a2 := gradePolynomial 2 |
| 72 | let v := velocityPolynomial |
| 73 | let n := X*(a2+2) |
| 74 | let nb := coefficientPolynomial 6 (5*X+1) (1+X+6*X^2+729*X^6) |
| 75 | let ti := 6*nb*(a1+a2+1) |
| 76 | let pp := fun S : Polynomial ℝ => 3*X*((1+18*X^2*X)*(9*X^2*(X+c*2*S)+2)) |
| 77 | let sh := c*(e*a1*(4*X))*X+(8*c*e*X*(a2+2))*X |
| 78 | let he := e*a1*X^2*(X+c*(4*X))+9*X*pp (4*X)*e*(a2+2) |
| 79 | 1+o+(1+c*(4*X+4*i))+l*(v+n)+2*l*o+2*l*(ti+o)+(1+9*X)*pp (4*i)*e*o+sh+he |
| 80 | |
| 81 | theorem extraPolynomial_eval (X : ℝ) : extraPolynomial.eval X=extraEnvelope X := by |
| 82 | unfold extraPolynomial extraEnvelope radiusEnvelope velocityInputEnvelope errorInputEnvelope |
| 83 | timeInputEnvelope weightedErrorEnvelope shearEnvelope hessianEnvelope physicalEnvelope |
| 84 | timeEnvelope EulerPacketRadiusPolynomial.normalEnvelope EulerPacketRadiusPolynomial.coeff |
| 85 | inverseRadiusEnvelope normal |
| 86 | dsimp only |
| 87 | simp only [Polynomial.eval_add,Polynomial.eval_mul,Polynomial.eval_one, |
| 88 | Polynomial.eval_ofNat,Polynomial.eval_C,Polynomial.eval_pow,Polynomial.eval_X, |
| 89 | outputPolynomial_eval,gradePolynomial_eval,velocityPolynomial_eval,coefficientPolynomial_eval] |
| 90 | |
| 91 | |
| 92 | theorem physicalEnvelope_nonneg (X S : ℝ) (hX : 0 ≤ X) (hS : 0 ≤ S) : |
| 93 | 0 ≤ physicalEnvelope X S := by |
| 94 | have hc : 0 ≤ coordinateCost := norm_nonneg _ |
| 95 | unfold physicalEnvelope |
| 96 | positivity |
| 97 | |
| 98 | theorem extra_components (X : ℝ) (hX : 0 ≤ X) : |
| 99 | outputEnvelope period X ≤ extraEnvelope X ∧ radiusEnvelope X ≤ extraEnvelope X ∧ |
| 100 | velocityInputEnvelope X ≤ extraEnvelope X ∧ errorInputEnvelope X ≤ extraEnvelope X ∧ |
| 101 | timeInputEnvelope X ≤ extraEnvelope X ∧ weightedErrorEnvelope X ≤ extraEnvelope X ∧ |
| 102 | shearEnvelope X ≤ extraEnvelope X ∧ hessianEnvelope X ≤ extraEnvelope X := by |
| 103 | have hc : 0 ≤ coordinateCost := norm_nonneg _ |
| 104 | have he := sobolevEmbeddingConstant_nonneg period 3 |
| 105 | have hl := zero_le_one.trans (liftedInputConstant_one_le period) |
| 106 | have ho := zero_le_one.trans (output_components period X hX).1 |
| 107 | have hi : 0 ≤ inverseRadiusEnvelope X := by unfold inverseRadiusEnvelope; positivity |
| 108 | have hr : 0 ≤ radiusEnvelope X := by unfold radiusEnvelope; positivity |
| 109 | have hv := velocity_nonneg X X X hX hX |
| 110 | have hn := normal_nonneg X X X hX hX |
| 111 | have hvi : 0 ≤ velocityInputEnvelope X := by unfold velocityInputEnvelope; positivity |
| 112 | have hei : 0 ≤ errorInputEnvelope X := by unfold errorInputEnvelope; positivity |
| 113 | have ha1 := fixedVelocityGradeCost_nonneg X X hX 1 |
| 114 | have ha2 := fixedVelocityGradeCost_nonneg X X hX 2 |
| 115 | have hb := EulerPacketRadiusPolynomial.normalEnvelope_nonneg X hX |
| 116 | have ht : 0 ≤ timeEnvelope X := by unfold timeEnvelope; positivity |
| 117 | have hti : 0 ≤ timeInputEnvelope X := by unfold timeInputEnvelope; positivity |
| 118 | have hpp1 := physicalEnvelope_nonneg X (4*X) hX (by positivity) |
| 119 | have hpp2 := physicalEnvelope_nonneg X (4*inverseRadiusEnvelope X) hX (by positivity) |
| 120 | have hw : 0 ≤ weightedErrorEnvelope X := by unfold weightedErrorEnvelope; positivity |
| 121 | have hsh : 0 ≤ shearEnvelope X := by unfold shearEnvelope; positivity |
| 122 | have hhe : 0 ≤ hessianEnvelope X := by unfold hessianEnvelope; positivity |
| 123 | unfold extraEnvelope |
| 124 | refine ⟨?_,?_,?_,?_,?_,?_,?_,?_⟩ <;> linarith |
| 125 | |
| 126 | theorem gradeCost_mono (R H X : ℝ) (hR : 0 ≤ R) (hH : 0 ≤ H) |
| 127 | (hRX : R ≤ X) (hHX : H ≤ X) (n : ℕ) : |
| 128 | fixedVelocityGradeCost R H n ≤ fixedVelocityGradeCost X X n := by |
| 129 | have hX := hR.trans hRX |
| 130 | unfold fixedVelocityGradeCost |
| 131 | gcongr |
| 132 | |
| 133 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 134 | (D : EulerTransversePacketProvider.Data U) |
| 135 | |
| 136 | theorem physicalFixedCost_one_le (R C S X Y : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hS : 0 ≤ S) |
| 137 | (hRX : R ≤ X) (hCX : C ≤ X) (hSY : S ≤ Y) : |
| 138 | physicalFixedCost D R C S 1 ≤ physicalEnvelope X Y := by |
| 139 | have hX := hR.trans hRX |
| 140 | have hY := hS.trans hSY |
| 141 | have hc : 0 ≤ coordinateCost := norm_nonneg _ |
| 142 | simp only [physicalFixedCost,physicalRadiusCost,sourceInverseRadius,physicalEnvelope, |
| 143 | coordinateCost,D.m₀_unit,Nat.factorial_one,Nat.cast_one,pow_one,one_pow,mul_one] |
| 144 | norm_num only |
| 145 | gcongr |
| 146 | |
| 147 | theorem shearCost_le (R H C X : ℝ) (hR : 0 ≤ R) (hH : 0 ≤ H) (hC : 0 ≤ C) |
| 148 | (hRX : R ≤ X) (hHX : H ≤ X) (hCX : C ≤ X) : |
| 149 | initializedGlobalShearCost R H C ≤ shearEnvelope X := by |
| 150 | have hX := hR.trans hRX |
| 151 | have he := sobolevEmbeddingConstant_nonneg period 3 |
| 152 | have hc : 0 ≤ coordinateCost := norm_nonneg _ |
| 153 | have ha1 := gradeCost_mono R H X hR hH hRX hHX 1 |
| 154 | have ha2 := gradeCost_mono R H X hR hH hRX hHX 2 |
| 155 | have hg1 := fixedVelocityGradeCost_nonneg R H hR 1 |
| 156 | have hg2 := fixedVelocityGradeCost_nonneg R H hR 2 |
| 157 | have hg1X := hg1.trans ha1 |
| 158 | have hg2X := hg2.trans ha2 |
| 159 | have hrem : 0 ≤ initializedRemainderDerivativeCost R H := by |
| 160 | unfold initializedRemainderDerivativeCost |
| 161 | positivity |
| 162 | unfold initializedGlobalShearCost shearEnvelope |
| 163 | rw [abs_of_nonneg hrem] |
| 164 | unfold initializedRemainderDerivativeCost coordinateCost |
| 165 | gcongr |
| 166 | |
| 167 | theorem hessianCost_le {q : ℕ} {R₀ : ℝ} |
| 168 | (N : EulerTransversePacketJoin.NormalBudget D q R₀) |
| 169 | (R H Rc C X : ℝ) (hR : 0 ≤ R) (hH : 0 ≤ H) (hRc : 0 ≤ Rc) (hC : 0 ≤ C) |
| 170 | (hRX : R ≤ X) (hHX : H ≤ X) (hRcX : Rc ≤ X) (hCX : C ≤ X) |
| 171 | (hNR : N.Rc ≤ X) (hNC : N.C ≤ X) : |
| 172 | initializedPressureHessianCost N R H Rc C ≤ hessianEnvelope X := by |
| 173 | have hX := hR.trans hRX |
| 174 | have he := sobolevEmbeddingConstant_nonneg period 3 |
| 175 | have hc : 0 ≤ coordinateCost := norm_nonneg _ |
| 176 | have ha1 := gradeCost_mono R H X hR hH hRX hHX 1 |
| 177 | have ha2 := gradeCost_mono R H X hR hH hRX hHX 2 |
| 178 | have hg1 := fixedVelocityGradeCost_nonneg R H hR 1 |
| 179 | have hg2 := fixedVelocityGradeCost_nonneg R H hR 2 |
| 180 | have hg1X := hg1.trans ha1 |
| 181 | have hg2X := hg2.trans ha2 |
| 182 | have hpp := physicalFixedCost_one_le D Rc C (4*R) X (4*X) hRc hC (by positivity) |
| 183 | hRcX hCX (by gcongr) |
| 184 | have hp0 := physicalFixedCost_nonneg D Rc C (4*R) 1 hRc hC (by positivity) |
| 185 | have hpX := hp0.trans hpp |
| 186 | have hNC0 := N.C_nonneg |
| 187 | have hNR0 := N.Rc_nonneg |
| 188 | unfold initializedPressureHessianCost fastHessianCost hessianEnvelope coordinateCost |
| 189 | gcongr |
| 190 | |
| 191 | end EulerPacketPhysicalCost |
| 192 | end |
| 193 | |
| 194 | end |
| 195 | |
| 196 | noncomputable section |
| 197 | |
| 198 | namespace EulerPacketInitializedOutputCost |
| 199 | |
| 200 | open EulerPacketTerminalDatum EulerPacketProfileRecursion EulerPacketCylinderField |
| 201 | EulerPacketCorrectionConstants EulerPacketCorrectionScalar EulerPacketCorrectionCoefficients |
| 202 | EulerPacketPhysicalCost EulerPacketFiveCost EulerPolynomialCost EulerAllOrderDriftCorrection |
| 203 | EulerPacketCorrectionOutput |
| 204 | |
| 205 | def envelope (W : ℝ) : ℝ := 1+ |
| 206 | EulerPacketInitializedCost.uniformConstant*W^EulerPacketInitializedCost.uniformPower+ |
| 207 | extraEnvelope (EulerPacketInitializedCost.envelope W) |
| 208 | |
| 209 | def polynomial : Polynomial ℝ := 1+ |
| 210 | Polynomial.C EulerPacketInitializedCost.uniformConstant* |
| 211 | Polynomial.X^EulerPacketInitializedCost.uniformPower+ |
| 212 | extraPolynomial.comp (1+Polynomial.X+EulerPacketRadiusPolynomial.radiusPolynomial+ |
| 213 | EulerPacketCorrectionPrimitive.primitivePolynomial period) |
| 214 | |
| 215 | def uniformConstant : ℝ := coefficientCost polynomial |
| 216 | def uniformPower : ℕ := polynomial.natDegree |
| 217 | |
| 218 | theorem polynomial_eval (W : ℝ) : polynomial.eval W=envelope W := by |
| 219 | unfold polynomial envelope EulerPacketInitializedCost.envelope |
| 220 | simp only [Polynomial.eval_add,Polynomial.eval_one,Polynomial.eval_mul, |
| 221 | Polynomial.eval_C,Polynomial.eval_pow,Polynomial.eval_X,Polynomial.eval_comp, |
| 222 | EulerPacketRadiusPolynomial.radiusPolynomial_eval, |
| 223 | EulerPacketCorrectionPrimitive.primitivePolynomial_eval,extraPolynomial_eval] |
| 224 | |
| 225 | theorem envelope_bound (W : ℝ) (hW : 1 ≤ W) : envelope W ≤ uniformConstant*W^uniformPower := by |
| 226 | rw [← polynomial_eval] |
| 227 | exact (le_abs_self _).trans (eval_bound polynomial W hW) |
| 228 | |
| 229 | theorem envelope_components (W : ℝ) (hW : 0 ≤ W) : |
| 230 | EulerPacketInitializedCost.uniformConstant*W^EulerPacketInitializedCost.uniformPower ≤ envelope W ∧ |
| 231 | extraEnvelope (EulerPacketInitializedCost.envelope W) ≤ envelope W := by |
| 232 | have hC := EulerPacketInitializedCost.uniformConstant_pos.le |
| 233 | have hE0 := zero_le_one.trans (EulerPacketInitializedCost.envelope_bounds W hW).1 |
| 234 | have hO := zero_le_one.trans (output_components period _ hE0).1 |
| 235 | have he := (extra_components (EulerPacketInitializedCost.envelope W) hE0).1 |
| 236 | have hE := hO.trans he |
| 237 | have hp : 0 ≤ EulerPacketInitializedCost.uniformConstant*W^EulerPacketInitializedCost.uniformPower := |
| 238 | mul_nonneg hC (pow_nonneg hW _) |
| 239 | unfold envelope |
| 240 | exact ⟨by linarith,by linarith⟩ |
| 241 | |
| 242 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 243 | {D : EulerTransversePacketProvider.Data U} {τ : ℝ} {hτ : 0 < τ} {hτT : τ < D.T} |
| 244 | {B : EulerTransversePacketProvider.HistoryData (D.initial τ hτ hτT.le)} |
| 245 | {M : EulerMeanPacketProvider.Data} {Rm Tc : ℝ} {O : Operators} |
| 246 | {C : CoefficientData period Tc O} |
| 247 | (LM : EulerMeanPacketProvider.Budget M 6 Rm) |
| 248 | (L : EulerTransversePacketJoin.Budget D τ hτ hτT B (Fin 4) 6) |
| 249 | (NB : EulerTransversePacketJoin.NormalBudget D 6 L.R) |
| 250 | (BC : CoefficientBudget C) (δ : ℝ) (ξ : U) |
| 251 | |
| 252 | theorem actual_output_costs (W H0 : ℝ) (hδ : 0 < δ) |
| 253 | (H : EulerPacketRadiusPolynomial.RadiusPrimitives LM L NB BC δ ξ W) |
| 254 | (hH0 : 0 ≤ H0) (hHW : H0 ≤ W) : |
| 255 | let R := initializedRadius LM L NB BC δ ξ |
| 256 | let Kc := L.correctionCoefficients NB period |
| 257 | let ρ := initialRadius R Kc.M Kc.Rc/4 |
| 258 | let Z := EulerPacketInitializedCost.envelope W |
| 259 | EulerPacketInitializedCost.weightSize W ≤ extraEnvelope Z ∧ |
| 260 | physicalInputRadius (4*R) (4*R) ρ ≤ extraEnvelope Z ∧ |
| 261 | liftedInputConstant period*(velocity R H0 BC.multiplierCost+normal R H0 BC.multiplierCost) ≤ extraEnvelope Z ∧ |
| 262 | 2*liftedInputConstant period*EulerPacketInitializedCost.weightSize W ≤ extraEnvelope Z ∧ |
| 263 | 2*liftedInputConstant period*(6*NB.blockAmplitude* |
| 264 | (fixedVelocityGradeCost R H0 1+fixedVelocityGradeCost R H0 2+1)+ |
| 265 | EulerPacketInitializedCost.weightSize W) ≤ extraEnvelope Z ∧ |
| 266 | weightedPhysicalGradientCost D period L.Rc L.C₀ ρ (EulerPacketInitializedCost.weightSize W) ≤ extraEnvelope Z ∧ |
| 267 | initializedGlobalShearCost R H0 NB.C ≤ extraEnvelope Z ∧ |
| 268 | initializedPressureHessianCost NB R H0 L.Rc L.C₀ ≤ extraEnvelope Z := by |
| 269 | let R := initializedRadius LM L NB BC δ ξ |
| 270 | let Kc := L.correctionCoefficients NB period |
| 271 | let ρ := initialRadius R Kc.M Kc.Rc/4 |
| 272 | let Z := EulerPacketInitializedCost.envelope W |
| 273 | obtain ⟨hZ1,hRZ,hHZ,hCZ,hK⟩ := EulerPacketInitializedCost.actual_parameters |
| 274 | LM L NB BC δ ξ W H0 hδ H hHW |
| 275 | change R ≤ Z at hRZ |
| 276 | change H0 ≤ Z at hHZ |
| 277 | change BC.multiplierCost ≤ Z at hCZ |
| 278 | have hZ : 0 ≤ Z := zero_le_one.trans hZ1 |
| 279 | have hWZ := (EulerPacketInitializedCost.envelope_bounds W (zero_le_one.trans H.one)).2.1 |
| 280 | have hR0 : 0 ≤ R := zero_le_one.trans (initializedJoinedBudget LM L NB BC δ ξ).radius_bounds.1 |
| 281 | have hC0 := BC.multiplierCost_nonneg |
| 282 | have hLR := H.joined_radius.trans hWZ |
| 283 | have hLC := H.joined_frame.trans hWZ |
| 284 | have hNR := H.normal_radius.trans hWZ |
| 285 | have hNC := H.normal_amplitude.trans hWZ |
| 286 | have hNI := H.normal_inverse.trans hWZ |
| 287 | have hρ0 : 0 < ρ := div_pos (initialRadius_bounds R Kc.M Kc.Rc hR0 |
| 288 | (zero_le_one.trans Kc.M_one_le) Kc.Rc_nonneg).1 (by norm_num) |
| 289 | have hiR : (initialRadius R Kc.M Kc.Rc)⁻¹ ≤ inverseRadiusEnvelope Z := by |
| 290 | simp only [initialRadius,one_div,inv_inv] |
| 291 | unfold inverseRadiusEnvelope |
| 292 | have hm : Kc.M ≤ Z := hK.pressure |
| 293 | have hr : Kc.Rc ≤ Z := hK.radius |
| 294 | have hp := mul_le_mul hm hr Kc.Rc_nonneg hZ |
| 295 | linarith only [hp,hRZ,hr] |
| 296 | have hρinv : ρ⁻¹ ≤ 4*inverseRadiusEnvelope Z := by |
| 297 | change (initialRadius R Kc.M Kc.Rc/4)⁻¹ ≤ _ |
| 298 | rw [inv_div,div_eq_mul_inv] |
| 299 | gcongr |
| 300 | have hiZ : 0 ≤ inverseRadiusEnvelope Z := by unfold inverseRadiusEnvelope; positivity |
| 301 | have hrf : physicalInputRadius (4*R) (4*R) ρ ≤ radiusEnvelope Z := by |
| 302 | simp only [physicalInputRadius,max_self] |
| 303 | change 1+coordinateCost*(4*R+ρ⁻¹) ≤ 1+coordinateCost*(4*Z+4*inverseRadiusEnvelope Z) |
| 304 | have hc : 0 ≤ coordinateCost := norm_nonneg _ |
| 305 | gcongr |
| 306 | have hv := velocity_mono hR0 hH0 hC0 hRZ hHZ hCZ |
| 307 | have ha1 := gradeCost_mono R H0 Z hR0 hH0 hRZ hHZ 1 |
| 308 | have ha2 := gradeCost_mono R H0 Z hR0 hH0 hRZ hHZ 2 |
| 309 | have hg1 := fixedVelocityGradeCost_nonneg R H0 hR0 1 |
| 310 | have hg2 := fixedVelocityGradeCost_nonneg R H0 hR0 2 |
| 311 | have hg1Z := hg1.trans ha1 |
| 312 | have hg2Z := hg2.trans ha2 |
| 313 | have hn : normal R H0 BC.multiplierCost ≤ normal Z Z Z := by unfold normal; gcongr |
| 314 | have hl := zero_le_one.trans (liftedInputConstant_one_le period) |
| 315 | have hav : liftedInputConstant period*(velocity R H0 BC.multiplierCost+normal R H0 BC.multiplierCost) ≤ |
| 316 | velocityInputEnvelope Z := by unfold velocityInputEnvelope; gcongr |
| 317 | have hb := EulerPacketRadiusPolynomial.normal_block_le NB Z hZ hNR hNC hNI |
| 318 | have hb0 := NB.blockAmplitude_nonneg |
| 319 | have hbZ := hb0.trans hb |
| 320 | have ht : 6*NB.blockAmplitude*(fixedVelocityGradeCost R H0 1+fixedVelocityGradeCost R H0 2+1) ≤ |
| 321 | timeEnvelope Z := by unfold timeEnvelope; gcongr |
| 322 | have hat : 2*liftedInputConstant period*(6*NB.blockAmplitude* |
| 323 | (fixedVelocityGradeCost R H0 1+fixedVelocityGradeCost R H0 2+1)+ |
| 324 | EulerPacketInitializedCost.weightSize W) ≤ timeInputEnvelope Z := by |
| 325 | unfold timeInputEnvelope EulerPacketInitializedCost.weightSize |
| 326 | gcongr |
| 327 | have hphys := physicalFixedCost_one_le D L.Rc L.C₀ ρ⁻¹ Z (4*inverseRadiusEnvelope Z) |
| 328 | L.Rc_nonneg L.C₀_nonneg (inv_nonneg.mpr hρ0.le) hLR hLC hρinv |
| 329 | have hphys0 := EulerPacketPhysicalGevrey.physicalFixedCost_nonneg D L.Rc L.C₀ ρ⁻¹ 1 |
| 330 | L.Rc_nonneg L.C₀_nonneg (inv_nonneg.mpr hρ0.le) |
| 331 | have hphysZ := hphys0.trans hphys |
| 332 | have he := EulerCylinderSobolevSpace.sobolevEmbeddingConstant_nonneg period 3 |
| 333 | have ho := zero_le_one.trans (output_components period Z hZ).1 |
| 334 | have herr : weightedPhysicalGradientCost D period L.Rc L.C₀ ρ (EulerPacketInitializedCost.weightSize W) ≤ |
| 335 | weightedErrorEnvelope Z := by |
| 336 | calc |
| 337 | _ = ((1+9*L.C₀)*EulerPacketPhysicalGevrey.physicalFixedCost D L.Rc L.C₀ ρ⁻¹ 1* |
| 338 | EulerCylinderSobolevSpace.sobolevEmbeddingConstant period 3)*outputEnvelope period Z := by |
| 339 | unfold weightedPhysicalGradientCost EulerPacketInitializedCost.weightSize |
| 340 | ring |
| 341 | _ ≤ ((1+9*Z)*physicalEnvelope Z (4*inverseRadiusEnvelope Z)* |
| 342 | EulerCylinderSobolevSpace.sobolevEmbeddingConstant period 3)*outputEnvelope period Z := by gcongr |
| 343 | _ = _ := rfl |
| 344 | have hshear := shearCost_le R H0 NB.C Z hR0 hH0 NB.C_nonneg hRZ hHZ hNC |
| 345 | have hhess := hessianCost_le D NB R H0 L.Rc L.C₀ Z hR0 hH0 L.Rc_nonneg L.C₀_nonneg |
| 346 | hRZ hHZ hLR hLC hNR hNC |
| 347 | obtain ⟨hwe,hr,ha,hb,ht',he',hs,hp⟩ := extra_components Z hZ |
| 348 | exact ⟨hwe,hrf.trans hr,hav.trans ha,hb,hat.trans ht',herr.trans he',hshear.trans hs,hhess.trans hp⟩ |
| 349 | |
| 350 | end EulerPacketInitializedOutputCost |