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.CompactTimeIntegral |
| 2 | import NavierStokes.R3.ComparisonCutoffs |
| 3 | import Mathlib.Analysis.Normed.Group.ZeroAtInfty |
| 4 | import Mathlib.Topology.UniformSpace.UniformApproximation |
| 5 | |
| 6 | /-! |
| 7 | # Weak time continuity from uniform spatial `L¹` bounds |
| 8 | |
| 9 | A jointly continuous scalar field with uniformly bounded spatial `L¹` norm |
| 10 | has continuous pairings with every continuous test vanishing at infinity. |
| 11 | Only the test is approximated by compactly supported functions; no support or |
| 12 | derivative bound is imposed on the field. |
| 13 | -/ |
| 14 | |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | open Set Filter MeasureTheory |
| 19 | open scoped Topology ZeroAtInfty |
| 20 | |
| 21 | namespace NavierStokesR3.WeakTimeContinuity |
| 22 | |
| 23 | open ProblemStatement ComparisonCutoffs |
| 24 | |
| 25 | /-- A test function vanishing at infinity is bounded. -/ |
| 26 | theorem exists_test_bound {ψ : Space → ℂ} (hψ : Continuous ψ) |
| 27 | (hψzero : Tendsto ψ (cocompact Space) (𝓝 0)) : |
| 28 | ∃ C : ℝ, ∀ x : Space, ‖ψ x‖ ≤ C := by |
| 29 | let ψ₀ : C₀(Space, ℂ) := |
| 30 | { toFun := ψ, continuous_toFun := hψ, zero_at_infty' := hψzero } |
| 31 | obtain ⟨C, hC⟩ := ψ₀.isBounded_range.exists_norm_le |
| 32 | exact ⟨C, fun x => hC (ψ x) ⟨x, rfl⟩⟩ |
| 33 | |
| 34 | /-- Pairing an `L¹` scalar field with a bounded continuous complex test is |
| 35 | integrable. -/ |
| 36 | theorem integrable_pairing_of_bounded {f : Space → ℝ} (hf : Integrable f volume) |
| 37 | {ψ : Space → ℂ} (hψ : Continuous ψ) (hbound : ∃ C : ℝ, ∀ x, ‖ψ x‖ ≤ C) : |
| 38 | Integrable (fun x : Space => (f x : ℂ) * ψ x) volume := by |
| 39 | have hfC : Integrable (fun x : Space => (f x : ℂ)) volume := hf.ofReal |
| 40 | obtain ⟨C, hC⟩ := hbound |
| 41 | simpa only [mul_comm] using! hfC.bdd_mul hψ.aestronglyMeasurable (Filter.Eventually.of_forall hC) |
| 42 | |
| 43 | /-- The original, untruncated pairing is a genuine Bochner integral. -/ |
| 44 | theorem integrable_pairing {f : Space → ℝ} (hf : Integrable f volume) |
| 45 | {ψ : Space → ℂ} (hψ : Continuous ψ) |
| 46 | (hψzero : Tendsto ψ (cocompact Space) (𝓝 0)) : |
| 47 | Integrable (fun x : Space => (f x : ℂ) * ψ x) volume := |
| 48 | integrable_pairing_of_bounded hf hψ (exists_test_bound hψ hψzero) |
| 49 | |
| 50 | /-- The compact approximation to the spatial test. -/ |
| 51 | def cutoffTest (R : ℝ) (ψ : Space → ℂ) (x : Space) : ℂ := |
| 52 | (cutoff R x : ℂ) * ψ x |
| 53 | |
| 54 | theorem cutoffTest_continuous {ψ : Space → ℂ} (hψ : Continuous ψ) (R : ℝ) : |
| 55 | Continuous (cutoffTest R ψ) := |
| 56 | (Complex.continuous_ofReal.comp (cutoff_smooth R).continuous).mul hψ |
| 57 | |
| 58 | theorem norm_cutoffTest_le (R : ℝ) (ψ : Space → ℂ) (x : Space) : |
| 59 | ‖cutoffTest R ψ x‖ ≤ ‖ψ x‖ := by |
| 60 | simp only [cutoffTest, norm_mul, Complex.norm_real, Real.norm_eq_abs, |
| 61 | abs_of_nonneg (cutoff_nonneg R x)] |
| 62 | exact mul_le_of_le_one_left (norm_nonneg _) (cutoff_le_one R x) |
| 63 | |
| 64 | theorem integrable_cutoff_pairing {f : Space → ℝ} (hf : Integrable f volume) |
| 65 | {ψ : Space → ℂ} (hψ : Continuous ψ) |
| 66 | (hψzero : Tendsto ψ (cocompact Space) (𝓝 0)) (R : ℝ) : |
| 67 | Integrable (fun x : Space => (f x : ℂ) * cutoffTest R ψ x) volume := by |
| 68 | obtain ⟨C, hC⟩ := exists_test_bound hψ hψzero |
| 69 | exact integrable_pairing_of_bounded hf (cutoffTest_continuous hψ R) |
| 70 | ⟨C, fun x => (norm_cutoffTest_le R ψ x).trans (hC x)⟩ |
| 71 | |
| 72 | /-- Cutting off the test cannot enlarge its pointwise error beyond its norm. -/ |
| 73 | theorem norm_sub_cutoffTest_le (R : ℝ) (ψ : Space → ℂ) (x : Space) : |
| 74 | ‖ψ x - cutoffTest R ψ x‖ ≤ ‖ψ x‖ := by |
| 75 | have heq : ψ x - cutoffTest R ψ x = ((1 - cutoff R x : ℝ) : ℂ) * ψ x := by |
| 76 | simp only [cutoffTest, Complex.ofReal_sub, Complex.ofReal_one] |
| 77 | ring |
| 78 | rw [heq, norm_mul, Complex.norm_real, Real.norm_eq_abs, |
| 79 | abs_of_nonneg (sub_nonneg.mpr (cutoff_le_one R x))] |
| 80 | exact mul_le_of_le_one_left (norm_nonneg _) (by linarith [cutoff_nonneg R x]) |
| 81 | |
| 82 | /-- The compact approximations converge uniformly on all of space. -/ |
| 83 | theorem tendstoUniformly_cutoffTest {ψ : Space → ℂ} (hψ : Continuous ψ) |
| 84 | (hψzero : Tendsto ψ (cocompact Space) (𝓝 0)) : |
| 85 | TendstoUniformly (fun R : ℝ => cutoffTest R ψ) ψ atTop := by |
| 86 | let ψ₀ : C₀(Space, ℂ) := |
| 87 | { toFun := ψ, continuous_toFun := hψ, zero_at_infty' := hψzero } |
| 88 | apply Metric.tendstoUniformly_iff.2 |
| 89 | intro ε hε |
| 90 | obtain ⟨A, hA⟩ := ZeroAtInftyContinuousMapClass.norm_le ψ₀ ε hε |
| 91 | filter_upwards [eventually_gt_atTop (0 : ℝ), eventually_ge_atTop A] with R hR hAR |
| 92 | intro x |
| 93 | rw [dist_eq_norm] |
| 94 | by_cases hx : ‖x‖ ≤ R |
| 95 | · simp only [cutoffTest, cutoff_eq_one hR hx, Complex.ofReal_one, one_mul, |
| 96 | sub_self, norm_zero] |
| 97 | exact hε |
| 98 | · exact (norm_sub_cutoffTest_le R ψ x).trans_lt |
| 99 | (hA x (lt_of_le_of_lt hAR (lt_of_not_ge hx))) |
| 100 | |
| 101 | /-- Uniform error in the test controls error in its pairing by the `L¹` |
| 102 | norm of the scalar field. -/ |
| 103 | theorem norm_pairing_sub_le {f : Space → ℝ} (hf : Integrable f volume) |
| 104 | {ψ φ : Space → ℂ} |
| 105 | (hψ : Integrable (fun x : Space => (f x : ℂ) * ψ x) volume) |
| 106 | (hφ : Integrable (fun x : Space => (f x : ℂ) * φ x) volume) |
| 107 | {ε : ℝ} (herror : ∀ x : Space, ‖ψ x - φ x‖ ≤ ε) : |
| 108 | ‖(∫ x : Space, (f x : ℂ) * ψ x) - (∫ x : Space, (f x : ℂ) * φ x)‖ ≤ |
| 109 | ε * ∫ x : Space, ‖f x‖ := by |
| 110 | rw [← integral_sub hψ hφ] |
| 111 | calc |
| 112 | ‖∫ x : Space, (f x : ℂ) * ψ x - (f x : ℂ) * φ x‖ |
| 113 | ≤ ∫ x : Space, ε * ‖f x‖ := by |
| 114 | apply norm_integral_le_of_norm_le (hf.norm.const_mul ε) |
| 115 | apply ae_of_all |
| 116 | intro x |
| 117 | rw [← mul_sub, norm_mul, Complex.norm_real] |
| 118 | exact (mul_le_mul_of_nonneg_left (herror x) (norm_nonneg _)).trans_eq (mul_comm _ _) |
| 119 | _ = ε * ∫ x : Space, ‖f x‖ := integral_const_mul _ _ |
| 120 | |
| 121 | /-- Compactly truncated pairings are continuous on an arbitrary time set. -/ |
| 122 | theorem continuousOn_cutoff_pairing {s : Set ℝ} {g : SpaceTime → ℝ} |
| 123 | (hg : ContinuousOn g (s ×ˢ univ)) {ψ : Space → ℂ} (hψ : Continuous ψ) |
| 124 | {R : ℝ} (hR : 0 < R) : |
| 125 | ContinuousOn (fun t => ∫ x : Space, (g (t, x) : ℂ) * cutoffTest R ψ x) s := by |
| 126 | apply CompactTimeIntegral.continuousOn_integral |
| 127 | (F := fun z : SpaceTime => (g z : ℂ) * cutoffTest R ψ z.2) |
| 128 | (isCompact_closedBall (0 : Space) (2 * R)) |
| 129 | · exact (Complex.continuous_ofReal.comp_continuousOn hg).mul |
| 130 | ((cutoffTest_continuous hψ R).comp continuous_snd).continuousOn |
| 131 | · intro t _ x hx |
| 132 | have hxnorm : 2 * R ≤ ‖x‖ := by |
| 133 | have : ¬ ‖x‖ ≤ 2 * R := by simpa only [Metric.mem_closedBall, dist_zero_right] using hx |
| 134 | exact (lt_of_not_ge this).le |
| 135 | simp only [cutoffTest, cutoff_eq_zero hR hxnorm, Complex.ofReal_zero, zero_mul, mul_zero] |
| 136 | |
| 137 | /-- Uniform spatial `L¹` bounds upgrade compact-test continuity to continuity |
| 138 | for every continuous test vanishing at infinity. -/ |
| 139 | theorem continuousOn_pairing {s : Set ℝ} {g : SpaceTime → ℝ} {M : ℝ} |
| 140 | (hg : ContinuousOn g (s ×ˢ univ)) |
| 141 | (hints : ∀ t ∈ s, Integrable (fun x : Space => g (t, x)) volume) |
| 142 | (hbound : ∀ t ∈ s, (∫ x : Space, ‖g (t, x)‖) ≤ M) |
| 143 | {ψ : Space → ℂ} (hψ : Continuous ψ) |
| 144 | (hψzero : Tendsto ψ (cocompact Space) (𝓝 0)) : |
| 145 | ContinuousOn (fun t => ∫ x : Space, (g (t, x) : ℂ) * ψ x) s := by |
| 146 | have happrox := tendstoUniformly_cutoffTest hψ hψzero |
| 147 | have hpair : TendstoUniformlyOn |
| 148 | (fun R : ℝ => fun t => ∫ x : Space, (g (t, x) : ℂ) * cutoffTest R ψ x) |
| 149 | (fun t => ∫ x : Space, (g (t, x) : ℂ) * ψ x) atTop s := by |
| 150 | apply Metric.tendstoUniformlyOn_iff.2 |
| 151 | intro ε hε |
| 152 | have hden : 0 < max M 0 + 1 := by positivity |
| 153 | have hδ : 0 < ε / (max M 0 + 1) := div_pos hε hden |
| 154 | filter_upwards [Metric.tendstoUniformly_iff.1 happrox (ε / (max M 0 + 1)) hδ] |
| 155 | with R hR |
| 156 | intro t ht |
| 157 | have herror := norm_pairing_sub_le (hints t ht) |
| 158 | (integrable_pairing (hints t ht) hψ hψzero) |
| 159 | (integrable_cutoff_pairing (hints t ht) hψ hψzero R) |
| 160 | (fun x => (show ‖ψ x - cutoffTest R ψ x‖ < ε / (max M 0 + 1) by |
| 161 | simpa only [dist_eq_norm] using hR x).le) |
| 162 | calc |
| 163 | dist (∫ x : Space, (g (t, x) : ℂ) * ψ x) |
| 164 | (∫ x : Space, (g (t, x) : ℂ) * cutoffTest R ψ x) |
| 165 | ≤ ε / (max M 0 + 1) * ∫ x : Space, ‖g (t, x)‖ := by |
| 166 | simpa only [dist_eq_norm] using herror |
| 167 | _ ≤ ε / (max M 0 + 1) * max M 0 := |
| 168 | mul_le_mul_of_nonneg_left ((hbound t ht).trans (le_max_left _ _)) hδ.le |
| 169 | _ < ε / (max M 0 + 1) * (max M 0 + 1) := |
| 170 | mul_lt_mul_of_pos_left (lt_add_one _) hδ |
| 171 | _ = ε := div_mul_cancel₀ ε hden.ne' |
| 172 | exact hpair.continuousOn ((eventually_gt_atTop (0 : ℝ)).mono |
| 173 | (fun _ hR => continuousOn_cutoff_pairing hg hψ hR)).frequently |
| 174 | |
| 175 | end NavierStokesR3.WeakTimeContinuity |