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.SmoothQuadraticBranch |
| 2 | import NavierStokes.QuadraticLinearization |
| 3 | |
| 4 | /-! Uniform dependence of the small quadratic correction on every parameter. |
| 5 | The estimate applies to any selected solution in the common correction ball. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | open Set Filter |
| 10 | open scoped Topology ContDiff |
| 11 | |
| 12 | namespace NavierStokes.UniformQuadraticBranch |
| 13 | |
| 14 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 15 | |
| 16 | /-- Stability in the correction ball, with a fixed inverse bound. -/ |
| 17 | theorem norm_sub_le (B B' : E →L[ℝ] E) (A A' : E →L[ℝ] E →L[ℝ] E) |
| 18 | (d d' c c' : E) (ν q r : ℝ) (hν : 0 ≤ ν) (hq : 0 ≤ q) (hr : 0 ≤ r) |
| 19 | (hBi : B.IsInvertible) (hB : ‖B.inverse‖ ≤ ν) (hA : ‖A‖ ≤ q) |
| 20 | (hc : ‖c‖ ≤ r) (hc' : ‖c'‖ ≤ r) |
| 21 | (heq : B c + A c c = d) (heq' : B' c' + A' c' c' = d') |
| 22 | (hsmall : 4 * ν * q * r ≤ 1) : |
| 23 | ‖c' - c‖ ≤ 2 * ν * (‖d' - d‖ + ‖B' - B‖ * r + ‖A' - A‖ * r ^ 2) := by |
| 24 | have he : B (c' - c) = d' - d - (B' - B) c' - (A' - A) c' c' - |
| 25 | (A c' c' - A c c) := by |
| 26 | rw [← heq, ← heq'] |
| 27 | simp only [map_sub, sub_apply] |
| 28 | abel |
| 29 | have hlin : ‖(B' - B) c'‖ ≤ ‖B' - B‖ * r := |
| 30 | ((B' - B).le_opNorm c').trans (mul_le_mul_of_nonneg_left hc' (norm_nonneg _)) |
| 31 | have hcoeff : ‖(A' - A) c' c'‖ ≤ ‖A' - A‖ * r ^ 2 := by |
| 32 | apply ((A' - A).le_opNorm₂ c' c').trans |
| 33 | calc |
| 34 | _ ≤ ‖A' - A‖ * r * r := |
| 35 | mul_le_mul (mul_le_mul_of_nonneg_left hc' (norm_nonneg (A' - A))) hc' |
| 36 | (norm_nonneg c') (mul_nonneg (norm_nonneg (A' - A)) hr) |
| 37 | _ = _ := by ring |
| 38 | have hquad : ‖A c' c' - A c c‖ ≤ q * (r + r) * ‖c' - c‖ := |
| 39 | (SmoothMomentRepair.quadratic_sub_le A c' c).trans |
| 40 | (mul_le_mul_of_nonneg_right |
| 41 | (mul_le_mul hA (add_le_add hc' hc) (by positivity) hq) (norm_nonneg _)) |
| 42 | have hres : ‖B (c' - c)‖ ≤ |
| 43 | ‖d' - d‖ + ‖B' - B‖ * r + ‖A' - A‖ * r ^ 2 + q * (r + r) * ‖c' - c‖ := by |
| 44 | rw [he] |
| 45 | exact (_root_.norm_sub_le _ _).trans (add_le_add |
| 46 | ((_root_.norm_sub_le _ _).trans (add_le_add |
| 47 | ((_root_.norm_sub_le _ _).trans (add_le_add le_rfl hlin)) hcoeff)) hquad) |
| 48 | have hbound : ‖c' - c‖ ≤ ν * |
| 49 | (‖d' - d‖ + ‖B' - B‖ * r + ‖A' - A‖ * r ^ 2 + q * (r + r) * ‖c' - c‖) := by |
| 50 | calc |
| 51 | ‖c' - c‖ = ‖B.inverse (B (c' - c))‖ := by rw [hBi.inverse_apply_self] |
| 52 | _ ≤ ‖B.inverse‖ * ‖B (c' - c)‖ := B.inverse.le_opNorm _ |
| 53 | _ ≤ _ := mul_le_mul hB hres (norm_nonneg _) hν |
| 54 | have hhalf : ν * (q * (r + r)) ≤ 1 / 2 := by nlinarith [hsmall] |
| 55 | have habs := mul_le_mul_of_nonneg_right hhalf (norm_nonneg (c' - c)) |
| 56 | nlinarith [hbound] |
| 57 | |
| 58 | variable {P : Type*} [TopologicalSpace P] |
| 59 | |
| 60 | /-- Uniform contraction bounds imply joint continuity of any selected small |
| 61 | branch. The parameter set need not be open. -/ |
| 62 | theorem continuousOn {S : Set P} |
| 63 | (B : P → E →L[ℝ] E) (A : P → E →L[ℝ] E →L[ℝ] E) (d c : P → E) |
| 64 | (hB : ContinuousOn B S) (hA : ContinuousOn A S) (hd : ContinuousOn d S) |
| 65 | (ν q δ : ℝ) (hν : 0 ≤ ν) (hq : 0 ≤ q) (hδ : 0 ≤ δ) |
| 66 | (hBi : ∀ p ∈ S, (B p).IsInvertible) |
| 67 | (hBn : ∀ p ∈ S, ‖(B p).inverse‖ ≤ ν) (hAn : ∀ p ∈ S, ‖A p‖ ≤ q) |
| 68 | (hc : ∀ p ∈ S, ‖c p‖ ≤ 2 * ν * δ) |
| 69 | (heq : ∀ p ∈ S, B p (c p) + A p (c p) (c p) = d p) |
| 70 | (hsmall : 8 * ν ^ 2 * q * δ ≤ 1) : ContinuousOn c S := by |
| 71 | intro p hp |
| 72 | let r : ℝ := 2 * ν * δ |
| 73 | have hr : 0 ≤ r := by positivity |
| 74 | have hs : 4 * ν * q * r ≤ 1 := by dsimp [r]; nlinarith [hsmall] |
| 75 | have hbound : ∀ᶠ x in 𝓝[S] p, ‖c x - c p‖ ≤ |
| 76 | 2 * ν * (‖d x - d p‖ + ‖B x - B p‖ * r + ‖A x - A p‖ * r ^ 2) := by |
| 77 | filter_upwards [self_mem_nhdsWithin] with x hx |
| 78 | exact norm_sub_le (B p) (B x) (A p) (A x) (d p) (d x) (c p) (c x) |
| 79 | ν q r hν hq hr (hBi p hp) (hBn p hp) (hAn p hp) (hc p hp) (hc x hx) |
| 80 | (heq p hp) (heq x hx) hs |
| 81 | have hlim : Tendsto (fun x => 2 * ν * |
| 82 | (‖d x - d p‖ + ‖B x - B p‖ * r + ‖A x - A p‖ * r ^ 2)) (𝓝[S] p) (𝓝 0) := by |
| 83 | have hdt : ContinuousWithinAt (fun x => ‖d x - d p‖) S p := |
| 84 | ((hd p hp).sub (continuousWithinAt_const (b := d p))).norm |
| 85 | have hBt : ContinuousWithinAt (fun x => ‖B x - B p‖) S p := |
| 86 | ((hB p hp).sub (continuousWithinAt_const (b := B p))).norm |
| 87 | have hAt : ContinuousWithinAt (fun x => ‖A x - A p‖) S p := by |
| 88 | exact ContinuousWithinAt.norm (E := E →L[ℝ] E →L[ℝ] E) |
| 89 | ((hA p hp).sub (continuousWithinAt_const (b := A p))) |
| 90 | have hz : ‖(0 : E →L[ℝ] E →L[ℝ] E)‖ = 0 := |
| 91 | norm_zero (E := E →L[ℝ] E →L[ℝ] E) |
| 92 | have ht : ContinuousWithinAt (fun x => 2 * ν * |
| 93 | (‖d x - d p‖ + ‖B x - B p‖ * r + ‖A x - A p‖ * r ^ 2)) S p := |
| 94 | (continuousWithinAt_const (b := 2 * ν)).mul |
| 95 | ((hdt.add (hBt.mul (continuousWithinAt_const (b := r)))).add |
| 96 | (hAt.mul (continuousWithinAt_const (b := r ^ 2)))) |
| 97 | simpa only [sub_self, norm_zero, hz, zero_mul, add_zero, mul_zero] using ht.tendsto |
| 98 | have hzero := squeeze_zero_norm' hbound hlim |
| 99 | have hadd := hzero.add (tendsto_const_nhds (x := c p)) |
| 100 | change Tendsto c (𝓝[S] p) (𝓝 (c p)) |
| 101 | simpa using hadd |
| 102 | |
| 103 | section Smooth |
| 104 | |
| 105 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] [CompleteSpace E] |
| 106 | |
| 107 | /-- The same selected small correction is jointly smooth in any collection |
| 108 | of real parameters, including on closed parameter domains. -/ |
| 109 | theorem contDiffOn {S : Set V} |
| 110 | (B : V → E →L[ℝ] E) (A : V → E →L[ℝ] E →L[ℝ] E) (d c : V → E) |
| 111 | (hB : ContDiffOn ℝ ∞ B S) (hA : ContDiffOn ℝ ∞ A S) (hd : ContDiffOn ℝ ∞ d S) |
| 112 | (ν q δ : ℝ) (hν : 0 ≤ ν) (hq : 0 ≤ q) (hδ : 0 ≤ δ) |
| 113 | (hBi : ∀ p ∈ S, (B p).IsInvertible) |
| 114 | (hBn : ∀ p ∈ S, ‖(B p).inverse‖ ≤ ν) (hAn : ∀ p ∈ S, ‖A p‖ ≤ q) |
| 115 | (hc : ∀ p ∈ S, ‖c p‖ ≤ 2 * ν * δ) |
| 116 | (heq : ∀ p ∈ S, B p (c p) + A p (c p) (c p) = d p) |
| 117 | (hsmall : 8 * ν ^ 2 * q * δ ≤ 1) : ContDiffOn ℝ ∞ c S := by |
| 118 | apply SmoothQuadraticBranch.continuous_quadratic_branch_contDiffOn B A d c hB hA hd |
| 119 | (continuousOn B A d c hB.continuousOn hA.continuousOn hd.continuousOn |
| 120 | ν q δ hν hq hδ hBi hBn hAn hc heq hsmall) heq |
| 121 | intro p hp |
| 122 | obtain ⟨e, he⟩ := hBi p hp |
| 123 | have heinv : ‖e.symm.toContinuousLinearMap‖ ≤ ν := by |
| 124 | simpa only [← he, ContinuousLinearMap.inverse_equiv] using hBn p hp |
| 125 | simpa only [he] using QuadraticLinearization.isInvertible e (A p) (c p) |
| 126 | ν q δ hν hq heinv (hAn p hp) (hc p hp) hsmall |
| 127 | |
| 128 | /-- Uniform smallness selects one jointly smooth family of corrections, |
| 129 | unique throughout the common correction ball. This applies in particular |
| 130 | to the interval together with any additional compact parameter set. -/ |
| 131 | theorem exists_smooth_small_branch {S : Set V} |
| 132 | (B : V → E →L[ℝ] E) (A : V → E →L[ℝ] E →L[ℝ] E) (d : V → E) |
| 133 | (hB : ContDiffOn ℝ ∞ B S) (hA : ContDiffOn ℝ ∞ A S) (hd : ContDiffOn ℝ ∞ d S) |
| 134 | (ν q δ : ℝ) (hν : 0 ≤ ν) (hq : 0 ≤ q) (hδ : 0 ≤ δ) |
| 135 | (hBi : ∀ p ∈ S, (B p).IsInvertible) |
| 136 | (hBn : ∀ p ∈ S, ‖(B p).inverse‖ ≤ ν) (hAn : ∀ p ∈ S, ‖A p‖ ≤ q) |
| 137 | (hdn : ∀ p ∈ S, ‖d p‖ ≤ δ) (hsmall : 8 * ν ^ 2 * q * δ ≤ 1) : |
| 138 | ∃ c : V → E, ContDiffOn ℝ ∞ c S ∧ |
| 139 | (∀ p ∈ S, ‖c p‖ ≤ 2 * ν * δ ∧ B p (c p) + A p (c p) (c p) = d p) ∧ |
| 140 | ∀ p ∈ S, ∀ x : E, ‖x‖ ≤ 2 * ν * δ → B p x + A p x x = d p → x = c p := by |
| 141 | classical |
| 142 | have hpoints : ∀ p ∈ S, ∃! x : E, |
| 143 | ‖x‖ ≤ 2 * ν * δ ∧ B p x + A p x x = d p := by |
| 144 | intro p hp |
| 145 | obtain ⟨e, he⟩ := hBi p hp |
| 146 | have heinv : ‖e.symm.toContinuousLinearMap‖ ≤ ν := by |
| 147 | simpa only [← he, ContinuousLinearMap.inverse_equiv] using hBn p hp |
| 148 | have hs : 4 * ‖e.symm.toContinuousLinearMap‖ * ‖A p‖ * (2 * ν * δ) ≤ 1 := by |
| 149 | calc |
| 150 | _ ≤ 4 * ν * q * (2 * ν * δ) := by |
| 151 | apply mul_le_mul_of_nonneg_right _ (by positivity) |
| 152 | exact mul_le_mul (mul_le_mul_of_nonneg_left heinv (by norm_num)) |
| 153 | (hAn p hp) (norm_nonneg (A p)) (by positivity) |
| 154 | _ = 8 * ν ^ 2 * q * δ := by ring |
| 155 | _ ≤ 1 := hsmall |
| 156 | have hdebt : 2 * ‖e.symm.toContinuousLinearMap‖ * ‖d p‖ ≤ 2 * ν * δ := |
| 157 | mul_le_mul (mul_le_mul_of_nonneg_left heinv (by norm_num)) (hdn p hp) |
| 158 | (norm_nonneg _) (by positivity) |
| 159 | rw [← he] |
| 160 | exact SmoothMomentRepair.exists_unique_quadratic_correction e (A p) (d p) |
| 161 | (2 * ν * δ) (by positivity) hs hdebt |
| 162 | choose cp hcp using fun p hp => (hpoints p hp).exists |
| 163 | let c : V → E := fun p => if hp : p ∈ S then cp p hp else 0 |
| 164 | have hc : ∀ p ∈ S, ‖c p‖ ≤ 2 * ν * δ ∧ B p (c p) + A p (c p) (c p) = d p := by |
| 165 | intro p hp |
| 166 | simpa only [c, dite_eq_left hp] using hcp p hp |
| 167 | refine ⟨c, contDiffOn B A d c hB hA hd ν q δ hν hq hδ hBi hBn hAn |
| 168 | (fun p hp => (hc p hp).1) (fun p hp => (hc p hp).2) hsmall, hc, ?_⟩ |
| 169 | intro p hp x hx heq |
| 170 | exact (hpoints p hp).unique ⟨hx, heq⟩ (hc p hp) |
| 171 | |
| 172 | end Smooth |
| 173 | |
| 174 | end NavierStokes.UniformQuadraticBranch |