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.GevreyCompositionPartitions |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.Comp |
| 3 | |
| 4 | /-! |
| 5 | # Composition preserves the Gevrey-two factorial bound |
| 6 | |
| 7 | The inner function is only bounded in positive derivative orders, allowing |
| 8 | unbounded coordinate changes such as a flow on all of Euclidean space. |
| 9 | The Faà di Bruno partition estimate gives the fixed output radius |
| 10 | `R * (B*S + 2)`, independently of the derivative order. |
| 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 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).factorial : ℝ)^2) = |
| 28 | A * R^n * partitionWeight (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 partitionWeight factorialProduct |
| 32 | rw [mul_pow] |
| 33 | ring |
| 34 | |
| 35 | /-- A factorial-square bound for a formal Taylor composition, using exactly the |
| 36 | derivatives that occur in its order-`n` Faà di Bruno formula. -/ |
| 37 | theorem norm_taylorComp_le |
| 38 | (q : FormalMultilinearSeries ℝ F G) (p : FormalMultilinearSeries ℝ E F) |
| 39 | (n : ℕ) (A B R S : ℝ) (hA : 0 ≤ A) (hB : 0 ≤ B) (hR : 0 ≤ R) (hS : 0 ≤ S) |
| 40 | (hq : ∀ j ≤ n, ‖q j‖ ≤ A * S^j * (j.factorial : ℝ)^2) |
| 41 | (hp : ∀ j, 0 < j → j ≤ n → ‖p j‖ ≤ B * R^j * (j.factorial : ℝ)^2) : |
| 42 | ‖q.taylorComp p n‖ ≤ A * (R*(B*S+2))^n * (n.factorial : ℝ)^2 := by |
| 43 | have hterm (c : OrderedFinpartition n) : |
| 44 | ‖q.compAlongOrderedFinpartition p c‖ ≤ A * R^n * partitionWeight (B*S) c := by |
| 45 | calc |
| 46 | _ ≤ ‖q c.length‖ * ∏ i, ‖p (c.partSize i)‖ := |
| 47 | c.norm_compAlongOrderedFinpartition_le _ _ |
| 48 | _ ≤ (A * S^c.length * (c.length.factorial : ℝ)^2) * |
| 49 | (∏ i, B * R^(c.partSize i) * ((c.partSize i).factorial : ℝ)^2) := by |
| 50 | apply mul_le_mul (hq _ c.length_le) |
| 51 | · apply Finset.prod_le_prod |
| 52 | · intro i _ |
| 53 | exact norm_nonneg _ |
| 54 | · intro i _ |
| 55 | exact hp _ (c.partSize_pos i) (c.partSize_le i) |
| 56 | · exact Finset.prod_nonneg (fun _ _ => norm_nonneg _) |
| 57 | · positivity |
| 58 | _ = _ := partition_bound_factorization c A B R S |
| 59 | calc |
| 60 | _ ≤ ∑ c : OrderedFinpartition n, ‖q.compAlongOrderedFinpartition p c‖ := |
| 61 | norm_sum_le _ _ |
| 62 | _ ≤ ∑ c : OrderedFinpartition n, A * R^n * partitionWeight (B*S) c := |
| 63 | Finset.sum_le_sum (fun c _ => hterm c) |
| 64 | _ = A * R^n * partitionSum n (B*S) := by |
| 65 | rw [partitionSum, Finset.mul_sum] |
| 66 | _ ≤ A * R^n * ((B*S+2)^n * (n.factorial : ℝ)^2) := by |
| 67 | exact mul_le_mul_of_nonneg_left (partitionSum_le n (B*S) (mul_nonneg hB hS)) |
| 68 | (mul_nonneg hA (pow_nonneg hR n)) |
| 69 | _ = _ := by rw [mul_pow]; ring |
| 70 | |
| 71 | /-- The actual derivative of a composition obeys a Gevrey-two bound with a |
| 72 | single fixed radius. Only finite jets at the two relevant points are needed. -/ |
| 73 | theorem norm_iteratedFDeriv_comp_gevrey_at |
| 74 | (f : E → F) (g : F → G) (n : ℕ) (x : E) |
| 75 | (hf : ContDiffAt ℝ n f x) (hg : ContDiffAt ℝ n g (f x)) |
| 76 | (A B R S : ℝ) (hA : 0 ≤ A) (hB : 0 ≤ B) (hR : 0 ≤ R) (hS : 0 ≤ S) |
| 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.factorial : ℝ)^2) : |
| 81 | ‖iteratedFDeriv ℝ n (g ∘ f) x‖ ≤ |
| 82 | A * (R*(B*S+2))^n * (n.factorial : ℝ)^2 := by |
| 83 | rw [iteratedFDeriv_comp hg hf le_rfl] |
| 84 | exact norm_taylorComp_le (ftaylorSeries ℝ g (f x)) (ftaylorSeries ℝ f x) |
| 85 | n A B R S hA hB hR hS hgjet hfjet |
| 86 | |
| 87 | /-- Uniform all-order composition bound. In particular the output radius |
| 88 | does not grow with `n` and the outer amplitude remains linear. -/ |
| 89 | theorem norm_iteratedFDeriv_comp_gevrey |
| 90 | (f : E → F) (g : F → G) (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) |
| 91 | (A B R S : ℝ) (hA : 0 ≤ A) (hB : 0 ≤ B) (hR : 0 ≤ R) (hS : 0 ≤ S) |
| 92 | (hgjet : ∀ j y, ‖iteratedFDeriv ℝ j g y‖ ≤ A * S^j * (j.factorial : ℝ)^2) |
| 93 | (hfjet : ∀ j, 0 < j → ∀ x, |
| 94 | ‖iteratedFDeriv ℝ j f x‖ ≤ B * R^j * (j.factorial : ℝ)^2) |
| 95 | (n : ℕ) (x : E) : |
| 96 | ‖iteratedFDeriv ℝ n (g ∘ f) x‖ ≤ |
| 97 | A * (R*(B*S+2))^n * (n.factorial : ℝ)^2 := by |
| 98 | apply norm_iteratedFDeriv_comp_gevrey_at f g n x |
| 99 | (hf.contDiffAt.of_le (by simp)) (hg.contDiffAt.of_le (by simp)) |
| 100 | A B R S hA hB hR hS |
| 101 | · exact fun j _ => hgjet j (f x) |
| 102 | · exact fun j hj _ => hfjet j hj x |
| 103 | |
| 104 | end EulerGevreyComposition |