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.PressureDatum |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.Operations |
| 3 | import Mathlib.Topology.Order.IntermediateValue |
| 4 | import Mathlib.Topology.Order.Compact |
| 5 | import Mathlib.Analysis.Real.Sqrt |
| 6 | import Mathlib.Tactic.FunProp |
| 7 | import Mathlib.Tactic.Linarith |
| 8 | import Mathlib.Tactic.Positivity |
| 9 | import Mathlib.Tactic.Ring |
| 10 | |
| 11 | /-! |
| 12 | # The fixed real natural-axis data |
| 13 | |
| 14 | The small parameters are quantitative. The unique zero of `H` is proved, |
| 15 | not postulated. The pressure is an input with explicit real smoothness, |
| 16 | negativity, and derivative-sign hypotheses; its construction and complex |
| 17 | analytic estimates are separate results. |
| 18 | -/ |
| 19 | |
| 20 | noncomputable section |
| 21 | |
| 22 | namespace NavierStokes.NaturalAxisData |
| 23 | |
| 24 | open Set |
| 25 | open scoped ContDiff Topology |
| 26 | |
| 27 | def D (h : ℝ) : ℝ := 1 / 2 - h |
| 28 | def A (h : ℝ) : ℝ := 1 / 2 + h |
| 29 | def d (η : ℝ) : ℝ := 1 - η ^ 2 |
| 30 | def L (h η : ℝ) : ℝ := 1 - 2 * h * η ^ 2 |
| 31 | def U (j η : ℝ) : ℝ := 4 * η + j |
| 32 | def H (h j η : ℝ) : ℝ := D h * η + d η * U j η |
| 33 | def W (h j η : ℝ) : ℝ := 1 - 4 * d η - 2 * D h * η * U j η |
| 34 | def Z (h j : ℝ) (P : ℝ → ℝ) (η : ℝ) : ℝ := |
| 35 | -A h * (1 - 2 * η * U j η) * U j η - H h j η * 4 - |
| 36 | d η * deriv P η + 4 * A h * η * P η |
| 37 | |
| 38 | def chi (h j σ η : ℝ) : ℝ := (H h j η) ^ 2 / ((H h j η) ^ 2 + σ ^ 2) |
| 39 | |
| 40 | /-- A concrete range of choices permitted by the manuscript's smallness order. -/ |
| 41 | structure SmallParameters (h j : ℝ) : Prop where |
| 42 | h_pos : 0 < h |
| 43 | h_le : h ≤ 1 / 1000 |
| 44 | j_pos : 0 < j |
| 45 | j_le : j ≤ 1 / 1000 |
| 46 | |
| 47 | theorem D_bounds {h j : ℝ} (p : SmallParameters h j) : |
| 48 | 499 / 1000 ≤ D h ∧ D h < 1 / 2 := by |
| 49 | unfold D |
| 50 | constructor <;> linarith [p.h_pos, p.h_le] |
| 51 | |
| 52 | theorem D_pos {h j : ℝ} (p : SmallParameters h j) : 0 < D h := by |
| 53 | linarith [(D_bounds p).1] |
| 54 | |
| 55 | theorem A_bounds {h j : ℝ} (p : SmallParameters h j) : |
| 56 | 1 / 2 < A h ∧ A h ≤ 501 / 1000 := by |
| 57 | unfold A |
| 58 | constructor <;> linarith [p.h_pos, p.h_le] |
| 59 | |
| 60 | theorem A_pos {h j : ℝ} (p : SmallParameters h j) : 0 < A h := by |
| 61 | linarith [(A_bounds p).1] |
| 62 | |
| 63 | theorem d_nonneg {η : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) : 0 ≤ d η := by |
| 64 | have hp := mul_nonneg (sub_nonneg.mpr hη.2) |
| 65 | (show 0 ≤ η + 1 by linarith [hη.1]) |
| 66 | unfold d |
| 67 | nlinarith |
| 68 | |
| 69 | theorem L_lower_bound {h j η : ℝ} (p : SmallParameters h j) |
| 70 | (hη : η ∈ Icc (-1 : ℝ) 1) : 499 / 500 ≤ L h η := by |
| 71 | have hp := mul_nonneg p.h_pos.le (d_nonneg hη) |
| 72 | dsimp [d, L] at * |
| 73 | nlinarith [p.h_le] |
| 74 | |
| 75 | theorem L_pos {h j η : ℝ} (p : SmallParameters h j) |
| 76 | (hη : η ∈ Icc (-1 : ℝ) 1) : 0 < L h η := by |
| 77 | linarith [L_lower_bound p hη] |
| 78 | |
| 79 | theorem neg_W_formula (h j η : ℝ) : |
| 80 | -W h j η = 3 - 8 * h * η ^ 2 + 2 * D h * j * η := by |
| 81 | unfold W U d D |
| 82 | ring |
| 83 | |
| 84 | /-- The proof gives 2.991, stronger than the manuscript's 2.8. -/ |
| 85 | theorem neg_W_lower_bound {h j η : ℝ} (p : SmallParameters h j) |
| 86 | (hη : η ∈ Icc (-1 : ℝ) 1) : 2991 / 1000 ≤ -W h j η := by |
| 87 | have hDj : 0 ≤ 2 * D h * j := |
| 88 | mul_nonneg (mul_nonneg (by norm_num) (D_pos p).le) p.j_pos.le |
| 89 | have hDjle : 2 * D h * j ≤ j := by |
| 90 | nlinarith [mul_nonneg (show 0 ≤ 1 - 2 * D h by linarith [(D_bounds p).2]) p.j_pos.le] |
| 91 | have hηDj : -(2 * D h * j) ≤ 2 * D h * j * η := by |
| 92 | nlinarith [mul_nonneg hDj (show 0 ≤ η + 1 by linarith [hη.1])] |
| 93 | have hhη : h * η ^ 2 ≤ h := by |
| 94 | have hp := mul_nonneg p.h_pos.le (d_nonneg hη) |
| 95 | dsimp [d] at hp |
| 96 | nlinarith |
| 97 | rw [neg_W_formula] |
| 98 | nlinarith [p.h_le, p.j_le] |
| 99 | |
| 100 | theorem neg_W_gt {h j η : ℝ} (p : SmallParameters h j) |
| 101 | (hη : η ∈ Icc (-1 : ℝ) 1) : 14 / 5 < -W h j η := by |
| 102 | linarith [neg_W_lower_bound p hη] |
| 103 | |
| 104 | theorem H_contDiff (h j : ℝ) : ContDiff ℝ ∞ (H h j) := by |
| 105 | unfold H U d |
| 106 | exact (contDiff_const.mul contDiff_id).add |
| 107 | ((contDiff_const.sub (contDiff_id.pow 2)).mul |
| 108 | ((contDiff_const.mul contDiff_id).add contDiff_const)) |
| 109 | |
| 110 | theorem H_at_left (h j : ℝ) : H h j (-j / 4) = -(D h * j) / 4 := by |
| 111 | unfold H U d |
| 112 | ring |
| 113 | |
| 114 | theorem H_at_right (h j : ℝ) : |
| 115 | H h j (-j / 5) = (j / 5) * (1 - D h - j ^ 2 / 25) := by |
| 116 | unfold H U d |
| 117 | ring |
| 118 | |
| 119 | theorem H_left_neg {h j : ℝ} (p : SmallParameters h j) : H h j (-j / 4) < 0 := by |
| 120 | rw [H_at_left] |
| 121 | have hp := mul_pos (D_pos p) p.j_pos |
| 122 | linarith |
| 123 | |
| 124 | theorem H_right_pos {h j : ℝ} (p : SmallParameters h j) : 0 < H h j (-j / 5) := by |
| 125 | rw [H_at_right] |
| 126 | apply mul_pos (div_pos p.j_pos (by norm_num)) |
| 127 | have hj1 : j ≤ 1 := by linarith [p.j_le] |
| 128 | have hj2 : j ^ 2 ≤ 1 := by |
| 129 | nlinarith [mul_nonneg (sub_nonneg.mpr hj1) (show 0 ≤ j + 1 by linarith [p.j_pos])] |
| 130 | nlinarith [(D_bounds p).2] |
| 131 | |
| 132 | theorem H_pos_of_nonneg {h j η : ℝ} (p : SmallParameters h j) |
| 133 | (hη : η ∈ Icc (-1 : ℝ) 1) (hη0 : 0 ≤ η) : 0 < H h j η := by |
| 134 | rcases eq_or_lt_of_le hη0 with heq | hpos |
| 135 | · subst η |
| 136 | simpa [H, U, d] using p.j_pos |
| 137 | · have hU : 0 ≤ U j η := by dsimp [U]; linarith [p.j_pos] |
| 138 | exact add_pos_of_pos_of_nonneg (mul_pos (D_pos p) hpos) |
| 139 | (mul_nonneg (d_nonneg hη) hU) |
| 140 | |
| 141 | theorem H_neg_of_le_left {h j η : ℝ} (p : SmallParameters h j) |
| 142 | (hη : η ∈ Icc (-1 : ℝ) 1) (hleft : η ≤ -j / 4) : H h j η < 0 := by |
| 143 | have hη0 : η < 0 := by linarith [p.j_pos] |
| 144 | have hU : U j η ≤ 0 := by dsimp [U]; linarith |
| 145 | exact add_neg_of_neg_of_nonpos (mul_neg_of_pos_of_neg (D_pos p) hη0) |
| 146 | (mul_nonpos_of_nonneg_of_nonpos (d_nonneg hη) hU) |
| 147 | |
| 148 | theorem root_negative {h j η : ℝ} (p : SmallParameters h j) |
| 149 | (hη : η ∈ Icc (-1 : ℝ) 1) (hzero : H h j η = 0) : η < 0 := by |
| 150 | by_contra hn |
| 151 | have hp := H_pos_of_nonneg p hη (le_of_not_gt hn) |
| 152 | linarith |
| 153 | |
| 154 | theorem cross_identity (h j x y : ℝ) : |
| 155 | H h j x * d y - H h j y * d x = |
| 156 | (x - y) * (D h * (1 + x * y) + 4 * d x * d y) := by |
| 157 | unfold H U d |
| 158 | ring |
| 159 | |
| 160 | /-- Uniqueness is proved algebraically from the actual polynomial. -/ |
| 161 | theorem root_unique {h j x y : ℝ} (p : SmallParameters h j) |
| 162 | (hx : x ∈ Icc (-1 : ℝ) 1) (hy : y ∈ Icc (-1 : ℝ) 1) |
| 163 | (hx0 : H h j x = 0) (hy0 : H h j y = 0) : x = y := by |
| 164 | have hxn := root_negative p hx hx0 |
| 165 | have hyn := root_negative p hy hy0 |
| 166 | have hxy : 0 < x * y := mul_pos_of_neg_of_neg hxn hyn |
| 167 | have hp : 0 < D h * (1 + x * y) + 4 * d x * d y := |
| 168 | add_pos_of_pos_of_nonneg (mul_pos (D_pos p) (by linarith)) |
| 169 | (mul_nonneg (mul_nonneg (by norm_num) (d_nonneg hx)) (d_nonneg hy)) |
| 170 | have hid := cross_identity h j x y |
| 171 | rw [hx0, hy0] at hid |
| 172 | have hprod : (x - y) * (D h * (1 + x * y) + 4 * d x * d y) = 0 := by |
| 173 | linarith |
| 174 | have heq := (mul_eq_zero.mp hprod).resolve_right (ne_of_gt hp) |
| 175 | linarith |
| 176 | |
| 177 | /-- The unique zero lies strictly between `-j/4` and `-j/5`. -/ |
| 178 | theorem exists_unique_root {h j : ℝ} (p : SmallParameters h j) : |
| 179 | ∃ η₀ : ℝ, η₀ ∈ Ioo (-j / 4) (-j / 5) ∧ H h j η₀ = 0 ∧ |
| 180 | ∀ η ∈ Icc (-1 : ℝ) 1, H h j η = 0 → η = η₀ := by |
| 181 | have hab : -j / 4 ≤ -j / 5 := by linarith [p.j_pos] |
| 182 | obtain ⟨η₀, hη₀, hz⟩ := |
| 183 | intermediate_value_Ioo (f := H h j) hab (H_contDiff h j).continuous.continuousOn |
| 184 | (show (0 : ℝ) ∈ Ioo (H h j (-j / 4)) (H h j (-j / 5)) from |
| 185 | ⟨H_left_neg p, H_right_pos p⟩) |
| 186 | have hI : η₀ ∈ Icc (-1 : ℝ) 1 := by |
| 187 | constructor <;> linarith [hη₀.1, hη₀.2, p.j_le, p.j_pos] |
| 188 | exact ⟨η₀, hη₀, hz, fun η hη hzero => root_unique p hη hI hzero hz⟩ |
| 189 | |
| 190 | /-- Real pressure hypotheses provided by the separately constructed datum. |
| 191 | The derivative-sign condition is weak, so zero derivative is permitted. -/ |
| 192 | structure PressureData (P : ℝ → ℝ) : Prop where |
| 193 | smooth : ContDiff ℝ ∞ P |
| 194 | negative : ∀ η ∈ Icc (-1 : ℝ) 1, P η ≤ -1 |
| 195 | derivative_sign : ∀ η ∈ Icc (-1 : ℝ) 1, 0 ≤ η * deriv P η |
| 196 | |
| 197 | theorem PressureData.deriv_nonpos {P : ℝ → ℝ} (pP : PressureData P) |
| 198 | {η : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) (hn : η < 0) : deriv P η ≤ 0 := by |
| 199 | by_contra hp |
| 200 | have hm := mul_neg_of_neg_of_pos hn (lt_of_not_ge hp) |
| 201 | exact (not_lt_of_ge (pP.derivative_sign η hη)) hm |
| 202 | |
| 203 | /-- A quantitative version of the crucial nonzero-root assertion: |
| 204 | pressure at most minus one is already sufficient. -/ |
| 205 | theorem Z_at_root_lower {h j η : ℝ} {P : ℝ → ℝ} (p : SmallParameters h j) |
| 206 | (hη : η ∈ Ioo (-j / 4) (-j / 5)) (hz : H h j η = 0) |
| 207 | (hP : P η ≤ -1) (hP' : deriv P η ≤ 0) : j / 5 < Z h j P η := by |
| 208 | have hηn : η < 0 := by linarith [hη.2, p.j_pos] |
| 209 | have hI : η ∈ Icc (-1 : ℝ) 1 := by |
| 210 | constructor <;> linarith [hη.1, hη.2, p.j_pos, p.j_le] |
| 211 | have hU : 0 < U j η := by dsimp [U]; linarith [hη.1] |
| 212 | have hUj : U j η < j / 5 := by dsimp [U]; linarith [hη.2] |
| 213 | have hrU : -η * U j η ≤ U j η := by |
| 214 | simpa using mul_le_mul_of_nonneg_right (show -η ≤ 1 by linarith [hI.1]) hU.le |
| 215 | have hfactor : 1 - 2 * η * U j η ≤ 2 := by nlinarith [p.j_le] |
| 216 | have hadverse : (1 - 2 * η * U j η) * U j η < 2 * j / 5 := |
| 217 | lt_of_le_of_lt (mul_le_mul_of_nonneg_right hfactor hU.le) (by linarith) |
| 218 | have hpressure := mul_le_mul_of_nonpos_left hP hηn.le |
| 219 | have hcore : 2 * j / 5 < -(1 - 2 * η * U j η) * U j η + 4 * η * P η := by |
| 220 | nlinarith [hη.2] |
| 221 | have hderiv : d η * deriv P η ≤ 0 := |
| 222 | mul_nonpos_of_nonneg_of_nonpos (d_nonneg hI) hP' |
| 223 | calc |
| 224 | j / 5 ≤ A h * (2 * j / 5) := by |
| 225 | nlinarith [mul_nonneg (show 0 ≤ A h - 1 / 2 by linarith [(A_bounds p).1]) p.j_pos.le] |
| 226 | _ < A h * (-(1 - 2 * η * U j η) * U j η + 4 * η * P η) := |
| 227 | mul_lt_mul_of_pos_left hcore (A_pos p) |
| 228 | _ ≤ Z h j P η := by |
| 229 | unfold Z |
| 230 | rw [hz] |
| 231 | nlinarith |
| 232 | |
| 233 | theorem Z_continuous (h j : ℝ) {P : ℝ → ℝ} (hP : ContDiff ℝ ∞ P) : |
| 234 | Continuous (Z h j P) := by |
| 235 | have hc : Continuous P := hP.continuous |
| 236 | have hd : Continuous (deriv P) := hP.continuous_deriv |
| 237 | (WithTop.coe_le_coe.mpr (le_top : (1 : ℕ∞) ≤ ⊤)) |
| 238 | unfold Z H U d |
| 239 | fun_prop |
| 240 | |
| 241 | /-- The true fixed data have a unique negative root at which `Z` is bounded |
| 242 | strictly away from zero. No root property is an input hypothesis. -/ |
| 243 | theorem exists_root_with_positive_Z {h j : ℝ} {P : ℝ → ℝ} |
| 244 | (p : SmallParameters h j) (pP : PressureData P) : |
| 245 | ∃ η₀ : ℝ, η₀ ∈ Ioo (-j / 4) (-j / 5) ∧ H h j η₀ = 0 ∧ |
| 246 | j / 5 < Z h j P η₀ ∧ |
| 247 | ∀ η ∈ Icc (-1 : ℝ) 1, H h j η = 0 → η = η₀ := by |
| 248 | obtain ⟨η₀, hη₀, hz, huniq⟩ := exists_unique_root p |
| 249 | have hI : η₀ ∈ Icc (-1 : ℝ) 1 := by |
| 250 | constructor <;> linarith [hη₀.1, hη₀.2, p.j_pos, p.j_le] |
| 251 | have hn : η₀ < 0 := by linarith [hη₀.2, p.j_pos] |
| 252 | exact ⟨η₀, hη₀, hz, Z_at_root_lower p hη₀ hz (pP.negative η₀ hI) |
| 253 | (pP.deriv_nonpos hI hn), huniq⟩ |
| 254 | |
| 255 | /-- On the actual compact low-`Z` set, `H²` has a strictly positive uniform |
| 256 | minimum. The threshold is the explicit choice `δ_* = j/10`. -/ |
| 257 | theorem low_Z_has_H_margin {h j : ℝ} {P : ℝ → ℝ} |
| 258 | (p : SmallParameters h j) (pP : PressureData P) : |
| 259 | ∃ m : ℝ, 0 < m ∧ ∀ η ∈ Icc (-1 : ℝ) 1, |
| 260 | |Z h j P η| ≤ j / 10 → m ≤ (H h j η) ^ 2 := by |
| 261 | obtain ⟨η₀, hη₀, hz, hZpos, huniq⟩ := exists_root_with_positive_Z p pP |
| 262 | let K : Set ℝ := Icc (-1) 1 ∩ {η | |Z h j P η| ≤ j / 10} |
| 263 | have hK : IsCompact K := isCompact_Icc.inter_right |
| 264 | (isClosed_le (Z_continuous h j pP.smooth).abs continuous_const) |
| 265 | have hnonzero : ∀ η ∈ K, H h j η ≠ 0 := by |
| 266 | intro η hη hzero |
| 267 | have heq := huniq η hη.1 hzero |
| 268 | have hbound : Z h j P η ≤ j / 10 := (le_abs_self _).trans hη.2 |
| 269 | rw [heq] at hbound |
| 270 | linarith [p.j_pos] |
| 271 | have hpositive : ∀ η ∈ K, 0 < (H h j η) ^ 2 := |
| 272 | fun η hη => sq_pos_of_ne_zero (hnonzero η hη) |
| 273 | obtain ⟨m, hm, hbound⟩ := hK.exists_forall_le' |
| 274 | ((H_contDiff h j).continuous.pow 2).continuousOn hpositive |
| 275 | exact ⟨m, hm, fun η hη hZ => hbound η ⟨hη, hZ⟩⟩ |
| 276 | |
| 277 | theorem chi_contDiff (h j : ℝ) {σ : ℝ} (hσ : 0 < σ) : |
| 278 | ContDiff ℝ ∞ (chi h j σ) := by |
| 279 | unfold chi |
| 280 | apply ((H_contDiff h j).pow 2).div (((H_contDiff h j).pow 2).add contDiff_const) |
| 281 | intro η |
| 282 | exact ne_of_gt (add_pos_of_nonneg_of_pos (sq_nonneg _) (sq_pos_of_pos hσ)) |
| 283 | |
| 284 | theorem chi_bounds (h j : ℝ) {σ : ℝ} (hσ : 0 < σ) (η : ℝ) : |
| 285 | 0 ≤ chi h j σ η ∧ chi h j σ η < 1 := by |
| 286 | have hsq : 0 < σ ^ 2 := sq_pos_of_pos hσ |
| 287 | have hden : 0 < (H h j η) ^ 2 + σ ^ 2 := |
| 288 | add_pos_of_nonneg_of_pos (sq_nonneg _) hsq |
| 289 | constructor |
| 290 | · exact div_nonneg (sq_nonneg _) hden.le |
| 291 | · exact (div_lt_one hden).mpr (lt_add_of_pos_right _ hsq) |
| 292 | |
| 293 | /-- Construct the cutoff scale after the root-separation proof. The proof |
| 294 | chooses `σ_* = sqrt(m)/20` from the actual compact minimum bound. -/ |
| 295 | theorem exists_sigma {h j : ℝ} {P : ℝ → ℝ} |
| 296 | (p : SmallParameters h j) (pP : PressureData P) : |
| 297 | ∃ σ : ℝ, 0 < σ ∧ ∀ η ∈ Icc (-1 : ℝ) 1, |
| 298 | |Z h j P η| ≤ j / 10 → 99 / 100 < chi h j σ η := by |
| 299 | obtain ⟨m, hm, hbound⟩ := low_Z_has_H_margin p pP |
| 300 | let σ : ℝ := Real.sqrt m / 20 |
| 301 | have hσ : 0 < σ := div_pos (Real.sqrt_pos.mpr hm) (by norm_num) |
| 302 | have hsq : σ ^ 2 = m / 400 := by |
| 303 | dsimp [σ] |
| 304 | rw [div_pow, Real.sq_sqrt hm.le] |
| 305 | norm_num |
| 306 | refine ⟨σ, hσ, ?_⟩ |
| 307 | intro η hη hZ |
| 308 | have hH := hbound η hη hZ |
| 309 | have hden : 0 < (H h j η) ^ 2 + σ ^ 2 := by nlinarith [sq_nonneg σ] |
| 310 | unfold chi |
| 311 | apply (lt_div_iff₀ hden).mpr |
| 312 | nlinarith |
| 313 | |
| 314 | /-- The requested fixed positive choices, with no input separation premise. -/ |
| 315 | theorem exists_cutoff_parameters {h j : ℝ} {P : ℝ → ℝ} |
| 316 | (p : SmallParameters h j) (pP : PressureData P) : |
| 317 | ∃ δ σ : ℝ, 0 < δ ∧ 0 < σ ∧ |
| 318 | (∀ η ∈ Icc (-1 : ℝ) 1, |Z h j P η| ≤ δ → 99 / 100 < chi h j σ η) ∧ |
| 319 | ContDiff ℝ ∞ (chi h j σ) := by |
| 320 | obtain ⟨σ, hσ, hcut⟩ := exists_sigma p pP |
| 321 | exact ⟨j / 10, σ, div_pos p.j_pos (by norm_num), hσ, hcut, chi_contDiff h j hσ⟩ |
| 322 | |
| 323 | /-- The actual integral pressure datum satisfies the real axis hypotheses. |
| 324 | The ideal-prefix amplitude `B ≥ 2` suffices uniformly on `[-1,1]`. -/ |
| 325 | theorem pressureData_of_ideal_prefix {g a : ℝ → ℝ} {cap B : ℝ} |
| 326 | (hp : PressureDatum.Admissible g a cap) (hB : 2 ≤ B) |
| 327 | (hg : ∀ y ≤ 0, g y = B ^ 2 * Real.exp ((1 / 5 : ℝ) * y)) |
| 328 | (ha : ∀ y ≤ 0, a y = 1) : |
| 329 | PressureData (PressureDatum.pressure g a) := by |
| 330 | have hBpos : 0 < B := by linarith |
| 331 | have hmass := PressureDatum.exponent_mass_pos_of_ideal_prefix hp hBpos hg ha |
| 332 | refine ⟨PressureDatum.pressure_contDiff hp, ?_, ?_⟩ |
| 333 | · intro η hη |
| 334 | have hηsq : η ^ 2 ≤ 1 := by |
| 335 | have hd := d_nonneg hη |
| 336 | dsimp [d] at hd |
| 337 | linarith |
| 338 | have hden : 0 < 1 + η ^ 2 := by positivity |
| 339 | have hi : 1 / 2 ≤ (1 + η ^ 2)⁻¹ := by |
| 340 | rw [← one_div] |
| 341 | apply (le_div_iff₀ hden).mpr |
| 342 | linarith |
| 343 | have hisq : (1 / 4 : ℝ) ≤ ((1 + η ^ 2)⁻¹) ^ 2 := by |
| 344 | nlinarith [sq_nonneg ((1 + η ^ 2)⁻¹ - 1 / 2)] |
| 345 | have hBsq : (4 : ℝ) ≤ B ^ 2 := by nlinarith |
| 346 | have hprod : (1 : ℝ) ≤ B ^ 2 * ((1 + η ^ 2)⁻¹) ^ 2 := by |
| 347 | have hm := mul_le_mul hBsq hisq (by norm_num : (0 : ℝ) ≤ 1 / 4) (sq_nonneg B) |
| 348 | nlinarith |
| 349 | have hpressure := PressureDatum.pressure_le_of_ideal_prefix hp hg ha η |
| 350 | nlinarith |
| 351 | · intro η hη |
| 352 | rcases lt_trichotomy η 0 with hn | rfl | hpη |
| 353 | · exact (mul_pos_of_neg_of_neg hn (PressureDatum.deriv_pressure_neg hp hmass hn)).le |
| 354 | · simp |
| 355 | · exact (mul_pos hpη (PressureDatum.deriv_pressure_pos hp hmass hpη)).le |
| 356 | |
| 357 | /-- End-to-end real cutoff construction from the actual weighted pressure |
| 358 | integral and its ideal prefix, rather than assumed pressure conclusions. -/ |
| 359 | theorem ideal_prefix_cutoff_parameters {h j : ℝ} (p : SmallParameters h j) |
| 360 | {g a : ℝ → ℝ} {cap B : ℝ} |
| 361 | (hp : PressureDatum.Admissible g a cap) (hB : 2 ≤ B) |
| 362 | (hg : ∀ y ≤ 0, g y = B ^ 2 * Real.exp ((1 / 5 : ℝ) * y)) |
| 363 | (ha : ∀ y ≤ 0, a y = 1) : |
| 364 | ∃ δ σ : ℝ, 0 < δ ∧ 0 < σ ∧ |
| 365 | (∀ η ∈ Icc (-1 : ℝ) 1, |
| 366 | |Z h j (PressureDatum.pressure g a) η| ≤ δ → 99 / 100 < chi h j σ η) ∧ |
| 367 | ContDiff ℝ ∞ (chi h j σ) := |
| 368 | exists_cutoff_parameters p (pressureData_of_ideal_prefix hp hB hg ha) |
| 369 | |
| 370 | theorem ideal_prefix_root_positive {h j : ℝ} (p : SmallParameters h j) |
| 371 | {g a : ℝ → ℝ} {cap B : ℝ} |
| 372 | (hp : PressureDatum.Admissible g a cap) (hB : 2 ≤ B) |
| 373 | (hg : ∀ y ≤ 0, g y = B ^ 2 * Real.exp ((1 / 5 : ℝ) * y)) |
| 374 | (ha : ∀ y ≤ 0, a y = 1) : |
| 375 | ∃ η₀ : ℝ, η₀ ∈ Ioo (-j / 4) (-j / 5) ∧ H h j η₀ = 0 ∧ |
| 376 | j / 5 < Z h j (PressureDatum.pressure g a) η₀ ∧ |
| 377 | ∀ η ∈ Icc (-1 : ℝ) 1, H h j η = 0 → η = η₀ := |
| 378 | exists_root_with_positive_Z p (pressureData_of_ideal_prefix hp hB hg ha) |
| 379 | |
| 380 | end NavierStokes.NaturalAxisData |