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.PacketCylinderKnownJets |
| 2 | import Euler.PacketCylinderJetOperations |
| 3 | import Euler.PacketCylinderTimeParity |
| 4 | |
| 5 | /-! The actual spatial derivatives and nonlinear jet terms preserve joint odd velocity parity. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketCylinderField |
| 10 | |
| 11 | open Set ContinuousLinearMap InnerProductSpace EulerSmoothLimit EulerLiftedGradientSpace |
| 12 | EulerPacketPointJets EulerPacketProfileRecursion |
| 13 | open scoped ContDiff |
| 14 | |
| 15 | abbrev JointOdd (T : ℝ) (raw : VectorField) : Prop := |
| 16 | ∀ (t : Icc (0 : ℝ) T) x θ, raw (t,(-x,-θ)) = -raw (t,(x,θ)) |
| 17 | |
| 18 | namespace JointOdd |
| 19 | |
| 20 | variable {T : ℝ} {f g : VectorField} |
| 21 | |
| 22 | theorem zero (T : ℝ) : JointOdd T (0 : VectorField) := by |
| 23 | intro t x θ |
| 24 | simp only [Pi.zero_apply,neg_zero] |
| 25 | |
| 26 | theorem add (hf : JointOdd T f) (hg : JointOdd T g) : JointOdd T (f+g) := by |
| 27 | intro t x θ |
| 28 | simp only [Pi.add_apply,hf t x θ,hg t x θ,neg_add] |
| 29 | |
| 30 | theorem neg (hf : JointOdd T f) : JointOdd T (-f) := by |
| 31 | intro t x θ |
| 32 | simp only [Pi.neg_apply,hf t x θ] |
| 33 | |
| 34 | theorem sub (hf : JointOdd T f) (hg : JointOdd T g) : JointOdd T (f-g) := by |
| 35 | simpa only [sub_eq_add_neg] using hf.add hg.neg |
| 36 | |
| 37 | theorem congr (hf : JointOdd T f) |
| 38 | (he : ∀ (t : Icc (0 : ℝ) T) x θ, g (t,(x,θ)) = f (t,(x,θ))) : JointOdd T g := by |
| 39 | intro t x θ |
| 40 | rw [he,he,hf] |
| 41 | |
| 42 | end JointOdd |
| 43 | |
| 44 | variable {P T : ℝ} [Fact (0 < P)] |
| 45 | |
| 46 | theorem Field.raw_fderiv_even_of_odd {raw : VectorField} (G : Field P T raw) |
| 47 | (hodd : JointOdd T raw) (t : Icc (0 : ℝ) T) (x : Space) (θ : ℝ) : |
| 48 | fderiv ℝ (fun y : LiftTangent => raw (t,y)) (-x,-θ) = |
| 49 | fderiv ℝ (fun y : LiftTangent => raw (t,y)) (x,θ) := by |
| 50 | have hf := G.raw_smooth t |
| 51 | have he : (fun y : LiftTangent => raw (t,-y)) = |
| 52 | fun y : LiftTangent => -raw (t,y) := funext (fun y => hodd t y.1 y.2) |
| 53 | have h₁ := ((hf.differentiable (by simp) (-(x,θ))).hasFDerivAt).comp (x,θ) |
| 54 | ((hasFDerivAt_id (𝕜 := ℝ) (x,θ)).neg) |
| 55 | have h₂ := ((hf.differentiable (by simp) (x,θ)).hasFDerivAt).neg |
| 56 | have hfd : fderiv ℝ (fun y : LiftTangent => -raw (t,y)) (x,θ) = |
| 57 | -fderiv ℝ (fun y : LiftTangent => raw (t,y)) (x,θ) := h₂.fderiv |
| 58 | have hd : -fderiv ℝ (fun y : LiftTangent => raw (t,y)) (x,θ) = |
| 59 | -fderiv ℝ (fun y : LiftTangent => raw (t,y)) (-(x,θ)) := by |
| 60 | simpa only [Function.comp_def,he,hfd,comp_neg,comp_id] using h₁.fderiv |
| 61 | exact neg_injective hd.symm |
| 62 | |
| 63 | namespace SpatialJetField |
| 64 | |
| 65 | variable {J K : Domain → VectorJet} (H : SpatialJetField P T K) |
| 66 | |
| 67 | include H |
| 68 | |
| 69 | theorem spatial_even_of_value_odd (hK : JointOdd T (fun z => (K z).1)) |
| 70 | (t : Icc (0 : ℝ) T) (x : Space) (θ : ℝ) (v : SpatialDomain) : |
| 71 | (K (t,(-x,-θ))).2 (0,v) = (K (t,(x,θ))).2 (0,v) := by |
| 72 | have hr : JointOdd T H.raw := by |
| 73 | intro s y η |
| 74 | rw [← H.value_eq,← H.value_eq] |
| 75 | exact hK s y η |
| 76 | rw [H.spatial_eq,H.spatial_eq,H.field.raw_fderiv_even_of_odd hr t x θ] |
| 77 | |
| 78 | theorem slowAdvection_odd (inverse : Domain → Space →L[ℝ] Space) |
| 79 | (hI : ∀ (t : Icc (0 : ℝ) T) x θ, inverse (t,(-x,-θ)) = inverse (t,(x,θ))) |
| 80 | (hJ : JointOdd T (fun z => (J z).1)) (hK : JointOdd T (fun z => (K z).1)) : |
| 81 | JointOdd T (fun z => EulerPacketPointJets.slowAdvection (inverse z) (J z) (K z)) := by |
| 82 | intro t x θ |
| 83 | have hD : (K (t,(-x,-θ))).2.comp spatialInjection = |
| 84 | (K (t,(x,θ))).2.comp spatialInjection := by |
| 85 | apply ContinuousLinearMap.ext |
| 86 | intro v |
| 87 | exact H.spatial_even_of_value_odd hK t x θ (v,0) |
| 88 | change ((K (t,(-x,-θ))).2.comp spatialInjection) (inverse (t,(-x,-θ)) (J (t,(-x,-θ))).1) = |
| 89 | -((K (t,(x,θ))).2.comp spatialInjection) (inverse (t,(x,θ)) (J (t,(x,θ))).1) |
| 90 | have hj : (J (t,(-x,-θ))).1 = -(J (t,(x,θ))).1 := hJ t x θ |
| 91 | rw [hD,hI t x θ,hj,map_neg,map_neg] |
| 92 | |
| 93 | theorem fastAdvection_odd (normal : VectorField) |
| 94 | (hN : ∀ (t : Icc (0 : ℝ) T) x θ, normal (t,(-x,-θ)) = normal (t,(x,θ))) |
| 95 | (hJ : JointOdd T (fun z => (J z).1)) (hK : JointOdd T (fun z => (K z).1)) : |
| 96 | JointOdd T (fun z => EulerPacketPointJets.fastAdvection (normal z) (J z) (K z)) := by |
| 97 | intro t x θ |
| 98 | change inner ℝ (normal (t,(-x,-θ))) (J (t,(-x,-θ))).1 • (K (t,(-x,-θ))).2 (0,(0,1)) = |
| 99 | -(inner ℝ (normal (t,(x,θ))) (J (t,(x,θ))).1 • (K (t,(x,θ))).2 (0,(0,1))) |
| 100 | have hj : (J (t,(-x,-θ))).1 = -(J (t,(x,θ))).1 := hJ t x θ |
| 101 | rw [hN t x θ,hj,H.spatial_even_of_value_odd hK t x θ (0,1),inner_neg_right,neg_smul] |
| 102 | |
| 103 | end SpatialJetField |
| 104 | |
| 105 | end EulerPacketCylinderField |