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.AllOrderDriftPressureBounds |
| 2 | |
| 3 | /-! The smaller-radius estimates also retain the actual residual envelope. -/ |
| 4 | |
| 5 | noncomputable section |
| 6 | |
| 7 | namespace EulerAllOrderDriftCorrection |
| 8 | |
| 9 | open Set Finset EulerLiftedGradientSpace EulerCylinderSobolevSpace EulerAllOrderCorrectionData |
| 10 | EulerCorrectionOperators EulerGevreyMetricEstimate EulerSobolevGevreyOperators |
| 11 | EulerGevreyRadiusReduction EulerGevreyCorrectionSourceBounds |
| 12 | |
| 13 | variable (period : ℝ) [Fact (0 < period)] |
| 14 | variable {T : ℝ} {hT : 0 < T} {A : Data period T} |
| 15 | |
| 16 | /-- The quantitative envelope delivered by the actual finite solver. -/ |
| 17 | def Budget.residualEnvelope (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) |
| 18 | (t : Icc (0 : ℝ) T) : ℝ := |
| 19 | 2*(B.spatial q hq).full.residual*Real.exp (3*B.growthCoefficient*t.val) |
| 20 | |
| 21 | theorem Budget.residualEnvelope_nonneg (B : Budget period hT A) |
| 22 | (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : |
| 23 | 0 ≤ B.residualEnvelope period q hq t := by |
| 24 | have h := (B.spatial q hq).full.residual_pos |
| 25 | unfold Budget.residualEnvelope |
| 26 | positivity |
| 27 | |
| 28 | theorem Budget.residualEnvelope_le_target (B : Budget period hT A) |
| 29 | (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : |
| 30 | B.residualEnvelope period q hq t ≤ B.delta/2 := by |
| 31 | have hg : 0 ≤ 3*B.growthCoefficient := by have := B.growth_pos period; positivity |
| 32 | have he := Real.exp_le_exp.mpr (mul_le_mul_of_nonneg_left t.property.2 hg) |
| 33 | exact (mul_le_mul_of_nonneg_left he |
| 34 | (show 0 ≤ 2*(B.spatial q hq).full.residual by have := (B.spatial q hq).full.residual_pos; positivity)).trans |
| 35 | (B.small q hq) |
| 36 | |
| 37 | /-- Both the correction and its genuine first spatial derivatives retain |
| 38 | the quantitative residual bound at the fixed smaller radius. -/ |
| 39 | theorem Budget.fieldTower_reducedNorms_residual (B : Budget period hT A) |
| 40 | (q : ℕ) (hq : 6 ≤ q) (N : ℕ) (hNq : N+6 ≤ q) |
| 41 | (s : ℕ) (hs : N+6 ≤ s) (t : Icc (0 : ℝ) T) : |
| 42 | weightedNorm period 6 N (B.reducedRadius period) ((B.fieldTower period).realization s t) ≤ |
| 43 | metricAmplification B.metric.c*B.residualEnvelope period q hq t ∧ |
| 44 | (∑ i : Fin 4, weightedNorm period 6 N (B.reducedRadius period) |
| 45 | (derivativeOperator period s i ((B.fieldTower period).realization (s+1) t))) ≤ |
| 46 | (8/B.initialRadius)*(metricAmplification B.metric.c*B.residualEnvelope period q hq t) := by |
| 47 | have hR := (B.spatial q hq).full.radius_pos t |
| 48 | have hrR : B.reducedRadius period ≤ B.radius t := by |
| 49 | have h := B.reducedRadius_le_half period t |
| 50 | linarith |
| 51 | have hfrac : 4/B.radius t ≤ 8/B.initialRadius := by |
| 52 | apply (div_le_div_iff₀ hR B.radius_pos).mpr |
| 53 | linarith [(B.radius_bounds period t).1] |
| 54 | have hE : 0 ≤ metricAmplification B.metric.c*B.residualEnvelope period q hq t := |
| 55 | mul_nonneg (zero_le_one.trans (metricAmplification_one_le B.metric.c_pos)) |
| 56 | (B.residualEnvelope_nonneg period q hq t) |
| 57 | constructor |
| 58 | · exact (weightedNorm_mono_radius period 6 N (B.reducedRadius_pos period).le hrR _).trans |
| 59 | (B.fieldTower_weightedNorm_residual period q hq N (by omega) (by omega) s hs t) |
| 60 | · calc |
| 61 | _ ≤ ∑ i : Fin 4, weightedNorm period 6 N (B.radius t/2) |
| 62 | (derivativeOperator period s i ((B.fieldTower period).realization (s+1) t)) := |
| 63 | sum_le_sum fun i _ => weightedNorm_mono_radius period 6 N |
| 64 | (B.reducedRadius_pos period).le (B.reducedRadius_le_half period t) _ |
| 65 | _ ≤ (4/B.radius t)*weightedNorm period 6 (N+1) (B.radius t) |
| 66 | ((B.fieldTower period).realization (s+1) t) := |
| 67 | weightedNorm_derivative_half period 6 N hs (B.radius t) hR _ |
| 68 | _ ≤ (4/B.radius t)*(metricAmplification B.metric.c*B.residualEnvelope period q hq t) := |
| 69 | mul_le_mul_of_nonneg_left |
| 70 | (B.fieldTower_weightedNorm_residual period q hq (N+1) (by omega) (by omega) (s+1) (by omega) t) |
| 71 | (by positivity) |
| 72 | _ ≤ _ := mul_le_mul_of_nonneg_right hfrac hE |
| 73 | |
| 74 | /-- The fixed polynomial cost when the solver's residual envelope is retained. -/ |
| 75 | def Budget.residualSourceCost (B : Budget period hT A) (q : ℕ) (hq : 6 ≤ q) : ℝ := |
| 76 | let S := (B.spatial q hq).full |
| 77 | sourceBound period S.B0 S.B1 S.A0 S.A2 1 |
| 78 | (metricAmplification B.metric.c) ((8/B.initialRadius)*metricAmplification B.metric.c) |
| 79 | |
| 80 | private theorem sourceBound_residual (B : Budget period hT A) |
| 81 | (q : ℕ) (hq : 6 ≤ q) (t : Icc (0 : ℝ) T) : |
| 82 | let S := (B.spatial q hq).full |
| 83 | sourceBound period S.B0 S.B1 S.A0 S.A2 S.residual |
| 84 | (metricAmplification B.metric.c*B.residualEnvelope period q hq t) |
| 85 | ((8/B.initialRadius)*(metricAmplification B.metric.c*B.residualEnvelope period q hq t)) ≤ |
| 86 | B.residualSourceCost period q hq*B.residualEnvelope period q hq t := by |
| 87 | have hμ : 0 ≤ metricAmplification B.metric.c := zero_le_one.trans (metricAmplification_one_le B.metric.c_pos) |
| 88 | have hDE := mul_nonneg (div_nonneg (by norm_num : (0 : ℝ) ≤ 8) B.radius_pos.le) hμ |
| 89 | have he := B.residualEnvelope_nonneg period q hq t |
| 90 | have he1 : B.residualEnvelope period q hq t ≤ 1 := |
| 91 | (B.residualEnvelope_le_target period q hq t).trans (by have := B.delta_le_one; linarith) |
| 92 | have hG := (B.growth_pos period).le |
| 93 | have ht0 := t.property.1 |
| 94 | have hexp : 1 ≤ Real.exp (3*B.growthCoefficient*t.val) := Real.one_le_exp_iff.mpr (by positivity) |
| 95 | have hr0 := (B.spatial q hq).full.residual_pos.le |
| 96 | have hr : (B.spatial q hq).full.residual ≤ B.residualEnvelope period q hq t := by |
| 97 | have hm := mul_le_mul_of_nonneg_left hexp (show 0 ≤ 2*(B.spatial q hq).full.residual by positivity) |
| 98 | dsimp [Budget.residualEnvelope] |
| 99 | linarith |
| 100 | have h := sourceBound_scaling period (B0 := (B.spatial q hq).full.B0) |
| 101 | (B1 := (B.spatial q hq).full.B1) (A0 := (B.spatial q hq).full.A0) |
| 102 | (B.spatial q hq).full.A2_nonneg hμ hDE he he1 hr |
| 103 | convert h using 1 |
| 104 | · congr 1 <;> ring |
| 105 | · rfl |
| 106 | |
| 107 | /-- The constructed pressure and actual time derivative satisfy the |
| 108 | sharper residual-envelope estimates, without assuming either bound. -/ |
| 109 | theorem Budget.pressure_time_reducedNorms_residual (B : Budget period hT A) |
| 110 | (q : ℕ) (hq : 6 ≤ q) (N : ℕ) (hNq : N+6 ≤ q) |
| 111 | (s : ℕ) (hs : N+6 ≤ s) (t : Icc (0 : ℝ) T) : |
| 112 | weightedNorm period 6 N (B.reducedRadius period) ((B.pressureTower period).realization s t) ≤ |
| 113 | (2*(B.spatial q hq).full.M*B.residualSourceCost period q hq)*B.residualEnvelope period q hq t ∧ |
| 114 | weightedNorm period 6 N (B.reducedRadius period) ((B.timeDerivativeTower period).realization s t) ≤ |
| 115 | ((1+2*(B.spatial q hq).full.M*(448*(B.spatial q hq).full.B+1))* |
| 116 | B.residualSourceCost period q hq)*B.residualEnvelope period q hq t := by |
| 117 | have hrR : B.reducedRadius period ≤ B.radius t := by |
| 118 | have h := B.reducedRadius_le_half period t |
| 119 | have hp := (B.spatial q hq).full.radius_pos t |
| 120 | linarith |
| 121 | have he := (B.fieldTower_reducedNorms_residual period q hq N hNq (q+3) (by omega) t).1 |
| 122 | have hde := (B.fieldTower_reducedNorms_residual period q hq N hNq (q+2) (by omega) t).2 |
| 123 | have hcost := sourceBound_residual period B q hq t |
| 124 | have hM := zero_le_one.trans (B.spatial q hq).full.M_one_le |
| 125 | have hB := (B.spatial q hq).full.B_nonneg |
| 126 | have hp := pressure_smallerRadius_bound period (B.spatial q hq).full N (by omega) (by omega) |
| 127 | t (B.reducedRadius period) (B.reducedRadius_pos period) hrR _ _ _ he hde |
| 128 | have ht := timeSource_smallerRadius_bound period (B.spatial q hq).full N (by omega) (by omega) |
| 129 | t (B.reducedRadius period) (B.reducedRadius_pos period) hrR _ _ _ he hde |
| 130 | have hp' := hp.trans (mul_le_mul_of_nonneg_left hcost (by positivity : 0 ≤ 2*(B.spatial q hq).full.M)) |
| 131 | have ht' := ht.trans (mul_le_mul_of_nonneg_left hcost |
| 132 | (by positivity : 0 ≤ 1+2*(B.spatial q hq).full.M*(448*(B.spatial q hq).full.B+1))) |
| 133 | change weightedNorm period 6 N (B.reducedRadius period) |
| 134 | ((A.atOrder period (q+2)).pressure period (by omega) t |
| 135 | ((B.fieldTower period).realization (q+3) t)) ≤ _ at hp' |
| 136 | rw [← B.solution_eq_realization period (q+2) (by omega), B.pressure_eq_realization] at hp' |
| 137 | change weightedNorm period 6 N (B.reducedRadius period) |
| 138 | (((A.atOrder period (q+2)).coefficients period (by omega)).apply t |
| 139 | ((B.fieldTower period).realization (q+3) t)) ≤ _ at ht' |
| 140 | rw [B.source_eq_timeDerivativeTower period (q+2) (by omega)] at ht' |
| 141 | constructor |
| 142 | · rw [weightedNorm_unique period 6 N (B.reducedRadius period) _ |
| 143 | ((B.pressureTower period).realization (q+2) t) |
| 144 | (by rw [(B.pressureTower period).value_eq, (B.pressureTower period).value_eq]) hs (by omega)] |
| 145 | exact hp'.trans_eq (by ring) |
| 146 | · rw [weightedNorm_unique period 6 N (B.reducedRadius period) _ |
| 147 | ((B.timeDerivativeTower period).realization (q+2) t) |
| 148 | (by rw [(B.timeDerivativeTower period).value_eq, (B.timeDerivativeTower period).value_eq]) hs (by omega)] |
| 149 | exact ht'.trans_eq (by ring) |
| 150 | |
| 151 | end EulerAllOrderDriftCorrection |