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.PacketCoordinateResidual |
| 2 | import Euler.CylinderGradientEmbedding |
| 3 | |
| 4 | /-! A genuine compact scalar cylinder path supplies the actual lifted |
| 5 | pressure-gradient Field and belongs to the closed lifted gradient space. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketPressure |
| 10 | |
| 11 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit |
| 12 | EulerPacketPointJets EulerPacketProfileRecursion EulerPacketCylinderField |
| 13 | EulerLiftedGradientSpace EulerLpCylinderTranslation EulerCylinderScalarPrimitive |
| 14 | EulerCylinderSmoothOrbit EulerCylinderConstantMap EulerCylinderSobolev |
| 15 | EulerLiftedWeakDerivative EulerMetricTransport |
| 16 | open scoped ContDiff |
| 17 | |
| 18 | variable (P : ℝ) [Fact (0 < P)] {T : ℝ} |
| 19 | |
| 20 | def rawGradient (κ : ℝ) (m : Space) (p : ScalarField) (z : Domain) : Space := |
| 21 | κ • pressureGradient p z + (pressureJet p z).2 angleDirection • m |
| 22 | |
| 23 | omit [Fact (0 < P)] in |
| 24 | theorem rawGradient_cover (κ : ℝ) (m : Space) (p : ScalarField) |
| 25 | (φ : LiftDomain P → ℝ) (t : ℝ) |
| 26 | (he : ∀ x θ, p (t,(x,θ)) = φ (x,(θ : AddCircle P))) (x : Space) (θ : ℝ) : |
| 27 | rawGradient κ m p (t,(x,θ)) = liftedGradient P κ m φ (x,(θ : AddCircle P)) := by |
| 28 | have hd : fderiv ℝ (fun y : LiftTangent => p (t,y)) (x,θ) = |
| 29 | fieldFDeriv P φ (x,(θ : AddCircle P)) := by |
| 30 | have hh : (fun y : LiftTangent => p (t,y)) = |
| 31 | fun y => φ (y.1,(y.2 : AddCircle P)) := funext (fun y => he y.1 y.2) |
| 32 | rw [hh,coverField_fderiv] |
| 33 | let A := fieldFDeriv P φ (x,(θ : AddCircle P)) |
| 34 | have hi (i : Fin 3) : ((toDual ℝ Space).symm (A.comp (inl ℝ Space ℝ))) i = |
| 35 | A (EuclideanSpace.single i 1,0) := by |
| 36 | have h := toDual_symm_apply (𝕜 := ℝ) (x := EuclideanSpace.single i 1) |
| 37 | (y := A.comp (inl ℝ Space ℝ)) |
| 38 | simpa only [EuclideanSpace.inner_single_right,conj_trivial,one_mul,comp_apply,inl_apply] using h |
| 39 | rw [rawGradient,pressureGradient_eq_spatialDual,pressureJet_angle,hd] |
| 40 | ext i |
| 41 | change κ*((toDual ℝ Space).symm (A.comp (inl ℝ Space ℝ))) i + A (0,1)*m i = |
| 42 | κ*A (EuclideanSpace.single i 1,0)+m i*A (0,1) |
| 43 | rw [hi] |
| 44 | ring |
| 45 | |
| 46 | variable (p : ScalarField) (q : C(Icc (0 : ℝ) T,CylinderL2 P ℝ)) |
| 47 | (hq : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a q)) |
| 48 | (he : ∀ (t : Icc (0 : ℝ) T) x θ, p (t,(x,θ)) = scalarPointField P q hq t (x,(θ : AddCircle P))) |
| 49 | |
| 50 | def angularGradientField (m : Space) : |
| 51 | Field P T (fun z => (pressureJet p z).2 angleDirection • m) := |
| 52 | (((scalarEmbeddingField p q hq he).derivative 0).map |
| 53 | ((toSpanSingleton ℝ m).comp scalarProject)).congr (fun t x θ => by |
| 54 | have hd : fderiv ℝ (fun y => scalarEmbed (p (t,y))) (x,θ) = |
| 55 | scalarEmbed.comp (fderiv ℝ (fun y => p (t,y)) (x,θ)) := |
| 56 | (scalarEmbed.hasFDerivAt.comp (x,θ) |
| 57 | (((scalarRaw_smooth p q hq he t).differentiable (by simp)) (x,θ)).hasFDerivAt).fderiv |
| 58 | simp only [pressureJet_angle,hd,comp_apply,project_embed,toSpanSingleton_apply, |
| 59 | standardDirection_zero]) |
| 60 | |
| 61 | def liftedGradientField (κ : ℝ) (m : Space) : Field P T (rawGradient κ m p) := |
| 62 | ((scalarGradientField p q hq he).smul κ).add (angularGradientField P p q hq he m) |
| 63 | |
| 64 | include he in |
| 65 | theorem scalarPointField_compact (S : Set Space) (hS : IsCompact S) |
| 66 | (hz : ∀ (t : Icc (0 : ℝ) T) x, x ∉ S → ∀ θ, p (t,(x,θ)) = 0) |
| 67 | (t : Icc (0 : ℝ) T) : HasCompactSupport (scalarPointField P q hq t) := by |
| 68 | apply HasCompactSupport.intro (hS.prod (isCompact_univ : IsCompact (univ : Set (AddCircle P)))) |
| 69 | intro z hzs |
| 70 | have hzS : z.1 ∉ S := by simpa only [mem_prod,mem_univ,and_true] using hzs |
| 71 | obtain ⟨θ,hθ⟩ := QuotientAddGroup.mk_surjective z.2 |
| 72 | have hh := he t z.1 θ |
| 73 | rw [hθ] at hh |
| 74 | exact hh.symm.trans (hz t z.1 hzS θ) |
| 75 | |
| 76 | theorem liftedGradientField_mem (κ : ℝ) (m : Space) (S : Set Space) (hS : IsCompact S) |
| 77 | (hz : ∀ (t : Icc (0 : ℝ) T) x, x ∉ S → ∀ θ, p (t,(x,θ)) = 0) |
| 78 | (t : Icc (0 : ℝ) T) : |
| 79 | (liftedGradientField P p q hq he κ m).path t ∈ gradientSpace P κ m := by |
| 80 | apply testGradient_mem P κ m |
| 81 | refine ⟨scalarPointField P q hq t,⟨scalarPointField_compact P p q hq he S hS hz t, |
| 82 | scalarPointField_smooth P q hq t⟩,?_⟩ |
| 83 | let G := liftedGradientField P p q hq he κ m |
| 84 | filter_upwards [pointField_ae P G.path G.orbit t] with z hG |
| 85 | obtain ⟨θ,hθ⟩ := QuotientAddGroup.mk_surjective z.2 |
| 86 | have hraw := G.raw_eq t z.1 θ |
| 87 | have hgrad := rawGradient_cover P κ m p (scalarPointField P q hq t) t (he t) z.1 θ |
| 88 | rw [hθ] at hraw hgrad |
| 89 | exact hG.trans (hraw.symm.trans hgrad) |
| 90 | |
| 91 | end EulerPacketPressure |
| 92 | |
| 93 | namespace EulerPacketCoordinates |
| 94 | |
| 95 | open Set EulerSmoothLimit EulerTransversePacketProvider EulerPacketPressure |
| 96 | EulerPacketCylinderField EulerPacketProfileRecursion EulerLiftedGradientSpace |
| 97 | EulerLpCylinderTranslation EulerCylinderScalarPrimitive EulerPacketPointJets |
| 98 | open scoped ContDiff |
| 99 | |
| 100 | variable {P : ℝ} [Fact (0 < P)] |
| 101 | {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] (D : Data U) |
| 102 | (k : ℝ) (hk : k ≠ 0) (p : ScalarField) |
| 103 | (q : C(Icc (0 : ℝ) D.T,CylinderL2 P ℝ)) |
| 104 | (hq : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a q)) |
| 105 | (he : ∀ (t : Icc (0 : ℝ) D.T) x θ, p (t,(x,θ)) = scalarPointField P q hq t (x,(θ : AddCircle P))) |
| 106 | |
| 107 | def compactPressureField : Field P D.T (coordinatePressure D k p) := |
| 108 | ((liftedGradientField P p q hq he k⁻¹ D.m₀).smul (k^2)).congr (fun t x θ => by |
| 109 | change k • pressureGradient p (t,(x,θ)) + |
| 110 | k^2 • ((pressureJet p (t,(x,θ))).2 angleDirection • D.m₀) = |
| 111 | k^2 • (k⁻¹ • pressureGradient p (t,(x,θ)) + |
| 112 | (pressureJet p (t,(x,θ))).2 angleDirection • D.m₀) |
| 113 | simp only [smul_add,smul_smul] |
| 114 | rw [show k^2*k⁻¹ = k by field_simp [hk]]) |
| 115 | |
| 116 | theorem compactPressureField_mem (S : Set Space) (hS : IsCompact S) |
| 117 | (hz : ∀ (t : Icc (0 : ℝ) D.T) x, x ∉ S → ∀ θ, p (t,(x,θ)) = 0) |
| 118 | (t : Icc (0 : ℝ) D.T) : |
| 119 | (compactPressureField D k hk p q hq he).path t ∈ gradientSpace P k⁻¹ D.m₀ := |
| 120 | (gradientSpace P k⁻¹ D.m₀).smul_mem (k^2) |
| 121 | (liftedGradientField_mem P p q hq he k⁻¹ D.m₀ S hS hz t) |
| 122 | |
| 123 | end EulerPacketCoordinates |