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 NavierStokes.R3.WholeSpaceEnergyLimit |
| 2 | import NavierStokes.R3.LocalizedFluxEstimates |
| 3 | import NavierStokes.R3.ComparisonRateBound |
| 4 | |
| 5 | /-! |
| 6 | # Closing the whole-space comparison estimate |
| 7 | |
| 8 | This module isolates the final PDE energy calculation. Its explicit pressure |
| 9 | flux hypothesis is discharged by the pressure reconstruction modules in the |
| 10 | whole-space uniqueness theorem; it is not a competitor hypothesis. |
| 11 | -/ |
| 12 | |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open Set MeasureTheory |
| 17 | open scoped ContDiff BigOperators InnerProductSpace |
| 18 | |
| 19 | namespace NavierStokesR3.WholeSpaceComparisonClosure |
| 20 | |
| 21 | open ProblemStatement Comparison ComparisonCutoffs |
| 22 | open NavierStokes.ProblemStatement (spatialDerivative spatialDivergence) |
| 23 | open NavierStokes.PeriodicUniqueness (spatial_smooth time_differentiable_at_interior) |
| 24 | |
| 25 | def pressureEnvelope (R A B : ℝ) : ℝ := |
| 26 | (B ^ (1 / 2 : ℝ) + 1) * (A / R + 1 / R ^ 2) + |
| 27 | R ^ (-7 / 4 : ℝ) * B ^ (3 / 4 : ℝ) |
| 28 | |
| 29 | /-- Once the pressure flux has been estimated from the equations, compact |
| 30 | localized integration, Sobolev, Young and Gronwall imply equality everywhere. |
| 31 | All constants precede the radius and time quantifiers. -/ |
| 32 | theorem eq_of_pressure_flux_bound {T M G CP R₀ : ℝ} |
| 33 | {u v : VelocityField} {p q : PressureField} |
| 34 | (hT : 0 ≤ T) (hM0 : 0 ≤ M) (hG0 : 0 ≤ G) (hCP0 : 0 ≤ CP) |
| 35 | (hu : ContDiffOn ℝ ∞ u (Comparison.slab 0 T)) |
| 36 | (hv : ContDiffOn ℝ ∞ v (Comparison.slab 0 T)) |
| 37 | (hp : ContDiffOn ℝ ∞ p (Comparison.slab 0 T)) |
| 38 | (hq : ContDiffOn ℝ ∞ q (Comparison.slab 0 T)) |
| 39 | (hwu : ∀ t ∈ Icc (0 : ℝ) T, MemLp (fun x => (u - v) (t, x)) 2 volume) |
| 40 | (hM : ∀ t ∈ Icc (0 : ℝ) T, comparisonLpNorm 2 (fun x => (u - v) (t, x)) ≤ M) |
| 41 | (hG : ∀ t ∈ Icc (0 : ℝ) T, ∀ x, ‖spatialDerivative u t x‖ ≤ G) |
| 42 | (hdu : ∀ t ∈ Ioo (0 : ℝ) T, ∀ x, spatialDivergence u t x = 0) |
| 43 | (hdv : ∀ t ∈ Ioo (0 : ℝ) T, ∀ x, spatialDivergence v t x = 0) |
| 44 | (hNS : ∀ t ∈ Ioo (0 : ℝ) T, ∀ x, |
| 45 | navierStokesResidual 1 u p t x = navierStokesResidual 1 v q t x) |
| 46 | (hzero : ∀ x, u (0, x) = v (0, x)) |
| 47 | (hvanish : ∀ R ≥ R₀, ∀ t ∈ Icc (0 : ℝ) T, ∀ x, |
| 48 | fderiv ℝ (weight R) x (u (t, x)) = 0) |
| 49 | (hpressure : ∀ R ≥ 1, ∀ t ∈ Ioo (0 : ℝ) T, |
| 50 | |∫ x : Space, (p - q) (t, x) * fderiv ℝ (weight R) x ((u - v) (t, x))| ≤ |
| 51 | CP * pressureEnvelope R (dissipationRoot (cutoff R) (u - v) t) |
| 52 | (cutoffL6 (cutoff R) (u - v) t)) : |
| 53 | ∀ t ∈ Icc (0 : ℝ) T, ∀ x, u (t, x) = v (t, x) := by |
| 54 | let C0 := LocalizedFluxEstimates.weightLaplacianConstant * M ^ 2 / 2 |
| 55 | let C1 := 4 * derivativeConstant 1 * M ^ (3 / 2 : ℝ) |
| 56 | have hC0 : 0 ≤ C0 := by |
| 57 | dsimp [C0] |
| 58 | exact div_nonneg (mul_nonneg |
| 59 | LocalizedFluxEstimates.weightLaplacianConstant_pos.le (sq_nonneg M)) (by norm_num) |
| 60 | have hC1 : 0 ≤ C1 := by |
| 61 | dsimp [C1] |
| 62 | exact mul_nonneg (mul_nonneg (by norm_num) (derivativeConstant_pos 1).le) |
| 63 | (Real.rpow_nonneg hM0 _) |
| 64 | obtain ⟨D, hD, hrate⟩ := ComparisonRateBound.exists_uniform_rate_bound hC0 hC1 hCP0 |
| 65 | WeightedSobolev.weightedSobolevConstant_pos.le |
| 66 | (mul_nonneg (derivativeConstant_pos 1).le hM0) |
| 67 | have hwzero : ∀ t ∈ Icc (0 : ℝ) T, ∀ x, (u - v) (t, x) = 0 := by |
| 68 | apply WholeSpaceEnergyLimit.eq_zero_of_weighted_rate_bound (K := 2 * G) (C := D) (R₀ := R₀) |
| 69 | hT (mul_nonneg (by norm_num) hG0) hD (hu.sub hv) |
| 70 | · intro t ht |
| 71 | exact (memLp_two_iff_integrable_sq_norm (hwu t ht).aestronglyMeasurable).mp (hwu t ht) |
| 72 | · intro x |
| 73 | simp only [hzero x, sub_self] |
| 74 | · intro R hR t ht |
| 75 | have hR1 : 1 ≤ R := (le_max_left _ _).trans hR |
| 76 | have hRpos : 0 < R := zero_lt_one.trans_le hR1 |
| 77 | have htcc : t ∈ Icc (0 : ℝ) T := Ioo_subset_Icc_self ht |
| 78 | have hut := spatial_smooth hu htcc |
| 79 | have hvt := spatial_smooth hv htcc |
| 80 | have hwt := hut.sub hvt |
| 81 | have hw2 := hwu t htcc |
| 82 | let A := dissipationRoot (cutoff R) (u - v) t |
| 83 | let B := cutoffL6 (cutoff R) (u - v) t |
| 84 | have hA : 0 ≤ A := Real.sqrt_nonneg _ |
| 85 | have hB : 0 ≤ B := ENNReal.toReal_nonneg |
| 86 | have hm : 0 ≤ comparisonLpNorm 2 (fun x => (u - v) (t, x)) := ENNReal.toReal_nonneg |
| 87 | have hAsq : A ^ 2 = weightedDissipation (weight R) (u - v) t := by |
| 88 | apply Real.sq_sqrt |
| 89 | exact LocalizedDifferenceEnergy.weightedDissipation_nonneg (weight_nonneg R) _ _ |
| 90 | have hSob0 := WeightedSobolev.cutoffL6_le |
| 91 | ((cutoff_smooth R).of_le (by simp)) (cutoff_hasCompactSupport hRpos) |
| 92 | (hwt.of_le (by simp)) hw2 (cutoff_nonneg R) (cutoff_le_one R) |
| 93 | (div_nonneg (derivativeConstant_pos 1).le hRpos.le) (cutoff_fderiv_le hRpos) |
| 94 | have hSob : B ≤ WeightedSobolev.weightedSobolevConstant * |
| 95 | (A + (derivativeConstant 1 * M) / R) := by |
| 96 | apply hSob0.trans |
| 97 | apply mul_le_mul_of_nonneg_left _ WeightedSobolev.weightedSobolevConstant_pos.le |
| 98 | apply add_le_add_right |
| 99 | calc |
| 100 | derivativeConstant 1 / R * comparisonLpNorm 2 (fun x => (u - v) (t, x)) ≤ |
| 101 | derivativeConstant 1 / R * M := mul_le_mul_of_nonneg_left (hM t htcc) |
| 102 | (div_nonneg (derivativeConstant_pos 1).le hRpos.le) |
| 103 | _ = _ := by ring |
| 104 | have hc := LocalizedFluxEstimates.neg_coupling_le_weightedEnergy |
| 105 | (u := u) (w := u - v) (t := t) |
| 106 | (weight_smooth R).continuous (weight_hasCompactSupport hRpos) (weight_nonneg R) |
| 107 | (hut.of_le (by simp)) hwt.continuous (hG t htcc) |
| 108 | have hl := (LocalizedFluxEstimates.weight_laplacian_flux_bound hRpos hw2).2 |
| 109 | have hl' : |∫ x : Space, ‖(u - v) (t, x)‖ ^ 2 * |
| 110 | ∑ i : Fin 3, partialD i (partialD i (weight R)) x| ≤ |
| 111 | LocalizedFluxEstimates.weightLaplacianConstant * M ^ 2 / R ^ 2 := by |
| 112 | apply hl.trans |
| 113 | calc |
| 114 | _ ≤ (LocalizedFluxEstimates.weightLaplacianConstant / R ^ 2) * M ^ 2 := |
| 115 | mul_le_mul_of_nonneg_left (pow_le_pow_left₀ hm (hM t htcc) 2) |
| 116 | (div_nonneg LocalizedFluxEstimates.weightLaplacianConstant_pos.le (sq_nonneg _)) |
| 117 | _ = _ := by ring |
| 118 | have htflux := (LocalizedFluxEstimates.transport_flux_bound |
| 119 | ((cutoff_smooth R).of_le (by simp)) (cutoff_hasCompactSupport hRpos) |
| 120 | hut.continuous hvt.continuous hw2 (cutoff_nonneg R) (cutoff_le_one R) |
| 121 | (div_nonneg (derivativeConstant_pos 1).le hRpos.le) (cutoff_fderiv_le hRpos) |
| 122 | (hvanish R ((le_max_right _ _).trans hR) t htcc)).2 |
| 123 | have htflux' : |∫ x : Space, ‖(u - v) (t, x)‖ ^ 2 * |
| 124 | fderiv ℝ (weight R) x (v (t, x))| ≤ |
| 125 | (8 * derivativeConstant 1 * M ^ (3 / 2 : ℝ)) / R * B ^ (3 / 2 : ℝ) := by |
| 126 | apply htflux.trans |
| 127 | calc |
| 128 | _ ≤ (8 * (derivativeConstant 1 / R)) * M ^ (3 / 2 : ℝ) * B ^ (3 / 2 : ℝ) := by |
| 129 | apply mul_le_mul_of_nonneg_right _ (Real.rpow_nonneg hB _) |
| 130 | exact mul_le_mul_of_nonneg_left |
| 131 | (Real.rpow_le_rpow hm (hM t htcc) (by norm_num)) |
| 132 | (mul_nonneg (by norm_num) (div_nonneg (derivativeConstant_pos 1).le hRpos.le)) |
| 133 | _ = _ := by ring |
| 134 | have hpflux := hpressure R hR1 t ht |
| 135 | have hbalance := LocalizedDifferenceEnergy.difference_energy_balance |
| 136 | (weight_smooth R) (weight_hasCompactSupport hRpos) hut hvt |
| 137 | (spatial_smooth hp htcc) (spatial_smooth hq htcc) |
| 138 | (time_differentiable_at_interior hu ht) (time_differentiable_at_interior hv ht) |
| 139 | (hdu t ht) (hdv t ht) (hNS t ht) |
| 140 | apply hrate R hR1 A hA B hB hSob |
| 141 | (weightedEnergy (weight R) (u - v) t) (weightedEnergyRate (weight R) (u - v) t) G |
| 142 | rw [hAsq, hbalance] |
| 143 | have hlle := (le_abs_self (∫ x : Space, ‖(u - v) (t, x)‖ ^ 2 * |
| 144 | ∑ i : Fin 3, partialD i (partialD i (weight R)) x)).trans hl' |
| 145 | have htle := (le_abs_self (∫ x : Space, ‖(u - v) (t, x)‖ ^ 2 * |
| 146 | fderiv ℝ (weight R) x (v (t, x)))).trans htflux' |
| 147 | have hple : (∫ x : Space, (p - q) (t, x) * |
| 148 | fderiv ℝ (weight R) x ((u - v) (t, x))) ≤ CP * pressureEnvelope R A B := |
| 149 | (le_abs_self _).trans hpflux |
| 150 | have hsum := add_le_add (add_le_add |
| 151 | (add_le_add hc (mul_le_mul_of_nonneg_left hlle (by norm_num : (0 : ℝ) ≤ 1 / 2))) |
| 152 | (mul_le_mul_of_nonneg_left htle (by norm_num : (0 : ℝ) ≤ 1 / 2))) hple |
| 153 | convert! hsum using 1 |
| 154 | dsimp only [C0, C1, pressureEnvelope] |
| 155 | ring |
| 156 | intro t ht x |
| 157 | exact sub_eq_zero.mp (hwzero t ht x) |
| 158 | |
| 159 | end NavierStokesR3.WholeSpaceComparisonClosure |