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.TerminalLayerRamp |
| 2 | import Euler.TimeH1PointwiseBounds |
| 3 | import Euler.TimeH1OperatorProduct |
| 4 | |
| 5 | /-! |
| 6 | An explicit terminal-layer H¹ trial obtained by multiplying a differentiable |
| 7 | projection path by the smooth exponential ramp. Both energy estimates concern |
| 8 | the actual Bochner L² derivative and primitive. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | |
| 14 | namespace EulerTerminalProjectionTrial |
| 15 | |
| 16 | open MeasureTheory Set InnerProductSpace ContinuousLinearMap |
| 17 | EulerTimeLp EulerTerminalTimePrimitive EulerInitialTimePrimitive |
| 18 | EulerTimeH1OperatorProduct EulerTimeH1PointwiseBounds EulerVolterraConvolution |
| 19 | EulerTerminalLayerRamp |
| 20 | |
| 21 | variable {E U : Type*} |
| 22 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 23 | [NormedAddCommGroup U] [NormedSpace ℝ U] |
| 24 | |
| 25 | private local instance : NormedAddCommGroup (U →L[ℝ] E) := inferInstance |
| 26 | private local instance : NormedSpace ℝ (U →L[ℝ] E) := inferInstance |
| 27 | private local instance : AddCommGroup (U →L[ℝ] E) := |
| 28 | (inferInstance : NormedAddCommGroup (U →L[ℝ] E)).toAddCommGroup |
| 29 | private local instance : Module ℝ (U →L[ℝ] E) := |
| 30 | (inferInstance : NormedSpace ℝ (U →L[ℝ] E)).toModule |
| 31 | private local instance : TopologicalSpace (U →L[ℝ] E) := |
| 32 | (inferInstance : PseudoMetricSpace (U →L[ℝ] E)).toUniformSpace.toTopologicalSpace |
| 33 | |
| 34 | variable (T : ℝ) (hT : 0 ≤ T) (L : ℝ) |
| 35 | (P P₁ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) |
| 36 | |
| 37 | /-- Evaluation of an actual continuous operator path as a bounded map into paths. -/ |
| 38 | def operatorEvaluation (A : C(Icc (0 : ℝ) T, U →L[ℝ] E)) : |
| 39 | U →L[ℝ] C(Icc (0 : ℝ) T, E) := |
| 40 | ({ toFun := fun Y => ⟨fun t => A t Y, A.continuous.clm_apply continuous_const⟩ |
| 41 | map_add' := by intros; ext; simp |
| 42 | map_smul' := by intros; ext; simp } : |
| 43 | U →ₗ[ℝ] C(Icc (0 : ℝ) T, E)).mkContinuous ‖A‖ (by |
| 44 | intro Y |
| 45 | change ‖(⟨fun t => A t Y, A.continuous.clm_apply continuous_const⟩ : |
| 46 | C(Icc (0 : ℝ) T, E))‖ ≤ ‖A‖ * ‖Y‖ |
| 47 | apply (ContinuousMap.norm_le _ (mul_nonneg (norm_nonneg A) (norm_nonneg Y))).2 |
| 48 | intro t |
| 49 | exact (A t).le_opNorm Y |>.trans |
| 50 | (mul_le_mul_of_nonneg_right (A.norm_coe_le_norm t) (norm_nonneg Y))) |
| 51 | |
| 52 | omit [CompleteSpace E] in |
| 53 | @[simp] theorem operatorEvaluation_apply |
| 54 | (A : C(Icc (0 : ℝ) T, U →L[ℝ] E)) (Y : U) (t : Icc (0 : ℝ) T) : |
| 55 | operatorEvaluation T A Y t = A t Y := rfl |
| 56 | |
| 57 | def trialFrame : C(Icc (0 : ℝ) T, U →L[ℝ] E) := |
| 58 | ⟨fun t => ramp T L t • P t, |
| 59 | ((ramp_continuous T L).comp continuous_subtype_val).smul P.continuous⟩ |
| 60 | |
| 61 | def trialFrameDerivative : C(Icc (0 : ℝ) T, U →L[ℝ] E) := |
| 62 | ⟨fun t => rampDerivative T L t • P t + ramp T L t • P₁ t, |
| 63 | (((rampDerivative_continuous T L).comp continuous_subtype_val).smul P.continuous).add |
| 64 | (((ramp_continuous T L).comp continuous_subtype_val).smul P₁.continuous)⟩ |
| 65 | |
| 66 | def trialDerivative : U →L[ℝ] TimeLp T E := |
| 67 | (pathLpOperator T hT).comp (operatorEvaluation T (trialFrameDerivative T L P P₁)) |
| 68 | |
| 69 | variable (hd : ∀ t : Icc (0 : ℝ) T, |
| 70 | HasDerivWithinAt (extendPath T hT P) (P₁ t) (Icc (0 : ℝ) T) t) |
| 71 | |
| 72 | include hd in |
| 73 | omit [CompleteSpace E] in |
| 74 | theorem trialFrame_hasDerivWithinAt (t : Icc (0 : ℝ) T) : |
| 75 | HasDerivWithinAt (extendPath T hT (trialFrame T L P)) |
| 76 | (trialFrameDerivative T L P P₁ t) (Icc (0 : ℝ) T) t := by |
| 77 | have hs := (ramp_hasDerivAt T L t).hasDerivWithinAt.smul (hd t) |
| 78 | have hs' : HasDerivWithinAt (fun s => ramp T L s • extendPath T hT P s) |
| 79 | (trialFrameDerivative T L P P₁ t) (Icc (0 : ℝ) T) t := by |
| 80 | convert! hs using 1 |
| 81 | simp only [trialFrameDerivative, ContinuousMap.coe_mk, |
| 82 | extendPath, projIcc_of_mem hT t.property, add_comm] |
| 83 | apply hs'.congr_of_mem _ t.property |
| 84 | intro s hs |
| 85 | simp only [extendPath, projIcc_of_mem hT hs, trialFrame, ContinuousMap.coe_mk] |
| 86 | |
| 87 | include hd in |
| 88 | omit [CompleteSpace E] in |
| 89 | /-- The trial derivative is the actual derivative of its explicit ramp-times-projection path. -/ |
| 90 | theorem trialDerivative_realizes (Y : U) : |
| 91 | ∀ᵐ t ∂timeMeasure T, |
| 92 | HasDerivAt (fun s => extendPath T hT (trialFrame T L P) s Y) |
| 93 | (trialDerivative T hT L P P₁ Y t) t := by |
| 94 | have hmem : ∀ᵐ t ∂timeMeasure T, t ∈ Ioo (0 : ℝ) T := by |
| 95 | change ∀ᵐ t ∂volume.restrict (Icc (0 : ℝ) T), t ∈ Ioo (0 : ℝ) T |
| 96 | rw [← restrict_Ioo_eq_restrict_Icc] |
| 97 | exact ae_restrict_mem measurableSet_Ioo |
| 98 | filter_upwards [hmem, pathLp_ae T hT |
| 99 | (operatorEvaluation T (trialFrameDerivative T L P P₁) Y)] with t ht hu |
| 100 | change trialDerivative T hT L P P₁ Y t = |
| 101 | extendPath T hT (operatorEvaluation T (trialFrameDerivative T L P P₁) Y) t at hu |
| 102 | rw [hu] |
| 103 | have hg := (trialFrame_hasDerivWithinAt T hT L P P₁ hd |
| 104 | ⟨t, ht.1.le, ht.2.le⟩).hasDerivAt (Icc_mem_nhds ht.1 ht.2) |
| 105 | simpa only [extendPath, projIcc_of_mem hT ⟨ht.1.le, ht.2.le⟩, |
| 106 | operatorEvaluation_apply, map_zero, add_zero] using |
| 107 | hg.clm_apply (hasDerivAt_const t Y) |
| 108 | |
| 109 | include hd in |
| 110 | /-- Integrating the constructed L² derivative gives the prescribed trial at every time. -/ |
| 111 | theorem initialPrimitive_trialDerivative (Y : U) (t : Icc (0 : ℝ) T) : |
| 112 | initialPrimitive T hT (trialDerivative T hT L P P₁ Y) t = ramp T L t • P t Y := by |
| 113 | let η : ℝ → E := fun s => extendPath T hT (trialFrame T L P) s Y |
| 114 | have hη : AbsolutelyContinuousOnInterval η 0 T := |
| 115 | clm_apply_absolutelyContinuous |
| 116 | (operatorPath_absolutelyContinuous T hT (trialFrame T L P) |
| 117 | (trialFrameDerivative T L P P₁) (trialFrame_hasDerivWithinAt T hT L P P₁ hd)) |
| 118 | ((LipschitzWith.const Y).lipschitzOnWith.absolutelyContinuousOnInterval) |
| 119 | have hηd := trialDerivative_realizes T hT L P P₁ hd Y |
| 120 | have he := eq_primitive_add_terminal T hT (trialDerivative T hT L P P₁ Y) η hη hηd t t.property |
| 121 | have he0 := eq_primitive_add_terminal T hT (trialDerivative T hT L P P₁ Y) η hη hηd 0 ⟨le_rfl, hT⟩ |
| 122 | have hz : η 0 = 0 := by |
| 123 | simp only [η, extendPath, projIcc_of_mem hT ⟨le_rfl, hT⟩, |
| 124 | trialFrame, ContinuousMap.coe_mk, ramp_initial, zero_smul, zero_apply] |
| 125 | change realPrimitive T (trialDerivative T hT L P P₁ Y) t - |
| 126 | realPrimitive T (trialDerivative T hT L P P₁ Y) 0 = _ |
| 127 | rw [(eq_sub_iff_add_eq.mpr he.symm), (eq_sub_iff_add_eq.mpr he0.symm), hz] |
| 128 | simp only [zero_sub, sub_neg_eq_add, sub_add_cancel] |
| 129 | simp only [η, extendPath, projIcc_of_mem hT t.property, trialFrame, |
| 130 | ContinuousMap.coe_mk, smul_apply] |
| 131 | |
| 132 | include hd in |
| 133 | theorem initialPrimitiveTimeLp_trialDerivative (Y : U) : |
| 134 | initialPrimitiveTimeLp T hT (trialDerivative T hT L P P₁ Y) = |
| 135 | pathLp T hT (operatorEvaluation T (trialFrame T L P) Y) := by |
| 136 | change pathLp T hT (initialPrimitive T hT (trialDerivative T hT L P P₁ Y)) = _ |
| 137 | apply congrArg (pathLp T hT) |
| 138 | ext t |
| 139 | exact initialPrimitive_trialDerivative T hT L P P₁ hd Y t |
| 140 | |
| 141 | omit [CompleteSpace E] [InnerProductSpace ℝ E] in |
| 142 | theorem norm_add_sq_le (a b : E) : ‖a + b‖ ^ 2 ≤ 2 * ‖a‖ ^ 2 + 2 * ‖b‖ ^ 2 := by |
| 143 | have hs := pow_le_pow_left₀ (norm_nonneg (a + b)) (norm_add_le a b) 2 |
| 144 | nlinarith only [hs, sq_nonneg (‖a‖ - ‖b‖)] |
| 145 | |
| 146 | omit [CompleteSpace E] in |
| 147 | theorem trialFrameDerivative_apply_sq_le (M : ℝ) (_hM : 0 ≤ M) |
| 148 | (hP : ∀ t, ‖P t‖ ≤ 1) (hP₁ : ∀ t, ‖P₁ t‖ ≤ M) |
| 149 | (Y : U) (t : Icc (0 : ℝ) T) : |
| 150 | ‖trialFrameDerivative T L P P₁ t Y‖ ^ 2 ≤ |
| 151 | (2 * rampDerivative T L t ^ 2 + 2 * ramp T L t ^ 2 * M ^ 2) * ‖Y‖ ^ 2 := by |
| 152 | have hp : ‖P t Y‖ ≤ ‖Y‖ := by |
| 153 | simpa only [one_mul] using (P t).le_opNorm Y |>.trans |
| 154 | (mul_le_mul_of_nonneg_right (hP t) (norm_nonneg Y)) |
| 155 | have hp₁ : ‖P₁ t Y‖ ≤ M * ‖Y‖ := (P₁ t).le_opNorm Y |>.trans |
| 156 | (mul_le_mul_of_nonneg_right (hP₁ t) (norm_nonneg Y)) |
| 157 | change ‖rampDerivative T L t • P t Y + ramp T L t • P₁ t Y‖ ^ 2 ≤ _ |
| 158 | calc |
| 159 | _ ≤ 2 * ‖rampDerivative T L t • P t Y‖ ^ 2 + |
| 160 | 2 * ‖ramp T L t • P₁ t Y‖ ^ 2 := norm_add_sq_le _ _ |
| 161 | _ = 2 * rampDerivative T L t ^ 2 * ‖P t Y‖ ^ 2 + |
| 162 | 2 * ramp T L t ^ 2 * ‖P₁ t Y‖ ^ 2 := by |
| 163 | simp only [norm_smul, Real.norm_eq_abs, mul_pow, sq_abs] |
| 164 | ring |
| 165 | _ ≤ 2 * rampDerivative T L t ^ 2 * ‖Y‖ ^ 2 + |
| 166 | 2 * ramp T L t ^ 2 * (M * ‖Y‖) ^ 2 := by gcongr |
| 167 | _ = _ := by ring |
| 168 | |
| 169 | omit [CompleteSpace E] in |
| 170 | /-- The actual L² derivative cost of the explicit terminal-layer trial. -/ |
| 171 | theorem trialDerivative_norm_sq_le (hL : 0 < L) (hLT : 1 ≤ L * T) |
| 172 | (M : ℝ) (hM : 0 ≤ M) (hP : ∀ t, ‖P t‖ ≤ 1) (hP₁ : ∀ t, ‖P₁ t‖ ≤ M) |
| 173 | (Y : U) : |
| 174 | ‖trialDerivative T hT L P P₁ Y‖ ^ 2 ≤ (4 * L + 4 * M ^ 2 / L) * ‖Y‖ ^ 2 := by |
| 175 | change ‖pathLp T hT (operatorEvaluation T (trialFrameDerivative T L P P₁) Y)‖ ^ 2 ≤ _ |
| 176 | rw [pathLp_norm_sq] |
| 177 | have hi := intervalIntegral.integral_mono_on (μ := volume) hT |
| 178 | (((extendPath_continuous T hT (operatorEvaluation T (trialFrameDerivative T L P P₁) Y)).norm.pow 2).intervalIntegrable 0 T) |
| 179 | ((((((rampDerivative_continuous T L).pow 2).const_mul 2).add |
| 180 | ((((ramp_continuous T L).pow 2).const_mul 2).mul_const (M ^ 2))).mul_const (‖Y‖ ^ 2)).intervalIntegrable 0 T) |
| 181 | (fun s hs => by |
| 182 | change ‖extendPath T hT (operatorEvaluation T (trialFrameDerivative T L P P₁) Y) s‖ ^ 2 ≤ |
| 183 | (2 * rampDerivative T L s ^ 2 + 2 * ramp T L s ^ 2 * M ^ 2) * ‖Y‖ ^ 2 |
| 184 | simpa only [extendPath, projIcc_of_mem hT hs, operatorEvaluation_apply] using |
| 185 | trialFrameDerivative_apply_sq_le T L P P₁ M hM hP hP₁ Y ⟨s, hs⟩) |
| 186 | change (∫ s in 0..T, ‖extendPath T hT |
| 187 | (operatorEvaluation T (trialFrameDerivative T L P P₁) Y) s‖ ^ 2) ≤ |
| 188 | ∫ s in 0..T, (2 * rampDerivative T L s ^ 2 + 2 * ramp T L s ^ 2 * M ^ 2) * ‖Y‖ ^ 2 at hi |
| 189 | have hv : IntervalIntegrable (fun s => ramp T L s ^ 2) volume 0 T := |
| 190 | ((ramp_continuous T L).pow 2).intervalIntegrable 0 T |
| 191 | have hdv : IntervalIntegrable (fun s => rampDerivative T L s ^ 2) volume 0 T := |
| 192 | ((rampDerivative_continuous T L).pow 2).intervalIntegrable 0 T |
| 193 | rw [intervalIntegral.integral_mul_const, |
| 194 | intervalIntegral.integral_add (hdv.const_mul 2) ((hv.const_mul 2).mul_const (M ^ 2)), |
| 195 | intervalIntegral.integral_const_mul, intervalIntegral.integral_mul_const, |
| 196 | intervalIntegral.integral_const_mul] at hi |
| 197 | apply hi.trans |
| 198 | calc |
| 199 | (2 * (∫ s in 0..T, rampDerivative T L s ^ 2) + |
| 200 | 2 * (∫ s in 0..T, ramp T L s ^ 2) * M ^ 2) * ‖Y‖ ^ 2 ≤ |
| 201 | (2 * (2 * L) + 2 * (2 / L) * M ^ 2) * ‖Y‖ ^ 2 := by |
| 202 | gcongr |
| 203 | · exact rampDerivative_energy hT hL hLT |
| 204 | · exact ramp_energy hT hL hLT |
| 205 | _ = _ := by ring |
| 206 | |
| 207 | include hd in |
| 208 | /-- The corresponding physical displacement cost retains the inverse layer width. -/ |
| 209 | theorem trialDisplacement_norm_sq_le (hL : 0 < L) (hLT : 1 ≤ L * T) |
| 210 | (hP : ∀ t, ‖P t‖ ≤ 1) (Y : U) : |
| 211 | ‖initialPrimitiveTimeLp T hT (trialDerivative T hT L P P₁ Y)‖ ^ 2 ≤ |
| 212 | (2 / L) * ‖Y‖ ^ 2 := by |
| 213 | rw [initialPrimitiveTimeLp_trialDerivative T hT L P P₁ hd, pathLp_norm_sq] |
| 214 | have hv := ((ramp_continuous T L).pow 2).intervalIntegrable (μ := volume) 0 T |
| 215 | have hi := intervalIntegral.integral_mono_on (μ := volume) hT |
| 216 | (((extendPath_continuous T hT (operatorEvaluation T (trialFrame T L P) Y)).norm.pow 2).intervalIntegrable 0 T) |
| 217 | (hv.mul_const (‖Y‖ ^ 2)) (fun s hs => by |
| 218 | change ‖extendPath T hT (operatorEvaluation T (trialFrame T L P) Y) s‖ ^ 2 ≤ |
| 219 | ramp T L s ^ 2 * ‖Y‖ ^ 2 |
| 220 | simp only [extendPath, projIcc_of_mem hT hs, operatorEvaluation_apply, |
| 221 | trialFrame, ContinuousMap.coe_mk, smul_apply, norm_smul, Real.norm_eq_abs, |
| 222 | mul_pow, sq_abs] |
| 223 | have hp : ‖P ⟨s, hs⟩ Y‖ ≤ ‖Y‖ := by |
| 224 | simpa only [one_mul] using (P ⟨s, hs⟩).le_opNorm Y |>.trans |
| 225 | (mul_le_mul_of_nonneg_right (hP ⟨s, hs⟩) (norm_nonneg Y)) |
| 226 | exact mul_le_mul_of_nonneg_left |
| 227 | (pow_le_pow_left₀ (norm_nonneg _) hp 2) (sq_nonneg _)) |
| 228 | change (∫ s in 0..T, ‖extendPath T hT |
| 229 | (operatorEvaluation T (trialFrame T L P) Y) s‖ ^ 2) ≤ |
| 230 | ∫ s in 0..T, ramp T L s ^ 2 * ‖Y‖ ^ 2 at hi |
| 231 | rw [intervalIntegral.integral_mul_const] at hi |
| 232 | exact hi.trans (mul_le_mul_of_nonneg_right (ramp_energy hT hL hLT) (sq_nonneg _)) |
| 233 | |
| 234 | end EulerTerminalProjectionTrial |