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.InitialTimePrimitive |
| 2 | import Euler.TimeH1FieldProduct |
| 3 | import Euler.TimeWeakDerivative |
| 4 | |
| 5 | /-! |
| 6 | Initial-zero versions of the actual H¹ product and reconstruction lemmas. |
| 7 | These permit nonzero terminal values and hence explicit affine coordinate |
| 8 | lifts in the fixed-space endpoint problem. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace EulerInitialTimePrimitive |
| 14 | |
| 15 | open MeasureTheory Set ContinuousLinearMap EulerTimeLp EulerTerminalTimePrimitive |
| 16 | EulerVolterraConvolution EulerTimeH1OperatorProduct EulerTimeH1FieldProduct |
| 17 | EulerTimeWeakDerivative |
| 18 | |
| 19 | variable {E F : Type*} |
| 20 | [NormedAddCommGroup E] [NormedSpace ℝ E] [CompleteSpace E] |
| 21 | [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] |
| 22 | |
| 23 | theorem eq_initialRealPrimitive_of_ac_hasDerivAt_ae |
| 24 | (T : ℝ) (hT : 0 ≤ T) (u : TimeLp T E) (η : ℝ → E) |
| 25 | (hη : AbsolutelyContinuousOnInterval η 0 T) |
| 26 | (hder : ∀ᵐ t ∂timeMeasure T, HasDerivAt η (u t) t) |
| 27 | (hzero : η 0 = 0) (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : |
| 28 | η t = initialRealPrimitive T u t := by |
| 29 | have hd : ∀ᵐ s ∂timeMeasure T, HasDerivAt (fun r => η r - η T) (u s) s := by |
| 30 | filter_upwards [hder] with s hs |
| 31 | exact hs.sub_const _ |
| 32 | have he := eq_realPrimitive_of_ac_hasDerivAt_ae T hT u (fun r => η r - η T) |
| 33 | (hη.sub ((LipschitzWith.const (η T)).lipschitzOnWith.absolutelyContinuousOnInterval)) |
| 34 | hd (sub_self _) |
| 35 | have h₀ := he 0 ⟨le_rfl, hT⟩ |
| 36 | change η t = realPrimitive T u t - realPrimitive T u 0 |
| 37 | rw [← he t ht, ← h₀, hzero] |
| 38 | abel |
| 39 | |
| 40 | omit [CompleteSpace E] in |
| 41 | theorem initialPrimitiveTimeLp_eq_primitive_of_trace_zero |
| 42 | (T : ℝ) (hT : 0 ≤ T) (u : TimeLp T E) (hu : initialTrace T hT u = 0) : |
| 43 | initialPrimitiveTimeLp T hT u = primitiveTimeLp T hT u := by |
| 44 | have h₀ : realPrimitive T u 0 = 0 := hu |
| 45 | apply Lp.ext |
| 46 | filter_upwards [initialPrimitiveTimeLp_ae T hT u, primitiveTimeLp_ae T hT u] |
| 47 | with t hi ht |
| 48 | rw [hi, ht, initialRealPrimitive, h₀, sub_zero] |
| 49 | |
| 50 | variable (T : ℝ) (hT : 0 ≤ T) (A A₁ : C(Icc (0 : ℝ) T, E →L[ℝ] F)) |
| 51 | |
| 52 | def initialProductDerivative : TimeLp T E →L[ℝ] TimeLp T F := |
| 53 | (timeMultiplier T hT A₁).comp (initialPrimitiveTimeLp T hT) + timeMultiplier T hT A |
| 54 | |
| 55 | def initialProductPrimitive (u : TimeLp T E) (t : ℝ) : F := |
| 56 | extendPath T hT A t (initialRealPrimitive T u t) |
| 57 | |
| 58 | omit [CompleteSpace E] [CompleteSpace F] in |
| 59 | theorem initialProductDerivative_ae (u : TimeLp T E) : |
| 60 | (initialProductDerivative T hT A A₁ u : ℝ → F) =ᵐ[timeMeasure T] |
| 61 | fun t => extendPath T hT A₁ t (initialRealPrimitive T u t) + extendPath T hT A t (u t) := by |
| 62 | filter_upwards [fieldProductDerivative_ae T hT A A₁ (initialPrimitiveTimeLp T hT u) u, |
| 63 | initialPrimitiveTimeLp_ae T hT u] with t hd hu |
| 64 | change fieldProductDerivative T hT A A₁ (initialPrimitiveTimeLp T hT u) u t = _ |
| 65 | rw [hd, hu] |
| 66 | |
| 67 | variable (hd : ∀ t : Icc (0 : ℝ) T, |
| 68 | HasDerivWithinAt (extendPath T hT A) (A₁ t) (Icc (0 : ℝ) T) t) |
| 69 | |
| 70 | include hd in |
| 71 | omit [CompleteSpace E] [CompleteSpace F] in |
| 72 | theorem initialProductPrimitive_absolutelyContinuous (u : TimeLp T E) : |
| 73 | AbsolutelyContinuousOnInterval (initialProductPrimitive T hT A u) 0 T := |
| 74 | clm_apply_absolutelyContinuous (operatorPath_absolutelyContinuous T hT A A₁ hd) |
| 75 | (initialRealPrimitive_absolutelyContinuous T u) |
| 76 | |
| 77 | include hd in |
| 78 | omit [CompleteSpace F] in |
| 79 | theorem initialProductPrimitive_hasDerivAt_ae (u : TimeLp T E) : |
| 80 | ∀ᵐ t ∂timeMeasure T, |
| 81 | HasDerivAt (initialProductPrimitive T hT A u) (initialProductDerivative T hT A A₁ u t) t := |
| 82 | fieldProduct_hasDerivAt_ae T hT A A₁ hd (initialPrimitiveTimeLp T hT u) u |
| 83 | (initialRealPrimitive T u) (initialPrimitiveTimeLp_ae T hT u) |
| 84 | (initialRealPrimitive_hasDerivAt_ae T u) |
| 85 | |
| 86 | include hd in |
| 87 | theorem initialPrimitive_initialProductDerivative (u : TimeLp T E) (t : Icc (0 : ℝ) T) : |
| 88 | initialPrimitive T hT (initialProductDerivative T hT A A₁ u) t = |
| 89 | A t (initialPrimitive T hT u t) := by |
| 90 | have he := eq_initialRealPrimitive_of_ac_hasDerivAt_ae T hT |
| 91 | (initialProductDerivative T hT A A₁ u) (initialProductPrimitive T hT A u) |
| 92 | (initialProductPrimitive_absolutelyContinuous T hT A A₁ hd u) |
| 93 | (initialProductPrimitive_hasDerivAt_ae T hT A A₁ hd u) |
| 94 | (by simp only [initialProductPrimitive, initialRealPrimitive_initial, map_zero]) t t.property |
| 95 | simpa only [initialProductPrimitive, extendPath, projIcc_of_mem hT t.property, |
| 96 | initialPrimitive_apply] using he.symm |
| 97 | |
| 98 | omit [CompleteSpace E] [CompleteSpace F] in |
| 99 | theorem initialProductDerivative_eq_product_of_trace_zero (u : TimeLp T E) |
| 100 | (hu : initialTrace T hT u = 0) : |
| 101 | initialProductDerivative T hT A A₁ u = productDerivative T hT A A₁ u := by |
| 102 | change timeMultiplier T hT A₁ (initialPrimitiveTimeLp T hT u) + timeMultiplier T hT A u = _ |
| 103 | rw [initialPrimitiveTimeLp_eq_primitive_of_trace_zero T hT u hu] |
| 104 | rfl |
| 105 | |
| 106 | /-- Constants embedded as a genuine bounded operator into time L². -/ |
| 107 | def constantFieldOperator : E →L[ℝ] TimeLp T E := |
| 108 | (pathLpOperator T hT).comp (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)) |
| 109 | |
| 110 | omit [CompleteSpace E] in |
| 111 | theorem constantFieldOperator_ae (x : E) : |
| 112 | (constantFieldOperator T hT x : ℝ → E) =ᵐ[timeMeasure T] fun _ => x := |
| 113 | pathLp_ae T hT (ContinuousMap.const (Icc (0 : ℝ) T) x) |
| 114 | |
| 115 | theorem initialPrimitive_constantFieldOperator (x : E) (t : Icc (0 : ℝ) T) : |
| 116 | initialPrimitive T hT (constantFieldOperator T hT x) t = (t : ℝ) • x := by |
| 117 | have hlin : AbsolutelyContinuousOnInterval (fun s : ℝ => s • x) 0 T := |
| 118 | (toSpanSingleton ℝ x).lipschitzWith.lipschitzOnWith.absolutelyContinuousOnInterval |
| 119 | apply Eq.symm |
| 120 | apply eq_initialRealPrimitive_of_ac_hasDerivAt_ae T hT (constantFieldOperator T hT x) |
| 121 | (fun s : ℝ => s • x) hlin _ (zero_smul ℝ x) t t.property |
| 122 | filter_upwards [constantFieldOperator_ae T hT x] with s hs |
| 123 | rw [hs] |
| 124 | simpa only [id_eq, one_smul] using (hasDerivAt_id s).smul_const x |
| 125 | |
| 126 | end EulerInitialTimePrimitive |