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 | theorem Budget.physicalPotential_joint_continuous (k : ℝ) |
| 25 | (Y : Icc (0 : ℝ) D.T → Space → Space) |
| 26 | (hY : Continuous (Function.uncurry Y)) : |
| 27 | Continuous (B.physicalPotential D P k Y).uncurry := by |
| 28 | have hc : Continuous (fun z : Icc (0 : ℝ) D.T × Space => (z.1,Y z.1 z.2)) := |
| 29 | continuous_fst.prodMk hY |
| 30 | have hp : Continuous ((B.normalizedGraphPotential P k).uncurry ∘ |
| 31 | (fun z : Icc (0 : ℝ) D.T × Space => (z.1,Y z.1 z.2))) := |
| 32 | (B.normalizedGraphPotential_joint_continuous P k).comp hc |
| 33 | exact hp |
| 34 | |
| 35 | variable (X Y : Icc (0 : ℝ) D.T → Space → Space) |
| 36 | (hX : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x) |
| 37 | (hXY : ∀ t x, X t (Y t x)=x) |
| 38 | (hY : Continuous (Function.uncurry Y)) |
| 39 | |
| 40 | include hX hXY hY in |
| 41 | theorem Budget.physicalPotential_smooth (k : ℝ) (hk : k*A.κ=1) |
| 42 | (t : Icc (0 : ℝ) D.T) : |
| 43 | ContDiff ℝ ∞ (B.physicalPotential D P k Y t) := |
| 44 | (B.normalizedGraphPotential_smooth P k hk t).comp |
| 45 | (continuousInverse_contDiff D X Y hX hXY hY t) |
| 46 | |
| 47 | include hX hXY hY in |
| 48 | theorem Budget.physicalPotential_gradient (k : ℝ) (hk : k*A.κ=1) |
| 49 | (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 50 | gradient (B.physicalPotential D P k Y t) x = |
| 51 | A.κ • (D.FInv.field t (Y t x)).adjoint |
| 52 | (B.pointPressure P t (cylinderGraph P k A.direction (Y t x))) := by |
| 53 | rw [Budget.physicalPotential, EulerLagrangian.gradient_pullback _ _ _ _ |
| 54 | (continuousInverse_hasFDerivAt D X Y hX hXY hY t x) |
| 55 | ((B.normalizedGraphPotential_smooth P k hk t).differentiable (by simp) (Y t x)), |
| 56 | B.normalizedGraphPotential_gradient P k hk t (Y t x), map_smul] |
| 57 | |
| 58 | include hX hXY hY in |
| 59 | theorem Budget.physicalPotential_gradient_jet (k : ℝ) (hk : k*A.κ=1) |
| 60 | (n : ℕ) (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 61 | iteratedFDeriv ℝ n (gradient (B.physicalPotential D P k Y t)) x = |
| 62 | iteratedFDeriv ℝ n (fun y => A.κ • (D.FInv.field t (Y t y)).adjoint |
| 63 | (B.pointPressure P t (cylinderGraph P k A.direction (Y t y)))) x := by |
| 64 | congr 2 |
| 65 | funext y |
| 66 | exact B.physicalPotential_gradient D P X Y hX hXY hY k hk t y |
| 67 | |
| 68 | include hX hXY hY in |
| 69 | theorem Budget.physicalPotential_hessian_norm (k : ℝ) (hk : k*A.κ=1) |
| 70 | (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 71 | ‖fderiv ℝ (gradient (B.physicalPotential D P k Y t)) x‖ = |
| 72 | ‖iteratedFDeriv ℝ 1 (fun y => A.κ • (D.FInv.field t (Y t y)).adjoint |
| 73 | (B.pointPressure P t (cylinderGraph P k A.direction (Y t y)))) x‖ := by |
| 74 | rw [← norm_iteratedFDeriv_one, |
| 75 | B.physicalPotential_gradient_jet D P X Y hX hXY hY k hk 1 t x] |
| 76 | |
| 77 | end EulerAllOrderDriftCorrection |