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.CoefficientCostMonotone |
| 2 | import Euler.PacketCorrectionCoefficientBudget |
| 3 | import Euler.PacketCylinderTermBudget |
| 4 | import Euler.PacketCorrectionMetricBudget |
| 5 | import Euler.PacketSourceCoefficientGevrey |
| 6 | import Euler.PacketParentCoefficientBounds |
| 7 | |
| 8 | /-! The polynomial primitive envelope applies to the constructed correction |
| 9 | coefficients, using only the original deformation and inverse-deformation jets. -/ |
| 10 | |
| 11 | /-! ## From `Euler/PacketCorrectionPrimitivePolynomial.lean` |
| 12 | |
| 13 | The text of `Euler/PacketCorrectionPrimitivePolynomial.lean`, folded into this file, which was its only importer. -/ |
| 14 | |
| 15 | section |
| 16 | |
| 17 | /-! Fixed polynomials majorize all primitive coefficient constants of the |
| 18 | packet correction. The pressure inverse is the genuine fixed-order recursion. -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | namespace EulerPacketCorrectionPrimitive |
| 23 | |
| 24 | open EulerParameterWordGevrey EulerCoefficientJetPressureBounds |
| 25 | EulerPacketCorrectionCoefficients EulerPolynomialCost EulerCylinderPathProduct |
| 26 | |
| 27 | def metricEnvelope (X : ℝ) : ℝ := correctionMetricEnvelope X X |
| 28 | def linearEnvelope (X : ℝ) : ℝ := correctionLinearEnvelope X X X |
| 29 | def quadraticEnvelope (X : ℝ) : ℝ := correctionQuadraticEnvelope X X X |
| 30 | def radiusEnvelope (X : ℝ) : ℝ := 1+(1+metricEnvelope X)*(64*X)+64*X |
| 31 | def pressureEnvelope (X : ℝ) : ℝ := |
| 32 | 1+pressureCost ((1+X)^2)⁻¹ (metricEnvelope X) 5+ |
| 33 | pressureCost ((1+X)^2)⁻¹ (metricEnvelope X) 6 |
| 34 | def multiplierEnvelope (X : ℝ) : ℝ := 3*sobolevCoefficientAmplitude (Fin 4) 6 X X |
| 35 | def termEnvelope (P : ℝ) [Fact (0 < P)] (X : ℝ) : ℝ := |
| 36 | 2*(1+multiplierEnvelope X+9*productBlockConstant P*multiplierEnvelope X) |
| 37 | def primitiveEnvelope (P : ℝ) [Fact (0 < P)] (X : ℝ) : ℝ := |
| 38 | 1+(1+X)+X^2+3*X*X*X+2*X*X+metricEnvelope X+linearEnvelope X+ |
| 39 | quadraticEnvelope X+radiusEnvelope X+pressureEnvelope X+ |
| 40 | multiplierEnvelope X+termEnvelope P X |
| 41 | |
| 42 | def metricPolynomial : Polynomial ℝ := |
| 43 | coefficientPolynomial 6 (4*Polynomial.X) (3*Polynomial.X*Polynomial.X) |
| 44 | def linearPolynomial : Polynomial ℝ := |
| 45 | 2*coefficientPolynomial 6 (4*Polynomial.X) (6*Polynomial.X*Polynomial.X) |
| 46 | def quadraticPolynomial : Polynomial ℝ := |
| 47 | 6*coefficientPolynomial 6 (4*Polynomial.X) (3*Polynomial.X*(Polynomial.X*Polynomial.X)) |
| 48 | def radiusPolynomial : Polynomial ℝ := |
| 49 | 1+(1+metricPolynomial)*(64*Polynomial.X)+64*Polynomial.X |
| 50 | def pressurePolynomialEnvelope : Polynomial ℝ := |
| 51 | 1+pressurePolynomial ((1+Polynomial.X)^2) metricPolynomial 5+ |
| 52 | pressurePolynomial ((1+Polynomial.X)^2) metricPolynomial 6 |
| 53 | def multiplierPolynomial : Polynomial ℝ := |
| 54 | 3*coefficientPolynomial 6 Polynomial.X Polynomial.X |
| 55 | def termPolynomial (P : ℝ) [Fact (0 < P)] : Polynomial ℝ := |
| 56 | 2*(1+multiplierPolynomial+9*Polynomial.C (productBlockConstant P)*multiplierPolynomial) |
| 57 | def primitivePolynomial (P : ℝ) [Fact (0 < P)] : Polynomial ℝ := |
| 58 | let X : Polynomial ℝ := Polynomial.X |
| 59 | 1+(1+X)+X^2+3*X*X*X+2*X*X+metricPolynomial+linearPolynomial+ |
| 60 | quadraticPolynomial+radiusPolynomial+pressurePolynomialEnvelope+ |
| 61 | multiplierPolynomial+termPolynomial P |
| 62 | |
| 63 | theorem metricPolynomial_eval (X : ℝ) : metricPolynomial.eval X=metricEnvelope X := by |
| 64 | simp only [metricPolynomial,coefficientPolynomial_eval,metricEnvelope,correctionMetricEnvelope, |
| 65 | Polynomial.eval_mul,Polynomial.eval_ofNat,Polynomial.eval_X] |
| 66 | |
| 67 | theorem linearPolynomial_eval (X : ℝ) : linearPolynomial.eval X=linearEnvelope X := by |
| 68 | simp only [linearPolynomial,coefficientPolynomial_eval,linearEnvelope,correctionLinearEnvelope, |
| 69 | Polynomial.eval_mul,Polynomial.eval_ofNat,Polynomial.eval_X] |
| 70 | |
| 71 | theorem quadraticPolynomial_eval (X : ℝ) : quadraticPolynomial.eval X=quadraticEnvelope X := by |
| 72 | simp only [quadraticPolynomial,coefficientPolynomial_eval,quadraticEnvelope,correctionQuadraticEnvelope, |
| 73 | Polynomial.eval_mul,Polynomial.eval_ofNat,Polynomial.eval_X] |
| 74 | |
| 75 | theorem radiusPolynomial_eval (X : ℝ) : radiusPolynomial.eval X=radiusEnvelope X := by |
| 76 | simp only [radiusPolynomial,radiusEnvelope,Polynomial.eval_add,Polynomial.eval_mul, |
| 77 | Polynomial.eval_one,Polynomial.eval_ofNat,Polynomial.eval_X,metricPolynomial_eval] |
| 78 | |
| 79 | theorem pressurePolynomialEnvelope_eval (X : ℝ) : |
| 80 | pressurePolynomialEnvelope.eval X=pressureEnvelope X := by |
| 81 | simp only [pressurePolynomialEnvelope,pressureEnvelope,pressurePolynomial_eval, |
| 82 | Polynomial.eval_add,Polynomial.eval_one,Polynomial.eval_pow,Polynomial.eval_X, |
| 83 | metricPolynomial_eval] |
| 84 | |
| 85 | theorem multiplierPolynomial_eval (X : ℝ) : multiplierPolynomial.eval X=multiplierEnvelope X := by |
| 86 | simp only [multiplierPolynomial,multiplierEnvelope,Polynomial.eval_mul,Polynomial.eval_ofNat, |
| 87 | coefficientPolynomial_eval,Polynomial.eval_X] |
| 88 | |
| 89 | theorem termPolynomial_eval (P : ℝ) [Fact (0 < P)] (X : ℝ) : (termPolynomial P).eval X=termEnvelope P X := by |
| 90 | simp only [termPolynomial,termEnvelope,Polynomial.eval_mul,Polynomial.eval_add, |
| 91 | Polynomial.eval_ofNat,Polynomial.eval_one,Polynomial.eval_C,multiplierPolynomial_eval] |
| 92 | |
| 93 | theorem primitivePolynomial_eval (P : ℝ) [Fact (0 < P)] (X : ℝ) : |
| 94 | (primitivePolynomial P).eval X=primitiveEnvelope P X := by |
| 95 | simp only [primitivePolynomial,primitiveEnvelope,Polynomial.eval_add,Polynomial.eval_one, |
| 96 | Polynomial.eval_mul,Polynomial.eval_ofNat,Polynomial.eval_pow,Polynomial.eval_X, |
| 97 | metricPolynomial_eval,linearPolynomial_eval,quadraticPolynomial_eval,radiusPolynomial_eval, |
| 98 | pressurePolynomialEnvelope_eval,multiplierPolynomial_eval,termPolynomial_eval] |
| 99 | |
| 100 | |
| 101 | theorem primitive_components (P X : ℝ) [Fact (0 < P)] (hX : 0 ≤ X) : |
| 102 | 1 ≤ primitiveEnvelope P X ∧ 1+X ≤ primitiveEnvelope P X ∧ |
| 103 | X^2 ≤ primitiveEnvelope P X ∧ 3*X*X*X ≤ primitiveEnvelope P X ∧ |
| 104 | 2*X*X ≤ primitiveEnvelope P X ∧ metricEnvelope X ≤ primitiveEnvelope P X ∧ |
| 105 | linearEnvelope X ≤ primitiveEnvelope P X ∧ quadraticEnvelope X ≤ primitiveEnvelope P X ∧ |
| 106 | radiusEnvelope X ≤ primitiveEnvelope P X ∧ pressureEnvelope X ≤ primitiveEnvelope P X ∧ |
| 107 | multiplierEnvelope X ≤ primitiveEnvelope P X ∧ termEnvelope P X ≤ primitiveEnvelope P X := by |
| 108 | have hm : 0 ≤ metricEnvelope X := |
| 109 | sobolevCoefficientAmplitude_nonneg 6 (4*X) (3*X*X) (by positivity) (by positivity) |
| 110 | have hl : 0 ≤ linearEnvelope X := mul_nonneg (by norm_num) |
| 111 | (sobolevCoefficientAmplitude_nonneg 6 (4*X) (6*X*X) (by positivity) (by positivity)) |
| 112 | have hq : 0 ≤ quadraticEnvelope X := mul_nonneg (by norm_num) |
| 113 | (sobolevCoefficientAmplitude_nonneg 6 (4*X) (3*X*(X*X)) (by positivity) (by positivity)) |
| 114 | have hr : 0 ≤ radiusEnvelope X := by unfold radiusEnvelope; positivity |
| 115 | have h5 := pressureCost_nonneg ((1+X)^2)⁻¹ (metricEnvelope X) (by positivity) hm 5 |
| 116 | have h6 := pressureCost_nonneg ((1+X)^2)⁻¹ (metricEnvelope X) (by positivity) hm 6 |
| 117 | have hp : 0 ≤ pressureEnvelope X := by unfold pressureEnvelope; positivity |
| 118 | have hb : 0 ≤ multiplierEnvelope X := mul_nonneg (by norm_num) |
| 119 | (sobolevCoefficientAmplitude_nonneg 6 X X hX hX) |
| 120 | have ht : 0 ≤ termEnvelope P X := by |
| 121 | have hc := productBlockConstant_nonneg P |
| 122 | unfold termEnvelope |
| 123 | positivity |
| 124 | have h1 : 0 ≤ 1+X := by positivity |
| 125 | have h2 : 0 ≤ X^2 := sq_nonneg X |
| 126 | have h3 : 0 ≤ 3*X*X*X := by positivity |
| 127 | have h4 : 0 ≤ 2*X*X := by positivity |
| 128 | unfold primitiveEnvelope |
| 129 | refine ⟨?_,?_,?_,?_,?_,?_,?_,?_,?_,?_,?_,?_⟩ <;> linarith |
| 130 | |
| 131 | end EulerPacketCorrectionPrimitive |
| 132 | end |
| 133 | |
| 134 | end |
| 135 | |
| 136 | /-! ## From `Euler/PacketCorrectionMetricBounds.lean` |
| 137 | |
| 138 | The text of `Euler/PacketCorrectionMetricBounds.lean`, folded into this file, which was its only importer. -/ |
| 139 | |
| 140 | section |
| 141 | |
| 142 | /-! Quantitative bounds for the actual inverse metric and its first spatial |
| 143 | and time derivatives, from the prescribed deformation jets. -/ |
| 144 | |
| 145 | noncomputable section |
| 146 | |
| 147 | namespace EulerPacketCorrectionCoefficients |
| 148 | |
| 149 | open Set EulerSmoothLimit EulerMeanCoefficients EulerPacketCylinderField |
| 150 | EulerAllOrderCorrectionData EulerGevrey |
| 151 | open scoped ContDiff BoundedContinuousFunction |
| 152 | |
| 153 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 154 | (D : EulerTransversePacketProvider.Data U) |
| 155 | (R C0 C1 : ℝ) (hR : 0 ≤ R) (hC0 : 0 ≤ C0) (hC1 : 0 ≤ C1) |
| 156 | (hF : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F.field t : Space → Space →L[ℝ] Space) x‖ ≤ C0*majorant R 0 n) |
| 157 | (hF1 : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F₁.field t : Space → Space →L[ℝ] Space) x‖ ≤ C1*majorant R 0 n) |
| 158 | |
| 159 | include hR hC0 hF in |
| 160 | theorem inverseMetricCoefficient_bound (n : ℕ) (a : Space) : |
| 161 | ‖iteratedFDeriv ℝ n (translateCoefficientPath (inverseMetricCoefficient D).path) a‖ ≤ |
| 162 | (3*C0*C0)*majorant R 0 n := by |
| 163 | have hf := frameCoefficient_bound D R C0 hR hC0 hF |
| 164 | exact MatrixCoefficient.comp_bound (frameCoefficient D).adjoint (frameCoefficient D) |
| 165 | R C0 C0 hR hC0 hC0 ((frameCoefficient D).adjoint_bound R C0 hf) hf n a |
| 166 | |
| 167 | include hR hC0 hF in |
| 168 | theorem inverseMetricFirstBound_le_source : inverseMetricFirstBound D ≤ 3*C0*C0*R := by |
| 169 | have h := inverseMetricCoefficient_bound D R C0 hR hC0 hF 1 0 |
| 170 | simpa only [inverseMetricFirstBound,majorant,Nat.add_zero,Nat.factorial_one, |
| 171 | Nat.cast_one,pow_one,one_pow,mul_one] using h |
| 172 | |
| 173 | include hC0 hF in |
| 174 | theorem framePath_norm_le_source : ‖D.F.field‖ ≤ C0 := by |
| 175 | apply (ContinuousMap.norm_le _ hC0).mpr |
| 176 | intro t |
| 177 | apply (BoundedContinuousFunction.norm_le hC0).mpr |
| 178 | intro x |
| 179 | simpa only [norm_iteratedFDeriv_zero,majorant,Nat.zero_add,Nat.factorial_zero, |
| 180 | Nat.cast_one,pow_zero,one_pow,mul_one] using hF 0 t x |
| 181 | |
| 182 | include hC1 hF1 in |
| 183 | theorem frameTimePath_norm_le_source : ‖D.F₁.field‖ ≤ C1 := by |
| 184 | apply (ContinuousMap.norm_le _ hC1).mpr |
| 185 | intro t |
| 186 | apply (BoundedContinuousFunction.norm_le hC1).mpr |
| 187 | intro x |
| 188 | simpa only [norm_iteratedFDeriv_zero,majorant,Nat.zero_add,Nat.factorial_zero, |
| 189 | Nat.cast_one,pow_zero,one_pow,mul_one] using hF1 0 t x |
| 190 | |
| 191 | include hC0 hF in |
| 192 | theorem inverseMetricBound_le_source : inverseMetricBound D ≤ C0^2 := by |
| 193 | have h0 := framePath_norm_le_source D R C0 hC0 hF |
| 194 | exact (inverseMetricBound_le D).trans (pow_le_pow_left₀ (norm_nonneg _) h0 2) |
| 195 | |
| 196 | include hC0 hC1 hF hF1 in |
| 197 | theorem inverseMetricTimeBound_le_source : inverseMetricTimeBound D ≤ 2*C0*C1 := by |
| 198 | have h0 := framePath_norm_le_source D R C0 hC0 hF |
| 199 | have h1 := frameTimePath_norm_le_source D R C1 hC1 hF1 |
| 200 | exact (inverseMetricTimeBound_le D).trans (mul_le_mul |
| 201 | (mul_le_mul_of_nonneg_left h0 (by norm_num)) h1 (norm_nonneg _) (by positivity)) |
| 202 | |
| 203 | end EulerPacketCorrectionCoefficients |
| 204 | end |
| 205 | |
| 206 | end |
| 207 | |
| 208 | noncomputable section |
| 209 | |
| 210 | namespace EulerPacketCorrectionPrimitive |
| 211 | |
| 212 | open Set EulerParameterWordGevrey EulerCoefficientJetPressureBounds |
| 213 | EulerPacketCorrectionCoefficients EulerCoefficientPath EulerPacketCylinderField |
| 214 | EulerSmoothLimit EulerGevrey EulerPacketCofactor EulerCylinderPathProduct |
| 215 | open scoped BoundedContinuousFunction |
| 216 | |
| 217 | theorem correction_envelopes (c R C0 C1 CI X : ℝ) |
| 218 | (hc : 0 < c) (hR : 0 ≤ R) (hC0 : 0 ≤ C0) (hC1 : 0 ≤ C1) (hCI : 0 ≤ CI) |
| 219 | (hRX : R ≤ X) (hC0X : C0 ≤ X) (hC1X : C1 ≤ X) (hCIX : CI ≤ X) |
| 220 | (hci : c⁻¹ ≤ (1+X)^2) : |
| 221 | correctionCoefficientRadius R CI ≤ radiusEnvelope X ∧ |
| 222 | correctionPressureEnvelope c R CI ≤ pressureEnvelope X ∧ |
| 223 | correctionMetricEnvelope R CI ≤ metricEnvelope X ∧ |
| 224 | correctionLinearEnvelope R C1 CI ≤ linearEnvelope X ∧ |
| 225 | correctionQuadraticEnvelope R C0 CI ≤ quadraticEnvelope X := by |
| 226 | have hX : 0 ≤ X := hR.trans hRX |
| 227 | have hm : correctionMetricEnvelope R CI ≤ metricEnvelope X := by |
| 228 | apply sobolevCoefficientAmplitude_mono_all 6 (by positivity) (by positivity) |
| 229 | (by gcongr) |
| 230 | gcongr |
| 231 | have hm0 : 0 ≤ correctionMetricEnvelope R CI := |
| 232 | sobolevCoefficientAmplitude_nonneg 6 (4*R) (3*CI*CI) (by positivity) (by positivity) |
| 233 | have hmX : 0 ≤ metricEnvelope X := hm0.trans hm |
| 234 | have hl : correctionLinearEnvelope R C1 CI ≤ linearEnvelope X := by |
| 235 | apply mul_le_mul_of_nonneg_left _ (by norm_num : (0 : ℝ) ≤ 2) |
| 236 | apply sobolevCoefficientAmplitude_mono_all 6 (by positivity) (by positivity) (by gcongr) |
| 237 | gcongr |
| 238 | have hq : correctionQuadraticEnvelope R C0 CI ≤ quadraticEnvelope X := by |
| 239 | apply mul_le_mul_of_nonneg_left _ (by norm_num : (0 : ℝ) ≤ 6) |
| 240 | apply sobolevCoefficientAmplitude_mono_all 6 (by positivity) (by positivity) (by gcongr) |
| 241 | gcongr |
| 242 | have hr : sobolevCoefficientRadius (Fin 4) (4*R) ≤ 64*X := by |
| 243 | simp only [sobolevCoefficientRadius,Fintype.card_fin,Nat.cast_ofNat, |
| 244 | max_eq_right (by norm_num : (1 : ℝ) ≤ 4)] |
| 245 | linarith |
| 246 | have hr0 : 0 ≤ sobolevCoefficientRadius (Fin 4) (4*R) := |
| 247 | sobolevCoefficientRadius_nonneg (4*R) (by positivity) |
| 248 | have hn : normalizedCoefficientRadius 6 (4*R) (3*CI*CI) ≤ |
| 249 | (1+metricEnvelope X)*(64*X) := by |
| 250 | apply mul_le_mul _ hr hr0 (by positivity) |
| 251 | apply max_le |
| 252 | · linarith |
| 253 | · exact hm.trans (by linarith) |
| 254 | have hrad : correctionCoefficientRadius R CI ≤ radiusEnvelope X := by |
| 255 | have hprod : 0 ≤ (1+metricEnvelope X)*(64*X) := by positivity |
| 256 | have h64 : 0 ≤ 64*X := by positivity |
| 257 | unfold correctionCoefficientRadius radiusEnvelope |
| 258 | apply max_le |
| 259 | · linarith |
| 260 | · apply max_le |
| 261 | · exact hn.trans (by linarith) |
| 262 | · exact hr.trans (by linarith) |
| 263 | have hp5 : pressureCost c (correctionMetricEnvelope R CI) 5 ≤ |
| 264 | pressureCost ((1+X)^2)⁻¹ (metricEnvelope X) 5 := |
| 265 | pressureCost_mono hc (by positivity) hm0 (by simpa only [inv_inv] using hci) hm 5 |
| 266 | have hp6 : pressureCost c (correctionMetricEnvelope R CI) 6 ≤ |
| 267 | pressureCost ((1+X)^2)⁻¹ (metricEnvelope X) 6 := |
| 268 | pressureCost_mono hc (by positivity) hm0 (by simpa only [inv_inv] using hci) hm 6 |
| 269 | have hp50 := pressureCost_nonneg ((1+X)^2)⁻¹ (metricEnvelope X) (by positivity) hmX 5 |
| 270 | have hp60 := pressureCost_nonneg ((1+X)^2)⁻¹ (metricEnvelope X) (by positivity) hmX 6 |
| 271 | have hp : correctionPressureEnvelope c R CI ≤ pressureEnvelope X := by |
| 272 | unfold correctionPressureEnvelope pressureEnvelope |
| 273 | exact max_le (by linarith) (max_le (by linarith) (by linarith)) |
| 274 | exact ⟨hrad,hp,hm,hl,hq⟩ |
| 275 | |
| 276 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 277 | (D : EulerTransversePacketProvider.Data U) (P : ℝ) [Fact (0 < P)] |
| 278 | |
| 279 | structure CorrectionBounds (Kc : CorrectionCoefficientBudget D P) (X : ℝ) : Prop where |
| 280 | inverse : D.inverseBound ≤ X |
| 281 | metric : inverseMetricBound D ≤ X |
| 282 | first : inverseMetricFirstBound D ≤ X |
| 283 | time : inverseMetricTimeBound D ≤ X |
| 284 | radius : Kc.Rc ≤ X |
| 285 | pressure : Kc.M ≤ X |
| 286 | base : Kc.B ≤ X |
| 287 | linear : Kc.A0 ≤ X |
| 288 | quadratic : Kc.A2 ≤ X |
| 289 | |
| 290 | theorem CorrectionBounds.mono {Kc : CorrectionCoefficientBudget D P} {X Y : ℝ} |
| 291 | (h : CorrectionBounds D P Kc X) (hXY : X ≤ Y) : CorrectionBounds D P Kc Y := |
| 292 | ⟨h.inverse.trans hXY,h.metric.trans hXY,h.first.trans hXY,h.time.trans hXY, |
| 293 | h.radius.trans hXY,h.pressure.trans hXY,h.base.trans hXY,h.linear.trans hXY,h.quadratic.trans hXY⟩ |
| 294 | |
| 295 | variable (R C0 C1 CI : ℝ) (hR : 0 ≤ R) (hC0 : 0 ≤ C0) (hC1 : 0 ≤ C1) (hCI : 0 ≤ CI) |
| 296 | (hF : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F.field t : Space → Space →L[ℝ] Space) x‖ ≤ C0*majorant R 0 n) |
| 297 | (hF1 : ∀ n t x, ‖iteratedFDeriv ℝ n (D.F₁.field t : Space → Space →L[ℝ] Space) x‖ ≤ C1*majorant R 0 n) |
| 298 | (hFI : ∀ n t x, ‖iteratedFDeriv ℝ n (D.FInv.field t : Space → Space →L[ℝ] Space) x‖ ≤ CI*majorant R 0 n) |
| 299 | |
| 300 | include hR hC0 hC1 hCI hF hF1 hFI |
| 301 | |
| 302 | theorem correctionBudget_bounds (X : ℝ) (hX : 1 ≤ X) |
| 303 | (hRX : R ≤ X) (hC0X : C0 ≤ X) (hC1X : C1 ≤ X) (hCIX : CI ≤ X) : |
| 304 | CorrectionBounds D P (correctionCoefficientBudget D P R C0 C1 CI hR hC0 hC1 hCI hF hF1 hFI) |
| 305 | (primitiveEnvelope P X) := by |
| 306 | have hX0 : 0 ≤ X := zero_le_one.trans hX |
| 307 | have hF0 : ∀ t x, ‖D.F.field t x‖ ≤ C0 := by |
| 308 | intro t x |
| 309 | simpa only [norm_iteratedFDeriv_zero,majorant,Nat.zero_add,Nat.factorial_zero, |
| 310 | Nat.cast_one,pow_zero,mul_one,one_pow] using hF 0 t x |
| 311 | have hsum : 1+C0 ≤ 1+X := by gcongr |
| 312 | have hci := (D.normalLower_inv_le_of_frame C0 hC0 hF0).trans |
| 313 | (pow_le_pow_left₀ (by positivity) hsum 2) |
| 314 | obtain ⟨hr,hp,hb,hl,hq⟩ := correction_envelopes D.normalLower R C0 C1 CI X |
| 315 | D.normalLower_pos hR hC0 hC1 hCI hRX hC0X hC1X hCIX hci |
| 316 | obtain ⟨_,hiX,hmX,hfX,htX,hbX,hlX,hqX,hrX,hpX,_,_⟩ := primitive_components P X hX0 |
| 317 | have hi : D.inverseBound ≤ 1+X := by |
| 318 | change 1+‖D.FInv.field‖ ≤ 1+X |
| 319 | have hn := (coefficientPath_norm_le_of_gevrey D.FInv R CI hCI hFI).trans hCIX |
| 320 | linarith |
| 321 | have hm : inverseMetricBound D ≤ X^2 := |
| 322 | (inverseMetricBound_le_source D R C0 hC0 hF).trans (pow_le_pow_left₀ hC0 hC0X 2) |
| 323 | have hf : inverseMetricFirstBound D ≤ 3*X*X*X := by |
| 324 | apply (inverseMetricFirstBound_le_source D R C0 hR hC0 hF).trans |
| 325 | gcongr |
| 326 | have ht : inverseMetricTimeBound D ≤ 2*X*X := by |
| 327 | apply (inverseMetricTimeBound_le_source D R C0 C1 hC0 hC1 hF hF1).trans |
| 328 | gcongr |
| 329 | exact ⟨hi.trans hiX,hm.trans hmX,hf.trans hfX,ht.trans htX, |
| 330 | hr.trans hrX,hp.trans hpX,hb.trans hbX,hl.trans hlX,hq.trans hqX⟩ |
| 331 | |
| 332 | end EulerPacketCorrectionPrimitive |
| 333 | |
| 334 | namespace EulerPacketCylinderField.CoefficientBudget |
| 335 | |
| 336 | open EulerPacketCorrectionPrimitive EulerParameterWordGevrey EulerCylinderPathProduct |
| 337 | |
| 338 | variable {P T : ℝ} [Fact (0 < P)] {O : EulerPacketProfileRecursion.Operators} |
| 339 | {C : CoefficientData P T O} (B : CoefficientBudget C) |
| 340 | |
| 341 | theorem primitive_bound (X : ℝ) (hX : 0 ≤ X) (hR : B.Rc ≤ X) (hC : B.amplitude ≤ X) : |
| 342 | B.multiplierCost ≤ primitiveEnvelope P X ∧ B.termCost ≤ primitiveEnvelope P X := by |
| 343 | have hb : B.multiplierCost ≤ multiplierEnvelope X := |
| 344 | mul_le_mul_of_nonneg_left |
| 345 | (sobolevCoefficientAmplitude_mono_all 6 B.Rc_nonneg B.amplitude_nonneg hR hC) (by norm_num) |
| 346 | have hc := productBlockConstant_nonneg P |
| 347 | have ht : B.termCost ≤ termEnvelope P X := by |
| 348 | unfold termCost slowCost termEnvelope |
| 349 | gcongr |
| 350 | obtain ⟨_,_,_,_,_,_,_,_,_,_,hmX,htX⟩ := primitive_components P X hX |
| 351 | exact ⟨hb.trans hmX,ht.trans htX⟩ |
| 352 | |
| 353 | end EulerPacketCylinderField.CoefficientBudget |