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.BasePacketSetup |
| 2 | import Euler.PacketFirstLowBounds |
| 3 | import Euler.PacketGeometryLowBounds |
| 4 | |
| 5 | /-! Fixed low-order constants are chosen before the stage and base scale. |
| 6 | Their slack absorbs the universal good-time and first-packet ratios. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerPacketLowConstants |
| 11 | |
| 12 | open EulerBaseDatum EulerPacketFirstLowBounds EulerPacketGeometryLowBounds |
| 13 | |
| 14 | def gradientConstant : ℝ := 8*(1+initialCoefficientCost+firstRatio+goodRatio) |
| 15 | def hessianConstant : ℝ := 8*(1+initialCoefficientCost+2*gradientConstant*(firstRatio+goodRatio)) |
| 16 | def frameConstant : ℝ := 1+gradientConstant+hessianConstant |
| 17 | |
| 18 | theorem gradient_properties : 4 ≤ gradientConstant ∧ |
| 19 | initialCoefficientCost+firstRatio+1 ≤ gradientConstant ∧ 4*goodRatio ≤ gradientConstant := by |
| 20 | have h0 := initialCoefficientCost_nonneg |
| 21 | have h1 := firstRatio_pos |
| 22 | have h2 := goodRatio_pos |
| 23 | unfold gradientConstant |
| 24 | exact ⟨by linarith,by linarith,by linarith⟩ |
| 25 | |
| 26 | theorem gradient_nonneg : 0 ≤ gradientConstant := (by norm_num : (0 : ℝ) ≤ 4).trans gradient_properties.1 |
| 27 | |
| 28 | theorem hessian_properties : 4 ≤ hessianConstant ∧ |
| 29 | initialCoefficientCost+2*initialCoefficientCost*firstRatio+1 ≤ hessianConstant ∧ |
| 30 | 8*gradientConstant*goodRatio ≤ hessianConstant := by |
| 31 | have h0 := initialCoefficientCost_nonneg |
| 32 | have h1 := firstRatio_pos |
| 33 | have h2 := goodRatio_pos |
| 34 | have hM := gradient_properties.2.1 |
| 35 | have hMc : initialCoefficientCost ≤ gradientConstant := by linarith only [hM,h1] |
| 36 | have h0M := gradient_nonneg |
| 37 | have hf := mul_le_mul_of_nonneg_right hMc h1.le |
| 38 | have hff := mul_nonneg h0M h1.le |
| 39 | have hfg := mul_nonneg h0M h2.le |
| 40 | unfold hessianConstant |
| 41 | exact ⟨by nlinarith,by nlinarith,by nlinarith⟩ |
| 42 | |
| 43 | theorem hessian_nonneg : 0 ≤ hessianConstant := (by norm_num : (0 : ℝ) ≤ 4).trans hessian_properties.1 |
| 44 | |
| 45 | theorem frame_properties : 1 ≤ frameConstant ∧ gradientConstant ≤ frameConstant ∧ |
| 46 | gradientConstant^2+hessianConstant ≤ frameConstant^2 := by |
| 47 | have hm := gradient_nonneg |
| 48 | have hh := hessian_nonneg |
| 49 | unfold frameConstant |
| 50 | exact ⟨by linarith,by linarith,by nlinarith [sq_nonneg hessianConstant]⟩ |
| 51 | |
| 52 | theorem initial_bounds (h e : ℝ) (hh : 1 ≤ h) (he : e ≤ 1) : |
| 53 | initialCoefficientCost+h*firstRatio+e ≤ gradientConstant*h ∧ |
| 54 | initialCoefficientCost+2*initialCoefficientCost*(h*firstRatio)+e ≤ hessianConstant*h := by |
| 55 | have h0 := initialCoefficientCost_nonneg |
| 56 | have hc := mul_le_mul_of_nonneg_left hh h0 |
| 57 | have hm := mul_le_mul_of_nonneg_right gradient_properties.2.1 (zero_le_one.trans hh) |
| 58 | have hH := mul_le_mul_of_nonneg_right hessian_properties.2.1 (zero_le_one.trans hh) |
| 59 | constructor <;> nlinarith only [hc,hm,hH,hh,he] |
| 60 | |
| 61 | end EulerPacketLowConstants |