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 Mathlib.Analysis.SpecialFunctions.Integrals.Basic |
| 3 | import Euler.TimeH1PointwiseBounds |
| 4 | import Euler.TimeH1OperatorProduct |
| 5 | |
| 6 | /-! |
| 7 | An explicit terminal-layer H¹ trial obtained by multiplying a differentiable |
| 8 | projection path by the smooth exponential ramp. Both energy estimates concern |
| 9 | the actual Bochner L² derivative and primitive. |
| 10 | -/ |
| 11 | |
| 12 | /-! ## From `Euler/TerminalLayerRamp.lean` |
| 13 | |
| 14 | The text of `Euler/TerminalLayerRamp.lean`, folded into this file, which was its only importer. -/ |
| 15 | |
| 16 | section |
| 17 | |
| 18 | /-! |
| 19 | An explicit smooth terminal-layer trial profile. Its endpoint values are |
| 20 | zero and one, and its squared value/derivative integrals are at most `2/L` |
| 21 | and `2*L` when `L*T ≥ 1`. These are the same energy bounds needed for the |
| 22 | piecewise linear terminal ramp in the activation argument. |
| 23 | -/ |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | namespace EulerTerminalLayerRamp |
| 28 | |
| 29 | open Set MeasureTheory |
| 30 | |
| 31 | def ramp (T L t : ℝ) : ℝ := |
| 32 | (Real.exp (L * (t - T)) - Real.exp (-L * T)) / (1 - Real.exp (-L * T)) |
| 33 | |
| 34 | def rampDerivative (T L t : ℝ) : ℝ := |
| 35 | L * Real.exp (L * (t - T)) / (1 - Real.exp (-L * T)) |
| 36 | |
| 37 | theorem denominator_lower {T L : ℝ} (hLT : 1 ≤ L * T) : |
| 38 | (1 / 2 : ℝ) ≤ 1 - Real.exp (-L * T) := by |
| 39 | have he : 2 ≤ Real.exp (L * T) := by |
| 40 | linarith only [Real.add_one_le_exp (L * T), hLT] |
| 41 | have hp : Real.exp (L * T) * Real.exp (-L * T) = 1 := by |
| 42 | rw [← Real.exp_add] |
| 43 | rw [show L * T + -L * T = 0 by ring, Real.exp_zero] |
| 44 | have hm := mul_le_mul_of_nonneg_right he (Real.exp_nonneg (-L * T)) |
| 45 | linarith only [hp, hm] |
| 46 | |
| 47 | theorem denominator_pos {T L : ℝ} (hLT : 1 ≤ L * T) : |
| 48 | 0 < 1 - Real.exp (-L * T) := lt_of_lt_of_le (by norm_num) (denominator_lower hLT) |
| 49 | |
| 50 | @[simp] theorem ramp_initial (T L : ℝ) : ramp T L 0 = 0 := by |
| 51 | simp [ramp, mul_neg] |
| 52 | |
| 53 | theorem ramp_terminal {T L : ℝ} (hLT : 1 ≤ L * T) : ramp T L T = 1 := by |
| 54 | simp only [ramp, sub_self, mul_zero, Real.exp_zero] |
| 55 | exact div_self (denominator_pos hLT).ne' |
| 56 | |
| 57 | theorem ramp_hasDerivAt (T L t : ℝ) : HasDerivAt (ramp T L) (rampDerivative T L t) t := by |
| 58 | change HasDerivAt |
| 59 | (fun s => (Real.exp (L * (s - T)) - Real.exp (-L * T)) / (1 - Real.exp (-L * T))) |
| 60 | (L * Real.exp (L * (t - T)) / (1 - Real.exp (-L * T))) t |
| 61 | simpa only [id_eq, mul_one, mul_comm] using |
| 62 | (((((hasDerivAt_id t).sub_const T).const_mul L).exp).sub_const |
| 63 | (Real.exp (-L * T))).div_const (1 - Real.exp (-L * T)) |
| 64 | |
| 65 | theorem ramp_continuous (T L : ℝ) : Continuous (ramp T L) := |
| 66 | continuous_iff_continuousAt.2 fun t => (ramp_hasDerivAt T L t).continuousAt |
| 67 | |
| 68 | theorem rampDerivative_continuous (T L : ℝ) : Continuous (rampDerivative T L) := by |
| 69 | unfold rampDerivative |
| 70 | fun_prop |
| 71 | |
| 72 | theorem ramp_nonneg {T L t : ℝ} (hL : 0 ≤ L) (hLT : 1 ≤ L * T) |
| 73 | (ht : 0 ≤ t) : 0 ≤ ramp T L t := by |
| 74 | apply div_nonneg _ (denominator_pos hLT).le |
| 75 | apply sub_nonneg.mpr (Real.exp_le_exp.mpr _) |
| 76 | linarith only [mul_nonneg hL ht] |
| 77 | |
| 78 | theorem ramp_le_exp {T L t : ℝ} (hLT : 1 ≤ L * T) : |
| 79 | ramp T L t ≤ 2 * Real.exp (L * (t - T)) := by |
| 80 | apply (div_le_iff₀ (denominator_pos hLT)).2 |
| 81 | have hm := mul_le_mul_of_nonneg_right (denominator_lower hLT) |
| 82 | (Real.exp_nonneg (L * (t - T))) |
| 83 | linarith only [hm, Real.exp_nonneg (-L * T)] |
| 84 | |
| 85 | theorem rampDerivative_nonneg {T L t : ℝ} (hL : 0 ≤ L) (hLT : 1 ≤ L * T) : |
| 86 | 0 ≤ rampDerivative T L t := |
| 87 | div_nonneg (mul_nonneg hL (Real.exp_nonneg _)) (denominator_pos hLT).le |
| 88 | |
| 89 | theorem rampDerivative_le_exp {T L t : ℝ} (hL : 0 ≤ L) (hLT : 1 ≤ L * T) : |
| 90 | rampDerivative T L t ≤ 2 * L * Real.exp (L * (t - T)) := by |
| 91 | apply (div_le_iff₀ (denominator_pos hLT)).2 |
| 92 | have hm := mul_le_mul_of_nonneg_right (denominator_lower hLT) |
| 93 | (mul_nonneg hL (Real.exp_nonneg (L * (t - T)))) |
| 94 | linarith only [hm] |
| 95 | |
| 96 | theorem ramp_sq_le {T L t : ℝ} (hL : 0 ≤ L) (hLT : 1 ≤ L * T) (ht : 0 ≤ t) : |
| 97 | ramp T L t ^ 2 ≤ 4 * Real.exp (2 * L * (t - T)) := by |
| 98 | have hp := pow_le_pow_left₀ (ramp_nonneg hL hLT ht) (ramp_le_exp (t := t) hLT) 2 |
| 99 | have he : Real.exp (L * (t - T)) ^ 2 = Real.exp (2 * L * (t - T)) := by |
| 100 | rw [pow_two, ← Real.exp_add] |
| 101 | congr 1 |
| 102 | ring |
| 103 | simpa only [mul_pow, he, show (2 : ℝ) ^ 2 = 4 by norm_num] using hp |
| 104 | |
| 105 | theorem rampDerivative_sq_le {T L t : ℝ} (hL : 0 ≤ L) (hLT : 1 ≤ L * T) : |
| 106 | rampDerivative T L t ^ 2 ≤ (4 * L ^ 2) * Real.exp (2 * L * (t - T)) := by |
| 107 | have hp := pow_le_pow_left₀ (rampDerivative_nonneg (t := t) hL hLT) |
| 108 | (rampDerivative_le_exp (t := t) hL hLT) 2 |
| 109 | have he : Real.exp (L * (t - T)) ^ 2 = Real.exp (2 * L * (t - T)) := by |
| 110 | rw [pow_two, ← Real.exp_add] |
| 111 | congr 1 |
| 112 | ring |
| 113 | simpa only [mul_pow, he, show (2 : ℝ) ^ 2 = 4 by norm_num] using hp |
| 114 | |
| 115 | theorem exp_kernel_integral_le {T L : ℝ} (hL : 0 < L) : |
| 116 | (∫ t in 0..T, Real.exp (2 * L * (t - T))) ≤ 1 / (2 * L) := by |
| 117 | have hd (t : ℝ) : HasDerivAt |
| 118 | (fun s => Real.exp (2 * L * (s - T)) / (2 * L)) |
| 119 | (Real.exp (2 * L * (t - T))) t := by |
| 120 | simpa only [id_eq, mul_one, |
| 121 | mul_div_cancel_right₀ _ (show 2 * L ≠ 0 by positivity)] using |
| 122 | (((((hasDerivAt_id t).sub_const T).const_mul (2 * L)).exp).div_const (2 * L)) |
| 123 | have hi := intervalIntegral.integral_eq_sub_of_hasDerivAt (fun t _ => hd t) |
| 124 | ((Real.continuous_exp.comp (continuous_const.mul (continuous_id.sub continuous_const))).intervalIntegrable 0 T) |
| 125 | calc |
| 126 | (∫ t in 0..T, Real.exp (2 * L * (t - T))) = |
| 127 | (1 - Real.exp (2 * L * (0 - T))) / (2 * L) := by |
| 128 | rw [hi, sub_self, mul_zero, Real.exp_zero, sub_div] |
| 129 | _ ≤ 1 / (2 * L) := div_le_div_of_nonneg_right |
| 130 | (sub_le_self _ (Real.exp_nonneg _)) (by positivity) |
| 131 | |
| 132 | theorem ramp_energy {T L : ℝ} (hT : 0 ≤ T) (hL : 0 < L) (hLT : 1 ≤ L * T) : |
| 133 | (∫ t in 0..T, ramp T L t ^ 2) ≤ 2 / L := by |
| 134 | have hc : Continuous (fun t : ℝ => Real.exp (2 * L * (t - T))) := by fun_prop |
| 135 | have hi := intervalIntegral.integral_mono_on (μ := volume) hT |
| 136 | (((ramp_continuous T L).pow 2).intervalIntegrable 0 T) |
| 137 | ((continuous_const.mul hc).intervalIntegrable (a := 0) (b := T)) |
| 138 | (fun t ht => ramp_sq_le hL.le hLT ht.1) |
| 139 | change (∫ t in 0..T, ramp T L t ^ 2) ≤ |
| 140 | ∫ t in 0..T, 4 * Real.exp (2 * L * (t - T)) at hi |
| 141 | rw [intervalIntegral.integral_const_mul] at hi |
| 142 | calc |
| 143 | (∫ t in 0..T, ramp T L t ^ 2) ≤ 4 * (∫ t in 0..T, Real.exp (2 * L * (t - T))) := hi |
| 144 | _ ≤ 4 * (1 / (2 * L)) := mul_le_mul_of_nonneg_left (exp_kernel_integral_le hL) (by norm_num) |
| 145 | _ = 2 / L := by ring |
| 146 | |
| 147 | theorem rampDerivative_energy {T L : ℝ} (hT : 0 ≤ T) (hL : 0 < L) |
| 148 | (hLT : 1 ≤ L * T) : |
| 149 | (∫ t in 0..T, rampDerivative T L t ^ 2) ≤ 2 * L := by |
| 150 | have hc : Continuous (fun t : ℝ => Real.exp (2 * L * (t - T))) := by fun_prop |
| 151 | have hi := intervalIntegral.integral_mono_on (μ := volume) hT |
| 152 | (((rampDerivative_continuous T L).pow 2).intervalIntegrable 0 T) |
| 153 | ((continuous_const.mul hc).intervalIntegrable (a := 0) (b := T)) |
| 154 | (fun t _ => rampDerivative_sq_le (t := t) hL.le hLT) |
| 155 | change (∫ t in 0..T, rampDerivative T L t ^ 2) ≤ |
| 156 | ∫ t in 0..T, (4 * L ^ 2) * Real.exp (2 * L * (t - T)) at hi |
| 157 | rw [intervalIntegral.integral_const_mul] at hi |
| 158 | calc |
| 159 | (∫ t in 0..T, rampDerivative T L t ^ 2) ≤ |
| 160 | (4 * L ^ 2) * (∫ t in 0..T, Real.exp (2 * L * (t - T))) := hi |
| 161 | _ ≤ (4 * L ^ 2) * (1 / (2 * L)) := |
| 162 | mul_le_mul_of_nonneg_left (exp_kernel_integral_le hL) (by positivity) |
| 163 | _ = 2 * L := by field_simp; ring |
| 164 | |
| 165 | end EulerTerminalLayerRamp |
| 166 | end |
| 167 | |
| 168 | end |
| 169 | |
| 170 | noncomputable section |
| 171 | |
| 172 | |
| 173 | namespace EulerTerminalProjectionTrial |
| 174 | |
| 175 | open MeasureTheory Set InnerProductSpace ContinuousLinearMap |
| 176 | EulerTimeLp EulerTerminalTimePrimitive EulerInitialTimePrimitive |
| 177 | EulerTimeH1OperatorProduct EulerTimeH1PointwiseBounds EulerVolterraConvolution |
| 178 | EulerTerminalLayerRamp |
| 179 | |
| 180 | variable {E U : Type*} |
| 181 | [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 182 | [NormedAddCommGroup U] [NormedSpace ℝ U] |
| 183 | |
| 184 | private local instance : NormedAddCommGroup (U →L[ℝ] E) := inferInstance |
| 185 | private local instance : NormedSpace ℝ (U →L[ℝ] E) := inferInstance |
| 186 | private local instance : AddCommGroup (U →L[ℝ] E) := |
| 187 | (inferInstance : NormedAddCommGroup (U →L[ℝ] E)).toAddCommGroup |
| 188 | private local instance : Module ℝ (U →L[ℝ] E) := |
| 189 | (inferInstance : NormedSpace ℝ (U →L[ℝ] E)).toModule |
| 190 | private local instance : TopologicalSpace (U →L[ℝ] E) := |
| 191 | (inferInstance : PseudoMetricSpace (U →L[ℝ] E)).toUniformSpace.toTopologicalSpace |
| 192 | |
| 193 | variable (T : ℝ) (hT : 0 ≤ T) (L : ℝ) |
| 194 | (P P₁ : C(Icc (0 : ℝ) T, U →L[ℝ] E)) |
| 195 | |
| 196 | /-- Evaluation of an actual continuous operator path as a bounded map into paths. -/ |
| 197 | def operatorEvaluation (A : C(Icc (0 : ℝ) T, U →L[ℝ] E)) : |
| 198 | U →L[ℝ] C(Icc (0 : ℝ) T, E) := |
| 199 | ({ toFun := fun Y => ⟨fun t => A t Y, A.continuous.clm_apply continuous_const⟩ |
| 200 | map_add' := by intros; ext; simp |
| 201 | map_smul' := by intros; ext; simp } : |
| 202 | U →ₗ[ℝ] C(Icc (0 : ℝ) T, E)).mkContinuous ‖A‖ (by |
| 203 | intro Y |
| 204 | change ‖(⟨fun t => A t Y, A.continuous.clm_apply continuous_const⟩ : |
| 205 | C(Icc (0 : ℝ) T, E))‖ ≤ ‖A‖ * ‖Y‖ |
| 206 | apply (ContinuousMap.norm_le _ (mul_nonneg (norm_nonneg A) (norm_nonneg Y))).2 |
| 207 | intro t |
| 208 | exact (A t).le_opNorm Y |>.trans |
| 209 | (mul_le_mul_of_nonneg_right (A.norm_coe_le_norm t) (norm_nonneg Y))) |
| 210 | |
| 211 | omit [CompleteSpace E] in |
| 212 | @[simp] theorem operatorEvaluation_apply |
| 213 | (A : C(Icc (0 : ℝ) T, U →L[ℝ] E)) (Y : U) (t : Icc (0 : ℝ) T) : |
| 214 | operatorEvaluation T A Y t = A t Y := rfl |
| 215 | |
| 216 | def trialFrame : C(Icc (0 : ℝ) T, U →L[ℝ] E) := |
| 217 | ⟨fun t => ramp T L t • P t, |
| 218 | ((ramp_continuous T L).comp continuous_subtype_val).smul P.continuous⟩ |
| 219 | |
| 220 | def trialFrameDerivative : C(Icc (0 : ℝ) T, U →L[ℝ] E) := |
| 221 | ⟨fun t => rampDerivative T L t • P t + ramp T L t • P₁ t, |
| 222 | (((rampDerivative_continuous T L).comp continuous_subtype_val).smul P.continuous).add |
| 223 | (((ramp_continuous T L).comp continuous_subtype_val).smul P₁.continuous)⟩ |
| 224 | |
| 225 | def trialDerivative : U →L[ℝ] TimeLp T E := |
| 226 | (pathLpOperator T hT).comp (operatorEvaluation T (trialFrameDerivative T L P P₁)) |
| 227 | |
| 228 | variable (hd : ∀ t : Icc (0 : ℝ) T, |
| 229 | HasDerivWithinAt (extendPath T hT P) (P₁ t) (Icc (0 : ℝ) T) t) |
| 230 | |
| 231 | include hd in |
| 232 | omit [CompleteSpace E] in |
| 233 | theorem trialFrame_hasDerivWithinAt (t : Icc (0 : ℝ) T) : |
| 234 | HasDerivWithinAt (extendPath T hT (trialFrame T L P)) |
| 235 | (trialFrameDerivative T L P P₁ t) (Icc (0 : ℝ) T) t := by |
| 236 | have hs := (ramp_hasDerivAt T L t).hasDerivWithinAt.smul (hd t) |
| 237 | have hs' : HasDerivWithinAt (fun s => ramp T L s • extendPath T hT P s) |
| 238 | (trialFrameDerivative T L P P₁ t) (Icc (0 : ℝ) T) t := by |
| 239 | convert! hs using 1 |
| 240 | simp only [trialFrameDerivative, ContinuousMap.coe_mk, |
| 241 | extendPath, projIcc_of_mem hT t.property, add_comm] |
| 242 | apply hs'.congr_of_mem _ t.property |
| 243 | intro s hs |
| 244 | simp only [extendPath, projIcc_of_mem hT hs, trialFrame, ContinuousMap.coe_mk] |
| 245 | |
| 246 | include hd in |
| 247 | omit [CompleteSpace E] in |
| 248 | /-- The trial derivative is the actual derivative of its explicit ramp-times-projection path. -/ |
| 249 | theorem trialDerivative_realizes (Y : U) : |
| 250 | ∀ᵐ t ∂timeMeasure T, |
| 251 | HasDerivAt (fun s => extendPath T hT (trialFrame T L P) s Y) |
| 252 | (trialDerivative T hT L P P₁ Y t) t := by |
| 253 | have hmem : ∀ᵐ t ∂timeMeasure T, t ∈ Ioo (0 : ℝ) T := by |
| 254 | change ∀ᵐ t ∂volume.restrict (Icc (0 : ℝ) T), t ∈ Ioo (0 : ℝ) T |
| 255 | rw [← restrict_Ioo_eq_restrict_Icc] |
| 256 | exact ae_restrict_mem measurableSet_Ioo |
| 257 | filter_upwards [hmem, pathLp_ae T hT |
| 258 | (operatorEvaluation T (trialFrameDerivative T L P P₁) Y)] with t ht hu |
| 259 | change trialDerivative T hT L P P₁ Y t = |
| 260 | extendPath T hT (operatorEvaluation T (trialFrameDerivative T L P P₁) Y) t at hu |
| 261 | rw [hu] |
| 262 | have hg := (trialFrame_hasDerivWithinAt T hT L P P₁ hd |
| 263 | ⟨t, ht.1.le, ht.2.le⟩).hasDerivAt (Icc_mem_nhds ht.1 ht.2) |
| 264 | simpa only [extendPath, projIcc_of_mem hT ⟨ht.1.le, ht.2.le⟩, |
| 265 | operatorEvaluation_apply, map_zero, add_zero] using |
| 266 | hg.clm_apply (hasDerivAt_const t Y) |
| 267 | |
| 268 | include hd in |
| 269 | /-- Integrating the constructed L² derivative gives the prescribed trial at every time. -/ |
| 270 | theorem initialPrimitive_trialDerivative (Y : U) (t : Icc (0 : ℝ) T) : |
| 271 | initialPrimitive T hT (trialDerivative T hT L P P₁ Y) t = ramp T L t • P t Y := by |
| 272 | let η : ℝ → E := fun s => extendPath T hT (trialFrame T L P) s Y |
| 273 | have hη : AbsolutelyContinuousOnInterval η 0 T := |
| 274 | clm_apply_absolutelyContinuous |
| 275 | (operatorPath_absolutelyContinuous T hT (trialFrame T L P) |
| 276 | (trialFrameDerivative T L P P₁) (trialFrame_hasDerivWithinAt T hT L P P₁ hd)) |
| 277 | ((LipschitzWith.const Y).lipschitzOnWith.absolutelyContinuousOnInterval) |
| 278 | have hηd := trialDerivative_realizes T hT L P P₁ hd Y |
| 279 | have he := eq_primitive_add_terminal T hT (trialDerivative T hT L P P₁ Y) η hη hηd t t.property |
| 280 | have he0 := eq_primitive_add_terminal T hT (trialDerivative T hT L P P₁ Y) η hη hηd 0 ⟨le_rfl, hT⟩ |
| 281 | have hz : η 0 = 0 := by |
| 282 | simp only [η, extendPath, projIcc_of_mem hT ⟨le_rfl, hT⟩, |
| 283 | trialFrame, ContinuousMap.coe_mk, ramp_initial, zero_smul, zero_apply] |
| 284 | change realPrimitive T (trialDerivative T hT L P P₁ Y) t - |
| 285 | realPrimitive T (trialDerivative T hT L P P₁ Y) 0 = _ |
| 286 | rw [(eq_sub_iff_add_eq.mpr he.symm), (eq_sub_iff_add_eq.mpr he0.symm), hz] |
| 287 | simp only [zero_sub, sub_neg_eq_add, sub_add_cancel] |
| 288 | simp only [η, extendPath, projIcc_of_mem hT t.property, trialFrame, |
| 289 | ContinuousMap.coe_mk, smul_apply] |
| 290 | |
| 291 | include hd in |
| 292 | theorem initialPrimitiveTimeLp_trialDerivative (Y : U) : |
| 293 | initialPrimitiveTimeLp T hT (trialDerivative T hT L P P₁ Y) = |
| 294 | pathLp T hT (operatorEvaluation T (trialFrame T L P) Y) := by |
| 295 | change pathLp T hT (initialPrimitive T hT (trialDerivative T hT L P P₁ Y)) = _ |
| 296 | apply congrArg (pathLp T hT) |
| 297 | ext t |
| 298 | exact initialPrimitive_trialDerivative T hT L P P₁ hd Y t |
| 299 | |
| 300 | omit [CompleteSpace E] [InnerProductSpace ℝ E] in |
| 301 | theorem norm_add_sq_le (a b : E) : ‖a + b‖ ^ 2 ≤ 2 * ‖a‖ ^ 2 + 2 * ‖b‖ ^ 2 := by |
| 302 | have hs := pow_le_pow_left₀ (norm_nonneg (a + b)) (norm_add_le a b) 2 |
| 303 | linarith only [hs, sq_nonneg (‖a‖ - ‖b‖)] |
| 304 | |
| 305 | omit [CompleteSpace E] in |
| 306 | theorem trialFrameDerivative_apply_sq_le (M : ℝ) (_hM : 0 ≤ M) |
| 307 | (hP : ∀ t, ‖P t‖ ≤ 1) (hP₁ : ∀ t, ‖P₁ t‖ ≤ M) |
| 308 | (Y : U) (t : Icc (0 : ℝ) T) : |
| 309 | ‖trialFrameDerivative T L P P₁ t Y‖ ^ 2 ≤ |
| 310 | (2 * rampDerivative T L t ^ 2 + 2 * ramp T L t ^ 2 * M ^ 2) * ‖Y‖ ^ 2 := by |
| 311 | have hp : ‖P t Y‖ ≤ ‖Y‖ := by |
| 312 | simpa only [one_mul] using (P t).le_opNorm Y |>.trans |
| 313 | (mul_le_mul_of_nonneg_right (hP t) (norm_nonneg Y)) |
| 314 | have hp₁ : ‖P₁ t Y‖ ≤ M * ‖Y‖ := (P₁ t).le_opNorm Y |>.trans |
| 315 | (mul_le_mul_of_nonneg_right (hP₁ t) (norm_nonneg Y)) |
| 316 | change ‖rampDerivative T L t • P t Y + ramp T L t • P₁ t Y‖ ^ 2 ≤ _ |
| 317 | calc |
| 318 | _ ≤ 2 * ‖rampDerivative T L t • P t Y‖ ^ 2 + |
| 319 | 2 * ‖ramp T L t • P₁ t Y‖ ^ 2 := norm_add_sq_le _ _ |
| 320 | _ = 2 * rampDerivative T L t ^ 2 * ‖P t Y‖ ^ 2 + |
| 321 | 2 * ramp T L t ^ 2 * ‖P₁ t Y‖ ^ 2 := by |
| 322 | simp only [norm_smul, Real.norm_eq_abs, mul_pow, sq_abs] |
| 323 | ring |
| 324 | _ ≤ 2 * rampDerivative T L t ^ 2 * ‖Y‖ ^ 2 + |
| 325 | 2 * ramp T L t ^ 2 * (M * ‖Y‖) ^ 2 := by gcongr |
| 326 | _ = _ := by ring |
| 327 | |
| 328 | omit [CompleteSpace E] in |
| 329 | /-- The actual L² derivative cost of the explicit terminal-layer trial. -/ |
| 330 | theorem trialDerivative_norm_sq_le (hL : 0 < L) (hLT : 1 ≤ L * T) |
| 331 | (M : ℝ) (hM : 0 ≤ M) (hP : ∀ t, ‖P t‖ ≤ 1) (hP₁ : ∀ t, ‖P₁ t‖ ≤ M) |
| 332 | (Y : U) : |
| 333 | ‖trialDerivative T hT L P P₁ Y‖ ^ 2 ≤ (4 * L + 4 * M ^ 2 / L) * ‖Y‖ ^ 2 := by |
| 334 | change ‖pathLp T hT (operatorEvaluation T (trialFrameDerivative T L P P₁) Y)‖ ^ 2 ≤ _ |
| 335 | rw [pathLp_norm_sq] |
| 336 | have hi := intervalIntegral.integral_mono_on (μ := volume) hT |
| 337 | (((extendPath_continuous T hT (operatorEvaluation T (trialFrameDerivative T L P P₁) Y)).norm.pow 2).intervalIntegrable 0 T) |
| 338 | ((((((rampDerivative_continuous T L).pow 2).const_mul 2).add |
| 339 | ((((ramp_continuous T L).pow 2).const_mul 2).mul_const (M ^ 2))).mul_const (‖Y‖ ^ 2)).intervalIntegrable 0 T) |
| 340 | (fun s hs => by |
| 341 | change ‖extendPath T hT (operatorEvaluation T (trialFrameDerivative T L P P₁) Y) s‖ ^ 2 ≤ |
| 342 | (2 * rampDerivative T L s ^ 2 + 2 * ramp T L s ^ 2 * M ^ 2) * ‖Y‖ ^ 2 |
| 343 | simpa only [extendPath, projIcc_of_mem hT hs, operatorEvaluation_apply] using |
| 344 | trialFrameDerivative_apply_sq_le T L P P₁ M hM hP hP₁ Y ⟨s, hs⟩) |
| 345 | change (∫ s in 0..T, ‖extendPath T hT |
| 346 | (operatorEvaluation T (trialFrameDerivative T L P P₁) Y) s‖ ^ 2) ≤ |
| 347 | ∫ s in 0..T, (2 * rampDerivative T L s ^ 2 + 2 * ramp T L s ^ 2 * M ^ 2) * ‖Y‖ ^ 2 at hi |
| 348 | have hv : IntervalIntegrable (fun s => ramp T L s ^ 2) volume 0 T := |
| 349 | ((ramp_continuous T L).pow 2).intervalIntegrable 0 T |
| 350 | have hdv : IntervalIntegrable (fun s => rampDerivative T L s ^ 2) volume 0 T := |
| 351 | ((rampDerivative_continuous T L).pow 2).intervalIntegrable 0 T |
| 352 | rw [intervalIntegral.integral_mul_const, |
| 353 | intervalIntegral.integral_add (hdv.const_mul 2) ((hv.const_mul 2).mul_const (M ^ 2)), |
| 354 | intervalIntegral.integral_const_mul, intervalIntegral.integral_mul_const, |
| 355 | intervalIntegral.integral_const_mul] at hi |
| 356 | apply hi.trans |
| 357 | calc |
| 358 | (2 * (∫ s in 0..T, rampDerivative T L s ^ 2) + |
| 359 | 2 * (∫ s in 0..T, ramp T L s ^ 2) * M ^ 2) * ‖Y‖ ^ 2 ≤ |
| 360 | (2 * (2 * L) + 2 * (2 / L) * M ^ 2) * ‖Y‖ ^ 2 := by |
| 361 | gcongr |
| 362 | · exact rampDerivative_energy hT hL hLT |
| 363 | · exact ramp_energy hT hL hLT |
| 364 | _ = _ := by ring |
| 365 | |
| 366 | include hd in |
| 367 | /-- The corresponding physical displacement cost retains the inverse layer width. -/ |
| 368 | theorem trialDisplacement_norm_sq_le (hL : 0 < L) (hLT : 1 ≤ L * T) |
| 369 | (hP : ∀ t, ‖P t‖ ≤ 1) (Y : U) : |
| 370 | ‖initialPrimitiveTimeLp T hT (trialDerivative T hT L P P₁ Y)‖ ^ 2 ≤ |
| 371 | (2 / L) * ‖Y‖ ^ 2 := by |
| 372 | rw [initialPrimitiveTimeLp_trialDerivative T hT L P P₁ hd, pathLp_norm_sq] |
| 373 | have hv := ((ramp_continuous T L).pow 2).intervalIntegrable (μ := volume) 0 T |
| 374 | have hi := intervalIntegral.integral_mono_on (μ := volume) hT |
| 375 | (((extendPath_continuous T hT (operatorEvaluation T (trialFrame T L P) Y)).norm.pow 2).intervalIntegrable 0 T) |
| 376 | (hv.mul_const (‖Y‖ ^ 2)) (fun s hs => by |
| 377 | change ‖extendPath T hT (operatorEvaluation T (trialFrame T L P) Y) s‖ ^ 2 ≤ |
| 378 | ramp T L s ^ 2 * ‖Y‖ ^ 2 |
| 379 | simp only [extendPath, projIcc_of_mem hT hs, operatorEvaluation_apply, |
| 380 | trialFrame, ContinuousMap.coe_mk, smul_apply, norm_smul, Real.norm_eq_abs, |
| 381 | mul_pow, sq_abs] |
| 382 | have hp : ‖P ⟨s, hs⟩ Y‖ ≤ ‖Y‖ := by |
| 383 | simpa only [one_mul] using (P ⟨s, hs⟩).le_opNorm Y |>.trans |
| 384 | (mul_le_mul_of_nonneg_right (hP ⟨s, hs⟩) (norm_nonneg Y)) |
| 385 | exact mul_le_mul_of_nonneg_left |
| 386 | (pow_le_pow_left₀ (norm_nonneg _) hp 2) (sq_nonneg _)) |
| 387 | change (∫ s in 0..T, ‖extendPath T hT |
| 388 | (operatorEvaluation T (trialFrame T L P) Y) s‖ ^ 2) ≤ |
| 389 | ∫ s in 0..T, ramp T L s ^ 2 * ‖Y‖ ^ 2 at hi |
| 390 | rw [intervalIntegral.integral_mul_const] at hi |
| 391 | exact hi.trans (mul_le_mul_of_nonneg_right (ramp_energy hT hL hLT) (sq_nonneg _)) |
| 392 | |
| 393 | end EulerTerminalProjectionTrial |