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.BoundedLipschitzFlow |
| 2 | import Mathlib.Analysis.InnerProductSpace.Calculus |
| 3 | |
| 4 | /-! A bounded quadratic vector field whose radial energy vanishes has |
| 5 | a genuine global flow on a real Hilbert space. Radial normalization |
| 6 | first gives a globally Lipschitz equation; its conserved norm then |
| 7 | removes the normalization by a constant rescaling of time. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerHilbertQuadraticFlow |
| 12 | |
| 13 | open Filter ContinuousLinearMap InnerProductSpace |
| 14 | open scoped Topology |
| 15 | |
| 16 | section Normed |
| 17 | |
| 18 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 19 | |
| 20 | def radial (x : E) : E := (1+‖x‖)⁻¹ • x |
| 21 | |
| 22 | theorem radial_norm (x : E) : ‖radial x‖ ≤ 1 := by |
| 23 | rw [radial,norm_smul,Real.norm_of_nonneg (inv_nonneg.mpr (by positivity)),← div_eq_inv_mul] |
| 24 | exact (div_le_one (by positivity)).mpr (by linarith [norm_nonneg x]) |
| 25 | |
| 26 | theorem radial_sub_norm (x y : E) : ‖radial x-radial y‖ ≤ 2*‖x-y‖ := by |
| 27 | have hx : 0 < 1+‖x‖ := by positivity |
| 28 | have hy : 0 < 1+‖y‖ := by positivity |
| 29 | have ha : 0 ≤ (1+‖x‖)⁻¹ := (inv_pos.mpr hx).le |
| 30 | have ha1 : (1+‖x‖)⁻¹ ≤ 1 := (inv_le_one₀ hx).mpr (by linarith [norm_nonneg x]) |
| 31 | have he : (1+‖x‖)⁻¹-(1+‖y‖)⁻¹ = |
| 32 | ((1+‖x‖)⁻¹*(‖y‖-‖x‖))*(1+‖y‖)⁻¹ := by |
| 33 | field_simp |
| 34 | ring |
| 35 | have hv : radial x-radial y = (1+‖x‖)⁻¹ • (x-y)+ |
| 36 | ((1+‖x‖)⁻¹*(‖y‖-‖x‖)) • radial y := by |
| 37 | calc |
| 38 | _ = (1+‖x‖)⁻¹ • (x-y)+((1+‖x‖)⁻¹-(1+‖y‖)⁻¹) • y := by |
| 39 | dsimp [radial] |
| 40 | module |
| 41 | _ = _ := by rw [he,radial,smul_smul] |
| 42 | have hd : |‖y‖-‖x‖| ≤ ‖x-y‖ := by |
| 43 | simpa only [norm_sub_rev] using abs_norm_sub_norm_le y x |
| 44 | rw [hv] |
| 45 | apply (norm_add_le _ _).trans |
| 46 | rw [norm_smul,norm_smul,Real.norm_of_nonneg ha,norm_mul, |
| 47 | Real.norm_of_nonneg ha,Real.norm_eq_abs] |
| 48 | have h1 : (1+‖x‖)⁻¹*‖x-y‖ ≤ ‖x-y‖ := |
| 49 | mul_le_of_le_one_left (norm_nonneg _) ha1 |
| 50 | have h2 : ((1+‖x‖)⁻¹*|‖y‖-‖x‖|)*‖radial y‖ ≤ ‖x-y‖ := by |
| 51 | calc |
| 52 | _ ≤ ((1+‖x‖)⁻¹*‖x-y‖)*1 := |
| 53 | mul_le_mul (mul_le_mul_of_nonneg_left hd ha) (radial_norm y) |
| 54 | (norm_nonneg _) (mul_nonneg ha (norm_nonneg _)) |
| 55 | _ ≤ _ := by simpa only [mul_one] using h1 |
| 56 | linarith |
| 57 | |
| 58 | theorem radial_lipschitz : LipschitzWith 2 (radial : E → E) := |
| 59 | lipschitzWith_iff_norm_sub_le.mpr radial_sub_norm |
| 60 | |
| 61 | def normalized (B : E →L[ℝ] E →L[ℝ] E) (x : E) : E := B (radial x) (radial x) |
| 62 | |
| 63 | theorem bilinear_bound (B : E →L[ℝ] E →L[ℝ] E) (x y : E) : |
| 64 | ‖B x y‖ ≤ ‖B‖*‖x‖*‖y‖ := |
| 65 | ((B x).le_opNorm y).trans (mul_le_mul_of_nonneg_right (B.le_opNorm x) (norm_nonneg y)) |
| 66 | |
| 67 | theorem normalized_lipschitz (B : E →L[ℝ] E →L[ℝ] E) : |
| 68 | LipschitzWith (4*‖B‖₊) (normalized B) := by |
| 69 | apply lipschitzWith_iff_norm_sub_le.mpr |
| 70 | intro x y |
| 71 | have he : normalized B x-normalized B y = |
| 72 | B (radial x-radial y) (radial x)+B (radial y) (radial x-radial y) := by |
| 73 | simp only [normalized,map_sub,sub_apply] |
| 74 | abel |
| 75 | rw [he] |
| 76 | apply (norm_add_le _ _).trans |
| 77 | have h1 : ‖B (radial x-radial y) (radial x)‖ ≤ ‖B‖*(2*‖x-y‖) := by |
| 78 | apply (bilinear_bound B _ _).trans |
| 79 | exact (mul_le_mul (mul_le_mul_of_nonneg_left (radial_sub_norm x y) (norm_nonneg B)) |
| 80 | (radial_norm x) (norm_nonneg _) (by positivity)).trans_eq (by ring) |
| 81 | have h2 : ‖B (radial y) (radial x-radial y)‖ ≤ ‖B‖*(2*‖x-y‖) := by |
| 82 | apply (bilinear_bound B _ _).trans |
| 83 | exact (mul_le_mul (mul_le_mul_of_nonneg_left (radial_norm y) (norm_nonneg B)) |
| 84 | (radial_sub_norm x y) (norm_nonneg _) (by positivity)).trans_eq (by ring) |
| 85 | exact (add_le_add h1 h2).trans_eq (by simp only [NNReal.coe_mul,NNReal.coe_ofNat,coe_nnnorm]; ring) |
| 86 | |
| 87 | theorem normalized_eq (B : E →L[ℝ] E →L[ℝ] E) (x : E) : |
| 88 | normalized B x=((1+‖x‖)⁻¹)^2 • B x x := by |
| 89 | simp only [normalized,radial,map_smul,smul_apply,smul_smul,pow_two] |
| 90 | |
| 91 | end Normed |
| 92 | |
| 93 | section Hilbert |
| 94 | |
| 95 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 96 | |
| 97 | theorem exists_global_quadratic (B : E →L[ℝ] E →L[ℝ] E) |
| 98 | (hB : ∀ x, ⟪x,B x x⟫_ℝ=0) (x : E) : |
| 99 | ∃ u : ℝ → E, u 0=x ∧ (∀ t, HasDerivAt u (B (u t) (u t)) t) ∧ |
| 100 | ∀ t, ‖u t‖=‖x‖ := by |
| 101 | have hc : Continuous (Function.uncurry (fun _t : ℝ => normalized B)) := |
| 102 | (normalized_lipschitz B).continuous.comp continuous_snd |
| 103 | obtain ⟨v,hv0,hv⟩ := EulerPacketExistence.exists_global_solution hc |
| 104 | (fun _t => normalized_lipschitz B) x |
| 105 | have hd (t : ℝ) : HasDerivAt (fun s => ‖v s‖^2) 0 t := by |
| 106 | have h := (hv t).norm_sq |
| 107 | simpa only [normalized_eq,real_inner_smul_right,hB,mul_zero] using h |
| 108 | have hn (t : ℝ) : ‖v t‖=‖x‖ := by |
| 109 | have he := is_const_of_deriv_eq_zero (fun s => (hd s).differentiableAt) |
| 110 | (fun s => (hd s).deriv) t 0 |
| 111 | rw [hv0] at he |
| 112 | nlinarith [norm_nonneg (v t),norm_nonneg x] |
| 113 | let c := (1+‖x‖)^2 |
| 114 | refine ⟨fun t => v (c*t),by simpa only [mul_zero] using hv0,?_,fun t => hn (c*t)⟩ |
| 115 | intro t |
| 116 | have hi : HasDerivAt (fun r : ℝ => c*r) c t := by |
| 117 | simpa only [id_eq,mul_one] using (hasDerivAt_id t).const_mul c |
| 118 | have h := (hv (c*t)).scomp t hi |
| 119 | have he : c • normalized B (v (c*t))=B (v (c*t)) (v (c*t)) := by |
| 120 | rw [normalized_eq,hn,smul_smul] |
| 121 | have hp : c*((1+‖x‖)⁻¹)^2=1 := by |
| 122 | dsimp [c] |
| 123 | field_simp |
| 124 | rw [hp,one_smul] |
| 125 | simpa only [he,Function.comp_def] using h |
| 126 | |
| 127 | end Hilbert |
| 128 | end EulerHilbertQuadraticFlow |