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.TransversePacketPrimaryPaths |
| 2 | import Euler.CylinderEndpointParity |
| 3 | import Euler.TransversePacketParity |
| 4 | import Euler.PacketCylinderScalarGradient |
| 5 | import Euler.PacketCylinderFieldSupport |
| 6 | import Euler.PacketCylinderTimeParity |
| 7 | |
| 8 | /-! Canonical raw fields for the actual terminal-history/forward primary |
| 9 | solution, with genuine time derivative, support, mean and tangent constraints. -/ |
| 10 | |
| 11 | /-! ## From `Euler/TransversePacketPrimaryEquation.lean` |
| 12 | |
| 13 | The text of `Euler/TransversePacketPrimaryEquation.lean`, folded into this file, which was its only importer. -/ |
| 14 | |
| 15 | section |
| 16 | |
| 17 | /-! |
| 18 | The actual joined primary solves the homogeneous transverse equation. |
| 19 | The physical normal field is pointwise; it is never treated as one L² |
| 20 | vector. All equations below are for genuine cylinder representatives. |
| 21 | -/ |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | namespace EulerTransversePacketPrimary |
| 26 | |
| 27 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit |
| 28 | EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderPaths |
| 29 | EulerTransversePacketProvider EulerTimeIntervalRestriction |
| 30 | |
| 31 | variable {P : ℝ} [Fact (0 < P)] |
| 32 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 33 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 34 | (B : HistoryData (D.initial τ hτ hτT.le)) (Y : InitialData P D) |
| 35 | |
| 36 | theorem balance_ae (t : Icc (0 : ℝ) D.T) : |
| 37 | ∀ᵐ x ∂liftMeasure P, |
| 38 | derivativePath τ hτ hτT B Y t x+D.M.field t x.1 (velocityPath τ hτ hτT B Y t x)+ |
| 39 | (-(2*⟪D.normal.field t x.1,D.M.field t x.1 (velocityPath τ hτ hτT B Y t x)⟫_ℝ)/ |
| 40 | ‖D.normal.field t x.1‖^2) • D.normal.field t x.1 = 0 := by |
| 41 | by_cases ht : (t : ℝ) ≤ τ |
| 42 | · let th : Icc (0 : ℝ) τ := ⟨t,t.property.1,ht⟩ |
| 43 | have hv : velocityPath τ hτ hτT B Y t = pastVelocity τ hτ hτT B Y th := |
| 44 | velocityPath_left τ hτ hτT B Y th |
| 45 | have hd : derivativePath τ hτ hτT B Y t = pastDerivative τ hτ hτT B Y th := |
| 46 | derivativePath_left τ hτ hτT B Y th |
| 47 | rw [hv,hd] |
| 48 | exact past_balance_ae τ hτ hτT B Y th |
| 49 | · let tr : Icc τ D.T := ⟨t,(not_le.mp ht).le,t.property.2⟩ |
| 50 | let tf : Icc (0 : ℝ) (D.T-τ) := |
| 51 | ⟨(t : ℝ)-τ,sub_nonneg.mpr tr.property.1,sub_le_sub_right t.property.2 τ⟩ |
| 52 | have hv : velocityPath τ hτ hτT B Y t = futureVelocity τ hτ hτT B Y tf := |
| 53 | velocityPath_right τ hτ hτT B Y tr |
| 54 | have hd : derivativePath τ hτ hτT B Y t = futureDerivative τ hτ hτT B Y tf := |
| 55 | derivativePath_right τ hτ hτT B Y tr |
| 56 | have hidx : tailInclusion D.T τ hτ.le tf = t := by |
| 57 | apply Subtype.ext |
| 58 | change τ+((t : ℝ)-τ) = (t : ℝ) |
| 59 | ring |
| 60 | have hM : (D.tail τ hτ.le hτT).M.field tf = D.M.field t := by |
| 61 | change D.M.field (tailInclusion D.T τ hτ.le tf) = D.M.field t |
| 62 | rw [hidx] |
| 63 | have hm : (D.tail τ hτ.le hτT).normal.field tf = D.normal.field t := by |
| 64 | change D.normal.field (tailInclusion D.T τ hτ.le tf) = D.normal.field t |
| 65 | rw [hidx] |
| 66 | have he := future_balance_ae τ hτ hτT B Y tf |
| 67 | rw [hM,hm,← hv,← hd] at he |
| 68 | exact he |
| 69 | |
| 70 | theorem tangent_ae (t : Icc (0 : ℝ) D.T) : |
| 71 | ∀ᵐ x ∂liftMeasure P, |
| 72 | ⟪D.normal.field t x.1,velocityPath τ hτ hτT B Y t x⟫_ℝ = 0 := by |
| 73 | by_cases ht : (t : ℝ) ≤ τ |
| 74 | · let th : Icc (0 : ℝ) τ := ⟨t,t.property.1,ht⟩ |
| 75 | have hv : velocityPath τ hτ hτT B Y t = pastVelocity τ hτ hτT B Y th := |
| 76 | velocityPath_left τ hτ hτT B Y th |
| 77 | rw [hv] |
| 78 | filter_upwards [EulerTransversePacketEndpoint.velocityPath_ae B (endpointData τ hτ hτT Y) th] |
| 79 | with x hx |
| 80 | change pastVelocity τ hτ hτT B Y th x = _ at hx |
| 81 | rw [hx] |
| 82 | exact (D.initial τ hτ hτT.le).frame_tangent th x.1 _ |
| 83 | · let tr : Icc τ D.T := ⟨t,(not_le.mp ht).le,t.property.2⟩ |
| 84 | let tf : Icc (0 : ℝ) (D.T-τ) := |
| 85 | ⟨(t : ℝ)-τ,sub_nonneg.mpr tr.property.1,sub_le_sub_right t.property.2 τ⟩ |
| 86 | let Df := D.tail τ hτ.le hτT |
| 87 | have hv : velocityPath τ hτ hτT B Y t = futureVelocity τ hτ hτT B Y tf := |
| 88 | velocityPath_right τ hτ hτT B Y tr |
| 89 | have hidx : tailInclusion D.T τ hτ.le tf = t := by |
| 90 | apply Subtype.ext |
| 91 | change τ+((t : ℝ)-τ) = (t : ℝ) |
| 92 | ring |
| 93 | have hm : Df.normal.field tf = D.normal.field t := by |
| 94 | change D.normal.field (tailInclusion D.T τ hτ.le tf) = D.normal.field t |
| 95 | rw [hidx] |
| 96 | rw [hv,← hm] |
| 97 | filter_upwards [EulerSourceCylinderEquation.velocity_ae P D.support D.support_measurable |
| 98 | Df.T Df.T_pos.le Df.frame Df.frameDerivative Df.frameLower Df.frameLower_pos Df.frame_lower |
| 99 | (zeroForcing Df).path (forwardInitial τ hτ hτT B Y).value tf] with x hx |
| 100 | change futureVelocity τ hτ hτT B Y tf x = _ at hx |
| 101 | rw [hx] |
| 102 | exact Df.frame_tangent tf x.1 _ |
| 103 | |
| 104 | end EulerTransversePacketPrimary |
| 105 | end |
| 106 | |
| 107 | end |
| 108 | |
| 109 | /-! ## From `Euler/TransversePacketPrimaryParity.lean` |
| 110 | |
| 111 | The text of `Euler/TransversePacketPrimaryParity.lean`, folded into this file, which was its only importer. -/ |
| 112 | |
| 113 | section |
| 114 | |
| 115 | /-! Odd compact terminal data propagate through the genuine history and forward primary solve. -/ |
| 116 | |
| 117 | noncomputable section |
| 118 | |
| 119 | namespace EulerTransversePacketPrimary |
| 120 | |
| 121 | open Set ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace |
| 122 | EulerLpCylinderTranslation EulerLpCylinderPaths EulerCylinderFieldReflection |
| 123 | EulerTransversePacketProvider EulerTimeIntervalRestriction EulerElapsedTimePathGluing |
| 124 | |
| 125 | variable {P : ℝ} [Fact (0 < P)] |
| 126 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 127 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 128 | (B : HistoryData (D.initial τ hτ hτT.le)) (Y : InitialData P D) |
| 129 | (hSym : ∀ x, -x ∈ D.support ↔ x ∈ D.support) |
| 130 | (hF : ∀ t x, D.F.field t (-x) = D.F.field t x) |
| 131 | (hM : ∀ t x, D.M.field t (-x) = D.M.field t x) |
| 132 | (hH : ∀ t x, B.H.field t (-x) = B.H.field t x) |
| 133 | (hY : reflection P (Y.value : CylinderL2 P U) = -(Y.value : CylinderL2 P U)) |
| 134 | |
| 135 | include hF hM hH hY |
| 136 | |
| 137 | theorem forwardInitial_reflection_neg : |
| 138 | reflection P ((forwardInitial τ hτ hτT B Y).value : CylinderL2 P U) = |
| 139 | -((forwardInitial τ hτ hτT B Y).value : CylinderL2 P U) := |
| 140 | B.coefficients.endpointCoordinate_odd P |
| 141 | ((D.initial τ hτ hτT.le).frame_even (fun t x => hF (initialInclusion D.T τ hτT.le t) x)) |
| 142 | ((D.initial τ hτ hτT.le).frameDerivative_even |
| 143 | (fun t x => hF (initialInclusion D.T τ hτT.le t) x) |
| 144 | (fun t x => hM (initialInclusion D.T τ hτT.le t) x)) |
| 145 | hH Y.value hY ⟨τ,hτ.le,le_rfl⟩ |
| 146 | |
| 147 | theorem pastVelocity_reflection_neg (t : Icc (0 : ℝ) τ) : |
| 148 | reflection P (pastVelocity τ hτ hτT B Y t) = -pastVelocity τ hτ hτT B Y t := |
| 149 | B.coefficients.endpointVelocity_odd P |
| 150 | ((D.initial τ hτ hτT.le).frame_even (fun s x => hF (initialInclusion D.T τ hτT.le s) x)) |
| 151 | ((D.initial τ hτ hτT.le).frameDerivative_even |
| 152 | (fun s x => hF (initialInclusion D.T τ hτT.le s) x) |
| 153 | (fun s x => hM (initialInclusion D.T τ hτT.le s) x)) |
| 154 | hH Y.value hY t |
| 155 | |
| 156 | include hSym |
| 157 | |
| 158 | theorem futureVelocity_reflection_neg (t : Icc (0 : ℝ) (D.T-τ)) : |
| 159 | reflection P (futureVelocity τ hτ hτT B Y t) = -futureVelocity τ hτ hτT B Y t := |
| 160 | (zeroForcing (D.tail τ hτ.le hτT)).velocityPath_reflection_neg (forwardInitial τ hτ hτT B Y) hSym |
| 161 | (fun s x => hF (tailInclusion D.T τ hτ.le s) x) |
| 162 | (fun s x => hM (tailInclusion D.T τ hτ.le s) x) |
| 163 | (by intro s x θ; simp only [Pi.zero_apply,neg_zero]) |
| 164 | (forwardInitial_reflection_neg τ hτ hτT B Y hF hM hH hY) t |
| 165 | |
| 166 | theorem velocityPath_reflection_neg (t : Icc (0 : ℝ) D.T) : |
| 167 | reflection P (velocityPath τ hτ hτT B Y t) = -velocityPath τ hτ hτT B Y t := |
| 168 | join_mem D.T τ hτ.le hτT.le _ _ (velocity_match τ hτ hτT B Y) {u | reflection P u = -u} |
| 169 | (pastVelocity_reflection_neg τ hτ hτT B Y hF hM hH hY) |
| 170 | (futureVelocity_reflection_neg τ hτ hτT B Y hSym hF hM hH hY) t |
| 171 | |
| 172 | end EulerTransversePacketPrimary |
| 173 | end |
| 174 | |
| 175 | end |
| 176 | |
| 177 | noncomputable section |
| 178 | |
| 179 | namespace EulerTransversePacketPrimary |
| 180 | |
| 181 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit |
| 182 | EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderPaths |
| 183 | EulerCylinderSmoothOrbit EulerCylinderScalarPrimitive EulerCylinderAngleAverage |
| 184 | EulerPacketProfileRecursion EulerTransversePacketProvider EulerPacketCylinderField |
| 185 | EulerMetricTransport EulerCylinderFieldReflection |
| 186 | open scoped ContDiff |
| 187 | |
| 188 | variable {P : ℝ} [Fact (0 < P)] |
| 189 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 190 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 191 | (B : HistoryData (D.initial τ hτ hτT.le)) (Y : InitialData P D) |
| 192 | |
| 193 | def vector : VectorField := fun z => |
| 194 | pointField P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) |
| 195 | (D.clamp z.1) (z.2.1,(z.2.2 : AddCircle P)) |
| 196 | |
| 197 | def vectorDerivative : VectorField := fun z => |
| 198 | pointField P (derivativePath τ hτ hτT B Y) (derivativePath_orbit τ hτ hτT B Y) |
| 199 | (D.clamp z.1) (z.2.1,(z.2.2 : AddCircle P)) |
| 200 | |
| 201 | def scalar : ScalarField := fun z => |
| 202 | scalarPointField P (pressurePath τ hτ hτT B Y) (pressurePath_orbit τ hτ hτT B Y) |
| 203 | (D.clamp z.1) (z.2.1,(z.2.2 : AddCircle P)) |
| 204 | |
| 205 | def vectorField : Field P D.T (vector τ hτ hτT B Y) where |
| 206 | path := velocityPath τ hτ hτT B Y |
| 207 | orbit := velocityPath_orbit τ hτ hτT B Y |
| 208 | raw_eq t x θ := by simp only [vector,Data.clamp_coe] |
| 209 | |
| 210 | def vectorDerivativeField : Field P D.T (vectorDerivative τ hτ hτT B Y) where |
| 211 | path := derivativePath τ hτ hτT B Y |
| 212 | orbit := derivativePath_orbit τ hτ hτT B Y |
| 213 | raw_eq t x θ := by simp only [vectorDerivative,Data.clamp_coe] |
| 214 | |
| 215 | theorem vectorField_time : TimeDerivative D.T_pos.le (vectorField τ hτ hτT B Y) |
| 216 | (vectorDerivativeField τ hτ hτT B Y) := velocityPath_time τ hτ hτT B Y |
| 217 | |
| 218 | theorem vector_hasDerivWithinAt (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 219 | HasDerivWithinAt (fun s => vector τ hτ hτT B Y (s,(x,θ))) |
| 220 | (vectorDerivative τ hτ hτT B Y (t,(x,θ))) (Icc (0 : ℝ) D.T) t := |
| 221 | (vectorField τ hτ hτT B Y).raw_hasDerivWithinAt D.T_pos.le |
| 222 | (vectorDerivativeField τ hτ hτT B Y) (vectorField_time τ hτ hτT B Y) t x θ |
| 223 | |
| 224 | theorem scalar_eq_pointField (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 225 | scalar τ hτ hτT B Y (t,(x,θ)) = |
| 226 | scalarPointField P (pressurePath τ hτ hτT B Y) (pressurePath_orbit τ hτ hτT B Y) |
| 227 | t (x,(θ : AddCircle P)) := by simp only [scalar,Data.clamp_coe] |
| 228 | |
| 229 | def scalarGradientField : Field P D.T (pressureGradient (scalar τ hτ hτT B Y)) := |
| 230 | EulerPacketCylinderField.scalarGradientField (scalar τ hτ hτT B Y) |
| 231 | (pressurePath τ hτ hτT B Y) (pressurePath_orbit τ hτ hτT B Y) |
| 232 | (scalar_eq_pointField τ hτ hτT B Y) |
| 233 | |
| 234 | theorem scalar_smooth (t : ℝ) : |
| 235 | ContDiff ℝ ∞ (fun y : Space × ℝ => scalar τ hτ hτT B Y (t,y)) := |
| 236 | coverField_contDiff P _ (scalarPointField_smooth P (pressurePath τ hτ hτT B Y) |
| 237 | (pressurePath_orbit τ hτ hτT B Y) (D.clamp t)) |
| 238 | |
| 239 | theorem vector_zero_outside (t : ℝ) (x : Space) (hx : x ∉ D.support) (θ : ℝ) : |
| 240 | vector τ hτ hτT B Y (t,(x,θ)) = 0 := by |
| 241 | change pointField P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) |
| 242 | (D.clamp t) (x,(θ : AddCircle P)) = 0 |
| 243 | rw [pointField_eq_representative] |
| 244 | exact representative_zero_outside P D.support D.support_measurable D.support_compact.isClosed |
| 245 | _ _ (velocityPath_supported τ hτ hτT B Y (D.clamp t)) (x,(θ : AddCircle P)) hx |
| 246 | |
| 247 | theorem vector_mean_zero (t : ℝ) (x : Space) : |
| 248 | (∫ θ in (0 : ℝ)..P, vector τ hτ hτT B Y (t,(x,θ))) = 0 := |
| 249 | (pointField_mean_zero_iff P (velocityPath τ hτ hτT B Y) |
| 250 | (velocityPath_orbit τ hτ hτT B Y) (D.clamp t)).mp |
| 251 | (velocityPath_mean_zero τ hτ hτT B Y (D.clamp t)) x |
| 252 | |
| 253 | theorem vector_periodic (t : ℝ) (x : Space) : |
| 254 | Function.Periodic (fun θ => vector τ hτ hτT B Y (t,(x,θ))) P := by |
| 255 | intro θ |
| 256 | simp only [vector,AddCircle.coe_add_period] |
| 257 | |
| 258 | theorem vector_tangent (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 259 | ⟪D.normalField (t,(x,θ)),vector τ hτ hτT B Y (t,(x,θ))⟫_ℝ = 0 := by |
| 260 | have hae : (fun z : LiftDomain P => ⟪D.normal.field t z.1, |
| 261 | pointField P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) t z⟫_ℝ) |
| 262 | =ᵐ[liftMeasure P] (fun _ => (0 : ℝ)) := by |
| 263 | filter_upwards [tangent_ae τ hτ hτT B Y t, |
| 264 | pointField_ae P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) t] |
| 265 | with z hz hv |
| 266 | rwa [hv] at hz |
| 267 | have hm : Continuous (fun z : LiftDomain P => D.normal.field t z.1) := |
| 268 | (D.normal.field t).continuous.comp continuous_fst |
| 269 | have hv := smoothField_continuous P _ |
| 270 | (pointField_smooth P (velocityPath τ hτ hτT B Y) (velocityPath_orbit τ hτ hτT B Y) t) |
| 271 | have he := congrFun (Measure.eq_of_ae_eq hae (hm.inner hv) continuous_const) (x,(θ : AddCircle P)) |
| 272 | simpa only [vector,Data.normalField,Data.clamp_coe] using he |
| 273 | |
| 274 | variable (hSym : ∀ x, -x ∈ D.support ↔ x ∈ D.support) |
| 275 | (hF : ∀ t x, D.F.field t (-x) = D.F.field t x) |
| 276 | (hM : ∀ t x, D.M.field t (-x) = D.M.field t x) |
| 277 | (hH : ∀ t x, B.H.field t (-x) = B.H.field t x) |
| 278 | (hY : reflection P (Y.value : CylinderL2 P U) = -(Y.value : CylinderL2 P U)) |
| 279 | |
| 280 | include hSym hF hM hH hY |
| 281 | |
| 282 | theorem vector_odd (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 283 | vector τ hτ hτT B Y (t,(-x,-θ)) = -vector τ hτ hτT B Y (t,(x,θ)) := |
| 284 | (vectorField τ hτ hτT B Y).raw_odd_of_reflection_neg t |
| 285 | (velocityPath_reflection_neg τ hτ hτT B Y hSym hF hM hH hY t) x θ |
| 286 | |
| 287 | end EulerTransversePacketPrimary |