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.ParentNormalizedGeometry |
| 2 | import Euler.EulerSpatialRescaling |
| 3 | import Euler.PacketExactEulerianField |
| 4 | |
| 5 | /-! The actual source packet is Euler in the physical parent coordinates. |
| 6 | The normalized frame and inverse identities are supplied by the parent |
| 7 | construction, and the final physical scaling is explicit. -/ |
| 8 | |
| 9 | /-! ## From `Euler/ParentNormalizedEuler.lean` |
| 10 | |
| 11 | The text of `Euler/ParentNormalizedEuler.lean`, folded into this file, which was its only importer. -/ |
| 12 | |
| 13 | section |
| 14 | |
| 15 | /-! Normalizing the actual parent Euler velocity and pressure preserves |
| 16 | Euler and supplies the true time law of the normalized particle map. -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | namespace EulerParentPacketFrames.Parent |
| 21 | |
| 22 | open Set Filter EulerSmoothLimit EulerLagrangian |
| 23 | open scoped Topology |
| 24 | |
| 25 | variable (A : EulerParentPacketFrames.Parent) |
| 26 | |
| 27 | def normalizedVelocity (u : ℝ × Space → Space) : ℝ × Space → Space := |
| 28 | EulerSpatialRescaling.velocity A.ell⁻¹ u |
| 29 | |
| 30 | def normalizedPressure (p : ℝ × Space → ℝ) : ℝ × Space → ℝ := |
| 31 | EulerSpatialRescaling.pressure A.ell⁻¹ p |
| 32 | |
| 33 | @[simp] theorem normalizedVelocity_apply (u : ℝ × Space → Space) (q : ℝ × Space) : |
| 34 | A.normalizedVelocity u q=A.ell⁻¹ • u (q.1,A.ell • q.2) := by |
| 35 | simp only [normalizedVelocity,EulerSpatialRescaling.velocity,EulerSpatialRescaling.coordinates_apply,inv_inv] |
| 36 | |
| 37 | @[simp] theorem normalizedPressure_apply (p : ℝ × Space → ℝ) (q : ℝ × Space) : |
| 38 | A.normalizedPressure p q=(A.ell⁻¹)^2*p (q.1,A.ell • q.2) := by |
| 39 | simp only [normalizedPressure,EulerSpatialRescaling.pressure,EulerSpatialRescaling.coordinates_apply,inv_inv] |
| 40 | |
| 41 | theorem normalizedVelocity_differentiableAt (u : ℝ × Space → Space) (t : ℝ) (x : Space) |
| 42 | (hu : DifferentiableAt ℝ u (t,A.ell • x)) : |
| 43 | DifferentiableAt ℝ (A.normalizedVelocity u) (t,x) := by |
| 44 | apply (EulerSpatialRescaling.velocity_hasFDerivAt A.ell⁻¹ u (t,x) ?_).differentiableAt |
| 45 | simpa only [EulerSpatialRescaling.coordinates_apply,inv_inv] using hu |
| 46 | |
| 47 | theorem normalizedPressure_differentiableAt (p : ℝ × Space → ℝ) (t : ℝ) (x : Space) |
| 48 | (hp : DifferentiableAt ℝ (fun y => p (t,y)) (A.ell • x)) : |
| 49 | DifferentiableAt ℝ (fun y => A.normalizedPressure p (t,y)) x := by |
| 50 | have hc : DifferentiableAt ℝ (fun y => p (t,A.ell • y)) x := |
| 51 | hp.comp x (A.ell • ContinuousLinearMap.id ℝ Space).differentiableAt |
| 52 | have he : (fun y => A.normalizedPressure p (t,y)) = (fun y => (A.ell⁻¹)^2*p (t,A.ell • y)) := |
| 53 | funext (fun y => A.normalizedPressure_apply p (t,y)) |
| 54 | rw [he] |
| 55 | exact hc.const_mul ((A.ell⁻¹)^2) |
| 56 | |
| 57 | theorem normalizedMomentum_zero (u : ℝ × Space → Space) (p : ℝ × Space → ℝ) |
| 58 | (t : ℝ) (x : Space) |
| 59 | (hu : DifferentiableAt ℝ u (t,A.ell • x)) |
| 60 | (hp : DifferentiableAt ℝ (fun y => p (t,y)) (A.ell • x)) |
| 61 | (he : momentumResidual u p (t,A.ell • x)=0) : |
| 62 | momentumResidual (A.normalizedVelocity u) (A.normalizedPressure p) (t,x)=0 := by |
| 63 | apply EulerSpatialRescaling.momentumResidual_zero A.ell⁻¹ (inv_ne_zero A.ell_pos.ne') u p (t,x) |
| 64 | · simpa only [EulerSpatialRescaling.coordinates_apply,inv_inv] using hu |
| 65 | · simpa only [inv_inv] using hp |
| 66 | · simpa only [EulerSpatialRescaling.coordinates_apply,inv_inv] using he |
| 67 | |
| 68 | theorem packetPosition_velocity_eventually (u : ℝ × Space → Space) |
| 69 | (hvelocity : ∀ (t : Icc (0 : ℝ) A.T) x, A.velocity.field t x=u (t,A.position t x)) |
| 70 | (t : ℝ) (ht : t ∈ Ioo 0 A.T) (x : Space) : |
| 71 | (fun q => fderiv ℝ A.packetPosition q (1,0)) =ᶠ[𝓝 (t,x)] |
| 72 | fun q => A.normalizedVelocity u (q.1,A.packetPosition q) := by |
| 73 | filter_upwards [(continuous_fst.tendsto (t,x)).eventually (Ioo_mem_nhds ht.1 ht.2)] with q hq |
| 74 | rw [A.packetPosition_time q.1 hq q.2,A.normalizedVelocity_apply] |
| 75 | have hp : A.ell • A.packetPosition q = |
| 76 | A.position ⟨q.1,hq.1.le,hq.2.le⟩ (A.ell • q.2) := by |
| 77 | rw [A.packetPosition_apply ⟨q.1,hq.1.le,hq.2.le⟩ q.2, |
| 78 | smul_smul,mul_inv_cancel₀ A.ell_pos.ne',one_smul] |
| 79 | rw [hp,hvelocity] |
| 80 | |
| 81 | theorem normalizedVelocity_restore (u : ℝ × Space → Space) (q : ℝ × Space) : |
| 82 | EulerSpatialRescaling.velocity A.ell (A.normalizedVelocity u) q=u q := by |
| 83 | simp only [EulerSpatialRescaling.velocity,EulerSpatialRescaling.coordinates_apply, |
| 84 | normalizedVelocity_apply,smul_smul,mul_inv_cancel₀ A.ell_pos.ne',one_smul,Prod.mk.eta] |
| 85 | |
| 86 | theorem normalizedVelocity_add_restore (u w : ℝ × Space → Space) (q : ℝ × Space) : |
| 87 | EulerSpatialRescaling.velocity A.ell (fun r => A.normalizedVelocity u r+w r) q = |
| 88 | u q + A.ell • w (q.1,A.ell⁻¹ • q.2) := by |
| 89 | change A.ell • (A.normalizedVelocity u (q.1,A.ell⁻¹ • q.2)+w (q.1,A.ell⁻¹ • q.2))=_ |
| 90 | rw [smul_add] |
| 91 | change EulerSpatialRescaling.velocity A.ell (A.normalizedVelocity u) q+_=_ |
| 92 | rw [A.normalizedVelocity_restore] |
| 93 | |
| 94 | end EulerParentPacketFrames.Parent |
| 95 | end |
| 96 | |
| 97 | end |
| 98 | |
| 99 | noncomputable section |
| 100 | |
| 101 | namespace EulerParentPacketFrames.Parent |
| 102 | |
| 103 | open Set Filter EulerSmoothLimit EulerLiftedGradientSpace EulerTransverseFrameCoordinates |
| 104 | EulerAllOrderCorrectionData EulerAllOrderDriftCorrection EulerPacketCorrectionCoefficients |
| 105 | EulerPacketPhysicalTransform EulerLagrangian |
| 106 | open scoped ContDiff Topology |
| 107 | |
| 108 | variable (A : EulerParentPacketFrames.Parent) |
| 109 | |
| 110 | def packetFrame (q : ℝ × Space) : Space →L[ℝ] Space := |
| 111 | A.frame.realField A.T A.T_pos.le q.1 q.2 |
| 112 | |
| 113 | theorem packetInverseCoordinates_differentiableAt |
| 114 | (Y : Icc (0 : ℝ) A.T → Space → Space) |
| 115 | (hXY : ∀ t x, A.position t (Y t x)=x) (hY : Continuous (Function.uncurry Y)) |
| 116 | (t : ℝ) (ht : t ∈ Ioo 0 A.T) (x : Space) : |
| 117 | DifferentiableAt ℝ (inverseCoordinates (A.packetInverse Y)) (t,x) := |
| 118 | (A.packetInverseLift_contDiffAt_two Y hXY hY t ht x).differentiableAt (by norm_num) |
| 119 | |
| 120 | theorem packetInverse_time_continuous |
| 121 | (Y : Icc (0 : ℝ) A.T → Space → Space) (hY : Continuous (Function.uncurry Y)) : |
| 122 | Continuous (fun q : Icc (0 : ℝ) A.T × Space => A.packetInverse Y (q.1,q.2)) := |
| 123 | (A.packetInverse_joint_continuous Y hY).comp |
| 124 | ((continuous_subtype_val.comp continuous_fst).prodMk continuous_snd) |
| 125 | |
| 126 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 127 | (m : Space) (hm : ‖m‖=1) (J : U ≃ₗᵢ[ℝ] referencePlane m) |
| 128 | (support : Set Space) (hSupport : IsCompact support) |
| 129 | |
| 130 | |
| 131 | theorem packetFrame_match (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 132 | A.packetFrame (t,x)=((A.transverseData m hm J support hSupport)).F.field t x := |
| 133 | A.frame.realField_apply A.T A.T_pos.le t x |
| 134 | |
| 135 | variable {P : ℝ} [Fact (0 < P)] {κ : ℝ} {hκ : |κ| ≤ 1} |
| 136 | {Z R : FieldTower P A.T} |
| 137 | (B : Budget P A.T_pos (correctionData (A.transverseData m hm J support hSupport) P κ hκ Z R)) |
| 138 | (residual : ApproximationResidual P A.T_pos (correctionData (A.transverseData m hm J support hSupport) P κ hκ Z R)) |
| 139 | |
| 140 | |
| 141 | def normalizedExactVelocity (k : ℝ) (Y : Icc (0 : ℝ) A.T → Space → Space) |
| 142 | (u : ℝ × Space → Space) (q : ℝ × Space) : Space := |
| 143 | A.normalizedVelocity u q + physicalVelocity κ k m A.packetFrame ((exactPacketOfResidual P B residual)).rawVelocity (A.packetInverse Y) q |
| 144 | |
| 145 | def normalizedExactPressure (k : ℝ) (Y : Icc (0 : ℝ) A.T → Space → Space) |
| 146 | (p : ℝ × Space → ℝ) (q : ℝ × Space) : ℝ := |
| 147 | A.normalizedPressure p q + physicalPressure (((exactPacketOfResidual P B residual)).rawGraphPotential k) (A.packetInverse Y) q |
| 148 | |
| 149 | def exactPacketVelocity (k : ℝ) (Y : Icc (0 : ℝ) A.T → Space → Space) (u : ℝ × Space → Space) : |
| 150 | ℝ × Space → Space := |
| 151 | EulerSpatialRescaling.velocity A.ell |
| 152 | (A.normalizedExactVelocity m hm J support hSupport B residual k Y u) |
| 153 | |
| 154 | def exactPacketPressure (k : ℝ) (Y : Icc (0 : ℝ) A.T → Space → Space) (p : ℝ × Space → ℝ) : |
| 155 | ℝ × Space → ℝ := |
| 156 | EulerSpatialRescaling.pressure A.ell |
| 157 | (A.normalizedExactPressure m hm J support hSupport B residual k Y p) |
| 158 | |
| 159 | variable (k : ℝ) (hk : k*κ=1) (Y : Icc (0 : ℝ) A.T → Space → Space) |
| 160 | (hYX : ∀ t x, Y t (A.position t x)=x) |
| 161 | (hXY : ∀ t x, A.position t (Y t x)=x) (hY : Continuous (Function.uncurry Y)) |
| 162 | (u : ℝ × Space → Space) (p : ℝ × Space → ℝ) |
| 163 | (hvelocity : ∀ (t : Icc (0 : ℝ) A.T) x, A.velocity.field t x=u (t,A.position t x)) |
| 164 | (hu : ∀ t ∈ Ioo 0 A.T, ∀ x, DifferentiableAt ℝ u (t,x)) |
| 165 | (hp : ∀ (t : Icc (0 : ℝ) A.T) x, DifferentiableAt ℝ (fun y => p (t,y)) x) |
| 166 | (heuler : ∀ t ∈ Ioo 0 A.T, ∀ x, momentumResidual u p (t,x)=0) |
| 167 | |
| 168 | include hYX hXY hY hu in |
| 169 | theorem normalizedExactVelocity_differentiableAt (t : ℝ) (ht : t ∈ Ioo 0 A.T) (x : Space) : |
| 170 | DifferentiableAt ℝ (A.normalizedExactVelocity m hm J support hSupport B residual k Y u) (t,x) := by |
| 171 | let y := A.packetInverse Y (t,x) |
| 172 | have hy : A.packetPosition (t,y)=x := A.packetInverse_right Y hXY (t,x) |
| 173 | have hd := exact_source_velocity_differentiableAt (A.transverseData m hm J support hSupport) (exactPacketOfResidual P B residual) k A.packetFrame A.packetPosition |
| 174 | (A.packetInverse Y) t ht y (A.packetInverse_left Y hYX (t,y)) |
| 175 | (A.packetInverseCoordinates_differentiableAt Y hXY hY t ht (A.packetPosition (t,y))) |
| 176 | (A.packetPosition_contDiffAt_two t ht y) (A.packetPosition_frame_eventually t ht y) |
| 177 | rw [hy] at hd |
| 178 | exact (A.normalizedVelocity_differentiableAt u t x (hu t ht (A.ell • x))).add hd |
| 179 | |
| 180 | include hXY hY hp hk in |
| 181 | theorem normalizedExactPressure_differentiableAt (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 182 | DifferentiableAt ℝ |
| 183 | (fun y => A.normalizedExactPressure m hm J support hSupport B residual k Y p (t,y)) x := by |
| 184 | have hs := exact_physicalPressure_smooth (A.transverseData m hm J support hSupport) (exactPacketOfResidual P B residual) |
| 185 | (fun s y => A.packetPosition (s,y)) (fun s y => A.packetInverse Y (s,y)) |
| 186 | (fun s y => A.packetPosition_spatial s y) |
| 187 | (fun s y => A.packetInverse_right Y hXY (s,y)) |
| 188 | (A.packetInverse_time_continuous Y hY) k hk (A.packetInverse Y) (fun _ _ => rfl) t |
| 189 | exact (A.normalizedPressure_differentiableAt p t x (hp t (A.ell • x))).add |
| 190 | (hs.differentiable (by simp) x) |
| 191 | |
| 192 | include hYX hXY hY hvelocity hu hp heuler hk in |
| 193 | theorem normalizedExact_momentum (t : ℝ) (ht : t ∈ Ioo 0 A.T) (x : Space) : |
| 194 | momentumResidual (A.normalizedExactVelocity m hm J support hSupport B residual k Y u) |
| 195 | (A.normalizedExactPressure m hm J support hSupport B residual k Y p) (t,x)=0 := by |
| 196 | let y := A.packetInverse Y (t,x) |
| 197 | have hy : A.packetPosition (t,y)=x := A.packetInverse_right Y hXY (t,x) |
| 198 | have hh := exact_source_momentum (A.transverseData m hm J support hSupport) (exactPacketOfResidual P B residual) k hk A.packetFrame (A.normalizedVelocity u) |
| 199 | (A.normalizedPressure p) A.packetPosition (A.packetInverse Y) |
| 200 | (A.packetFrame_match m hm J support hSupport) t ht y |
| 201 | (fun s z => A.packetInverse_left Y hYX (s,z)) |
| 202 | (A.packetInverseCoordinates_differentiableAt Y hXY hY t ht (A.packetPosition (t,y))) |
| 203 | (A.packetPosition_contDiffAt_two t ht y) |
| 204 | (A.packetPosition_frame_eventually t ht y) |
| 205 | (A.packetPosition_velocity_eventually u hvelocity t ht y) |
| 206 | (A.normalizedVelocity_differentiableAt u t (A.packetPosition (t,y)) |
| 207 | (hu t ht (A.ell • A.packetPosition (t,y)))) |
| 208 | (A.normalizedPressure_differentiableAt p t (A.packetPosition (t,y)) |
| 209 | (hp ⟨t,ht.1.le,ht.2.le⟩ (A.ell • A.packetPosition (t,y)))) |
| 210 | (A.normalizedMomentum_zero u p t (A.packetPosition (t,y)) |
| 211 | (hu t ht (A.ell • A.packetPosition (t,y))) |
| 212 | (hp ⟨t,ht.1.le,ht.2.le⟩ (A.ell • A.packetPosition (t,y))) |
| 213 | (heuler t ht (A.ell • A.packetPosition (t,y)))) |
| 214 | rw [hy] at hh |
| 215 | exact hh |
| 216 | |
| 217 | include hYX hXY hY hu in |
| 218 | theorem exactPacketVelocity_differentiableAt (t : ℝ) (ht : t ∈ Ioo 0 A.T) (x : Space) : |
| 219 | DifferentiableAt ℝ (A.exactPacketVelocity m hm J support hSupport B residual k Y u) (t,x) := |
| 220 | (EulerSpatialRescaling.velocity_hasFDerivAt A.ell |
| 221 | (A.normalizedExactVelocity m hm J support hSupport B residual k Y u) (t,x) |
| 222 | (A.normalizedExactVelocity_differentiableAt m hm J support hSupport B residual k Y |
| 223 | hYX hXY hY u hu t ht (A.ell⁻¹ • x))).differentiableAt |
| 224 | |
| 225 | include hYX hXY hY hvelocity hu hp heuler hk in |
| 226 | theorem exactPacket_momentum (t : ℝ) (ht : t ∈ Ioo 0 A.T) (x : Space) : |
| 227 | momentumResidual (A.exactPacketVelocity m hm J support hSupport B residual k Y u) |
| 228 | (A.exactPacketPressure m hm J support hSupport B residual k Y p) (t,x)=0 := by |
| 229 | apply EulerSpatialRescaling.momentumResidual_zero A.ell A.ell_pos.ne' |
| 230 | (A.normalizedExactVelocity m hm J support hSupport B residual k Y u) |
| 231 | (A.normalizedExactPressure m hm J support hSupport B residual k Y p) (t,x) |
| 232 | · exact A.normalizedExactVelocity_differentiableAt m hm J support hSupport B residual k Y |
| 233 | hYX hXY hY u hu t ht (A.ell⁻¹ • x) |
| 234 | · exact A.normalizedExactPressure_differentiableAt m hm J support hSupport B residual k hk Y |
| 235 | hXY hY p hp ⟨t,ht.1.le,ht.2.le⟩ (A.ell⁻¹ • x) |
| 236 | · exact A.normalizedExact_momentum m hm J support hSupport B residual k hk Y |
| 237 | hYX hXY hY u p hvelocity hu hp heuler t ht (A.ell⁻¹ • x) |
| 238 | |
| 239 | theorem exactPacketVelocity_eq_corrected (t : Icc (0 : ℝ) A.T) (x : Space) : |
| 240 | A.exactPacketVelocity m hm J support hSupport B residual k Y u (t,x) = |
| 241 | A.correctedPacketVelocity B k Y (fun s y => u (s,y)) t x := by |
| 242 | change EulerSpatialRescaling.velocity A.ell |
| 243 | (fun q => A.normalizedVelocity u q + physicalVelocity κ k m A.packetFrame |
| 244 | (exactPacketOfResidual P B residual).rawVelocity (A.packetInverse Y) q) (t,x)=_ |
| 245 | rw [A.normalizedVelocity_add_restore] |
| 246 | exact (A.correctedPacketVelocity_eq_physical B k Y (fun s y => u (s,y)) t x).symm |
| 247 | |
| 248 | end EulerParentPacketFrames.Parent |