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

perf(NavierStokes/Axis): 8 files cheaper to elaborate (−3.7%, measured) #560
Merged
+1 −1 NavierStokes/AxisContraction.lean View file
| @@ -279,7 +279,7 @@ theorem exists_fixedPoint_of_controlled [CompleteSpace E] | ||
| 279 | 279 | have h := hdiff hym hx |
| 280 | 280 | change ‖F y - F x‖ ≤ (1 / 2 : ℝ) * ‖y - x‖ at h |
| 281 | 281 | rw [show F y = y from hyfix, hfix.eq] at h |
| 282 | - have : ‖y - x‖ = 0 := by nlinarith [norm_nonneg (y - x)] | |
| 282 | + have : ‖y - x‖ = 0 := by linarith [norm_nonneg (y - x)] | |
| 283 | 283 | exact sub_eq_zero.mp (norm_eq_zero.mp this) |
| 284 | 284 | |
| 285 | 285 | /-- Actual bounded coefficient operators, later instantiated by AxisOperators. |
+4 −4 NavierStokes/AxisHolomorphic.lean View file
| @@ -87,7 +87,7 @@ theorem term_factorial_bound (I : Window) {ε R s : ℝ} (hε : 0 < ε) | ||
| 87 | 87 | ((1 / (1 - s) ^ (m + 1)) * (R / 20 / s) ^ n) := by |
| 88 | 88 | gcongr |
| 89 | 89 | _ = _ := by |
| 90 | - simp only [mul_inv_rev, mul_pow, pow_succ, div_eq_mul_inv, mul_inv_rev] | |
| 90 | + simp only [mul_inv_rev, pow_succ, div_eq_mul_inv, mul_inv_rev] | |
| 91 | 91 | ring |
| 92 | 92 | |
| 93 | 93 | /-- Uniform genuine factorial bounds for all evaluated parameter derivatives. |
| @@ -202,7 +202,7 @@ theorem verticalTerm_hasFDerivAt {c : ℕ → ℝ → ℝ} {z : ℂ} (m : ℕ) | ||
| 202 | 202 | cases m with |
| 203 | 203 | | zero => simp [verticalX, verticalY, verticalTerm, complexLinearForm, mul_comm] |
| 204 | 204 | | succ m => |
| 205 | - simp [verticalX, verticalY, verticalTerm, complexLinearForm, pow_succ] | |
| 205 | + simp [verticalX, verticalTerm, complexLinearForm, pow_succ] | |
| 206 | 206 | ring |
| 207 | 207 | |
| 208 | 208 | theorem verticalTerm_bound {c : ℕ → ℝ → ℝ} {C a : ℝ} (hC : 0 ≤ C) (ha : 0 < a) |
| @@ -247,7 +247,7 @@ theorem verticalY_bound {c : ℕ → ℝ → ℝ} {C a : ℝ} (hC : 0 ≤ C) (ha | ||
| 247 | 247 | simp only [verticalY_succ, norm_mul, Complex.norm_I, one_mul] |
| 248 | 248 | refine (verticalX_bound hC ha hz hc m).trans ?_ |
| 249 | 249 | simp only [Nat.cast_add, Nat.cast_one, pow_succ] |
| 250 | - nlinarith [mul_nonneg (div_nonneg hC ha.le) (pow_nonneg (by norm_num : (0 : ℝ) ≤ 1 / 2) m)] | |
| 250 | + linarith [mul_nonneg (div_nonneg hC ha.le) (pow_nonneg (by norm_num : (0 : ℝ) ≤ 1 / 2) m)] | |
| 251 | 251 | |
| 252 | 252 | theorem summable_verticalTerm {c : ℕ → ℝ → ℝ} {C a : ℝ} (hC : 0 ≤ C) (ha : 0 < a) |
| 253 | 253 | {z : ℂ} (hz : |z.im| ≤ a / 2) |
| @@ -296,7 +296,7 @@ theorem verticalExtension_hasDerivAt (I : Window) {c : ℕ → ℝ → ℝ} {C a | ||
| 296 | 296 | have hC' : 0 ≤ C / a := div_nonneg hC ha.le |
| 297 | 297 | have hgeom := (summable_geometricMoment (by norm_num : (0 : ℝ) < 1 / 2) |
| 298 | 298 | (by norm_num : (1 / 2 : ℝ) < 1) 1).mul_left (C / a) |
| 299 | - simp only [pow_one, ← mul_assoc] at hgeom | |
| 299 | + simp only [pow_one] at hgeom | |
| 300 | 300 | have hu := hgeom.mul_left 3 |
| 301 | 301 | have hX := summable_verticalX hC ha hz.2.le (fun m => hbound m z.re hz.1) |
| 302 | 302 | have hY := summable_verticalY hC ha hz.2.le (fun m => hbound m z.re hz.1) |
+1 −1 NavierStokes/AxisPreservation.lean View file
| @@ -57,7 +57,7 @@ theorem physicalQ_origin {h : ℝ} (hh : 0 < h) (hh1 : h < 1 / 2) | ||
| 57 | 57 | change SimilarityCoordinates.coordinateQ (2 * h) (1 - t, 0) = 1 - t |
| 58 | 58 | have hq := SimilarityCoordinates.coordinateQ_spec |
| 59 | 59 | (by linarith : 0 < 2 * h) (by linarith : 2 * h < 1) |
| 60 | - (p := (1 - t, 0)) (by simpa using sub_pos.mpr ht) | |
| 60 | + (p := (1 - t, 0)) (sub_pos.mpr ht) | |
| 61 | 61 | simpa only [SimilarityCoordinates.forwardScalar, zero_pow (by norm_num : 2 ≠ 0), |
| 62 | 62 | zero_mul, sub_zero] using hq.2 |
| 63 | 63 | |
+2 −2 NavierStokes/AxisProfile.lean View file
| @@ -59,7 +59,7 @@ theorem cubicLower_gt_quarter (t : ℝ) (ht : t ≤ 41 / 20) : | ||
| 59 | 59 | ring |
| 60 | 60 | norm_num [cubicLower] at hidentity |
| 61 | 61 | unfold cubicLower |
| 62 | - nlinarith | |
| 62 | + linarith | |
| 63 | 63 | |
| 64 | 64 | /-- A direct rational verification of the numerical strict inequality |
| 65 | 65 | used for the initial cone margin. -/ |
| @@ -74,7 +74,7 @@ theorem quarticUpper_lt_neg_eighteen_hundredths | ||
| 74 | 74 | have hfour := pow_le_pow_left₀ ht hhi 4 |
| 75 | 75 | norm_num at hsquare hcube hfour |
| 76 | 76 | unfold quarticUpper |
| 77 | - nlinarith | |
| 77 | + linarith | |
| 78 | 78 | |
| 79 | 79 | /-- The leading axial profile displayed in the scaled construction. -/ |
| 80 | 80 | def leadingAxial (Z L Y : ℝ) : ℝ := -Y * Z / (2 * L) |
+4 −4 NavierStokes/AxisReference.lean View file
| @@ -101,7 +101,7 @@ theorem reference_coefficient (I : Window) {ε : ℝ} (hε : 0 < ε) | ||
| 101 | 101 | have hn1 : (n : ℝ) + 1 ≠ 0 := by positivity |
| 102 | 102 | have hn2 : (n : ℝ) + 2 ≠ 0 := by positivity |
| 103 | 103 | simp only [Nat.factorial_succ, Nat.cast_mul, Nat.cast_add, Nat.cast_one, |
| 104 | - radialDivisor, Nat.cast_ofNat, pow_succ] | |
| 104 | + radialDivisor, Nat.cast_ofNat] | |
| 105 | 105 | field_simp ; ring |
| 106 | 106 | |
| 107 | 107 | /-- Evaluation of the actual coefficient-space reference equals the |
| @@ -179,7 +179,7 @@ theorem log_slope_stability {v₀ v d₀ d : ℝ} | ||
| 179 | 179 | rw [lt_div_iff₀ hv₀pos] at hslope |
| 180 | 180 | have he0 := (abs_le.mp hvalue).2 |
| 181 | 181 | have he1 := (abs_le.mp hderiv).2 |
| 182 | - nlinarith | |
| 182 | + linarith | |
| 183 | 183 | |
| 184 | 184 | /-- A single lower bound on the scale makes both evaluation constants |
| 185 | 185 | small enough for positivity and logarithmic-slope stability. -/ |
| @@ -188,9 +188,9 @@ theorem scaled_error_le {C C₀ C₁ K Λ : ℝ} | ||
| 188 | 188 | (hK : 0 ≤ K) (hΛ : 1 + 500 * (C₀ + C₁) * K ≤ Λ) : |
| 189 | 189 | C * (K / (2 * Λ)) ≤ 1 / 1000 := by |
| 190 | 190 | have hsum : 0 ≤ C₀ + C₁ := add_nonneg hC₀ hC₁ |
| 191 | - have hΛpos : 0 < Λ := by nlinarith [mul_nonneg hsum hK] | |
| 191 | + have hΛpos : 0 < Λ := by linarith [mul_nonneg hsum hK] | |
| 192 | 192 | rw [← mul_div_assoc, div_le_iff₀ (by positivity : 0 < 2 * Λ)] |
| 193 | - nlinarith [mul_le_mul_of_nonneg_right hCsum hK] | |
| 193 | + linarith [mul_le_mul_of_nonneg_right hCsum hK] | |
| 194 | 194 | |
| 195 | 195 | /-- This explicit threshold controls both values and first radial derivatives |
| 196 | 196 | on `|Y|≤5`, uniformly over the parameter interval. -/ |
+1 −1 NavierStokes/AxisResolvent.lean View file
| @@ -60,7 +60,7 @@ theorem factorialMajorant_succ (K : ℝ) (k : ℕ) : | ||
| 60 | 60 | have h₁ : (k : ℝ) + 1 ≠ 0 := by positivity |
| 61 | 61 | have h₂ : (k : ℝ) + 2 ≠ 0 := by positivity |
| 62 | 62 | simp only [factorialMajorant, Nat.factorial_succ, Nat.cast_mul, Nat.cast_add, |
| 63 | - Nat.cast_one, pow_succ] | |
| 63 | + Nat.cast_one] | |
| 64 | 64 | field_simp ; ring |
| 65 | 65 | |
| 66 | 66 | section RadialJets |
+4 −4 NavierStokes/AxisSeries.lean View file
| @@ -127,7 +127,7 @@ theorem term_contiguous (k n : ℕ) (t : ℝ) : | ||
| 127 | 127 | simp only [term, show n + 1 + k = (n + k) + 1 by omega, |
| 128 | 128 | show n + 1 + (k + 1) = (n + k) + 1 + 1 by omega, |
| 129 | 129 | show n + (k + 2) = (n + k) + 1 + 1 by omega, |
| 130 | - Nat.factorial_succ, Nat.cast_mul, Nat.cast_add, Nat.cast_one, pow_succ] | |
| 130 | + Nat.factorial_succ, Nat.cast_mul, Nat.cast_add, Nat.cast_one] | |
| 131 | 131 | field_simp; ring |
| 132 | 132 | |
| 133 | 133 | theorem factorial_reciprocal (k : ℕ) : |
| @@ -265,7 +265,7 @@ theorem profile_gt_quarter (χ Y : ℝ) (hχ0 : 0 ≤ χ) (hχ1 : χ ≤ 1) | ||
| 265 | 265 | (hY0 : 0 ≤ Y) (hY1 : Y ≤ 41 / 10) : 1 / 4 < profile χ Y := by |
| 266 | 266 | apply bessel_one_gt_quarter |
| 267 | 267 | · positivity |
| 268 | - · nlinarith [mul_nonneg (sub_nonneg.mpr hχ1) hY0] | |
| 268 | + · linarith [mul_nonneg (sub_nonneg.mpr hχ1) hY0] | |
| 269 | 269 | |
| 270 | 270 | /-- A convergent alternating tail beginning with its positive sign has |
| 271 | 271 | nonnegative total, for every offset starting after at least one term. -/ |
| @@ -279,7 +279,7 @@ theorem alternating_tail_nonneg (k j : ℕ) (hj : 1 ≤ j) | ||
| 279 | 279 | simp |
| 280 | 280 | have hb := Antitone.alternating_series_le_tendsto hs.hasSum.tendsto_sum_nat |
| 281 | 281 | (magnitude_tail_antitone k j hj t ht0 ht) 0 |
| 282 | - simpa using hb | |
| 282 | + exact hb | |
| 283 | 283 | |
| 284 | 284 | /-- Every odd-length truncation with at least one term is an upper bound |
| 285 | 285 | on the actual series on this interval. -/ |
| @@ -335,7 +335,7 @@ theorem bessel_one_log_slope_gt (t : ℝ) (ht0 : 99 / 50 ≤ t) (ht1 : t ≤ 2) | ||
| 335 | 335 | have hsign := bessel_zero_lt_neg_eighteen_hundredths t ht0 ht1 |
| 336 | 336 | rw [← bessel_one_add_mul_deriv t] at hsign |
| 337 | 337 | apply (lt_div_iff₀ hpos).mpr |
| 338 | - nlinarith | |
| 338 | + linarith | |
| 339 | 339 | |
| 340 | 340 | /-- The exact leading profile has the stated `2.36` slope margin at `Y=4` |
| 341 | 341 | when `χ≥0.99`. No perturbation estimate is asserted. -/ |
+3 −3 NavierStokes/AxisWeightEstimates.lean View file
| @@ -60,7 +60,7 @@ theorem squareDecay_succ_le (n : ℕ) : squareDecay (n + 1) ≤ squareDecay n := | ||
| 60 | 60 | unfold squareDecay |
| 61 | 61 | apply one_div_le_one_div_of_le (by positivity) |
| 62 | 62 | push_cast |
| 63 | - nlinarith [show (0 : ℝ) ≤ n by positivity] | |
| 63 | + linarith [show (0 : ℝ) ≤ n by positivity] | |
| 64 | 64 | |
| 65 | 65 | theorem squareDecay_le_four_succ (n : ℕ) : squareDecay n ≤ 4 * squareDecay (n + 1) := by |
| 66 | 66 | unfold squareDecay |
| @@ -92,7 +92,7 @@ theorem sum_squareDecay_le (n : ℕ) : | ||
| 92 | 92 | have hn : (0 : ℝ) ≤ n := by positivity |
| 93 | 93 | have htel := reciprocal_square_telescope ((n : ℝ) + 2) (by linarith) |
| 94 | 94 | have hid : squareDecay (n + 1) = 1 / ((n : ℝ) + 2) ^ 2 := by |
| 95 | - simp [squareDecay, Nat.cast_add, Nat.cast_one] | |
| 95 | + simp [squareDecay, Nat.cast_one] | |
| 96 | 96 | ring |
| 97 | 97 | rw [hid] |
| 98 | 98 | push_cast |
| @@ -114,7 +114,7 @@ theorem squareDecay_product_le (i j : ℕ) : | ||
| 114 | 114 | have hpoly : (((i + j : ℕ) : ℝ) + 1) ^ 2 ≤ |
| 115 | 115 | 2 * (((i : ℝ) + 1) ^ 2 + ((j : ℝ) + 1) ^ 2) := by |
| 116 | 116 | push_cast |
| 117 | - nlinarith [sq_nonneg ((i : ℝ) - (j : ℝ))] | |
| 117 | + linarith [sq_nonneg ((i : ℝ) - (j : ℝ))] | |
| 118 | 118 | have hh := div_le_div_of_nonneg_right hpoly (le_of_lt |
| 119 | 119 | (mul_pos (mul_pos (sq_pos_of_pos hi) (sq_pos_of_pos hj)) (sq_pos_of_pos hij))) |
| 120 | 120 | convert! hh using 1 <;> unfold squareDecay <;> |
+16 −0 routes/s2-ns-axis-1/README.md added View file
| @@ -0,0 +1,16 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-axis-1 | |
| 6 | + | |
| 7 | +One unit of S-2: the family `NavierStokes/Axis*`, 8 files made cheaper to elaborate by edits inside proofs only | |
| 8 | +(20 lines out, 20 in). A `simp` argument list loses entries that do not change its goal; `simpa` becomes the term or | |
| 9 | +the weaker tactic that closes the goal; `nlinarith` becomes `linarith`; one `simpa using` becomes `exact`. No | |
| 10 | +statement, import line or docstring changes, and no `maxHeartbeats`. The numbers before and after are in the pull | |
| 11 | +request, with how they were taken. | |
| 12 | + | |
| 13 | +## Next | |
| 14 | + | |
| 15 | +Push, open the pull request against `main` (`Part of #11`), and leave it to `challenge` and `build`; the maintainer | |
| 16 | +agent decides. Nothing here counts as progress on the problem itself. | |