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.PacketInitializedExactLifted |
| 2 | import Euler.FieldTowerRepresentative |
| 3 | import Euler.SobolevPointMultiplication |
| 4 | import Euler.LiftedTransportComponents |
| 5 | |
| 6 | /-! The exact Sobolev equation is the literal pointwise normalized equation |
| 7 | for the canonical smooth representatives. No pointwise PDE is assumed. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerAllOrderDriftCorrection |
| 12 | |
| 13 | open Set MeasureTheory ContinuousLinearMap InnerProductSpace EulerLiftedGradientSpace |
| 14 | EulerAllOrderCorrectionData EulerCylinderSobolevSpace EulerCylinderSobolev |
| 15 | EulerSobolevPointEvaluation EulerSobolevPointMultiplication EulerSobolevCoefficientPressure |
| 16 | EulerCorrectionOperators EulerCorrectionResidualCancellation EulerSobolevTransport |
| 17 | EulerMetricTransport EulerTransportDerivatives EulerLiftedWeakDerivative |
| 18 | EulerSpatialSobolevInverse EulerVectorCylinder EulerVolterraConvolution |
| 19 | open scoped ContDiff |
| 20 | |
| 21 | variable (P : ℝ) [Fact (0 < P)] {T : ℝ} |
| 22 | |
| 23 | private theorem coefficient_value_ae (C : SmoothCoefficient P) |
| 24 | {q : ℕ} (K : CoefficientJet P standardDirection q C) |
| 25 | (u : SobolevSpace P q) (f : LiftDomain P → Vector3) |
| 26 | (hu : (value P u : LiftDomain P → Vector3) =ᵐ[liftMeasure P] f) : |
| 27 | (value P (coefficientSobolevOperator P K u) : LiftDomain P → Vector3) =ᵐ[liftMeasure P] |
| 28 | fun x => C.coefficient x (f x) := by |
| 29 | rw [coefficientSobolevOperator_value] |
| 30 | filter_upwards [C.operator_ae (value P u),hu] with x hc hf |
| 31 | exact hc.trans (congrArg (C.coefficient x) hf) |
| 32 | |
| 33 | def pointNonlinearity (A : Data P T) (Z : FieldTower P T) |
| 34 | (t : Icc (0 : ℝ) T) (x : LiftDomain P) : Vector3 := |
| 35 | (A.linear.coefficient t).coefficient x (Z.pointField t x) + |
| 36 | fieldFDeriv P (Z.pointField t) x (transportDirection A.κ A.direction (Z.pointField t x)) + |
| 37 | ∑ i : Fin 3, (Z.pointField t x) i • |
| 38 | ((A.quadratic i).coefficient t).coefficient x (Z.pointField t x) |
| 39 | |
| 40 | theorem pointNonlinearity_continuous (A : Data P T) (Z : FieldTower P T) |
| 41 | (t : Icc (0 : ℝ) T) : Continuous (pointNonlinearity P A Z t) := by |
| 42 | have hZ := smoothField_continuous P _ (Z.pointField_smooth t) |
| 43 | have hDZ := smoothField_continuous P _ (fieldFDeriv_smooth P _ (Z.pointField_smooth t)) |
| 44 | have hdir : Continuous (fun x => transportDirection A.κ A.direction (Z.pointField t x)) := |
| 45 | (hZ.const_smul A.κ).prodMk (continuous_const.inner hZ) |
| 46 | have hC := smoothField_continuous P _ (A.linear.coefficient t).smooth |
| 47 | have hsum : Continuous (fun x => ∑ i : Fin 3, (Z.pointField t x) i • |
| 48 | ((A.quadratic i).coefficient t).coefficient x (Z.pointField t x)) := by |
| 49 | apply continuous_finsetSum |
| 50 | intro i _ |
| 51 | exact ((coordinate 3 i).continuous.comp hZ).smul |
| 52 | ((smoothField_continuous P _ ((A.quadratic i).coefficient t).smooth).clm_apply hZ) |
| 53 | exact ((hC.clm_apply hZ).add (hDZ.clm_apply hdir)).add hsum |
| 54 | |
| 55 | theorem nonlinearity_value_ae (A : Data P T) (Z : FieldTower P T) |
| 56 | (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : |
| 57 | (value P (nonlinearity P (A.atOrder P q) hq t (Z.realization (q+1) t)) : |
| 58 | LiftDomain P → Vector3) =ᵐ[liftMeasure P] pointNonlinearity P A Z t := by |
| 59 | let u := Z.realization (q+1) t |
| 60 | let a := coefficientSobolevOperator P (A.linear.jet q t) (truncateOperator P q u) |
| 61 | let b := transportBilinear P hq (velocityComponents A.κ A.direction) |
| 62 | (velocityComponents_norm A.κ A.direction A.scale_bound A.direction_bound) u u |
| 63 | let c := algebraicBilinear P hq |
| 64 | (fun i => coefficientSobolevOperator P ((A.quadratic i).jet q t)) u u |
| 65 | have hu : (value P u : LiftDomain P → Vector3) =ᵐ[liftMeasure P] Z.pointField t := by |
| 66 | rw [Z.value_eq] |
| 67 | exact Z.pointField_ae t |
| 68 | have ha := coefficient_value_ae P (A.linear.coefficient t) (A.linear.jet q t) |
| 69 | (truncateOperator P q u) (Z.pointField t) (by simpa only [value_truncateOperator] using hu) |
| 70 | have hb := transportBilinear_ae P hq (velocityComponents A.κ A.direction) |
| 71 | (velocityComponents_norm A.κ A.direction A.scale_bound A.direction_bound) |
| 72 | u u (Z.pointField t) (Z.pointField t) hu hu (Z.pointField_smooth t) |
| 73 | have hc := algebraicBilinear_ae P hq (fun i => (A.quadratic i).coefficient t) |
| 74 | (fun i => (A.quadratic i).jet q t) u u (Z.pointField t) (Z.pointField t) hu hu |
| 75 | change ((valueOperator P q) (a+(b+c)) : LiftDomain P → Vector3) =ᵐ[liftMeasure P] _ |
| 76 | rw [map_add,map_add] |
| 77 | filter_upwards [Lp.coeFn_add (value P a) (value P b+value P c), |
| 78 | Lp.coeFn_add (value P b) (value P c),ha,hb,hc] with x hx hy ha hb hc |
| 79 | change (value P a+(value P b+value P c)) x = _ |
| 80 | simp only [Pi.add_apply] at hx hy |
| 81 | change (value P a) x = _ at ha |
| 82 | change (value P b) x = _ at hb |
| 83 | change (value P c) x = _ at hc |
| 84 | rw [hx,hy,ha,hb,hc] |
| 85 | have hd : (∑ i : Fin 4, velocityComponents A.κ A.direction i (Z.pointField t x) • |
| 86 | fieldDerivative P (standardDirection i) (Z.pointField t) x) = |
| 87 | fieldFDeriv P (Z.pointField t) x (transportDirection A.κ A.direction (Z.pointField t x)) := by |
| 88 | rw [← velocityComponents_direction A.κ A.direction, map_sum] |
| 89 | simp only [map_smul] |
| 90 | rfl |
| 91 | rw [hd] |
| 92 | exact (add_assoc _ _ _).symm |
| 93 | |
| 94 | theorem pointEvaluation_nonlinearity (A : Data P T) (Z : FieldTower P T) |
| 95 | (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) (x : LiftDomain P) : |
| 96 | pointEvaluation P x (restrictOperator P (by omega : 3 ≤ q) |
| 97 | (nonlinearity P (A.atOrder P q) hq t (Z.realization (q+1) t))) = |
| 98 | pointNonlinearity P A Z t x := by |
| 99 | apply pointEvaluation_eq P x _ _ (pointNonlinearity_continuous P A Z t) |
| 100 | simpa only [value_restrictOperator] using nonlinearity_value_ae P A Z q hq t |
| 101 | |
| 102 | namespace ExactLiftedPacket |
| 103 | |
| 104 | variable {P} {hT : 0 < T} {A : Data P T} {B : Budget P hT A} |
| 105 | (S : ExactLiftedPacket P hT A B) |
| 106 | |
| 107 | def pointTimeDerivative (t : Icc (0 : ℝ) T) (x : LiftDomain P) : Vector3 := |
| 108 | -pointNonlinearity P A S.velocity t x - |
| 109 | (A.metric.coefficient t).coefficient x (S.pressure.pointField t x) |
| 110 | |
| 111 | /-- Bounded Sobolev evaluation differentiates the actual solved path. -/ |
| 112 | theorem pointField_hasDerivAt (x : LiftDomain P) (t : ℝ) (ht : t ∈ Ioo 0 T) : |
| 113 | HasDerivAt (fun r => S.velocity.pointField (projIcc 0 T hT.le r) x) |
| 114 | (S.pointTimeDerivative ⟨t,ht.1.le,ht.2.le⟩ x) t := by |
| 115 | have h := ((pointEvaluation P x).comp (restrictOperator P (by omega : 3 ≤ 6))).hasFDerivAt.comp_hasDerivAt t |
| 116 | (S.equation 6 le_rfl t ht) |
| 117 | have hfun : (fun r => (pointEvaluation P x).comp (restrictOperator P (by omega : 3 ≤ 6)) |
| 118 | (extendPath T hT.le (S.velocity.realization 6) r)) = |
| 119 | fun r => S.velocity.pointField (projIcc 0 T hT.le r) x := by |
| 120 | funext r |
| 121 | exact (S.velocity.pointField_eq_high 6 (by omega) _ x).symm |
| 122 | change HasDerivAt (fun r => (pointEvaluation P x).comp (restrictOperator P (by omega : 3 ≤ 6)) |
| 123 | (extendPath T hT.le (S.velocity.realization 6) r)) _ t at h |
| 124 | rw [hfun] at h |
| 125 | simp only [comp_apply,map_sub,map_neg] at h |
| 126 | rw [pointEvaluation_nonlinearity P A S.velocity 6 le_rfl, |
| 127 | pointEvaluation_coefficient P (by omega : 3 ≤ 6), |
| 128 | ← S.pressure.pointField_eq_high 6 (by omega)] at h |
| 129 | exact h |
| 130 | |
| 131 | /-- The canonical fields satisfy the literal normalized pointwise equation. -/ |
| 132 | theorem pointwise_equation (t : Icc (0 : ℝ) T) (x : LiftDomain P) : |
| 133 | S.pointTimeDerivative t x + |
| 134 | (A.linear.coefficient t).coefficient x (S.velocity.pointField t x) + |
| 135 | fieldFDeriv P (S.velocity.pointField t) x |
| 136 | (transportDirection A.κ A.direction (S.velocity.pointField t x)) + |
| 137 | (∑ i : Fin 3, (S.velocity.pointField t x) i • |
| 138 | ((A.quadratic i).coefficient t).coefficient x (S.velocity.pointField t x)) + |
| 139 | (A.metric.coefficient t).coefficient x (S.pressure.pointField t x) = 0 := by |
| 140 | unfold pointTimeDerivative pointNonlinearity |
| 141 | abel |
| 142 | |
| 143 | end ExactLiftedPacket |
| 144 | end EulerAllOrderDriftCorrection |