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.TransversePacketLocalHistory |
| 2 | import Euler.TransversePacketHistoryPressure |
| 3 | import Euler.TransversePacketProvider |
| 4 | |
| 5 | /-! The actual time derivative and normalized pressure also match at the history/forward junction. -/ |
| 6 | |
| 7 | /-! ## From `Euler/TransversePacketMatching.lean` |
| 8 | |
| 9 | The text of `Euler/TransversePacketMatching.lean`, folded into this file, which was its only importer. -/ |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! |
| 14 | # The history trace matches the actual forward transverse solve |
| 15 | |
| 16 | The forward datum is the constructed history coordinate velocity. Both |
| 17 | physical velocities therefore agree at the source time τ, with the same |
| 18 | deformation frame on the two intervals. |
| 19 | -/ |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | namespace EulerTransversePacketJoin |
| 24 | |
| 25 | open Set ContinuousLinearMap EulerSmoothLimit EulerMeanCoefficients EulerTimeIntervalRestriction |
| 26 | EulerLiftedGradientSpace EulerLpCylinderTranslation EulerLpCylinderPaths EulerLpCylinderRectangular |
| 27 | EulerCylinderSmoothOrbit EulerPacketProfileRecursion EulerCylinderAngleAverage |
| 28 | EulerTransversePacketProvider |
| 29 | open scoped ContDiff BoundedContinuousFunction |
| 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)) {raw : VectorField} (G : Forcing P D raw) |
| 35 | |
| 36 | def pastVelocity : C(Icc (0 : ℝ) τ,LiftL2 P) := |
| 37 | B.velocityPath (G.initial τ hτ hτT.le) |
| 38 | |
| 39 | def futureVelocity : C(Icc (0 : ℝ) (D.T-τ),LiftL2 P) := |
| 40 | includePath P D.support D.support_measurable |
| 41 | ((G.tail τ hτ.le hτT).velocityPath (forwardInitial τ hτ hτT B G)) |
| 42 | |
| 43 | def pastDerivative : C(Icc (0 : ℝ) τ,LiftL2 P) := |
| 44 | B.derivativePath (G.initial τ hτ hτT.le) |
| 45 | |
| 46 | def futureDerivative : C(Icc (0 : ℝ) (D.T-τ),LiftL2 P) := |
| 47 | includePath P D.support D.support_measurable |
| 48 | ((G.tail τ hτ.le hτT).derivativePath (forwardInitial τ hτ hτT B G)) |
| 49 | |
| 50 | def pastPressure : C(Icc (0 : ℝ) τ,CylinderL2 P ℝ) := |
| 51 | B.pressurePath (G.initial τ hτ hτT.le) |
| 52 | |
| 53 | def futurePressure : C(Icc (0 : ℝ) (D.T-τ),CylinderL2 P ℝ) := |
| 54 | (G.tail τ hτ.le hτT).pressurePath (forwardInitial τ hτ hτT B G) |
| 55 | |
| 56 | theorem pastVelocity_orbit : |
| 57 | ContDiff ℝ ∞ (fun a => pathTranslate P a (pastVelocity τ hτ hτT B G)) := |
| 58 | B.velocityPath_orbit (G.initial τ hτ hτT.le) |
| 59 | |
| 60 | theorem futureVelocity_orbit : |
| 61 | ContDiff ℝ ∞ (fun a => pathTranslate P a (futureVelocity τ hτ hτT B G)) := |
| 62 | (G.tail τ hτ.le hτT).velocityPath_orbit (forwardInitial τ hτ hτT B G) |
| 63 | |
| 64 | theorem pastDerivative_orbit : |
| 65 | ContDiff ℝ ∞ (fun a => pathTranslate P a (pastDerivative τ hτ hτT B G)) := |
| 66 | B.derivativePath_orbit (G.initial τ hτ hτT.le) |
| 67 | |
| 68 | theorem futureDerivative_orbit : |
| 69 | ContDiff ℝ ∞ (fun a => pathTranslate P a (futureDerivative τ hτ hτT B G)) := |
| 70 | (G.tail τ hτ.le hτT).derivativePath_orbit (forwardInitial τ hτ hτT B G) |
| 71 | |
| 72 | theorem pastPressure_orbit : |
| 73 | ContDiff ℝ ∞ (fun a => pathTranslate P a (pastPressure τ hτ hτT B G)) := |
| 74 | B.pressurePath_orbit (G.initial τ hτ hτT.le) |
| 75 | |
| 76 | theorem futurePressure_orbit : |
| 77 | ContDiff ℝ ∞ (fun a => pathTranslate P a (futurePressure τ hτ hτT B G)) := |
| 78 | (G.tail τ hτ.le hτT).pressurePath_orbit (forwardInitial τ hτ hτT B G) |
| 79 | |
| 80 | /-- The actual forward velocity starts from the actual history velocity. -/ |
| 81 | theorem velocity_match : pastVelocity τ hτ hτT B G ⟨τ,hτ.le,le_rfl⟩ = |
| 82 | futureVelocity τ hτ hτT B G ⟨0,le_rfl,(sub_pos.mpr hτT).le⟩ := by |
| 83 | let th : Icc (0 : ℝ) (D.initial τ hτ hτT.le).T := ⟨τ,hτ.le,le_rfl⟩ |
| 84 | let tf : Icc (0 : ℝ) (D.tail τ hτ.le hτT).T := ⟨0,le_rfl,(D.tail τ hτ.le hτT).T_pos.le⟩ |
| 85 | have hQ : (D.initial τ hτ hτT.le).frame.field th = (D.tail τ hτ.le hτT).frame.field tf := by |
| 86 | apply BoundedContinuousFunction.ext |
| 87 | intro x |
| 88 | apply ContinuousLinearMap.ext |
| 89 | intro v |
| 90 | change D.F.field ⟨τ,hτ.le,hτT.le⟩ x (D.R v : Space) = |
| 91 | D.F.field ⟨τ+0,by linarith,by linarith⟩ x (D.R v : Space) |
| 92 | simp only [add_zero] |
| 93 | change fullOperatorMap P ((D.initial τ hτ hτT.le).frame.field th) |
| 94 | (B.coordinatePath (G.initial τ hτ hτT.le) th) = |
| 95 | fullOperatorMap P ((D.tail τ hτ.le hτT).frame.field tf) |
| 96 | ((EulerSourceCylinderEquation.coordinates P D.support D.support_measurable |
| 97 | (D.tail τ hτ.le hτT).T (D.tail τ hτ.le hτT).T_pos.le (D.tail τ hτ.le hτT).frame |
| 98 | (D.tail τ hτ.le hτT).frameDerivative (D.tail τ hτ.le hτT).frameLower |
| 99 | (D.tail τ hτ.le hτT).frameLower_pos (D.tail τ hτ.le hτT).frame_lower |
| 100 | (G.tail τ hτ.le hτT).path (forwardInitial τ hτ hτT B G).value tf : |
| 101 | Supported P U D.support D.support_measurable) : CylinderL2 P U) |
| 102 | dsimp only [tf] |
| 103 | erw [EulerSourceCylinderEquation.coordinates_initial,hQ] |
| 104 | rfl |
| 105 | |
| 106 | end EulerTransversePacketJoin |
| 107 | end |
| 108 | |
| 109 | end |
| 110 | |
| 111 | noncomputable section |
| 112 | |
| 113 | namespace EulerTransversePacketJoin |
| 114 | |
| 115 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerMeanCoefficients |
| 116 | EulerTimeIntervalRestriction EulerLiftedGradientSpace EulerLpCylinderTranslation |
| 117 | EulerLpCylinderPaths EulerLpCylinderRectangular EulerCylinderScalarPrimitive EulerSourceNormalCoefficient |
| 118 | EulerPacketProfileRecursion EulerTransversePacketProvider |
| 119 | open scoped ContDiff BoundedContinuousFunction |
| 120 | |
| 121 | variable {P : ℝ} [Fact (0 < P)] |
| 122 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 123 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 124 | (B : HistoryData (D.initial τ hτ hτT.le)) {raw : VectorField} (G : Forcing P D raw) |
| 125 | |
| 126 | omit [Fact (0 < P)] [CompleteSpace U] in |
| 127 | theorem source_coefficient_match {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 128 | (A : SmoothCoefficientPath (Icc (0 : ℝ) D.T) V) : |
| 129 | (A.comp (initialInclusion D.T τ hτT.le)).field ⟨τ,hτ.le,le_rfl⟩ = |
| 130 | (A.comp (tailInclusion D.T τ hτ.le)).field ⟨0,le_rfl,(sub_pos.mpr hτT).le⟩ := by |
| 131 | change A.field ⟨τ,hτ.le,hτT.le⟩ = A.field ⟨τ+0,by linarith,by linarith⟩ |
| 132 | simp only [add_zero] |
| 133 | |
| 134 | omit [Fact (0 < P)] [CompleteSpace U] in |
| 135 | theorem normal_match : |
| 136 | (D.initial τ hτ hτT.le).normal.field ⟨τ,hτ.le,le_rfl⟩ = |
| 137 | (D.tail τ hτ.le hτT).normal.field ⟨0,le_rfl,(sub_pos.mpr hτT).le⟩ := |
| 138 | source_coefficient_match τ hτ hτT D.normal |
| 139 | |
| 140 | omit [CompleteSpace U] in |
| 141 | theorem forcing_match : |
| 142 | ((G.initial τ hτ hτT.le).path ⟨τ,hτ.le,le_rfl⟩ : CylinderL2 P Space) = |
| 143 | ((G.tail τ hτ.le hτT).path ⟨0,le_rfl,(sub_pos.mpr hτT).le⟩ : CylinderL2 P Space) := by |
| 144 | change (G.path ⟨τ,hτ.le,hτT.le⟩ : CylinderL2 P Space) = |
| 145 | (G.path ⟨τ+0,by linarith,by linarith⟩ : CylinderL2 P Space) |
| 146 | simp only [add_zero] |
| 147 | |
| 148 | /-- The same physical first-order equation determines the same derivative |
| 149 | from the matching velocity and forcing. -/ |
| 150 | theorem derivative_match : pastDerivative τ hτ hτT B G ⟨τ,hτ.le,le_rfl⟩ = |
| 151 | futureDerivative τ hτ hτT B G ⟨0,le_rfl,(sub_pos.mpr hτT).le⟩ := by |
| 152 | let Dh := D.initial τ hτ hτT.le |
| 153 | let Df := D.tail τ hτ.le hτT |
| 154 | let Gh := G.initial τ hτ hτT.le |
| 155 | let Gf := G.tail τ hτ.le hτT |
| 156 | let Bh := B |
| 157 | let I := forwardInitial τ hτ hτT B G |
| 158 | let th : Icc (0 : ℝ) τ := ⟨τ,hτ.le,le_rfl⟩ |
| 159 | let tf : Icc (0 : ℝ) (D.T-τ) := ⟨0,le_rfl,(sub_pos.mpr hτT).le⟩ |
| 160 | have hM : Dh.M.field th = Df.M.field tf := source_coefficient_match τ hτ hτT D.M |
| 161 | have hm : Dh.normal.field th = Df.normal.field tf := normal_match τ hτ hτT |
| 162 | have hforce : (Gh.path th : CylinderL2 P Space) = (Gf.path tf : CylinderL2 P Space) := |
| 163 | forcing_match τ hτ hτT G |
| 164 | have hv := velocity_match τ hτ hτT B G |
| 165 | have hh := Bh.balance_ae Gh th |
| 166 | have hf := EulerSourceCylinderEquation.velocity_balance_ae P D.support D.support_measurable |
| 167 | Df.T Df.T_pos.le Df.frame Df.frameDerivative Df.frameLower Df.frameLower_pos Df.frame_lower |
| 168 | Gf.path I.value (fun t x => Df.M.field t x) (fun t x => Df.normal.field t x) |
| 169 | (HistoryData.normal_ne_zero (D := Df)) Df.frame_tangent Df.frame_range Df.frame_strain tf |
| 170 | change ∀ᵐ x ∂liftMeasure P, |
| 171 | pastDerivative τ hτ hτT B G th x+Dh.M.field th x.1 (pastVelocity τ hτ hτT B G th x)+ |
| 172 | ((⟪Dh.normal.field th x.1,(Gh.path th : CylinderL2 P Space) x⟫_ℝ- |
| 173 | 2*⟪Dh.normal.field th x.1,Dh.M.field th x.1 (pastVelocity τ hτ hτT B G th x)⟫_ℝ)/ |
| 174 | ‖Dh.normal.field th x.1‖^2) • Dh.normal.field th x.1 = (Gh.path th : CylinderL2 P Space) x at hh |
| 175 | change ∀ᵐ x ∂liftMeasure P, |
| 176 | futureDerivative τ hτ hτT B G tf x+Df.M.field tf x.1 (futureVelocity τ hτ hτT B G tf x)+ |
| 177 | ((⟪Df.normal.field tf x.1,(Gf.path tf : CylinderL2 P Space) x⟫_ℝ- |
| 178 | 2*⟪Df.normal.field tf x.1,Df.M.field tf x.1 (futureVelocity τ hτ hτT B G tf x)⟫_ℝ)/ |
| 179 | ‖Df.normal.field tf x.1‖^2) • Df.normal.field tf x.1 = (Gf.path tf : CylinderL2 P Space) x at hf |
| 180 | rw [hM,hm,hforce,hv] at hh |
| 181 | apply Lp.ext |
| 182 | filter_upwards [hh,hf] with x hx hy |
| 183 | exact add_right_cancel (add_right_cancel (hx.trans hy.symm)) |
| 184 | |
| 185 | /-- The normalized pressure integral has the same input scalar L² class on |
| 186 | both sides of the junction. -/ |
| 187 | theorem pressure_match : pastPressure τ hτ hτT B G ⟨τ,hτ.le,le_rfl⟩ = |
| 188 | futurePressure τ hτ hτT B G ⟨0,le_rfl,(sub_pos.mpr hτT).le⟩ := by |
| 189 | let Dh := D.initial τ hτ hτT.le |
| 190 | let Df := D.tail τ hτ.le hτT |
| 191 | let th : Icc (0 : ℝ) τ := ⟨τ,hτ.le,le_rfl⟩ |
| 192 | let tf : Icc (0 : ℝ) (D.T-τ) := ⟨0,le_rfl,(sub_pos.mpr hτT).le⟩ |
| 193 | have hM : Dh.M.field th = Df.M.field tf := source_coefficient_match τ hτ hτT D.M |
| 194 | have hm : Dh.normal.field th = Df.normal.field tf := normal_match τ hτ hτT |
| 195 | have hN : normalFunctional Dh.normal Dh.normalLower Dh.normalLower_pos Dh.normal_lower th = |
| 196 | normalFunctional Df.normal Df.normalLower Df.normalLower_pos Df.normal_lower tf := by |
| 197 | apply BoundedContinuousFunction.ext |
| 198 | intro x |
| 199 | apply ContinuousLinearMap.ext |
| 200 | intro v |
| 201 | erw [normalFunctional_apply,normalFunctional_apply,hm] |
| 202 | change primitive P (fullOperatorMap P |
| 203 | (normalFunctional Dh.normal Dh.normalLower Dh.normalLower_pos Dh.normal_lower th) |
| 204 | (((G.initial τ hτ hτT.le).path th : CylinderL2 P Space)-(2 : ℝ) • |
| 205 | fullOperatorMap P (Dh.M.field th) (pastVelocity τ hτ hτT B G th))) = |
| 206 | primitive P (fullOperatorMap P |
| 207 | (normalFunctional Df.normal Df.normalLower Df.normalLower_pos Df.normal_lower tf) |
| 208 | (((G.tail τ hτ.le hτT).path tf : CylinderL2 P Space)-(2 : ℝ) • |
| 209 | fullOperatorMap P (Df.M.field tf) (futureVelocity τ hτ hτT B G tf))) |
| 210 | have hforce : ((G.initial τ hτ hτT.le).path th : CylinderL2 P Space) = |
| 211 | ((G.tail τ hτ.le hτT).path tf : CylinderL2 P Space) := forcing_match τ hτ hτT G |
| 212 | have hv : pastVelocity τ hτ hτT B G th = futureVelocity τ hτ hτT B G tf := |
| 213 | velocity_match τ hτ hτT B G |
| 214 | rw [hN,hM,hforce,hv] |
| 215 | |
| 216 | end EulerTransversePacketJoin |