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.PacketCylinderScalarGradient |
| 2 | |
| 3 | /-! Spatial support and joint parity of the literal pressure-gradient term. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerPacketCylinderField |
| 8 | |
| 9 | open Set ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerLiftedGradientSpace |
| 10 | EulerPacketPointJets EulerPacketProfileRecursion |
| 11 | open scoped Topology ContDiff |
| 12 | |
| 13 | theorem pressureGradient_eq_spatialDual (p : ScalarField) (z : Domain) : |
| 14 | pressureGradient p z = (toDual ℝ Space).symm |
| 15 | ((fderiv ℝ (fun y => p (z.1,y)) z.2).comp (inl ℝ Space ℝ)) := by |
| 16 | have h : (pressureJet p z).2.comp spatialInjection = |
| 17 | (fderiv ℝ (fun y => p (z.1,y)) z.2).comp (inl ℝ Space ℝ) := by |
| 18 | apply ContinuousLinearMap.ext |
| 19 | intro v |
| 20 | simp only [comp_apply,pressureJet_space,inl_apply] |
| 21 | exact congrArg (toDual ℝ Space).symm h |
| 22 | |
| 23 | theorem pressureGradient_zero_outside (p : ScalarField) (t : ℝ) |
| 24 | (S : Set Space) (hS : IsClosed S) |
| 25 | (hp : ∀ x, x ∉ S → ∀ θ, p (t,(x,θ)) = 0) (x : Space) (hx : x ∉ S) (θ : ℝ) : |
| 26 | pressureGradient p (t,(x,θ)) = 0 := by |
| 27 | have hn : {y : LiftTangent | y.1 ∈ Sᶜ} ∈ 𝓝 (x,θ) := |
| 28 | (hS.isOpen_compl.preimage continuous_fst).mem_nhds hx |
| 29 | have he : (fun y : LiftTangent => p (t,y)) =ᶠ[𝓝 (x,θ)] (fun _ => (0 : ℝ)) := by |
| 30 | filter_upwards [hn] with y hy |
| 31 | exact hp y.1 hy y.2 |
| 32 | have hd : fderiv ℝ (fun y : LiftTangent => p (t,y)) (x,θ) = 0 := by |
| 33 | simpa only [fderiv_const_apply] using he.fderiv_eq (𝕜 := ℝ) |
| 34 | rw [pressureGradient_eq_spatialDual,hd,zero_comp,map_zero] |
| 35 | |
| 36 | theorem pressureGradient_odd (p : ScalarField) (t : ℝ) |
| 37 | (hp : ContDiff ℝ ∞ (fun y : LiftTangent => p (t,y))) |
| 38 | (heven : ∀ x θ, p (t,(-x,-θ)) = p (t,(x,θ))) (x : Space) (θ : ℝ) : |
| 39 | pressureGradient p (t,(-x,-θ)) = -pressureGradient p (t,(x,θ)) := by |
| 40 | have heq : (fun y : LiftTangent => p (t,-y)) = (fun y : LiftTangent => p (t,y)) := |
| 41 | funext (fun y => heven y.1 y.2) |
| 42 | have hd := ((hp.differentiable (by simp) (-(x,θ))).hasFDerivAt).comp (x,θ) |
| 43 | ((hasFDerivAt_id (𝕜 := ℝ) (x,θ)).neg) |
| 44 | have h : fderiv ℝ (fun y : LiftTangent => p (t,y)) (x,θ) = |
| 45 | -fderiv ℝ (fun y : LiftTangent => p (t,y)) (-(x,θ)) := by |
| 46 | simpa only [Function.comp_def,heq,comp_neg,comp_id] using hd.fderiv |
| 47 | have hneg : fderiv ℝ (fun y : LiftTangent => p (t,y)) (-(x,θ)) = |
| 48 | -fderiv ℝ (fun y : LiftTangent => p (t,y)) (x,θ) := by |
| 49 | simpa only [neg_neg] using congrArg Neg.neg h.symm |
| 50 | rw [pressureGradient_eq_spatialDual,pressureGradient_eq_spatialDual] |
| 51 | change (toDual ℝ Space).symm |
| 52 | ((fderiv ℝ (fun y : LiftTangent => p (t,y)) (-(x,θ))).comp (inl ℝ Space ℝ)) = _ |
| 53 | rw [hneg,neg_comp,map_neg] |
| 54 | |
| 55 | end EulerPacketCylinderField |