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.TerminalTimePrimitive |
| 2 | |
| 3 | /-! |
| 4 | # Quantitative pointwise bounds for genuine time-H¹ representatives |
| 5 | |
| 6 | Absolute continuity and the actual Bochner L² derivative give exact integral |
| 7 | increments, square-root continuity, and initial/terminal trace bounds. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerTimeH1PointwiseBounds |
| 13 | |
| 14 | open MeasureTheory Set EulerTimeLp EulerTerminalTimePrimitive |
| 15 | |
| 16 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 17 | |
| 18 | variable (T : ℝ) (hT : 0 ≤ T) (g : TimeLp T E) (η : ℝ → E) |
| 19 | (hη : AbsolutelyContinuousOnInterval η 0 T) |
| 20 | (hder : ∀ᵐ t ∂timeMeasure T, HasDerivAt η (g t) t) |
| 21 | |
| 22 | include hT hη hder in |
| 23 | /-- The terminal primitive plus the actual terminal value reconstructs any H¹ representative. -/ |
| 24 | theorem eq_primitive_add_terminal (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : |
| 25 | η t = realPrimitive T g t + η T := by |
| 26 | have hsub : AbsolutelyContinuousOnInterval (fun r => η r-η T) 0 T := |
| 27 | hη.sub ((LipschitzWith.const (η T)).lipschitzOnWith.absolutelyContinuousOnInterval) |
| 28 | have hdsub : ∀ᵐ r ∂timeMeasure T, HasDerivAt (fun s => η s-η T) (g r) r := by |
| 29 | filter_upwards [hder] with r hr |
| 30 | exact hr.sub_const (η T) |
| 31 | have h := eq_realPrimitive_of_ac_hasDerivAt_ae T hT g (fun r => η r-η T) |
| 32 | hsub hdsub (sub_self _) t ht |
| 33 | exact sub_eq_iff_eq_add.mp h |
| 34 | |
| 35 | include hT hη hder in |
| 36 | /-- The increment is the actual integral of the L² derivative's zero extension. -/ |
| 37 | theorem increment_eq_integral (s t : ℝ) (hs : s ∈ Icc (0 : ℝ) T) (ht : t ∈ Icc (0 : ℝ) T) : |
| 38 | η t-η s = ∫ r in s..t, zeroExtension T g r := by |
| 39 | calc |
| 40 | η t-η s = (realPrimitive T g t+η T)-(realPrimitive T g s+η T) := |
| 41 | congrArg₂ (fun x y : E => x-y) |
| 42 | (eq_primitive_add_terminal T hT g η hη hder t ht) |
| 43 | (eq_primitive_add_terminal T hT g η hη hder s hs) |
| 44 | _ = realPrimitive T g t-realPrimitive T g s := by abel |
| 45 | _ = ∫ r in s..t, zeroExtension T g r := realPrimitive_increment T g s t |
| 46 | |
| 47 | include hT hη hder in |
| 48 | /-- The exact square-root modulus follows from Bochner Cauchy--Schwarz. -/ |
| 49 | theorem increment_norm_sq_le (s t : ℝ) (hs : s ∈ Icc (0 : ℝ) T) |
| 50 | (ht : t ∈ Icc (0 : ℝ) T) (hst : s ≤ t) : |
| 51 | ‖η t-η s‖^2 ≤ (t-s)*‖g‖^2 := by |
| 52 | have hlocal := norm_integral_sq_le_length_mul (zeroExtension T g) hst |
| 53 | (zeroExtension_integrable T g).intervalIntegrable |
| 54 | (zeroExtension_norm_sq_integrable T g).intervalIntegrable |
| 55 | have hmono : (∫ r in s..t, ‖zeroExtension T g r‖^2) ≤ ‖g‖^2 := by |
| 56 | rw [intervalIntegral.integral_of_le hst] |
| 57 | exact (setIntegral_le_integral (zeroExtension_norm_sq_integrable T g) |
| 58 | (Filter.Eventually.of_forall (fun r => sq_nonneg ‖zeroExtension T g r‖))).trans_eq |
| 59 | (zeroExtension_norm_sq_integral T g) |
| 60 | calc |
| 61 | ‖η t-η s‖^2 = ‖∫ r in s..t, zeroExtension T g r‖^2 := |
| 62 | congrArg (fun x : E => ‖x‖^2) (increment_eq_integral T hT g η hη hder s t hs ht) |
| 63 | _ ≤ (t-s)*(∫ r in s..t, ‖zeroExtension T g r‖^2) := hlocal |
| 64 | _ ≤ (t-s)*‖g‖^2 := mul_le_mul_of_nonneg_left hmono (sub_nonneg.mpr hst) |
| 65 | |
| 66 | include hT hη hder in |
| 67 | /-- A genuine H¹ path has the quantitative square-root continuity bound. -/ |
| 68 | theorem increment_norm_le (s t : ℝ) (hs : s ∈ Icc (0 : ℝ) T) |
| 69 | (ht : t ∈ Icc (0 : ℝ) T) (hst : s ≤ t) : |
| 70 | ‖η t-η s‖ ≤ Real.sqrt (t-s)*‖g‖ := by |
| 71 | apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (Real.sqrt_nonneg _) (norm_nonneg _))).1 |
| 72 | rw [mul_pow, Real.sq_sqrt (sub_nonneg.mpr hst)] |
| 73 | exact increment_norm_sq_le T hT g η hη hder s t hs ht hst |
| 74 | |
| 75 | include hT hη hder in |
| 76 | /-- The actual initial trace and L² derivative control the whole time path. -/ |
| 77 | theorem norm_le_initial_add (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : |
| 78 | ‖η t‖ ≤ ‖η 0‖+Real.sqrt t*‖g‖ := by |
| 79 | have hi := increment_norm_le T hT g η hη hder 0 t ⟨le_rfl, hT⟩ ht ht.1 |
| 80 | simp only [sub_zero] at hi |
| 81 | calc |
| 82 | ‖η t‖ = ‖(η t-η 0)+η 0‖ := congrArg norm (sub_add_cancel (η t) (η 0)).symm |
| 83 | _ ≤ ‖η t-η 0‖+‖η 0‖ := norm_add_le _ _ |
| 84 | _ ≤ Real.sqrt t*‖g‖+‖η 0‖ := add_le_add hi le_rfl |
| 85 | _ = ‖η 0‖+Real.sqrt t*‖g‖ := add_comm _ _ |
| 86 | |
| 87 | include hT hη hder in |
| 88 | /-- The uniform-in-time version needed by fixed-index inverse estimates. -/ |
| 89 | theorem norm_le_initial_add_uniform (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : |
| 90 | ‖η t‖ ≤ ‖η 0‖+Real.sqrt T*‖g‖ := |
| 91 | (norm_le_initial_add T hT g η hη hder t ht).trans |
| 92 | (add_le_add le_rfl (mul_le_mul_of_nonneg_right (Real.sqrt_le_sqrt ht.2) (norm_nonneg g))) |
| 93 | |
| 94 | include hT hη hder in |
| 95 | /-- The actual terminal trace has the corresponding backward-in-time bound. -/ |
| 96 | theorem norm_le_terminal_add (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : |
| 97 | ‖η t‖ ≤ ‖η T‖+Real.sqrt (T-t)*‖g‖ := by |
| 98 | have he := eq_primitive_add_terminal T hT g η hη hder t ht |
| 99 | calc |
| 100 | ‖η t‖ = ‖realPrimitive T g t+η T‖ := congrArg norm he |
| 101 | _ ≤ ‖realPrimitive T g t‖+‖η T‖ := norm_add_le _ _ |
| 102 | _ ≤ Real.sqrt (T-t)*‖g‖+‖η T‖ := add_le_add (realPrimitive_norm_le T g t ht) le_rfl |
| 103 | _ = ‖η T‖+Real.sqrt (T-t)*‖g‖ := add_comm _ _ |
| 104 | |
| 105 | end EulerTimeH1PointwiseBounds |