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.PacketGraphHessian |
| 2 | import Euler.PacketFieldTensorBounds |
| 3 | |
| 4 | /-! The leading angular pressure force gives its actual rank-one Hessian. |
| 5 | Only first slow derivatives occur in the remainder. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketGraphHessian |
| 10 | |
| 11 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerGraphPullback |
| 12 | EulerLiftedGradientSpace |
| 13 | open scoped ContDiff |
| 14 | |
| 15 | def fastForce (a : LiftTangent → ℝ) (k : ℝ) (m : Space) (Y : Space → Space) |
| 16 | (J : Space → Space →L[ℝ] Space) (x : Space) : Space := |
| 17 | k⁻¹ • (a (graphMap k m (Y x)) • transportedNormal m J x) |
| 18 | |
| 19 | def fastHessianRemainder (a : LiftTangent → ℝ) (k : ℝ) (m : Space) (Y : Space → Space) |
| 20 | (J : Space → Space →L[ℝ] Space) (x : Space) : Space →L[ℝ] Space := |
| 21 | k⁻¹ • (a (graphMap k m (Y x)) • fderiv ℝ (transportedNormal m J) x + |
| 22 | (((fderiv ℝ a (graphMap k m (Y x))).comp (inl ℝ Space ℝ)).comp (J x)).smulRight |
| 23 | (transportedNormal m J x)) |
| 24 | |
| 25 | theorem fastForce_hasFDerivAt (a : LiftTangent → ℝ) (k : ℝ) (hk : k ≠ 0) |
| 26 | (m : Space) (Y : Space → Space) (J : Space → Space →L[ℝ] Space) |
| 27 | (x : Space) (hY : HasFDerivAt Y (J x) x) (hJ : DifferentiableAt ℝ J x) |
| 28 | (ha : DifferentiableAt ℝ a (graphMap k m (Y x))) : |
| 29 | HasFDerivAt (fastForce a k m Y J) |
| 30 | (angularDerivative a (graphMap k m (Y x)) • |
| 31 | rankOne ℝ (transportedNormal m J x) (transportedNormal m J x)+ |
| 32 | fastHessianRemainder a k m Y J x) x := by |
| 33 | have hgraph : HasFDerivAt (fun y => graphMap k m (Y y)) ((graphMap k m).comp (J x)) x := |
| 34 | (graphMap k m).hasFDerivAt.comp x hY |
| 35 | have hcomp := ha.hasFDerivAt.comp x hgraph |
| 36 | have hn : DifferentiableAt ℝ (transportedNormal m J) x := |
| 37 | (adjoint.differentiableAt.comp x hJ).clm_apply (differentiableAt_const m) |
| 38 | convert! (hcomp.smul hn.hasFDerivAt).const_smul k⁻¹ using 1 |
| 39 | apply ContinuousLinearMap.ext |
| 40 | intro v |
| 41 | simp only [fastHessianRemainder,angularDerivative,add_apply,smul_apply,comp_apply, |
| 42 | smulRight_apply,rankOne_apply,graph_decomposition,map_add,map_smul,smul_eq_mul,inl_apply, |
| 43 | Function.comp_apply] |
| 44 | rw [← (J x).adjoint_inner_left v m] |
| 45 | dsimp only [transportedNormal] |
| 46 | match_scalars <;> field_simp |
| 47 | all_goals ring |
| 48 | |
| 49 | theorem fastHessianRemainder_norm_le (a : LiftTangent → ℝ) (k : ℝ) (m : Space) |
| 50 | (Y : Space → Space) (J : Space → Space →L[ℝ] Space) (x : Space) : |
| 51 | ‖fastHessianRemainder a k m Y J x‖ ≤ |
| 52 | |k⁻¹| * (|a (graphMap k m (Y x))| * ‖fderiv ℝ (transportedNormal m J) x‖ + |
| 53 | ‖fderiv ℝ a (graphMap k m (Y x))‖ * ‖J x‖ * ‖transportedNormal m J x‖) := by |
| 54 | unfold fastHessianRemainder |
| 55 | rw [norm_smul,Real.norm_eq_abs] |
| 56 | apply mul_le_mul_of_nonneg_left _ (abs_nonneg _) |
| 57 | apply (norm_add_le _ _).trans |
| 58 | rw [norm_smul,Real.norm_eq_abs,norm_smulRight_apply] |
| 59 | apply add_le_add le_rfl |
| 60 | apply mul_le_mul_of_nonneg_right _ (norm_nonneg _) |
| 61 | apply (opNorm_comp_le _ _).trans |
| 62 | apply mul_le_mul_of_nonneg_right _ (norm_nonneg _) |
| 63 | simpa only [norm_inl, mul_one] using |
| 64 | opNorm_comp_le (fderiv ℝ a (graphMap k m (Y x))) (inl ℝ Space ℝ) |
| 65 | |
| 66 | theorem norm_fderiv_smul_unit (a : LiftTangent → ℝ) (m : Space) (hm : ‖m‖=1) |
| 67 | (z : LiftTangent) (ha : DifferentiableAt ℝ a z) : |
| 68 | ‖fderiv ℝ (fun y => a y • m) z‖ = ‖fderiv ℝ a z‖ := by |
| 69 | rw [(ha.hasFDerivAt.smul_const m).fderiv,norm_smulRight_apply,hm,mul_one] |
| 70 | |
| 71 | theorem norm_fderiv_clm_apply_le (A : Space → Space →L[ℝ] Space) (u : Space → Space) |
| 72 | (x : Space) (hA : DifferentiableAt ℝ A x) (hu : DifferentiableAt ℝ u x) : |
| 73 | ‖fderiv ℝ (fun y => A y (u y)) x‖ ≤ |
| 74 | ‖A x‖*‖fderiv ℝ u x‖+‖fderiv ℝ A x‖*‖u x‖ := by |
| 75 | rw [fderiv_clm_apply hA hu] |
| 76 | exact (norm_add_le _ _).trans (add_le_add (opNorm_comp_le _ _) |
| 77 | (by simpa only [opNorm_flip] using (fderiv ℝ A x).flip.le_opNorm (u x))) |
| 78 | |
| 79 | end EulerPacketGraphHessian |