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.R3.ComparisonSetup |
| 2 | |
| 3 | /-! |
| 4 | # Real-valued whole-space `Lᵖ` norms |
| 5 | |
| 6 | These lemmas convert extended `Lᵖ` seminorms to the real-valued norms used by |
| 7 | the comparison argument. Bounds that require a finite right-hand norm retain |
| 8 | an explicit `MemLp` hypothesis. |
| 9 | -/ |
| 10 | |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | open MeasureTheory |
| 15 | open scoped ENNReal |
| 16 | |
| 17 | namespace NavierStokesR3.LpNormTools |
| 18 | |
| 19 | open ProblemStatement Comparison |
| 20 | |
| 21 | variable {E F : Type*} [NormedAddCommGroup E] [NormedAddCommGroup F] |
| 22 | |
| 23 | theorem lpNorm_nonneg (p : ℝ≥0∞) (f : Space → E) : 0 ≤ comparisonLpNorm p f := |
| 24 | ENNReal.toReal_nonneg |
| 25 | |
| 26 | theorem lpNorm_congr_ae {p : ℝ≥0∞} {f g : Space → E} |
| 27 | (hfg : f =ᵐ[volume] g) : comparisonLpNorm p f = comparisonLpNorm p g := |
| 28 | congrArg ENNReal.toReal (eLpNorm_congr_ae hfg) |
| 29 | |
| 30 | theorem lpNorm_mono_of_norm_le_ae {p : ℝ≥0∞} {f : Space → E} {g : Space → F} |
| 31 | (hg : MemLp g p volume) (hfg : ∀ᵐ x ∂volume, ‖f x‖ ≤ ‖g x‖) : |
| 32 | comparisonLpNorm p f ≤ comparisonLpNorm p g := |
| 33 | ENNReal.toReal_mono hg.eLpNorm_lt_top.ne (eLpNorm_mono_ae hfg) |
| 34 | |
| 35 | theorem lpNorm_mono_of_norm_le {p : ℝ≥0∞} {f : Space → E} {g : Space → F} |
| 36 | (hg : MemLp g p volume) (hfg : ∀ x, ‖f x‖ ≤ ‖g x‖) : |
| 37 | comparisonLpNorm p f ≤ comparisonLpNorm p g := |
| 38 | lpNorm_mono_of_norm_le_ae hg (Filter.Eventually.of_forall hfg) |
| 39 | |
| 40 | theorem lpNorm_add_le {p : ℝ≥0∞} (hp1 : 1 ≤ p) {f g : Space → E} |
| 41 | (hf : MemLp f p volume) (hg : MemLp g p volume) : |
| 42 | comparisonLpNorm p (fun x => f x + g x) ≤ comparisonLpNorm p f + comparisonLpNorm p g := by |
| 43 | calc |
| 44 | comparisonLpNorm p (fun x => f x + g x) ≤ |
| 45 | (eLpNorm f p volume + eLpNorm g p volume).toReal := |
| 46 | ENNReal.toReal_mono |
| 47 | (ENNReal.add_ne_top.mpr ⟨hf.eLpNorm_lt_top.ne, hg.eLpNorm_lt_top.ne⟩) |
| 48 | (eLpNorm_add_le hf.aestronglyMeasurable hg.aestronglyMeasurable hp1) |
| 49 | _ = comparisonLpNorm p f + comparisonLpNorm p g := |
| 50 | ENNReal.toReal_add hf.eLpNorm_lt_top.ne hg.eLpNorm_lt_top.ne |
| 51 | |
| 52 | theorem lpNorm_const_smul {𝕜 : Type*} [NormedField 𝕜] [NormedSpace 𝕜 E] |
| 53 | (p : ℝ≥0∞) (c : 𝕜) (f : Space → E) : |
| 54 | comparisonLpNorm p (fun x => c • f x) = ‖c‖ * comparisonLpNorm p f := by |
| 55 | change (eLpNorm (c • f) p volume).toReal = ‖c‖ * (eLpNorm f p volume).toReal |
| 56 | rw [eLpNorm_const_smul, ENNReal.toReal_mul, toReal_enorm] |
| 57 | |
| 58 | theorem lpNorm_one_eq_integral_norm {f : Space → E} (hf : Integrable f volume) : |
| 59 | comparisonLpNorm 1 f = ∫ x : Space, ‖f x‖ := by |
| 60 | rw [comparisonLpNorm, eLpNorm_one_eq_lintegral_enorm, |
| 61 | integral_norm_eq_lintegral_enorm hf.aestronglyMeasurable] |
| 62 | |
| 63 | theorem lpNorm_two_sq_eq_l2Sq [InnerProductSpace ℝ E] {f : Space → E} |
| 64 | (hf : MemLp f 2 volume) : comparisonLpNorm 2 f ^ 2 = l2Sq f := by |
| 65 | calc |
| 66 | comparisonLpNorm 2 f ^ 2 = ‖hf.toLp f‖ ^ 2 := by rw [Lp.norm_toLp]; rfl |
| 67 | _ = @inner ℝ _ _ (hf.toLp f) (hf.toLp f) := (real_inner_self_eq_norm_sq _).symm |
| 68 | _ = ∫ x : Space, @inner ℝ _ _ ((hf.toLp f) x) ((hf.toLp f) x) := |
| 69 | L2.inner_def _ _ |
| 70 | _ = l2Sq f := by |
| 71 | apply integral_congr_ae |
| 72 | filter_upwards [hf.coeFn_toLp] with x hx |
| 73 | rw [hx, real_inner_self_eq_norm_sq] |
| 74 | |
| 75 | theorem lpNorm_two_eq_sqrt_l2Sq [InnerProductSpace ℝ E] {f : Space → E} |
| 76 | (hf : MemLp f 2 volume) : comparisonLpNorm 2 f = Real.sqrt (l2Sq f) := by |
| 77 | rw [← lpNorm_two_sq_eq_l2Sq hf, Real.sqrt_sq (lpNorm_nonneg 2 f)] |
| 78 | |
| 79 | end NavierStokesR3.LpNormTools |