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.PacketCorrectionSourceData |
| 2 | import Euler.TransversePacketParity |
| 3 | import Euler.CorrectionAssemblyParity |
| 4 | import Euler.PacketCylinderJetParity |
| 5 | |
| 6 | /-! The source deformation symmetries imply the literal parity of the |
| 7 | correction coefficients, including the odd differentiated quadratic term. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerPacketCorrectionCoefficients |
| 12 | |
| 13 | open Set ContinuousLinearMap EulerSmoothLimit EulerLiftedGradientSpace |
| 14 | EulerPacketCylinderField EulerPacketProfileRecursion |
| 15 | open scoped ContDiff |
| 16 | |
| 17 | theorem fderiv_neg_of_even {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 18 | [NormedAddCommGroup F] [NormedSpace ℝ F] (f : E → F) (hf : ContDiff ℝ ∞ f) |
| 19 | (he : ∀ x, f (-x) = f x) (x : E) : fderiv ℝ f (-x) = -fderiv ℝ f x := by |
| 20 | have hfun : (fun y => f (-y)) = f := funext he |
| 21 | have hd := ((hf.differentiable (by simp) (-x)).hasFDerivAt).comp x |
| 22 | ((hasFDerivAt_id (𝕜 := ℝ) x).neg) |
| 23 | have hh : fderiv ℝ f x = -fderiv ℝ f (-x) := by |
| 24 | simpa only [Function.comp_def,hfun,comp_neg,comp_id] using hd.fderiv |
| 25 | simpa only [neg_neg] using (congrArg Neg.neg hh).symm |
| 26 | |
| 27 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 28 | (D : EulerTransversePacketProvider.Data U) |
| 29 | (hF : ∀ t x, D.F.field t (-x) = D.F.field t x) |
| 30 | (hM : ∀ t x, D.M.field t (-x) = D.M.field t x) |
| 31 | |
| 32 | include hF hM in |
| 33 | theorem frameTime_even (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 34 | D.F₁.field t (-x) = D.F₁.field t x := by |
| 35 | apply ContinuousLinearMap.ext |
| 36 | intro v |
| 37 | rw [D.strain_equation,D.strain_equation,hM,hF] |
| 38 | |
| 39 | variable (P : ℝ) [Fact (0 < P)] |
| 40 | |
| 41 | include hF in |
| 42 | theorem metricTower_even (t : Icc (0 : ℝ) D.T) (x : LiftDomain P) : |
| 43 | ((metricTower D P).coefficient t).coefficient (-x) = |
| 44 | ((metricTower D P).coefficient t).coefficient x := by |
| 45 | simp only [metricTower_apply,Prod.fst_neg,D.inverse_even hF] |
| 46 | |
| 47 | include hF hM in |
| 48 | theorem linearTower_even (t : Icc (0 : ℝ) D.T) (x : LiftDomain P) : |
| 49 | ((linearTower D P).coefficient t).coefficient (-x) = |
| 50 | ((linearTower D P).coefficient t).coefficient x := by |
| 51 | simp only [linearTower_apply,Prod.fst_neg,D.inverse_even hF,frameTime_even D hF hM] |
| 52 | |
| 53 | include hF in |
| 54 | theorem quadraticTower_odd (κ : ℝ) (t : Icc (0 : ℝ) D.T) (i : Fin 3) (x : LiftDomain P) : |
| 55 | ((quadraticTower D P κ i).coefficient t).coefficient (-x) = |
| 56 | -((quadraticTower D P κ i).coefficient t).coefficient x := by |
| 57 | rw [quadraticTower_apply,quadraticTower_apply] |
| 58 | simp only [Prod.fst_neg,D.inverse_even hF, |
| 59 | fderiv_neg_of_even (D.F.field t : Space → Space →L[ℝ] Space) (D.F.smooth t) (hF t), |
| 60 | neg_apply,comp_neg,smul_neg] |
| 61 | |
| 62 | include hF hM in |
| 63 | theorem correctionParityData (κ : ℝ) (hκ : |κ| ≤ 1) {z r : VectorField} |
| 64 | (Z : Field P D.T z) (G : Field P D.T r) |
| 65 | (hZ : JointOdd D.T z) (hG : JointOdd D.T r) : |
| 66 | EulerCorrectionAssembly.ParityData P (correctionDataOfFields D P κ hκ Z G) where |
| 67 | metric := metricTower_even D hF P |
| 68 | linear := linearTower_even D hF hM P |
| 69 | quadratic := quadraticTower_odd D hF P κ |
| 70 | approximation t := by |
| 71 | have h := Z.reflection_neg_of_raw_odd t (hZ t) |
| 72 | change -EulerCylinderFieldReflection.reflection P (Z.path t) = Z.path t |
| 73 | rw [h,neg_neg] |
| 74 | residual t := by |
| 75 | have h := G.reflection_neg_of_raw_odd t (hG t) |
| 76 | change -EulerCylinderFieldReflection.reflection P (G.path t) = G.path t |
| 77 | rw [h,neg_neg] |
| 78 | |
| 79 | end EulerPacketCorrectionCoefficients |