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.PacketCorrectionSourceData |
| 3 | import Euler.CorrectionResidualCancellation |
| 4 | import Euler.LiftedTransportComponents |
| 5 | |
| 6 | /-! The actual coordinate residual identity in every finite Sobolev space. |
| 7 | This discharges the approximation equation, using the source coefficients |
| 8 | and the genuine packet Fields rather than an assumed residual equation. -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerPacketCoordinates |
| 13 | |
| 14 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerSmoothLimit |
| 15 | EulerPacketPointJets EulerPacketProfileRecursion EulerPacketCylinderField |
| 16 | EulerPacketCorrectionCoefficients EulerTransversePacketProvider |
| 17 | EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev |
| 18 | EulerCylinderSmoothOrbit EulerLpCylinderRectangular EulerSobolevCoefficientPressure |
| 19 | EulerSobolevTransport EulerCorrectionOperators EulerCorrectionResidualCancellation |
| 20 | EulerVolterraConvolution EulerMetricTransport EulerLiftedWeakDerivative EulerLpCylinderTranslation |
| 21 | open scoped ContDiff |
| 22 | |
| 23 | private local instance : NormedAddCommGroup Space := inferInstance |
| 24 | private local instance : NormedSpace ℝ Space := inferInstance |
| 25 | |
| 26 | variable {P : ℝ} [Fact (0 < P)] |
| 27 | |
| 28 | private theorem coefficient_value_ae {T : ℝ} {a : Domain → Space →L[ℝ] Space} |
| 29 | (A : MatrixCoefficient T a) (q : ℕ) (t : Icc (0 : ℝ) T) |
| 30 | (u : SobolevSpace P q) (f : LiftDomain P → Space) |
| 31 | (hu : (value P u : LiftDomain P → Space) =ᵐ[liftMeasure P] f) : |
| 32 | (value P (coefficientSobolevOperator P ((A.toCoefficientTower P).jet q t) u) : |
| 33 | LiftDomain P → Space) =ᵐ[liftMeasure P] fun x => A.path t x.1 (f x) := by |
| 34 | rw [MatrixCoefficient.toCoefficientTower_sobolev_value P A q t u] |
| 35 | filter_upwards [EulerLpOperatorField.full_ae (liftMeasure P) (fieldLift P (A.path t)) |
| 36 | (value P u),hu] with x hA hf |
| 37 | exact hA.trans (congrArg (A.path t x.1) hf) |
| 38 | |
| 39 | private theorem transport_value_ae {T : ℝ} {z : VectorField} |
| 40 | (Z : Field P T z) (κ : ℝ) (m : Space) (hκ : |κ| ≤ 1) (hm : ‖m‖ ≤ 1) |
| 41 | (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : |
| 42 | (value P (transportBilinear P hq (velocityComponents κ m) |
| 43 | (velocityComponents_norm κ m hκ hm) |
| 44 | (Z.toFieldTower.realization (q+1) t) (Z.toFieldTower.realization (q+1) t)) : |
| 45 | LiftDomain P → Space) =ᵐ[liftMeasure P] fun x => |
| 46 | fieldFDeriv P (pointField P Z.path Z.orbit t) x |
| 47 | (transportDirection κ m (pointField P Z.path Z.orbit t x)) := by |
| 48 | have h := transportBilinear_ae P hq (velocityComponents κ m) |
| 49 | (velocityComponents_norm κ m hκ hm) _ _ _ _ |
| 50 | (Z.toFieldTower_value_ae (q+1) t) (Z.toFieldTower_value_ae (q+1) t) |
| 51 | (pointField_smooth P Z.path Z.orbit t) |
| 52 | filter_upwards [h] with x hx |
| 53 | rw [hx,← velocityComponents_direction κ m] |
| 54 | change (∑ i : Fin 4, velocityComponents κ m i (pointField P Z.path Z.orbit t x) • |
| 55 | fieldFDeriv P (pointField P Z.path Z.orbit t) x (standardDirection i)) = _ |
| 56 | rw [map_sum] |
| 57 | simp only [map_smul] |
| 58 | |
| 59 | variable {U : Type*} [NormedAddCommGroup U] [InnerProductSpace ℝ U] |
| 60 | (D : Data U) |
| 61 | |
| 62 | def normalizedResidual (k : ℝ) (W : VectorField) (p : ScalarField) (z : Domain) : Space := |
| 63 | k • rawInverse D z (slicedMomentumResidual (Icc (0 : ℝ) D.T) k⁻¹ |
| 64 | (rawInverse D z) (D.strain z) (D.normalField z) W p z) |
| 65 | |
| 66 | private theorem nonlinearity_value_ae (κ : ℝ) (hκ : |κ| ≤ 1) |
| 67 | {z r : VectorField} (Z : Field P D.T z) (R : Field P D.T r) |
| 68 | (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) D.T) : |
| 69 | (value P (nonlinearity P ((correctionDataOfFields D P κ hκ Z R).atOrder P q) hq t |
| 70 | (Z.toFieldTower.realization (q+1) t)) : LiftDomain P → Space) =ᵐ[liftMeasure P] |
| 71 | fun x => (linearCoefficient D).path t x.1 (pointField P Z.path Z.orbit t x) + |
| 72 | fieldFDeriv P (pointField P Z.path Z.orbit t) x |
| 73 | (transportDirection κ D.m₀ (pointField P Z.path Z.orbit t x)) + |
| 74 | ∑ i : Fin 3, (pointField P Z.path Z.orbit t x) i • |
| 75 | (quadraticCoefficient D κ i).path t x.1 (pointField P Z.path Z.orbit t x) := by |
| 76 | let u := Z.toFieldTower.realization (q+1) t |
| 77 | let a := coefficientSobolevOperator P ((linearTower D P).jet q t) (truncateOperator P q u) |
| 78 | let b := transportBilinear P hq (velocityComponents κ D.m₀) |
| 79 | (velocityComponents_norm κ D.m₀ hκ D.m₀_unit.le) u u |
| 80 | let c := algebraicBilinear P hq |
| 81 | (fun i => coefficientSobolevOperator P ((quadraticTower D P κ i).jet q t)) u u |
| 82 | have ha := coefficient_value_ae (linearCoefficient D) q t (truncateOperator P q u) |
| 83 | (pointField P Z.path Z.orbit t) (by |
| 84 | simpa only [value_truncateOperator] using Z.toFieldTower_value_ae (q+1) t) |
| 85 | have hb := transport_value_ae Z κ D.m₀ hκ D.m₀_unit.le q hq t |
| 86 | have hc := algebraicBilinear_ae P hq (fun i => (quadraticTower D P κ i).coefficient t) |
| 87 | (fun i => (quadraticTower D P κ i).jet q t) u u _ _ |
| 88 | (Z.toFieldTower_value_ae (q+1) t) (Z.toFieldTower_value_ae (q+1) t) |
| 89 | change ((valueOperator P q) (a+(b+c)) : LiftDomain P → Space) =ᵐ[liftMeasure P] _ |
| 90 | rw [map_add,map_add] |
| 91 | filter_upwards [Lp.coeFn_add (value P a) (value P b+value P c), |
| 92 | Lp.coeFn_add (value P b) (value P c),ha,hb,hc] with x hx hy ha hb hc |
| 93 | change (value P a + (value P b + value P c)) x = _ |
| 94 | simp only [Pi.add_apply] at hx hy |
| 95 | change (value P a) x = _ at ha |
| 96 | change (value P b) x = _ at hb |
| 97 | change (value P c) x = _ at hc |
| 98 | rw [hx,hy,ha,hb,hc] |
| 99 | simp only [add_assoc,quadraticTower,MatrixCoefficient.toCoefficientTower_coefficient] |
| 100 | |
| 101 | section Equation |
| 102 | |
| 103 | variable (k : ℝ) (hk : k ≠ 0) (hκ : |k⁻¹| ≤ 1) |
| 104 | {W Wt : VectorField} (G : Field P D.T W) (Gt : Field P D.T Wt) |
| 105 | (hW : TimeDerivative D.T_pos.le G Gt) (p : ScalarField) |
| 106 | (R : Field P D.T (normalizedResidual D k W p)) |
| 107 | (Pa : Field P D.T (coordinatePressure D k p)) |
| 108 | |
| 109 | /-- The data used for cancellation has the literal normalized packet field |
| 110 | and residual. Its coefficients are the original deformation coefficients. -/ |
| 111 | def coordinateData : EulerAllOrderCorrectionData.Data P D.T := |
| 112 | correctionDataOfFields D P k⁻¹ hκ (coordinateField D G k) R |
| 113 | |
| 114 | include hk hW in |
| 115 | theorem sobolev_residual_identity (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) D.T) : |
| 116 | R.toFieldTower.realization q t = |
| 117 | (coordinateTimeField D G Gt k).toFieldTower.realization q t + |
| 118 | nonlinearity P ((coordinateData D k hκ G p R).atOrder P q) hq t |
| 119 | ((coordinateField D G k).toFieldTower.realization (q+1) t) + |
| 120 | coefficientSobolevOperator P ((metricTower D P).jet q t) |
| 121 | (Pa.toFieldTower.realization q t) := by |
| 122 | let Z := coordinateField D G k |
| 123 | let Zt := coordinateTimeField D G Gt k |
| 124 | let A := coordinateData D k hκ G p R |
| 125 | let N := nonlinearity P (A.atOrder P q) hq t (Z.toFieldTower.realization (q+1) t) |
| 126 | let Q := coefficientSobolevOperator P ((metricTower D P).jet q t) |
| 127 | (Pa.toFieldTower.realization q t) |
| 128 | have hn := nonlinearity_value_ae D k⁻¹ hκ Z R q hq t |
| 129 | have hp := coefficient_value_ae (metricCoefficient D) q t |
| 130 | (Pa.toFieldTower.realization q t) (pointField P Pa.path Pa.orbit t) |
| 131 | (Pa.toFieldTower_value_ae q t) |
| 132 | apply value_injective P |
| 133 | change value P (R.toFieldTower.realization q t) = |
| 134 | (valueOperator P q) (Zt.toFieldTower.realization q t+N+Q) |
| 135 | rw [map_add,map_add] |
| 136 | apply Lp.ext |
| 137 | filter_upwards [R.toFieldTower_value_ae q t,Zt.toFieldTower_value_ae q t,hn,hp, |
| 138 | Lp.coeFn_add (value P (Zt.toFieldTower.realization q t)) (value P N), |
| 139 | Lp.coeFn_add (value P (Zt.toFieldTower.realization q t)+value P N) (value P Q)] |
| 140 | with x hr ht hn hp hs hs' |
| 141 | change (value P (R.toFieldTower.realization q t)) x = |
| 142 | (value P (Zt.toFieldTower.realization q t)+value P N+value P Q) x |
| 143 | simp only [Pi.add_apply] at hs hs' |
| 144 | change (value P N) x = _ at hn |
| 145 | change (value P Q) x = _ at hp |
| 146 | rw [hr,hs',hs,ht,hn,hp] |
| 147 | obtain ⟨θ,hθ⟩ := QuotientAddGroup.mk_surjective x.2 |
| 148 | have he := normalized_residual D G Gt k hk hW p t x.1 θ |
| 149 | change normalizedResidual D k W p (t,(x.1,θ)) = _ at he |
| 150 | rw [R.raw_eq t x.1 θ,Zt.raw_eq t x.1 θ] at he |
| 151 | simp only [transport,algebraic] at he |
| 152 | rw [Z.raw_fderiv t x.1 θ,(linearCoefficient D).raw_eq t x.1 θ, |
| 153 | (metricCoefficient D).raw_eq t x.1 θ,Pa.raw_eq t x.1 θ] at he |
| 154 | simp only [Z.raw_eq t x.1 θ] at he |
| 155 | have hquad (i : Fin 3) : rawQuadratic D k⁻¹ i (t,(x.1,θ)) = |
| 156 | (quadraticCoefficient D k⁻¹ i).path t x.1 := |
| 157 | (quadraticCoefficient D k⁻¹ i).raw_eq t x.1 θ |
| 158 | simp only [hquad,hθ] at he |
| 159 | simpa only [transportDirection,add_assoc] using he |
| 160 | |
| 161 | include hk hW in |
| 162 | /-- The approximation's actual all-order derivative is its literal |
| 163 | residual minus the full nonlinearity and its own actual pressure. -/ |
| 164 | theorem approximation_hasDerivWithinAt (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) D.T) : |
| 165 | HasDerivWithinAt |
| 166 | (extendPath D.T D.T_pos.le ((coordinateData D k hκ G p R).approximation.realization q)) |
| 167 | ((coordinateData D k hκ G p R).residual.realization q t - |
| 168 | nonlinearity P ((coordinateData D k hκ G p R).atOrder P q) hq t |
| 169 | ((coordinateData D k hκ G p R).approximation.realization (q+1) t) - |
| 170 | coefficientSobolevOperator P ((coordinateData D k hκ G p R).metric.jet q t) |
| 171 | (Pa.toFieldTower.realization q t)) (Icc (0 : ℝ) D.T) t := by |
| 172 | have hd := (coordinateField D G k).toFieldTower_hasDerivWithinAt |
| 173 | (coordinateTimeField D G Gt k) D.T_pos.le (coordinateField_time D G Gt k hW) q t |
| 174 | apply hd.congr_deriv |
| 175 | change (coordinateTimeField D G Gt k).toFieldTower.realization q t = |
| 176 | R.toFieldTower.realization q t - |
| 177 | nonlinearity P ((coordinateData D k hκ G p R).atOrder P q) hq t |
| 178 | ((coordinateField D G k).toFieldTower.realization (q+1) t) - |
| 179 | coefficientSobolevOperator P ((metricTower D P).jet q t) (Pa.toFieldTower.realization q t) |
| 180 | rw [sobolev_residual_identity D k hk hκ G Gt hW p R Pa q hq t] |
| 181 | abel |
| 182 | |
| 183 | include hk hW in |
| 184 | theorem approximation_hasDerivAt (q : ℕ) (hq : 6 ≤ q) (t : ℝ) (ht : t ∈ Ioo 0 D.T) : |
| 185 | HasDerivAt |
| 186 | (extendPath D.T D.T_pos.le ((coordinateData D k hκ G p R).approximation.realization q)) |
| 187 | ((coordinateData D k hκ G p R).residual.realization q ⟨t,ht.1.le,ht.2.le⟩ - |
| 188 | nonlinearity P ((coordinateData D k hκ G p R).atOrder P q) hq ⟨t,ht.1.le,ht.2.le⟩ |
| 189 | ((coordinateData D k hκ G p R).approximation.realization (q+1) ⟨t,ht.1.le,ht.2.le⟩) - |
| 190 | coefficientSobolevOperator P ((coordinateData D k hκ G p R).metric.jet q ⟨t,ht.1.le,ht.2.le⟩) |
| 191 | (Pa.toFieldTower.realization q ⟨t,ht.1.le,ht.2.le⟩)) t := |
| 192 | (approximation_hasDerivWithinAt D k hk hκ G Gt hW p R Pa q hq |
| 193 | ⟨t,ht.1.le,ht.2.le⟩).hasDerivAt (Icc_mem_nhds ht.1 ht.2) |
| 194 | |
| 195 | end Equation |
| 196 | |
| 197 | end EulerPacketCoordinates |