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.R3SpaceTime |
| 2 | import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension |
| 3 | |
| 4 | /-! |
| 5 | # Compact time localization of finite-energy fields |
| 6 | |
| 7 | Multiplying by a compact time cutoff turns uniform spatial `L¹` or `L²` |
| 8 | bounds into the corresponding space-time bounds. Smoothness is only required |
| 9 | on the open time interval containing the cutoff support. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | namespace NavierStokes.R3TimeLocalization |
| 14 | |
| 15 | open Set Filter MeasureTheory R3SpaceTime ProblemStatement |
| 16 | open scoped ENNReal Topology ContDiff |
| 17 | |
| 18 | def localize (a : ℝ → ℝ) (u : Domain → ℂ) (z : Domain) : ℂ := |
| 19 | (a (timeProj z) : ℂ) * u z |
| 20 | |
| 21 | theorem localize_contDiff {a : ℝ → ℝ} {u : Domain → ℂ} {s : Set ℝ} |
| 22 | (ha : ContDiff ℝ ∞ a) (hs : IsOpen s) (has : tsupport a ⊆ s) |
| 23 | (hu : ContDiffOn ℝ ∞ u (timeProj ⁻¹' s)) : ContDiff ℝ ∞ (localize a u) := by |
| 24 | rw [contDiff_iff_contDiffAt] |
| 25 | intro z |
| 26 | by_cases hz : timeProj z ∈ tsupport a |
| 27 | · exact (Complex.ofRealCLM.contDiff.contDiffAt.comp z (ha.contDiffAt.comp z timeProj.contDiff.contDiffAt)).mul |
| 28 | ((hu z (has hz)).contDiffAt ((hs.preimage timeProj.continuous).mem_nhds (has hz))) |
| 29 | · have hzero : a =ᶠ[𝓝 (timeProj z)] (fun _ => (0 : ℝ)) := |
| 30 | notMem_tsupport_iff_eventuallyEq.mp hz |
| 31 | apply (contDiffAt_const (c := (0 : ℂ))).congr_of_eventuallyEq |
| 32 | filter_upwards [hzero.comp_tendsto timeProj.continuous.continuousAt] with y hy |
| 33 | change a (timeProj y) = 0 at hy |
| 34 | simp [localize, hy] |
| 35 | |
| 36 | theorem localize_integrable {a : ℝ → ℝ} {u : Domain → ℂ} {C : ℝ} |
| 37 | (ha : Integrable a) (hm : AEStronglyMeasurable (localize a u) volume) |
| 38 | (hu : ∀ t, a t ≠ 0 → Integrable (fun x : Space => u (pack t x))) |
| 39 | (hb : ∀ t, a t ≠ 0 → (∫ x : Space, ‖u (pack t x)‖) ≤ C) : |
| 40 | Integrable (localize a u) := by |
| 41 | rw [integrable_iff_prod] |
| 42 | have hm' : AEStronglyMeasurable (fun tx : ℝ × Space => localize a u (pack tx.1 tx.2)) volume := by |
| 43 | exact hm.comp_measurePreserving (WithLp.volume_preserving_toLp ℝ Space) |
| 44 | apply (integrable_prod_iff hm').mpr |
| 45 | refine ⟨Eventually.of_forall (fun t => ?_), ?_⟩ |
| 46 | · by_cases ht : a t = 0 |
| 47 | · simp [localize, ht] |
| 48 | · exact (hu t ht).const_mul (a t : ℂ) |
| 49 | · have hi := hm'.norm.integral_prod_right' |
| 50 | apply (ha.norm.mul_const C).mono' hi |
| 51 | filter_upwards with t |
| 52 | rw [Real.norm_of_nonneg (integral_nonneg fun _ => norm_nonneg _)] |
| 53 | by_cases ht : a t = 0 |
| 54 | · simp [localize, ht] |
| 55 | · simp only [localize, timeProj_pack, norm_mul, Complex.norm_real, integral_const_mul] |
| 56 | exact mul_le_mul_of_nonneg_left (hb t ht) (norm_nonneg _) |
| 57 | |
| 58 | theorem localize_memLp_two {a : ℝ → ℝ} {u : Domain → ℂ} {C : ℝ} |
| 59 | (ha : MemLp a 2) (hm : AEStronglyMeasurable (localize a u) volume) |
| 60 | (hu : ∀ t, a t ≠ 0 → MemLp (fun x : Space => u (pack t x)) 2) |
| 61 | (hb : ∀ t, a t ≠ 0 → (∫ x : Space, ‖u (pack t x)‖ ^ 2) ≤ C) : |
| 62 | MemLp (localize a u) 2 := by |
| 63 | apply (memLp_two_iff_integrable_sq_norm hm).mpr |
| 64 | rw [integrable_iff_prod] |
| 65 | have hm' : AEStronglyMeasurable (fun tx : ℝ × Space => localize a u (pack tx.1 tx.2)) volume := |
| 66 | hm.comp_measurePreserving (WithLp.volume_preserving_toLp ℝ Space) |
| 67 | apply (integrable_prod_iff (hm'.norm.pow 2)).mpr |
| 68 | refine ⟨Eventually.of_forall (fun t => ?_), ?_⟩ |
| 69 | · by_cases ht : a t = 0 |
| 70 | · simp [localize, ht] |
| 71 | · have hh := ((memLp_two_iff_integrable_sq_norm (hu t ht).1).mp (hu t ht)).const_mul (‖a t‖ ^ 2) |
| 72 | simpa only [localize, timeProj_pack, norm_mul, Complex.norm_real, mul_pow, Pi.pow_apply] using hh |
| 73 | · have hi := (hm'.norm.pow 2).norm.integral_prod_right' |
| 74 | apply (((memLp_two_iff_integrable_sq_norm ha.1).mp ha).mul_const C).mono' hi |
| 75 | filter_upwards with t |
| 76 | change abs (∫ x : Space, abs (‖localize a u (pack t x)‖ ^ 2)) ≤ ‖a t‖ ^ 2 * C |
| 77 | have haeq (x : Space) : abs (‖localize a u (pack t x)‖ ^ 2) = |
| 78 | ‖localize a u (pack t x)‖ ^ 2 := abs_of_nonneg (sq_nonneg _) |
| 79 | simp_rw [haeq] |
| 80 | rw [abs_of_nonneg (show 0 ≤ ∫ x : Space, ‖localize a u (pack t x)‖ ^ 2 from |
| 81 | integral_nonneg fun x => sq_nonneg _)] |
| 82 | by_cases ht : a t = 0 |
| 83 | · simp [localize, ht] |
| 84 | · simp only [localize, timeProj_pack, norm_mul, Complex.norm_real, mul_pow, integral_const_mul] |
| 85 | exact mul_le_mul_of_nonneg_left (hb t ht) (sq_nonneg _) |
| 86 | |
| 87 | end NavierStokes.R3TimeLocalization |