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.PacketPrimaryGradeBounds |
| 2 | import Euler.TransversePacketPrimaryRadius |
| 3 | |
| 4 | /-! The primary grade imposes only finitely many fixed lower bounds on the |
| 5 | external radius. Enlarging it leaves the time profile and every source cost |
| 6 | unchanged, including the terminal amplitude before its scalar multiplier. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerTransversePacketPrimary.Budget |
| 11 | |
| 12 | open EulerTransversePacketProvider |
| 13 | |
| 14 | variable {P : ℝ} |
| 15 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 16 | {D : Data U} {τ : ℝ} {hτ : 0 < τ} {hτT : τ < D.T} |
| 17 | {B : HistoryData (D.initial τ hτ hτT.le)} |
| 18 | {L : EulerTransversePacketJoin.Budget D τ hτ hτT B (Fin 4) 6} |
| 19 | (H : Budget L) (N : EulerTransversePacketJoin.NormalBudget D 6 L.R) |
| 20 | (C : ℝ) |
| 21 | |
| 22 | def gradeRadius : ℝ := |
| 23 | max L.R (max (H.commonCost*C) (max (H.correctorAmplitude (P := P) N*C) |
| 24 | (max (H.correctorTimeAmplitude (P := P) N*C) (3*H.pressureAmplitude (P := P) N*C)))) |
| 25 | |
| 26 | theorem gradeRadius_bounds : |
| 27 | L.R ≤ H.gradeRadius (P := P) N C ∧ |
| 28 | H.commonCost*C ≤ H.gradeRadius (P := P) N C ∧ |
| 29 | H.correctorAmplitude (P := P) N*C ≤ H.gradeRadius (P := P) N C ∧ |
| 30 | H.correctorTimeAmplitude (P := P) N*C ≤ H.gradeRadius (P := P) N C ∧ |
| 31 | 3*H.pressureAmplitude (P := P) N*C ≤ H.gradeRadius (P := P) N C := by |
| 32 | unfold gradeRadius |
| 33 | exact ⟨le_max_left _ _, (le_max_left _ _).trans (le_max_right _ _), |
| 34 | (le_max_left _ _).trans ((le_max_right _ _).trans (le_max_right _ _)), |
| 35 | (le_max_left _ _).trans ((le_max_right _ _).trans |
| 36 | ((le_max_right _ _).trans (le_max_right _ _))), |
| 37 | (le_max_right _ _).trans ((le_max_right _ _).trans |
| 38 | ((le_max_right _ _).trans (le_max_right _ _)))⟩ |
| 39 | |
| 40 | theorem gradeRadius_guards (hC : 0 ≤ C) (R' : ℝ) |
| 41 | (hR : H.gradeRadius (P := P) N C ≤ R') : |
| 42 | ∃ h : L.R ≤ R', GradeGuards (P := P) (H.enlargeRadius R' h) |
| 43 | (N.enlargeRadius R' h) C := by |
| 44 | have hb := H.gradeRadius_bounds (P := P) N C |
| 45 | refine ⟨hb.1.trans hR, ?_⟩ |
| 46 | exact ⟨hC, hb.2.1.trans hR, hb.2.2.1.trans hR, |
| 47 | hb.2.2.2.1.trans hR, hb.2.2.2.2.trans hR⟩ |
| 48 | |
| 49 | /-- An arbitrary extra requirement can be included without changing any |
| 50 | source cost or the primary time profile. -/ |
| 51 | theorem exists_grade_radius (hC : 0 ≤ C) (extra : ℝ) : |
| 52 | ∃ R' : ℝ, extra ≤ R' ∧ ∃ h : L.R ≤ R', |
| 53 | GradeGuards (P := P) (H.enlargeRadius R' h) (N.enlargeRadius R' h) C := |
| 54 | ⟨max extra (H.gradeRadius (P := P) N C), le_max_left _ _, |
| 55 | H.gradeRadius_guards N C hC _ (le_max_right _ _)⟩ |
| 56 | |
| 57 | namespace GradeGuards |
| 58 | |
| 59 | variable {H N C} |
| 60 | |
| 61 | theorem enlargeRadius (W : GradeGuards (P := P) H N C) (R' : ℝ) (h : L.R ≤ R') : |
| 62 | GradeGuards (P := P) (H.enlargeRadius R' h) (N.enlargeRadius R' h) C := |
| 63 | ⟨W.terminal_nonneg, W.common.trans h, W.corrector.trans h, |
| 64 | W.correctorTime.trans h, W.pressureGradient.trans h⟩ |
| 65 | |
| 66 | end GradeGuards |
| 67 | end EulerTransversePacketPrimary.Budget |