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.SmoothCutoffs |
| 2 | import NavierStokes.DiagonalScale |
| 3 | import NavierStokes.SpatialCurl |
| 4 | import Mathlib.Analysis.Calculus.ContDiff.Operations |
| 5 | import Mathlib.Topology.LocallyFinite |
| 6 | |
| 7 | /-! |
| 8 | # Smooth solenoidal diagonal sums |
| 9 | |
| 10 | The sum in this file is an actual `tsum` of cut potentials. At each point |
| 11 | where the continuous scale `q` is positive, an entire tail is identically zero |
| 12 | on a common neighborhood. Thus the sum equals a finite prefix locally. |
| 13 | Smoothness requires smooth `q` and smooth potentials; mere continuity of `q` |
| 14 | is sufficient for local finiteness only. The resulting spatial curl is smooth |
| 15 | and divergence-free. No residual estimate or singular endpoint regularity is |
| 16 | assumed or proved here. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | |
| 21 | namespace NavierStokes.SolenoidalDiagonal |
| 22 | |
| 23 | open Set Filter Function |
| 24 | open scoped Topology BigOperators ContDiff |
| 25 | |
| 26 | section Topological |
| 27 | |
| 28 | variable {X V : Type*} [TopologicalSpace X] |
| 29 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 30 | |
| 31 | /-- Cut the potential before applying any velocity derivative. -/ |
| 32 | def cutStage (a : ℕ → ℝ) (q : X → ℝ) (A : ℕ → X → V) (j : ℕ) (x : X) : V := |
| 33 | SmoothCutoffs.scaledCutoff (a j) (q x) • A j x |
| 34 | |
| 35 | /-- The actual infinite sum; local finiteness below proves it is well behaved |
| 36 | on the positive-scale domain. -/ |
| 37 | def potentialSum (a : ℕ → ℝ) (q : X → ℝ) (A : ℕ → X → V) (x : X) : V := |
| 38 | ∑' j : ℕ, cutStage a q A j x |
| 39 | |
| 40 | def partialPotential (a : ℕ → ℝ) (q : X → ℝ) (A : ℕ → X → V) |
| 41 | (N : ℕ) (x : X) : V := |
| 42 | ∑ j ∈ Finset.range N, cutStage a q A j x |
| 43 | |
| 44 | /-- A common neighborhood, not merely a pointwise support bound, kills all |
| 45 | sufficiently late stages. No regularity of the potentials is needed. -/ |
| 46 | theorem eventually_zero_tail {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) |
| 47 | {q : X → ℝ} {x : X} (hq : ContinuousAt q x) (hqx : 0 < q x) |
| 48 | (A : ℕ → X → V) : |
| 49 | ∃ N : ℕ, ∀ᶠ y in 𝓝 x, ∀ j : ℕ, N ≤ j → cutStage a q A j y = 0 := by |
| 50 | obtain ⟨N, hN⟩ := SmoothCutoffs.scaledCutoffs_zero_on_common_neighborhood a ha hqx |
| 51 | refine ⟨N, ?_⟩ |
| 52 | filter_upwards [hq (lt_mem_nhds (half_lt_self hqx))] with y hy |
| 53 | intro j hj |
| 54 | simp only [cutStage, hN j hj (q y) hy, zero_smul] |
| 55 | |
| 56 | /-- Local equality to a finite prefix establishes the meaning of the `tsum`. |
| 57 | The prefix length works for all derivative orders. -/ |
| 58 | theorem potentialSum_eventuallyEq_partial {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) |
| 59 | {q : X → ℝ} {x : X} (hq : ContinuousAt q x) (hqx : 0 < q x) |
| 60 | (A : ℕ → X → V) : |
| 61 | ∃ N : ℕ, potentialSum a q A =ᶠ[𝓝 x] partialPotential a q A N := by |
| 62 | obtain ⟨N, hN⟩ := eventually_zero_tail ha hq hqx A |
| 63 | refine ⟨N, hN.mono ?_⟩ |
| 64 | intro y hy |
| 65 | apply tsum_eq_sum |
| 66 | intro j hj |
| 67 | exact hy j (Nat.le_of_not_gt (by simpa only [Finset.mem_range] using hj)) |
| 68 | |
| 69 | theorem summable_cutStage {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) |
| 70 | {q : X → ℝ} {x : X} (hq : ContinuousAt q x) (hqx : 0 < q x) |
| 71 | (A : ℕ → X → V) : Summable (fun j => cutStage a q A j x) := by |
| 72 | obtain ⟨N, hN⟩ := eventually_zero_tail ha hq hqx A |
| 73 | apply summable_of_ne_finset_zero (s := Finset.range N) |
| 74 | intro j hj |
| 75 | exact hN.self_of_nhds j (Nat.le_of_not_gt (by simpa only [Finset.mem_range] using hj)) |
| 76 | |
| 77 | end Topological |
| 78 | |
| 79 | section Smooth |
| 80 | |
| 81 | variable {E V : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 82 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 83 | |
| 84 | theorem cutStage_contDiffAt {a : ℕ → ℝ} {q : E → ℝ} {A : ℕ → E → V} |
| 85 | {x : E} (hq : ContDiffAt ℝ ∞ q x) (hA : ∀ j, ContDiffAt ℝ ∞ (A j) x) |
| 86 | (j : ℕ) : ContDiffAt ℝ ∞ (cutStage a q A j) x := |
| 87 | ((SmoothCutoffs.scaledCutoff_contDiff (a j)).comp_contDiffAt x hq).smul (hA j) |
| 88 | |
| 89 | /-- Smoothness is proved for the constructed sum, not postulated. -/ |
| 90 | theorem potentialSum_contDiffAt {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) |
| 91 | {q : E → ℝ} {A : ℕ → E → V} {x : E} (hqx : 0 < q x) |
| 92 | (hq : ContDiffAt ℝ ∞ q x) (hA : ∀ j, ContDiffAt ℝ ∞ (A j) x) : |
| 93 | ContDiffAt ℝ ∞ (potentialSum a q A) x := by |
| 94 | obtain ⟨N, hN⟩ := potentialSum_eventuallyEq_partial ha hq.continuousAt hqx A |
| 95 | have hpartial : ContDiffAt ℝ ∞ (partialPotential a q A N) x := |
| 96 | ContDiffAt.sum (fun j _ => cutStage_contDiffAt hq hA j) |
| 97 | exact hpartial.congr_of_eventuallyEq hN |
| 98 | |
| 99 | theorem potentialSum_contDiffOn {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) |
| 100 | {q : E → ℝ} {A : ℕ → E → V} {U : Set E} (hU : IsOpen U) |
| 101 | (hqpos : ∀ x ∈ U, 0 < q x) (hq : ContDiffOn ℝ ∞ q U) |
| 102 | (hA : ∀ j, ContDiffOn ℝ ∞ (A j) U) : |
| 103 | ContDiffOn ℝ ∞ (potentialSum a q A) U := by |
| 104 | intro x hx |
| 105 | exact (potentialSum_contDiffAt ha (hqpos x hx) (hq.contDiffAt (hU.mem_nhds hx)) |
| 106 | (fun j => (hA j).contDiffAt (hU.mem_nhds hx))).contDiffWithinAt |
| 107 | |
| 108 | /-- Equality on a neighborhood preserves every iterated actual Fréchet |
| 109 | derivative, including the totalized derivative at nonsmooth points. -/ |
| 110 | theorem iteratedFDeriv_eventuallyEq {f g : E → V} {x : E} |
| 111 | (h : f =ᶠ[𝓝 x] g) (k : ℕ) : |
| 112 | iteratedFDeriv ℝ k f =ᶠ[𝓝 x] iteratedFDeriv ℝ k g := by |
| 113 | have h' : f =ᶠ[𝓝[univ] x] g := by simpa only [nhdsWithin_univ] using h |
| 114 | simpa only [nhdsWithin_univ, iteratedFDerivWithin_univ] using |
| 115 | h'.iteratedFDerivWithin (𝕜 := ℝ) k |
| 116 | |
| 117 | end Smooth |
| 118 | |
| 119 | section Spatial |
| 120 | |
| 121 | open ProblemStatement |
| 122 | |
| 123 | /-- The constructed velocity is the actual spatial curl of the summed |
| 124 | potential, with time held fixed by `SpatialCurl.spatialCurl`. -/ |
| 125 | def velocitySum (a : ℕ → ℝ) (q : SpaceTime → ℝ) (A : ℕ → VelocityField) : |
| 126 | VelocityField := |
| 127 | SpatialCurl.spatialCurl (potentialSum a q A) |
| 128 | |
| 129 | theorem velocitySum_contDiffAt {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) |
| 130 | {q : SpaceTime → ℝ} {A : ℕ → VelocityField} {z : SpaceTime} |
| 131 | (hqz : 0 < q z) (hq : ContDiffAt ℝ ∞ q z) |
| 132 | (hA : ∀ j, ContDiffAt ℝ ∞ (A j) z) : |
| 133 | ContDiffAt ℝ ∞ (velocitySum a q A) z := |
| 134 | SpatialCurl.contDiffAt_spatialCurl (potentialSum_contDiffAt ha hqz hq hA) (by simp) |
| 135 | |
| 136 | theorem velocitySum_contDiffOn {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) |
| 137 | {q : SpaceTime → ℝ} {A : ℕ → VelocityField} {U : Set SpaceTime} |
| 138 | (hU : IsOpen U) (hqpos : ∀ z ∈ U, 0 < q z) (hq : ContDiffOn ℝ ∞ q U) |
| 139 | (hA : ∀ j, ContDiffOn ℝ ∞ (A j) U) : |
| 140 | ContDiffOn ℝ ∞ (velocitySum a q A) U := by |
| 141 | intro z hz |
| 142 | exact (velocitySum_contDiffAt ha (hqpos z hz) (hq.contDiffAt (hU.mem_nhds hz)) |
| 143 | (fun j => (hA j).contDiffAt (hU.mem_nhds hz))).contDiffWithinAt |
| 144 | |
| 145 | theorem spatialCurl_eq_of_eventuallyEq {A B : VelocityField} {z : SpaceTime} |
| 146 | (h : A =ᶠ[𝓝 z] B) : SpatialCurl.spatialCurl A z = SpatialCurl.spatialCurl B z := by |
| 147 | apply SpatialCurl.curl_eq_of_eventuallyEq |
| 148 | exact h.comp_tendsto (continuous_const.prodMk continuous_id).continuousAt |
| 149 | |
| 150 | theorem spatialCurl_eventuallyEq {A B : VelocityField} {z : SpaceTime} |
| 151 | (h : A =ᶠ[𝓝 z] B) : SpatialCurl.spatialCurl A =ᶠ[𝓝 z] SpatialCurl.spatialCurl B := |
| 152 | h.eventuallyEq_nhds.mono fun _ hz => spatialCurl_eq_of_eventuallyEq hz |
| 153 | |
| 154 | theorem spatialCurl_partialPotential {a : ℕ → ℝ} {q : SpaceTime → ℝ} |
| 155 | {A : ℕ → VelocityField} {z : SpaceTime} (hq : ContDiffAt ℝ ∞ q z) |
| 156 | (hA : ∀ j, ContDiffAt ℝ ∞ (A j) z) (N : ℕ) : |
| 157 | SpatialCurl.spatialCurl (partialPotential a q A N) z = |
| 158 | ∑ j ∈ Finset.range N, SpatialCurl.spatialCurl (cutStage a q A j) z := by |
| 159 | have hstage : ∀ j ∈ Finset.range N, |
| 160 | DifferentiableAt ℝ (fun y : Space => cutStage a q A j (z.1, y)) z.2 := by |
| 161 | intro j _ |
| 162 | exact ((cutStage_contDiffAt hq hA j).comp z.2 |
| 163 | (contDiffAt_const.prodMk contDiffAt_id)).differentiableAt (by simp) |
| 164 | simpa only [partialPotential, SpatialCurl.spatialCurl, SpatialCurl.curl, map_sum] using |
| 165 | congrArg SpatialCurl.curlLinear (fderiv_fun_sum hstage) |
| 166 | |
| 167 | /-- The curl of the summed potential is locally the finite sum of the curls |
| 168 | of the cut potentials. Thus it also realizes the manuscript's stage sum. -/ |
| 169 | theorem velocitySum_eventuallyEq_sum {a : ℕ → ℝ} (ha : Tendsto a atTop atTop) |
| 170 | {q : SpaceTime → ℝ} {A : ℕ → VelocityField} {U : Set SpaceTime} |
| 171 | (hU : IsOpen U) (hqpos : ∀ z ∈ U, 0 < q z) (hq : ContDiffOn ℝ ∞ q U) |
| 172 | (hA : ∀ j, ContDiffOn ℝ ∞ (A j) U) {z : SpaceTime} (hz : z ∈ U) : |
| 173 | ∃ N : ℕ, velocitySum a q A =ᶠ[𝓝 z] |
| 174 | (fun w => ∑ j ∈ Finset.range N, SpatialCurl.spatialCurl (cutStage a q A j) w) := by |
| 175 | obtain ⟨N, hN⟩ := potentialSum_eventuallyEq_partial ha |
| 176 | (hq.contDiffAt (hU.mem_nhds hz)).continuousAt (hqpos z hz) A |
| 177 | refine ⟨N, ?_⟩ |
| 178 | filter_upwards [spatialCurl_eventuallyEq hN, hU.mem_nhds hz] with w hw hwU |
| 179 | exact hw.trans (spatialCurl_partialPotential (hq.contDiffAt (hU.mem_nhds hwU)) |
| 180 | (fun j => (hA j).contDiffAt (hU.mem_nhds hwU)) N) |
| 181 | |
| 182 | /-- Integer schedules from `DiagonalScale` supply the required real divergence |
| 183 | of the cutoff scales. -/ |
| 184 | theorem realScales_tendsto {a : ℕ → ℕ} (ha : StrictMono a) : |
| 185 | Tendsto (fun j => (a j : ℝ)) atTop atTop := |
| 186 | tendsto_natCast_atTop_atTop.comp ha.tendsto_atTop |
| 187 | |
| 188 | end Spatial |
| 189 | |
| 190 | end NavierStokes.SolenoidalDiagonal |