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 | nlinarith |
| 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 := by |
| 65 | exact nonpos_of_mul_nonpos_right hqt (Real.exp_pos _) |
| 66 | have hn : ‖w t‖ = 0 := by nlinarith [norm_nonneg (w t)] |
| 67 | exact norm_eq_zero.mp hn |
| 68 | |
| 69 | |
| 70 | /-- A field satisfying the stretching equation along a genuine trajectory |
| 71 | stays zero on that trajectory if it is initially zero. Coefficient |
| 72 | boundedness follows from continuity on the compact time interval. -/ |
| 73 | theorem transport_eq_zero_along_trajectory |
| 74 | (ω u : ℝ × E → E) (X : ℝ → E) (T : ℝ) |
| 75 | (hω : ContinuousOn ω (Icc 0 T ×ˢ (univ : Set E))) |
| 76 | (hX : ContinuousOn X (Icc 0 T)) |
| 77 | (hB : ContinuousOn (fun r => fderiv ℝ (fun x => u (r, x)) (X r)) (Icc 0 T)) |
| 78 | (hωdiff : ∀ r ∈ Ioo 0 T, DifferentiableAt ℝ ω (r, X r)) |
| 79 | (hmaterial : ∀ r ∈ Ioo 0 T, |
| 80 | fderiv ℝ ω (r, X r) (1, u (r, X r)) = |
| 81 | fderiv ℝ (fun x => u (r, x)) (X r) (ω (r, X r))) |
| 82 | (hXderiv : ∀ r ∈ Ioo 0 T, HasDerivAt X (u (r, X r)) r) |
| 83 | (hzero : ω (0, X 0) = 0) (t : ℝ) (ht : t ∈ Icc 0 T) : |
| 84 | ω (t, X t) = 0 := by |
| 85 | apply linearODE_eq_zero (fun r => ω (r, X r)) |
| 86 | (fun r => fderiv ℝ (fun x => u (r, x)) (X r)) T |
| 87 | · exact hω.comp (continuousOn_id.prodMk hX) (fun r hr => ⟨hr, mem_univ _⟩) |
| 88 | · exact hB |
| 89 | · intro r hr |
| 90 | have h := (hωdiff r hr).hasFDerivAt.comp_hasDerivAt r |
| 91 | ((hasDerivAt_id r).prodMk (hXderiv r hr)) |
| 92 | simpa only [Function.comp_def, id_eq, hmaterial r hr] using h |
| 93 | · exact hzero |
| 94 | · exact ht |
| 95 | |
| 96 | omit [InnerProductSpace ℝ E] in |
| 97 | /-- Compact initial support remains in its compact image whenever zero |
| 98 | initial values are propagated along every trajectory and the flow has a |
| 99 | right inverse at the specified time. -/ |
| 100 | theorem tsupport_subset_flow_image |
| 101 | (ω : ℝ → E → E) (X : ℝ → E → E) (Y : E → E) (t : ℝ) |
| 102 | (hc : HasCompactSupport (ω 0)) (hX : Continuous (X t)) |
| 103 | (hXY : ∀ x, X t (Y x) = x) |
| 104 | (hzero : ∀ a, ω 0 a = 0 → ω t (X t a) = 0) : |
| 105 | tsupport (ω t) ⊆ X t '' tsupport (ω 0) := by |
| 106 | apply closure_minimal _ (hc.image hX).isClosed |
| 107 | intro x hx |
| 108 | by_contra hnot |
| 109 | have hz : ω 0 (Y x) = 0 := by |
| 110 | by_contra hnz |
| 111 | exact hnot ⟨Y x, subset_tsupport _ hnz, hXY x⟩ |
| 112 | exact hx (by simpa only [hXY x] using hzero (Y x) hz) |
| 113 | |
| 114 | omit [InnerProductSpace ℝ E] in |
| 115 | /-- In particular each time slice has compact support. -/ |
| 116 | theorem hasCompactSupport_of_flow_image |
| 117 | (ω : ℝ → E → E) (X : ℝ → E → E) (Y : E → E) (t : ℝ) |
| 118 | (hc : HasCompactSupport (ω 0)) (hX : Continuous (X t)) |
| 119 | (hXY : ∀ x, X t (Y x) = x) |
| 120 | (hzero : ∀ a, ω 0 a = 0 → ω t (X t a) = 0) : |
| 121 | HasCompactSupport (ω t) := |
| 122 | (hc.image hX).of_isClosed_subset (isClosed_tsupport _) |
| 123 | (tsupport_subset_flow_image ω X Y t hc hX hXY hzero) |
| 124 | |
| 125 | end Euler.ComparatorBridge |