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.PacketCylinderJetOperations |
| 2 | import Euler.CylinderScalarTime |
| 3 | |
| 4 | /-! The literal spatial gradient of an actual scalar cylinder path is an actual vector path. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | namespace EulerPacketCylinderField |
| 9 | |
| 10 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace Finset EulerSmoothLimit |
| 11 | EulerLiftedGradientSpace EulerCylinderSmoothOrbit EulerLpCylinderTranslation |
| 12 | EulerCylinderConstantMap EulerCylinderScalarPrimitive EulerCylinderPathProduct |
| 13 | EulerPacketPointJets EulerPacketProfileRecursion EulerCylinderSobolev |
| 14 | open scoped ContDiff |
| 15 | |
| 16 | def gradientComponent (i : Fin 3) : Space →L[ℝ] Space := |
| 17 | (toSpanSingleton ℝ (basisVector i)).comp scalarProject |
| 18 | |
| 19 | theorem gradientComponent_norm (i : Fin 3) : ‖gradientComponent i‖ ≤ 1 := by |
| 20 | have h := opNorm_comp_le (toSpanSingleton ℝ (basisVector i)) scalarProject |
| 21 | simpa only [gradientComponent, norm_toSpanSingleton, scalarProject_norm, |
| 22 | basisVector, PiLp.norm_single, Real.norm_eq_abs, abs_one, mul_one] using h |
| 23 | |
| 24 | theorem gradient_eq_sum (D : LiftTangent →L[ℝ] ℝ) : |
| 25 | (toDual ℝ Space).symm (D.comp (inl ℝ Space ℝ)) = |
| 26 | ∑ i : Fin 3, D (standardDirection i.succ) • basisVector i := by |
| 27 | have hc (i : Fin 3) : component i ((toDual ℝ Space).symm (D.comp (inl ℝ Space ℝ))) = |
| 28 | D (standardDirection i.succ) := by |
| 29 | change ((toDual ℝ Space).symm (D.comp (inl ℝ Space ℝ))) i = _ |
| 30 | have h := toDual_symm_apply (𝕜 := ℝ) |
| 31 | (x := basisVector i) (y := D.comp (inl ℝ Space ℝ)) |
| 32 | simpa only [component, basisVector, |
| 33 | EuclideanSpace.inner_single_right, conj_trivial, one_mul, comp_apply, |
| 34 | inl_apply, standardDirection_succ] using h |
| 35 | rw [← sum_components ((toDual ℝ Space).symm (D.comp (inl ℝ Space ℝ)))] |
| 36 | exact sum_congr rfl (fun i _ => congrArg (fun r : ℝ => r • basisVector i) (hc i)) |
| 37 | |
| 38 | variable {P T : ℝ} [Fact (0 < P)] (raw : ScalarField) |
| 39 | (p : C(Icc (0 : ℝ) T,CylinderL2 P ℝ)) |
| 40 | (hp : ContDiff ℝ ∞ (fun a : LiftTangent => pathTranslate P a p)) |
| 41 | (he : ∀ (t : Icc (0 : ℝ) T) x θ, |
| 42 | raw (t,(x,θ)) = scalarPointField P p hp t (x,(θ : AddCircle P))) |
| 43 | |
| 44 | /-- A norm-one scalar embedding retains the actual continuous L² path. -/ |
| 45 | def scalarEmbeddingField : Field P T (fun z => scalarEmbed (raw z)) := |
| 46 | Field.ofLifted (pathMap P scalarEmbed p) (pathMap_orbit_contDiff P scalarEmbed p hp) |
| 47 | (fun t x => scalarEmbed (scalarPointField P p hp t x)) |
| 48 | (fun t => scalarEmbed.continuous.comp (scalarPointField_continuous P p hp t)) |
| 49 | (fun t => by |
| 50 | filter_upwards [map_ae P scalarEmbed (p t),scalarPointField_ae P p hp t] with x hm hs |
| 51 | exact hm.trans (congrArg scalarEmbed hs)) |
| 52 | (fun t x θ => congrArg scalarEmbed (he t x θ)) |
| 53 | |
| 54 | include he in |
| 55 | theorem scalarRaw_smooth (t : Icc (0 : ℝ) T) : |
| 56 | ContDiff ℝ ∞ (fun y : LiftTangent => raw (t,y)) := by |
| 57 | have h : (fun y : LiftTangent => raw (t,y)) = |
| 58 | fun y : LiftTangent => scalarPointField P p hp t (y.1,(y.2 : AddCircle P)) := |
| 59 | funext (fun y => he t y.1 y.2) |
| 60 | rw [h] |
| 61 | exact coverField_contDiff P _ (scalarPointField_smooth P p hp t) |
| 62 | |
| 63 | /-- This witness is the spatial gradient used by `pressureJet`; it needs no time derivative. -/ |
| 64 | def scalarGradientField : Field P T (pressureGradient raw) := |
| 65 | (Field.finsetSum (univ : Finset (Fin 3)) |
| 66 | (fun i z => gradientComponent i |
| 67 | (fderiv ℝ (fun y => scalarEmbed (raw (z.1,y))) z.2 (standardDirection i.succ))) |
| 68 | (fun i => ((scalarEmbeddingField raw p hp he).derivative i.succ).map (gradientComponent i))).congr |
| 69 | (fun t x θ => by |
| 70 | have hd : fderiv ℝ (fun y => scalarEmbed (raw (t,y))) (x,θ) = |
| 71 | scalarEmbed.comp (fderiv ℝ (fun y => raw (t,y)) (x,θ)) := |
| 72 | (scalarEmbed.hasFDerivAt.comp (x,θ) |
| 73 | (((scalarRaw_smooth raw p hp he t).differentiable (by simp)) (x,θ)).hasFDerivAt).fderiv |
| 74 | have hpressure : (pressureJet raw (t,(x,θ))).2.comp spatialInjection = |
| 75 | (fderiv ℝ (fun y => raw (t,y)) (x,θ)).comp (inl ℝ Space ℝ) := by |
| 76 | apply ContinuousLinearMap.ext |
| 77 | intro v |
| 78 | simp only [comp_apply,pressureJet_space,inl_apply] |
| 79 | change (toDual ℝ Space).symm ((pressureJet raw (t,(x,θ))).2.comp spatialInjection) = _ |
| 80 | rw [hpressure,gradient_eq_sum] |
| 81 | simp only [Finset.sum_apply,hd,gradientComponent,comp_apply, |
| 82 | project_embed,toSpanSingleton_apply]) |
| 83 | |
| 84 | end EulerPacketCylinderField |