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.R3PressurePairing |
| 2 | |
| 3 | /-! |
| 4 | # Compact time tests for the physical pressure flux |
| 5 | |
| 6 | Using the same time cutoff in the equation and vector test produces its |
| 7 | square. No global growth bound on the physical pressure is needed. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | namespace NavierStokes.R3LocalizedPressureTests |
| 12 | |
| 13 | open Set Filter MeasureTheory TemperedDistribution ProblemStatement |
| 14 | open R3SpaceTime R3SpaceTimePressure R3WeakPressure R3TimeLocalization R3PressurePairing |
| 15 | open R3LocalizedPressure |
| 16 | open scoped SchwartzMap LineDeriv Topology ContDiff ENNReal |
| 17 | |
| 18 | theorem localize_compact {s : Set ℝ} {a : ℝ → ℝ} (ha : HasCompactSupport a) |
| 19 | (has : tsupport a ⊆ s) {W : Domain → ℂ} {K : Set Space} (hK : IsCompact K) |
| 20 | (hsupp : ∀ z, timeProj z ∈ s → spaceProj z ∉ K → W z = 0) : |
| 21 | HasCompactSupport (localize a W) := by |
| 22 | apply HasCompactSupport.intro ((ha.prod hK).image (WithLp.prod_continuous_toLp 2 ℝ Space)) |
| 23 | intro z hz |
| 24 | by_cases ht : timeProj z ∈ tsupport a |
| 25 | · have hx : spaceProj z ∉ K := by |
| 26 | intro hx |
| 27 | exact hz ⟨(timeProj z, spaceProj z), ⟨ht, hx⟩, rfl⟩ |
| 28 | simp [localize, hsupp z (has ht) hx] |
| 29 | · simp [localize, image_eq_zero_of_notMem_tsupport ht] |
| 30 | |
| 31 | theorem regularized_localize (a : ℝ → ℝ) (G : Domain → ℂ) (n : ℕ) (i j : Fin 3) (z : Domain) : |
| 32 | R3SpatialConvolution.regularized n i j (localize a G) z = |
| 33 | (a (timeProj z) : ℂ) * R3RieszApproximation.regularized n i j |
| 34 | (fun x => G (pack (timeProj z) x)) (spaceProj z) := by |
| 35 | unfold R3SpatialConvolution.regularized R3RieszApproximation.regularized R3ConvolutionYoung.scalarConvolution |
| 36 | simp only [localize, timeProj_pack] |
| 37 | rw [← integral_const_mul] |
| 38 | apply integral_congr_ae |
| 39 | exact Eventually.of_forall fun y => by ring |
| 40 | |
| 41 | theorem integral_localized_product (a : ℝ → ℝ) (F G : Domain → ℂ) |
| 42 | (hi : Integrable (fun z => localize a F z * localize a G z)) : |
| 43 | (∫ z : Domain, localize a F z * localize a G z) = |
| 44 | ∫ t : ℝ, (a t ^ 2 : ℝ) * (∫ x : Space, F (pack t x) * G (pack t x)) := by |
| 45 | rw [integral_eq_prod] |
| 46 | erw [integral_prod _ ((integrable_iff_prod _).mp hi)] |
| 47 | apply integral_congr_ae |
| 48 | filter_upwards with t |
| 49 | rw [← integral_const_mul] |
| 50 | apply integral_congr_ae |
| 51 | exact Eventually.of_forall fun x => by simp only [localize, timeProj_pack]; push_cast; ring |
| 52 | |
| 53 | theorem compact_testDivergence (Ψ : Fin 3 → 𝓢(Domain, ℂ)) |
| 54 | (hΨ : ∀ i, HasCompactSupport (Ψ i : Domain → ℂ)) : |
| 55 | HasCompactSupport (testDivergence Ψ : Domain → ℂ) := by |
| 56 | have hh : HasCompactSupport (∑ i : Fin 3, ((∂_{spaceDirection i} (Ψ i) : 𝓢(Domain, ℂ)) : Domain → ℂ)) := |
| 57 | HasCompactSupport.finset_sum (fun i _ => compact_lineDeriv (Ψ i) (hΨ i) (spaceDirection i)) |
| 58 | convert! hh using 1 |
| 59 | |
| 60 | /-- The precise time-integrated pairing supplied by pressure recovery. -/ |
| 61 | theorem localized_pairing_tendsto {s : Set ℝ} (hs : IsOpen s) |
| 62 | (a : ℝ → ℝ) (ha : ContDiff ℝ ∞ a) (hac : HasCompactSupport a) (has : tsupport a ⊆ s) |
| 63 | (G : Fin 3 → Fin 3 → Domain → ℂ) (p : Domain → ℂ) |
| 64 | (hp : ContDiffOn ℝ ∞ p (timeProj ⁻¹' s)) |
| 65 | (hG : ∀ i j, MemLp (localize a (G i j)) 1) |
| 66 | (hP : ∀ i, Represents |
| 67 | (∂_{spaceDirection i} (stressPressure (fun i j => (hG i j).toLp (localize a (G i j))))) |
| 68 | (directional (spaceDirection i) (localize a p))) |
| 69 | (W : Fin 3 → Domain → ℂ) (hW : ∀ i, ContDiffOn ℝ ∞ (W i) (timeProj ⁻¹' s)) |
| 70 | (K : Set Space) (hK : IsCompact K) |
| 71 | (hWK : ∀ i z, timeProj z ∈ s → spaceProj z ∉ K → W i z = 0) : |
| 72 | Tendsto (fun n => ∑ i : Fin 3, ∑ j : Fin 3, |
| 73 | ∫ t : ℝ, (a t ^ 2 : ℝ) * (∫ x : Space, |
| 74 | functionDivergence W (pack t x) * R3RieszApproximation.regularized n i j |
| 75 | (fun y => G i j (pack t y)) x)) atTop |
| 76 | (𝓝 (∫ t : ℝ, (a t ^ 2 : ℝ) * (∫ x : Space, functionDivergence W (pack t x) * p (pack t x)))) := by |
| 77 | have hWc i : HasCompactSupport (localize a (W i)) := localize_compact hac has hK (hWK i) |
| 78 | have hWs i : ContDiff ℝ ∞ (localize a (W i)) := localize_contDiff ha hs has (hW i) |
| 79 | let Ψ : Fin 3 → 𝓢(Domain, ℂ) := fun i => (hWc i).toSchwartzMap (hWs i) |
| 80 | have hΨc (i : Fin 3) : HasCompactSupport (Ψ i : Domain → ℂ) := hWc i |
| 81 | have hdiv : (testDivergence Ψ : Domain → ℂ) = localize a (functionDivergence W) := by |
| 82 | funext z |
| 83 | change (∑ i : Fin 3, directional (spaceDirection i) (localize a (W i)) z) = _ |
| 84 | have hh := congrFun (divergence_localize hs ha has hW) z |
| 85 | exact hh |
| 86 | have hpc : ContDiff ℝ ∞ (localize a p) := localize_contDiff ha hs has hp |
| 87 | have hlim := actual_pressure_pairing_tendsto (fun i j => localize a (G i j)) hG |
| 88 | (localize a p) hpc hP Ψ hΨc |
| 89 | have hdC := compact_testDivergence Ψ hΨc |
| 90 | have hintP : Integrable (fun z => testDivergence Ψ z * localize a p z) := |
| 91 | ((testDivergence Ψ).continuous.mul hpc.continuous).integrable_of_hasCompactSupport hdC.mul_right |
| 92 | have eqP : (∫ z : Domain, testDivergence Ψ z * localize a p z) = |
| 93 | ∫ t : ℝ, (a t ^ 2 : ℝ) * (∫ x : Space, functionDivergence W (pack t x) * p (pack t x)) := by |
| 94 | rw [hdiv] at hintP ⊢ |
| 95 | exact integral_localized_product a _ p hintP |
| 96 | have eqG (n : ℕ) (i j : Fin 3) : |
| 97 | (∫ z : Domain, testDivergence Ψ z * R3SpatialConvolution.regularized n i j (localize a (G i j)) z) = |
| 98 | ∫ t : ℝ, (a t ^ 2 : ℝ) * (∫ x : Space, functionDivergence W (pack t x) * |
| 99 | R3RieszApproximation.regularized n i j (fun y => G i j (pack t y)) x) := by |
| 100 | have hreg := R3SpatialConvolution.regularized_integrable n i j (memLp_one_iff_integrable.mp (hG i j)) |
| 101 | have hint := hreg.bdd_mul (testDivergence Ψ).continuous.aestronglyMeasurable |
| 102 | (Eventually.of_forall (SchwartzMap.norm_le_seminorm ℝ (testDivergence Ψ))) |
| 103 | rw [integral_eq_prod] |
| 104 | erw [integral_prod _ ((integrable_iff_prod _).mp hint)] |
| 105 | apply integral_congr_ae |
| 106 | filter_upwards with t |
| 107 | rw [← integral_const_mul] |
| 108 | apply integral_congr_ae |
| 109 | filter_upwards with x |
| 110 | rw [regularized_localize] |
| 111 | simp only [hdiv, localize, timeProj_pack, spaceProj_pack] |
| 112 | push_cast |
| 113 | ring |
| 114 | simpa only [eqP, eqG] using hlim |
| 115 | |
| 116 | end NavierStokes.R3LocalizedPressureTests |