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 Mathlib.MeasureTheory.Function.L2Space |
| 2 | import Mathlib.MeasureTheory.Integral.Prod |
| 3 | |
| 4 | /-! |
| 5 | A jointly measurable field which represents an actual Bochner L² family belongs |
| 6 | to the product L² space, with exactly the same norm. This realizes nested |
| 7 | space/angle or time/space estimates without changing any derivative constants. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace EulerLpBochnerRealization |
| 13 | |
| 14 | open MeasureTheory Filter |
| 15 | open scoped ENNReal |
| 16 | |
| 17 | variable {α β E : Type*} [MeasurableSpace α] [MeasurableSpace β] |
| 18 | [NormedAddCommGroup E] {μ : Measure α} {ν : Measure β} |
| 19 | |
| 20 | theorem norm_sq_eq_integral (u : Lp E 2 μ) : |
| 21 | ‖u‖^2 = ∫ x, ‖u x‖^2 ∂μ := by |
| 22 | rw [Lp.norm_def, MemLp.eLpNorm_eq_integral_rpow_norm |
| 23 | (by norm_num : (2 : ℝ≥0∞) ≠ 0) (by norm_num : (2 : ℝ≥0∞) ≠ ∞) (Lp.memLp u)] |
| 24 | simp only [ENNReal.toReal_ofNat, Real.rpow_two] |
| 25 | rw [ENNReal.toReal_ofReal (Real.rpow_nonneg (integral_nonneg (fun _ => sq_nonneg _)) _)] |
| 26 | rw [inv_eq_one_div, ← Real.sqrt_eq_rpow, Real.sq_sqrt (integral_nonneg (fun _ => sq_nonneg _))] |
| 27 | |
| 28 | theorem fiber_integral (w : Lp (Lp E 2 ν) 2 μ) (f : α × β → E) |
| 29 | (hrep : ∀ᵐ x ∂μ, (w x : β → E) =ᵐ[ν] fun y => f (x,y)) : |
| 30 | (fun x => ∫ y, ‖f (x,y)‖^2 ∂ν) =ᵐ[μ] fun x => ‖w x‖^2 := by |
| 31 | filter_upwards [hrep] with x hx |
| 32 | rw [norm_sq_eq_integral] |
| 33 | apply integral_congr_ae |
| 34 | filter_upwards [hx] with y hy |
| 35 | rw [hy] |
| 36 | |
| 37 | variable [SFinite ν] |
| 38 | |
| 39 | theorem field_memLp (w : Lp (Lp E 2 ν) 2 μ) (f : α × β → E) |
| 40 | (hf : AEStronglyMeasurable f (μ.prod ν)) |
| 41 | (hrep : ∀ᵐ x ∂μ, (w x : β → E) =ᵐ[ν] fun y => f (x,y)) : |
| 42 | MemLp f 2 (μ.prod ν) := by |
| 43 | apply (memLp_two_iff_integrable_sq_norm hf).2 |
| 44 | apply (integrable_prod_iff (hf.norm.pow 2)).2 |
| 45 | constructor |
| 46 | · filter_upwards [hrep] with x hx |
| 47 | have hm : MemLp (fun y => f (x,y)) 2 ν := (memLp_congr_ae hx).1 (Lp.memLp (w x)) |
| 48 | exact (memLp_two_iff_integrable_sq_norm hm.aestronglyMeasurable).1 hm |
| 49 | · have ho : Integrable (fun x => ‖w x‖^2) μ := |
| 50 | (memLp_two_iff_integrable_sq_norm (Lp.aestronglyMeasurable w)).1 (Lp.memLp w) |
| 51 | apply ho.congr |
| 52 | filter_upwards [fiber_integral w f hrep] with x hx |
| 53 | change ‖w x‖^2 = ∫ y, ‖‖f (x,y)‖^2‖ ∂ν |
| 54 | simpa only [norm_pow, norm_norm] using hx.symm |
| 55 | |
| 56 | /-- The genuine product-space representative of the given nested L² element. -/ |
| 57 | def realization (w : Lp (Lp E 2 ν) 2 μ) (f : α × β → E) |
| 58 | (hf : AEStronglyMeasurable f (μ.prod ν)) |
| 59 | (hrep : ∀ᵐ x ∂μ, (w x : β → E) =ᵐ[ν] fun y => f (x,y)) : Lp E 2 (μ.prod ν) := |
| 60 | (field_memLp w f hf hrep).toLp f |
| 61 | |
| 62 | theorem realization_ae (w : Lp (Lp E 2 ν) 2 μ) (f : α × β → E) |
| 63 | (hf : AEStronglyMeasurable f (μ.prod ν)) |
| 64 | (hrep : ∀ᵐ x ∂μ, (w x : β → E) =ᵐ[ν] fun y => f (x,y)) : |
| 65 | (realization w f hf hrep : α × β → E) =ᵐ[μ.prod ν] f := |
| 66 | (field_memLp w f hf hrep).coeFn_toLp |
| 67 | |
| 68 | variable [SFinite μ] |
| 69 | |
| 70 | /-- Fubini preserves the exact L² norm, with no angle or dimension factor. -/ |
| 71 | theorem realization_norm (w : Lp (Lp E 2 ν) 2 μ) (f : α × β → E) |
| 72 | (hf : AEStronglyMeasurable f (μ.prod ν)) |
| 73 | (hrep : ∀ᵐ x ∂μ, (w x : β → E) =ᵐ[ν] fun y => f (x,y)) : |
| 74 | ‖realization w f hf hrep‖ = ‖w‖ := by |
| 75 | have he : ‖realization w f hf hrep‖^2 = ‖w‖^2 := by |
| 76 | rw [norm_sq_eq_integral] |
| 77 | calc |
| 78 | _ = ∫ z, ‖f z‖^2 ∂μ.prod ν := by |
| 79 | apply integral_congr_ae |
| 80 | filter_upwards [realization_ae w f hf hrep] with z hz |
| 81 | rw [hz] |
| 82 | _ = ∫ x, ∫ y, ‖f (x,y)‖^2 ∂ν ∂μ := |
| 83 | integral_prod _ ((memLp_two_iff_integrable_sq_norm hf).1 (field_memLp w f hf hrep)) |
| 84 | _ = ∫ x, ‖w x‖^2 ∂μ := integral_congr_ae (fiber_integral w f hrep) |
| 85 | _ = _ := (norm_sq_eq_integral w).symm |
| 86 | nlinarith [norm_nonneg (realization w f hf hrep), norm_nonneg w] |
| 87 | |
| 88 | end EulerLpBochnerRealization |