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 | theorem scalar_second_deriv_zero (a : ℝ) (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 67 | deriv (deriv (fun s => scalar τ hτ hτT B |
| 68 | (initialData D δ hδ (a • ξ) hs) (t,(x,s)))) 0 = |
| 69 | coefficient τ hτ hτT B ξ hs a t x / δ := by |
| 70 | rw [scalar_second_deriv,profile_deriv_zero δ hδ,div_eq_mul_inv] |
| 71 | |
| 72 | def physicalPressure (a k : ℝ) (t : Icc (0 : ℝ) D.T) (Y : Space → Space) (x : Space) : ℝ := |
| 73 | k⁻¹^2 * scalar τ hτ hτT B (initialData D δ hδ (a • ξ) hs) |
| 74 | (t,(Y x,k*⟪D.m₀,Y x⟫_ℝ)) |
| 75 | |
| 76 | def hessianRemainder (a k : ℝ) (t : Icc (0 : ℝ) D.T) (Y : Space → Space) |
| 77 | (x : Space) : Space →L[ℝ] Space := |
| 78 | lowerHessian (fun z => scalar τ hτ hτT B (initialData D δ hδ (a • ξ) hs) (t,z)) |
| 79 | k D.m₀ Y (fun y => D.FInv.field t (Y y)) x |
| 80 | |
| 81 | /-- The leading term is the literal normal tensor in source (20); the |
| 82 | remainder contains only terms with at least one factor of k⁻¹. -/ |
| 83 | theorem physicalPressure_hessian (a k : ℝ) (hk : k ≠ 0) (t : Icc (0 : ℝ) D.T) |
| 84 | (Y : Space → Space) (hY : ∀ x, HasFDerivAt Y (D.FInv.field t (Y x)) x) (x : Space) : |
| 85 | fderiv ℝ (gradient (physicalPressure τ hτ hτT B δ hδ ξ hs a k t Y)) x = |
| 86 | (coefficient τ hτ hτT B ξ hs a t (Y x) * deriv (profile δ) (k*⟪D.m₀,Y x⟫_ℝ)) • |
| 87 | rankOne ℝ (D.normal.field t (Y x)) (D.normal.field t (Y x)) + |
| 88 | hessianRemainder τ hτ hτT B δ hδ ξ hs a k t Y x := by |
| 89 | let q : LiftTangent → ℝ := fun z => scalar τ hτ hτT B (initialData D δ hδ (a • ξ) hs) (t,z) |
| 90 | have hq : ContDiff ℝ ∞ q := scalar_smooth τ hτ hτT B _ t |
| 91 | have hJ : DifferentiableAt ℝ (fun y => D.FInv.field t (Y y)) x := |
| 92 | ((D.FInv.smooth t).differentiable (by simp) (Y x)).comp x (hY x).differentiableAt |
| 93 | have hh := hessian_physical hq k hk D.m₀ Y (fun y => D.FInv.field t (Y y)) hY x hJ |
| 94 | have ha : angularDerivative (angularDerivative q) (graphMap k D.m₀ (Y x)) = |
| 95 | coefficient τ hτ hτT B ξ hs a t (Y x) * deriv (profile δ) (k*⟪D.m₀,Y x⟫_ℝ) := by |
| 96 | rw [angularSecond_eq_deriv hq] |
| 97 | exact scalar_second_deriv τ hτ hτT B δ hδ ξ hs a t (Y x) (k*⟪D.m₀,Y x⟫_ℝ) |
| 98 | rw [ha] at hh |
| 99 | exact hh |
| 100 | |
| 101 | theorem physicalPressure_hessian_of_inverse (a k : ℝ) (hk : k ≠ 0) |
| 102 | (X Y : Icc (0 : ℝ) D.T → Space → Space) |
| 103 | (hX : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x) |
| 104 | (hXY : ∀ t x, X t (Y t x)=x) (hY : Continuous (Function.uncurry Y)) |
| 105 | (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 106 | fderiv ℝ (gradient (physicalPressure τ hτ hτT B δ hδ ξ hs a k t (Y t))) x = |
| 107 | (coefficient τ hτ hτT B ξ hs a t (Y t x) * deriv (profile δ) (k*⟪D.m₀,Y t x⟫_ℝ)) • |
| 108 | rankOne ℝ (D.normal.field t (Y t x)) (D.normal.field t (Y t x)) + |
| 109 | hessianRemainder τ hτ hτT B δ hδ ξ hs a k t (Y t) x := |
| 110 | physicalPressure_hessian τ hτ hτT B δ hδ ξ hs a k hk t (Y t) |
| 111 | (continuousInverse_hasFDerivAt D X Y hX hXY hY t) x |
| 112 | |
| 113 | end EulerPacketPrimaryPressure |