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.TimeH1PointwiseBounds |
| 2 | import Euler.TimeWeakDerivative |
| 3 | import Euler.TimeLpCoefficientGevrey |
| 4 | |
| 5 | /-! |
| 6 | # A bounded reconstruction of genuine time-H¹ fields |
| 7 | |
| 8 | The pair of L² fields `(p,q)` determines a continuous path by |
| 9 | `mean(p) - mean(Jq) + Jq`. For an actual absolutely continuous representative |
| 10 | of `p` with derivative `q`, this is that representative. Thus parameter |
| 11 | derivatives and all-order bounds pass through one fixed bounded linear map. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open scoped ContDiff |
| 17 | |
| 18 | namespace EulerTimeH1Reconstruction |
| 19 | |
| 20 | open Set MeasureTheory ContinuousLinearMap EulerTimeLp EulerTerminalTimePrimitive |
| 21 | EulerTimeWeakDerivative EulerTimeH1PointwiseBounds EulerTimeLpCoefficientGevrey |
| 22 | EulerOperatorGevreyCalculus EulerGevrey |
| 23 | |
| 24 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 25 | |
| 26 | /-- The actual time average, expressed using the terminal primitive's initial trace. -/ |
| 27 | def mean (T : ℝ) (hT : 0 ≤ T) : TimeLp T E →L[ℝ] E := |
| 28 | (-T)⁻¹ • initialTrace T hT |
| 29 | |
| 30 | /-- The constant part of the reconstruction. -/ |
| 31 | def valuePart (T : ℝ) (hT : 0 ≤ T) : TimeLp T E →L[ℝ] C(Icc (0 : ℝ) T, E) := |
| 32 | (ContinuousLinearMap.const ℝ (Icc (0 : ℝ) T)).comp (mean T hT) |
| 33 | |
| 34 | /-- The mean-zero primitive part of the reconstruction. -/ |
| 35 | def derivativePart (T : ℝ) (hT : 0 ≤ T) : TimeLp T E →L[ℝ] C(Icc (0 : ℝ) T, E) := |
| 36 | terminalPrimitive T hT - (valuePart T hT).comp (primitiveTimeLp T hT) |
| 37 | |
| 38 | /-- One fixed bounded linear map from the value/derivative pair to its continuous representative. -/ |
| 39 | def reconstruction (T : ℝ) (hT : 0 ≤ T) : |
| 40 | (TimeLp T E × TimeLp T E) →L[ℝ] C(Icc (0 : ℝ) T, E) := |
| 41 | (valuePart T hT).comp (fst ℝ (TimeLp T E) (TimeLp T E)) + |
| 42 | (derivativePart T hT).comp (snd ℝ (TimeLp T E) (TimeLp T E)) |
| 43 | |
| 44 | omit [CompleteSpace E] in |
| 45 | /-- The reconstruction is the literal average plus mean-zero terminal primitive. -/ |
| 46 | theorem reconstruction_apply (T : ℝ) (hT : 0 ≤ T) (p q : TimeLp T E) |
| 47 | (t : Icc (0 : ℝ) T) : |
| 48 | reconstruction T hT (p,q) t = |
| 49 | mean T hT p + (terminalPrimitive T hT q t - mean T hT (primitiveTimeLp T hT q)) := rfl |
| 50 | |
| 51 | /-- Constant fields have their actual value as time average. -/ |
| 52 | theorem mean_constantField (T : ℝ) (hT : 0 < T) (v : E) : |
| 53 | mean T hT.le (constantField T hT.le v) = v := by |
| 54 | change (-T)⁻¹ • initialTrace T hT.le (constantField T hT.le v) = v |
| 55 | rw [initialTrace_constantField, smul_smul, inv_mul_cancel₀ (neg_ne_zero.mpr hT.ne'), one_smul] |
| 56 | |
| 57 | omit [CompleteSpace E] in |
| 58 | /-- The mean has the expected inverse-square-root time bound. -/ |
| 59 | theorem mean_norm_le (T : ℝ) (hT : 0 ≤ T) (p : TimeLp T E) : |
| 60 | ‖mean T hT p‖ ≤ (T⁻¹ * Real.sqrt T) * ‖p‖ := by |
| 61 | have htrace : ‖initialTrace T hT p‖ ≤ Real.sqrt T * ‖p‖ := |
| 62 | ((initialTrace (E := E) T hT).le_opNorm p).trans |
| 63 | (mul_le_mul_of_nonneg_right (initialTrace_norm_le (E := E) T hT) (norm_nonneg p)) |
| 64 | change ‖(-T)⁻¹ • initialTrace T hT p‖ ≤ _ |
| 65 | rw [norm_smul, norm_inv, norm_neg, Real.norm_of_nonneg hT] |
| 66 | exact (mul_le_mul_of_nonneg_left htrace (inv_nonneg.mpr hT)).trans_eq (mul_assoc _ _ _).symm |
| 67 | |
| 68 | omit [CompleteSpace E] in |
| 69 | /-- Uniform time evaluation is controlled by the actual L² value and derivative. -/ |
| 70 | theorem reconstruction_norm_le (T : ℝ) (hT : 0 < T) (p q : TimeLp T E) : |
| 71 | ‖reconstruction T hT.le (p,q)‖ ≤ |
| 72 | (T⁻¹ * Real.sqrt T) * ‖p‖ + (2 * Real.sqrt T) * ‖q‖ := by |
| 73 | have hJ : ‖primitiveTimeLp T hT.le q‖ ≤ T*‖q‖ := |
| 74 | ((primitiveTimeLp (E := E) T hT.le).le_opNorm q).trans |
| 75 | (mul_le_mul_of_nonneg_right (primitive_norm_le_time (E := E) T hT.le) (norm_nonneg q)) |
| 76 | have hmJ : ‖mean T hT.le (primitiveTimeLp T hT.le q)‖ ≤ Real.sqrt T * ‖q‖ := by |
| 77 | apply (mean_norm_le T hT.le _).trans |
| 78 | have he : (T⁻¹ * Real.sqrt T) * (T*‖q‖) = Real.sqrt T * ‖q‖ := by |
| 79 | field_simp |
| 80 | exact (mul_le_mul_of_nonneg_left hJ (by positivity)).trans_eq he |
| 81 | apply (ContinuousMap.norm_le _ (by positivity)).2 |
| 82 | intro t |
| 83 | have hterm : ‖terminalPrimitive T hT.le q t‖ ≤ Real.sqrt T * ‖q‖ := |
| 84 | ((terminalPrimitive T hT.le q).norm_coe_le_norm t).trans |
| 85 | (((terminalPrimitive (E := E) T hT.le).le_opNorm q).trans |
| 86 | (mul_le_mul_of_nonneg_right (terminalPrimitive_norm_le (E := E) T hT.le) (norm_nonneg q))) |
| 87 | rw [reconstruction_apply] |
| 88 | exact (norm_add_le _ _).trans ((add_le_add (mean_norm_le T hT.le p) |
| 89 | ((norm_sub_le _ _).trans (add_le_add hterm hmJ))).trans_eq (by ring)) |
| 90 | |
| 91 | omit [CompleteSpace E] in |
| 92 | /-- The constant reconstruction component has the sharp polynomial trace cost. -/ |
| 93 | theorem valuePart_norm_le (T : ℝ) (hT : 0 < T) : |
| 94 | ‖valuePart (E := E) T hT.le‖ ≤ T⁻¹ * Real.sqrt T := by |
| 95 | apply opNorm_le_bound _ (by positivity) |
| 96 | intro p |
| 97 | have h := reconstruction_norm_le T hT p 0 |
| 98 | simpa only [reconstruction, comp_apply, add_apply, coe_fst', coe_snd', |
| 99 | map_zero, add_zero, norm_zero, mul_zero] using h |
| 100 | |
| 101 | omit [CompleteSpace E] in |
| 102 | /-- The mean-zero primitive reconstruction has only a square-root time cost. -/ |
| 103 | theorem derivativePart_norm_le (T : ℝ) (hT : 0 < T) : |
| 104 | ‖derivativePart (E := E) T hT.le‖ ≤ 2 * Real.sqrt T := by |
| 105 | apply opNorm_le_bound _ (by positivity) |
| 106 | intro q |
| 107 | have h := reconstruction_norm_le T hT 0 q |
| 108 | simpa only [reconstruction, comp_apply, add_apply, coe_fst', coe_snd', |
| 109 | map_zero, zero_add, norm_zero, mul_zero] using h |
| 110 | |
| 111 | /-- The reconstructed path equals every genuine AC representative with the specified derivative. -/ |
| 112 | theorem reconstruction_eq_path (T : ℝ) (hT : 0 < T) (p q : TimeLp T E) (η : ℝ → E) |
| 113 | (hη : AbsolutelyContinuousOnInterval η 0 T) |
| 114 | (hp : (p : ℝ → E) =ᵐ[timeMeasure T] η) |
| 115 | (hq : ∀ᵐ t ∂timeMeasure T, HasDerivAt η (q t) t) |
| 116 | (t : Icc (0 : ℝ) T) : |
| 117 | reconstruction T hT.le (p,q) t = η t := by |
| 118 | have hpEq : p = primitiveTimeLp T hT.le q + constantField T hT.le (η T) := by |
| 119 | apply Lp.ext |
| 120 | filter_upwards [hp, primitiveTimeLp_ae T hT.le q, |
| 121 | constantField_ae T hT.le (η T), |
| 122 | Lp.coeFn_add (primitiveTimeLp T hT.le q) (constantField T hT.le (η T)), |
| 123 | ae_restrict_mem measurableSet_Icc] with s hps hJs hcs hs hsmem |
| 124 | change p s = (primitiveTimeLp T hT.le q + constantField T hT.le (η T)) s |
| 125 | rw [hps, hs, Pi.add_apply, hJs, hcs] |
| 126 | exact eq_primitive_add_terminal T hT.le q η hη hq s hsmem |
| 127 | have hm : mean T hT.le p = mean T hT.le (primitiveTimeLp T hT.le q) + η T := by |
| 128 | rw [hpEq, map_add, mean_constantField T hT] |
| 129 | rw [reconstruction_apply, hm] |
| 130 | have he := eq_primitive_add_terminal T hT.le q η hη hq t t.property |
| 131 | change mean T hT.le (primitiveTimeLp T hT.le q) + η T + |
| 132 | (realPrimitive T q t - mean T hT.le (primitiveTimeLp T hT.le q)) = η t |
| 133 | rw [he] |
| 134 | abel |
| 135 | |
| 136 | variable {P : Type*} [NormedAddCommGroup P] [NormedSpace ℝ P] |
| 137 | |
| 138 | omit [CompleteSpace E] in |
| 139 | /-- Smooth parameter dependence passes through the fixed H¹ reconstruction. -/ |
| 140 | theorem reconstruction_contDiff (T : ℝ) (hT : 0 ≤ T) |
| 141 | (p q : P → TimeLp T E) {n : ℕ∞ω} (hp : ContDiff ℝ n p) (hq : ContDiff ℝ n q) : |
| 142 | ContDiff ℝ n (fun x => reconstruction T hT (p x,q x)) := by |
| 143 | exact ((valuePart (E := E) T hT).contDiff.comp hp).add |
| 144 | ((derivativePart (E := E) T hT).contDiff.comp hq) |
| 145 | |
| 146 | omit [CompleteSpace E] in |
| 147 | /-- Every actual parameter derivative has the uniform time-trace estimate; |
| 148 | the trace costs a fixed polynomial multiplier, independent of the order. -/ |
| 149 | theorem reconstruction_gevrey (T : ℝ) (hT : 0 < T) |
| 150 | (p q : P → TimeLp T E) (hp : ContDiff ℝ ∞ p) (hq : ContDiff ℝ ∞ q) |
| 151 | (R C D : ℝ) (hR : 0 ≤ R) (hC : 0 ≤ C) (hD : 0 ≤ D) (d : ℕ) |
| 152 | (hbp : ∀ n x, ‖iteratedFDeriv ℝ n p x‖ ≤ C*majorant R d n) |
| 153 | (hbq : ∀ n x, ‖iteratedFDeriv ℝ n q x‖ ≤ D*majorant R d n) |
| 154 | (n : ℕ) (x : P) : |
| 155 | ‖iteratedFDeriv ℝ n (fun y => reconstruction T hT.le (p y,q y)) x‖ ≤ |
| 156 | ((T⁻¹*Real.sqrt T)*C + (2*Real.sqrt T)*D) * majorant R d n := by |
| 157 | have hvalue (k : ℕ) (y : P) : |
| 158 | ‖iteratedFDeriv ℝ k (fun z => valuePart T hT.le (p z)) y‖ ≤ |
| 159 | ((T⁻¹*Real.sqrt T)*C) * majorant R d k := by |
| 160 | exact (linear_bound (valuePart (E := E) T hT.le) p hp R C d hbp k y).trans |
| 161 | (mul_le_mul_of_nonneg_right |
| 162 | (mul_le_mul_of_nonneg_right (valuePart_norm_le (E := E) T hT) hC) |
| 163 | (majorant_nonneg R hR d k)) |
| 164 | have hderivative (k : ℕ) (y : P) : |
| 165 | ‖iteratedFDeriv ℝ k (fun z => derivativePart T hT.le (q z)) y‖ ≤ |
| 166 | ((2*Real.sqrt T)*D) * majorant R d k := by |
| 167 | exact (linear_bound (derivativePart (E := E) T hT.le) q hq R D d hbq k y).trans |
| 168 | (mul_le_mul_of_nonneg_right |
| 169 | (mul_le_mul_of_nonneg_right (derivativePart_norm_le (E := E) T hT) hD) |
| 170 | (majorant_nonneg R hR d k)) |
| 171 | exact add_bound (fun z => valuePart T hT.le (p z)) (fun z => derivativePart T hT.le (q z)) |
| 172 | ((valuePart (E := E) T hT.le).contDiff.comp hp) |
| 173 | ((derivativePart (E := E) T hT.le).contDiff.comp hq) |
| 174 | R ((T⁻¹*Real.sqrt T)*C) ((2*Real.sqrt T)*D) d hvalue hderivative n x |
| 175 | |
| 176 | end EulerTimeH1Reconstruction |