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.PacketCoefficientTower |
| 2 | import Euler.PacketMatrixCoefficientAlgebra |
| 3 | import Euler.TransversePacketForcing |
| 4 | |
| 5 | /-! The correction coefficients constructed from the prescribed deformation. |
| 6 | The order-zero terms have the positive sign of the transformed equation; |
| 7 | the correction source subsequently applies the negative pressure projection. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerPacketCorrectionCoefficients |
| 12 | |
| 13 | open Set ContinuousLinearMap EulerSmoothLimit EulerPacketPointJets |
| 14 | EulerPacketCylinderField EulerMeanCoefficients EulerLiftedGradientSpace |
| 15 | EulerAllOrderCorrectionData |
| 16 | |
| 17 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 18 | (D : EulerTransversePacketProvider.Data U) |
| 19 | |
| 20 | def rawFrame (z : Domain) : Space →L[ℝ] Space := |
| 21 | D.F.field (D.clamp z.1) z.2.1 |
| 22 | |
| 23 | def rawFrameTime (z : Domain) : Space →L[ℝ] Space := |
| 24 | D.F₁.field (D.clamp z.1) z.2.1 |
| 25 | |
| 26 | def rawInverse (z : Domain) : Space →L[ℝ] Space := |
| 27 | D.FInv.field (D.clamp z.1) z.2.1 |
| 28 | |
| 29 | def frameCoefficient : MatrixCoefficient D.T (rawFrame D) where |
| 30 | path := D.F.field |
| 31 | orbit := D.F.translation_contDiff |
| 32 | raw_eq t x θ := by simp only [rawFrame,EulerTransversePacketProvider.Data.clamp_coe] |
| 33 | |
| 34 | def frameTimeCoefficient : MatrixCoefficient D.T (rawFrameTime D) where |
| 35 | path := D.F₁.field |
| 36 | orbit := D.F₁.translation_contDiff |
| 37 | raw_eq t x θ := by simp only [rawFrameTime,EulerTransversePacketProvider.Data.clamp_coe] |
| 38 | |
| 39 | def inverseCoefficient : MatrixCoefficient D.T (rawInverse D) where |
| 40 | path := D.FInv.field |
| 41 | orbit := D.FInv.translation_contDiff |
| 42 | raw_eq t x θ := by simp only [rawInverse,EulerTransversePacketProvider.Data.clamp_coe] |
| 43 | |
| 44 | def rawMetric (z : Domain) : Space →L[ℝ] Space := |
| 45 | (rawInverse D z).comp (rawInverse D z).adjoint |
| 46 | |
| 47 | def rawInverseMetric (z : Domain) : Space →L[ℝ] Space := |
| 48 | (rawFrame D z).adjoint.comp (rawFrame D z) |
| 49 | |
| 50 | def rawLinear (z : Domain) : Space →L[ℝ] Space := |
| 51 | (2 : ℝ) • (rawInverse D z).comp (rawFrameTime D z) |
| 52 | |
| 53 | def rawQuadratic (κ : ℝ) (i : Fin 3) (z : Domain) : Space →L[ℝ] Space := |
| 54 | κ • (rawInverse D z).comp |
| 55 | (fderiv ℝ (fun x => rawFrame D (z.1,(x,z.2.2))) z.2.1 |
| 56 | (EuclideanSpace.single i 1)) |
| 57 | |
| 58 | def metricCoefficient : MatrixCoefficient D.T (rawMetric D) := |
| 59 | (inverseCoefficient D).comp (inverseCoefficient D).adjoint |
| 60 | |
| 61 | def inverseMetricCoefficient : MatrixCoefficient D.T (rawInverseMetric D) := |
| 62 | (frameCoefficient D).adjoint.comp (frameCoefficient D) |
| 63 | |
| 64 | def linearCoefficient : MatrixCoefficient D.T (rawLinear D) := |
| 65 | ((inverseCoefficient D).comp (frameTimeCoefficient D)).smul 2 |
| 66 | |
| 67 | def quadraticCoefficient (κ : ℝ) (i : Fin 3) : MatrixCoefficient D.T (rawQuadratic D κ i) := |
| 68 | ((inverseCoefficient D).comp |
| 69 | ((frameCoefficient D).spatialDerivative (EuclideanSpace.single i 1))).smul κ |
| 70 | |
| 71 | @[simp] theorem metricCoefficient_apply (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 72 | (metricCoefficient D).path t x = |
| 73 | (D.FInv.field t x).comp (D.FInv.field t x).adjoint := rfl |
| 74 | |
| 75 | @[simp] theorem inverseMetricCoefficient_apply (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 76 | (inverseMetricCoefficient D).path t x = |
| 77 | (D.F.field t x).adjoint.comp (D.F.field t x) := rfl |
| 78 | |
| 79 | @[simp] theorem linearCoefficient_apply (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 80 | (linearCoefficient D).path t x = |
| 81 | (2 : ℝ) • (D.FInv.field t x).comp (D.F₁.field t x) := rfl |
| 82 | |
| 83 | theorem quadraticCoefficient_apply (κ : ℝ) (i : Fin 3) |
| 84 | (t : Icc (0 : ℝ) D.T) (x : Space) : |
| 85 | (quadraticCoefficient D κ i).path t x = |
| 86 | κ • (D.FInv.field t x).comp |
| 87 | (fderiv ℝ (D.F.field t : Space → Space →L[ℝ] Space) x |
| 88 | (EuclideanSpace.single i 1)) := by |
| 89 | change κ • (D.FInv.field t x).comp |
| 90 | (((frameCoefficient D).spatialDerivative (EuclideanSpace.single i 1)).path t x) = _ |
| 91 | rw [MatrixCoefficient.spatialDerivative_path_apply] |
| 92 | rfl |
| 93 | |
| 94 | variable (P : ℝ) [Fact (0 < P)] |
| 95 | |
| 96 | def metricTower : CoefficientTower P D.T := |
| 97 | (metricCoefficient D).toCoefficientTower P |
| 98 | |
| 99 | def inverseMetricTower : CoefficientTower P D.T := |
| 100 | (inverseMetricCoefficient D).toCoefficientTower P |
| 101 | |
| 102 | def linearTower : CoefficientTower P D.T := |
| 103 | (linearCoefficient D).toCoefficientTower P |
| 104 | |
| 105 | def quadraticTower (κ : ℝ) (i : Fin 3) : CoefficientTower P D.T := |
| 106 | (quadraticCoefficient D κ i).toCoefficientTower P |
| 107 | |
| 108 | @[simp] theorem metricTower_apply (t : Icc (0 : ℝ) D.T) (x : LiftDomain P) : |
| 109 | ((metricTower D P).coefficient t).coefficient x = |
| 110 | (D.FInv.field t x.1).comp (D.FInv.field t x.1).adjoint := rfl |
| 111 | |
| 112 | @[simp] theorem inverseMetricTower_apply (t : Icc (0 : ℝ) D.T) (x : LiftDomain P) : |
| 113 | ((inverseMetricTower D P).coefficient t).coefficient x = |
| 114 | (D.F.field t x.1).adjoint.comp (D.F.field t x.1) := rfl |
| 115 | |
| 116 | @[simp] theorem linearTower_apply (t : Icc (0 : ℝ) D.T) (x : LiftDomain P) : |
| 117 | ((linearTower D P).coefficient t).coefficient x = |
| 118 | (2 : ℝ) • (D.FInv.field t x.1).comp (D.F₁.field t x.1) := rfl |
| 119 | |
| 120 | theorem quadraticTower_apply (κ : ℝ) (i : Fin 3) |
| 121 | (t : Icc (0 : ℝ) D.T) (x : LiftDomain P) : |
| 122 | ((quadraticTower D P κ i).coefficient t).coefficient x = |
| 123 | κ • (D.FInv.field t x.1).comp |
| 124 | (fderiv ℝ (D.F.field t : Space → Space →L[ℝ] Space) x.1 |
| 125 | (EuclideanSpace.single i 1)) := |
| 126 | quadraticCoefficient_apply D κ i t x.1 |
| 127 | |
| 128 | theorem metricTower_continuous : |
| 129 | Continuous (fun t => ((metricTower D P).coefficient t).operator) := |
| 130 | MatrixCoefficient.toCoefficientTower_operator_continuous P (metricCoefficient D) |
| 131 | |
| 132 | theorem inverseMetricTower_continuous : |
| 133 | Continuous (fun t => ((inverseMetricTower D P).coefficient t).operator) := |
| 134 | MatrixCoefficient.toCoefficientTower_operator_continuous P (inverseMetricCoefficient D) |
| 135 | |
| 136 | end EulerPacketCorrectionCoefficients |