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.GenericDiagonalSchedule |
| 2 | import NavierStokes.GenericSupportedPolynomial |
| 3 | |
| 4 | /-! |
| 5 | # A single smooth diagonal realization with finite differential-polynomial tests |
| 6 | |
| 7 | All estimates are on the actual cutoff series. The same schedule supplies every |
| 8 | jet order and an arbitrary finite set of extra tests at each stage. Residual |
| 9 | transfer permits independently varying residual gains and coefficient growth |
| 10 | only on the common support of each nonconstant monomial. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | namespace NavierStokes.GenericRealization |
| 16 | |
| 17 | open Set Filter DiagonalResidual GenericRealizationBounds GenericDifferentialPolynomial |
| 18 | open scoped Topology ContDiff BigOperators |
| 19 | |
| 20 | variable {D : Type*} |
| 21 | |
| 22 | /-- Approach the singular scale uniformly over the full prescribed domain. -/ |
| 23 | def scaleApproach (U : Set D) (q : D → ℝ) : Filter D := |
| 24 | comap q (𝓝[>] (0 : ℝ)) ⊓ 𝓟 U |
| 25 | |
| 26 | theorem eventually_domain (U : Set D) (q : D → ℝ) : |
| 27 | ∀ᶠ x in scaleApproach U q, x ∈ U := |
| 28 | Filter.Eventually.filter_mono inf_le_right (show ∀ᶠ x in 𝓟 U, x ∈ U from by simp) |
| 29 | |
| 30 | theorem scale_tendsto (U : Set D) (q : D → ℝ) : |
| 31 | Tendsto q (scaleApproach U q) (𝓝 0) := |
| 32 | (tendsto_comap.mono_left inf_le_left).mono_right nhdsWithin_le_nhds |
| 33 | |
| 34 | variable [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 35 | |
| 36 | /-- A filter rate yields the literal uniform small-scale estimate, including |
| 37 | strictly positive constants and radius. -/ |
| 38 | theorem uniform_bound_of_rate {U : Set D} {q : D → ℝ} {f : D → ℝ} |
| 39 | {m : ℕ} {r : ℝ} (h : JetRate (scaleApproach U q) q f m r) : |
| 40 | ∃ δ C : ℝ, 0 < δ ∧ 0 < C ∧ ∀ x ∈ U, 0 < q x → q x < δ → |
| 41 | ‖iteratedFDeriv ℝ m f x‖ ≤ C * q x ^ r := by |
| 42 | obtain ⟨C, hC, hb⟩ := h |
| 43 | have hb' : ∀ᶠ v in 𝓝[>] (0 : ℝ), ∀ x, q x = v → x ∈ U → |
| 44 | ‖iteratedFDeriv ℝ m f x‖ ≤ C * q x ^ r := |
| 45 | eventually_comap.mp (eventually_inf_principal.mp hb) |
| 46 | obtain ⟨δ, hδ, hd⟩ := mem_nhdsGT_iff_exists_Ioo_subset.mp hb' |
| 47 | refine ⟨δ, C + 1, hδ, by linarith, ?_⟩ |
| 48 | intro x hx hqx hsmall |
| 49 | exact (hd ⟨hqx, hsmall⟩ x rfl hx).trans |
| 50 | (mul_le_mul_of_nonneg_right (by linarith) (Real.rpow_nonneg hqx.le _)) |
| 51 | |
| 52 | variable {ι : Type*} |
| 53 | |
| 54 | /-- Properties derived for one selected schedule, rather than new schedules |
| 55 | chosen after the derivative order or the polynomial has been supplied. -/ |
| 56 | structure Properties (U : Set D) (q : D → ℝ) (base : ι → D → ℝ) |
| 57 | (A : ι → ℕ → D → ℝ) (g L : ℕ → ℝ) (a : ℕ → ℕ) : Prop where |
| 58 | positive : ∀ j, 0 < a j |
| 59 | doubling : ∀ j, 2 * a j ≤ a (j + 1) |
| 60 | strictMono : StrictMono a |
| 61 | tends : Tendsto (fun j => (a j : ℝ)) atTop atTop |
| 62 | locallyFinite : ∀ i, LocallyFinite (fun j => |
| 63 | Function.support (fun x : U => SolenoidalDiagonal.cutStage (fun j => (a j : ℝ)) q |
| 64 | (CutStageEstimates.positiveStages (A i)) j x)) |
| 65 | smooth : ∀ i, ContDiffOn ℝ ∞ (realized (fun j => (a j : ℝ)) q (base i) (A i)) U |
| 66 | approximation : ∀ i, Nonempty (ApproximationRates (scaleApproach U q) q (fun J => g (J + 1) / 2) |
| 67 | (realized (fun j => (a j : ℝ)) q (base i) (A i)) (stage (base i) (A i))) |
| 68 | exact_tail : ∀ i x, x ∈ U → ∀ J m, m ≤ J + 3 → q x < 1 / (2 * (a J : ℝ)) → |
| 69 | ‖iteratedFDeriv ℝ m (fun y => realized (fun j => (a j : ℝ)) q (base i) (A i) y - |
| 70 | stage (base i) (A i) J y) x‖ ≤ |
| 71 | (1 / 2 : ℝ) ^ J * q x ^ (g (J + 1) / 2 - CutStageEstimates.cutLoss L m) |
| 72 | outer_zero : ∀ i x, ContinuousAt q x → 1 / (a 0 : ℝ) < q x → |
| 73 | SolenoidalDiagonal.potentialSum (fun j => (a j : ℝ)) q |
| 74 | (CutStageEstimates.positiveStages (A i)) =ᶠ[𝓝 x] (fun _ => 0) |
| 75 | |
| 76 | /-- Existence from the raw logarithmic increment and base bounds. Auxiliary |
| 77 | tests have arbitrary per-test logarithmic weights and positive decay powers. -/ |
| 78 | theorem exists_realization [Fintype ι] {U : Set D} (hU : IsOpen U) {q : D → ℝ} |
| 79 | (hq : ContDiffOn ℝ ∞ q U) (hpos : ∀ x ∈ U, 0 < q x ∧ q x ≤ 1) |
| 80 | (Bq : ℕ → ℝ) |
| 81 | (hBq : ∀ k x, x ∈ U → q x ≤ 1 → |
| 82 | ‖iteratedFDeriv ℝ k q x‖ ≤ Bq k * q x ^ (1 - (k : ℝ))) |
| 83 | {base : ι → D → ℝ} (hbase : ∀ i, ContDiffOn ℝ ∞ (base i) U) |
| 84 | (Cb Pb Kb : ℕ → ℝ) |
| 85 | (hbaseBound : ∀ i m x, x ∈ U → ‖iteratedFDeriv ℝ m (base i) x‖ ≤ |
| 86 | Cb m * (1 + |Real.log (q x)|) ^ Pb m * q x ^ (-Kb m)) |
| 87 | {A : ι → ℕ → D → ℝ} (hA : ∀ i j, 1 ≤ j → ContDiffOn ℝ ∞ (A i j) U) |
| 88 | (g L : ℕ → ℝ) (C P : ι → ℕ → ℕ → ℝ) |
| 89 | (hraw : ∀ i, CutStageEstimates.RawStageBounds q (A i) g L (C i) (P i) U) |
| 90 | (hgpos : ∀ j, 1 ≤ j → 0 < g j) (hgmono : Monotone g) |
| 91 | (lower : ℕ) {κ : Type*} (tests : ℕ → Finset κ) (B Pt γ : ℕ → κ → ℝ) |
| 92 | (hγ : ∀ j k, k ∈ tests j → 0 < γ j k) {q0 : ℝ} (hq0 : 0 < q0) : |
| 93 | ∃ a : ℕ → ℕ, lower ≤ a 0 ∧ (∀ j, 1 / (a j : ℝ) < q0) ∧ |
| 94 | Properties U q base A g L a ∧ |
| 95 | ∀ j k, k ∈ tests j → ∀ r : ℝ, 0 < r → r ≤ 1 / (a j : ℝ) → |
| 96 | |DiagonalScale.logPowerWeight (B j k) (Pt j k) (γ j k) r| ≤ (1 / 2 : ℝ) ^ j := by |
| 97 | obtain ⟨a, hlo, hap, had, ham, hat, hao, hab, hatest⟩ := |
| 98 | GenericDiagonalSchedule.exists_finite_diagonal_cut_bounds_with_tests hU Subset.rfl hq |
| 99 | (fun x hx => (hpos x hx).1) Bq hBq hA g L C P hraw hgpos lower tests B Pt γ hγ hq0 |
| 100 | have hlU := eventually_domain U q |
| 101 | have hlq : ∀ᶠ x in scaleApproach U q, 0 < q x ∧ q x ≤ 1 := hlU.mono fun x hx => hpos x hx |
| 102 | have hzero := scale_tendsto U q |
| 103 | have haReal : Monotone (fun j => (a j : ℝ)) := fun i j hij => by |
| 104 | change (a i : ℝ) ≤ (a j : ℝ) |
| 105 | exact_mod_cast ham.monotone hij |
| 106 | have hapReal : ∀ j, 0 < (a j : ℝ) := fun j => by exact_mod_cast hap j |
| 107 | have hgHalf : Monotone (fun j => g j / 2) := fun i j hij => div_le_div_of_nonneg_right (hgmono hij) (by norm_num) |
| 108 | have hb : ∀ i m, JetRate (scaleApproach U q) q (base i) m (-(Kb m + 1)) := by |
| 109 | intro i m |
| 110 | convert jetRate_of_log_bound (hlq.mono fun _ hx => hx.1) hzero m (Cb m) (Pb m) (-Kb m) |
| 111 | (hlU.mono fun x hx => hbaseBound i m x hx) using 1 |
| 112 | ring |
| 113 | refine ⟨a, hlo, hao, ?_, hatest⟩ |
| 114 | refine ⟨hap, had, ham, hat, ?_, ?_, ?_, ?_, ?_⟩ |
| 115 | · intro i |
| 116 | exact SolenoidalDiagonal.locallyFinite_cutStage_support_on hat hq.continuousOn |
| 117 | (fun x hx => (hpos x hx).1) _ |
| 118 | · intro i |
| 119 | exact realized_smooth hU hq (fun x hx => (hpos x hx).1) hat (hbase i) (hA i) |
| 120 | · intro i |
| 121 | refine ⟨⟨fun m => max (L m + 1) (Kb m + 1), CutStageEstimates.cutLoss L, id, ?_, ?_⟩⟩ |
| 122 | · intro J m |
| 123 | exact stage_growth hU hlU hlq hzero (hbase i) (hA i) (hraw i) |
| 124 | (fun j hj => (hgpos j hj).le) (hb i) J m |
| 125 | · intro m J hJ |
| 126 | change m ≤ J at hJ |
| 127 | exact realized_tail_jetRate hat hU hq (hA i) hgHalf (hab i) hlU hlq hzero J m (by omega) |
| 128 | · intro i x hx J m hm hsmall |
| 129 | exact realized_tail_bound hat haReal hapReal hU hq (hA i) hgHalf (hab i) |
| 130 | hx (hpos x hx).1 (hpos x hx).2 J m hm hsmall |
| 131 | · intro i x hqx houter |
| 132 | exact correction_eventually_zero haReal hapReal hqx houter _ |
| 133 | |
| 134 | /-- The full residual assertion, with logarithmic coefficient and finite-stage |
| 135 | bounds and an arbitrary all-orders-flat error majorant. Its conclusion is a |
| 136 | uniform estimate on the whole domain, with the schedule already fixed. -/ |
| 137 | theorem Properties.flat_residual {U : Set D} {q : D → ℝ} |
| 138 | {base : ι → D → ℝ} {A : ι → ℕ → D → ℝ} {g L : ℕ → ℝ} {a : ℕ → ℕ} |
| 139 | (H : Properties U q base A g L a) (hU : IsOpen U) |
| 140 | (hq : ∀ x ∈ U, 0 < q x ∧ q x ≤ 1) |
| 141 | (hbase : ∀ i, ContDiffOn ℝ ∞ (base i) U) |
| 142 | (hA : ∀ i j, 1 ≤ j → ContDiffOn ℝ ∞ (A i j) U) |
| 143 | (hgtop : Tendsto g atTop atTop) (P : SupportedPolynomial D ι) |
| 144 | (hconst : ContDiffOn ℝ ∞ P.constant U) |
| 145 | (hc : ∀ t ∈ P.terms, ContDiffOn ℝ ∞ t.1 U) |
| 146 | (region : ((D → ℝ) × Expression D ι Empty) → Set D) (Cc Pc Kc : ℕ → ℝ) |
| 147 | (hcoeff : ∀ t ∈ P.terms, ∀ m x, x ∈ U → x ∈ region t → |
| 148 | ‖iteratedFDeriv ℝ m t.1 x‖ ≤ |
| 149 | Cc m * (1 + |Real.log (q x)|) ^ Pc m * q x ^ (-Kc m)) |
| 150 | (hzero : ∀ t ∈ P.terms, ∀ x ∈ U, x ∉ region t → |
| 151 | t.2.eval (fun k => Empty.elim k) |
| 152 | (fun i => realized (fun j => (a j : ℝ)) q (base i) (A i)) =ᶠ[𝓝 x] (fun _ => 0)) |
| 153 | (hszero : ∀ t ∈ P.terms, ∀ J x, x ∈ U → x ∉ region t → |
| 154 | t.2.eval (fun k => Empty.elim k) |
| 155 | (fun i => stage (base i) (A i) J) =ᶠ[𝓝 x] (fun _ => 0)) |
| 156 | (rho : ℕ → ℝ) (hrho : Tendsto rho atTop atTop) |
| 157 | (Cr Pr : ℕ → ℕ → ℝ) (Kr : ℕ → ℝ) (error : ℕ → ℕ → D → ℝ) |
| 158 | (hres : ∀ J m x, x ∈ U → |
| 159 | ‖iteratedFDeriv ℝ m (P.eval (fun i => stage (base i) (A i) J)) x‖ ≤ |
| 160 | Cr J m * (1 + |Real.log (q x)|) ^ Pr J m * q x ^ (rho J - Kr m) + error J m x) |
| 161 | (he : ∀ J m N, ∃ Ce : ℝ, 0 ≤ Ce ∧ ∀ x ∈ U, error J m x ≤ Ce * q x ^ (N : ℕ)) |
| 162 | (m : ℕ) (N : ℝ) : |
| 163 | ∃ δ C : ℝ, 0 < δ ∧ 0 < C ∧ ∀ x ∈ U, 0 < q x → q x < δ → |
| 164 | ‖iteratedFDeriv ℝ m |
| 165 | (P.eval (fun i => realized (fun j => (a j : ℝ)) q (base i) (A i))) x‖ ≤ C * q x ^ N := by |
| 166 | have hlU := eventually_domain U q |
| 167 | have hlq := hlU.mono (fun x hx => hq x hx) |
| 168 | have hqzero := scale_tendsto U q |
| 169 | have hgain : Tendsto (fun J => g (J + 1) / 2) atTop atTop := |
| 170 | (hgtop.comp (tendsto_add_atTop_nat 1)).atTop_div_const (by norm_num) |
| 171 | have hcoeffRate : ∀ t ∈ P.terms, ∀ m, |
| 172 | JetRate (scaleApproach U q ⊓ 𝓟 (region t)) q t.1 m (-(Kc m + 1)) := by |
| 173 | intro t ht m |
| 174 | have hregion : ∀ᶠ x in scaleApproach U q ⊓ 𝓟 (region t), x ∈ region t := |
| 175 | Filter.Eventually.filter_mono inf_le_right (by simp) |
| 176 | have hb : ∀ᶠ x in scaleApproach U q ⊓ 𝓟 (region t), |
| 177 | ‖iteratedFDeriv ℝ m t.1 x‖ ≤ Cc m * (1 + |Real.log (q x)|) ^ Pc m * q x ^ (-Kc m) := by |
| 178 | filter_upwards [hlU.filter_mono inf_le_left, hregion] with x hx hr |
| 179 | exact hcoeff t ht m x hx hr |
| 180 | convert jetRate_of_log_bound ((hlq.filter_mono inf_le_left).mono fun _ hx => hx.1) |
| 181 | (hqzero.mono_left inf_le_left) m (Cc m) (Pc m) (-Kc m) hb using 1 |
| 182 | ring |
| 183 | have hresRate : ∀ J k, JetRate (scaleApproach U q) q |
| 184 | (P.eval (fun i => stage (base i) (A i) J)) k (rho J - (Kr k + 1)) := by |
| 185 | intro J k |
| 186 | have herr : ∀ M : ℕ, ∃ Ce : ℝ, 0 ≤ Ce ∧ |
| 187 | ∀ᶠ x in scaleApproach U q, error J k x ≤ Ce * q x ^ M := by |
| 188 | intro M |
| 189 | obtain ⟨Ce, hCe, hb⟩ := he J k M |
| 190 | exact ⟨Ce, hCe, hlU.mono fun x hx => hb x hx⟩ |
| 191 | convert jetRate_of_log_bound_add_flat hlq hqzero k (Cr J k) (Pr J k) |
| 192 | (rho J - Kr k) (hlU.mono fun x hx => hres J k x hx) herr using 1 |
| 193 | ring |
| 194 | apply uniform_bound_of_rate |
| 195 | exact P.flat_of_local_coefficients hU hlU hlq H.smooth |
| 196 | (fun J i => stage_smooth (hbase i) (hA i) J) hgain hrho |
| 197 | (fun i => (H.approximation i).some) hconst hc region (fun _ m => Kc m + 1) |
| 198 | hcoeffRate hzero hszero (fun k => Kr k + 1) hresRate m N |
| 199 | |
| 200 | end NavierStokes.GenericRealization |