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.PacketPrimaryScaling |
| 2 | import Euler.PacketGraphHessian |
| 3 | |
| 4 | /-! The leading pressure tensor of the actual joined primary. Both angular |
| 5 | derivatives below are derivatives of its constructed scalar pressure. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketPrimaryPressure |
| 10 | |
| 11 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit |
| 12 | EulerLiftedGradientSpace EulerTransversePacketProvider EulerTransversePacketPrimary |
| 13 | EulerPacketTerminalDatum EulerPacketPrimaryFactorization EulerPacketPrimaryShear |
| 14 | EulerSpatialCutoffs EulerPeriodicProfile EulerPacketGraphHessian |
| 15 | EulerGraphPullback EulerPacketInverseFlowGevrey |
| 16 | open scoped ContDiff |
| 17 | |
| 18 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 19 | {D : Data U} (τ : ℝ) (hτ : 0 < τ) (hτT : τ < D.T) |
| 20 | (B : HistoryData (D.initial τ hτ hτT.le)) |
| 21 | (δ : ℝ) (hδ : 0 < δ) (ξ : U) (hs : tsupport innerCutoff ⊆ D.support) |
| 22 | |
| 23 | def coefficient (a : ℝ) (t : Icc (0 : ℝ) D.T) (x : Space) : ℝ := |
| 24 | -(2*a*⟪D.normal.field t x, |
| 25 | D.M.field t x (canonicalVelocity τ hτ hτT B ξ hs t x)⟫_ℝ)/‖D.normal.field t x‖^2 |
| 26 | |
| 27 | theorem scalar_hasDerivAt (a : ℝ) (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 28 | HasDerivAt (fun s => scalar τ hτ hτT B (initialData D δ hδ (a • ξ) hs) (t,(x,s))) |
| 29 | (coefficient τ hτ hτT B ξ hs a t x * profile δ θ) θ := by |
| 30 | have he : (fun s => scalar τ hτ hτT B (initialData D δ hδ (a • ξ) hs) (t,(x,s))) = |
| 31 | fun s : ℝ => pressureField τ hτ hτT B (initialData D δ hδ (a • ξ) hs) t |
| 32 | (x,(s : AddCircle period)) := |
| 33 | funext (scalar_eq_pressureField τ hτ hτT B _ t x) |
| 34 | rw [he] |
| 35 | have ha := pressureField_angle τ hτ hτT B (initialData D δ hδ (a • ξ) hs) t x θ |
| 36 | have hv := vector_terminal_smul τ hτ hτT B δ hδ ξ hs a t x θ |
| 37 | rw [vector_factorization_canonical τ hτ hτT B δ hδ ξ hs t x θ] at hv |
| 38 | simp only [vector,Data.clamp_coe] at hv |
| 39 | have hr : normalResidual τ hτ hτT B (initialData D δ hδ (a • ξ) hs) t |
| 40 | (x,(θ : AddCircle period)) = coefficient τ hτ hτT B ξ hs a t x * profile δ θ := by |
| 41 | unfold normalResidual |
| 42 | rw [hv] |
| 43 | simp only [coefficient,map_smul,inner_smul_right] |
| 44 | ring |
| 45 | exact hr ▸ ha |
| 46 | |
| 47 | theorem scalar_deriv (a : ℝ) (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 48 | deriv (fun s => scalar τ hτ hτT B (initialData D δ hδ (a • ξ) hs) (t,(x,s))) θ = |
| 49 | coefficient τ hτ hτT B ξ hs a t x * profile δ θ := |
| 50 | (scalar_hasDerivAt τ hτ hτT B δ hδ ξ hs a t x θ).deriv |
| 51 | |
| 52 | theorem scalar_deriv_hasDerivAt (a : ℝ) (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 53 | HasDerivAt |
| 54 | (deriv (fun s => scalar τ hτ hτT B (initialData D δ hδ (a • ξ) hs) (t,(x,s)))) |
| 55 | (coefficient τ hτ hτT B ξ hs a t x * deriv (profile δ) θ) θ := by |
| 56 | have he := funext (scalar_deriv τ hτ hτT B δ hδ ξ hs a t x) |
| 57 | rw [he] |
| 58 | exact ((profile_contDiff δ hδ).differentiable (by simp) θ).hasDerivAt.const_mul _ |
| 59 | |
| 60 | theorem scalar_second_deriv (a : ℝ) (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 61 | deriv (deriv (fun s => scalar τ hτ hτT B |
| 62 | (initialData D δ hδ (a • ξ) hs) (t,(x,s)))) θ = |
| 63 | coefficient τ hτ hτT B ξ hs a t x * deriv (profile δ) θ := |
| 64 | (scalar_deriv_hasDerivAt τ hτ hτT B δ hδ ξ hs a t x θ).deriv |
| 65 | |
| 66 | end EulerPacketPrimaryPressure |