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 Euler.GevreyComposition |
| 2 | import Euler.GevreyInversePartitions |
| 3 | |
| 4 | /-! |
| 5 | # Gevrey bounds from the actual inverse-map differential identity |
| 6 | |
| 7 | If `DY = A ∘ Y` and `A` has Gevrey-two derivatives, the positive derivatives |
| 8 | of `Y` have the stronger bound `C * L^n * n!²` at order `n+1`, where |
| 9 | `L = 1 + 2*C*R`. The proof uses the shifted Faà di Bruno weights and a |
| 10 | strong induction, rather than iterating the general composition radius. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open scoped BigOperators ContDiff |
| 16 | |
| 17 | namespace EulerGevreyComposition |
| 18 | |
| 19 | variable {E F G : Type*} |
| 20 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 21 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 22 | [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 23 | |
| 24 | lemma predecessor_partition_bound_factorization {n : ℕ} (c : OrderedFinpartition n) |
| 25 | (A B R S : ℝ) : |
| 26 | (A * S^c.length * (c.length.factorial : ℝ)^2) * |
| 27 | (∏ i, B * R^(c.partSize i) * ((c.partSize i - 1).factorial : ℝ)^2) = |
| 28 | A * R^n * predecessorPartitionWeight (B*S) c := by |
| 29 | simp only [Finset.prod_mul_distrib, Finset.prod_const, Finset.card_univ, |
| 30 | Fintype.card_fin, Finset.prod_pow_eq_pow_sum, sum_partSize, Finset.prod_pow] |
| 31 | unfold predecessorPartitionWeight predecessorFactorialProduct |
| 32 | rw [mul_pow] |
| 33 | ring |
| 34 | |
| 35 | theorem norm_taylorComp_predecessor_le |
| 36 | (q : FormalMultilinearSeries ℝ F G) (p : FormalMultilinearSeries ℝ E F) |
| 37 | (n : ℕ) (hn : 0 < n) (A B R S : ℝ) |
| 38 | (hA : 0 ≤ A) (hB : 0 ≤ B) (hR : 0 ≤ R) (hS : 0 ≤ S) (hBS : B*S ≤ 1/2) |
| 39 | (hq : ∀ j ≤ n, ‖q j‖ ≤ A * S^j * (j.factorial : ℝ)^2) |
| 40 | (hp : ∀ j, 0 < j → j ≤ n → |
| 41 | ‖p j‖ ≤ B * R^j * ((j-1).factorial : ℝ)^2) : |
| 42 | ‖q.taylorComp p n‖ ≤ A * R^n * (B*S) * (n.factorial : ℝ)^2 := by |
| 43 | have hterm (c : OrderedFinpartition n) : |
| 44 | ‖q.compAlongOrderedFinpartition p c‖ ≤ |
| 45 | A * R^n * predecessorPartitionWeight (B*S) c := by |
| 46 | calc |
| 47 | _ ≤ ‖q c.length‖ * ∏ i, ‖p (c.partSize i)‖ := |
| 48 | c.norm_compAlongOrderedFinpartition_le _ _ |
| 49 | _ ≤ (A * S^c.length * (c.length.factorial : ℝ)^2) * |
| 50 | (∏ i, B * R^(c.partSize i) * ((c.partSize i-1).factorial : ℝ)^2) := by |
| 51 | apply mul_le_mul (hq _ c.length_le) |
| 52 | · apply Finset.prod_le_prod |
| 53 | · intro i _ |
| 54 | exact norm_nonneg _ |
| 55 | · intro i _ |
| 56 | exact hp _ (c.partSize_pos i) (c.partSize_le i) |
| 57 | · exact Finset.prod_nonneg (fun _ _ => norm_nonneg _) |
| 58 | · positivity |
| 59 | _ = _ := predecessor_partition_bound_factorization c A B R S |
| 60 | calc |
| 61 | _ ≤ ∑ c : OrderedFinpartition n, ‖q.compAlongOrderedFinpartition p c‖ := |
| 62 | norm_sum_le _ _ |
| 63 | _ ≤ ∑ c : OrderedFinpartition n, A * R^n * predecessorPartitionWeight (B*S) c := |
| 64 | Finset.sum_le_sum (fun c _ => hterm c) |
| 65 | _ = A * R^n * predecessorPartitionSum n (B*S) := by |
| 66 | rw [predecessorPartitionSum, Finset.mul_sum] |
| 67 | _ ≤ A * R^n * ((B*S) * (n.factorial : ℝ)^2) := |
| 68 | mul_le_mul_of_nonneg_left (predecessorPartitionSum_le n hn (B*S) |
| 69 | (mul_nonneg hB hS) hBS) (mul_nonneg hA (pow_nonneg hR n)) |
| 70 | _ = _ := by ring |
| 71 | |
| 72 | theorem norm_iteratedFDeriv_comp_predecessor_at |
| 73 | (f : E → F) (g : F → G) (n : ℕ) (hn : 0 < n) (x : E) |
| 74 | (hf : ContDiffAt ℝ n f x) (hg : ContDiffAt ℝ n g (f x)) |
| 75 | (A B R S : ℝ) (hA : 0 ≤ A) (hB : 0 ≤ B) (hR : 0 ≤ R) (hS : 0 ≤ S) |
| 76 | (hBS : B*S ≤ 1/2) |
| 77 | (hgjet : ∀ j ≤ n, |
| 78 | ‖iteratedFDeriv ℝ j g (f x)‖ ≤ A * S^j * (j.factorial : ℝ)^2) |
| 79 | (hfjet : ∀ j, 0 < j → j ≤ n → |
| 80 | ‖iteratedFDeriv ℝ j f x‖ ≤ B * R^j * ((j-1).factorial : ℝ)^2) : |
| 81 | ‖iteratedFDeriv ℝ n (g ∘ f) x‖ ≤ A * R^n * (B*S) * (n.factorial : ℝ)^2 := by |
| 82 | rw [iteratedFDeriv_comp hg hf le_rfl] |
| 83 | exact norm_taylorComp_predecessor_le (ftaylorSeries ℝ g (f x)) |
| 84 | (ftaylorSeries ℝ f x) n hn A B R S hA hB hR hS hBS hgjet hfjet |
| 85 | |
| 86 | def inverseMapRadius (C R : ℝ) : ℝ := 1 + 2*C*R |
| 87 | |
| 88 | lemma inverseMapRadius_ge_one (C R : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) : |
| 89 | 1 ≤ inverseMapRadius C R := by |
| 90 | unfold inverseMapRadius |
| 91 | nlinarith [mul_nonneg hC hR] |
| 92 | |
| 93 | lemma inverseMapRadius_pos (C R : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) : |
| 94 | 0 < inverseMapRadius C R := lt_of_lt_of_le zero_lt_one (inverseMapRadius_ge_one C R hC hR) |
| 95 | |
| 96 | /-- Positive derivatives of a genuine solution of `DY = A ∘ Y` have one |
| 97 | fixed polynomial Gevrey radius. The value of `Y` need not be bounded. -/ |
| 98 | theorem norm_iteratedFDeriv_of_fderiv_eq_comp |
| 99 | (Y : E → F) (A : F → E →L[ℝ] F) |
| 100 | (hY : ContDiff ℝ ∞ Y) (hA : ContDiff ℝ ∞ A) |
| 101 | (hDY : ∀ x, fderiv ℝ Y x = A (Y x)) |
| 102 | (C R : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) |
| 103 | (hAjet : ∀ j y, ‖iteratedFDeriv ℝ j A y‖ ≤ C * R^j * (j.factorial : ℝ)^2) |
| 104 | (n : ℕ) (x : E) : |
| 105 | ‖iteratedFDeriv ℝ (n+1) Y x‖ ≤ |
| 106 | C * (inverseMapRadius C R)^n * (n.factorial : ℝ)^2 := by |
| 107 | let L := inverseMapRadius C R |
| 108 | have hL : 0 < L := inverseMapRadius_pos C R hC hR |
| 109 | have hCL : 0 ≤ C/L := div_nonneg hC hL.le |
| 110 | have hhalf : (C/L)*R ≤ 1/2 := by |
| 111 | rw [div_mul_eq_mul_div, div_le_iff₀ hL] |
| 112 | dsimp [L, inverseMapRadius] |
| 113 | nlinarith |
| 114 | change ‖iteratedFDeriv ℝ (n+1) Y x‖ ≤ C * L^n * (n.factorial : ℝ)^2 |
| 115 | induction n using Nat.strong_induction_on generalizing x with |
| 116 | | h n ih => |
| 117 | by_cases hn : n = 0 |
| 118 | · subst n |
| 119 | change ‖iteratedFDeriv ℝ 1 Y x‖ ≤ C * L^0 * (Nat.factorial 0 : ℝ)^2 |
| 120 | rw [norm_iteratedFDeriv_one, hDY] |
| 121 | simpa only [norm_iteratedFDeriv_zero, pow_zero, Nat.factorial_zero, |
| 122 | Nat.cast_one, one_pow, mul_one] using hAjet 0 (Y x) |
| 123 | · have hnpos : 0 < n := Nat.pos_of_ne_zero hn |
| 124 | have hinner (j : ℕ) (hj : 0 < j) (hjn : j ≤ n) : |
| 125 | ‖iteratedFDeriv ℝ j Y x‖ ≤ (C/L) * L^j * ((j-1).factorial : ℝ)^2 := by |
| 126 | have hh := ih (j-1) (by omega) x |
| 127 | rw [Nat.sub_add_cancel hj] at hh |
| 128 | have hp : L^j = L^(j-1)*L := by |
| 129 | conv_lhs => rw [← Nat.sub_add_cancel hj] |
| 130 | rw [pow_succ] |
| 131 | apply hh.trans_eq |
| 132 | rw [hp] |
| 133 | field_simp |
| 134 | have hc := norm_iteratedFDeriv_comp_predecessor_at Y A n hnpos x |
| 135 | (hY.contDiffAt.of_le (by simp)) (hA.contDiffAt.of_le (by simp)) |
| 136 | C (C/L) L R hC hCL hL.le hR hhalf (fun j _ => hAjet j (Y x)) hinner |
| 137 | have hfun : fderiv ℝ Y = A ∘ Y := funext hDY |
| 138 | calc |
| 139 | _ = ‖iteratedFDeriv ℝ n (fderiv ℝ Y) x‖ := norm_iteratedFDeriv_fderiv.symm |
| 140 | _ = ‖iteratedFDeriv ℝ n (A ∘ Y) x‖ := by rw [hfun] |
| 141 | _ ≤ C * L^n * ((C/L)*R) * (n.factorial : ℝ)^2 := hc |
| 142 | _ ≤ C * L^n * 1 * (n.factorial : ℝ)^2 := by |
| 143 | gcongr |
| 144 | exact hhalf.trans (by norm_num) |
| 145 | _ = _ := by ring |
| 146 | |
| 147 | /-- The same estimate in the usual unshifted form, directly usable as the |
| 148 | inner-function hypothesis of the composition theorem. -/ |
| 149 | theorem positive_jets_of_fderiv_eq_comp |
| 150 | (Y : E → F) (A : F → E →L[ℝ] F) |
| 151 | (hY : ContDiff ℝ ∞ Y) (hA : ContDiff ℝ ∞ A) |
| 152 | (hDY : ∀ x, fderiv ℝ Y x = A (Y x)) |
| 153 | (C R : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) |
| 154 | (hAjet : ∀ j y, ‖iteratedFDeriv ℝ j A y‖ ≤ C * R^j * (j.factorial : ℝ)^2) |
| 155 | (n : ℕ) (hn : 0 < n) (x : E) : |
| 156 | ‖iteratedFDeriv ℝ n Y x‖ ≤ |
| 157 | C * (inverseMapRadius C R)^n * (n.factorial : ℝ)^2 := by |
| 158 | have hh := norm_iteratedFDeriv_of_fderiv_eq_comp Y A hY hA hDY C R hC hR |
| 159 | hAjet (n-1) x |
| 160 | rw [Nat.sub_add_cancel hn] at hh |
| 161 | apply hh.trans |
| 162 | have hp := pow_le_pow_right₀ (inverseMapRadius_ge_one C R hC hR) (Nat.sub_le n 1) |
| 163 | have hf : ((n-1).factorial : ℝ) ≤ (n.factorial : ℝ) := by |
| 164 | exact_mod_cast Nat.factorial_le (Nat.sub_le n 1) |
| 165 | apply mul_le_mul (mul_le_mul_of_nonneg_left hp hC) |
| 166 | (pow_le_pow_left₀ (by positivity) hf 2) (by positivity) |
| 167 | exact mul_nonneg hC (pow_nonneg (inverseMapRadius_pos C R hC hR).le n) |
| 168 | |
| 169 | /-- Smoothness itself follows by differentiating the genuine differential |
| 170 | identity; it need not be supplied as an independent inverse-map assumption. -/ |
| 171 | theorem contDiff_of_fderiv_eq_comp |
| 172 | (Y : E → F) (A : F → E →L[ℝ] F) |
| 173 | (hY : Differentiable ℝ Y) (hA : ContDiff ℝ ∞ A) |
| 174 | (hDY : ∀ x, fderiv ℝ Y x = A (Y x)) : ContDiff ℝ ∞ Y := by |
| 175 | apply contDiff_infty.2 |
| 176 | intro n |
| 177 | induction n with |
| 178 | | zero => exact contDiff_zero.2 hY.continuous |
| 179 | | succ n ih => |
| 180 | rw [Nat.cast_add, Nat.cast_one] |
| 181 | apply contDiff_succ_iff_fderiv.2 |
| 182 | refine ⟨hY, by simp, ?_⟩ |
| 183 | rw [show fderiv ℝ Y = A ∘ Y from funext hDY] |
| 184 | exact (hA.of_le (by simp)).comp ih |
| 185 | |
| 186 | /-- The differential equation follows from an actual inverse identity and |
| 187 | the actual inverse of the derivative of the original coordinate map. -/ |
| 188 | theorem fderiv_eq_inverse_field |
| 189 | (X Y : E → E) (A : E → E →L[ℝ] E) |
| 190 | (hX : Differentiable ℝ X) (hY : Differentiable ℝ Y) |
| 191 | (hXY : ∀ x, X (Y x) = x) |
| 192 | (hleft : ∀ x v, A x (fderiv ℝ X x v) = v) : |
| 193 | ∀ x, fderiv ℝ Y x = A (Y x) := by |
| 194 | intro x |
| 195 | have hcomp := (hX (Y x)).hasFDerivAt.comp x (hY x).hasFDerivAt |
| 196 | have hfun : X ∘ Y = id := funext hXY |
| 197 | rw [hfun] at hcomp |
| 198 | have he := hcomp.unique (hasFDerivAt_id x) |
| 199 | ext v |
| 200 | have hv := congrArg (fun B : E →L[ℝ] E => A (Y x) (B v)) he |
| 201 | simpa only [ContinuousLinearMap.comp_apply, ContinuousLinearMap.id_apply, hleft] using hv |
| 202 | |
| 203 | /-- Gevrey-two regularity of an actual smooth inverse map with a Gevrey-two |
| 204 | inverse derivative field. -/ |
| 205 | theorem norm_iteratedFDeriv_inverseMap |
| 206 | (X Y : E → E) (A : E → E →L[ℝ] E) |
| 207 | (hX : Differentiable ℝ X) (hY : ContDiff ℝ ∞ Y) (hA : ContDiff ℝ ∞ A) |
| 208 | (hXY : ∀ x, X (Y x) = x) |
| 209 | (hleft : ∀ x v, A x (fderiv ℝ X x v) = v) |
| 210 | (C R : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) |
| 211 | (hAjet : ∀ j y, ‖iteratedFDeriv ℝ j A y‖ ≤ C * R^j * (j.factorial : ℝ)^2) |
| 212 | (n : ℕ) (x : E) : |
| 213 | ‖iteratedFDeriv ℝ (n+1) Y x‖ ≤ |
| 214 | C * (inverseMapRadius C R)^n * (n.factorial : ℝ)^2 := by |
| 215 | exact norm_iteratedFDeriv_of_fderiv_eq_comp Y A hY hA |
| 216 | (fderiv_eq_inverse_field X Y A hX (hY.differentiable (by simp)) hXY hleft) |
| 217 | C R hC hR hAjet n x |
| 218 | |
| 219 | /-- Pullback by a map satisfying the actual inverse differential equation |
| 220 | preserves Gevrey two, with an explicit polynomial radius and unchanged |
| 221 | outer amplitude. Only differentiability of the inverse is an input. -/ |
| 222 | theorem norm_iteratedFDeriv_comp_of_fderiv_eq_comp |
| 223 | (Y : E → F) (A : F → E →L[ℝ] F) (g : F → G) |
| 224 | (hY : Differentiable ℝ Y) (hA : ContDiff ℝ ∞ A) (hg : ContDiff ℝ ∞ g) |
| 225 | (hDY : ∀ x, fderiv ℝ Y x = A (Y x)) |
| 226 | (C R D S : ℝ) (hC : 0 ≤ C) (hR : 0 ≤ R) (hD : 0 ≤ D) (hS : 0 ≤ S) |
| 227 | (hAjet : ∀ j y, ‖iteratedFDeriv ℝ j A y‖ ≤ C * R^j * (j.factorial : ℝ)^2) |
| 228 | (hgjet : ∀ j y, ‖iteratedFDeriv ℝ j g y‖ ≤ D * S^j * (j.factorial : ℝ)^2) |
| 229 | (n : ℕ) (x : E) : |
| 230 | ‖iteratedFDeriv ℝ n (g ∘ Y) x‖ ≤ |
| 231 | D * (inverseMapRadius C R * (C*S+2))^n * (n.factorial : ℝ)^2 := by |
| 232 | have hYs := contDiff_of_fderiv_eq_comp Y A hY hA hDY |
| 233 | exact norm_iteratedFDeriv_comp_gevrey Y g hYs hg |
| 234 | D C (inverseMapRadius C R) S hD hC (inverseMapRadius_pos C R hC hR).le hS |
| 235 | hgjet (positive_jets_of_fderiv_eq_comp Y A hYs hA hDY C R hC hR hAjet) n x |
| 236 | |
| 237 | end EulerGevreyComposition |