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.R3LocalizedPressureTests |
| 2 | import NavierStokes.R3PositiveTests |
| 3 | |
| 4 | /-! |
| 5 | # Transfer of the uniform Gaussian estimate to the physical pressure |
| 6 | |
| 7 | The physical pressure is used only on compact tests. Its spatially |
| 8 | localized flux is continuous, so square time tests recover the bound at |
| 9 | every interior time. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | namespace NavierStokes.R3PhysicalPressureBound |
| 14 | |
| 15 | open Set Filter MeasureTheory TemperedDistribution ProblemStatement |
| 16 | open R3SpaceTime R3SpaceTimePressure R3WeakPressure R3TimeLocalization R3LocalizedPressure |
| 17 | open R3LocalizedPressureTests R3PositiveTests |
| 18 | open scoped SchwartzMap LineDeriv Topology ContDiff ENNReal |
| 19 | |
| 20 | def Recovery (s : Set ℝ) (G : Fin 3 → Fin 3 → Domain → ℂ) (p : Domain → ℂ) : Prop := |
| 21 | ∀ a : ℝ → ℝ, ContDiff ℝ ∞ a → HasCompactSupport a → tsupport a ⊆ s → |
| 22 | ∃ gLp : Fin 3 → Fin 3 → Lp ℂ 1 (volume : Measure Domain), |
| 23 | (∀ i j, gLp i j =ᵐ[volume] localize a (G i j)) ∧ |
| 24 | ∀ i, Represents (∂_{spaceDirection i} (stressPressure gLp)) |
| 25 | (localize a (directional (spaceDirection i) p)) |
| 26 | |
| 27 | theorem physical_flux_le {s : Set ℝ} (hs : IsOpen s) |
| 28 | (G : Fin 3 → Fin 3 → Domain → ℂ) (p : Domain → ℂ) |
| 29 | (hp : ContDiffOn ℝ ∞ p (timeProj ⁻¹' s)) (hrec : Recovery s G p) |
| 30 | (W : Fin 3 → Domain → ℂ) (hW : ∀ i, ContDiffOn ℝ ∞ (W i) (timeProj ⁻¹' s)) |
| 31 | (K : Set Space) (hK : IsCompact K) |
| 32 | (hWK : ∀ i z, timeProj z ∈ s → spaceProj z ∉ K → W i z = 0) |
| 33 | (f H : ℝ → ℝ) (hf : ContinuousOn f s) (hH : ContinuousOn H s) |
| 34 | (hphysical : ∀ t ∈ s, (∫ x : Space, functionDivergence W (pack t x) * p (pack t x)) = (f t : ℂ)) |
| 35 | (happrox : ∀ n i j t, t ∈ s → |
| 36 | ‖∫ x : Space, functionDivergence W (pack t x) * |
| 37 | R3RieszApproximation.regularized n i j (fun y => G i j (pack t y)) x‖ ≤ H t) : |
| 38 | ∀ t ∈ s, |f t| ≤ 9 * H t := by |
| 39 | apply abs_le_of_square_test_integrals hs hf (continuousOn_const.mul hH) |
| 40 | intro a ha hac has |
| 41 | obtain ⟨gLp, hgLp, hrepr⟩ := hrec a ha hac has |
| 42 | have hG (i j : Fin 3) : MemLp (localize a (G i j)) 1 := |
| 43 | (memLp_congr_ae (hgLp i j)).mp (Lp.memLp (gLp i j)) |
| 44 | have heq : gLp = fun i j => (hG i j).toLp (localize a (G i j)) := by |
| 45 | funext i j |
| 46 | exact Lp.ext ((hgLp i j).trans (hG i j).coeFn_toLp.symm) |
| 47 | have hP (i : Fin 3) : Represents |
| 48 | (∂_{spaceDirection i} (stressPressure (fun i j => (hG i j).toLp (localize a (G i j))))) |
| 49 | (directional (spaceDirection i) (localize a p)) := by |
| 50 | rw [← heq, directional_localize_space hs ha has hp] |
| 51 | exact hrepr i |
| 52 | have hlim := localized_pairing_tendsto hs a ha hac has G p hp hG hP W hW K hK hWK |
| 53 | have ha₂ : HasCompactSupport (fun t => a t ^ 2) := hac.comp_left (g := fun r : ℝ => r ^ 2) (by norm_num) |
| 54 | have ha₂s : tsupport (fun t => a t ^ 2) ⊆ s := |
| 55 | (tsupport_comp_subset (g := fun r : ℝ => r ^ 2) (by norm_num) a).trans has |
| 56 | have hmajor : Integrable (fun t => a t ^ 2 * H t) := |
| 57 | (continuous_test_product hs (ha.continuous.pow 2) hH ha₂s).integrable_of_hasCompactSupport ha₂.mul_right |
| 58 | have hinside {t : ℝ} (ht : a t ≠ 0) : t ∈ s := has (subset_tsupport _ ht) |
| 59 | have hbound (n : ℕ) (i j : Fin 3) : |
| 60 | ‖∫ t : ℝ, (a t ^ 2 : ℝ) * (∫ x : Space, functionDivergence W (pack t x) * |
| 61 | R3RieszApproximation.regularized n i j (fun y => G i j (pack t y)) x)‖ ≤ |
| 62 | ∫ t : ℝ, a t ^ 2 * H t := by |
| 63 | apply norm_integral_le_of_norm_le hmajor |
| 64 | exact Eventually.of_forall fun t => by |
| 65 | by_cases ht : a t = 0 |
| 66 | · simp [ht] |
| 67 | · rw [norm_mul, Complex.norm_real, Real.norm_of_nonneg (sq_nonneg _)] |
| 68 | exact mul_le_mul_of_nonneg_left (happrox n i j t (hinside ht)) (sq_nonneg _) |
| 69 | have hsum (n : ℕ) : |
| 70 | ‖∑ i : Fin 3, ∑ j : Fin 3, ∫ t : ℝ, (a t ^ 2 : ℝ) * |
| 71 | (∫ x : Space, functionDivergence W (pack t x) * |
| 72 | R3RieszApproximation.regularized n i j (fun y => G i j (pack t y)) x)‖ ≤ |
| 73 | 9 * ∫ t : ℝ, a t ^ 2 * H t := by |
| 74 | apply (norm_sum_le _ _).trans |
| 75 | apply (Finset.sum_le_sum (fun i _ => (norm_sum_le _ _).trans |
| 76 | (Finset.sum_le_sum (fun j _ => hbound n i j)))).trans_eq |
| 77 | simp |
| 78 | ring |
| 79 | have hlimbound := le_of_tendsto hlim.norm (Eventually.of_forall hsum) |
| 80 | have hphys : (∫ t : ℝ, (a t ^ 2 : ℝ) * (∫ x : Space, functionDivergence W (pack t x) * p (pack t x))) = |
| 81 | Complex.ofReal (∫ t : ℝ, a t ^ 2 * f t) := by |
| 82 | rw [← integral_complex_ofReal] |
| 83 | apply integral_congr_ae |
| 84 | exact Eventually.of_forall fun t => by |
| 85 | dsimp only |
| 86 | by_cases ht : a t = 0 |
| 87 | · simp [ht] |
| 88 | · rw [hphysical t (hinside ht), Complex.ofReal_mul] |
| 89 | rw [hphys, Complex.norm_real, Real.norm_eq_abs] at hlimbound |
| 90 | have he (t : ℝ) : a t ^ 2 * (9 * H t) = 9 * (a t ^ 2 * H t) := by ring |
| 91 | simpa only [Pi.mul_apply, he, integral_const_mul] using hlimbound |
| 92 | |
| 93 | end NavierStokes.R3PhysicalPressureBound |