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.LpBochnerRealization |
| 2 | import Mathlib.MeasureTheory.Integral.Bochner.Basic |
| 3 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.Basic |
| 4 | |
| 5 | /-! Actual integration of uniformly L²-bounded parameter families. |
| 6 | The result is proved directly on raw jointly measurable representatives, |
| 7 | without assuming a pre-existing Bochner path in the L² space. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | open MeasureTheory Filter Set |
| 12 | open scoped ENNReal |
| 13 | |
| 14 | namespace EulerLpParameterIntegral |
| 15 | |
| 16 | variable {α β E : Type*} [MeasurableSpace α] [MeasurableSpace β] |
| 17 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 18 | |
| 19 | omit [NormedSpace ℝ E] in |
| 20 | theorem integral_norm_sq_eq (μ : Measure α) (f : α → E) (hf : MemLp f 2 μ) : |
| 21 | (∫ x, ‖f x‖^2 ∂μ) = (eLpNorm f 2 μ).toReal^2 := by |
| 22 | have he := EulerLpBochnerRealization.norm_sq_eq_integral (hf.toLp f) |
| 23 | rw [Lp.norm_toLp] at he |
| 24 | apply Eq.trans _ he.symm |
| 25 | apply integral_congr_ae |
| 26 | filter_upwards [hf.coeFn_toLp] with x hx |
| 27 | rw [hx] |
| 28 | |
| 29 | /-- Bochner Cauchy--Schwarz against the constant function one. -/ |
| 30 | theorem norm_integral_sq_le (ν : Measure α) [IsFiniteMeasure ν] |
| 31 | (f : α → E) (hf : MemLp f 2 ν) : |
| 32 | ‖∫ s, f s ∂ν‖^2 ≤ ν.real univ*(∫ s, ‖f s‖^2 ∂ν) := by |
| 33 | have hp : (2 : ℝ).HolderConjugate 2 := by norm_num [Real.holderConjugate_iff] |
| 34 | have hn : MemLp (fun s => ‖f s‖) (ENNReal.ofReal (2 : ℝ)) ν := by simpa using hf.norm |
| 35 | have ho : MemLp (fun _ : α => (1 : ℝ)) (ENNReal.ofReal (2 : ℝ)) ν := memLp_const 1 |
| 36 | have h := integral_mul_le_Lp_mul_Lq_of_nonneg hp |
| 37 | (Eventually.of_forall (fun s => norm_nonneg (f s))) |
| 38 | (Eventually.of_forall (fun _ => show (0 : ℝ) ≤ 1 by norm_num)) hn ho |
| 39 | have hi : (∫ s, ‖f s‖ ∂ν) ≤ |
| 40 | Real.sqrt (∫ s, ‖f s‖^2 ∂ν)*Real.sqrt (ν.real univ) := by |
| 41 | simpa only [mul_one, Real.rpow_two, Real.one_rpow, integral_const, |
| 42 | smul_eq_mul, Real.sqrt_eq_rpow, one_pow] using h |
| 43 | have hb := (norm_integral_le_integral_norm f).trans hi |
| 44 | have hs := pow_le_pow_left₀ (norm_nonneg _) hb 2 |
| 45 | simpa only [mul_pow, |
| 46 | Real.sq_sqrt (integral_nonneg (fun s => sq_nonneg ‖f s‖)), |
| 47 | Real.sq_sqrt (measureReal_nonneg : 0 ≤ ν.real univ), mul_comm] using hs |
| 48 | |
| 49 | /-- The integral of a raw family with uniform L² bound C has L² bound |
| 50 | `measure(parameter space) * C`. This applies to time integration on a |
| 51 | finite interval and to periodic parameter averaging. -/ |
| 52 | theorem integral_memLp_and_bound |
| 53 | (ν : Measure α) [IsFiniteMeasure ν] (μ : Measure β) [SFinite μ] |
| 54 | (f : α × β → E) (hf : AEStronglyMeasurable f (ν.prod μ)) |
| 55 | (C : ℝ) (hC : 0 ≤ C) |
| 56 | (hbound : ∀ᵐ s ∂ν, MemLp (fun x => f (s,x)) 2 μ ∧ |
| 57 | (eLpNorm (fun x => f (s,x)) 2 μ).toReal ≤ C) : |
| 58 | MemLp (fun x => ∫ s, f (s,x) ∂ν) 2 μ ∧ |
| 59 | (eLpNorm (fun x => ∫ s, f (s,x) ∂ν) 2 μ).toReal ≤ ν.real univ*C := by |
| 60 | have hsq : AEStronglyMeasurable (fun p => ‖f p‖^2) (ν.prod μ) := hf.norm.pow 2 |
| 61 | have houterBound : ∀ᵐ s ∂ν, (∫ x, ‖f (s,x)‖^2 ∂μ) ≤ C^2 := by |
| 62 | filter_upwards [hbound] with s hs |
| 63 | rw [integral_norm_sq_eq μ _ hs.1] |
| 64 | exact pow_le_pow_left₀ ENNReal.toReal_nonneg hs.2 2 |
| 65 | have houter : Integrable (fun s => ∫ x, ‖f (s,x)‖^2 ∂μ) ν := by |
| 66 | apply (integrable_const (C^2)).mono' hsq.integral_prod_right' |
| 67 | filter_upwards [houterBound] with s hs |
| 68 | rw [Real.norm_of_nonneg (integral_nonneg (fun x => sq_nonneg ‖f (s,x)‖))] |
| 69 | exact hs |
| 70 | have hprod : Integrable (fun p => ‖f p‖^2) (ν.prod μ) := by |
| 71 | apply (integrable_prod_iff hsq).2 |
| 72 | constructor |
| 73 | · filter_upwards [hbound] with s hs |
| 74 | exact (memLp_two_iff_integrable_sq_norm hs.1.aestronglyMeasurable).1 hs.1 |
| 75 | · simpa only [norm_pow, norm_norm] using houter |
| 76 | have htime : ∀ᵐ x ∂μ, MemLp (fun s => f (s,x)) 2 ν := by |
| 77 | filter_upwards [hprod.prod_left_ae, hf.prodMk_right] with x hi hm |
| 78 | exact (memLp_two_iff_integrable_sq_norm hm).2 hi |
| 79 | have hg : AEStronglyMeasurable (fun x => ∫ s, f (s,x) ∂ν) μ := |
| 80 | hf.prod_swap.integral_prod_right' |
| 81 | have hdom : ∀ᵐ x ∂μ, ‖∫ s, f (s,x) ∂ν‖^2 ≤ |
| 82 | ν.real univ*(∫ s, ‖f (s,x)‖^2 ∂ν) := by |
| 83 | filter_upwards [htime] with x hx |
| 84 | exact norm_integral_sq_le ν _ hx |
| 85 | have hright : Integrable (fun x => ν.real univ*(∫ s, ‖f (s,x)‖^2 ∂ν)) μ := |
| 86 | hprod.integral_prod_right.const_mul _ |
| 87 | have hg2 : Integrable (fun x => ‖∫ s, f (s,x) ∂ν‖^2) μ := by |
| 88 | apply hright.mono' (hg.norm.pow 2) |
| 89 | filter_upwards [hdom] with x hx |
| 90 | simpa only [Pi.pow_apply, norm_pow, norm_norm] using hx |
| 91 | have hgLp : MemLp (fun x => ∫ s, f (s,x) ∂ν) 2 μ := |
| 92 | (memLp_two_iff_integrable_sq_norm hg).2 hg2 |
| 93 | refine ⟨hgLp,?_⟩ |
| 94 | have hfinal : (eLpNorm (fun x => ∫ s, f (s,x) ∂ν) 2 μ).toReal^2 ≤ |
| 95 | (ν.real univ*C)^2 := by |
| 96 | calc |
| 97 | _ = ∫ x, ‖∫ s, f (s,x) ∂ν‖^2 ∂μ := (integral_norm_sq_eq μ _ hgLp).symm |
| 98 | _ ≤ ∫ x, ν.real univ*(∫ s, ‖f (s,x)‖^2 ∂ν) ∂μ := integral_mono_ae hg2 hright hdom |
| 99 | _ = ν.real univ*(∫ s, ∫ x, ‖f (s,x)‖^2 ∂μ ∂ν) := by |
| 100 | rw [integral_const_mul] |
| 101 | exact congrArg (fun r => ν.real univ*r) (integral_integral_swap hprod).symm |
| 102 | _ ≤ ν.real univ*(∫ _ : α, C^2 ∂ν) := |
| 103 | mul_le_mul_of_nonneg_left (integral_mono_ae houter (integrable_const _) houterBound) |
| 104 | measureReal_nonneg |
| 105 | _ = _ := by rw [integral_const]; simp only [smul_eq_mul]; ring |
| 106 | exact (sq_le_sq₀ ENNReal.toReal_nonneg (mul_nonneg measureReal_nonneg hC)).mp hfinal |
| 107 | |
| 108 | theorem intervalIntegral_memLp_and_bound |
| 109 | (T : ℝ) (hT : 0 ≤ T) (μ : Measure β) [SFinite μ] |
| 110 | (f : ℝ × β → E) |
| 111 | (hf : AEStronglyMeasurable f ((volume.restrict (Icc 0 T)).prod μ)) |
| 112 | (C : ℝ) (hC : 0 ≤ C) |
| 113 | (hbound : ∀ᵐ s ∂volume.restrict (Icc 0 T), MemLp (fun x => f (s,x)) 2 μ ∧ |
| 114 | (eLpNorm (fun x => f (s,x)) 2 μ).toReal ≤ C) : |
| 115 | MemLp (fun x => ∫ s in 0..T, f (s,x)) 2 μ ∧ |
| 116 | (eLpNorm (fun x => ∫ s in 0..T, f (s,x)) 2 μ).toReal ≤ T*C := by |
| 117 | have he := integral_memLp_and_bound (volume.restrict (Icc 0 T)) μ f hf C hC hbound |
| 118 | have hfun : (fun x => ∫ s in 0..T, f (s,x)) = |
| 119 | (fun x => ∫ s in Icc 0 T, f (s,x)) := by |
| 120 | funext x |
| 121 | rw [intervalIntegral.integral_of_le hT, integral_Icc_eq_integral_Ioc] |
| 122 | have hmass : (volume.restrict (Icc 0 T)).real univ = T := by |
| 123 | simp only [measureReal_def, Measure.restrict_apply_univ, Real.volume_Icc, |
| 124 | sub_zero, ENNReal.toReal_ofReal hT] |
| 125 | rw [hmass] at he |
| 126 | rw [hfun] |
| 127 | exact he |
| 128 | |
| 129 | end EulerLpParameterIntegral |