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.PacketCylinderPressureLocality |
| 3 | |
| 4 | /-! Differentiating an actual oscillatory scalar pressure through the |
| 5 | inverse flow. The principal Hessian is the angular second derivative |
| 6 | times the square of the transported normal. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerPacketGraphHessian |
| 11 | |
| 12 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerGraphPullback |
| 13 | EulerLiftedGradientSpace |
| 14 | open scoped ContDiff |
| 15 | |
| 16 | def spatialGradient (q : LiftTangent → ℝ) (z : LiftTangent) : Space := |
| 17 | (toDual ℝ Space).symm ((fderiv ℝ q z).comp (inl ℝ Space ℝ)) |
| 18 | |
| 19 | def angularDerivative (q : LiftTangent → ℝ) (z : LiftTangent) : ℝ := |
| 20 | fderiv ℝ q z (0,1) |
| 21 | |
| 22 | theorem angularDerivative_contDiff {q : LiftTangent → ℝ} (hq : ContDiff ℝ ∞ q) : |
| 23 | ContDiff ℝ ∞ (angularDerivative q) := |
| 24 | (contDiff_infty_iff_fderiv.mp hq).2.clm_apply contDiff_const |
| 25 | |
| 26 | theorem angularDerivative_eq_deriv {q : LiftTangent → ℝ} {z : LiftTangent} |
| 27 | (hq : DifferentiableAt ℝ q z) : |
| 28 | angularDerivative q z = deriv (fun θ => q (z.1,θ)) z.2 := by |
| 29 | exact ((hq.hasFDerivAt.comp_hasDerivAt z.2 |
| 30 | ((hasDerivAt_const z.2 z.1).prodMk (hasDerivAt_id z.2))).deriv).symm |
| 31 | |
| 32 | theorem angularSecond_eq_deriv {q : LiftTangent → ℝ} (hq : ContDiff ℝ ∞ q) |
| 33 | (z : LiftTangent) : |
| 34 | angularDerivative (angularDerivative q) z = |
| 35 | deriv (deriv (fun θ => q (z.1,θ))) z.2 := by |
| 36 | rw [angularDerivative_eq_deriv ((angularDerivative_contDiff hq).differentiable (by simp) z)] |
| 37 | congr 1 |
| 38 | funext θ |
| 39 | exact angularDerivative_eq_deriv (hq.differentiable (by simp) (z.1,θ)) |
| 40 | |
| 41 | theorem graph_decomposition (k : ℝ) (m v : Space) : |
| 42 | graphMap k m v = (v,0)+(k*⟪m,v⟫_ℝ) • (0,1) := by |
| 43 | ext i <;> simp [graphMap_apply] |
| 44 | |
| 45 | theorem gradient_graph {q : LiftTangent → ℝ} (k : ℝ) (m x : Space) |
| 46 | (hq : DifferentiableAt ℝ q (graphMap k m x)) : |
| 47 | gradient (fun y => q (graphMap k m y)) x = |
| 48 | spatialGradient q (graphMap k m x)+ |
| 49 | (k*angularDerivative q (graphMap k m x)) • m := by |
| 50 | apply ext_inner_right ℝ |
| 51 | intro v |
| 52 | have hd : fderiv ℝ (fun y => q (graphMap k m y)) x = |
| 53 | (fderiv ℝ q (graphMap k m x)).comp (graphMap k m) := |
| 54 | (hq.hasFDerivAt.comp x (graphMap k m).hasFDerivAt).fderiv |
| 55 | rw [inner_gradient_left,hd] |
| 56 | simp only [comp_apply,inner_add_left,real_inner_smul_left,spatialGradient,toDual_symm_apply, |
| 57 | inl_apply,graph_decomposition,map_add,map_smul,smul_eq_mul,angularDerivative] |
| 58 | ring |
| 59 | |
| 60 | def transportedNormal (m : Space) (J : Space → Space →L[ℝ] Space) (x : Space) : Space := |
| 61 | (J x).adjoint m |
| 62 | |
| 63 | end EulerPacketGraphHessian |