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.CorrectionDifferencePDE |
| 2 | import Euler.SobolevDifferenceEnergy |
| 3 | |
| 4 | /-! Concrete coefficient and inverse-metric data for actual vanishing-viscosity stability. -/ |
| 5 | |
| 6 | /-! ## From `Euler/CorrectionDifferenceMetric.lean` |
| 7 | |
| 8 | The text of `Euler/CorrectionDifferenceMetric.lean`, folded into this file, which was its only importer. -/ |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The actual nonlinear viscosity-difference PDE implies a fixed squared metric energy inequality. -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | namespace EulerCorrectionDifferenceMetric |
| 17 | |
| 18 | open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerLiftedPressure |
| 19 | EulerSpatialSobolevInverse EulerCylinderSobolevSpace EulerCorrectionOperators EulerCorrectionDifference |
| 20 | EulerCorrectionDifferencePDE EulerCorrectionStabilityConstants EulerSobolevTransport |
| 21 | EulerSobolevMetricTransport EulerSobolevHeatGenerator EulerMetricHeatEnergy EulerSobolevL2Product |
| 22 | EulerSquaredMetricStability EulerSobolevDifferenceEnergy |
| 23 | open scoped Topology |
| 24 | |
| 25 | variable (period : ℝ) [Fact (0 < period)] |
| 26 | |
| 27 | /-- The existing Sobolev normed-group instance for the literal metric difference equation. -/ |
| 28 | local instance metricSobolevGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance |
| 29 | /-- The existing real Sobolev module instance for the literal metric difference equation. -/ |
| 30 | local instance metricSobolevSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance |
| 31 | |
| 32 | /-- The actual correction-difference PDE gives the quantitative squared L² metric bound, with no assumed energy inequality. -/ |
| 33 | theorem difference_metric_deriv_bound {q : ℕ} {T : Type*} [TopologicalSpace T] |
| 34 | (D : CorrectionData period q T) (hq : 6 ≤ q) (τ : T) |
| 35 | (u v : SobolevSpace period (q+1)) (A : SmoothCoefficient period) |
| 36 | (K : ℝ → LiftL2 period →L[ℝ] LiftL2 period) (e : ℝ → LiftL2 period) |
| 37 | (t ν μ c Kb Kx Kt A0 A2 Z R : ℝ) (K' : LiftL2 period →L[ℝ] LiftL2 period) |
| 38 | (hc : 0 < c) (hν : 0 ≤ ν) (hν1 : ν ≤ 1) |
| 39 | (hKv : K t=A.operator) (hev : e t=value period (u-v)) |
| 40 | (hK : HasDerivAt K K' t) (he : HasDerivAt e (differenceRhs period D hq ν μ τ u v) t) |
| 41 | (hKb : ‖A.operator‖ ≤ Kb) (hKx : (A.firstBound : ℝ) ≤ Kx) (hKt : ‖K'‖ ≤ Kt) |
| 42 | (hA0 : ((D.linear.coefficient τ).bound : ℝ) ≤ A0) |
| 43 | (hA2 : (∑ i : Fin 3, (((D.quadratic i).coefficient τ).bound : ℝ)) ≤ A2) |
| 44 | (hZ : ‖D.approximation τ‖ ≤ Z) (hu : ‖u‖ ≤ R) (hv : ‖v‖ ≤ R) |
| 45 | (hsym : ∀ x a b, ⟪A.coefficient x a,b⟫_ℝ=⟪a,A.coefficient x b⟫_ℝ) |
| 46 | (hpos : ∀ x a, c^2*‖a‖^2 ≤ ⟪A.coefficient x a,a⟫_ℝ) |
| 47 | (hinv : ∀ x a, A.coefficient x ((D.metric.coefficient τ).coefficient x a)=a) |
| 48 | (hz : value period (D.approximation τ) ∈ divergenceFreeSpace period D.κ D.direction) |
| 49 | (hud : value period u ∈ divergenceFreeSpace period D.κ D.direction) |
| 50 | (hvd : value period v ∈ divergenceFreeSpace period D.κ D.direction) : |
| 51 | deriv (fun s => ⟪K s (e s),e s⟫_ℝ) t ≤ |
| 52 | growthConstant c Kb Kx Kt (velocityBound period q Z R) (lowerConstant period q A0 A2 Z R)* |
| 53 | ⟪K t (e t),e t⟫_ℝ+defectConstant Kb R*|ν-μ|^2 := by |
| 54 | let d := u-v |
| 55 | let top := value period (transportBilinear period hq (velocityComponents D.κ D.direction) |
| 56 | (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) (D.approximation τ+u) d) |
| 57 | let p := value period (D.pressure period hq τ u)-value period (D.pressure period hq τ v) |
| 58 | let F := -value period (differenceRemainder period D hq τ u v)+ |
| 59 | (ν-μ) • laplacianEvaluation period (q+1) (by omega) v |
| 60 | let L := lowerConstant period q A0 A2 Z R |
| 61 | let V := velocityBound period q Z R |
| 62 | have hr0 := (norm_nonneg u).trans hu |
| 63 | have hz0 := (norm_nonneg (D.approximation τ)).trans hZ |
| 64 | have ha00 := (D.linear.coefficient τ).bound.coe_nonneg.trans hA0 |
| 65 | have ha20 := (Finset.sum_nonneg (fun i _ => ((D.quadratic i).coefficient τ).bound.coe_nonneg)).trans hA2 |
| 66 | have hL : 0 ≤ L := lowerConstant_nonneg period q A0 A2 Z R ha00 ha20 hz0 hr0 |
| 67 | have hV : 0 ≤ V := velocityBound_nonneg period q Z R hz0 hr0 |
| 68 | have hkx0 := A.firstBound.coe_nonneg.trans hKx |
| 69 | have hkb0 := (norm_nonneg A.operator).trans hKb |
| 70 | have hkt0 := (norm_nonneg K').trans hKt |
| 71 | have heq : differenceRhs period D hq ν μ τ u v+top+(D.metric.coefficient τ).operator p = |
| 72 | F+ν • laplacianEvaluation period (q+1) (by omega) d := by |
| 73 | dsimp only [differenceRhs,p,F,d] |
| 74 | abel |
| 75 | have hdiv : value period d ∈ divergenceFreeSpace period D.κ D.direction := |
| 76 | (divergenceFreeSpace period D.κ D.direction).sub_mem hud hvd |
| 77 | have hpgrad : p ∈ gradientSpace period D.κ D.direction := |
| 78 | (gradientSpace period D.κ D.direction).sub_mem (D.pressure_mem_gradient period hq τ u) |
| 79 | (D.pressure_mem_gradient period hq τ v) |
| 80 | have hp : ⟪K t (e t),(D.metric.coefficient τ).operator p⟫_ℝ=0 := by |
| 81 | rw [hKv,hev] |
| 82 | exact metric_pressure_cancellation period D.κ D.direction A.coefficient (D.metric.coefficient τ).coefficient |
| 83 | A.measurable (D.metric.coefficient τ).measurable A.bound (D.metric.coefficient τ).bound |
| 84 | A.norm_bound (D.metric.coefficient τ).norm_bound hsym hinv hdiv hpgrad |
| 85 | have ht : |⟪K t (e t),top⟫_ℝ| ≤ (Kx*V)*‖e t‖^2 := by |
| 86 | rw [hKv,hev] |
| 87 | exact difference_transport_bound period D hq τ A u v Kx Z R hKx hZ hu hsym hz hud |
| 88 | have hheat : ⟪K t (e t),laplacianEvaluation period (q+1) (by omega) d⟫_ℝ ≤ |
| 89 | (2*Kx^2/c^2)*‖e t‖^2 := by |
| 90 | rw [hKv,hev] |
| 91 | exact difference_heat_bound period (by omega : 2 ≤ q+1) A d c Kx hc hKx hpos |
| 92 | have hforce : ‖F‖ ≤ L*‖e t‖+|ν-μ| *(4*R) := by |
| 93 | rw [hev] |
| 94 | have hrem := differenceRemainder_uniform period D hq τ u v A0 A2 Z R hA0 hA2 hZ hu hv |
| 95 | have hlap := (laplacianEvaluation_bound period (by omega : 2 ≤ q+1) v).trans |
| 96 | (mul_le_mul_of_nonneg_left hv (by norm_num : (0 : ℝ) ≤ 4)) |
| 97 | have hh := norm_add_le (-value period (differenceRemainder period D hq τ u v)) |
| 98 | ((ν-μ) • laplacianEvaluation period (q+1) (by omega) v) |
| 99 | rw [norm_neg,norm_smul,Real.norm_eq_abs] at hh |
| 100 | exact hh.trans (add_le_add hrem (mul_le_mul_of_nonneg_left hlap (abs_nonneg _))) |
| 101 | have hcoer : c^2*‖e t‖^2 ≤ ⟪K t (e t),e t⟫_ℝ := by |
| 102 | rw [hKv] |
| 103 | exact coefficientOperator_coercive A.coefficient A.measurable A.bound A.norm_bound (c^2) hpos (e t) |
| 104 | have hsymL : ∀ a b, ⟪K t a,b⟫_ℝ=⟪a,K t b⟫_ℝ := by |
| 105 | rw [hKv] |
| 106 | exact coefficientOperator_inner_swap A.coefficient A.measurable A.bound A.norm_bound hsym |
| 107 | have hgen := metric_derivative_bound K e t ν c (Kx*V) (2*Kx^2/c^2) L |ν-μ| (4*R) K' |
| 108 | (differenceRhs period D hq ν μ τ u v) top ((D.metric.coefficient τ).operator p) F |
| 109 | (laplacianEvaluation period (q+1) (by omega) d) hc hν (mul_nonneg hkx0 hV) (by positivity) hL |
| 110 | hK he hsymL hcoer heq hp ht hheat hforce |
| 111 | have he0 : 0 ≤ ⟪K t (e t),e t⟫_ℝ := (mul_nonneg (sq_nonneg c) (sq_nonneg ‖e t‖)).trans hcoer |
| 112 | have hkn : ‖K t‖ ≤ Kb := by rw [hKv]; exact hKb |
| 113 | have hg : (‖K'‖+2*(Kx*V)+2*ν*(2*Kx^2/c^2)+2*‖K t‖*L+1)/c^2 ≤ |
| 114 | growthConstant c Kb Kx Kt V L := by |
| 115 | unfold growthConstant |
| 116 | apply div_le_div_of_nonneg_right _ (sq_nonneg c) |
| 117 | have hh : 2*ν*(2*Kx^2/c^2) ≤ 4*Kx^2/c^2 := by |
| 118 | calc |
| 119 | _ = ν*(4*Kx^2/c^2) := by ring |
| 120 | _ ≤ 1*(4*Kx^2/c^2) := mul_le_mul_of_nonneg_right hν1 (by positivity) |
| 121 | _ = _ := one_mul _ |
| 122 | have hk : 2*‖K t‖*L ≤ 2*Kb*L := by |
| 123 | have h := mul_le_mul_of_nonneg_right hkn (mul_nonneg (by norm_num : (0 : ℝ) ≤ 2) hL) |
| 124 | linarith only [h] |
| 125 | have hsum := add_le_add (add_le_add (add_le_add hKt (le_refl (2*(Kx*V)))) hh) hk |
| 126 | exact (add_le_add hsum (le_refl 1)).trans_eq (by ring) |
| 127 | have hd : (‖K t‖*(4*R))^2 ≤ defectConstant Kb R := by |
| 128 | have h := mul_le_mul_of_nonneg_right hkn (mul_nonneg (by norm_num : (0 : ℝ) ≤ 4) hr0) |
| 129 | exact pow_le_pow_left₀ (mul_nonneg (norm_nonneg (K t)) |
| 130 | (mul_nonneg (by norm_num : (0 : ℝ) ≤ 4) hr0)) h 2 |
| 131 | exact hgen.trans (add_le_add (mul_le_mul_of_nonneg_right hg he0) |
| 132 | (mul_le_mul_of_nonneg_right hd (sq_nonneg _))) |
| 133 | |
| 134 | end EulerCorrectionDifferenceMetric |
| 135 | end |
| 136 | |
| 137 | end |
| 138 | |
| 139 | noncomputable section |
| 140 | |
| 141 | namespace EulerCorrectionStabilityBudget |
| 142 | |
| 143 | open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerCylinderSobolevSpace |
| 144 | EulerSpatialSobolevInverse EulerCorrectionOperators EulerCorrectionStabilityConstants EulerVolterraConvolution |
| 145 | open scoped Topology |
| 146 | |
| 147 | variable (period : ℝ) [Fact (0 < period)] |
| 148 | |
| 149 | /-- Actual coefficient and inverse-metric budgets for L² comparison; no PDE estimate or solution comparison is a field. -/ |
| 150 | structure StabilityBudget {q : ℕ} {T : ℝ} (hT : 0 ≤ T) (D : CorrectionData period q (Icc (0 : ℝ) T)) where |
| 151 | /-- The actual inverse metric coefficient. -/ |
| 152 | metric : Icc (0 : ℝ) T → SmoothCoefficient period |
| 153 | /-- The actual metric multiplier is continuous in time. -/ |
| 154 | continuous : Continuous (fun t => (metric t).operator) |
| 155 | /-- The genuine time derivative of the metric multiplier. -/ |
| 156 | derivative : C(Icc (0 : ℝ) T,LiftL2 period →L[ℝ] LiftL2 period) |
| 157 | /-- Interior differentiation of the actual metric path. -/ |
| 158 | hasDeriv : ∀ t ∈ Ioo 0 T, HasDerivAt |
| 159 | (fun s => (metric (projIcc 0 T hT s)).operator) (extendPath T hT derivative t) t |
| 160 | /-- Positive square-root coercivity constant. -/ |
| 161 | c : ℝ |
| 162 | /-- Strict coercivity. -/ |
| 163 | c_pos : 0 < c |
| 164 | /-- Pointwise metric symmetry. -/ |
| 165 | symmetric : ∀ t x a b, ⟪(metric t).coefficient x a,b⟫_ℝ=⟪a,(metric t).coefficient x b⟫_ℝ |
| 166 | /-- Pointwise positive lower bound. -/ |
| 167 | coercive : ∀ t x a, c^2*‖a‖^2 ≤ ⟪(metric t).coefficient x a,a⟫_ℝ |
| 168 | /-- The actual metric inverts the pressure coefficient. -/ |
| 169 | inverse : ∀ t x a, (metric t).coefficient x ((D.metric.coefficient t).coefficient x a)=a |
| 170 | /-- Uniform metric operator bound. -/ |
| 171 | bound : ℝ |
| 172 | /-- Uniform metric first spatial derivative bound. -/ |
| 173 | first : ℝ |
| 174 | /-- Uniform metric time derivative bound. -/ |
| 175 | time : ℝ |
| 176 | /-- Uniform linear-coefficient bound. -/ |
| 177 | linear : ℝ |
| 178 | /-- Uniform sum of quadratic-coefficient bounds. -/ |
| 179 | quadratic : ℝ |
| 180 | /-- The actual metric operator satisfies its budget. -/ |
| 181 | bound_le : ∀ t, ‖(metric t).operator‖ ≤ bound |
| 182 | /-- The actual first spatial derivative witness satisfies its budget. -/ |
| 183 | first_le : ∀ t, ((metric t).firstBound : ℝ) ≤ first |
| 184 | /-- The actual time derivative satisfies its budget. -/ |
| 185 | time_le : ∀ t, ‖derivative t‖ ≤ time |
| 186 | /-- The actual linear coefficient satisfies its budget. -/ |
| 187 | linear_le : ∀ t, ((D.linear.coefficient t).bound : ℝ) ≤ linear |
| 188 | /-- The actual quadratic coefficients satisfy their common budget. -/ |
| 189 | quadratic_le : ∀ t, (∑ i : Fin 3, (((D.quadratic i).coefficient t).bound : ℝ)) ≤ quadratic |
| 190 | |
| 191 | /-- The actual continuous metric multiplier path determined by the concrete budget. -/ |
| 192 | def StabilityBudget.operatorPath {q : ℕ} {T : ℝ} {hT : 0 ≤ T} |
| 193 | {D : CorrectionData period q (Icc (0 : ℝ) T)} (B : StabilityBudget period hT D) : |
| 194 | C(Icc (0 : ℝ) T,LiftL2 period →L[ℝ] LiftL2 period) := ⟨fun t => (B.metric t).operator,B.continuous⟩ |
| 195 | |
| 196 | /-- The fixed squared-energy growth coefficient obtained from the actual background path and a solution norm bound. -/ |
| 197 | def StabilityBudget.growth {q : ℕ} {T : ℝ} {hT : 0 ≤ T} |
| 198 | {D : CorrectionData period q (Icc (0 : ℝ) T)} (B : StabilityBudget period hT D) (R : ℝ) : ℝ := |
| 199 | growthConstant B.c B.bound B.first B.time (velocityBound period q ‖D.approximation‖ R) |
| 200 | (lowerConstant period q B.linear B.quadratic ‖D.approximation‖ R) |
| 201 | |
| 202 | /-- The explicit finite-interval Lipschitz coefficient for viscosity in continuous L². -/ |
| 203 | def StabilityBudget.comparisonConstant {q : ℕ} {T : ℝ} {hT : 0 ≤ T} |
| 204 | {D : CorrectionData period q (Icc (0 : ℝ) T)} (B : StabilityBudget period hT D) (R : ℝ) : ℝ := |
| 205 | Real.sqrt (defectConstant B.bound R*T*Real.exp (B.growth period R*T))/B.c |
| 206 | |
| 207 | /-- All budget signs follow from the actual norm bounds on the nonempty time interval. -/ |
| 208 | theorem StabilityBudget.nonneg {q : ℕ} {T : ℝ} {hT : 0 ≤ T} |
| 209 | {D : CorrectionData period q (Icc (0 : ℝ) T)} (B : StabilityBudget period hT D) : |
| 210 | 0 ≤ B.bound ∧ 0 ≤ B.first ∧ 0 ≤ B.time ∧ 0 ≤ B.linear ∧ 0 ≤ B.quadratic := by |
| 211 | let t : Icc (0 : ℝ) T := ⟨0,le_rfl,hT⟩ |
| 212 | exact ⟨(norm_nonneg _).trans (B.bound_le t), |
| 213 | (B.metric t).firstBound.coe_nonneg.trans (B.first_le t), |
| 214 | (norm_nonneg _).trans (B.time_le t), |
| 215 | (D.linear.coefficient t).bound.coe_nonneg.trans (B.linear_le t), |
| 216 | (Finset.sum_nonneg (fun i _ => ((D.quadratic i).coefficient t).bound.coe_nonneg)).trans (B.quadratic_le t)⟩ |
| 217 | |
| 218 | /-- The actual fixed growth coefficient is nonnegative for every nonnegative solution bound. -/ |
| 219 | theorem StabilityBudget.growth_nonneg {q : ℕ} {T : ℝ} {hT : 0 ≤ T} |
| 220 | {D : CorrectionData period q (Icc (0 : ℝ) T)} (B : StabilityBudget period hT D) (R : ℝ) (hR : 0 ≤ R) : |
| 221 | 0 ≤ B.growth period R := by |
| 222 | obtain ⟨hb,hf,ht,hl,hq⟩ := B.nonneg period |
| 223 | exact growthConstant_nonneg B.c B.bound B.first B.time _ _ hb hf ht |
| 224 | (velocityBound_nonneg period q ‖D.approximation‖ R (norm_nonneg D.approximation) hR) |
| 225 | (lowerConstant_nonneg period q B.linear B.quadratic ‖D.approximation‖ R hl hq (norm_nonneg D.approximation) hR) |
| 226 | |
| 227 | /-- The explicit comparison coefficient is nonnegative. -/ |
| 228 | theorem StabilityBudget.comparisonConstant_nonneg {q : ℕ} {T : ℝ} {hT : 0 ≤ T} |
| 229 | {D : CorrectionData period q (Icc (0 : ℝ) T)} (B : StabilityBudget period hT D) (R : ℝ) : |
| 230 | 0 ≤ B.comparisonConstant period R := div_nonneg (Real.sqrt_nonneg _) B.c_pos.le |
| 231 | |
| 232 | end EulerCorrectionStabilityBudget |