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.GenericSupportedPolynomial |
| 2 | |
| 3 | /-! # Differential polynomials with coefficients smooth only on factor supports |
| 4 | |
| 5 | The literal coefficient is retained. At points outside the common factor |
| 6 | region the monomial has a zero germ, making its product smooth with every |
| 7 | jet zero even when the coefficient itself is singular or nonsmooth there. |
| 8 | -/ |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace NavierStokes.GenericDifferentialPolynomial |
| 13 | |
| 14 | open Set Filter DiagonalResidual |
| 15 | open scoped Topology ContDiff BigOperators |
| 16 | |
| 17 | variable {D : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 18 | variable {l : Filter D} {q : D → ℝ} {U S : Set D} |
| 19 | |
| 20 | theorem norm_jet_mul_at {f g : D → ℝ} {x : D} |
| 21 | (hf : ContDiffAt ℝ ∞ f x) (hg : ContDiffAt ℝ ∞ g x) (m : ℕ) |
| 22 | {A B : ℝ} (hA : ∀ k ≤ m, ‖iteratedFDeriv ℝ k f x‖ ≤ A) |
| 23 | (hB : ∀ k ≤ m, ‖iteratedFDeriv ℝ k g x‖ ≤ B) : |
| 24 | ‖iteratedFDeriv ℝ m (fun y => f y * g y) x‖ ≤ 2 ^ m * A * B := by |
| 25 | obtain ⟨V, hV, hxV, hfV⟩ := hf.contDiffOn' (m := (m : WithTop ℕ∞)) (by simp) (by simp) |
| 26 | obtain ⟨W, hW, hxW, hgW⟩ := hg.contDiffOn' (m := (m : WithTop ℕ∞)) (by simp) (by simp) |
| 27 | simp only [Set.insert_eq_of_mem (Set.mem_univ x), univ_inter] at hfV hgW |
| 28 | have hfs : ContDiffOn ℝ m f (V ∩ W) := hfV.mono inter_subset_left |
| 29 | have hgs : ContDiffOn ℝ m g (V ∩ W) := hgW.mono inter_subset_right |
| 30 | have hA0 : 0 ≤ A := (norm_nonneg _).trans (hA 0 (Nat.zero_le _)) |
| 31 | apply (JetBounds.norm_iteratedFDeriv_mul_le_on (hV.inter hW) hfs hgs |
| 32 | ⟨hxV, hxW⟩ (le_refl (m : WithTop ℕ∞))).trans |
| 33 | calc |
| 34 | _ ≤ ∑ i ∈ Finset.range (m + 1), (m.choose i : ℝ) * A * B := by |
| 35 | apply Finset.sum_le_sum |
| 36 | intro i hi |
| 37 | exact mul_le_mul |
| 38 | (mul_le_mul_of_nonneg_left (hA i (Nat.le_of_lt_succ (Finset.mem_range.mp hi))) |
| 39 | (Nat.cast_nonneg _)) |
| 40 | (hB (m - i) (Nat.sub_le _ _)) (norm_nonneg _) |
| 41 | (mul_nonneg (Nat.cast_nonneg _) hA0) |
| 42 | _ = 2 ^ m * A * B := by |
| 43 | rw [← Finset.sum_mul, ← Finset.sum_mul] |
| 44 | congr 2 |
| 45 | exact_mod_cast Nat.sum_range_choose m |
| 46 | |
| 47 | /-- The product estimate only needs smoothness at the points in the filter. -/ |
| 48 | theorem rate_mul_at {f g : D → ℝ} |
| 49 | (hq : ∀ᶠ x in l, 0 < q x) |
| 50 | (hf : ∀ᶠ x in l, ContDiffAt ℝ ∞ f x) |
| 51 | (hg : ∀ᶠ x in l, ContDiffAt ℝ ∞ g x) |
| 52 | {m : ℕ} {r s : ℝ} (hr : FiniteJetRate l q f m r) |
| 53 | (hs : FiniteJetRate l q g m s) : |
| 54 | JetRate l q (fun x => f x * g x) m (r + s) := by |
| 55 | obtain ⟨A, hA, hbA⟩ := hr |
| 56 | obtain ⟨B, hB, hbB⟩ := hs |
| 57 | refine ⟨2 ^ m * A * B, by positivity, ?_⟩ |
| 58 | filter_upwards [hq, hf, hg, hbA, hbB] with x hqx hfx hgx hAx hBx |
| 59 | calc |
| 60 | _ ≤ 2 ^ m * (A * q x ^ r) * (B * q x ^ s) := norm_jet_mul_at hfx hgx m hAx hBx |
| 61 | _ = (2 ^ m * A * B) * q x ^ (r + s) := by rw [Real.rpow_add hqx]; ring |
| 62 | |
| 63 | omit [NormedSpace ℝ D] in |
| 64 | theorem mul_zero_germ {c f : D → ℝ} {x : D} |
| 65 | (hzero : f =ᶠ[𝓝 x] (fun _ => 0)) : |
| 66 | (fun y => c y * f y) =ᶠ[𝓝 x] (fun _ => 0) := by |
| 67 | filter_upwards [hzero] with y hy |
| 68 | simp only [hy, mul_zero] |
| 69 | |
| 70 | theorem iteratedFDeriv_mul_eq_zero_of_zero_germ {c f : D → ℝ} {x : D} |
| 71 | (hzero : f =ᶠ[𝓝 x] (fun _ => 0)) (m : ℕ) : |
| 72 | iteratedFDeriv ℝ m (fun y => c y * f y) x = 0 := by |
| 73 | have heq := (SolenoidalDiagonal.iteratedFDeriv_eventuallyEq |
| 74 | (mul_zero_germ (c := c) hzero) m).self_of_nhds |
| 75 | simpa only [iteratedFDeriv_fun_zero, Pi.zero_apply] using heq |
| 76 | |
| 77 | theorem smooth_mul_of_support_local {c f : D → ℝ} |
| 78 | (hU : IsOpen U) (hf : ContDiffOn ℝ ∞ f U) |
| 79 | (hc : ∀ x ∈ U, x ∈ S → ContDiffAt ℝ ∞ c x) |
| 80 | (hzero : ∀ x ∈ U, x ∉ S → f =ᶠ[𝓝 x] (fun _ => 0)) : |
| 81 | ContDiffOn ℝ ∞ (fun x => c x * f x) U := by |
| 82 | intro x hx |
| 83 | by_cases hs : x ∈ S |
| 84 | · exact ((hc x hx hs).mul (hf.contDiffAt (hU.mem_nhds hx))).contDiffWithinAt |
| 85 | · exact (contDiffAt_const.congr_of_eventuallyEq |
| 86 | (mul_zero_germ (c := c) (hzero x hx hs))).contDiffWithinAt |
| 87 | |
| 88 | /-- In particular a reciprocal coefficient may be singular on the axis or |
| 89 | any zero set outside the common factor region. Its actual product is smooth. -/ |
| 90 | theorem smooth_mul_inv_of_support_local {r f : D → ℝ} |
| 91 | (hU : IsOpen U) (hf : ContDiffOn ℝ ∞ f U) |
| 92 | (hr : ∀ x ∈ U, x ∈ S → ContDiffAt ℝ ∞ r x) |
| 93 | (hpos : ∀ x ∈ U, x ∈ S → r x ≠ 0) |
| 94 | (hzero : ∀ x ∈ U, x ∉ S → f =ᶠ[𝓝 x] (fun _ => 0)) : |
| 95 | ContDiffOn ℝ ∞ (fun x => (r x)⁻¹ * f x) U := |
| 96 | smooth_mul_of_support_local hU hf (fun x hx hs => (hr x hx hs).inv (hpos x hx hs)) hzero |
| 97 | |
| 98 | def ApproximationRates.mul_coefficient_support_local |
| 99 | {gain : ℕ → ℝ} {f c : D → ℝ} {fs : ℕ → D → ℝ} |
| 100 | (a : ApproximationRates l q gain f fs) |
| 101 | (hU : IsOpen U) (hlU : ∀ᶠ x in l, x ∈ U) |
| 102 | (hq : ∀ᶠ x in l, 0 < q x ∧ q x ≤ 1) |
| 103 | (hf : ContDiffOn ℝ ∞ f U) (hfs : ∀ J, ContDiffOn ℝ ∞ (fs J) U) |
| 104 | (hc : ∀ x ∈ U, x ∈ S → ContDiffAt ℝ ∞ c x) (Lc : ℕ → ℝ) |
| 105 | (hcg : ∀ m, JetRate (l ⊓ 𝓟 S) q c m (-Lc m)) |
| 106 | (hzero : ∀ x ∈ U, x ∉ S → f =ᶠ[𝓝 x] (fun _ => 0)) |
| 107 | (hszero : ∀ J x, x ∈ U → x ∉ S → fs J =ᶠ[𝓝 x] (fun _ => 0)) : |
| 108 | TailRates l q gain (fun x => c x * f x) (fun J x => c x * fs J x) := by |
| 109 | let M : ℕ → ℕ := fun m => (Finset.range (m + 1)).sup a.threshold |
| 110 | refine ⟨fun m => maxJetLoss Lc m + maxJetLoss a.tailLoss m, M, ?_⟩ |
| 111 | intro m J hJ |
| 112 | have hqr : ∀ᶠ x in l ⊓ 𝓟 S, 0 < q x ∧ q x ≤ 1 := hq.filter_mono inf_le_left |
| 113 | have hlr : ∀ᶠ x in l ⊓ 𝓟 S, x ∈ U := hlU.filter_mono inf_le_left |
| 114 | have hregion : ∀ᶠ x in l ⊓ 𝓟 S, x ∈ S := |
| 115 | Filter.Eventually.filter_mono inf_le_right (by simp) |
| 116 | have hcr : FiniteJetRate (l ⊓ 𝓟 S) q c m (-maxJetLoss Lc m) := by |
| 117 | apply finiteJetRate_of_jetRate (hqr.mono fun _ hx => hx.1) |
| 118 | intro k hk |
| 119 | exact (hcg k).weaken hqr (neg_le_neg (le_maxJetLoss Lc hk)) |
| 120 | have htr : FiniteJetRate (l ⊓ 𝓟 S) q (fun x => f x - fs J x) m |
| 121 | (gain J - maxJetLoss a.tailLoss m) := by |
| 122 | apply finiteJetRate_of_jetRate (hqr.mono fun _ hx => hx.1) |
| 123 | intro k hk |
| 124 | have ht : a.threshold k ≤ J := |
| 125 | (Finset.le_sup (f := a.threshold) (Finset.mem_range.mpr (Nat.lt_succ_of_le hk))).trans hJ |
| 126 | exact (rate_filter_mono inf_le_left (a.tail_rate k J ht)).weaken hqr |
| 127 | (sub_le_sub_left (le_maxJetLoss a.tailLoss hk) _) |
| 128 | have hca : ∀ᶠ x in l ⊓ 𝓟 S, ContDiffAt ℝ ∞ c x := by |
| 129 | filter_upwards [hlr, hregion] with x hx hs |
| 130 | exact hc x hx hs |
| 131 | have hr := rate_mul_at (hqr.mono fun _ hx => hx.1) hca |
| 132 | (hlr.mono fun x hx => (hf.sub (hfs J)).contDiffAt (hU.mem_nhds hx)) hcr htr |
| 133 | have hr' : JetRate (l ⊓ 𝓟 S) q (fun x => c x * f x - c x * fs J x) m |
| 134 | (gain J - (maxJetLoss Lc m + maxJetLoss a.tailLoss m)) := by |
| 135 | convert hr.congr_on hU hlr |
| 136 | (show EqOn (fun x => c x * (f x - fs J x)) |
| 137 | (fun x => c x * f x - c x * fs J x) U from fun x _ => mul_sub _ _ _) using 1 |
| 138 | ring |
| 139 | apply rate_of_restricted_support (hq.mono fun _ hx => hx.1) hlU hr' |
| 140 | intro x hxU hx |
| 141 | filter_upwards [hzero x hxU hx, hszero J x hxU hx] with y hy hsy |
| 142 | simp only [hy, hsy, mul_zero, sub_self] |
| 143 | |
| 144 | namespace SupportedPolynomial |
| 145 | |
| 146 | variable {ι : Type*} |
| 147 | |
| 148 | theorem smooth_evalTerms_of_products (terms : List ((D → ℝ) × Expression D ι Empty)) |
| 149 | {u : ι → D → ℝ} |
| 150 | (ht : ∀ t ∈ terms, ContDiffOn ℝ ∞ |
| 151 | (fun x => t.1 x * t.2.eval (fun k => Empty.elim k) u x) U) : |
| 152 | ContDiffOn ℝ ∞ (evalTerms u terms) U := by |
| 153 | induction terms with |
| 154 | | nil => exact contDiffOn_const |
| 155 | | cons t ts ih => |
| 156 | exact (ht t (by simp)).add (ih (fun v hv => ht v (by simp [hv]))) |
| 157 | |
| 158 | def termsTail_of_products {gain : ℕ → ℝ} {u : ι → D → ℝ} {us : ℕ → ι → D → ℝ} |
| 159 | (terms : List ((D → ℝ) × Expression D ι Empty)) |
| 160 | (hU : IsOpen U) (hlU : ∀ᶠ x in l, x ∈ U) |
| 161 | (hq : ∀ᶠ x in l, 0 < q x ∧ q x ≤ 1) |
| 162 | (hu : ∀ t ∈ terms, ContDiffOn ℝ ∞ |
| 163 | (fun x => t.1 x * t.2.eval (fun k => Empty.elim k) u x) U) |
| 164 | (hus : ∀ t ∈ terms, ∀ J, ContDiffOn ℝ ∞ |
| 165 | (fun x => t.1 x * t.2.eval (fun k => Empty.elim k) (us J) x) U) |
| 166 | (ht : ∀ t ∈ terms, |
| 167 | TailRates l q gain (fun x => t.1 x * t.2.eval (fun k => Empty.elim k) u x) |
| 168 | (fun J x => t.1 x * t.2.eval (fun k => Empty.elim k) (us J) x)) : |
| 169 | TailRates l q gain (evalTerms u terms) (fun J => evalTerms (us J) terms) := by |
| 170 | induction terms with |
| 171 | | nil => exact TailRates.fixed (fun _ => 0) |
| 172 | | cons t ts ih => |
| 173 | exact (ht t (by simp)).add |
| 174 | (ih (fun v hv => hu v (by simp [hv])) (fun v hv => hus v (by simp [hv])) |
| 175 | (fun v hv => ht v (by simp [hv]))) hU hlU hq |
| 176 | (hu t (by simp)) (smooth_evalTerms_of_products ts (fun v hv => hu v (by simp [hv]))) |
| 177 | (hus t (by simp)) |
| 178 | (fun J => smooth_evalTerms_of_products ts (fun v hv => hus v (by simp [hv]) J)) |
| 179 | |
| 180 | /-- Full residual transfer with smoothness, as well as all coefficient |
| 181 | growth bounds, required only at points of each common factor region. The |
| 182 | conclusion evaluates the original polynomial with its original coefficients. -/ |
| 183 | theorem flat_of_support_local_coefficients (P : SupportedPolynomial D ι) |
| 184 | {gain rho : ℕ → ℝ} {u : ι → D → ℝ} {us : ℕ → ι → D → ℝ} |
| 185 | (hU : IsOpen U) (hlU : ∀ᶠ x in l, x ∈ U) |
| 186 | (hq : ∀ᶠ x in l, 0 < q x ∧ q x ≤ 1) |
| 187 | (hu : ∀ i, ContDiffOn ℝ ∞ (u i) U) |
| 188 | (hus : ∀ J i, ContDiffOn ℝ ∞ (us J i) U) |
| 189 | (hgain : Tendsto gain atTop atTop) (hrho : Tendsto rho atTop atTop) |
| 190 | (ha : ∀ i, ApproximationRates l q gain (u i) (fun J => us J i)) |
| 191 | (hconst : ContDiffOn ℝ ∞ P.constant U) |
| 192 | (region : ((D → ℝ) × Expression D ι Empty) → Set D) |
| 193 | (hc : ∀ t ∈ P.terms, ∀ x ∈ U, x ∈ region t → ContDiffAt ℝ ∞ t.1 x) |
| 194 | (Lc : ((D → ℝ) × Expression D ι Empty) → ℕ → ℝ) |
| 195 | (hcg : ∀ t ∈ P.terms, ∀ m, JetRate (l ⊓ 𝓟 (region t)) q t.1 m (-Lc t m)) |
| 196 | (hzero : ∀ t ∈ P.terms, ∀ x ∈ U, x ∉ region t → |
| 197 | t.2.eval (fun k => Empty.elim k) u =ᶠ[𝓝 x] (fun _ => 0)) |
| 198 | (hszero : ∀ t ∈ P.terms, ∀ J x, x ∈ U → x ∉ region t → |
| 199 | t.2.eval (fun k => Empty.elim k) (us J) =ᶠ[𝓝 x] (fun _ => 0)) |
| 200 | (Lres : ℕ → ℝ) |
| 201 | (hres : ∀ J m, JetRate l q (P.eval (us J)) m (rho J - Lres m)) |
| 202 | (m : ℕ) (n : ℝ) : JetRate l q (P.eval u) m n := by |
| 203 | have hprod : ∀ t ∈ P.terms, ContDiffOn ℝ ∞ |
| 204 | (fun x => t.1 x * t.2.eval (fun k => Empty.elim k) u x) U := by |
| 205 | intro t ht |
| 206 | exact smooth_mul_of_support_local hU (t.2.smooth_eval hU (fun k => Empty.elim k) hu) |
| 207 | (hc t ht) (hzero t ht) |
| 208 | have hsprod : ∀ t ∈ P.terms, ∀ J, ContDiffOn ℝ ∞ |
| 209 | (fun x => t.1 x * t.2.eval (fun k => Empty.elim k) (us J) x) U := by |
| 210 | intro t ht J |
| 211 | exact smooth_mul_of_support_local hU (t.2.smooth_eval hU (fun k => Empty.elim k) (hus J)) |
| 212 | (hc t ht) (hszero t ht J) |
| 213 | let ht := termsTail_of_products P.terms hU hlU hq hprod hsprod (fun t ht => |
| 214 | (t.2.approximation_eval hU hlU hq (fun k => Empty.elim k) hu hus hgain |
| 215 | (fun k => Empty.elim k) (fun k => Empty.elim k) ha).mul_coefficient_support_local |
| 216 | hU hlU hq (t.2.smooth_eval hU (fun k => Empty.elim k) hu) |
| 217 | (fun J => t.2.smooth_eval hU (fun k => Empty.elim k) (hus J)) |
| 218 | (hc t ht) (Lc t) (hcg t ht) (hzero t ht) (hszero t ht)) |
| 219 | have hs := smooth_evalTerms_of_products P.terms hprod |
| 220 | have hss := fun J => smooth_evalTerms_of_products P.terms (fun t ht => hsprod t ht J) |
| 221 | let hp := (TailRates.fixed P.constant).add ht hU hlU hq hconst hs (fun _ => hconst) hss |
| 222 | exact hp.flat_of_residuals hU hlU hq (hconst.add hs) |
| 223 | (fun J => hconst.add (hss J)) hgain hrho Lres hres m n |
| 224 | |
| 225 | end SupportedPolynomial |
| 226 | |
| 227 | end NavierStokes.GenericDifferentialPolynomial |