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.ProjectedEulerPairing |
| 2 | import Euler.CompactProjectedPairing |
| 3 | import Euler.CompactSolenoidalDensity |
| 4 | |
| 5 | /-! |
| 6 | # The Comparator solution satisfies the weak projected Euler equation |
| 7 | |
| 8 | The test family is the dense family of compact smooth solenoidal fields. |
| 9 | Only pointwise identification of the supplied smooth `L²` fields with the |
| 10 | Comparator velocity is assumed; no time regularity of those fields is used. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open Set Filter MeasureTheory InnerProductSpace EulerSmoothLimit EulerLpTranslation |
| 16 | EulerLpTranslation.SmoothL2Field EulerMeanSolenoidal EulerOrdinarySobolev |
| 17 | open scoped ContDiff Topology |
| 18 | |
| 19 | namespace Euler.ComparatorBridge |
| 20 | |
| 21 | private theorem inner_smoothField_eq_integral |
| 22 | (g : L2) (φ : Space → Space) (hg : (g : Space → Space) =ᵐ[volume] φ) |
| 23 | (A : SmoothL2Field Space) : |
| 24 | inner ℝ g A.toLp = ∫ x, inner ℝ (φ x) (A.field x) := by |
| 25 | rw [MeasureTheory.L2.inner_def] |
| 26 | apply integral_congr_ae |
| 27 | filter_upwards [hg, A.toLp_ae] with x hgx hAx |
| 28 | rw [hgx, hAx] |
| 29 | |
| 30 | /-- An arbitrary compact smooth solenoidal representative has the clamped |
| 31 | weak projected derivative used by the Sobolev time-upgrade theorem. -/ |
| 32 | theorem comparator_compact_rep_pairing_hasDerivAt |
| 33 | {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} |
| 34 | (h : EulerExistenceAndSmoothnessR3 u₀ v p) {T : ℝ} (hT : 0 < T) |
| 35 | (A : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 36 | (hA : ∀ s, (A s).field = (v · s)) |
| 37 | (g : solenoidalSpace) (φ : Space → Space) |
| 38 | (hφ : ContDiff ℝ ∞ φ) (hφc : HasCompactSupport φ) |
| 39 | (hφdiv : ∀ x, EulerSmoothLimit.divergence φ x = 0) |
| 40 | (hg : ((g : L2) : Space → Space) =ᵐ[volume] φ) |
| 41 | (t : ℝ) (ht : t ∈ Ioo 0 T) : |
| 42 | HasDerivAt (fun r => inner ℝ (g : L2) (A (projIcc 0 T hT.le r)).toLp) |
| 43 | (inner ℝ (g : L2) (projectedRhs (A ⟨t, ht.1.le, ht.2.le⟩)).toLp) t := by |
| 44 | have hd := comparator_clamped_compact_pairing_hasDerivAt h hT A hA |
| 45 | (g : L2) φ hφ hφc hφdiv hg t ht |
| 46 | have hR : -(∫ x, inner ℝ (φ x) (fderiv ℝ (v · t) x (v x t))) = |
| 47 | inner ℝ (g : L2) (projectedRhs (A ⟨t, ht.1.le, ht.2.le⟩)).toLp := by |
| 48 | rw [EulerCompactProjectedPairing.inner_projectedRhs _ g.property, |
| 49 | inner_smoothField_eq_integral _ φ hg] |
| 50 | simp only [advectionField_field, hA] |
| 51 | rwa [hR] at hd |
| 52 | |
| 53 | /-- The exact weak projected derivative on the dense compact solenoidal |
| 54 | test family. This is derived from the Comparator Euler equation itself. -/ |
| 55 | theorem comparator_projected_pairing_hasDerivAt |
| 56 | {u₀ : Space → Space} {v : Space → ℝ → Space} {p : Space → ℝ → ℝ} |
| 57 | (h : EulerExistenceAndSmoothnessR3 u₀ v p) {T : ℝ} (hT : 0 < T) |
| 58 | (A : Icc (0 : ℝ) T → SmoothL2Field Space) |
| 59 | (hA : ∀ s, (A s).field = (v · s)) |
| 60 | (g : solenoidalSpace) (hg : g ∈ compactSolenoidalTests) |
| 61 | (t : ℝ) (ht : t ∈ Ioo 0 T) : |
| 62 | HasDerivAt (fun r => inner ℝ (g : L2) (A (projIcc 0 T hT.le r)).toLp) |
| 63 | (inner ℝ (g : L2) (projectedRhs (A ⟨t, ht.1.le, ht.2.le⟩)).toLp) t := by |
| 64 | obtain ⟨φ, hφ, hφc, hφdiv, hgrep⟩ := compactSolenoidalTests_representation g hg |
| 65 | exact comparator_compact_rep_pairing_hasDerivAt h hT A hA g φ |
| 66 | hφ hφc hφdiv hgrep t ht |
| 67 | |
| 68 | end Euler.ComparatorBridge |