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.PacketPhysicalEulerTransform |
| 2 | |
| 3 | /-! The frame evolution is derived by differentiating the actual parent |
| 4 | flow. Symmetry of the genuine second derivative supplies the mixed-derivative |
| 5 | identity; no independent strain evolution is assumed. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketPhysicalTransform |
| 10 | |
| 11 | open Set Filter InnerProductSpace ContinuousLinearMap EulerLagrangian |
| 12 | open scoped ContDiff Topology |
| 13 | |
| 14 | variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E] |
| 15 | |
| 16 | omit [CompleteSpace E] in |
| 17 | theorem flow_time_derivative_eq (X u : ℝ × E → E) (q : ℝ × E) |
| 18 | (hX : DifferentiableAt ℝ X q) |
| 19 | (hflow : HasDerivAt (fun s => X (s,q.2)) (u (q.1,X q)) q.1) : |
| 20 | fderiv ℝ X q (1,0) = u (q.1,X q) := by |
| 21 | have h := hX.hasFDerivAt.comp_hasDerivAt q.1 |
| 22 | ((hasDerivAt_id q.1).prodMk (hasDerivAt_const q.1 q.2)) |
| 23 | exact h.unique hflow |
| 24 | |
| 25 | omit [CompleteSpace E] in |
| 26 | theorem parent_frame_time (X u : ℝ × E → E) (F : ℝ × E → E →L[ℝ] E) |
| 27 | (q : ℝ × E) (DF : (ℝ × E) →L[ℝ] (E →L[ℝ] E)) (Du : (ℝ × E) →L[ℝ] E) |
| 28 | (hX : ContDiffAt ℝ 2 X q) (hF : HasFDerivAt F DF q) |
| 29 | (hu : HasFDerivAt u Du (q.1,X q)) |
| 30 | (hframe : F =ᶠ[𝓝 q] fun r => (fderiv ℝ X r).comp (inr ℝ ℝ E)) |
| 31 | (hflow : (fun r => fderiv ℝ X r (1,0)) =ᶠ[𝓝 q] fun r => u (r.1,X r)) |
| 32 | (v : E) : DF (1,0) v = Du (0,F q v) := by |
| 33 | have hDX : DifferentiableAt ℝ (fderiv ℝ X) q := |
| 34 | (hX.fderiv_right (m := 1) le_rfl).differentiableAt one_ne_zero |
| 35 | have hFv := hF.clm_apply (hasFDerivAt_const v q) |
| 36 | have hDXv := hDX.hasFDerivAt.clm_apply (hasFDerivAt_const ((0 : ℝ),v) q) |
| 37 | have hv : (fun r => F r v) =ᶠ[𝓝 q] fun r => fderiv ℝ X r (0,v) := by |
| 38 | filter_upwards [hframe] with r hr |
| 39 | rw [hr] |
| 40 | rfl |
| 41 | have he := hv.fderiv_eq (𝕜 := ℝ) |
| 42 | rw [hFv.fderiv,hDXv.fderiv] at he |
| 43 | have hfirst : DF (1,0) v = fderiv ℝ (fderiv ℝ X) q (1,0) (0,v) := by |
| 44 | have h := congrArg (fun L : (ℝ × E) →L[ℝ] E => L (1,0)) he |
| 45 | simpa only [add_apply,comp_apply,zero_apply,map_zero,zero_add,flip_apply] using h |
| 46 | have hDXt := hDX.hasFDerivAt.clm_apply (hasFDerivAt_const ((1 : ℝ),(0 : E)) q) |
| 47 | have hUX := hu.comp q ((hasFDerivAt_fst).prodMk (hX.differentiableAt two_ne_zero).hasFDerivAt) |
| 48 | change HasFDerivAt (fun r => u (r.1,X r)) _ q at hUX |
| 49 | have het := hflow.fderiv_eq (𝕜 := ℝ) |
| 50 | rw [hDXt.fderiv,hUX.fderiv] at het |
| 51 | have hsecond : fderiv ℝ (fderiv ℝ X) q (0,v) (1,0) = Du (0,F q v) := by |
| 52 | have h := congrArg (fun L : (ℝ × E) →L[ℝ] E => L (0,v)) het |
| 53 | have hfq := congrArg (fun L : E →L[ℝ] E => L v) hframe.eq_of_nhds |
| 54 | simp only [comp_apply,inr_apply] at hfq |
| 55 | simpa only [add_apply,comp_apply,zero_apply,map_zero,zero_add,flip_apply,prod_apply, |
| 56 | coe_fst',← hfq] using h |
| 57 | exact hfirst.trans (((hX.isSymmSndFDerivAt (by simp)).eq (1,0) (0,v)).trans hsecond) |
| 58 | |
| 59 | /-- The usual flow ODE and Jacobian identity suffice to supply the frame |
| 60 | evolution used by the physical Euler transformation. The identities need |
| 61 | only hold in a neighborhood of the current interior spacetime point. -/ |
| 62 | theorem physical_euler_momentum_of_flow |
| 63 | (κ k : ℝ) (hκ : k*κ=1) (m : E) |
| 64 | (F : ℝ × E → E →L[ℝ] E) (z : ℝ × (E × ℝ) → E) |
| 65 | (u : ℝ × E → E) (p Q : ℝ × E → ℝ) (X Y : ℝ × E → E) |
| 66 | (t : ℝ) (x : E) (A : E ≃L[ℝ] E) |
| 67 | (DF : (ℝ × E) →L[ℝ] (E →L[ℝ] E)) (Dz : (ℝ × (E × ℝ)) →L[ℝ] E) |
| 68 | (Du : (ℝ × E) →L[ℝ] E) (P : E) |
| 69 | (hleft : ∀ s y, Y (s,X (s,y)) = y) |
| 70 | (hY : DifferentiableAt ℝ (inverseCoordinates Y) (t,X (t,x))) |
| 71 | (hX : ContDiffAt ℝ 2 X (t,x)) |
| 72 | (hframe : F =ᶠ[𝓝 (t,x)] fun r => (fderiv ℝ X r).comp (inr ℝ ℝ E)) |
| 73 | (hflow : (fun r => fderiv ℝ X r (1,0)) =ᶠ[𝓝 (t,x)] fun r => u (r.1,X r)) |
| 74 | (hF : HasFDerivAt F DF (t,x)) (hz : HasFDerivAt z Dz (spaceTimeGraph k m (t,x))) |
| 75 | (hA : F (t,x) = A.toContinuousLinearMap) |
| 76 | (hu : HasFDerivAt u Du (t,X (t,x))) |
| 77 | (hp : DifferentiableAt ℝ (fun y => p (t,y)) (X (t,x))) |
| 78 | (hQ : DifferentiableAt ℝ (fun y => Q (t,y)) x) |
| 79 | (hQgradient : gradient (fun y => Q (t,y)) x = κ • P) |
| 80 | (hparent : momentumResidual u p (t,X (t,x)) = 0) |
| 81 | (hlift : Dz (1,(0,0)) + |
| 82 | (2 : ℝ) • A.symm (DF (1,0) (z (spaceTimeGraph k m (t,x)))) + |
| 83 | Dz (0,(κ • z (spaceTimeGraph k m (t,x)),⟪m,z (spaceTimeGraph k m (t,x))⟫_ℝ)) + |
| 84 | κ • A.symm (DF (0,z (spaceTimeGraph k m (t,x))) (z (spaceTimeGraph k m (t,x)))) + |
| 85 | A.symm (A.symm.toContinuousLinearMap.adjoint P) = 0) : |
| 86 | momentumResidual (fun q => u q+physicalVelocity κ k m F z Y q) |
| 87 | (fun q => p q+physicalPressure Q Y q) (t,X (t,x)) = 0 := by |
| 88 | have hXt : HasDerivAt (fun s => X (s,x)) (u (t,X (t,x))) t := by |
| 89 | have h := (hX.differentiableAt two_ne_zero).hasFDerivAt.comp_hasDerivAt t |
| 90 | ((hasDerivAt_id t).prodMk (hasDerivAt_const t x)) |
| 91 | rw [hflow.eq_of_nhds] at h |
| 92 | exact h |
| 93 | have hXs : HasFDerivAt (fun y => X (t,y)) A.toContinuousLinearMap x := by |
| 94 | have h := (hX.differentiableAt two_ne_zero).hasFDerivAt.comp x (hasFDerivAt_prodMk_right t x) |
| 95 | change HasFDerivAt (fun y => X (t,y)) ((fderiv ℝ X (t,x)).comp (inr ℝ ℝ E)) x at h |
| 96 | rw [← hframe.eq_of_nhds,hA] at h |
| 97 | exact h |
| 98 | have hstrain (v : E) : Du (0,v) = DF (1,0) (A.symm v) := by |
| 99 | have h := parent_frame_time X u F (t,x) DF Du hX hF hu hframe hflow (A.symm v) |
| 100 | simpa only [hA,ContinuousLinearEquiv.coe_coe,ContinuousLinearEquiv.apply_symm_apply] using h.symm |
| 101 | exact physical_euler_momentum κ k hκ m F z u p Q X Y t x A DF Dz Du P |
| 102 | hleft hY hXt hXs hF hz hA hu hp hQ hstrain hQgradient hparent hlift |
| 103 | |
| 104 | end EulerPacketPhysicalTransform |