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.GevreyGeneratingAlgebra |
| 2 | import Euler.GevreyFlowBootstrap |
| 3 | |
| 4 | /-! The finite Gevrey-two generating sum obeys an actual composition |
| 5 | estimate. In contrast to replacing all jets by one order-dependent bound, |
| 6 | this estimate retains the finite sum of the inner derivatives. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open scoped BigOperators ContDiff Polynomial |
| 11 | |
| 12 | namespace EulerGevreyGeneratingComposition |
| 13 | |
| 14 | open EulerGevreyComposition EulerGevreyGeneratingAlgebra |
| 15 | |
| 16 | variable {E F G : Type*} |
| 17 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 18 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 19 | [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 20 | |
| 21 | /-- Comparison with an exact scalar polynomial composition. -/ |
| 22 | theorem norm_taylorComp_le_coefficient |
| 23 | (P : FormalMultilinearSeries ℝ E F) (Q : FormalMultilinearSeries ℝ F G) |
| 24 | (p q : ℝ[X]) (hp0 : p.coeff 0 = 0) |
| 25 | (hp : NonnegativeCoefficients p) (hq : NonnegativeCoefficients q) |
| 26 | (n : ℕ) (hn : 0 < n) |
| 27 | (hP : ∀ j, 0 < j → j ≤ n → ‖P j‖ ≤ (j.factorial : ℝ)^2*p.coeff j) |
| 28 | (hQ : ∀ j, 0 < j → j ≤ n → ‖Q j‖ ≤ (j.factorial : ℝ)^2*q.coeff j) : |
| 29 | ‖Q.taylorComp P n‖ ≤ (n.factorial : ℝ)^2*(q.comp p).coeff n := by |
| 30 | have hc (c : OrderedFinpartition n) : |
| 31 | ‖Q.compAlongOrderedFinpartition P c‖ ≤ (n.factorial : ℝ)* |
| 32 | (((c.length.factorial : ℝ)*q.coeff c.length)* |
| 33 | ∏ i, ((c.partSize i).factorial : ℝ)*p.coeff (c.partSize i)) := by |
| 34 | calc |
| 35 | _ ≤ ‖Q c.length‖*∏ i, ‖P (c.partSize i)‖ := |
| 36 | c.norm_compAlongOrderedFinpartition_le _ _ |
| 37 | _ ≤ ((c.length.factorial : ℝ)^2*q.coeff c.length)* |
| 38 | ∏ i, ((c.partSize i).factorial : ℝ)^2*p.coeff (c.partSize i) := by |
| 39 | apply mul_le_mul (hQ _ (c.length_pos hn) c.length_le) |
| 40 | · exact Finset.prod_le_prod (fun i _ => norm_nonneg _) |
| 41 | (fun i _ => hP _ (c.partSize_pos i) (c.partSize_le i)) |
| 42 | · exact Finset.prod_nonneg (fun i _ => norm_nonneg _) |
| 43 | · exact mul_nonneg (sq_nonneg _) (hq _) |
| 44 | _ = ((c.length.factorial : ℝ)*factorialProduct c)* |
| 45 | (((c.length.factorial : ℝ)*q.coeff c.length)* |
| 46 | ∏ i, ((c.partSize i).factorial : ℝ)*p.coeff (c.partSize i)) := by |
| 47 | simp only [factorialProduct, Finset.prod_mul_distrib, Finset.prod_pow] |
| 48 | ring |
| 49 | _ ≤ _ := mul_le_mul_of_nonneg_right (partition_factorial_le c) |
| 50 | (mul_nonneg (mul_nonneg (Nat.cast_nonneg _) (hq _)) |
| 51 | (Finset.prod_nonneg fun i _ => mul_nonneg (Nat.cast_nonneg _) (hp _))) |
| 52 | calc |
| 53 | _ ≤ ∑ c : OrderedFinpartition n, ‖Q.compAlongOrderedFinpartition P c‖ := norm_sum_le _ _ |
| 54 | _ ≤ ∑ c : OrderedFinpartition n, (n.factorial : ℝ)* |
| 55 | (((c.length.factorial : ℝ)*q.coeff c.length)* |
| 56 | ∏ i, ((c.partSize i).factorial : ℝ)*p.coeff (c.partSize i)) := |
| 57 | Finset.sum_le_sum fun c _ => hc c |
| 58 | _ = (n.factorial : ℝ)*((n.factorial : ℝ)*(q.comp p).coeff n) := by |
| 59 | rw [← Finset.mul_sum, comp_coefficient p q hp0 n] |
| 60 | _ = _ := by ring |
| 61 | |
| 62 | /-- Finite sums are bounded by evaluating the composed nonnegative |
| 63 | polynomial. No derivative beyond order N occurs. -/ |
| 64 | theorem generating_sum_le_polynomial |
| 65 | (P : FormalMultilinearSeries ℝ E F) (Q : FormalMultilinearSeries ℝ F G) |
| 66 | (N : ℕ) (a b : ℕ → ℝ) |
| 67 | (ha : ∀ j ∈ Finset.Icc 1 N, 0 ≤ a j) |
| 68 | (hb : ∀ j ∈ Finset.Icc 1 N, 0 ≤ b j) |
| 69 | (hP : ∀ j ∈ Finset.Icc 1 N, ‖P j‖ ≤ (j.factorial : ℝ)^2*a j) |
| 70 | (hQ : ∀ j ∈ Finset.Icc 1 N, ‖Q j‖ ≤ (j.factorial : ℝ)^2*b j) |
| 71 | (z : ℝ) (hz : 0 ≤ z) : |
| 72 | (∑ n ∈ Finset.Icc 1 N, ‖Q.taylorComp P n‖/(n.factorial : ℝ)^2*z^n) ≤ |
| 73 | (jetPolynomial N b).eval ((jetPolynomial N a).eval z) := by |
| 74 | let p := jetPolynomial N a |
| 75 | let q := jetPolynomial N b |
| 76 | have hpc : NonnegativeCoefficients p := jetPolynomial_nonnegative N a ha |
| 77 | have hqc : NonnegativeCoefficients q := jetPolynomial_nonnegative N b hb |
| 78 | calc |
| 79 | _ ≤ ∑ n ∈ Finset.Icc 1 N, (q.comp p).coeff n*z^n := by |
| 80 | apply Finset.sum_le_sum |
| 81 | intro n hn |
| 82 | obtain ⟨hn0,hnN⟩ := Finset.mem_Icc.mp hn |
| 83 | apply mul_le_mul_of_nonneg_right _ (pow_nonneg hz n) |
| 84 | apply (div_le_iff₀ (by positivity : 0 < (n.factorial : ℝ)^2)).2 |
| 85 | have he := norm_taylorComp_le_coefficient P Q p q |
| 86 | (jetPolynomial_zero N a) hpc hqc n (by omega) |
| 87 | (fun j hj hjn => by |
| 88 | have hjN : j ∈ Finset.Icc 1 N := Finset.mem_Icc.mpr ⟨hj,hjn.trans hnN⟩ |
| 89 | simpa only [p, jetPolynomial_coeff_of_mem N a j hjN] using hP j hjN) |
| 90 | (fun j hj hjn => by |
| 91 | have hjN : j ∈ Finset.Icc 1 N := Finset.mem_Icc.mpr ⟨hj,hjn.trans hnN⟩ |
| 92 | simpa only [q, jetPolynomial_coeff_of_mem N b j hjN] using hQ j hjN) |
| 93 | simpa only [mul_comm] using he |
| 94 | _ ≤ (q.comp p).eval z := |
| 95 | coefficient_sum_le_eval (q.comp p) (nonnegative_comp hpc hqc) _ z hz |
| 96 | _ = _ := by simp only [Polynomial.eval_comp, p, q] |
| 97 | |
| 98 | def normalizedJet (P : FormalMultilinearSeries ℝ E F) (n : ℕ) : ℝ := |
| 99 | ‖P n‖/(n.factorial : ℝ)^2 |
| 100 | |
| 101 | def generatingSum (P : FormalMultilinearSeries ℝ E F) (N : ℕ) (z : ℝ) : ℝ := |
| 102 | ∑ n ∈ Finset.Icc 1 N, normalizedJet P n*z^n |
| 103 | |
| 104 | theorem generatingSum_nonneg (P : FormalMultilinearSeries ℝ E F) |
| 105 | (N : ℕ) (z : ℝ) (hz : 0 ≤ z) : 0 ≤ generatingSum P N z := |
| 106 | Finset.sum_nonneg fun n _ => mul_nonneg (by unfold normalizedJet; positivity) (pow_nonneg hz n) |
| 107 | |
| 108 | /-- The nonlinear generating-function bound needed for the small-flow |
| 109 | bootstrap. The inner generating sum is retained without a radius loss. -/ |
| 110 | theorem generatingSum_taylorComp_le |
| 111 | (P : FormalMultilinearSeries ℝ E F) (Q : FormalMultilinearSeries ℝ F G) |
| 112 | (N : ℕ) (B R z : ℝ) (hB : 0 ≤ B) (hR : 0 ≤ R) (hz : 0 ≤ z) |
| 113 | (hQ : ∀ j ∈ Finset.Icc 1 N, ‖Q j‖ ≤ B*R^j*(j.factorial : ℝ)^2) |
| 114 | (hsmall : R*generatingSum P N z < 1) : |
| 115 | generatingSum (Q.taylorComp P) N z ≤ |
| 116 | B*(R*generatingSum P N z)/(1-R*generatingSum P N z) := by |
| 117 | have hP (j : ℕ) : ‖P j‖ = (j.factorial : ℝ)^2*normalizedJet P j := by |
| 118 | unfold normalizedJet |
| 119 | field_simp |
| 120 | have hb : ∀ j ∈ Finset.Icc 1 N, 0 ≤ B*R^j := |
| 121 | fun j _ => mul_nonneg hB (pow_nonneg hR j) |
| 122 | have he := generating_sum_le_polynomial P Q N (normalizedJet P) (fun j => B*R^j) |
| 123 | (fun j _ => by unfold normalizedJet; positivity) hb |
| 124 | (fun j _ => (hP j).le) |
| 125 | (fun j hj => by simpa only [mul_comm, mul_left_comm, mul_assoc] using hQ j hj) z hz |
| 126 | have hg : (jetPolynomial N (normalizedJet P)).eval z = generatingSum P N z := |
| 127 | jetPolynomial_eval N (normalizedJet P) z |
| 128 | change generatingSum (Q.taylorComp P) N z ≤ _ at he |
| 129 | rw [hg, jetPolynomial_eval] at he |
| 130 | have hnon : 0 ≤ R*generatingSum P N z := |
| 131 | mul_nonneg hR (generatingSum_nonneg P N z hz) |
| 132 | have hgeom := geom_sum_Ico_le_of_lt_one (m := 1) (n := N+1) hnon hsmall |
| 133 | have hinterval : Finset.Ico 1 (N+1) = Finset.Icc 1 N := by |
| 134 | ext n |
| 135 | simp only [Finset.mem_Ico, Finset.mem_Icc] |
| 136 | omega |
| 137 | rw [hinterval, pow_one] at hgeom |
| 138 | calc |
| 139 | _ ≤ ∑ j ∈ Finset.Icc 1 N, (B*R^j)*generatingSum P N z^j := he |
| 140 | _ = B*∑ j ∈ Finset.Icc 1 N, (R*generatingSum P N z)^j := by |
| 141 | simp only [Finset.mul_sum, mul_pow, mul_assoc] |
| 142 | _ ≤ B*((R*generatingSum P N z)/(1-R*generatingSum P N z)) := |
| 143 | mul_le_mul_of_nonneg_left hgeom hB |
| 144 | _ = _ := by ring |
| 145 | |
| 146 | end EulerGevreyGeneratingComposition |