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.TimeLpLinearity |
| 2 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.LebesgueDifferentiationThm |
| 3 | import Mathlib.MeasureTheory.Function.AbsolutelyContinuous |
| 4 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.AbsolutelyContinuousFun |
| 5 | |
| 6 | /-! |
| 7 | # The terminal primitive of a genuine Bochner L² time field |
| 8 | |
| 9 | The derivative is the input equivalence class. Integration of its zero extension |
| 10 | constructs the continuous representative, its zero terminal trace, and its |
| 11 | almost-everywhere derivative. No primitive or evolution solution is assumed. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace EulerTerminalTimePrimitive |
| 17 | |
| 18 | open MeasureTheory Set EulerTimeLp EulerVolterraConvolution |
| 19 | open scoped Topology |
| 20 | |
| 21 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 22 | |
| 23 | /-- The canonical time representative extended by zero outside the time interval. -/ |
| 24 | def zeroExtension (T : ℝ) (u : TimeLp T E) : ℝ → E := |
| 25 | (Icc (0 : ℝ) T).indicator u |
| 26 | |
| 27 | omit [NormedSpace ℝ E] in |
| 28 | /-- Zero extension preserves genuine square integrability. -/ |
| 29 | theorem zeroExtension_memLp (T : ℝ) (u : TimeLp T E) : |
| 30 | MemLp (zeroExtension T u) 2 volume := by |
| 31 | exact (memLp_indicator_iff_restrict measurableSet_Icc).2 (Lp.memLp u) |
| 32 | |
| 33 | omit [NormedSpace ℝ E] in |
| 34 | /-- The finite time interval makes the zero extension Bochner integrable. -/ |
| 35 | theorem zeroExtension_integrable (T : ℝ) (u : TimeLp T E) : |
| 36 | Integrable (zeroExtension T u) volume := by |
| 37 | exact (show IntegrableOn (fun t => u t) (Icc (0 : ℝ) T) volume from |
| 38 | (Lp.memLp u).integrable (by norm_num)).integrable_indicator measurableSet_Icc |
| 39 | |
| 40 | omit [NormedSpace ℝ E] in |
| 41 | /-- The zero extension is the original time field almost everywhere on its interval. -/ |
| 42 | theorem zeroExtension_ae (T : ℝ) (u : TimeLp T E) : |
| 43 | zeroExtension T u =ᵐ[timeMeasure T] fun t => u t := |
| 44 | indicator_ae_eq_restrict measurableSet_Icc |
| 45 | |
| 46 | /-- The actual real-valued-time representative, with terminal value zero. -/ |
| 47 | def realPrimitive (T : ℝ) (u : TimeLp T E) (t : ℝ) : E := |
| 48 | ∫ s in T..t, zeroExtension T u s |
| 49 | |
| 50 | /-- The constructed primitive is continuous on all of real time. -/ |
| 51 | theorem realPrimitive_continuous (T : ℝ) (u : TimeLp T E) : |
| 52 | Continuous (realPrimitive T u) := |
| 53 | (zeroExtension_integrable T u).continuous_primitive T |
| 54 | |
| 55 | /-- The terminal condition holds by construction. -/ |
| 56 | @[simp] theorem realPrimitive_terminal (T : ℝ) (u : TimeLp T E) : |
| 57 | realPrimitive T u T = 0 := by simp [realPrimitive] |
| 58 | |
| 59 | /-- All increments are the literal Bochner integrals of the zero-extended derivative. -/ |
| 60 | theorem realPrimitive_increment (T : ℝ) (u : TimeLp T E) (s t : ℝ) : |
| 61 | realPrimitive T u t - realPrimitive T u s = ∫ r in s..t, zeroExtension T u r := |
| 62 | intervalIntegral.integral_interval_sub_left |
| 63 | (zeroExtension_integrable T u).intervalIntegrable |
| 64 | (zeroExtension_integrable T u).intervalIntegrable |
| 65 | |
| 66 | /-- On the time interval this is exactly the terminal integral of the input field. -/ |
| 67 | theorem realPrimitive_eq_neg_integral (T : ℝ) (u : TimeLp T E) |
| 68 | (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : |
| 69 | realPrimitive T u t = -(∫ s in t..T, u s) := by |
| 70 | rw [realPrimitive, intervalIntegral.integral_symm] |
| 71 | congr 1 |
| 72 | apply intervalIntegral.integral_congr |
| 73 | intro s hs |
| 74 | rw [uIcc_of_le ht.2] at hs |
| 75 | change (Icc (0 : ℝ) T).indicator (fun x => u x) s = u s |
| 76 | exact Set.indicator_of_mem (show s ∈ Icc (0 : ℝ) T from ⟨ht.1.trans hs.1, hs.2⟩) _ |
| 77 | |
| 78 | /-- The constructed real-time representative has its genuine derivative almost everywhere. -/ |
| 79 | theorem realPrimitive_hasDerivAt_ae_global [CompleteSpace E] (T : ℝ) (u : TimeLp T E) : |
| 80 | ∀ᵐ t, HasDerivAt (realPrimitive T u) (zeroExtension T u t) t := by |
| 81 | filter_upwards [LocallyIntegrable.ae_hasDerivAt_integral |
| 82 | (zeroExtension_integrable T u).locallyIntegrable] |
| 83 | with t ht using ht T |
| 84 | |
| 85 | /-- Its derivative on the time interval is the original Bochner L² field. -/ |
| 86 | theorem realPrimitive_hasDerivAt_ae [CompleteSpace E] (T : ℝ) (u : TimeLp T E) : |
| 87 | ∀ᵐ t ∂timeMeasure T, HasDerivAt (realPrimitive T u) (u t) t := by |
| 88 | filter_upwards [ae_mono Measure.restrict_le_self (realPrimitive_hasDerivAt_ae_global T u), |
| 89 | zeroExtension_ae T u] with t ht he |
| 90 | simpa only [he] using ht |
| 91 | |
| 92 | /-- The genuine continuous path on the prescribed time interval. -/ |
| 93 | def primitivePath (T : ℝ) (u : TimeLp T E) : C(Icc (0 : ℝ) T, E) := |
| 94 | ⟨fun t => realPrimitive T u t, (realPrimitive_continuous T u).comp continuous_subtype_val⟩ |
| 95 | |
| 96 | /-- Cauchy--Schwarz for a square-integrable scalar function on an interval. -/ |
| 97 | theorem integral_sq_le_length_mul (g : ℝ → ℝ) {a b : ℝ} (hab : a ≤ b) |
| 98 | (hg : IntervalIntegrable g volume a b) |
| 99 | (hg2 : IntervalIntegrable (fun t => (g t)^2) volume a b) : |
| 100 | (∫ t in a..b, g t)^2 ≤ (b-a)*(∫ t in a..b, (g t)^2) := by |
| 101 | rcases hab.eq_or_lt with rfl | hab |
| 102 | · simp |
| 103 | let c := (∫ t in a..b, g t)/(b-a) |
| 104 | have hn := intervalIntegral.integral_nonneg (μ := volume) hab.le |
| 105 | (fun t _ => sq_nonneg (g t-c)) |
| 106 | have he : (fun t => (g t-c)^2) = (fun t => (g t)^2-2*c*g t+c^2) := by |
| 107 | funext t |
| 108 | ring |
| 109 | rw [he, intervalIntegral.integral_add (hg2.sub (hg.const_mul (2*c))) |
| 110 | intervalIntegrable_const, intervalIntegral.integral_sub hg2 (hg.const_mul (2*c)), |
| 111 | intervalIntegral.integral_const_mul, intervalIntegral.integral_const] at hn |
| 112 | simp only [smul_eq_mul] at hn |
| 113 | have hlen : 0 < b-a := sub_pos.mpr hab |
| 114 | have hc : c*(b-a) = ∫ t in a..b, g t := div_mul_cancel₀ _ hlen.ne' |
| 115 | have hp := mul_nonneg hlen.le hn |
| 116 | nlinarith [sq_nonneg ((b-a)*(∫ t in a..b, g t))] |
| 117 | |
| 118 | /-- Bochner Cauchy--Schwarz, requiring actual square integrability rather than continuity. -/ |
| 119 | theorem norm_integral_sq_le_length_mul (f : ℝ → E) {a b : ℝ} (hab : a ≤ b) |
| 120 | (hf : IntervalIntegrable f volume a b) |
| 121 | (hf2 : IntervalIntegrable (fun t => ‖f t‖^2) volume a b) : |
| 122 | ‖∫ t in a..b, f t‖^2 ≤ (b-a)*(∫ t in a..b, ‖f t‖^2) := by |
| 123 | have hn := intervalIntegral.norm_integral_le_integral_norm (μ := volume) (f := f) hab |
| 124 | exact (pow_le_pow_left₀ (norm_nonneg _) hn 2).trans |
| 125 | (integral_sq_le_length_mul (fun t => ‖f t‖) hab hf.norm hf2) |
| 126 | |
| 127 | omit [NormedSpace ℝ E] in |
| 128 | /-- The squared norm of the zero extension is integrable on all of real time. -/ |
| 129 | theorem zeroExtension_norm_sq_integrable (T : ℝ) (u : TimeLp T E) : |
| 130 | Integrable (fun t => ‖zeroExtension T u t‖^2) volume := |
| 131 | (zeroExtension_memLp T u).integrable_norm_pow (by norm_num) |
| 132 | |
| 133 | omit [NormedSpace ℝ E] in |
| 134 | /-- Zero extension preserves the literal L² time energy. -/ |
| 135 | theorem zeroExtension_norm_sq_integral (T : ℝ) (u : TimeLp T E) : |
| 136 | (∫ t, ‖zeroExtension T u t‖^2) = ‖u‖^2 := by |
| 137 | calc |
| 138 | (∫ t, ‖zeroExtension T u t‖^2) = ∫ t in Icc (0 : ℝ) T, ‖u t‖^2 := by |
| 139 | rw [← integral_indicator measurableSet_Icc] |
| 140 | apply integral_congr_ae |
| 141 | filter_upwards with t |
| 142 | by_cases ht : t ∈ Icc (0 : ℝ) T <;> simp [zeroExtension, ht] |
| 143 | _ = ‖u‖^2 := (norm_sq_eq_integral T u).symm |
| 144 | |
| 145 | /-- The sharp terminal trace bound at every time, with the global derivative energy. -/ |
| 146 | theorem realPrimitive_norm_sq_le (T : ℝ) (u : TimeLp T E) (t : ℝ) |
| 147 | (ht : t ∈ Icc (0 : ℝ) T) : |
| 148 | ‖realPrimitive T u t‖^2 ≤ (T-t)*‖u‖^2 := by |
| 149 | have hlocal := norm_integral_sq_le_length_mul (zeroExtension T u) ht.2 |
| 150 | (zeroExtension_integrable T u).intervalIntegrable |
| 151 | (zeroExtension_norm_sq_integrable T u).intervalIntegrable |
| 152 | have hmono : (∫ s in t..T, ‖zeroExtension T u s‖^2) ≤ ‖u‖^2 := by |
| 153 | rw [intervalIntegral.integral_of_le ht.2] |
| 154 | exact (setIntegral_le_integral (zeroExtension_norm_sq_integrable T u) |
| 155 | (Filter.Eventually.of_forall (fun s => sq_nonneg ‖zeroExtension T u s‖))).trans_eq |
| 156 | (zeroExtension_norm_sq_integral T u) |
| 157 | rw [realPrimitive, intervalIntegral.integral_symm, norm_neg] |
| 158 | exact hlocal.trans (mul_le_mul_of_nonneg_left hmono (sub_nonneg.mpr ht.2)) |
| 159 | |
| 160 | /-- The pointwise square-root form of the sharp terminal trace estimate. -/ |
| 161 | theorem realPrimitive_norm_le (T : ℝ) (u : TimeLp T E) (t : ℝ) |
| 162 | (ht : t ∈ Icc (0 : ℝ) T) : |
| 163 | ‖realPrimitive T u t‖ ≤ Real.sqrt (T-t)*‖u‖ := by |
| 164 | apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (Real.sqrt_nonneg _) (norm_nonneg _))).1 |
| 165 | rw [mul_pow, Real.sq_sqrt (sub_nonneg.mpr ht.2)] |
| 166 | exact realPrimitive_norm_sq_le T u t ht |
| 167 | |
| 168 | /-- The constructed representative is absolutely continuous, also for vector-valued inputs. -/ |
| 169 | theorem realPrimitive_absolutelyContinuous (T : ℝ) (u : TimeLp T E) : |
| 170 | AbsolutelyContinuousOnInterval (realPrimitive T u) 0 T := by |
| 171 | let g : ℝ → ℝ := fun t => ∫ r in T..t, ‖zeroExtension T u r‖ |
| 172 | have hg : AbsolutelyContinuousOnInterval g 0 T := |
| 173 | (zeroExtension_integrable T u).norm.intervalIntegrable.absolutelyContinuousOnInterval_intervalIntegral |
| 174 | right_mem_uIcc |
| 175 | have hd (s t : ℝ) : dist (realPrimitive T u s) (realPrimitive T u t) ≤ dist (g s) (g t) := by |
| 176 | calc |
| 177 | dist (realPrimitive T u s) (realPrimitive T u t) = |
| 178 | ‖∫ r in t..s, zeroExtension T u r‖ := by rw [dist_eq_norm, realPrimitive_increment] |
| 179 | _ ≤ |∫ r in t..s, ‖zeroExtension T u r‖| := |
| 180 | intervalIntegral.norm_integral_le_abs_integral_norm |
| 181 | _ = dist (g s) (g t) := by |
| 182 | rw [Real.dist_eq] |
| 183 | congr 1 |
| 184 | exact (intervalIntegral.integral_interval_sub_left |
| 185 | (zeroExtension_integrable T u).norm.intervalIntegrable |
| 186 | (zeroExtension_integrable T u).norm.intervalIntegrable).symm |
| 187 | exact squeeze_zero (fun _ => Finset.sum_nonneg (fun _ _ => dist_nonneg)) |
| 188 | (fun _ => Finset.sum_le_sum (fun _ _ => hd _ _)) hg |
| 189 | |
| 190 | omit [NormedSpace ℝ E] in |
| 191 | /-- The zero extension respects addition as an actual Lebesgue almost-everywhere identity. -/ |
| 192 | theorem zeroExtension_add_ae (T : ℝ) (u v : TimeLp T E) : |
| 193 | zeroExtension T (u+v) =ᵐ[volume] fun t => zeroExtension T u t+zeroExtension T v t := by |
| 194 | have h := (ae_eq_restrict_iff_indicator_ae_eq measurableSet_Icc).mp (Lp.coeFn_add u v) |
| 195 | filter_upwards [h] with t ht |
| 196 | by_cases hm : t ∈ Icc (0 : ℝ) T |
| 197 | · simpa [zeroExtension, hm] using ht |
| 198 | · simp [zeroExtension, hm] |
| 199 | |
| 200 | /-- The zero extension respects real scalar multiplication almost everywhere. -/ |
| 201 | theorem zeroExtension_smul_ae (T : ℝ) (a : ℝ) (u : TimeLp T E) : |
| 202 | zeroExtension T (a • u) =ᵐ[volume] fun t => a • zeroExtension T u t := by |
| 203 | have h := (ae_eq_restrict_iff_indicator_ae_eq measurableSet_Icc).mp (Lp.coeFn_smul a u) |
| 204 | filter_upwards [h] with t ht |
| 205 | by_cases hm : t ∈ Icc (0 : ℝ) T |
| 206 | · simpa [zeroExtension, hm] using ht |
| 207 | · simp [zeroExtension, hm] |
| 208 | |
| 209 | /-- The primitive path respects addition of genuine L² equivalence classes. -/ |
| 210 | theorem primitivePath_add (T : ℝ) (u v : TimeLp T E) : |
| 211 | primitivePath T (u+v) = primitivePath T u+primitivePath T v := by |
| 212 | ext t |
| 213 | change (∫ r in T..t.val, zeroExtension T (u+v) r) = |
| 214 | (∫ r in T..t.val, zeroExtension T u r)+(∫ r in T..t.val, zeroExtension T v r) |
| 215 | rw [← intervalIntegral.integral_add (zeroExtension_integrable T u).intervalIntegrable |
| 216 | (zeroExtension_integrable T v).intervalIntegrable] |
| 217 | exact intervalIntegral.integral_congr_ae ((zeroExtension_add_ae T u v).mono (fun _ h _ => h)) |
| 218 | |
| 219 | /-- The primitive path respects real scalar multiplication. -/ |
| 220 | theorem primitivePath_smul (T : ℝ) (a : ℝ) (u : TimeLp T E) : |
| 221 | primitivePath T (a • u) = a • primitivePath T u := by |
| 222 | ext t |
| 223 | change (∫ r in T..t.val, zeroExtension T (a • u) r) = a • (∫ r in T..t.val, zeroExtension T u r) |
| 224 | rw [← intervalIntegral.integral_smul] |
| 225 | exact intervalIntegral.integral_congr_ae ((zeroExtension_smul_ae T a u).mono (fun _ h _ => h)) |
| 226 | |
| 227 | /-- The continuous-path norm is bounded by the sharp terminal trace constant. -/ |
| 228 | theorem primitivePath_norm_le (T : ℝ) (_hT : 0 ≤ T) (u : TimeLp T E) : |
| 229 | ‖primitivePath T u‖ ≤ Real.sqrt T*‖u‖ := by |
| 230 | apply (ContinuousMap.norm_le _ (mul_nonneg (Real.sqrt_nonneg _) (norm_nonneg _))).2 |
| 231 | intro t |
| 232 | exact (realPrimitive_norm_le T u t t.property).trans |
| 233 | (mul_le_mul_of_nonneg_right (Real.sqrt_le_sqrt (sub_le_self T t.property.1)) (norm_nonneg _)) |
| 234 | |
| 235 | /-- Bounded terminal integration from actual Bochner L² fields to continuous paths. -/ |
| 236 | def terminalPrimitive (T : ℝ) (hT : 0 ≤ T) : TimeLp T E →L[ℝ] C(Icc (0 : ℝ) T, E) := |
| 237 | ({ toFun := primitivePath T |
| 238 | map_add' := primitivePath_add T |
| 239 | map_smul' := fun a u => by simpa only [RingHom.id_apply] using primitivePath_smul T a u } : |
| 240 | TimeLp T E →ₗ[ℝ] C(Icc (0 : ℝ) T, E)).mkContinuous (Real.sqrt T) (primitivePath_norm_le T hT) |
| 241 | |
| 242 | /-- Evaluation is the actual integral representative. -/ |
| 243 | @[simp] theorem terminalPrimitive_apply (T : ℝ) (hT : 0 ≤ T) (u : TimeLp T E) |
| 244 | (t : Icc (0 : ℝ) T) : terminalPrimitive T hT u t = realPrimitive T u t := rfl |
| 245 | |
| 246 | /-- The bounded primitive has exactly zero terminal trace. -/ |
| 247 | @[simp] theorem terminalPrimitive_terminal (T : ℝ) (hT : 0 ≤ T) (u : TimeLp T E) : |
| 248 | terminalPrimitive T hT u ⟨T, hT, le_rfl⟩ = 0 := realPrimitive_terminal T u |
| 249 | |
| 250 | /-- The sharp pointwise squared trace estimate for the bounded primitive. -/ |
| 251 | theorem terminalPrimitive_apply_norm_sq_le (T : ℝ) (hT : 0 ≤ T) (u : TimeLp T E) |
| 252 | (t : Icc (0 : ℝ) T) : ‖terminalPrimitive T hT u t‖^2 ≤ (T-t.val)*‖u‖^2 := |
| 253 | realPrimitive_norm_sq_le T u t t.property |
| 254 | |
| 255 | /-- Evaluation at any interval point is a continuous linear map of the derivative. -/ |
| 256 | def evaluation (T : ℝ) (hT : 0 ≤ T) (t : Icc (0 : ℝ) T) : TimeLp T E →L[ℝ] E := |
| 257 | (ContinuousMap.evalCLM ℝ t).comp (terminalPrimitive T hT) |
| 258 | |
| 259 | /-- The initial trace, with its zero-terminal normalization. -/ |
| 260 | def initialTrace (T : ℝ) (hT : 0 ≤ T) : TimeLp T E →L[ℝ] E := |
| 261 | evaluation T hT ⟨0, le_rfl, hT⟩ |
| 262 | |
| 263 | /-- The bounded primitive regarded as an actual Bochner L² time field. -/ |
| 264 | def primitiveTimeLp (T : ℝ) (hT : 0 ≤ T) : TimeLp T E →L[ℝ] TimeLp T E := |
| 265 | (pathLpOperator T hT).comp (terminalPrimitive T hT) |
| 266 | |
| 267 | /-- The Bochner primitive is represented by the same continuous real-time function. -/ |
| 268 | theorem primitiveTimeLp_ae (T : ℝ) (hT : 0 ≤ T) (u : TimeLp T E) : |
| 269 | (primitiveTimeLp T hT u : ℝ → E) =ᵐ[timeMeasure T] realPrimitive T u := by |
| 270 | change (pathLp T hT (terminalPrimitive T hT u) : ℝ → E) =ᵐ[timeMeasure T] realPrimitive T u |
| 271 | filter_upwards [pathLp_ae T hT (terminalPrimitive T hT u), |
| 272 | ae_restrict_mem measurableSet_Icc] with t ht hmem |
| 273 | rw [ht] |
| 274 | change realPrimitive T u (projIcc 0 T hT t) = realPrimitive T u t |
| 275 | rw [projIcc_of_mem hT hmem] |
| 276 | |
| 277 | /-- The primitive's increments within the interval are literal integrals of its L² derivative. -/ |
| 278 | theorem terminalPrimitive_increment (T : ℝ) (hT : 0 ≤ T) (u : TimeLp T E) |
| 279 | (s t : Icc (0 : ℝ) T) : |
| 280 | terminalPrimitive T hT u t-terminalPrimitive T hT u s = ∫ r in s.val..t.val, u r := by |
| 281 | rw [terminalPrimitive_apply, terminalPrimitive_apply, realPrimitive_increment] |
| 282 | apply intervalIntegral.integral_congr |
| 283 | intro r hr |
| 284 | have hm : r ∈ Icc (0 : ℝ) T := |
| 285 | (uIcc_subset_Icc s.property t.property) hr |
| 286 | exact Set.indicator_of_mem hm _ |
| 287 | |
| 288 | /-- The explicit initial trace is the negative total integral of the derivative. -/ |
| 289 | theorem initialTrace_eq_integral (T : ℝ) (hT : 0 ≤ T) (u : TimeLp T E) : |
| 290 | initialTrace T hT u = -(∫ t in 0..T, u t) := |
| 291 | realPrimitive_eq_neg_integral T u 0 ⟨le_rfl, hT⟩ |
| 292 | |
| 293 | /-- The initial trace has the exact squared energy estimate from the source. -/ |
| 294 | theorem initialTrace_norm_sq_le (T : ℝ) (hT : 0 ≤ T) (u : TimeLp T E) : |
| 295 | ‖initialTrace T hT u‖^2 ≤ T*‖u‖^2 := by |
| 296 | change ‖terminalPrimitive T hT u ⟨0, le_rfl, hT⟩‖^2 ≤ T*‖u‖^2 |
| 297 | simpa only [sub_zero] using terminalPrimitive_apply_norm_sq_le T hT u ⟨0, le_rfl, hT⟩ |
| 298 | |
| 299 | /-- The operator norm of terminal integration is bounded by the square root of the interval length. -/ |
| 300 | theorem terminalPrimitive_norm_le (T : ℝ) (hT : 0 ≤ T) : |
| 301 | ‖terminalPrimitive (E := E) T hT‖ ≤ Real.sqrt T := |
| 302 | ContinuousLinearMap.opNorm_le_bound _ (Real.sqrt_nonneg _) (primitivePath_norm_le T hT) |
| 303 | |
| 304 | /-- Evaluation retains the sharper bound corresponding to the remaining interval length. -/ |
| 305 | theorem evaluation_norm_le (T : ℝ) (hT : 0 ≤ T) (t : Icc (0 : ℝ) T) : |
| 306 | ‖evaluation (E := E) T hT t‖ ≤ Real.sqrt (T-t.val) := by |
| 307 | apply ContinuousLinearMap.opNorm_le_bound _ (Real.sqrt_nonneg _) |
| 308 | intro u |
| 309 | exact realPrimitive_norm_le T u t t.property |
| 310 | |
| 311 | /-- The initial trace is a bounded map with the exact source trace constant. -/ |
| 312 | theorem initialTrace_norm_le (T : ℝ) (hT : 0 ≤ T) : |
| 313 | ‖initialTrace (E := E) T hT‖ ≤ Real.sqrt T := by |
| 314 | change ‖evaluation (E := E) T hT ⟨0, le_rfl, hT⟩‖ ≤ Real.sqrt T |
| 315 | simpa only [sub_zero] using evaluation_norm_le (E := E) T hT ⟨0, le_rfl, hT⟩ |
| 316 | |
| 317 | /-- The integral version of the terminal Poincaré estimate, for actual L² derivative data. -/ |
| 318 | theorem realPrimitive_poincare (T : ℝ) (hT : 0 ≤ T) (u : TimeLp T E) : |
| 319 | (∫ t in 0..T, ‖realPrimitive T u t‖^2) ≤ T^2/2*‖u‖^2 := by |
| 320 | have hi := intervalIntegral.integral_mono_on (μ := volume) hT |
| 321 | (((realPrimitive_continuous T u).norm.pow 2).intervalIntegrable 0 T) |
| 322 | (((continuous_const.sub continuous_id).mul continuous_const).intervalIntegrable (a := 0) (b := T)) |
| 323 | (fun t ht => realPrimitive_norm_sq_le T u t ht) |
| 324 | have he : (∫ t in 0..T, (T-t)*‖u‖^2) = T^2/2*‖u‖^2 := by |
| 325 | have hic : IntervalIntegrable (fun _ : ℝ => T) volume 0 T := intervalIntegrable_const |
| 326 | have hid : IntervalIntegrable (fun t : ℝ => t) volume 0 T := continuous_id.intervalIntegrable 0 T |
| 327 | rw [intervalIntegral.integral_mul_const, |
| 328 | intervalIntegral.integral_sub hic hid, |
| 329 | intervalIntegral.integral_const, integral_id] |
| 330 | simp only [sub_zero, zero_pow (by decide : (2 : ℕ) ≠ 0), smul_eq_mul] |
| 331 | ring |
| 332 | exact hi.trans_eq he |
| 333 | |
| 334 | /-- The sharp source Poincaré constant for the genuine bounded Bochner primitive. -/ |
| 335 | theorem primitiveTimeLp_norm_sq_le (T : ℝ) (hT : 0 ≤ T) (u : TimeLp T E) : |
| 336 | ‖primitiveTimeLp T hT u‖^2 ≤ T^2/2*‖u‖^2 := by |
| 337 | rw [norm_sq_eq_integral] |
| 338 | have he : (∫ t, ‖(primitiveTimeLp T hT u : ℝ → E) t‖^2 ∂timeMeasure T) = |
| 339 | ∫ t in 0..T, ‖realPrimitive T u t‖^2 := by |
| 340 | rw [intervalIntegral.integral_of_le hT, ← integral_Icc_eq_integral_Ioc] |
| 341 | exact integral_congr_ae ((primitiveTimeLp_ae T hT u).mono |
| 342 | (fun _ h => congrArg (fun v : E => ‖v‖^2) h)) |
| 343 | rw [he] |
| 344 | exact realPrimitive_poincare T hT u |
| 345 | |
| 346 | /-- The corresponding operator norm bound, suitable for composing variational forms. -/ |
| 347 | theorem primitiveTimeLp_norm_le (T : ℝ) (hT : 0 ≤ T) : |
| 348 | ‖primitiveTimeLp (E := E) T hT‖ ≤ Real.sqrt (T^2/2) := by |
| 349 | apply ContinuousLinearMap.opNorm_le_bound _ (Real.sqrt_nonneg _) |
| 350 | intro u |
| 351 | apply (sq_le_sq₀ (norm_nonneg _) (mul_nonneg (Real.sqrt_nonneg _) (norm_nonneg _))).1 |
| 352 | rw [mul_pow, Real.sq_sqrt (by positivity)] |
| 353 | exact primitiveTimeLp_norm_sq_le T hT u |
| 354 | |
| 355 | /-- Distinct derivative classes give distinct terminal-zero paths. |
| 356 | Thus Bochner L², equipped with the derivative norm, is a faithful Hilbert model |
| 357 | of these terminal H¹ paths when the target is a Hilbert space. -/ |
| 358 | theorem terminalPrimitive_injective [CompleteSpace E] (T : ℝ) (hT : 0 ≤ T) : |
| 359 | Function.Injective (terminalPrimitive (E := E) T hT) := by |
| 360 | intro u v huv |
| 361 | apply Lp.ext |
| 362 | have hmem : ∀ᵐ t ∂timeMeasure T, t ∈ Ioo (0 : ℝ) T := by |
| 363 | change ∀ᵐ t ∂volume.restrict (Icc (0 : ℝ) T), t ∈ Ioo (0 : ℝ) T |
| 364 | rw [← restrict_Ioo_eq_restrict_Icc] |
| 365 | exact ae_restrict_mem measurableSet_Ioo |
| 366 | filter_upwards [realPrimitive_hasDerivAt_ae T u, realPrimitive_hasDerivAt_ae T v, hmem] |
| 367 | with t hu hv ht |
| 368 | have he : realPrimitive T u =ᶠ[𝓝 t] realPrimitive T v := by |
| 369 | filter_upwards [Ioo_mem_nhds ht.1 ht.2] with s hs |
| 370 | exact congrArg (fun f : C(Icc (0 : ℝ) T, E) => f ⟨s, hs.1.le, hs.2.le⟩) huv |
| 371 | exact hu.unique (hv.congr_of_eventuallyEq he) |
| 372 | |
| 373 | /-- Every absolutely continuous terminal-zero path with the prescribed L² |
| 374 | derivative is the constructed primitive. This identifies arbitrary genuine H¹ |
| 375 | test paths with the derivative-coordinate model used by the variational form. -/ |
| 376 | theorem eq_realPrimitive_of_ac_hasDerivAt_ae [CompleteSpace E] |
| 377 | (T : ℝ) (hT : 0 ≤ T) (u : TimeLp T E) (η : ℝ → E) |
| 378 | (hη : AbsolutelyContinuousOnInterval η 0 T) |
| 379 | (hder : ∀ᵐ t ∂timeMeasure T, HasDerivAt η (u t) t) |
| 380 | (hterminal : η T = 0) (t : ℝ) (ht : t ∈ Icc (0 : ℝ) T) : |
| 381 | η t = realPrimitive T u t := by |
| 382 | have hdiff := hη.sub (realPrimitive_absolutelyContinuous T u) |
| 383 | have hz : ∀ᵐ s ∂timeMeasure T, HasDerivAt (η-realPrimitive T u) 0 s := by |
| 384 | filter_upwards [hder, realPrimitive_hasDerivAt_ae T u] with s hs hj |
| 385 | simpa only [sub_self] using hs.sub hj |
| 386 | have hz' : ∀ᵐ s, s ∈ uIcc (0 : ℝ) T → HasDerivAt (η-realPrimitive T u) 0 s := by |
| 387 | rw [uIcc_of_le hT] |
| 388 | exact (ae_restrict_iff' measurableSet_Icc).mp hz |
| 389 | obtain ⟨c, hc⟩ := hdiff.const_of_ae_hasDerivAt_zero hz' |
| 390 | have hc0 : c = 0 := by |
| 391 | have he := hc T right_mem_uIcc |
| 392 | simpa only [Pi.sub_apply, hterminal, realPrimitive_terminal, sub_self] using he.symm |
| 393 | have he := hc t (by simpa only [uIcc_of_le hT] using ht) |
| 394 | rw [hc0] at he |
| 395 | exact sub_eq_zero.mp he |
| 396 | |
| 397 | end EulerTerminalTimePrimitive |