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.SmoothFlowVolume |
| 2 | import Euler.SmoothTimeFieldRestriction |
| 3 | import Euler.SmoothTimeFieldLinear |
| 4 | import Mathlib.MeasureTheory.Function.LpSeminorm.Basic |
| 5 | |
| 6 | /-! Actual backward particle flows of smooth finite-energy truncations. |
| 7 | The maps are clamped outside the chosen interval, preserving volume at every |
| 8 | real parameter. Reversing from the other endpoint recovers the original |
| 9 | coefficient and supplies the forward paths used in local trapping arguments. -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | open Set MeasureTheory |
| 14 | open scoped ContDiff Topology BoundedContinuousFunction |
| 15 | |
| 16 | namespace Euler.ComparatorBridge.TruncatedBackwardFlow |
| 17 | |
| 18 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 19 | [FiniteDimensional ℝ E] |
| 20 | (A : SmoothTimeField (Icc (0 : ℝ) 1) E E) |
| 21 | (T : ℝ) (hT : 0 ≤ T) (hT1 : T ≤ 1) |
| 22 | |
| 23 | /-- Time reversal into the original unit interval. -/ |
| 24 | def reverseTime : C(Icc (0 : ℝ) T, Icc (0 : ℝ) 1) where |
| 25 | toFun s := ⟨T - s, sub_nonneg.mpr s.property.2, |
| 26 | (sub_le_self T s.property.1).trans hT1⟩ |
| 27 | continuous_toFun := by fun_prop |
| 28 | |
| 29 | /-- Minus the original velocity at reversed time. -/ |
| 30 | def reverseField : SmoothTimeField (Icc (0 : ℝ) T) E E := |
| 31 | (A.compTime (reverseTime T hT1)).map (-ContinuousLinearMap.id ℝ E) |
| 32 | |
| 33 | omit [FiniteDimensional ℝ E] in |
| 34 | @[simp] theorem reverseField_apply (s : Icc (0 : ℝ) T) (x : E) : |
| 35 | (reverseField A T hT1).field s x = -A.field (reverseTime T hT1 s) x := by |
| 36 | simp [reverseField] |
| 37 | |
| 38 | /-- The existing global Picard construction for the reversed field. -/ |
| 39 | def flowData : EulerBoundedLipschitzFlow.Data E := |
| 40 | EulerSmoothBanachFlow.flowData T hT (reverseField A T hT1) |
| 41 | |
| 42 | /-- Backward flow homeomorphisms, clamped outside the chosen interval. -/ |
| 43 | def homeomorph (s : ℝ) : E ≃ₜ E := |
| 44 | (flowData A T hT hT1).flowHomeomorph 0 (projIcc 0 T hT s) |
| 45 | |
| 46 | /-- The globally defined, endpoint-extended backward coefficient. -/ |
| 47 | def velocity (s : ℝ) (x : E) : E := (flowData A T hT hT1).velocity s x |
| 48 | |
| 49 | omit [FiniteDimensional ℝ E] in |
| 50 | @[simp] theorem velocity_eq (s : ℝ) (x : E) : |
| 51 | velocity A T hT hT1 s x = |
| 52 | -A.field (reverseTime T hT1 (projIcc 0 T hT s)) x := by |
| 53 | change (reverseField A T hT1).field (projIcc 0 T hT s) x = _ |
| 54 | exact reverseField_apply A T hT1 _ x |
| 55 | |
| 56 | omit [FiniteDimensional ℝ E] in |
| 57 | /-- On the interval, the velocity is the original field at reversed time. -/ |
| 58 | theorem velocity_eq_realField (s : ℝ) (hs : s ∈ Icc 0 T) (x : E) : |
| 59 | velocity A T hT hT1 s x = -A.realField 1 zero_le_one (T - s) x := by |
| 60 | rw [velocity_eq] |
| 61 | simp only [SmoothTimeField.realField, EulerVolterraConvolution.extendPath, |
| 62 | projIcc_of_mem hT hs, |
| 63 | projIcc_of_mem zero_le_one (show T-s ∈ Icc (0 : ℝ) 1 from |
| 64 | ⟨sub_nonneg.mpr hs.2, by linarith [hs.1]⟩)] |
| 65 | rfl |
| 66 | |
| 67 | @[simp] theorem homeomorph_apply (s : ℝ) (x : E) : |
| 68 | homeomorph A T hT hT1 s x = |
| 69 | (flowData A T hT hT1).forward (projIcc 0 T hT s) x := rfl |
| 70 | |
| 71 | @[simp] theorem homeomorph_zero (x : E) : |
| 72 | homeomorph A T hT hT1 0 x = x := by |
| 73 | rw [homeomorph_apply] |
| 74 | simp only [projIcc_of_mem hT (show (0 : ℝ) ∈ Icc 0 T from ⟨le_rfl, hT⟩)] |
| 75 | exact (flowData A T hT hT1).forward_zero x |
| 76 | |
| 77 | theorem homeomorph_joint_continuous : |
| 78 | Continuous (fun sx : ℝ × E => homeomorph A T hT hT1 sx.1 sx.2) := by |
| 79 | exact (flowData A T hT hT1).forward_joint_continuous.comp |
| 80 | (((continuous_subtype_val.comp (continuous_projIcc (a := 0) (b := T) (h := hT))).comp continuous_fst).prodMk |
| 81 | continuous_snd) |
| 82 | |
| 83 | omit [FiniteDimensional ℝ E] in |
| 84 | theorem velocity_joint_continuous : |
| 85 | Continuous (Function.uncurry (velocity A T hT hT1)) := |
| 86 | (flowData A T hT hT1).continuous |
| 87 | |
| 88 | theorem curve_continuous (x : E) : |
| 89 | Continuous (fun s => homeomorph A T hT hT1 s x) := |
| 90 | (homeomorph_joint_continuous A T hT hT1).comp |
| 91 | (continuous_id.prodMk continuous_const) |
| 92 | |
| 93 | theorem speed_continuous (x : E) : |
| 94 | Continuous (fun s => velocity A T hT hT1 s (homeomorph A T hT hT1 s x)) := by |
| 95 | convert (velocity_joint_continuous A T hT hT1).comp |
| 96 | (continuous_id.prodMk (curve_continuous A T hT hT1 x)) using 1 |
| 97 | rfl |
| 98 | |
| 99 | theorem curve_hasDerivAt (x : E) (s : ℝ) (hs : s ∈ Ioo 0 T) : |
| 100 | HasDerivAt (fun r => homeomorph A T hT hT1 r x) |
| 101 | (velocity A T hT hT1 s (homeomorph A T hT hT1 s x)) s := by |
| 102 | have he : (fun r => homeomorph A T hT hT1 r x) =ᶠ[𝓝 s] |
| 103 | (fun r => (flowData A T hT hT1).forward r x) := by |
| 104 | filter_upwards [Icc_mem_nhds hs.1 hs.2] with r hr |
| 105 | simp only [homeomorph_apply, projIcc_of_mem hT hr] |
| 106 | have hd := (flowData A T hT hT1).forward_hasDerivAt s x |
| 107 | have hv : homeomorph A T hT hT1 s x = (flowData A T hT hT1).forward s x := by |
| 108 | simp only [homeomorph_apply, projIcc_of_mem hT ⟨hs.1.le, hs.2.le⟩] |
| 109 | rw [hv] |
| 110 | exact hd.congr_of_eventuallyEq he |
| 111 | |
| 112 | /-- A trajectory in the original time direction. -/ |
| 113 | def endpointPath (a : E) (r : ℝ) : E := |
| 114 | (flowData A T hT hT1).flow T (T-r) a |
| 115 | |
| 116 | @[simp] theorem endpointPath_zero (a : E) : endpointPath A T hT hT1 a 0 = a := by |
| 117 | simp only [endpointPath, sub_zero, EulerBoundedLipschitzFlow.Data.flow_initial] |
| 118 | |
| 119 | @[simp] theorem endpointPath_end (a : E) : |
| 120 | endpointPath A T hT hT1 a T = (homeomorph A T hT hT1 T).symm a := by |
| 121 | change (flowData A T hT hT1).flow T (T-T) a = |
| 122 | (flowData A T hT hT1).flow (projIcc 0 T hT T) 0 a |
| 123 | simp only [sub_self, projIcc_of_mem hT (show T ∈ Icc 0 T from ⟨hT, le_rfl⟩)] |
| 124 | |
| 125 | theorem endpointPath_continuous (a : E) : Continuous (endpointPath A T hT hT1 a) := |
| 126 | ((flowData A T hT hT1).flow_continuous_time T a).comp |
| 127 | (continuous_const.sub continuous_id) |
| 128 | |
| 129 | theorem endpointPath_hasDerivAt (a : E) (r : ℝ) (hr : r ∈ Ioo 0 T) : |
| 130 | HasDerivAt (endpointPath A T hT hT1 a) |
| 131 | (A.realField 1 zero_le_one r (endpointPath A T hT hT1 a r)) r := by |
| 132 | unfold endpointPath |
| 133 | have hd := ((flowData A T hT hT1).flow_hasDerivAt T (T-r) a).scomp r |
| 134 | ((hasDerivAt_const r T).sub (hasDerivAt_id r)) |
| 135 | have hv := velocity_eq_realField A T hT hT1 (T-r) |
| 136 | (show T-r ∈ Icc 0 T from ⟨by linarith [hr.2], by linarith [hr.1]⟩) |
| 137 | (endpointPath A T hT hT1 a r) |
| 138 | simp only [sub_sub_cancel] at hv |
| 139 | change (flowData A T hT hT1).velocity (T-r) |
| 140 | ((flowData A T hT hT1).flow T (T-r) a) = _ at hv |
| 141 | simpa only [Function.comp_def, zero_sub, neg_smul, one_smul, hv, |
| 142 | neg_neg, endpointPath] using hd |
| 143 | |
| 144 | /-- The same derivative with the original subtype-indexed coefficient. -/ |
| 145 | theorem endpointPath_hasDerivAt_field (a : E) (r : ℝ) (hr : r ∈ Ioo 0 T) : |
| 146 | HasDerivAt (endpointPath A T hT hT1 a) |
| 147 | (A.field ⟨r, hr.1.le, hr.2.le.trans hT1⟩ |
| 148 | (endpointPath A T hT hT1 a r)) r := by |
| 149 | simpa only [SmoothTimeField.realField, EulerVolterraConvolution.extendPath, |
| 150 | projIcc_of_mem zero_le_one ⟨hr.1.le, hr.2.le.trans hT1⟩] using |
| 151 | endpointPath_hasDerivAt A T hT hT1 a r hr |
| 152 | |
| 153 | omit [FiniteDimensional ℝ E] in |
| 154 | theorem reverseField_divergence |
| 155 | (hdiv : ∀ t x, LinearMap.trace ℝ E (fderiv ℝ (A.field t : E → E) x).toLinearMap = 0) |
| 156 | (s : Icc (0 : ℝ) T) (x : E) : |
| 157 | LinearMap.trace ℝ E |
| 158 | (fderiv ℝ ((reverseField A T hT1).field s : E → E) x).toLinearMap = 0 := by |
| 159 | have he : ((reverseField A T hT1).field s : E → E) = |
| 160 | fun y => -A.field (reverseTime T hT1 s) y := by |
| 161 | ext y |
| 162 | exact reverseField_apply A T hT1 s y |
| 163 | rw [he, fderiv_fun_neg] |
| 164 | change LinearMap.trace ℝ E |
| 165 | (-(fderiv ℝ (A.field (reverseTime T hT1 s) : E → E) x).toLinearMap) = 0 |
| 166 | rw [map_neg, hdiv, neg_zero] |
| 167 | |
| 168 | section Measure |
| 169 | |
| 170 | variable [MeasurableSpace E] [BorelSpace E] |
| 171 | (μ : Measure E) [Measure.IsAddHaarMeasure μ] |
| 172 | |
| 173 | theorem homeomorph_measurePreserving |
| 174 | (hdiv : ∀ t x, LinearMap.trace ℝ E (fderiv ℝ (A.field t : E → E) x).toLinearMap = 0) |
| 175 | (s : ℝ) : MeasurePreserving (homeomorph A T hT hT1 s) μ μ := by |
| 176 | exact EulerSmoothBanachFlow.forward_measurePreserving T hT (reverseField A T hT1) |
| 177 | (reverseField_divergence A T hT1 hdiv) μ (projIcc 0 T hT s) |
| 178 | |
| 179 | omit [FiniteDimensional ℝ E] [BorelSpace E] [Measure.IsAddHaarMeasure μ] in |
| 180 | theorem velocity_memLp (hmem : ∀ t, MemLp (A.field t : E → E) 2 μ) (s : ℝ) : |
| 181 | MemLp (velocity A T hT hT1 s) 2 μ := by |
| 182 | have he : velocity A T hT hT1 s = |
| 183 | fun x => -A.field (reverseTime T hT1 (projIcc 0 T hT s)) x := by |
| 184 | funext x |
| 185 | exact velocity_eq A T hT hT1 s x |
| 186 | rw [he] |
| 187 | exact (hmem _).neg |
| 188 | |
| 189 | omit [FiniteDimensional ℝ E] [BorelSpace E] [Measure.IsAddHaarMeasure μ] in |
| 190 | theorem velocity_energy (energy : ℝ) |
| 191 | (henergy : ∀ t, (∫ x, ‖A.field t x‖ ^ 2 ∂μ) ≤ energy) (s : ℝ) : |
| 192 | (∫ x, ‖velocity A T hT hT1 s x‖ ^ 2 ∂μ) ≤ energy := by |
| 193 | simp only [velocity_eq, norm_neg] |
| 194 | exact henergy _ |
| 195 | |
| 196 | omit [Measure.IsAddHaarMeasure μ] in |
| 197 | theorem action_joint_measurable : |
| 198 | AEStronglyMeasurable |
| 199 | (fun sx : ℝ × E => ‖velocity A T hT hT1 sx.1 |
| 200 | (homeomorph A T hT hT1 sx.1 sx.2)‖ ^ 2) |
| 201 | ((volume.restrict (Icc 0 T)).prod μ) := by |
| 202 | exact (((velocity_joint_continuous A T hT hT1).comp |
| 203 | (continuous_fst.prodMk (homeomorph_joint_continuous A T hT hT1))).norm.pow 2).aestronglyMeasurable |
| 204 | |
| 205 | end Measure |
| 206 | |
| 207 | end Euler.ComparatorBridge.TruncatedBackwardFlow |