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.PacketForwardFactorization |
| 2 | import Euler.PacketPrimaryGlobalShear |
| 3 | import Euler.PacketPrimaryPressureShear |
| 4 | |
| 5 | /-! Literal shear and pressure Hessian of the primary starting at time |
| 6 | zero. The leading tensors are derivatives of the actual constructed |
| 7 | velocity and scalar pressure, with the slow terms retained exactly. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerPacketForwardShear |
| 12 | |
| 13 | open Set InnerProductSpace ContinuousLinearMap EulerSmoothLimit EulerSpatialCutoffs |
| 14 | EulerTransversePacketProvider EulerPacketForwardPrimary EulerPacketTerminalDatum |
| 15 | EulerPacketForwardFactorization EulerPacketGraphHessian EulerGraphPullback |
| 16 | EulerPacketCylinderField EulerLiftedGradientSpace EulerPeriodicProfile |
| 17 | EulerCylinderCoordinates EulerCylinderSobolevSpace EulerGevrey |
| 18 | EulerPacketPrimaryShear EulerPacketInverseFlowGevrey |
| 19 | open scoped ContDiff |
| 20 | |
| 21 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] [CompleteSpace U] |
| 22 | (D : Data U) (δ : ℝ) (hδ : 0 < δ) (ξ : U) |
| 23 | (hs : tsupport innerCutoff ⊆ D.support) |
| 24 | |
| 25 | theorem angular_fderiv (a : ℝ) (t : Icc (0 : ℝ) D.T) (z : LiftTangent) : |
| 26 | fderiv ℝ (fun y => vector D (initialData D δ hδ (a • ξ) hs) (t,y)) z (0,1) = |
| 27 | (a*deriv (profile δ) z.2) • canonicalVelocity D ξ t z.1 := by |
| 28 | let q : LiftTangent → Space := fun y => vector D (initialData D δ hδ (a • ξ) hs) (t,y) |
| 29 | have he : (fun θ => q (z.1,θ)) = fun θ => |
| 30 | (a*profile δ θ) • canonicalVelocity D ξ t z.1 := by |
| 31 | funext θ |
| 32 | exact vector_factorization D δ hδ ξ hs a t z.1 θ |
| 33 | have hd := (((profile_contDiff δ hδ).differentiable (by simp) z.2).hasDerivAt.const_mul a).smul_const |
| 34 | (canonicalVelocity D ξ t z.1) |
| 35 | have hq : DifferentiableAt ℝ q z := |
| 36 | (((forcing D).vectorField (initialData D δ hδ (a • ξ) hs)).raw_smooth t).differentiable |
| 37 | (by simp) z |
| 38 | have hv := (hq.hasFDerivAt.comp_hasDerivAt z.2 |
| 39 | ((hasDerivAt_const z.2 z.1).prodMk (hasDerivAt_id z.2))).deriv |
| 40 | change deriv (fun θ => q (z.1,θ)) z.2 = _ at hv |
| 41 | rw [he,hd.deriv] at hv |
| 42 | exact hv.symm |
| 43 | |
| 44 | theorem global_gradient (a k : ℝ) (hk : k ≠ 0) |
| 45 | (t : Icc (0 : ℝ) D.T) (Y : Space → Space) (x : Space) |
| 46 | (hY : HasFDerivAt Y (D.FInv.field t (Y x)) x) : |
| 47 | fderiv ℝ (fun y => k⁻¹ • vector D (initialData D δ hδ (a • ξ) hs) |
| 48 | (t,(Y y,k*⟪D.m₀,Y y⟫_ℝ))) x = |
| 49 | (a*deriv (profile δ) (k*⟪D.m₀,Y x⟫_ℝ)) • |
| 50 | rankOne ℝ (canonicalVelocity D ξ t (Y x)) (D.normal.field t (Y x)) + |
| 51 | slowGraphDerivative (fun z => vector D (initialData D δ hδ (a • ξ) hs) (t,z)) |
| 52 | k D.m₀ Y (D.FInv.field t (Y x)) x := by |
| 53 | have hq := (((forcing D).vectorField (initialData D δ hδ (a • ξ) hs)).raw_smooth t).differentiable |
| 54 | (by simp) |
| 55 | have he := (graph_vector_hasFDerivAt |
| 56 | (fun z => vector D (initialData D δ hδ (a • ξ) hs) (t,z)) |
| 57 | k hk D.m₀ Y _ x hY (hq _)).fderiv |
| 58 | rw [angular_fderiv D δ hδ ξ hs] at he |
| 59 | convert! he using 1 |
| 60 | apply congrArg (fun V : Space →L[ℝ] Space => V + _) |
| 61 | apply ContinuousLinearMap.ext |
| 62 | intro v |
| 63 | simp only [smul_apply,rankOne_apply,smul_smul,graphMap_apply] |
| 64 | rw [mul_comm] |
| 65 | rfl |
| 66 | |
| 67 | theorem global_gradient_bound (a k : ℝ) (hk : 0 < k) |
| 68 | (R A C : ℝ) (hR : 0 ≤ R) (hA : 0 ≤ A) (_hC : 0 ≤ C) |
| 69 | (hG : ((forcing D).vectorField (initialData D δ hδ (a • ξ) hs)).WordBound 6 R A 0) |
| 70 | (t : Icc (0 : ℝ) D.T) (Y : Space → Space) (x : Space) |
| 71 | (hY : HasFDerivAt Y (D.FInv.field t (Y x)) x) (hJ : ‖D.FInv.field t (Y x)‖ ≤ C) : |
| 72 | ‖fderiv ℝ (fun y => k⁻¹ • vector D (initialData D δ hδ (a • ξ) hs) |
| 73 | (t,(Y y,k*⟪D.m₀,Y y⟫_ℝ))) x - |
| 74 | (a*deriv (profile δ) (k*⟪D.m₀,Y x⟫_ℝ)) • |
| 75 | rankOne ℝ (canonicalVelocity D ξ t (Y x)) (D.normal.field t (Y x))‖ ≤ |
| 76 | (‖coordinateEquiv.symm.toContinuousLinearMap‖*(sobolevEmbeddingConstant period 3*A*R)*C)/k := by |
| 77 | rw [global_gradient D δ hδ ξ hs a k hk.ne' t Y x hY,add_sub_cancel_left] |
| 78 | have hd := hG.raw_fderiv_le (by norm_num) t (graphMap k D.m₀ (Y x)) |
| 79 | simp only [majorant,Nat.add_zero,Nat.factorial_one,Nat.cast_one,pow_one,one_pow,mul_one] at hd |
| 80 | have hn := slowGraphDerivative_norm_le |
| 81 | (fun z => vector D (initialData D δ hδ (a • ξ) hs) (t,z)) |
| 82 | k D.m₀ Y (D.FInv.field t (Y x)) x |
| 83 | have hb := sobolevEmbeddingConstant_nonneg period 3 |
| 84 | calc |
| 85 | _ ≤ |k⁻¹| * ‖fderiv ℝ (fun z => vector D |
| 86 | (initialData D δ hδ (a • ξ) hs) (t,z)) (graphMap k D.m₀ (Y x))‖ * |
| 87 | ‖D.FInv.field t (Y x)‖ := hn |
| 88 | _ ≤ |k⁻¹| * (‖coordinateEquiv.symm.toContinuousLinearMap‖* |
| 89 | (sobolevEmbeddingConstant period 3*A*R)) * C := |
| 90 | mul_le_mul (mul_le_mul_of_nonneg_left hd (abs_nonneg _)) hJ (norm_nonneg _) (by positivity) |
| 91 | _ = _ := by rw [abs_of_pos (inv_pos.mpr hk)]; ring |
| 92 | |
| 93 | def pressureCoefficient (a : ℝ) (t : Icc (0 : ℝ) D.T) (x : Space) : ℝ := |
| 94 | -(2*a*⟪D.normal.field t x,D.M.field t x (canonicalVelocity D ξ t x)⟫_ℝ)/ |
| 95 | ‖D.normal.field t x‖^2 |
| 96 | |
| 97 | theorem scalar_hasDerivAt (a : ℝ) (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 98 | HasDerivAt (fun s => scalar D (initialData D δ hδ (a • ξ) hs) (t,(x,s))) |
| 99 | (pressureCoefficient D ξ a t x * profile δ θ) θ := by |
| 100 | apply (scalar_angle D (initialData D δ hδ (a • ξ) hs) t x θ).congr_deriv |
| 101 | rw [vector_factorization D δ hδ ξ hs a t x θ] |
| 102 | simp only [pressureCoefficient,map_smul,inner_smul_right] |
| 103 | ring |
| 104 | |
| 105 | theorem scalar_deriv (a : ℝ) (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 106 | deriv (fun s => scalar D (initialData D δ hδ (a • ξ) hs) (t,(x,s))) θ = |
| 107 | pressureCoefficient D ξ a t x * profile δ θ := |
| 108 | (scalar_hasDerivAt D δ hδ ξ hs a t x θ).deriv |
| 109 | |
| 110 | theorem scalar_deriv_hasDerivAt (a : ℝ) (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 111 | HasDerivAt |
| 112 | (deriv (fun s => scalar D (initialData D δ hδ (a • ξ) hs) (t,(x,s)))) |
| 113 | (pressureCoefficient D ξ a t x * deriv (profile δ) θ) θ := by |
| 114 | have he := funext (scalar_deriv D δ hδ ξ hs a t x) |
| 115 | rw [he] |
| 116 | exact ((profile_contDiff δ hδ).differentiable (by simp) θ).hasDerivAt.const_mul _ |
| 117 | |
| 118 | theorem scalar_second_deriv (a : ℝ) (t : Icc (0 : ℝ) D.T) (x : Space) (θ : ℝ) : |
| 119 | deriv (deriv (fun s => scalar D (initialData D δ hδ (a • ξ) hs) (t,(x,s)))) θ = |
| 120 | pressureCoefficient D ξ a t x * deriv (profile δ) θ := |
| 121 | (scalar_deriv_hasDerivAt D δ hδ ξ hs a t x θ).deriv |
| 122 | |
| 123 | theorem scalar_second_deriv_zero (a : ℝ) (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 124 | deriv (deriv (fun s => scalar D (initialData D δ hδ (a • ξ) hs) (t,(x,s)))) 0 = |
| 125 | pressureCoefficient D ξ a t x / δ := by |
| 126 | rw [scalar_second_deriv,profile_deriv_zero δ hδ,div_eq_mul_inv] |
| 127 | |
| 128 | def physicalPressure (a k : ℝ) (t : Icc (0 : ℝ) D.T) (Y : Space → Space) (x : Space) : ℝ := |
| 129 | k⁻¹^2 * scalar D (initialData D δ hδ (a • ξ) hs) (t,(Y x,k*⟪D.m₀,Y x⟫_ℝ)) |
| 130 | |
| 131 | def hessianRemainder (a k : ℝ) (t : Icc (0 : ℝ) D.T) (Y : Space → Space) |
| 132 | (x : Space) : Space →L[ℝ] Space := |
| 133 | lowerHessian (fun z => scalar D (initialData D δ hδ (a • ξ) hs) (t,z)) |
| 134 | k D.m₀ Y (fun y => D.FInv.field t (Y y)) x |
| 135 | |
| 136 | theorem physicalPressure_hessian (a k : ℝ) (hk : k ≠ 0) (t : Icc (0 : ℝ) D.T) |
| 137 | (Y : Space → Space) (hY : ∀ x, HasFDerivAt Y (D.FInv.field t (Y x)) x) (x : Space) : |
| 138 | fderiv ℝ (gradient (physicalPressure D δ hδ ξ hs a k t Y)) x = |
| 139 | (pressureCoefficient D ξ a t (Y x) * deriv (profile δ) (k*⟪D.m₀,Y x⟫_ℝ)) • |
| 140 | rankOne ℝ (D.normal.field t (Y x)) (D.normal.field t (Y x)) + |
| 141 | hessianRemainder D δ hδ ξ hs a k t Y x := by |
| 142 | let q : LiftTangent → ℝ := fun z => scalar D (initialData D δ hδ (a • ξ) hs) (t,z) |
| 143 | have hq : ContDiff ℝ ∞ q := pressure_smooth D _ t |
| 144 | have hJ : DifferentiableAt ℝ (fun y => D.FInv.field t (Y y)) x := |
| 145 | ((D.FInv.smooth t).differentiable (by simp) (Y x)).comp x (hY x).differentiableAt |
| 146 | have hh := hessian_physical hq k hk D.m₀ Y (fun y => D.FInv.field t (Y y)) hY x hJ |
| 147 | have ha : angularDerivative (angularDerivative q) (graphMap k D.m₀ (Y x)) = |
| 148 | pressureCoefficient D ξ a t (Y x) * deriv (profile δ) (k*⟪D.m₀,Y x⟫_ℝ) := by |
| 149 | rw [angularSecond_eq_deriv hq] |
| 150 | exact scalar_second_deriv D δ hδ ξ hs a t (Y x) (k*⟪D.m₀,Y x⟫_ℝ) |
| 151 | rw [ha] at hh |
| 152 | exact hh |
| 153 | |
| 154 | theorem physicalPressure_hessian_of_inverse (a k : ℝ) (hk : k ≠ 0) |
| 155 | (X Y : Icc (0 : ℝ) D.T → Space → Space) |
| 156 | (hX : ∀ t x, HasFDerivAt (X t) (D.F.field t x) x) |
| 157 | (hXY : ∀ t x, X t (Y t x)=x) (hY : Continuous (Function.uncurry Y)) |
| 158 | (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 159 | fderiv ℝ (gradient (physicalPressure D δ hδ ξ hs a k t (Y t))) x = |
| 160 | (pressureCoefficient D ξ a t (Y t x) * deriv (profile δ) (k*⟪D.m₀,Y t x⟫_ℝ)) • |
| 161 | rankOne ℝ (D.normal.field t (Y t x)) (D.normal.field t (Y t x)) + |
| 162 | hessianRemainder D δ hδ ξ hs a k t (Y t) x := |
| 163 | physicalPressure_hessian D δ hδ ξ hs a k hk t (Y t) |
| 164 | (continuousInverse_hasFDerivAt D X Y hX hXY hY t) x |
| 165 | |
| 166 | end EulerPacketForwardShear |