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 Mathlib.Analysis.InnerProductSpace.Calculus |
| 2 | import Mathlib.Analysis.SpecialFunctions.ExpDeriv |
| 3 | import Mathlib.Analysis.Calculus.Deriv.MeanValue |
| 4 | import Mathlib.Analysis.Calculus.Deriv.Prod |
| 5 | import Mathlib.Analysis.Normed.Group.Bounded |
| 6 | import Mathlib.Topology.Algebra.Support |
| 7 | |
| 8 | /-! |
| 9 | # Vorticity support along ordinary particle trajectories |
| 10 | |
| 11 | The ODE lemma only needs a bound on the coefficient along one compact |
| 12 | trajectory. It does not assume a spatially uniform bound on the velocity or |
| 13 | its derivatives. The transport theorem below uses an ordinary differential |
| 14 | equation for vorticity, not a prescribed support condition. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | |
| 19 | open Set InnerProductSpace |
| 20 | open scoped Topology |
| 21 | |
| 22 | namespace Euler.ComparatorBridge |
| 23 | |
| 24 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 25 | |
| 26 | /-- Uniqueness of the zero solution of a continuous linear ODE, allowing only |
| 27 | interior derivatives and continuity at the two endpoints. -/ |
| 28 | theorem linearODE_eq_zero (w : ℝ → E) (B : ℝ → E →L[ℝ] E) (T : ℝ) |
| 29 | (hw : ContinuousOn w (Icc 0 T)) |
| 30 | (hB : ContinuousOn B (Icc 0 T)) |
| 31 | (hd : ∀ t ∈ Ioo 0 T, HasDerivAt w (B t (w t)) t) |
| 32 | (hzero : w 0 = 0) (t : ℝ) (ht : t ∈ Icc 0 T) : w t = 0 := by |
| 33 | obtain ⟨K, hK⟩ := (isCompact_Icc.image_of_continuousOn hB).isBounded.exists_norm_le |
| 34 | let q : ℝ → ℝ := fun r => Real.exp (-(2 * K) * r) * ‖w r‖ ^ 2 |
| 35 | have hq : ContinuousOn q (Icc 0 T) := |
| 36 | (Real.continuous_exp.comp (continuous_const.mul continuous_id)).continuousOn.mul (hw.norm.pow 2) |
| 37 | have hqd (r : ℝ) (hr : r ∈ Ioo 0 T) : |
| 38 | HasDerivAt q |
| 39 | (Real.exp (-(2 * K) * r) * |
| 40 | (2 * ⟪w r, B r (w r)⟫_ℝ - 2 * K * ‖w r‖ ^ 2)) r := by |
| 41 | have h := (((hasDerivAt_id r).const_mul (-(2 * K))).exp).mul (hd r hr).norm_sq |
| 42 | convert! h using 1 |
| 43 | simp only [id_eq] |
| 44 | ring |
| 45 | have hanti : AntitoneOn q (Icc 0 T) := by |
| 46 | apply antitoneOn_of_deriv_nonpos (convex_Icc 0 T) hq |
| 47 | · intro r hr |
| 48 | exact (hqd r (by simpa only [interior_Icc] using hr)).differentiableAt.differentiableWithinAt |
| 49 | · intro r hr |
| 50 | have hr' : r ∈ Ioo 0 T := by simpa only [interior_Icc] using hr |
| 51 | rw [(hqd r hr').deriv] |
| 52 | apply mul_nonpos_of_nonneg_of_nonpos (Real.exp_pos _).le |
| 53 | have hnorm : ‖B r (w r)‖ ≤ K * ‖w r‖ := |
| 54 | ((B r).le_opNorm (w r)).trans |
| 55 | (mul_le_mul_of_nonneg_right (hK _ (mem_image_of_mem B ⟨hr'.1.le, hr'.2.le⟩)) |
| 56 | (norm_nonneg _)) |
| 57 | have hi := (real_inner_le_norm (w r) (B r (w r))).trans |
| 58 | (mul_le_mul_of_nonneg_left hnorm (norm_nonneg _)) |
| 59 | linarith |
| 60 | have hqt : q t ≤ 0 := by |
| 61 | have hz : (0 : ℝ) ∈ Icc 0 T := ⟨le_rfl, ht.1.trans ht.2⟩ |
| 62 | simpa only [q, hzero, norm_zero, zero_pow (by norm_num : 2 ≠ 0), mul_zero] using |
| 63 | hanti hz ht ht.1 |
| 64 | have hsq : ‖w t‖ ^ 2 ≤ 0 := nonpos_of_mul_nonpos_right hqt (Real.exp_pos _) |
| 65 | have hn : ‖w t‖ = 0 := by nlinarith [norm_nonneg (w t)] |
| 66 | exact norm_eq_zero.mp hn |
| 67 | |
| 68 | |
| 69 | /-- A field satisfying the stretching equation along a genuine trajectory |
| 70 | stays zero on that trajectory if it is initially zero. Coefficient |
| 71 | boundedness follows from continuity on the compact time interval. -/ |
| 72 | theorem transport_eq_zero_along_trajectory |
| 73 | (ω u : ℝ × E → E) (X : ℝ → E) (T : ℝ) |
| 74 | (hω : ContinuousOn ω (Icc 0 T ×ˢ (univ : Set E))) |
| 75 | (hX : ContinuousOn X (Icc 0 T)) |
| 76 | (hB : ContinuousOn (fun r => fderiv ℝ (fun x => u (r, x)) (X r)) (Icc 0 T)) |
| 77 | (hωdiff : ∀ r ∈ Ioo 0 T, DifferentiableAt ℝ ω (r, X r)) |
| 78 | (hmaterial : ∀ r ∈ Ioo 0 T, |
| 79 | fderiv ℝ ω (r, X r) (1, u (r, X r)) = |
| 80 | fderiv ℝ (fun x => u (r, x)) (X r) (ω (r, X r))) |
| 81 | (hXderiv : ∀ r ∈ Ioo 0 T, HasDerivAt X (u (r, X r)) r) |
| 82 | (hzero : ω (0, X 0) = 0) (t : ℝ) (ht : t ∈ Icc 0 T) : |
| 83 | ω (t, X t) = 0 := by |
| 84 | apply linearODE_eq_zero (fun r => ω (r, X r)) |
| 85 | (fun r => fderiv ℝ (fun x => u (r, x)) (X r)) T |
| 86 | · exact hω.comp (continuousOn_id.prodMk hX) (fun r hr => ⟨hr, mem_univ _⟩) |
| 87 | · exact hB |
| 88 | · intro r hr |
| 89 | have h := (hωdiff r hr).hasFDerivAt.comp_hasDerivAt r |
| 90 | ((hasDerivAt_id r).prodMk (hXderiv r hr)) |
| 91 | simpa only [Function.comp_def, id_eq, hmaterial r hr] using h |
| 92 | · exact hzero |
| 93 | · exact ht |
| 94 | |
| 95 | end Euler.ComparatorBridge |