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.PacketFiveCostPolynomial |
| 2 | |
| 3 | /-! Uniform, explicit frequency guards for the actual packet correction. |
| 4 | A single polynomial source bound suffices simultaneously for all five |
| 5 | requirements. No eventual threshold is hidden in this statement. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketFiveCost |
| 10 | |
| 11 | open EulerPacketCorrectionConstants EulerPacketCorrectionCoefficients |
| 12 | EulerPacketCorrectionScalar EulerPacketCoarseMajorant EulerPacketCylinderField |
| 13 | EulerGevreyCorrectionBound EulerH6Nonlinear EulerCylinderSobolevSpace |
| 14 | |
| 15 | variable (P : ℝ) [Fact (0 < P)] |
| 16 | |
| 17 | theorem growthEnvelope_nonneg (X : ℝ) (hX : 0 ≤ X) : 0 ≤ growthEnvelope P X := by |
| 18 | have hv := velocity_nonneg X X X hX hX |
| 19 | have hp := productConstant_nonneg P 3 |
| 20 | have hs := sourceConstant_nonneg hX hX |
| 21 | have ht := transportConstant_nonneg P hX hX |
| 22 | have hl := lossConstant_nonneg P hX |
| 23 | have he := sobolevEmbeddingConstant_nonneg P 6 |
| 24 | unfold growthEnvelope rawGrowth |
| 25 | dsimp only |
| 26 | positivity |
| 27 | |
| 28 | theorem fiveEnvelope_components (X : ℝ) (hX : 0 ≤ X) : |
| 29 | tailPolynomialConstant X X X ≤ fiveEnvelope P X ∧ |
| 30 | X ≤ fiveEnvelope P X ∧ |
| 31 | 12*growthEnvelope P X*X ≤ fiveEnvelope P X ∧ |
| 32 | 8*growthEnvelope P X*X*drift X X X*inverseRadiusEnvelope X ≤ fiveEnvelope P X ∧ |
| 33 | 8*growthEnvelope P X*X*inverseRadiusEnvelope X ≤ fiveEnvelope P X := by |
| 34 | have ht := tailPolynomialConstant_nonneg X X X hX |
| 35 | have hg := growthEnvelope_nonneg P X hX |
| 36 | have hd := drift_nonneg X X X hX hX |
| 37 | have hi : 0 ≤ inverseRadiusEnvelope X := by unfold inverseRadiusEnvelope; positivity |
| 38 | have h₁ : 0 ≤ 12*growthEnvelope P X*X := by positivity |
| 39 | have h₂ : 0 ≤ 8*growthEnvelope P X*X*drift X X X*inverseRadiusEnvelope X := by positivity |
| 40 | have h₃ : 0 ≤ 8*growthEnvelope P X*X*inverseRadiusEnvelope X := by positivity |
| 41 | unfold fiveEnvelope |
| 42 | exact ⟨by linarith,by linarith,by linarith,by linarith,by linarith⟩ |
| 43 | |
| 44 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 45 | (D : EulerTransversePacketProvider.Data U) (Kc : CorrectionCoefficientBudget D P) |
| 46 | (R H C CT X : ℝ) (hX : 1 ≤ X) |
| 47 | (hR : 0 ≤ R) (hH : 0 ≤ H) (hC : 0 ≤ C) |
| 48 | (hRX : R ≤ X) (hHX : H ≤ X) (hCX : C ≤ X) (hCTX : CT ≤ X) |
| 49 | (hi : D.inverseBound ≤ X) (hm : inverseMetricBound D ≤ X) |
| 50 | (hf : inverseMetricFirstBound D ≤ X) (ht : inverseMetricTimeBound D ≤ X) |
| 51 | (hB : Kc.B ≤ X) (hM : Kc.M ≤ X) (hA0 : Kc.A0 ≤ X) (hA2 : Kc.A2 ≤ X) |
| 52 | (hRc : Kc.Rc ≤ X) (hT : D.T ≤ X) |
| 53 | |
| 54 | include hX hR hH hC hRX hHX hCX hCTX hi hm hf ht hB hM hA0 hA2 hRc hT |
| 55 | |
| 56 | theorem five_costs_bound : |
| 57 | tailPolynomialConstant R H CT ≤ costConstant P*X^(costPower P) ∧ |
| 58 | C ≤ costConstant P*X^(costPower P) ∧ |
| 59 | 12*growth D P Kc R H C*D.T ≤ costConstant P*X^(costPower P) ∧ |
| 60 | 8*growth D P Kc R H C*D.T*drift R H C/initialRadius R Kc.M Kc.Rc ≤ costConstant P*X^(costPower P) ∧ |
| 61 | 8*growth D P Kc R H C*D.T/initialRadius R Kc.M Kc.Rc ≤ costConstant P*X^(costPower P) := by |
| 62 | have hX0 : 0 ≤ X := zero_le_one.trans hX |
| 63 | have hT0 : 0 ≤ D.T := D.T_pos.le |
| 64 | have hg := growth_le_envelope P D Kc R H C X hR hH hC hRX hHX hCX hi hm hf ht hB hM hA0 hA2 |
| 65 | have hgp := (growth_pos D P Kc R H C hR hC).le |
| 66 | have hgX := growthEnvelope_nonneg P X hX0 |
| 67 | have hd := drift_mono hR hH hC hRX hHX hCX |
| 68 | have hdp := drift_nonneg R H C hR hC |
| 69 | have hdX := drift_nonneg X X X hX0 hX0 |
| 70 | have hρ := (initialRadius_bounds R Kc.M Kc.Rc hR (zero_le_one.trans Kc.M_one_le) Kc.Rc_nonneg).1 |
| 71 | have hiR : (initialRadius R Kc.M Kc.Rc)⁻¹ ≤ inverseRadiusEnvelope X := by |
| 72 | simp only [initialRadius,one_div,inv_inv] |
| 73 | unfold inverseRadiusEnvelope |
| 74 | have hprod := mul_le_mul hM hRc Kc.Rc_nonneg hX0 |
| 75 | nlinarith |
| 76 | have hp := fiveEnvelope_power P X hX |
| 77 | obtain ⟨hc₁,hc₂,hc₃,hc₄,hc₅⟩ := fiveEnvelope_components P X hX0 |
| 78 | refine ⟨?_,hCX.trans (hc₂.trans hp),?_,?_,?_⟩ |
| 79 | · apply le_trans _ (hc₁.trans hp) |
| 80 | unfold tailPolynomialConstant |
| 81 | gcongr |
| 82 | · apply le_trans _ (hc₃.trans hp) |
| 83 | gcongr |
| 84 | · apply le_trans _ (hc₄.trans hp) |
| 85 | rw [div_eq_mul_inv] |
| 86 | gcongr |
| 87 | · apply le_trans _ (hc₅.trans hp) |
| 88 | rw [div_eq_mul_inv] |
| 89 | gcongr |
| 90 | |
| 91 | /-- The literal source frequency assumptions follow from one explicit |
| 92 | polynomial comparison; the threshold does not depend on a chosen parent. -/ |
| 93 | theorem frequency_guards (k : ℝ) |
| 94 | (hbudget : costConstant P*X^(costPower P) ≤ EulerPacketSourceFrequency.smallPower k) : |
| 95 | tailPolynomialConstant R H CT ≤ EulerPacketSourceFrequency.smallPower k ∧ |
| 96 | C ≤ EulerPacketSourceFrequency.smallPower k ∧ |
| 97 | 12*growth D P Kc R H C*D.T ≤ EulerPacketSourceFrequency.smallPower k ∧ |
| 98 | 8*growth D P Kc R H C*D.T*drift R H C/initialRadius R Kc.M Kc.Rc ≤ EulerPacketSourceFrequency.smallPower k ∧ |
| 99 | 8*growth D P Kc R H C*D.T/initialRadius R Kc.M Kc.Rc ≤ EulerPacketSourceFrequency.smallPower k := by |
| 100 | obtain ⟨h₁,h₂,h₃,h₄,h₅⟩ := five_costs_bound P D Kc R H C CT X hX hR hH hC |
| 101 | hRX hHX hCX hCTX hi hm hf ht hB hM hA0 hA2 hRc hT |
| 102 | exact ⟨h₁.trans hbudget,h₂.trans hbudget,h₃.trans hbudget,h₄.trans hbudget,h₅.trans hbudget⟩ |
| 103 | |
| 104 | end EulerPacketFiveCost |