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.ComparisonFiniteEnergy |
| 2 | import NavierStokes.R3.CompactTimeIntegral |
| 3 | import NavierStokes.R3.ComparisonCutoffs |
| 4 | |
| 5 | /-! |
| 6 | # Constants supplied by the compactly supported comparison solution |
| 7 | |
| 8 | These bounds are consequences of joint smoothness and one fixed compact |
| 9 | spatial support. They impose no condition on the competing solution. |
| 10 | -/ |
| 11 | |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open Set Filter MeasureTheory |
| 16 | open scoped ContDiff ENNReal Topology |
| 17 | |
| 18 | namespace NavierStokesR3.CompactComparisonBounds |
| 19 | |
| 20 | open ProblemStatement Comparison |
| 21 | open NavierStokes.ProblemStatement (spatialDerivative) |
| 22 | |
| 23 | /-- The shared compact support contains the support of every spatial slice. -/ |
| 24 | theorem hasCompactSupport_slice {T : ℝ} {u : VelocityField} {K : Set Space} |
| 25 | (hK : IsCompact K) |
| 26 | (hsupp : ∀ t ∈ Icc (0 : ℝ) T, tsupport (fun x : Space => u (t, x)) ⊆ K) |
| 27 | {t : ℝ} (ht : t ∈ Icc (0 : ℝ) T) : |
| 28 | HasCompactSupport (fun x : Space => u (t, x)) := |
| 29 | hK.of_isClosed_subset isClosed_closure (hsupp t ht) |
| 30 | |
| 31 | /-- The candidate's first spatial derivative is bounded on all of space and |
| 32 | uniformly over the closed comparison interval. -/ |
| 33 | theorem exists_gradient_bound {T : ℝ} (hT : 0 < T) {u : VelocityField} |
| 34 | (hu : ContDiffOn ℝ ∞ u (slab 0 T)) {K : Set Space} (hK : IsCompact K) |
| 35 | (hsupp : ∀ t ∈ Icc (0 : ℝ) T, tsupport (fun x : Space => u (t, x)) ⊆ K) : |
| 36 | ∃ G : ℝ, 0 ≤ G ∧ ∀ t ∈ Icc (0 : ℝ) T, ∀ x : Space, |
| 37 | ‖spatialDerivative u t x‖ ≤ G := by |
| 38 | obtain ⟨G, hG, hbound⟩ := NavierStokes.PeriodicUniqueness.exists_gradient_bound hT hu hK |
| 39 | refine ⟨G, hG.le, ?_⟩ |
| 40 | intro t ht x |
| 41 | by_cases hx : x ∈ K |
| 42 | · exact hbound t ht x hx |
| 43 | · have hzero : spatialDerivative u t x = 0 := |
| 44 | fderiv_of_notMem_tsupport (𝕜 := ℝ) (fun h => hx (hsupp t ht h)) |
| 45 | rw [hzero, norm_zero] |
| 46 | exact hG.le |
| 47 | |
| 48 | /-- Compact support and continuity place every candidate slice in `L³`. -/ |
| 49 | theorem memLp_three_slice {T : ℝ} {u : VelocityField} |
| 50 | (hu : ContinuousOn u (slab 0 T)) {K : Set Space} (hK : IsCompact K) |
| 51 | (hsupp : ∀ t ∈ Icc (0 : ℝ) T, tsupport (fun x : Space => u (t, x)) ⊆ K) |
| 52 | {t : ℝ} (ht : t ∈ Icc (0 : ℝ) T) : |
| 53 | MemLp (fun x : Space => u (t, x)) 3 volume := |
| 54 | (CompactTimeIntegral.continuous_slice hu ht).memLp_of_hasCompactSupport |
| 55 | (hasCompactSupport_slice hK hsupp ht) |
| 56 | |
| 57 | /-- The ordinary cube-norm integral varies continuously with time. -/ |
| 58 | theorem continuousOn_integral_norm_cube {T : ℝ} {u : VelocityField} |
| 59 | (hu : ContinuousOn u (slab 0 T)) {K : Set Space} (hK : IsCompact K) |
| 60 | (hsupp : ∀ t ∈ Icc (0 : ℝ) T, tsupport (fun x : Space => u (t, x)) ⊆ K) : |
| 61 | ContinuousOn (fun t => ∫ x : Space, ‖u (t, x)‖ ^ 3) (Icc (0 : ℝ) T) := by |
| 62 | apply CompactTimeIntegral.continuousOn_integral |
| 63 | (F := fun z : SpaceTime => ‖u z‖ ^ 3) hK (hu.norm.pow 3) |
| 64 | intro t ht x hx |
| 65 | have hzero : u (t, x) = 0 := |
| 66 | image_eq_zero_of_notMem_tsupport (f := fun y : Space => u (t, y)) |
| 67 | (fun h => hx (hsupp t ht h)) |
| 68 | simp only [hzero, norm_zero, zero_pow (by decide : (3 : ℕ) ≠ 0)] |
| 69 | |
| 70 | /-- The finite `L³` norm has its ordinary integral formula. -/ |
| 71 | theorem lpNorm_three_eq_integral_norm_cube_rpow {f : Space → Space} |
| 72 | (hf : MemLp f 3 volume) : |
| 73 | comparisonLpNorm 3 f = (∫ x : Space, ‖f x‖ ^ 3) ^ (3 : ℝ)⁻¹ := by |
| 74 | have heq := MemLp.eLpNorm_eq_integral_rpow_norm |
| 75 | (p := (3 : ℝ≥0∞)) (by norm_num) (by norm_num) hf |
| 76 | norm_num only [ENNReal.toReal_ofNat] at heq |
| 77 | rw [comparisonLpNorm, heq, ENNReal.toReal_ofReal] |
| 78 | · rw [one_div] |
| 79 | congr 1 |
| 80 | apply integral_congr_ae |
| 81 | exact ae_of_all _ (fun x => Real.rpow_natCast (‖f x‖) 3) |
| 82 | · positivity |
| 83 | |
| 84 | /-- One finite `L³` bound works at every time in the comparison interval. -/ |
| 85 | theorem exists_lpNorm_three_bound {T : ℝ} {u : VelocityField} |
| 86 | (hu : ContinuousOn u (slab 0 T)) {K : Set Space} (hK : IsCompact K) |
| 87 | (hsupp : ∀ t ∈ Icc (0 : ℝ) T, tsupport (fun x : Space => u (t, x)) ⊆ K) : |
| 88 | ∃ U : ℝ, 0 ≤ U ∧ ∀ t ∈ Icc (0 : ℝ) T, |
| 89 | MemLp (fun x : Space => u (t, x)) 3 volume ∧ |
| 90 | comparisonLpNorm 3 (fun x => u (t, x)) ≤ U := by |
| 91 | obtain ⟨C, hC⟩ := isCompact_Icc.exists_bound_of_continuousOn |
| 92 | (continuousOn_integral_norm_cube hu hK hsupp) |
| 93 | refine ⟨(max C 0) ^ (3 : ℝ)⁻¹, by positivity, ?_⟩ |
| 94 | intro t ht |
| 95 | have hLp := memLp_three_slice hu hK hsupp ht |
| 96 | refine ⟨hLp, ?_⟩ |
| 97 | rw [lpNorm_three_eq_integral_norm_cube_rpow hLp] |
| 98 | apply Real.rpow_le_rpow (integral_nonneg (fun x => by positivity)) _ (by positivity) |
| 99 | exact (le_abs_self _).trans ((hC t ht).trans (le_max_left _ _)) |
| 100 | |
| 101 | /-- The cutoff weight is locally constant throughout its strict plateau. -/ |
| 102 | theorem weight_fderiv_eq_zero_of_norm_lt {R : ℝ} (hR : 0 < R) |
| 103 | {x : Space} (hx : ‖x‖ < R) : |
| 104 | fderiv ℝ (ComparisonCutoffs.weight R) x = 0 := by |
| 105 | have heq : ComparisonCutoffs.weight R =ᶠ[𝓝 x] (fun _ => (1 : ℝ)) := by |
| 106 | filter_upwards [(isOpen_lt continuous_norm continuous_const).mem_nhds hx] with y hy |
| 107 | exact ComparisonCutoffs.weight_eq_one hR hy.le |
| 108 | rw [heq.fderiv_eq, fderiv_const_apply] |
| 109 | |
| 110 | /-- Sufficiently large cutoffs have exactly zero derivative in the direction |
| 111 | of the compactly supported candidate, at every spatial point. -/ |
| 112 | theorem exists_radius_weight_derivative_zero {T : ℝ} {u : VelocityField} |
| 113 | {K : Set Space} (hK : IsCompact K) |
| 114 | (hsupp : ∀ t ∈ Icc (0 : ℝ) T, tsupport (fun x : Space => u (t, x)) ⊆ K) : |
| 115 | ∃ R₀ : ℝ, 1 ≤ R₀ ∧ ∀ R ≥ R₀, ∀ t ∈ Icc (0 : ℝ) T, ∀ x : Space, |
| 116 | fderiv ℝ (ComparisonCutoffs.weight R) x (u (t, x)) = 0 := by |
| 117 | obtain ⟨C, hC⟩ := hK.isBounded.exists_norm_le |
| 118 | refine ⟨max 1 (C + 1), le_max_left _ _, ?_⟩ |
| 119 | intro R hR t ht x |
| 120 | have hRpos : 0 < R := lt_of_lt_of_le zero_lt_one ((le_max_left _ _).trans hR) |
| 121 | by_cases hx : x ∈ K |
| 122 | · have hxR : ‖x‖ < R := |
| 123 | lt_of_le_of_lt (hC x hx) ((lt_add_one C).trans_le ((le_max_right _ _).trans hR)) |
| 124 | rw [weight_fderiv_eq_zero_of_norm_lt hRpos hxR] |
| 125 | rfl |
| 126 | · have hzero : u (t, x) = 0 := |
| 127 | image_eq_zero_of_notMem_tsupport (f := fun y : Space => u (t, y)) |
| 128 | (fun h => hx (hsupp t ht h)) |
| 129 | rw [hzero, map_zero] |
| 130 | |
| 131 | /-- On a compact time interval, smoothness and one fixed compact spatial |
| 132 | support already imply the target's uniform finite-energy condition. -/ |
| 133 | theorem uniformFiniteEnergy_of_compact_slab {T : ℝ} {u : VelocityField} |
| 134 | (hu : ContDiffOn ℝ ∞ u (slab 0 T)) {K : Set Space} (hK : IsCompact K) |
| 135 | (hsupp : ∀ t ∈ Icc (0 : ℝ) T, tsupport (fun x : Space => u (t, x)) ⊆ K) : |
| 136 | UniformFiniteEnergy (Icc (0 : ℝ) T) u := by |
| 137 | have hcont : ContinuousOn (fun t => ∫ x : Space, ‖u (t, x)‖ ^ 2) |
| 138 | (Icc (0 : ℝ) T) := by |
| 139 | apply CompactTimeIntegral.continuousOn_integral |
| 140 | (F := fun z : SpaceTime => ‖u z‖ ^ 2) hK (hu.continuousOn.norm.pow 2) |
| 141 | intro t ht x hx |
| 142 | have hzero : u (t, x) = 0 := |
| 143 | image_eq_zero_of_notMem_tsupport (f := fun y : Space => u (t, y)) |
| 144 | (fun h => hx (hsupp t ht h)) |
| 145 | simp only [hzero, norm_zero, zero_pow (by decide : (2 : ℕ) ≠ 0)] |
| 146 | obtain ⟨C, hC⟩ := isCompact_Icc.exists_bound_of_continuousOn hcont |
| 147 | refine ⟨(1 / 2 : ℝ) * max C 0, by positivity, ?_⟩ |
| 148 | intro t ht |
| 149 | have hLp : MemLp (fun x : Space => u (t, x)) 2 volume := |
| 150 | (CompactTimeIntegral.continuous_slice hu.continuousOn ht).memLp_of_hasCompactSupport |
| 151 | (hasCompactSupport_slice hK hsupp ht) |
| 152 | refine ⟨(memLp_two_iff_integrable_sq_norm hLp.1).1 hLp, ?_⟩ |
| 153 | have hbound : (∫ x : Space, ‖u (t, x)‖ ^ 2) ≤ max C 0 := |
| 154 | (le_abs_self _).trans ((hC t ht).trans (le_max_left _ _)) |
| 155 | exact mul_le_mul_of_nonneg_left hbound (by norm_num : (0 : ℝ) ≤ 1 / 2) |
| 156 | |
| 157 | end NavierStokesR3.CompactComparisonBounds |