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.GevreyGeneratingDerivatives |
| 2 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.FundThmCalculus |
| 3 | |
| 4 | /-! Finite-order small-flow estimates. The only evolution input is the |
| 5 | literal integral (or, in the final theorem, differential) equation for |
| 6 | the actual spatial derivatives. The nonlinear majorant is derived here |
| 7 | from Faà di Bruno; no bound on the flow derivatives is assumed. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | open Set MeasureTheory |
| 12 | open scoped BigOperators ContDiff Interval |
| 13 | |
| 14 | namespace EulerGevreyFlowFinite |
| 15 | |
| 16 | open EulerGevreyGeneratingComposition EulerGevreyGeneratingDerivatives |
| 17 | EulerGevreyFlowBootstrap |
| 18 | |
| 19 | variable {E F : Type*} |
| 20 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 21 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 22 | |
| 23 | theorem derivativeSum_continuousOn (f : ℝ → E → F) (N : ℕ) (z T : ℝ) (x : E) |
| 24 | (hc : ∀ n ∈ Finset.Icc 1 N, |
| 25 | ContinuousOn (fun t => iteratedFDeriv ℝ n (f t) x) (Icc 0 T)) : |
| 26 | ContinuousOn (fun t => derivativeSum (f t) N z x) (Icc 0 T) := by |
| 27 | unfold derivativeSum generatingSum normalizedJet ftaylorSeries |
| 28 | exact continuousOn_finsetSum _ fun n hn => ((hc n hn).norm.div_const _).mul_const _ |
| 29 | |
| 30 | theorem derivativeSum_zero (N : ℕ) (z : ℝ) (x : E) : |
| 31 | derivativeSum (0 : E → F) N z x = 0 := by |
| 32 | simp [derivativeSum, generatingSum, normalizedJet, ftaylorSeries, iteratedFDeriv_zero] |
| 33 | |
| 34 | theorem derivative_term_le_sum (f : E → F) (N n : ℕ) (z : ℝ) (x : E) |
| 35 | (hn : n ∈ Finset.Icc 1 N) (hz : 0 ≤ z) : |
| 36 | ‖iteratedFDeriv ℝ n f x‖/(n.factorial : ℝ)^2*z^n ≤ derivativeSum f N z x := by |
| 37 | unfold derivativeSum generatingSum normalizedJet ftaylorSeries |
| 38 | exact Finset.single_le_sum |
| 39 | (fun j _ => mul_nonneg |
| 40 | (div_nonneg (norm_nonneg (iteratedFDeriv ℝ j f x)) (sq_nonneg (j.factorial : ℝ))) |
| 41 | (pow_nonneg hz j)) hn |
| 42 | |
| 43 | theorem derivativeSum_le_integral [CompleteSpace F] |
| 44 | (f : E → F) (v : ℝ → E → F) (N : ℕ) (z t : ℝ) (x : E) |
| 45 | (ht : 0 ≤ t) (hz : 0 ≤ z) |
| 46 | (hc : ∀ n ∈ Finset.Icc 1 N, |
| 47 | ContinuousOn (fun s => iteratedFDeriv ℝ n (v s) x) (Icc 0 t)) |
| 48 | (heq : ∀ n ∈ Finset.Icc 1 N, |
| 49 | iteratedFDeriv ℝ n f x = ∫ s in 0..t, iteratedFDeriv ℝ n (v s) x) : |
| 50 | derivativeSum f N z x ≤ ∫ s in 0..t, derivativeSum (v s) N z x := by |
| 51 | unfold derivativeSum generatingSum normalizedJet ftaylorSeries |
| 52 | rw [intervalIntegral.integral_finsetSum] |
| 53 | · apply Finset.sum_le_sum |
| 54 | intro n hn |
| 55 | rw [intervalIntegral.integral_mul_const, intervalIntegral.integral_div, heq n hn] |
| 56 | apply mul_le_mul_of_nonneg_right _ (pow_nonneg hz n) |
| 57 | exact div_le_div_of_nonneg_right (intervalIntegral.norm_integral_le_integral_norm ht) |
| 58 | (sq_nonneg _) |
| 59 | · intro n hn |
| 60 | exact (((hc n hn).norm.div_const _).mul_const _).intervalIntegrable_of_Icc ht |
| 61 | |
| 62 | variable [CompleteSpace E] |
| 63 | |
| 64 | /-- Uniform finite-order bound for a genuine flow displacement, from its |
| 65 | actual differentiated integral equation. The smallness condition and the |
| 66 | resulting radius are independent of N. -/ |
| 67 | theorem flow_generating_sum_bound |
| 68 | (ψ b : ℝ → E → E) (N : ℕ) (T B R : ℝ) |
| 69 | (hT : 0 ≤ T) (hB : 0 ≤ B) (hR : 0 < R) (hsmall : B*R*T ≤ 1/8) |
| 70 | (hψ : ∀ t ∈ Icc 0 T, ContDiff ℝ N (ψ t)) |
| 71 | (hb : ∀ t ∈ Icc 0 T, ContDiff ℝ N (b t)) (hψ0 : ψ 0 = 0) |
| 72 | (hbjet : ∀ t ∈ Icc 0 T, ∀ y, ∀ n ∈ Finset.Icc 1 N, |
| 73 | ‖iteratedFDeriv ℝ n (b t) y‖ ≤ B*R^n*(n.factorial : ℝ)^2) |
| 74 | (hcψ : ∀ n ∈ Finset.Icc 1 N, ∀ x, |
| 75 | ContinuousOn (fun t => iteratedFDeriv ℝ n (ψ t) x) (Icc 0 T)) |
| 76 | (hcv : ∀ n ∈ Finset.Icc 1 N, ∀ x, |
| 77 | ContinuousOn (fun t => iteratedFDeriv ℝ n (b t ∘ (id+ψ t)) x) (Icc 0 T)) |
| 78 | (heq : ∀ n ∈ Finset.Icc 1 N, ∀ t ∈ Icc 0 T, ∀ x, |
| 79 | iteratedFDeriv ℝ n (ψ t) x = |
| 80 | ∫ s in 0..t, iteratedFDeriv ℝ n (b s ∘ (id+ψ s)) x) : |
| 81 | ∀ t ∈ Icc 0 T, ∀ x, |
| 82 | derivativeSum (ψ t) N ((4*R)⁻¹) x ≤ B*t := by |
| 83 | intro t ht x |
| 84 | have hz : 0 ≤ (4*R)⁻¹ := by positivity |
| 85 | have hfc := derivativeSum_continuousOn ψ N ((4*R)⁻¹) T x (fun n hn => hcψ n hn x) |
| 86 | have hf0 : derivativeSum (ψ 0) N ((4*R)⁻¹) x = 0 := by |
| 87 | rw [hψ0, derivativeSum_zero] |
| 88 | apply (rational_integral_bootstrap |
| 89 | (fun s => derivativeSum (ψ s) N ((4*R)⁻¹) x) T B R hT hB hR hsmall hfc hf0 ?_ t ht).1 |
| 90 | intro s hs hbefore |
| 91 | have hbase := derivativeSum_le_integral (ψ s) (fun r => b r ∘ (id+ψ r)) |
| 92 | N ((4*R)⁻¹) s x hs.1 hz |
| 93 | (fun n hn => (hcv n hn x).mono (Icc_subset_Icc_right hs.2)) |
| 94 | (fun n hn => heq n hn s hs x) |
| 95 | have hcontV := derivativeSum_continuousOn (fun r => b r ∘ (id+ψ r)) |
| 96 | N ((4*R)⁻¹) s x (fun n hn => (hcv n hn x).mono (Icc_subset_Icc_right hs.2)) |
| 97 | have hcontF := hfc.mono (Icc_subset_Icc_right hs.2) |
| 98 | have hden : ∀ r ∈ Icc 0 s, |
| 99 | 1-R*((4*R)⁻¹+derivativeSum (ψ r) N ((4*R)⁻¹) x) ≠ 0 := by |
| 100 | intro r hr |
| 101 | have hh := hbefore r hr |
| 102 | linarith |
| 103 | have hrate : ContinuousOn |
| 104 | (fun r => rationalRate B R ((4*R)⁻¹) (derivativeSum (ψ r) N ((4*R)⁻¹) x)) |
| 105 | (Icc 0 s) := by |
| 106 | unfold rationalRate |
| 107 | exact (continuousOn_const.mul (continuousOn_const.mul (continuousOn_const.add hcontF))).div |
| 108 | (continuousOn_const.sub (continuousOn_const.mul (continuousOn_const.add hcontF))) hden |
| 109 | apply hbase.trans |
| 110 | apply intervalIntegral.integral_mono_on hs.1 |
| 111 | (hcontV.intervalIntegrable_of_Icc hs.1) (hrate.intervalIntegrable_of_Icc hs.1) |
| 112 | intro r hr |
| 113 | have hrT : r ∈ Icc 0 T := ⟨hr.1,hr.2.trans hs.2⟩ |
| 114 | exact derivativeSum_comp_id_add_le (ψ r) (b r) N ((4*R)⁻¹) B R x hz hB hR.le |
| 115 | (hψ r hrT).contDiffAt (hb r hrT).contDiffAt |
| 116 | (hbjet r hrT _) (lt_of_le_of_lt (hbefore r hr) (by norm_num)) |
| 117 | |
| 118 | omit [CompleteSpace E] in |
| 119 | /-- Extracting one term from the same finite sum gives a single fixed |
| 120 | Gevrey radius, rather than a radius enlarged at each derivative order. -/ |
| 121 | theorem derivative_bound_of_generating_sum (f : E → F) (N n : ℕ) (R A : ℝ) |
| 122 | (x : E) (hR : 0 < R) (hn : n ∈ Finset.Icc 1 N) |
| 123 | (hbound : derivativeSum f N ((4*R)⁻¹) x ≤ A) : |
| 124 | ‖iteratedFDeriv ℝ n f x‖ ≤ A*(4*R)^n*(n.factorial : ℝ)^2 := by |
| 125 | have hw := (derivative_term_le_sum f N n ((4*R)⁻¹) x hn (by positivity)).trans hbound |
| 126 | have hm := mul_le_mul_of_nonneg_right hw (pow_nonneg (show 0 ≤ 4*R by positivity) n) |
| 127 | have hid : ((4*R)⁻¹)^n*(4*R)^n = 1 := by |
| 128 | rw [← mul_pow, inv_mul_cancel₀ (show 4*R ≠ 0 by positivity), one_pow] |
| 129 | rw [mul_assoc, hid, mul_one] at hm |
| 130 | exact (div_le_iff₀ (by positivity : 0 < (n.factorial : ℝ)^2)).mp hm |
| 131 | |
| 132 | /-- The integral equation used above follows from the actual within-time |
| 133 | derivative identity on the closed interval, including a degenerate end. -/ |
| 134 | theorem jet_integral_of_hasDerivWithinAt |
| 135 | (ψ v : ℝ → E → E) (n : ℕ) (T : ℝ) (hψ0 : ψ 0 = 0) |
| 136 | (hd : ∀ t ∈ Icc 0 T, ∀ x, |
| 137 | HasDerivWithinAt (fun s => iteratedFDeriv ℝ n (ψ s) x) |
| 138 | (iteratedFDeriv ℝ n (v t) x) (Icc 0 T) t) |
| 139 | (hc : ∀ x, ContinuousOn (fun t => iteratedFDeriv ℝ n (v t) x) (Icc 0 T)) |
| 140 | (t : ℝ) (ht : t ∈ Icc 0 T) (x : E) : |
| 141 | iteratedFDeriv ℝ n (ψ t) x = ∫ s in 0..t, iteratedFDeriv ℝ n (v s) x := by |
| 142 | have hcp : ContinuousOn (fun s => iteratedFDeriv ℝ n (ψ s) x) (Icc 0 t) := |
| 143 | fun s hs => (hd s ⟨hs.1,hs.2.trans ht.2⟩ x).continuousWithinAt.mono |
| 144 | (Icc_subset_Icc_right ht.2) |
| 145 | have he := intervalIntegral.integral_eq_sub_of_hasDerivAt_of_le ht.1 hcp |
| 146 | (fun s hs => (hd s ⟨hs.1.le,(hs.2.trans_le ht.2).le⟩ x).hasDerivAt |
| 147 | (Icc_mem_nhds hs.1 (hs.2.trans_le ht.2))) |
| 148 | (((hc x).mono (Icc_subset_Icc_right ht.2)).intervalIntegrable_of_Icc ht.1) |
| 149 | simpa only [hψ0, iteratedFDeriv_zero, Pi.zero_apply, sub_zero] using he.symm |
| 150 | |
| 151 | /-- The finite flow bound using genuine time derivatives of the spatial |
| 152 | jets, with no independent integral-equation assumption. -/ |
| 153 | theorem flow_generating_sum_bound_of_jet_derivative |
| 154 | (ψ b : ℝ → E → E) (N : ℕ) (T B R : ℝ) |
| 155 | (hT : 0 ≤ T) (hB : 0 ≤ B) (hR : 0 < R) (hsmall : B*R*T ≤ 1/8) |
| 156 | (hψ : ∀ t ∈ Icc 0 T, ContDiff ℝ N (ψ t)) |
| 157 | (hb : ∀ t ∈ Icc 0 T, ContDiff ℝ N (b t)) (hψ0 : ψ 0 = 0) |
| 158 | (hbjet : ∀ t ∈ Icc 0 T, ∀ y, ∀ n ∈ Finset.Icc 1 N, |
| 159 | ‖iteratedFDeriv ℝ n (b t) y‖ ≤ B*R^n*(n.factorial : ℝ)^2) |
| 160 | (hd : ∀ n ∈ Finset.Icc 1 N, ∀ t ∈ Icc 0 T, ∀ x, |
| 161 | HasDerivWithinAt (fun s => iteratedFDeriv ℝ n (ψ s) x) |
| 162 | (iteratedFDeriv ℝ n (b t ∘ (id+ψ t)) x) (Icc 0 T) t) |
| 163 | (hcv : ∀ n ∈ Finset.Icc 1 N, ∀ x, |
| 164 | ContinuousOn (fun t => iteratedFDeriv ℝ n (b t ∘ (id+ψ t)) x) (Icc 0 T)) : |
| 165 | ∀ t ∈ Icc 0 T, ∀ x, derivativeSum (ψ t) N ((4*R)⁻¹) x ≤ B*t := by |
| 166 | apply flow_generating_sum_bound ψ b N T B R hT hB hR hsmall hψ hb hψ0 hbjet |
| 167 | · exact fun n hn x t ht => (hd n hn t ht x).continuousWithinAt |
| 168 | · exact hcv |
| 169 | · intro n hn t ht x |
| 170 | exact jet_integral_of_hasDerivWithinAt ψ (fun s => b s ∘ (id+ψ s)) |
| 171 | n T hψ0 (hd n hn) (hcv n hn) t ht x |
| 172 | |
| 173 | /-- All positive spatial orders have the same radius 4R and the same |
| 174 | linear amplitude B*t. Smoothness and the jet equation are qualitative |
| 175 | inputs; the derivative estimates are conclusions. -/ |
| 176 | theorem flow_positive_derivative_bound |
| 177 | (ψ b : ℝ → E → E) (T B R : ℝ) |
| 178 | (hT : 0 ≤ T) (hB : 0 ≤ B) (hR : 0 < R) (hsmall : B*R*T ≤ 1/8) |
| 179 | (hψ : ∀ t ∈ Icc 0 T, ContDiff ℝ ∞ (ψ t)) |
| 180 | (hb : ∀ t ∈ Icc 0 T, ContDiff ℝ ∞ (b t)) (hψ0 : ψ 0 = 0) |
| 181 | (hbjet : ∀ t ∈ Icc 0 T, ∀ y, ∀ n, 0 < n → |
| 182 | ‖iteratedFDeriv ℝ n (b t) y‖ ≤ B*R^n*(n.factorial : ℝ)^2) |
| 183 | (hd : ∀ n, 0 < n → ∀ t ∈ Icc 0 T, ∀ x, |
| 184 | HasDerivWithinAt (fun s => iteratedFDeriv ℝ n (ψ s) x) |
| 185 | (iteratedFDeriv ℝ n (b t ∘ (id+ψ t)) x) (Icc 0 T) t) |
| 186 | (hcv : ∀ n, 0 < n → ∀ x, |
| 187 | ContinuousOn (fun t => iteratedFDeriv ℝ n (b t ∘ (id+ψ t)) x) (Icc 0 T)) : |
| 188 | ∀ t ∈ Icc 0 T, ∀ x, ∀ n, 0 < n → |
| 189 | ‖iteratedFDeriv ℝ n (ψ t) x‖ ≤ B*t*(4*R)^n*(n.factorial : ℝ)^2 := by |
| 190 | intro t ht x n hn |
| 191 | apply derivative_bound_of_generating_sum (ψ t) n n R (B*t) x hR |
| 192 | (Finset.mem_Icc.mpr ⟨hn,le_rfl⟩) |
| 193 | exact flow_generating_sum_bound_of_jet_derivative ψ b n T B R hT hB hR hsmall |
| 194 | (fun s hs => (hψ s hs).of_le (by simp)) |
| 195 | (fun s hs => (hb s hs).of_le (by simp)) hψ0 |
| 196 | (fun s hs y j hj => hbjet s hs y j (Finset.mem_Icc.mp hj).1) |
| 197 | (fun j hj => hd j (Finset.mem_Icc.mp hj).1) |
| 198 | (fun j hj => hcv j (Finset.mem_Icc.mp hj).1) t ht x |
| 199 | |
| 200 | end EulerGevreyFlowFinite |