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.GevreyNonlinearEstimate |
| 2 | import Euler.GevreyRadiusReduction |
| 3 | import Euler.CorrectionEnergyData |
| 4 | import Euler.InviscidSobolevEvolution |
| 5 | |
| 6 | /-! Actual raw-source, elliptic-pressure, and time-source bounds at a smaller radius. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace EulerGevreyCorrectionSourceBounds |
| 11 | |
| 12 | open Set Finset EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerCylinderSobolev |
| 13 | EulerSpatialSobolevInverse EulerCorrectionOperators EulerSobolevGevreyOperators |
| 14 | EulerGevreyRadiusReduction EulerGevreyRestriction EulerH6Nonlinear EulerSobolevTransport |
| 15 | EulerGevreyOrderZero EulerGevreyNonlinearEstimate EulerGevreyUniformConstants |
| 16 | EulerCorrectionEnergyData EulerSobolevCoefficientPressure EulerInviscidSobolevEvolution |
| 17 | |
| 18 | variable (period : ℝ) [Fact (0 < period)] |
| 19 | |
| 20 | /-- The explicit polynomial controlling the literal unprojected correction source. -/ |
| 21 | def sourceBound (B0 B1 A0 A2 residual E DE : ℝ) : ℝ := |
| 22 | productConstant period 3*(B0+E)*DE + residual + |
| 23 | (productConstant period 3*B1+A0+2*A2*productConstant period 3*B0)*E + |
| 24 | A2*productConstant period 3*E^2 |
| 25 | |
| 26 | theorem sourceBound_nonneg {B0 B1 A0 A2 residual E DE : ℝ} |
| 27 | (hB0 : 0 ≤ B0) (hB1 : 0 ≤ B1) (hA0 : 0 ≤ A0) (hA2 : 0 ≤ A2) |
| 28 | (hr : 0 ≤ residual) (hE : 0 ≤ E) (hDE : 0 ≤ DE) : |
| 29 | 0 ≤ sourceBound period B0 B1 A0 A2 residual E DE := by |
| 30 | have hP := productConstant_nonneg period 3 |
| 31 | unfold sourceBound |
| 32 | positivity |
| 33 | |
| 34 | /-- The actual transport estimate uses the sum of genuine derivative |
| 35 | norms, rather than a derivative bound on a hypothetical solution. -/ |
| 36 | theorem weightedNorm_transport {s : ℕ} (hs : 6 ≤ s) (N : ℕ) (hN : N+6 ≤ s) |
| 37 | (r : ℝ) (hr : 0 < r) (L : Fin 4 → Vector3 →L[ℝ] ℝ) (hL : ∀ i, ‖L i‖ ≤ 1) |
| 38 | (u v : SobolevSpace period (s+1)) : |
| 39 | weightedNorm period 6 N r (transportBilinear period hs L hL u v) ≤ |
| 40 | productConstant period 3*weightedNorm period 6 N r u* |
| 41 | ∑ i : Fin 4, weightedNorm period 6 N r (derivativeOperator period s i v) := by |
| 42 | rw [transportBilinear_apply] |
| 43 | apply (weightedNorm_sum_le period 6 N hN r hr univ _).trans |
| 44 | calc |
| 45 | _ ≤ ∑ i : Fin 4, productConstant period 3* |
| 46 | weightedNorm period 6 N r (truncateOperator period s u)* |
| 47 | weightedNorm period 6 N r (derivativeOperator period s i v) := |
| 48 | sum_le_sum fun i _ => weightedNorm_product period hs N hN r hr (L i) (hL i) _ _ |
| 49 | _ = _ := by rw [weightedNorm_truncate period 6 N hN, ← mul_sum] |
| 50 | |
| 51 | variable {q : ℕ} {T : ℝ} {hq : 6 ≤ q+1} |
| 52 | {D : CorrectionData period (q+1) (Icc (0 : ℝ) T)} |
| 53 | {P : ℕ} {R : C(Icc (0 : ℝ) T, ℝ)} |
| 54 | |
| 55 | /-- All inputs on the right are the actual prescribed coefficient and |
| 56 | background budgets, and norms of the given error and its derivatives. -/ |
| 57 | theorem rawSource_smallerRadius_bound (S : SpatialBudget period hq D P R) |
| 58 | (N : ℕ) (hNP : N ≤ P) (hN : N+6 ≤ q+1) (t : Icc (0 : ℝ) T) |
| 59 | (r : ℝ) (hr : 0 < r) (hrR : r ≤ R t) (E DE : ℝ) |
| 60 | (e : SobolevSpace period ((q+1)+1)) |
| 61 | (he : weightedNorm period 6 N r e ≤ E) |
| 62 | (hde : (∑ i : Fin 4, weightedNorm period 6 N r (derivativeOperator period (q+1) i e)) ≤ DE) : |
| 63 | weightedNorm period 6 N r (D.rawSource period hq t e) ≤ |
| 64 | sourceBound period S.B0 S.B1 S.A0 S.A2 S.residual E DE := by |
| 65 | have hP0 := productConstant_nonneg period 3 |
| 66 | have hE0 := (weightedNorm_nonneg period 6 N r hr e).trans he |
| 67 | have hDE0 := (sum_nonneg (fun i (_ : i ∈ (univ : Finset (Fin 4))) => |
| 68 | weightedNorm_nonneg period 6 N r hr (derivativeOperator period (q+1) i e))).trans hde |
| 69 | have hz : weightedNorm period 6 N r (D.approximation t) ≤ S.B0 := |
| 70 | ((weightedNorm_mono_radius period 6 N hr.le hrR _).trans |
| 71 | (weightedNorm_mono_cutoff period 6 hNP (R t) (S.radius_pos t) _)).trans (S.background t) |
| 72 | have hdz : (∑ i : Fin 4, weightedNorm period 6 N r |
| 73 | (derivativeOperator period (q+1) i (D.approximation t))) ≤ S.B1 := by |
| 74 | apply le_trans _ (S.background_derivative t) |
| 75 | exact sum_le_sum fun i _ => (weightedNorm_mono_radius period 6 N hr.le hrR _).trans |
| 76 | (weightedNorm_mono_cutoff period 6 hNP (R t) (S.radius_pos t) _) |
| 77 | have hl : weightedCoefficient period (D.linear.jet t) 6 N r ≤ S.A0 := |
| 78 | ((weightedCoefficient_mono_radius period _ 6 N hr.le hrR).trans |
| 79 | (weightedCoefficient_mono_cutoff period _ 6 hNP (R t) (S.radius_pos t))).trans (S.linear t) |
| 80 | have hc : (∑ i : Fin 3, weightedCoefficient period ((D.quadratic i).jet t) 6 N r) ≤ S.A2 := by |
| 81 | apply le_trans _ (S.quadratic t) |
| 82 | exact sum_le_sum fun i _ => (weightedCoefficient_mono_radius period _ 6 N hr.le hrR).trans |
| 83 | (weightedCoefficient_mono_cutoff period _ 6 hNP (R t) (S.radius_pos t)) |
| 84 | have hf : weightedNorm period 6 N r (D.residual t) ≤ S.residual := |
| 85 | ((weightedNorm_mono_radius period 6 N hr.le hrR _).trans |
| 86 | (weightedNorm_mono_cutoff period 6 hNP (R t) (S.radius_pos t) _)).trans (S.residual_bound t) |
| 87 | let L := velocityComponents D.κ D.direction |
| 88 | have hL : ∀ i, ‖L i‖ ≤ 1 := velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound |
| 89 | have hzE : weightedNorm period 6 N r (D.approximation t+e) ≤ S.B0+E := |
| 90 | (weightedNorm_add_le period 6 N (by omega) r hr _ _).trans (add_le_add hz he) |
| 91 | have htransport := weightedNorm_transport period hq N hN r hr L hL (D.approximation t+e) e |
| 92 | have htransport' : weightedNorm period 6 N r |
| 93 | (transportBilinear period hq L hL (D.approximation t+e) e) ≤ |
| 94 | productConstant period 3*(S.B0+E)*DE := by |
| 95 | apply htransport.trans |
| 96 | exact mul_le_mul (mul_le_mul_of_nonneg_left hzE hP0) hde |
| 97 | (sum_nonneg fun i _ => weightedNorm_nonneg period 6 N r hr _) |
| 98 | (mul_nonneg hP0 (add_nonneg S.B0_nonneg hE0)) |
| 99 | have ho := orderZeroSource_uniform period hq N hN r hr L hL |
| 100 | (D.linear.coefficient t) (D.linear.jet t) (fun i => (D.quadratic i).coefficient t) |
| 101 | (fun i => (D.quadratic i).jet t) (D.approximation t) e (D.residual t) |
| 102 | S.B0 S.B1 S.A0 S.A2 S.residual S.A2_nonneg hz hdz hl hc hf |
| 103 | have hlin : 0 ≤ productConstant period 3*S.B1+S.A0+2*S.A2*productConstant period 3*S.B0 := by |
| 104 | have := S.B1_nonneg; have := S.A0_nonneg; have := S.A2_nonneg; have := S.B0_nonneg |
| 105 | positivity |
| 106 | have ho' := ho.trans (add_le_add (add_le_add le_rfl (mul_le_mul_of_nonneg_left he hlin)) |
| 107 | (mul_le_mul_of_nonneg_left (sq_le_sq₀ (weightedNorm_nonneg period 6 N r hr e) hE0 |>.mpr he) |
| 108 | (mul_nonneg S.A2_nonneg hP0))) |
| 109 | rw [correctionData_rawSource_split] |
| 110 | exact (weightedNorm_add_le period 6 N hN r hr _ _).trans |
| 111 | ((add_le_add htransport' ho').trans_eq (by unfold sourceBound; ring)) |
| 112 | |
| 113 | /-- The actual elliptic inverse acts at the smaller radius using the same |
| 114 | proved coefficient budget. -/ |
| 115 | theorem pressure_smallerRadius_bound (S : SpatialBudget period hq D P R) |
| 116 | (N : ℕ) (hNP : N ≤ P) (hN : N+6 ≤ q+1) (t : Icc (0 : ℝ) T) |
| 117 | (r : ℝ) (hr : 0 < r) (hrR : r ≤ R t) (E DE : ℝ) |
| 118 | (e : SobolevSpace period ((q+1)+1)) |
| 119 | (he : weightedNorm period 6 N r e ≤ E) |
| 120 | (hde : (∑ i : Fin 4, weightedNorm period 6 N r (derivativeOperator period (q+1) i e)) ≤ DE) : |
| 121 | weightedNorm period 6 N r (D.pressure period hq t e) ≤ |
| 122 | 2*S.M*sourceBound period S.B0 S.B1 S.A0 S.A2 S.residual E DE := by |
| 123 | have hM : 0 ≤ S.M := zero_le_one.trans S.M_one_le |
| 124 | have hsmall : 4*S.M*(r*S.Rc) ≤ 1 := |
| 125 | (mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right hrR S.Rc_nonneg) (by positivity)).trans |
| 126 | (S.radius_small t) |
| 127 | rw [CorrectionData.pressure, weightedNorm_neg period 6 N hN] |
| 128 | exact (weightedNorm_pressure period (D.metric.jet t) D.κ D.direction D.coercivity D.coercivity_pos |
| 129 | (D.metric_pos t) N hN r S.Rc S.M hr S.Rc_nonneg S.M_one_le (S.inverse_six t) hsmall |
| 130 | (fun l hl hlN => S.metric_derivatives t l hl (hlN.trans hNP)) _).trans |
| 131 | (mul_le_mul_of_nonneg_left |
| 132 | (rawSource_smallerRadius_bound period S N hNP hN t r hr hrR E DE e he hde) (by positivity)) |
| 133 | |
| 134 | /-- The metric multiplication cost remains independent of the cutoff. -/ |
| 135 | theorem metric_smallerRadius_bound (S : SpatialBudget period hq D P R) |
| 136 | (N : ℕ) (hNP : N ≤ P) (t : Icc (0 : ℝ) T) |
| 137 | (r : ℝ) (hr : 0 < r) (hrR : r ≤ R t) : |
| 138 | weightedCoefficient period (D.metric.jet t) 6 N r ≤ 448*S.B+1 := by |
| 139 | have hM : 0 ≤ S.M := zero_le_one.trans S.M_one_le |
| 140 | have hx : 0 ≤ r*S.Rc := mul_nonneg hr.le S.Rc_nonneg |
| 141 | have hsmall : 4*S.M*(r*S.Rc) ≤ 1 := |
| 142 | (mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right hrR S.Rc_nonneg) (by positivity)).trans |
| 143 | (S.radius_small t) |
| 144 | have hhalf : r*S.Rc ≤ 1/2 := by nlinarith [S.M_one_le] |
| 145 | exact weightedCoefficient_uniform period (D.metric.jet t) N r S.Rc S.B hr S.Rc_nonneg hhalf |
| 146 | (S.metric_base t) (fun l hl hlN => S.metric_derivatives t l hl (hlN.trans hNP)) |
| 147 | |
| 148 | /-- The actual projected time source is bounded by the raw source and its |
| 149 | constructed signed pressure, with no time-derivative hypothesis. -/ |
| 150 | theorem timeSource_smallerRadius_bound (S : SpatialBudget period hq D P R) |
| 151 | (N : ℕ) (hNP : N ≤ P) (hN : N+6 ≤ q+1) (t : Icc (0 : ℝ) T) |
| 152 | (r : ℝ) (hr : 0 < r) (hrR : r ≤ R t) (E DE : ℝ) |
| 153 | (e : SobolevSpace period ((q+1)+1)) |
| 154 | (he : weightedNorm period 6 N r e ≤ E) |
| 155 | (hde : (∑ i : Fin 4, weightedNorm period 6 N r (derivativeOperator period (q+1) i e)) ≤ DE) : |
| 156 | weightedNorm period 6 N r ((D.coefficients period hq).apply t e) ≤ |
| 157 | (1+2*S.M*(448*S.B+1))*sourceBound period S.B0 S.B1 S.A0 S.A2 S.residual E DE := by |
| 158 | have hraw := rawSource_smallerRadius_bound period S N hNP hN t r hr hrR E DE e he hde |
| 159 | have hp := pressure_smallerRadius_bound period S N hNP hN t r hr hrR E DE e he hde |
| 160 | have hmetric := metric_smallerRadius_bound period S N hNP t r hr hrR |
| 161 | have hB0 := S.B_nonneg |
| 162 | rw [CorrectionData.source_sobolev, sub_eq_add_neg] |
| 163 | apply (weightedNorm_add_le period 6 N hN r hr _ _).trans |
| 164 | rw [weightedNorm_neg period 6 N hN, weightedNorm_neg period 6 N hN] |
| 165 | have hm := (weightedNorm_coefficient period (D.metric.jet t) 6 N hN r hr |
| 166 | (D.pressure period hq t e)).trans |
| 167 | (mul_le_mul hmetric hp (weightedNorm_nonneg period 6 N r hr _) (by positivity)) |
| 168 | exact (add_le_add hraw hm).trans_eq (by ring) |
| 169 | |
| 170 | end EulerGevreyCorrectionSourceBounds |