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.MeanWeakCurl |
| 2 | |
| 3 | /-! Pressure cancellation against compactly supported solenoidal vector tests. |
| 4 | |
| 5 | The scalar pressure needs only ordinary smoothness. In particular, neither |
| 6 | the pressure nor its gradient is assumed to be globally square integrable. |
| 7 | -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace EulerComparatorPressure |
| 12 | |
| 13 | open MeasureTheory InnerProductSpace EulerSmoothLimit EulerVectorCalculus |
| 14 | EulerMeanSolenoidal EulerMeanPressure |
| 15 | open scoped ContDiff |
| 16 | |
| 17 | /-- Integration by parts with compact support on the vector test, rather than |
| 18 | on the scalar potential. -/ |
| 19 | theorem compact_vector_gradient_integration_by_parts (φ : Space → Space) |
| 20 | (hφ : ContDiff ℝ ∞ φ) (hc : HasCompactSupport φ) |
| 21 | (p : Space → ℝ) (hp : ContDiff ℝ ∞ p) : |
| 22 | (∫ x, ⟪φ x, gradient p x⟫_ℝ) = -∫ x, p x * divergence φ x := by |
| 23 | let φi (i : Fin 3) (x : Space) := φ x i |
| 24 | have hφi (i : Fin 3) : ContDiff ℝ ∞ (φi i) := |
| 25 | (EuclideanSpace.proj i : Space →L[ℝ] ℝ).contDiff.comp hφ |
| 26 | have hci (i : Fin 3) : HasCompactSupport (φi i) := |
| 27 | hc.comp_left (g := fun v : Space => v i) rfl |
| 28 | have hi₁ (i : Fin 3) : Integrable (fun x => partialDerivative p i x * φi i x) := |
| 29 | ((contDiff_partialDerivative p hp i).continuous.mul |
| 30 | (hφi i).continuous).integrable_of_hasCompactSupport (hci i).mul_left |
| 31 | have hi₂ (i : Fin 3) : Integrable (fun x => p x * partialDerivative (φi i) i x) := |
| 32 | (hp.continuous.mul (contDiff_partialDerivative _ (hφi i) i).continuous).integrable_of_hasCompactSupport |
| 33 | ((hci i).fderiv_apply ℝ (EuclideanSpace.single i 1)).mul_left |
| 34 | have hibp (i : Fin 3) : (∫ x, partialDerivative p i x * φi i x) = |
| 35 | -∫ x, p x * partialDerivative (φi i) i x := |
| 36 | scalar_test_ibp p (φi i) hp (hφi i) (hci i) i |
| 37 | have hinner (x : Space) : ⟪φ x, gradient p x⟫_ℝ = |
| 38 | ∑ i : Fin 3, partialDerivative p i x * φi i x := by |
| 39 | rw [real_inner_comm, inner_gradient_left] |
| 40 | have hre : ∑ i : Fin 3, φ x i • (EuclideanSpace.single i 1 : Space) = φ x := by |
| 41 | simpa only [EuclideanSpace.basisFun_repr, EuclideanSpace.basisFun_apply] using |
| 42 | (EuclideanSpace.basisFun (Fin 3) ℝ).sum_repr (φ x) |
| 43 | calc |
| 44 | fderiv ℝ p x (φ x) = |
| 45 | fderiv ℝ p x (∑ i : Fin 3, φ x i • EuclideanSpace.single i 1) := |
| 46 | congrArg (fderiv ℝ p x) hre.symm |
| 47 | _ = ∑ i : Fin 3, partialDerivative p i x * φi i x := by |
| 48 | simp only [map_sum, map_smul, smul_eq_mul, partialDerivative, φi, mul_comm] |
| 49 | have hdiv (x : Space) : p x * divergence φ x = |
| 50 | ∑ i : Fin 3, p x * partialDerivative (φi i) i x := by |
| 51 | rw [divergence_eq_coordinate_sum, Finset.mul_sum] |
| 52 | apply Finset.sum_congr rfl |
| 53 | intro i _ |
| 54 | congr 1 |
| 55 | exact (fderiv_coordinate φ x ((hφ.differentiable (by simp)).differentiableAt) |
| 56 | i (EuclideanSpace.single i 1)).symm |
| 57 | simp_rw [hinner, hdiv] |
| 58 | rw [integral_finsetSum _ (fun i _ => hi₁ i), |
| 59 | integral_finsetSum _ (fun i _ => hi₂ i)] |
| 60 | simp only [hibp, Finset.sum_neg_distrib] |
| 61 | |
| 62 | /-- An arbitrary smooth scalar pressure cancels against a compact smooth |
| 63 | divergence-free vector test. -/ |
| 64 | theorem compact_solenoidal_pressure_pairing_zero (φ : Space → Space) |
| 65 | (hφ : ContDiff ℝ ∞ φ) (hc : HasCompactSupport φ) |
| 66 | (hdiv : ∀ x, divergence φ x = 0) |
| 67 | (p : Space → ℝ) (hp : ContDiff ℝ ∞ p) : |
| 68 | (∫ x, ⟪φ x, gradient p x⟫_ℝ) = 0 := by |
| 69 | rw [compact_vector_gradient_integration_by_parts φ hφ hc p hp] |
| 70 | simp only [hdiv, mul_zero, integral_zero, neg_zero] |
| 71 | |
| 72 | end EulerComparatorPressure |