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.TimeH1OperatorProduct |
| 2 | |
| 3 | /-! |
| 4 | # Bounded operators on continuous time paths |
| 5 | |
| 6 | The multiplier and initial integral are actual continuous linear maps. The |
| 7 | primitive has the prescribed derivative, including the one-sided endpoint |
| 8 | statements, and the uniform bound is exactly the interval length. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | |
| 14 | namespace EulerContinuousTimeIntegral |
| 15 | |
| 16 | open Set ContinuousLinearMap EulerVolterraConvolution |
| 17 | open scoped Topology Interval |
| 18 | |
| 19 | variable {K E F : Type*} [TopologicalSpace K] [CompactSpace K] |
| 20 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 21 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 22 | |
| 23 | /-- Pointwise multiplication by an operator-valued continuous path. -/ |
| 24 | def multiplierLinear (A : C(K,E →L[ℝ] F)) : C(K,E) →ₗ[ℝ] C(K,F) where |
| 25 | toFun f := ⟨fun t => A t (f t), A.continuous.clm_apply f.continuous⟩ |
| 26 | map_add' f g := by ext t; exact map_add (A t) (f t) (g t) |
| 27 | map_smul' r f := by ext t; exact map_smul (A t) r (f t) |
| 28 | |
| 29 | /-- The multiplier has the literal coefficient bound. -/ |
| 30 | theorem multiplierLinear_bound (A : C(K,E →L[ℝ] F)) (f : C(K,E)) : |
| 31 | ‖multiplierLinear A f‖ ≤ ‖A‖ * ‖f‖ := by |
| 32 | apply (ContinuousMap.norm_le _ (mul_nonneg (norm_nonneg A) (norm_nonneg f))).2 |
| 33 | intro t |
| 34 | exact ((A t).le_opNorm (f t)).trans |
| 35 | (mul_le_mul (A.norm_coe_le_norm t) (f.norm_coe_le_norm t) (norm_nonneg _) (norm_nonneg A)) |
| 36 | |
| 37 | /-- The genuine bounded multiplier on continuous time paths. -/ |
| 38 | def multiplier (A : C(K,E →L[ℝ] F)) : C(K,E) →L[ℝ] C(K,F) := |
| 39 | (multiplierLinear A).mkContinuous ‖A‖ (multiplierLinear_bound A) |
| 40 | |
| 41 | @[simp] theorem multiplier_apply (A : C(K,E →L[ℝ] F)) (f : C(K,E)) (t : K) : |
| 42 | multiplier A f t = A t (f t) := rfl |
| 43 | |
| 44 | /-- No derivative-dependent loss enters continuous path multiplication. -/ |
| 45 | theorem multiplier_norm (A : C(K,E →L[ℝ] F)) : ‖multiplier A‖ ≤ ‖A‖ := |
| 46 | (multiplierLinear A).mkContinuous_norm_le (norm_nonneg A) (multiplierLinear_bound A) |
| 47 | |
| 48 | section Primitive |
| 49 | |
| 50 | variable [CompleteSpace E] (T : ℝ) (hT : 0 ≤ T) |
| 51 | |
| 52 | /-- The literal zero-initial-time integral. -/ |
| 53 | def realIntegral (f : C(Icc (0 : ℝ) T,E)) : ℝ → E := |
| 54 | fun t => ∫ s in (0 : ℝ)..t, extendPath T hT f s |
| 55 | |
| 56 | /-- The integral has the actual classical derivative. -/ |
| 57 | theorem realIntegral_hasDerivAt (f : C(Icc (0 : ℝ) T,E)) (t : ℝ) : |
| 58 | HasDerivAt (realIntegral T hT f) (extendPath T hT f t) t := by |
| 59 | have hc := extendPath_continuous T hT f |
| 60 | exact intervalIntegral.integral_hasDerivAt_right (hc.intervalIntegrable 0 t) |
| 61 | hc.aestronglyMeasurable.stronglyMeasurableAtFilter hc.continuousAt |
| 62 | |
| 63 | /-- The actual integral is a continuous time path. -/ |
| 64 | def integralLinear : C(Icc (0 : ℝ) T,E) →ₗ[ℝ] C(Icc (0 : ℝ) T,E) where |
| 65 | toFun f := ⟨fun t => realIntegral T hT f t, |
| 66 | ((show Differentiable ℝ (realIntegral T hT f) from fun t => |
| 67 | (realIntegral_hasDerivAt T hT f t).differentiableAt).continuous).comp continuous_subtype_val⟩ |
| 68 | map_add' f g := by |
| 69 | ext t |
| 70 | exact intervalIntegral.integral_add ((extendPath_continuous T hT f).intervalIntegrable 0 t) |
| 71 | ((extendPath_continuous T hT g).intervalIntegrable 0 t) |
| 72 | map_smul' r f := by |
| 73 | ext t |
| 74 | exact intervalIntegral.integral_smul r (extendPath T hT f) |
| 75 | |
| 76 | /-- The uniform norm of the primitive is bounded by time length times the input norm. -/ |
| 77 | theorem integralLinear_bound (f : C(Icc (0 : ℝ) T,E)) : |
| 78 | ‖integralLinear T hT f‖ ≤ T*‖f‖ := by |
| 79 | apply (ContinuousMap.norm_le _ (mul_nonneg hT (norm_nonneg f))).2 |
| 80 | intro t |
| 81 | have hp : ‖realIntegral T hT f t‖ ≤ ‖f‖ * (t : ℝ) := by |
| 82 | simpa only [realIntegral, extendPath, sub_zero, abs_of_nonneg t.property.1] using |
| 83 | (intervalIntegral.norm_integral_le_of_norm_le_const |
| 84 | (fun s (_ : s ∈ Ι (0 : ℝ) (t : ℝ)) => f.norm_coe_le_norm (projIcc 0 T hT s))) |
| 85 | exact hp.trans (by nlinarith [t.property.2, norm_nonneg f]) |
| 86 | |
| 87 | /-- The zero-initial-time integral as a bounded linear operator. -/ |
| 88 | def integral : C(Icc (0 : ℝ) T,E) →L[ℝ] C(Icc (0 : ℝ) T,E) := |
| 89 | (integralLinear T hT).mkContinuous T (integralLinear_bound T hT) |
| 90 | |
| 91 | @[simp] theorem integral_apply (f : C(Icc (0 : ℝ) T,E)) (t : Icc (0 : ℝ) T) : |
| 92 | integral T hT f t = realIntegral T hT f t := rfl |
| 93 | |
| 94 | /-- The exact operator bound for the initial primitive. -/ |
| 95 | theorem integral_norm : ‖integral (E := E) T hT‖ ≤ T := by |
| 96 | apply opNorm_le_bound _ hT |
| 97 | intro f |
| 98 | exact integralLinear_bound T hT f |
| 99 | |
| 100 | @[simp] theorem integral_initial (f : C(Icc (0 : ℝ) T,E)) : |
| 101 | integral T hT f ⟨0,le_rfl,hT⟩ = 0 := by |
| 102 | exact intervalIntegral.integral_same |
| 103 | |
| 104 | /-- The primitive has the prescribed within-interval derivative at every time. -/ |
| 105 | theorem integral_hasDerivWithinAt (f : C(Icc (0 : ℝ) T,E)) (t : Icc (0 : ℝ) T) : |
| 106 | HasDerivWithinAt (extendPath T hT (integral T hT f)) (f t) (Icc (0 : ℝ) T) t := by |
| 107 | have hd : HasDerivWithinAt (realIntegral T hT f) (f t) (Icc (0 : ℝ) T) t := by |
| 108 | simpa only [extendPath, projIcc_of_mem hT t.property] using |
| 109 | (realIntegral_hasDerivAt T hT f t).hasDerivWithinAt (s := Icc (0 : ℝ) T) |
| 110 | apply hd.congr_of_mem _ t.property |
| 111 | intro s hs |
| 112 | simp only [extendPath, projIcc_of_mem hT hs, integral_apply] |
| 113 | |
| 114 | /-- A path with this derivative is its initial value plus the actual integral. -/ |
| 115 | theorem eq_initial_add_integral (f : C(Icc (0 : ℝ) T,E)) (a : ℝ → E) |
| 116 | (ha : ∀ t : Icc (0 : ℝ) T, HasDerivWithinAt a (f t) (Icc (0 : ℝ) T) t) |
| 117 | (t : Icc (0 : ℝ) T) : a t = a 0 + integral T hT f t := by |
| 118 | have hd : ∀ s ∈ Icc (0 : ℝ) T, |
| 119 | HasDerivWithinAt (fun r => a r - realIntegral T hT f r) 0 (Icc (0 : ℝ) T) s := by |
| 120 | intro s hs |
| 121 | have hp := (ha ⟨s,hs⟩).sub (realIntegral_hasDerivAt T hT f s).hasDerivWithinAt |
| 122 | change HasDerivWithinAt (a - realIntegral T hT f) 0 (Icc (0 : ℝ) T) s |
| 123 | simpa only [extendPath, projIcc_of_mem hT hs, sub_self] using hp |
| 124 | have hb := Convex.norm_image_sub_le_of_norm_hasDerivWithin_le (C := 0) hd |
| 125 | (fun s hs => by simp) (convex_Icc (0 : ℝ) T) |
| 126 | (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl,hT⟩) t.property |
| 127 | have he : a t - realIntegral T hT f t = a 0 := by |
| 128 | simpa only [zero_mul, norm_le_zero_iff, sub_eq_zero, realIntegral, |
| 129 | intervalIntegral.integral_same, sub_zero] using hb |
| 130 | exact sub_eq_iff_eq_add.mp he |
| 131 | |
| 132 | end Primitive |
| 133 | |
| 134 | end EulerContinuousTimeIntegral |