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.GenericSummationRealization |
| 2 | import NavierStokes.GenericSupportLocalCoefficients |
| 3 | |
| 4 | /-! # Actual summation residuals with support-local coefficient regularity |
| 5 | |
| 6 | Every statement retains the given cutoff schedule, literal polynomial and |
| 7 | coefficient functions. Smoothness and growth of a nonconstant coefficient |
| 8 | are only needed on its common differentiated-factor support region. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | namespace NavierStokes.GenericTupleRealization |
| 14 | |
| 15 | open Set Filter ProblemStatement GenericDifferentialPolynomial DiagonalResidual |
| 16 | open GenericRealizationBounds GenericRealization GenericSolenoidalRealization |
| 17 | open scoped Topology ContDiff BigOperators |
| 18 | |
| 19 | /-! ## Residual transfer from actual field approximation -/ |
| 20 | |
| 21 | theorem Result.flat_residual_support_local {κ : Type*} {U : Set SpaceTime} {q : SpaceTime → ℝ} |
| 22 | {u0 : VelocityField} {s0 : κ → PressureField} {A B : ℕ → VelocityField} |
| 23 | {R : κ → ℕ → PressureField} {g L : ℕ → ℝ} {a : ℕ → ℕ} |
| 24 | (H : Result U q u0 s0 A B R g L a) (hU : IsOpen U) |
| 25 | (hq : ∀ w ∈ U, 0 < q w ∧ q w ≤ 1) |
| 26 | (hu0 : ContDiffOn ℝ ∞ u0 U) (hs0 : ∀ k, ContDiffOn ℝ ∞ (s0 k) U) |
| 27 | (hA : ∀ j, 1 ≤ j → ContDiffOn ℝ ∞ (A j) U) |
| 28 | (hB : ∀ j, 1 ≤ j → ContDiffOn ℝ ∞ (B j) U) |
| 29 | (hR : ∀ k j, 1 ≤ j → ContDiffOn ℝ ∞ (R k j) U) |
| 30 | (hgtop : Tendsto g atTop atTop) (P : SupportedPolynomial SpaceTime (Fin 3 ⊕ κ)) |
| 31 | (hconst : ContDiffOn ℝ ∞ P.constant U) |
| 32 | (region : ((SpaceTime → ℝ) × Expression SpaceTime (Fin 3 ⊕ κ) Empty) → Set SpaceTime) |
| 33 | (hc : ∀ t ∈ P.terms, ∀ x ∈ U, x ∈ region t → ContDiffAt ℝ ∞ t.1 x) |
| 34 | (Lc : ((SpaceTime → ℝ) × Expression SpaceTime (Fin 3 ⊕ κ) Empty) → ℕ → ℝ) |
| 35 | (hcg : ∀ t ∈ P.terms, ∀ m, JetRate (scaleApproach U q ⊓ 𝓟 (region t)) q t.1 m (-Lc t m)) |
| 36 | (hzero : ∀ t ∈ P.terms, ∀ x ∈ U, x ∉ region t → |
| 37 | t.2.eval (fun k => Empty.elim k) (components (fun j => (a j : ℝ)) q u0 s0 A B R) |
| 38 | =ᶠ[𝓝 x] (fun _ => 0)) |
| 39 | (hszero : ∀ t ∈ P.terms, ∀ J x, x ∈ U → x ∉ region t → |
| 40 | t.2.eval (fun k => Empty.elim k) (stageComponents u0 s0 A B R J) |
| 41 | =ᶠ[𝓝 x] (fun _ => 0)) |
| 42 | (rho : ℕ → ℝ) (hrho : Tendsto rho atTop atTop) (Lres : ℕ → ℝ) |
| 43 | (hres : ∀ J m, JetRate (scaleApproach U q) q |
| 44 | (P.eval (stageComponents u0 s0 A B R J)) m (rho J - Lres m)) (m : ℕ) (N : ℝ) : |
| 45 | ∃ δ C : ℝ, 0 < δ ∧ 0 < C ∧ ∀ x ∈ U, 0 < q x → q x < δ → |
| 46 | ‖iteratedFDeriv ℝ m (P.eval (components (fun j => (a j : ℝ)) q u0 s0 A B R)) x‖ ≤ C * q x ^ N := by |
| 47 | have hlU := eventually_domain U q |
| 48 | have hlq := hlU.mono fun w hw => hq w hw |
| 49 | have hu : ∀ i, ContDiffOn ℝ ∞ (components (fun j => (a j : ℝ)) q u0 s0 A B R i) U := by |
| 50 | intro i |
| 51 | cases i with |
| 52 | | inl i => exact (EuclideanSpace.proj i).contDiff.comp_contDiffOn H.smooth_velocity |
| 53 | | inr k => exact H.smooth_scalars k |
| 54 | have hus : ∀ J i, ContDiffOn ℝ ∞ (stageComponents u0 s0 A B R J i) U := by |
| 55 | intro J i |
| 56 | cases i with |
| 57 | | inl i => exact (EuclideanSpace.proj i).contDiff.comp_contDiffOn (positiveStage_smooth hU hu0 hA hB J) |
| 58 | | inr k => exact stage_smooth (hs0 k) (hR k) J |
| 59 | have hgain : Tendsto (fun J => g (J + 1) / 2) atTop atTop := |
| 60 | (hgtop.comp (tendsto_add_atTop_nat 1)).atTop_div_const (by norm_num) |
| 61 | exact uniform_bound_of_rate (P.flat_of_support_local_coefficients hU hlU hlq hu hus hgain hrho |
| 62 | (fun i => (H.approximation i).some) hconst region hc Lc hcg hzero hszero Lres hres m N) |
| 63 | |
| 64 | |
| 65 | /-- Raw and cut differentiated-factor supports imply the required zero germs |
| 66 | for the actual finite stages and locally finite realized sum. -/ |
| 67 | theorem Result.flat_residual_of_support_local_factors {κ : Type*} {U : Set SpaceTime} {q : SpaceTime → ℝ} |
| 68 | {u0 : VelocityField} {s0 : κ → PressureField} {A B : ℕ → VelocityField} |
| 69 | {R : κ → ℕ → PressureField} {g L : ℕ → ℝ} {a : ℕ → ℕ} |
| 70 | (H : Result U q u0 s0 A B R g L a) (hU : IsOpen U) |
| 71 | (hqs : ContDiffOn ℝ ∞ q U) (hq : ∀ w ∈ U, 0 < q w ∧ q w ≤ 1) |
| 72 | (hu0 : ContDiffOn ℝ ∞ u0 U) (hs0 : ∀ k, ContDiffOn ℝ ∞ (s0 k) U) |
| 73 | (hA : ∀ j, 1 ≤ j → ContDiffOn ℝ ∞ (A j) U) |
| 74 | (hB : ∀ j, 1 ≤ j → ContDiffOn ℝ ∞ (B j) U) |
| 75 | (hR : ∀ k j, 1 ≤ j → ContDiffOn ℝ ∞ (R k j) U) |
| 76 | (hgtop : Tendsto g atTop atTop) (P : SupportedPolynomial SpaceTime (Fin 3 ⊕ κ)) |
| 77 | (hconst : ContDiffOn ℝ ∞ P.constant U) |
| 78 | (region : ((SpaceTime → ℝ) × Expression SpaceTime (Fin 3 ⊕ κ) Empty) → Set SpaceTime) |
| 79 | (hc : ∀ t ∈ P.terms, ∀ x ∈ U, x ∈ region t → ContDiffAt ℝ ∞ t.1 x) |
| 80 | (Lc : ((SpaceTime → ℝ) × Expression SpaceTime (Fin 3 ⊕ κ) Empty) → ℕ → ℝ) |
| 81 | (hcg : ∀ t ∈ P.terms, ∀ m, DiagonalResidual.JetRate (scaleApproach U q ⊓ 𝓟 (region t)) q t.1 m (-Lc t m)) |
| 82 | (hrawsupport : ∀ t ∈ P.terms, ∀ x ∈ U, x ∉ region t → |
| 83 | FactorSupportAt (baseComponents u0 s0) (incrementComponents A B R) x t.2) |
| 84 | (hcutsupport : ∀ t ∈ P.terms, ∀ x ∈ U, x ∉ region t → |
| 85 | FactorSupportAt (baseComponents u0 s0) (cutIncrementComponents (fun j => (a j : ℝ)) q A B R) x t.2) |
| 86 | (rho : ℕ → ℝ) (hrho : Tendsto rho atTop atTop) (Lres : ℕ → ℝ) |
| 87 | (hres : ∀ J m, DiagonalResidual.JetRate (scaleApproach U q) q |
| 88 | (P.eval (stageComponents u0 s0 A B R J)) m (rho J - Lres m)) (m : ℕ) (N : ℝ) : |
| 89 | ∃ δ C : ℝ, 0 < δ ∧ 0 < C ∧ ∀ x ∈ U, 0 < q x → q x < δ → |
| 90 | ‖iteratedFDeriv ℝ m (P.eval (components (fun j => (a j : ℝ)) q u0 s0 A B R)) x‖ ≤ C * q x ^ N := by |
| 91 | apply H.flat_residual_support_local hU hq hu0 hs0 hA hB hR hgtop P hconst region hc Lc hcg |
| 92 | _ _ rho hrho Lres hres m N |
| 93 | · intro t ht x hx hxs |
| 94 | exact (hcutsupport t ht x hx hxs).zero_germ hU hx (smooth_baseComponents hu0 hs0) |
| 95 | (smooth_cutIncrementComponents hU hqs hA hB hR) |
| 96 | (components_local_sum hU H.tends hqs (fun w hw => (hq w hw).1) hA hx) |
| 97 | · intro t ht J x hx hxs |
| 98 | exact (hrawsupport t ht x hx hxs).zero_germ hU hx (smooth_baseComponents hu0 hs0) |
| 99 | (smooth_incrementComponents hU hA hB hR) (stageComponents_local_sum hU hA J hx) |
| 100 | |
| 101 | |
| 102 | /-- The printed logarithmic hypotheses with coefficients smooth only on the |
| 103 | common supports, independent correction and residual gains, and an arbitrary |
| 104 | all-orders-flat finite-stage error, imply flatness of the actual residual. -/ |
| 105 | theorem Result.flat_residual_of_support_local_raw_bounds {κ : Type*} {U : Set SpaceTime} {q : SpaceTime → ℝ} |
| 106 | {u0 : VelocityField} {s0 : κ → PressureField} {A B : ℕ → VelocityField} |
| 107 | {R : κ → ℕ → PressureField} {g L : ℕ → ℝ} {a : ℕ → ℕ} |
| 108 | (H : Result U q u0 s0 A B R g L a) (hU : IsOpen U) |
| 109 | (hqs : ContDiffOn ℝ ∞ q U) (hq : ∀ w ∈ U, 0 < q w ∧ q w ≤ 1) |
| 110 | (hu0 : ContDiffOn ℝ ∞ u0 U) (hs0 : ∀ k, ContDiffOn ℝ ∞ (s0 k) U) |
| 111 | (hA : ∀ j, 1 ≤ j → ContDiffOn ℝ ∞ (A j) U) |
| 112 | (hB : ∀ j, 1 ≤ j → ContDiffOn ℝ ∞ (B j) U) |
| 113 | (hR : ∀ k j, 1 ≤ j → ContDiffOn ℝ ∞ (R k j) U) |
| 114 | (hgtop : Tendsto g atTop atTop) (P : SupportedPolynomial SpaceTime (Fin 3 ⊕ κ)) |
| 115 | (hconst : ContDiffOn ℝ ∞ P.constant U) |
| 116 | (region : ((SpaceTime → ℝ) × Expression SpaceTime (Fin 3 ⊕ κ) Empty) → Set SpaceTime) |
| 117 | (hc : ∀ t ∈ P.terms, ∀ x ∈ U, x ∈ region t → ContDiffAt ℝ ∞ t.1 x) |
| 118 | (Cc Pc Kc : ℕ → ℝ) |
| 119 | (hcoeff : ∀ t ∈ P.terms, ∀ m x, x ∈ U → x ∈ region t → |
| 120 | ‖iteratedFDeriv ℝ m t.1 x‖ ≤ Cc m * (1 + |Real.log (q x)|) ^ Pc m * q x ^ (-Kc m)) |
| 121 | (hrawsupport : ∀ t ∈ P.terms, ∀ x ∈ U, x ∉ region t → |
| 122 | FactorSupportAt (baseComponents u0 s0) (incrementComponents A B R) x t.2) |
| 123 | (hcutsupport : ∀ t ∈ P.terms, ∀ x ∈ U, x ∉ region t → |
| 124 | FactorSupportAt (baseComponents u0 s0) (cutIncrementComponents (fun j => (a j : ℝ)) q A B R) x t.2) |
| 125 | (rho : ℕ → ℝ) (hrho : Tendsto rho atTop atTop) (Cr Pr : ℕ → ℕ → ℝ) (Kr : ℕ → ℝ) |
| 126 | (error : ℕ → ℕ → SpaceTime → ℝ) |
| 127 | (hres : ∀ J m x, x ∈ U → |
| 128 | ‖iteratedFDeriv ℝ m (P.eval (stageComponents u0 s0 A B R J)) x‖ ≤ |
| 129 | Cr J m * (1 + |Real.log (q x)|) ^ Pr J m * q x ^ (rho J - Kr m) + error J m x) |
| 130 | (he : ∀ J m N, ∃ Ce : ℝ, 0 ≤ Ce ∧ ∀ x ∈ U, error J m x ≤ Ce * q x ^ (N : ℕ)) |
| 131 | (m : ℕ) (N : ℝ) : |
| 132 | ∃ δ C : ℝ, 0 < δ ∧ 0 < C ∧ ∀ x ∈ U, 0 < q x → q x < δ → |
| 133 | ‖iteratedFDeriv ℝ m (P.eval (components (fun j => (a j : ℝ)) q u0 s0 A B R)) x‖ ≤ C * q x ^ N := by |
| 134 | have hlU := eventually_domain U q |
| 135 | have hlq := hlU.mono fun w hw => hq w hw |
| 136 | have hqzero := scale_tendsto U q |
| 137 | have hcoeffRate : ∀ t ∈ P.terms, ∀ m, |
| 138 | JetRate (scaleApproach U q ⊓ 𝓟 (region t)) q t.1 m (-(Kc m + 1)) := by |
| 139 | intro t ht m |
| 140 | have hregion : ∀ᶠ x in scaleApproach U q ⊓ 𝓟 (region t), x ∈ region t := |
| 141 | Filter.Eventually.filter_mono inf_le_right (by simp) |
| 142 | have hb : ∀ᶠ x in scaleApproach U q ⊓ 𝓟 (region t), |
| 143 | ‖iteratedFDeriv ℝ m t.1 x‖ ≤ Cc m * (1 + |Real.log (q x)|) ^ Pc m * q x ^ (-Kc m) := by |
| 144 | filter_upwards [hlU.filter_mono inf_le_left, hregion] with x hx hr |
| 145 | exact hcoeff t ht m x hx hr |
| 146 | convert jetRate_of_log_bound ((hlq.filter_mono inf_le_left).mono fun _ hx => hx.1) |
| 147 | (hqzero.mono_left inf_le_left) m (Cc m) (Pc m) (-Kc m) hb using 1 |
| 148 | ring |
| 149 | have hresRate : ∀ J k, JetRate (scaleApproach U q) q |
| 150 | (P.eval (stageComponents u0 s0 A B R J)) k (rho J - (Kr k + 1)) := by |
| 151 | intro J k |
| 152 | have herr : ∀ M : ℕ, ∃ Ce : ℝ, 0 ≤ Ce ∧ |
| 153 | ∀ᶠ x in scaleApproach U q, error J k x ≤ Ce * q x ^ M := by |
| 154 | intro M |
| 155 | obtain ⟨Ce, hCe, hb⟩ := he J k M |
| 156 | exact ⟨Ce, hCe, hlU.mono fun x hx => hb x hx⟩ |
| 157 | convert jetRate_of_log_bound_add_flat hlq hqzero k (Cr J k) (Pr J k) |
| 158 | (rho J - Kr k) (hlU.mono fun x hx => hres J k x hx) herr using 1 |
| 159 | ring |
| 160 | exact H.flat_residual_of_support_local_factors hU hqs hq hu0 hs0 hA hB hR hgtop P hconst region hc |
| 161 | (fun _ m => Kc m + 1) hcoeffRate hrawsupport hcutsupport rho hrho |
| 162 | (fun m => Kr m + 1) hresRate m N |
| 163 | |
| 164 | |
| 165 | end NavierStokes.GenericTupleRealization |