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.HeatProfileExtension |
| 2 | |
| 3 | /-! Exact endpoint jets and quantitative small-argument estimates for the |
| 4 | gamma integral in `heat:exterior`. -/ |
| 5 | |
| 6 | noncomputable section |
| 7 | |
| 8 | open Set Filter MeasureTheory |
| 9 | open scoped Topology ContDiff |
| 10 | |
| 11 | namespace NavierStokes.AppendixHeatResults |
| 12 | |
| 13 | open RadialHeatProfile |
| 14 | |
| 15 | /-- The rising factorial used in the manuscript. -/ |
| 16 | def rising (b : ℝ) (n : ℕ) : ℝ := ∏ k ∈ Finset.range n, (b + k) |
| 17 | |
| 18 | theorem rising_zero (b : ℝ) : rising b 0 = 1 := by simp [rising] |
| 19 | |
| 20 | theorem rising_succ (b : ℝ) (n : ℕ) : |
| 21 | rising b (n + 1) = rising b n * (b + n) := by |
| 22 | simp [rising, Finset.prod_range_succ] |
| 23 | |
| 24 | theorem rising_nonneg {b : ℝ} (hb : 0 ≤ b) (n : ℕ) : 0 ≤ rising b n := by |
| 25 | apply Finset.prod_nonneg |
| 26 | intro k _ |
| 27 | positivity |
| 28 | |
| 29 | theorem rising_pos {b : ℝ} (hb : 0 < b) (n : ℕ) : 0 < rising b n := by |
| 30 | apply Finset.prod_pos |
| 31 | intro k _ |
| 32 | positivity |
| 33 | |
| 34 | theorem rising_mono {b c : ℝ} (hb : 0 ≤ b) (hbc : b ≤ c) (n : ℕ) : |
| 35 | rising b n ≤ rising c n := by |
| 36 | apply Finset.prod_le_prod |
| 37 | · intro k _; positivity |
| 38 | · intro k _; linarith |
| 39 | |
| 40 | theorem rising_succ_left (b : ℝ) (n : ℕ) : |
| 41 | rising b (n + 1) = b * rising (1 + b) n := by |
| 42 | induction n with |
| 43 | | zero => simp [rising_succ, rising_zero] |
| 44 | | succ n ih => |
| 45 | rw [rising_succ b (n + 1), ih, rising_succ (1 + b) n] |
| 46 | push_cast |
| 47 | ring |
| 48 | |
| 49 | theorem derivativeCoeff_eq_rising (h : ℝ) (n : ℕ) : |
| 50 | derivativeCoeff (1 + h) n = (-1 : ℝ) ^ n * rising h n := by |
| 51 | induction n with |
| 52 | | zero => simp [derivativeCoeff, rising_zero] |
| 53 | | succ n ih => rw [derivativeCoeff, ih, rising_succ, pow_succ]; ring |
| 54 | |
| 55 | theorem gamma_add_nat {a : ℝ} (ha : 0 < a) (n : ℕ) : |
| 56 | Real.Gamma (a + n) = Real.Gamma a * rising a n := by |
| 57 | induction n with |
| 58 | | zero => simp [rising_zero] |
| 59 | | succ n ih => |
| 60 | rw [Nat.cast_add, Nat.cast_one, ← add_assoc, |
| 61 | Real.Gamma_add_one (by positivity : a + (n : ℝ) ≠ 0), ih, rising_succ] |
| 62 | ring |
| 63 | |
| 64 | /-- The displayed endpoint formula holds for actual one-sided derivatives, |
| 65 | not merely a recursively specified formal series. -/ |
| 66 | theorem endpoint_derivatives {h : ℝ} (hh : 0 < h) (n : ℕ) : |
| 67 | iteratedDerivWithin n (profile (1 + h)) (Ici 0) 0 = |
| 68 | (-1 : ℝ) ^ n * rising h n * rising (1 + h) n := by |
| 69 | rw [iteratedDerivWithin_profile (by linarith : 1 < 1 + h) n le_rfl, |
| 70 | profileJet, moment_zero (by linarith : 1 < 1 + h), derivativeCoeff_eq_rising, |
| 71 | gamma_add_nat (by linarith : 0 < 1 + h)] |
| 72 | have hg := (Real.Gamma_pos_of_pos (by linarith : 0 < 1 + h)).ne' |
| 73 | field_simp |
| 74 | |
| 75 | /-- Every derivative is bounded by the magnitude of its endpoint value. -/ |
| 76 | theorem derivative_bound_rising {h z : ℝ} (hh : 0 < h) (hz : 0 ≤ z) (n : ℕ) : |
| 77 | |iteratedDerivWithin n (profile (1 + h)) (Ici 0) z| ≤ |
| 78 | rising h n * rising (1 + h) n := by |
| 79 | have hb := profile_derivative_bound (a := 1 + h) (by linarith) n hz |
| 80 | have hg := Real.Gamma_pos_of_pos (by linarith : 0 < 1 + h) |
| 81 | rw [derivativeCoeff_eq_rising, gamma_add_nat (by linarith : 0 < 1 + h), |
| 82 | abs_mul, abs_mul, abs_pow, abs_neg, abs_one, one_pow, one_mul, |
| 83 | abs_of_nonneg (rising_nonneg hh.le n), abs_of_pos (inv_pos.mpr hg)] at hb |
| 84 | convert hb using 1 |
| 85 | field_simp |
| 86 | |
| 87 | /-- The positive-order jets are uniformly `O(h)` for bounded positive `h`. |
| 88 | The explicit constant is independent of the argument on the whole half-line. -/ |
| 89 | theorem uniform_positive_derivative_bound {h h₀ z : ℝ} |
| 90 | (hh : 0 < h) (hh₀ : h ≤ h₀) (hz : 0 ≤ z) (n : ℕ) : |
| 91 | |iteratedDerivWithin (n + 1) (profile (1 + h)) (Ici 0) z| ≤ |
| 92 | (rising (1 + h₀) n * rising (1 + h₀) (n + 1)) * h := by |
| 93 | have hb := derivative_bound_rising hh hz (n + 1) |
| 94 | rw [rising_succ_left h n] at hb |
| 95 | calc |
| 96 | _ ≤ (h * rising (1 + h) n) * rising (1 + h) (n + 1) := hb |
| 97 | _ ≤ (h * rising (1 + h₀) n) * rising (1 + h₀) (n + 1) := by |
| 98 | apply mul_le_mul |
| 99 | · exact mul_le_mul_of_nonneg_left (rising_mono (by linarith) (by linarith) n) hh.le |
| 100 | · exact rising_mono (by linarith) (by linarith) (n + 1) |
| 101 | · exact rising_nonneg (by linarith) _ |
| 102 | · exact mul_nonneg hh.le (rising_nonneg (by linarith) _) |
| 103 | _ = _ := by ring |
| 104 | |
| 105 | theorem first_endpoint_jet {h : ℝ} (hh : 0 < h) : |
| 106 | profileJet (1 + h) 1 0 = -h * (1 + h) := by |
| 107 | rw [← iteratedDerivWithin_profile (by linarith : 1 < 1 + h) 1 le_rfl, |
| 108 | endpoint_derivatives hh] |
| 109 | simp [rising] |
| 110 | |
| 111 | /-- An explicit derivative bound on the entire nonnegative half-line. -/ |
| 112 | theorem second_jet_bound {h z : ℝ} (hh : 0 < h) (hz : 0 ≤ z) : |
| 113 | |profileJet (1 + h) 2 z| ≤ h * (1 + h) ^ 2 * (2 + h) := by |
| 114 | have hb := profile_derivative_bound (a := 1 + h) (by linarith) 2 hz |
| 115 | rw [iteratedDerivWithin_profile (by linarith : 1 < 1 + h) 2 hz] at hb |
| 116 | have hg := Real.Gamma_pos_of_pos (by linarith : 0 < 1 + h) |
| 117 | have he : |(Real.Gamma (1 + h))⁻¹ * derivativeCoeff (1 + h) 2| * |
| 118 | Real.Gamma (1 + h + (2 : ℕ)) = h * (1 + h) ^ 2 * (2 + h) := by |
| 119 | rw [gamma_add_nat (by linarith : 0 < 1 + h)] |
| 120 | have hc : derivativeCoeff (1 + h) 2 = h * (1 + h) := by |
| 121 | simp [derivativeCoeff]; ring |
| 122 | rw [hc, abs_of_pos (by positivity)] |
| 123 | simp only [rising, Finset.prod_range_succ, Finset.range_zero, |
| 124 | Finset.prod_empty, Nat.cast_zero, Nat.cast_one] |
| 125 | field_simp |
| 126 | ring |
| 127 | exact hb.trans_eq he |
| 128 | |
| 129 | theorem first_jet_remainder {h z : ℝ} (hh : 0 < h) (hz : 0 ≤ z) : |
| 130 | |profileJet (1 + h) 1 z + h * (1 + h)| ≤ |
| 131 | h * (1 + h) ^ 2 * (2 + h) * z := by |
| 132 | have H := norm_image_sub_le_of_norm_deriv_le_segment' |
| 133 | (f := profileJet (1 + h) 1) (f' := profileJet (1 + h) 2) |
| 134 | (a := 0) (b := z) (C := h * (1 + h) ^ 2 * (2 + h)) |
| 135 | (fun x hx => (profileJet_hasDerivWithinAt (by linarith : 1 < 1 + h) 1 hx.1).mono |
| 136 | Icc_subset_Ici_self) |
| 137 | (fun x hx => by simpa only [Real.norm_eq_abs] using second_jet_bound hh hx.1) |
| 138 | simpa only [Real.norm_eq_abs, first_endpoint_jet hh, neg_mul, sub_neg_eq_add, sub_zero] |
| 139 | using H z ⟨hz, le_rfl⟩ |
| 140 | |
| 141 | /-- The finite Taylor estimate asserted in `heat:small-argument`, with an |
| 142 | explicit remainder constant and no analyticity assumption. -/ |
| 143 | theorem small_argument_remainder {h z : ℝ} (hh : 0 < h) (hz : 0 ≤ z) : |
| 144 | |profile (1 + h) z - 1 + h * (1 + h) * z| ≤ |
| 145 | h * (1 + h) ^ 2 * (2 + h) * z ^ 2 := by |
| 146 | let B := h * (1 + h) ^ 2 * (2 + h) |
| 147 | let g := fun x => profile (1 + h) x - 1 + h * (1 + h) * x |
| 148 | have H := norm_image_sub_le_of_norm_deriv_le_segment' |
| 149 | (f := g) (f' := fun x => profileJet (1 + h) 1 x + h * (1 + h)) |
| 150 | (a := 0) (b := z) (C := B * z) |
| 151 | (fun x hx => by |
| 152 | convert! |
| 153 | (((profile_hasDerivWithinAt (by linarith : 1 < 1 + h) hx.1).sub_const 1).add |
| 154 | ((hasDerivWithinAt_id x (Ici 0)).const_mul (h * (1 + h)))).mono |
| 155 | (Icc_subset_Ici_self : Icc (0 : ℝ) z ⊆ Ici 0) using 1 |
| 156 | simp) |
| 157 | (fun x hx => by |
| 158 | rw [Real.norm_eq_abs] |
| 159 | exact (first_jet_remainder hh hx.1).trans |
| 160 | (mul_le_mul_of_nonneg_left hx.2.le (by positivity))) |
| 161 | have hh0 : profile (1 + h) 0 = 1 := profile_zero (by linarith) |
| 162 | simpa [g, hh0, sub_zero, B, pow_two, mul_assoc] using H z ⟨hz, le_rfl⟩ |
| 163 | |
| 164 | /-- The constant in the first-order small-argument estimate is uniform when |
| 165 | the positive exponent ranges below any fixed upper bound. -/ |
| 166 | theorem uniform_small_argument {h h₀ z : ℝ} (hh : 0 < h) (hh₀ : h ≤ h₀) |
| 167 | (hz : 0 ≤ z) : |
| 168 | |profile (1 + h) z - 1| + |z * derivWithin (profile (1 + h)) (Ici 0) z| ≤ |
| 169 | (2 * (1 + h₀)) * h * z := by |
| 170 | have H₀ := profile_h_sub_one_bound hh hz |
| 171 | have H₁ := profile_first_derivative_bound (a := 1 + h) (by linarith) hz |
| 172 | rw [abs_mul, abs_of_nonneg hz] |
| 173 | have H₂ := mul_le_mul_of_nonneg_left H₁ hz |
| 174 | have H₃ := mul_le_mul_of_nonneg_right hh₀ (mul_nonneg hh.le hz) |
| 175 | nlinarith |
| 176 | |
| 177 | end NavierStokes.AppendixHeatResults |