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.CorrectionDifference |
| 2 | import Euler.CorrectionStabilityConstants |
| 3 | import Euler.SquaredMetricStability |
| 4 | |
| 5 | /-! Actual pointwise squared metric energy for the difference of viscous corrections. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | namespace EulerSobolevDifferenceEnergy |
| 10 | |
| 11 | open MeasureTheory Set InnerProductSpace EulerLiftedGradientSpace EulerLiftedPressure |
| 12 | EulerSpatialSobolevInverse EulerCylinderSobolevSpace EulerCorrectionOperators EulerCorrectionDifference |
| 13 | EulerCorrectionStabilityConstants EulerSobolevTransport |
| 14 | EulerSobolevMetricTransport EulerSobolevHeatGenerator EulerMetricHeatEnergy EulerSobolevL2Product |
| 15 | EulerSquaredMetricStability |
| 16 | open scoped Topology |
| 17 | |
| 18 | variable (period : ℝ) [Fact (0 < period)] |
| 19 | |
| 20 | /-- The existing Sobolev normed-group instance for the actual difference-energy calculation. -/ |
| 21 | local instance energySobolevGroup (q : ℕ) : NormedAddCommGroup (SobolevSpace period q) := inferInstance |
| 22 | /-- The existing real Sobolev module instance for the actual difference-energy calculation. -/ |
| 23 | local instance energySobolevSpace (q : ℕ) : NormedSpace ℝ (SobolevSpace period q) := inferInstance |
| 24 | |
| 25 | /-- Actual Hq transport has the uniform variable-metric pairing bound used for viscosity differences. -/ |
| 26 | theorem difference_transport_bound {q : ℕ} {T : Type*} [TopologicalSpace T] |
| 27 | (D : CorrectionData period q T) (hq : 6 ≤ q) (t : T) (K : SmoothCoefficient period) |
| 28 | (u v : SobolevSpace period (q+1)) (Kx Z R : ℝ) |
| 29 | (hKx : (K.firstBound : ℝ) ≤ Kx) (hZ : ‖D.approximation t‖ ≤ Z) (hu : ‖u‖ ≤ R) |
| 30 | (hsym : ∀ x a b, ⟪K.coefficient x a,b⟫_ℝ=⟪a,K.coefficient x b⟫_ℝ) |
| 31 | (hz : value period (D.approximation t) ∈ divergenceFreeSpace period D.κ D.direction) |
| 32 | (hud : value period u ∈ divergenceFreeSpace period D.κ D.direction) : |
| 33 | |⟪K.operator (value period (u-v)),value period (transportBilinear period hq |
| 34 | (velocityComponents D.κ D.direction) (velocityComponents_norm D.κ D.direction D.scale_bound D.direction_bound) |
| 35 | (D.approximation t+u) (u-v))⟫_ℝ| ≤ Kx*velocityBound period q Z R*‖value period (u-v)‖^2 := by |
| 36 | have hz0 := (norm_nonneg (D.approximation t)).trans hZ |
| 37 | have hr0 := (norm_nonneg u).trans hu |
| 38 | have hV := velocityBound_nonneg period q Z R hz0 hr0 |
| 39 | let z := truncateOperator period q (D.approximation t+u) |
| 40 | have hzB : ∀ᵐ x ∂liftMeasure period, ‖value period z x‖ ≤ (velocityBound period q Z R).toNNReal := by |
| 41 | filter_upwards [value_ae_bound period (by omega : 3 ≤ q) z] with x hx |
| 42 | rw [Real.coe_toNNReal _ hV] |
| 43 | apply hx.trans |
| 44 | unfold velocityBound |
| 45 | apply mul_le_mul_of_nonneg_left _ (sobolevEmbeddingConstant_nonneg period q) |
| 46 | exact (truncateOperator_bound period (D.approximation t+u)).trans ((norm_add_le _ _).trans (add_le_add hZ hu)) |
| 47 | have hzd : value period z ∈ divergenceFreeSpace period D.κ D.direction := by |
| 48 | change value period (D.approximation t)+value period u ∈ _ |
| 49 | exact (divergenceFreeSpace period D.κ D.direction).add_mem hz hud |
| 50 | have h := metric_transport_bound period (by omega : 3 ≤ q) D.κ D.direction K z |
| 51 | (restrictOperator period (by omega : 1 ≤ q+1) (u-v)) hsym hzd (velocityBound period q Z R).toNNReal hzB |
| 52 | rw [transportBilinear_eq_transportOperator period hq D.κ D.direction D.scale_bound D.direction_bound] |
| 53 | apply h.trans |
| 54 | rw [Real.coe_toNNReal _ hV] |
| 55 | have hKx0 := K.firstBound.coe_nonneg.trans hKx |
| 56 | have hd := add_le_add D.scale_bound D.direction_bound |
| 57 | have hprod := mul_le_mul hKx hd (add_nonneg (abs_nonneg _) (norm_nonneg _)) hKx0 |
| 58 | have hβ : (1/2 : ℝ)*K.firstBound*((|D.κ|+‖D.direction‖)*velocityBound period q Z R) ≤ |
| 59 | Kx*velocityBound period q Z R := by |
| 60 | have hh := mul_le_mul_of_nonneg_right hprod hV |
| 61 | nlinarith |
| 62 | exact mul_le_mul_of_nonneg_right hβ (sq_nonneg _) |
| 63 | |
| 64 | /-- The actual Sobolev Laplacian has the fixed metric heat bound obtained by integration by parts. -/ |
| 65 | theorem difference_heat_bound {q : ℕ} (hq : 2 ≤ q) (K : SmoothCoefficient period) |
| 66 | (u : SobolevSpace period q) (c Kx : ℝ) (hc : 0 < c) |
| 67 | (hKx : (K.firstBound : ℝ) ≤ Kx) |
| 68 | (hpos : ∀ x a, c^2*‖a‖^2 ≤ ⟪K.coefficient x a,a⟫_ℝ) : |
| 69 | ⟪K.operator (value period u),laplacianEvaluation period q hq u⟫_ℝ ≤ |
| 70 | (2*Kx^2/c^2)*‖value period u‖^2 := by |
| 71 | rw [laplacianEvaluation_eq_jet] |
| 72 | have h := metric_heat_bound period K (value period u) |
| 73 | (EulerH6Pressure.SpatialJet.restrict (toJet period u) 2 hq) c hc hpos |
| 74 | have hd : 0 ≤ ∑ i : Fin 4, ‖(EulerH6Pressure.SpatialJet.restrict (toJet period u) 2 hq).word (fun _ : Fin 1 => i)‖^2 := |
| 75 | Finset.sum_nonneg (fun i _ => sq_nonneg _) |
| 76 | have hsq : (K.firstBound : ℝ)^2 ≤ Kx^2 := by nlinarith [K.firstBound.coe_nonneg] |
| 77 | have hcoef := div_le_div_of_nonneg_right (mul_le_mul_of_nonneg_left hsq (by norm_num : (0 : ℝ) ≤ 2)) (sq_nonneg c) |
| 78 | have hprod := mul_le_mul_of_nonneg_right hcoef (sq_nonneg ‖value period u‖) |
| 79 | nlinarith [sq_nonneg c] |
| 80 | |
| 81 | end EulerSobolevDifferenceEnergy |