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.PacketContinuousInverse |
| 2 | import Euler.AllOrderDriftPressure |
| 3 | |
| 4 | /-! The signed pressure correction has a genuine scalar potential in |
| 5 | physical coordinates. Its gradient is exactly the inverse-transpose |
| 6 | reconstruction used in the quantitative correction estimates. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerAllOrderDriftCorrection |
| 11 | |
| 12 | open Set EulerSmoothLimit EulerAllOrderCorrectionData EulerGraphPressurePotential |
| 13 | EulerPacketInverseFlowGevrey |
| 14 | open scoped ContDiff |
| 15 | |
| 16 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 17 | (D : EulerTransversePacketProvider.Data U) (P : ℝ) [Fact (0 < P)] |
| 18 | {A : Data P D.T} (B : Budget P D.T_pos A) |
| 19 | |
| 20 | def Budget.physicalPotential (k : ℝ) (Y : Icc (0 : ℝ) D.T → Space → Space) |
| 21 | (t : Icc (0 : ℝ) D.T) : Space → ℝ := |
| 22 | B.normalizedGraphPotential P k t ∘ Y t |
| 23 | |
| 24 | variable (X Y : Icc (0 : ℝ) D.T → Space → Space) |
| 25 | (hX : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x) |
| 26 | (hXY : ∀ t x, X t (Y t x)=x) |
| 27 | (hY : Continuous (Function.uncurry Y)) |
| 28 | |
| 29 | include hX hXY hY in |
| 30 | theorem Budget.physicalPotential_smooth (k : ℝ) (hk : k*A.κ=1) |
| 31 | (t : Icc (0 : ℝ) D.T) : |
| 32 | ContDiff ℝ ∞ (B.physicalPotential D P k Y t) := |
| 33 | (B.normalizedGraphPotential_smooth P k hk t).comp |
| 34 | (continuousInverse_contDiff D X Y hX hXY hY t) |
| 35 | |
| 36 | include hX hXY hY in |
| 37 | theorem Budget.physicalPotential_gradient (k : ℝ) (hk : k*A.κ=1) |
| 38 | (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 39 | gradient (B.physicalPotential D P k Y t) x = |
| 40 | A.κ • (D.FInv.field t (Y t x)).adjoint |
| 41 | (B.pointPressure P t (cylinderGraph P k A.direction (Y t x))) := by |
| 42 | rw [Budget.physicalPotential, EulerLagrangian.gradient_pullback _ _ _ _ |
| 43 | (continuousInverse_hasFDerivAt D X Y hX hXY hY t x) |
| 44 | ((B.normalizedGraphPotential_smooth P k hk t).differentiable (by simp) (Y t x)), |
| 45 | B.normalizedGraphPotential_gradient P k hk t (Y t x), map_smul] |
| 46 | |
| 47 | include hX hXY hY in |
| 48 | theorem Budget.physicalPotential_gradient_jet (k : ℝ) (hk : k*A.κ=1) |
| 49 | (n : ℕ) (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 50 | iteratedFDeriv ℝ n (gradient (B.physicalPotential D P k Y t)) x = |
| 51 | iteratedFDeriv ℝ n (fun y => A.κ • (D.FInv.field t (Y t y)).adjoint |
| 52 | (B.pointPressure P t (cylinderGraph P k A.direction (Y t y)))) x := by |
| 53 | congr 2 |
| 54 | funext y |
| 55 | exact B.physicalPotential_gradient D P X Y hX hXY hY k hk t y |
| 56 | |
| 57 | include hX hXY hY in |
| 58 | theorem Budget.physicalPotential_hessian_norm (k : ℝ) (hk : k*A.κ=1) |
| 59 | (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 60 | ‖fderiv ℝ (gradient (B.physicalPotential D P k Y t)) x‖ = |
| 61 | ‖iteratedFDeriv ℝ 1 (fun y => A.κ • (D.FInv.field t (Y t y)).adjoint |
| 62 | (B.pointPressure P t (cylinderGraph P k A.direction (Y t y)))) x‖ := by |
| 63 | rw [← norm_iteratedFDeriv_one, |
| 64 | B.physicalPotential_gradient_jet D P X Y hX hXY hY k hk 1 t x] |
| 65 | |
| 66 | end EulerAllOrderDriftCorrection |