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 | |
| 4 | /-! Normalizing the actual parent Euler velocity and pressure preserves |
| 5 | Euler and supplies the true time law of the normalized particle map. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerParentPacketFrames.Parent |
| 10 | |
| 11 | open Set Filter EulerSmoothLimit EulerLagrangian |
| 12 | open scoped Topology |
| 13 | |
| 14 | variable (A : EulerParentPacketFrames.Parent) |
| 15 | |
| 16 | def normalizedVelocity (u : ℝ × Space → Space) : ℝ × Space → Space := |
| 17 | EulerSpatialRescaling.velocity A.ell⁻¹ u |
| 18 | |
| 19 | def normalizedPressure (p : ℝ × Space → ℝ) : ℝ × Space → ℝ := |
| 20 | EulerSpatialRescaling.pressure A.ell⁻¹ p |
| 21 | |
| 22 | @[simp] theorem normalizedVelocity_apply (u : ℝ × Space → Space) (q : ℝ × Space) : |
| 23 | A.normalizedVelocity u q=A.ell⁻¹ • u (q.1,A.ell • q.2) := by |
| 24 | simp only [normalizedVelocity,EulerSpatialRescaling.velocity,EulerSpatialRescaling.coordinates_apply,inv_inv] |
| 25 | |
| 26 | @[simp] theorem normalizedPressure_apply (p : ℝ × Space → ℝ) (q : ℝ × Space) : |
| 27 | A.normalizedPressure p q=(A.ell⁻¹)^2*p (q.1,A.ell • q.2) := by |
| 28 | simp only [normalizedPressure,EulerSpatialRescaling.pressure,EulerSpatialRescaling.coordinates_apply,inv_inv] |
| 29 | |
| 30 | theorem normalizedVelocity_differentiableAt (u : ℝ × Space → Space) (t : ℝ) (x : Space) |
| 31 | (hu : DifferentiableAt ℝ u (t,A.ell • x)) : |
| 32 | DifferentiableAt ℝ (A.normalizedVelocity u) (t,x) := by |
| 33 | apply (EulerSpatialRescaling.velocity_hasFDerivAt A.ell⁻¹ u (t,x) ?_).differentiableAt |
| 34 | simpa only [EulerSpatialRescaling.coordinates_apply,inv_inv] using hu |
| 35 | |
| 36 | theorem normalizedPressure_differentiableAt (p : ℝ × Space → ℝ) (t : ℝ) (x : Space) |
| 37 | (hp : DifferentiableAt ℝ (fun y => p (t,y)) (A.ell • x)) : |
| 38 | DifferentiableAt ℝ (fun y => A.normalizedPressure p (t,y)) x := by |
| 39 | have hc : DifferentiableAt ℝ (fun y => p (t,A.ell • y)) x := |
| 40 | hp.comp x (A.ell • ContinuousLinearMap.id ℝ Space).differentiableAt |
| 41 | have he : (fun y => A.normalizedPressure p (t,y)) = (fun y => (A.ell⁻¹)^2*p (t,A.ell • y)) := |
| 42 | funext (fun y => A.normalizedPressure_apply p (t,y)) |
| 43 | rw [he] |
| 44 | exact hc.const_mul ((A.ell⁻¹)^2) |
| 45 | |
| 46 | theorem normalizedMomentum_zero (u : ℝ × Space → Space) (p : ℝ × Space → ℝ) |
| 47 | (t : ℝ) (x : Space) |
| 48 | (hu : DifferentiableAt ℝ u (t,A.ell • x)) |
| 49 | (hp : DifferentiableAt ℝ (fun y => p (t,y)) (A.ell • x)) |
| 50 | (he : momentumResidual u p (t,A.ell • x)=0) : |
| 51 | momentumResidual (A.normalizedVelocity u) (A.normalizedPressure p) (t,x)=0 := by |
| 52 | apply EulerSpatialRescaling.momentumResidual_zero A.ell⁻¹ (inv_ne_zero A.ell_pos.ne') u p (t,x) |
| 53 | · simpa only [EulerSpatialRescaling.coordinates_apply,inv_inv] using hu |
| 54 | · simpa only [inv_inv] using hp |
| 55 | · simpa only [EulerSpatialRescaling.coordinates_apply,inv_inv] using he |
| 56 | |
| 57 | theorem packetPosition_velocity_eventually (u : ℝ × Space → Space) |
| 58 | (hvelocity : ∀ (t : Icc (0 : ℝ) A.T) x, A.velocity.field t x=u (t,A.position t x)) |
| 59 | (t : ℝ) (ht : t ∈ Ioo 0 A.T) (x : Space) : |
| 60 | (fun q => fderiv ℝ A.packetPosition q (1,0)) =ᶠ[𝓝 (t,x)] |
| 61 | fun q => A.normalizedVelocity u (q.1,A.packetPosition q) := by |
| 62 | filter_upwards [(continuous_fst.tendsto (t,x)).eventually (Ioo_mem_nhds ht.1 ht.2)] with q hq |
| 63 | rw [A.packetPosition_time q.1 hq q.2,A.normalizedVelocity_apply] |
| 64 | have hp : A.ell • A.packetPosition q = |
| 65 | A.position ⟨q.1,hq.1.le,hq.2.le⟩ (A.ell • q.2) := by |
| 66 | rw [A.packetPosition_apply ⟨q.1,hq.1.le,hq.2.le⟩ q.2, |
| 67 | smul_smul,mul_inv_cancel₀ A.ell_pos.ne',one_smul] |
| 68 | rw [hp,hvelocity] |
| 69 | |
| 70 | theorem normalizedVelocity_restore (u : ℝ × Space → Space) (q : ℝ × Space) : |
| 71 | EulerSpatialRescaling.velocity A.ell (A.normalizedVelocity u) q=u q := by |
| 72 | simp only [EulerSpatialRescaling.velocity,EulerSpatialRescaling.coordinates_apply, |
| 73 | normalizedVelocity_apply,smul_smul,mul_inv_cancel₀ A.ell_pos.ne',one_smul,Prod.mk.eta] |
| 74 | |
| 75 | theorem normalizedVelocity_add_restore (u w : ℝ × Space → Space) (q : ℝ × Space) : |
| 76 | EulerSpatialRescaling.velocity A.ell (fun r => A.normalizedVelocity u r+w r) q = |
| 77 | u q + A.ell • w (q.1,A.ell⁻¹ • q.2) := by |
| 78 | change A.ell • (A.normalizedVelocity u (q.1,A.ell⁻¹ • q.2)+w (q.1,A.ell⁻¹ • q.2))=_ |
| 79 | rw [smul_add] |
| 80 | change EulerSpatialRescaling.velocity A.ell (A.normalizedVelocity u) q+_=_ |
| 81 | rw [A.normalizedVelocity_restore] |
| 82 | |
| 83 | end EulerParentPacketFrames.Parent |