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.PacketPotentialMultiplier |
| 2 | import Euler.PacketPiolaPair |
| 3 | import Euler.AnglePrimitiveSpatialRegularity |
| 4 | |
| 5 | /-! Spatial smoothness of the source vector potential, derived from its literal integral. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerPacketPiola |
| 10 | |
| 11 | open EulerSmoothLimit EulerPacketCrossProduct EulerPacketAngularPotential |
| 12 | EulerAngleMeanZeroPrimitive EulerLiftedGradientSpace EulerMetricTransport |
| 13 | EulerTransportDerivatives EulerMeanBoundary Set MeasureTheory InnerProductSpace |
| 14 | open scoped ContDiff |
| 15 | |
| 16 | def curlLinear : (Space →L[ℝ] Space) →ₗ[ℝ] Space where |
| 17 | toFun := curlMatrix |
| 18 | map_add' := curlMatrix_add |
| 19 | map_smul' := curlMatrix_smul |
| 20 | |
| 21 | def curlOperator : (Space →L[ℝ] Space) →L[ℝ] Space := curlLinear.toContinuousLinearMap |
| 22 | |
| 23 | @[simp] theorem curlOperator_apply (A : Space →L[ℝ] Space) : curlOperator A = curlMatrix A := rfl |
| 24 | |
| 25 | theorem coveringPotential_contDiff (P : ℝ) (hP : 0 ≤ P) |
| 26 | (m : Space → Space) (A : LiftTangent → Space) |
| 27 | (hm : ContDiff ℝ ∞ m) (hnz : ∀ y, m y ≠ 0) (hA : ContDiff ℝ ∞ A) : |
| 28 | ContDiff ℝ ∞ (coveringPotential P m A) := by |
| 29 | exact primitive_joint_contDiff P hP |
| 30 | (fun z : LiftTangent => potentialMultiplier (m z.1) (A z)) |
| 31 | (((potentialMultiplier_contDiff m hm hnz).comp contDiff_fst).clm_apply hA) |
| 32 | |
| 33 | /-- The curl is the actual first spatial derivative of the constructed potential. -/ |
| 34 | theorem coveringSlowCurl_contDiff (P : ℝ) (hP : 0 ≤ P) |
| 35 | (m : Space → Space) (A : LiftTangent → Space) |
| 36 | (G : Space → Space →L[ℝ] Space) |
| 37 | (hm : ContDiff ℝ ∞ m) (hnz : ∀ y, m y ≠ 0) (hA : ContDiff ℝ ∞ A) |
| 38 | (hG : ContDiff ℝ ∞ G) : |
| 39 | ContDiff ℝ ∞ (fun z : LiftTangent => coveringSlowCurl (G z.1) (coveringPotential P m A) z) := by |
| 40 | have hQ := coveringPotential_contDiff P hP m A hm hnz hA |
| 41 | exact curlOperator.contDiff.comp |
| 42 | ((contDiff_infty_iff_fderiv.mp hQ).2.clm_comp |
| 43 | (contDiff_const.clm_comp (hG.comp contDiff_fst))) |
| 44 | |
| 45 | /-- The Piola identity now needs regularity only for the input fields, not for Q. -/ |
| 46 | theorem smooth_coveringPotential_pair_piola (P κ : ℝ) (hP : 0 ≤ P) |
| 47 | (m₀ : Space) (Ξ : Space → Space) (A : LiftTangent → Space) |
| 48 | (hΞ : ContDiff ℝ 2 Ξ) (F : Space → Space ≃L[ℝ] Space) |
| 49 | (hNormal : ContDiff ℝ ∞ (fun y => (F y).symm.toContinuousLinearMap.adjoint m₀)) |
| 50 | (hm : ∀ y, (F y).symm.toContinuousLinearMap.adjoint m₀ ≠ 0) |
| 51 | (hA : ContDiff ℝ ∞ A) (z : LiftTangent) |
| 52 | (hF : fderiv ℝ Ξ z.1 = (F z.1).toContinuousLinearMap) |
| 53 | (hdet : (operatorMatrix (F z.1).toContinuousLinearMap).det = 1) |
| 54 | (htan : ⟪(F z.1).symm.toContinuousLinearMap.adjoint m₀,A z⟫_ℝ=0) : |
| 55 | (F z.1).symm (A z+κ • coveringSlowCurl (F z.1).symm.toContinuousLinearMap |
| 56 | (coveringPotential P (fun y => (F y).symm.toContinuousLinearMap.adjoint m₀) A) z) = |
| 57 | coveringCurl κ m₀ (coveringPullbackCovector Ξ |
| 58 | (coveringPotential P (fun y => (F y).symm.toContinuousLinearMap.adjoint m₀) A)) z := by |
| 59 | exact coveringPotential_pair_piola P κ m₀ Ξ A hΞ F z hF hdet (hm z.1) htan |
| 60 | (hA.continuous.comp (continuous_const.prodMk continuous_id)) |
| 61 | ((coveringPotential_contDiff P hP _ A hNormal hm hA).differentiable (by simp) z) |
| 62 | |
| 63 | end EulerPacketPiola |