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.PacketBaseGuardScales |
| 2 | |
| 3 | /-! Numerical absorption in the sharp gradient and Hessian bounds, |
| 4 | and the common localized coercivity guard for all nested horizons. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerPacketLowBoundPropagation |
| 9 | |
| 10 | open Real EulerPacketBaseGuardScales |
| 11 | |
| 12 | theorem gradient_bound (CM hprev hchild g b e : ℝ) |
| 13 | (hCM : 4 ≤ CM) (hp : 1 ≤ hprev) (hc : 1 ≤ hchild) |
| 14 | (hscale : hprev^2 ≤ hchild/4) (hg : 4*g ≤ CM) |
| 15 | (hbad : hchild*b+e ≤ 1) : |
| 16 | CM*hprev+hchild*(g+b)+e ≤ CM*hchild := by |
| 17 | have hCM0 : 0 ≤ CM := by linarith only [hCM] |
| 18 | have hh : hprev ≤ hchild/4 := by nlinarith only [hp,hscale,sq_nonneg (hprev-1)] |
| 19 | have ho := mul_le_mul_of_nonneg_left hh hCM0 |
| 20 | have hgood := mul_le_mul_of_nonneg_right hg (zero_le_one.trans hc) |
| 21 | have hproduct : 4 ≤ CM*hchild := by nlinarith only [hCM,hc] |
| 22 | nlinarith only [ho,hgood,hbad,hproduct] |
| 23 | |
| 24 | theorem hessian_bound (CM CH hprev hold hchild g b e : ℝ) |
| 25 | (hCH : 4 ≤ CH) (hp : 1 ≤ hprev) (hc : 1 ≤ hchild) |
| 26 | (hhold : hold ≤ hprev) (hscale : hprev^2 ≤ hchild/4) |
| 27 | (hg : 8*CM*g ≤ CH) (hbad : 2*CM*hprev*hchild*b+e ≤ 1) : |
| 28 | CH*hprev*hold+2*CM*hprev*hchild*(g+b)+e ≤ CH*hchild*hprev := by |
| 29 | have hCH0 : 0 ≤ CH := by linarith only [hCH] |
| 30 | have hp0 := zero_le_one.trans hp |
| 31 | have hc0 := zero_le_one.trans hc |
| 32 | have hh := mul_le_mul_of_nonneg_left hhold (mul_nonneg hCH0 hp0) |
| 33 | have hs := mul_le_mul_of_nonneg_left hscale hCH0 |
| 34 | have hprod : 1 ≤ hchild*hprev := one_le_mul_of_one_le_of_one_le hc hp |
| 35 | have hprod0 := zero_le_one.trans hprod |
| 36 | have hgood := mul_le_mul_of_nonneg_right hg hprod0 |
| 37 | have hmon := mul_le_mul_of_nonneg_left hp (mul_nonneg hCH0 hc0) |
| 38 | have hproduct : 4 ≤ CH*(hchild*hprev) := by nlinarith only [hCH,hprod] |
| 39 | nlinarith only [hh,hs,hgood,hmon,hbad,hproduct] |
| 40 | |
| 41 | theorem localized_cost_le (J : ℕ) (X K Be Bc Kcap Becap CM Cboundary T : ℝ) |
| 42 | (hK : 0 ≤ K) (hBe : 0 ≤ Be) (hBc : 0 ≤ Bc) (hT : 0 ≤ T) |
| 43 | (hC : 0 ≤ Cboundary) (hr : 0 ≤ baseRadius X) |
| 44 | (hKT : K ≤ Kcap) (hBeT : Be ≤ Becap) (hBcT : Bc ≤ CM*X^1000+2) |
| 45 | (hTS : T ≤ baseHorizon J X) : |
| 46 | K*(T^2/2)+Be*T+Cboundary*Bc*(baseRadius X)^3*T ≤ |
| 47 | baseGuardCost J Kcap Becap CM Cboundary X := by |
| 48 | have hKcap0 := hK.trans hKT |
| 49 | have hBecap0 := hBe.trans hBeT |
| 50 | have hBccap0 := hBc.trans hBcT |
| 51 | unfold baseGuardCost |
| 52 | gcongr |
| 53 | |
| 54 | theorem localized_guard (J : ℕ) (X K Be Bc Kcap Becap CM Cboundary T : ℝ) |
| 55 | (hK : 0 ≤ K) (hBe : 0 ≤ Be) (hBc : 0 ≤ Bc) (hT : 0 ≤ T) |
| 56 | (hC : 0 ≤ Cboundary) (hr : 0 ≤ baseRadius X) |
| 57 | (hKT : K ≤ Kcap) (hBeT : Be ≤ Becap) (hBcT : Bc ≤ CM*X^1000+2) |
| 58 | (hTS : T ≤ baseHorizon J X) |
| 59 | (hbase : baseGuardCost J Kcap Becap CM Cboundary X ≤ 1/2) : |
| 60 | K*(T^2/2)+Be*T+Cboundary*Bc*(baseRadius X)^3*T ≤ 1/2 := |
| 61 | (localized_cost_le J X K Be Bc Kcap Becap CM Cboundary T |
| 62 | hK hBe hBc hT hC hr hKT hBeT hBcT hTS).trans hbase |
| 63 | |
| 64 | end EulerPacketLowBoundPropagation |