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(Euler/Euler): 1 file cheaper to elaborate (−10.6%, measured)
Browse filesCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
ci/docs
Details
+38 −38 Euler/EulerProof.lean View file
| @@ -7495,7 +7495,7 @@ theorem select_endpoint | ||
| 7495 | 7495 | (a - cpp) * yp + (b - cpq) * yq ≤ 0 ∧ |
| 7496 | 7496 | |yp| + |yq| ≤ 8 * (C + 1) := by |
| 7497 | 7497 | have hεsmall : ε ≤ 1 / 16 := by |
| 7498 | - nlinarith [mul_nonneg (show 0 ≤ C by linarith) hε] | |
| 7498 | + linarith [mul_nonneg (show 0 ≤ C by linarith) hε] | |
| 7499 | 7499 | have hu : 0 < a - cpp := by linarith |
| 7500 | 7500 | have huC : a - cpp ≤ C + ε := by |
| 7501 | 7501 | have := (abs_le.mp hppε).1 |
| @@ -7529,18 +7529,18 @@ theorem select_endpoint | ||
| 7529 | 7529 | have hbpos : 0 ≤ b := by linarith |
| 7530 | 7530 | have hb_bound : b ≤ C := (abs_le.mp hbC).2 |
| 7531 | 7531 | have hud : b ^ 2 ≤ (a - cpp) * d := by |
| 7532 | - nlinarith [mul_nonneg (show 0 ≤ -cpp by linarith) hd] | |
| 7532 | + linarith [mul_nonneg (show 0 ≤ -cpp by linarith) hd] | |
| 7533 | 7533 | have hucqq : (a - cpp) * cqq ≤ (C + ε) * ε := |
| 7534 | 7534 | (mul_le_mul_of_nonneg_left (abs_le.mp hqq).2 hu.le).trans |
| 7535 | 7535 | (mul_le_mul_of_nonneg_right huC hε) |
| 7536 | 7536 | have hbpq : -(C * ε) ≤ b * cpq := by |
| 7537 | 7537 | have h₁ := mul_le_mul_of_nonneg_left (abs_le.mp hpq).1 hbpos |
| 7538 | 7538 | have h₂ := mul_le_mul_of_nonneg_right hb_bound hε |
| 7539 | - nlinarith | |
| 7539 | + linarith | |
| 7540 | 7540 | have hbqp : -(C * ε) ≤ b * cqp := by |
| 7541 | 7541 | have h₁ := mul_le_mul_of_nonneg_left (abs_le.mp hqp).1 hbpos |
| 7542 | 7542 | have h₂ := mul_le_mul_of_nonneg_right hb_bound hε |
| 7543 | - nlinarith | |
| 7543 | + linarith | |
| 7544 | 7544 | have hprod : cqp * cpq ≤ ε ^ 2 := by |
| 7545 | 7545 | calc |
| 7546 | 7546 | cqp * cpq ≤ |cqp * cpq| := le_abs_self _ |
| @@ -7551,7 +7551,7 @@ theorem select_endpoint | ||
| 7551 | 7551 | have hpq_upper := (abs_le.mp hpq).2 |
| 7552 | 7552 | have hεsq : ε ^ 2 ≤ ε := by nlinarith |
| 7553 | 7553 | dsimp [Δ] |
| 7554 | - nlinarith | |
| 7554 | + linarith | |
| 7555 | 7555 | have hΔpos : 0 < Δ := by linarith |
| 7556 | 7556 | have hΔne : Δ ≠ 0 := ne_of_gt hΔpos |
| 7557 | 7557 | have hnum : |b - cpq| ≤ C + ε := |
| @@ -9556,7 +9556,7 @@ theorem shifted_weighted_inverse (ρ Rc M : ℝ) (hρ : 0 < ρ) (hRc : 0 ≤ Rc) | ||
| 9556 | 9556 | M * ((∑ n ∈ range (N + 1), v n * F n) + |
| 9557 | 9557 | ∑ n ∈ range (N + 1), v n * ∑ l ∈ range n, |
| 9558 | 9558 | (n.choose (l + 1) : ℝ) * A (l + 1) * Z (n - (l + 1))) := by |
| 9559 | - simp only [mul_add, sum_add_distrib, mul_sum, mul_assoc, mul_left_comm, mul_comm] | |
| 9559 | + simp only [mul_add, sum_add_distrib, mul_sum, mul_assoc, mul_left_comm] | |
| 9560 | 9560 | rw [hsumid] at hs |
| 9561 | 9561 | have hzsum : 0 ≤ ∑ n ∈ range (N + 1), v n * Z n := |
| 9562 | 9562 | sum_nonneg (fun n _ => mul_nonneg (hv n) (hZ n)) |
| @@ -10082,7 +10082,7 @@ theorem equation30_log_derivative_upper | ||
| 10082 | 10082 | have hcoef : 0 ≤ 4 * β ^ 2 * t ^ 3 / (1 + (β * t ^ 2) ^ 2) := by positivity |
| 10083 | 10083 | have hlog : 0 ≤ V₁ t / V t := div_nonneg (hp t hti).2 (hp t hti).1.le |
| 10084 | 10084 | dsimp [dl] |
| 10085 | - nlinarith [mul_nonneg hcoef hlog] | |
| 10085 | + linarith [mul_nonneg hcoef hlog] | |
| 10086 | 10086 | |
| 10087 | 10087 | /-- A coarse Riccati upper barrier for the inverted equation. -/ |
| 10088 | 10088 | theorem riccati_le_four |
| @@ -10318,7 +10318,7 @@ theorem inverted_riccati_squared_error | ||
| 10318 | 10318 | have hmulupper : |
| 10319 | 10319 | (4 * ε * (1 - ε * t) ^ 3 / (1 + (1 - ε * t) ^ 4)) * z t ≤ 16 * ε := by |
| 10320 | 10320 | have hm := mul_le_mul hbu (hzfour t hti) (hzn t hti) (show 0 ≤ 4 * ε by positivity) |
| 10321 | - nlinarith | |
| 10321 | + linarith | |
| 10322 | 10322 | have hsquare : (riccatiRoot ε t) ^ 2 = 2 / (1 + (1 - ε * t) ^ 4) := |
| 10323 | 10323 | sq_sqrt (by positivity) |
| 10324 | 10324 | have heq : invertedRiccati ε t (z t) - ((riccatiRoot ε t) ^ 2 - (z t) ^ 2) = |
| @@ -10670,7 +10670,7 @@ theorem equation30_post_inversion_lower | ||
| 10670 | 10670 | rw [hid, hid1] at hp |
| 10671 | 10671 | constructor |
| 10672 | 10672 | · apply (div_le_iff₀ hxpos).mpr |
| 10673 | - nlinarith [hp.1] | |
| 10673 | + linarith [hp.1] | |
| 10674 | 10674 | · exact pos_of_mul_pos_right hp.2.1 hxpos.le |
| 10675 | 10675 | |
| 10676 | 10676 | /-- A solution with the source's initial conditions stays positive for every |
| @@ -10761,7 +10761,7 @@ theorem equation30_zero_slope_prefix_upper | ||
| 10761 | 10761 | nlinarith [mul_nonneg (sq_nonneg ε) (mul_nonneg (sq_nonneg ε) (sq_nonneg t))] |
| 10762 | 10762 | have hsecond := mul_le_mul_of_nonneg_right hc hpt.1.le |
| 10763 | 10763 | have hFn : 0 ≤ (1 + (ε ^ 2 * t ^ 2) ^ 2) * U₁ t := mul_nonneg (by positivity) hpt.2 |
| 10764 | - nlinarith [exp_pos (3 * t)] | |
| 10764 | + linarith [exp_pos (3 * t)] | |
| 10765 | 10765 | intro t ht |
| 10766 | 10766 | have hpt := hp t ht |
| 10767 | 10767 | have hFn : 0 ≤ (1 + (ε ^ 2 * t ^ 2) ^ 2) * U₁ t := mul_nonneg (by positivity) hpt.2 |
| @@ -10882,7 +10882,7 @@ theorem equation30_slope_uniform_lower | ||
| 10882 | 10882 | have hm := mul_le_mul_of_nonneg_left hI hlam |
| 10883 | 10883 | simp only [div_eq_mul_inv] at hc hm ⊢ |
| 10884 | 10884 | nlinarith |
| 10885 | - nlinarith [mul_le_mul_of_nonneg_right hi (hpos t ht0).le] | |
| 10885 | + linarith [mul_le_mul_of_nonneg_right hi (hpos t ht0).le] | |
| 10886 | 10886 | |
| 10887 | 10887 | /-- Before `x=1`, the original scalar solution is nondecreasing. -/ |
| 10888 | 10888 | theorem equation30_prefix_monotone |
| @@ -11077,7 +11077,7 @@ theorem equation30_zero_slope_logderivative_bound | ||
| 11077 | 11077 | nlinarith [mul_nonneg (sq_nonneg ε) (mul_nonneg (sq_nonneg ε) (sq_nonneg t))] |
| 11078 | 11078 | have hcoef : 0 ≤ 4 * (ε ^ 2) ^ 2 * t ^ 3 / (1 + (ε ^ 2 * t ^ 2) ^ 2) := by positivity |
| 11079 | 11079 | rw [hboundary] |
| 11080 | - nlinarith) | |
| 11080 | + linarith) | |
| 11081 | 11081 | exact hfence ⟨hT, le_rfl⟩ |
| 11082 | 11082 | intro t ht |
| 11083 | 11083 | apply abs_le.mpr |
| @@ -11226,7 +11226,7 @@ theorem relative_propagator_bound | ||
| 11226 | 11226 | have hm := mul_le_mul |
| 11227 | 11227 | (mul_le_mul (hD a haI).2 hE (abs_nonneg _) (by positivity)) hJ.2 hJ.1 (by positivity) |
| 11228 | 11228 | have hp := mul_le_mul_of_nonneg_right hpow78 (show 0 ≤ 4 * N by positivity) |
| 11229 | - nlinarith | |
| 11229 | + linarith | |
| 11230 | 11230 | have hval := reduction_of_order_relative hu hv hfu hfv hDc hDne |
| 11231 | 11231 | (fun t ht => ne_of_gt (hupos t ht)) b hbI |
| 11232 | 11232 | change v b = R * (v a + D a * E * J) at hval |
| @@ -11238,7 +11238,7 @@ theorem relative_propagator_bound | ||
| 11238 | 11238 | rw [abs_mul, abs_mul, abs_of_nonneg hDan, abs_of_nonneg hJ.1] at htri |
| 11239 | 11239 | have hn : |v a| ≤ N := by dsimp [N]; linarith [abs_nonneg (v₁ a)] |
| 11240 | 11240 | have hp := mul_le_mul_of_nonneg_right hpow8 hN |
| 11241 | - nlinarith | |
| 11241 | + linarith | |
| 11242 | 11242 | have hq0 : 0 ≤ u a / u b := div_nonneg (hupos a haI).le (hupos b hbI).le |
| 11243 | 11243 | have hq : u a / u b ≤ Θ := (div_le_iff₀ (hupos b hbI)).mpr (hratio b hbI) |
| 11244 | 11244 | have hq2 : (u a / u b) ^ 2 ≤ Θ ^ 2 := (sq_le_sq₀ hq0 hΘ0).mpr hq |
| @@ -11248,10 +11248,10 @@ theorem relative_propagator_bound | ||
| 11248 | 11248 | (mul_le_mul hq2 (hD a haI).2 (le_trans zero_le_one (hD a haI).1) (sq_nonneg Θ)) |
| 11249 | 11249 | hE (abs_nonneg _) (by positivity) |
| 11250 | 11250 | have hp := mul_le_mul_of_nonneg_right hpow68 (show 0 ≤ 4 * N by positivity) |
| 11251 | - nlinarith | |
| 11251 | + linarith | |
| 11252 | 11252 | apply (div_le_iff₀ (lt_of_lt_of_le zero_lt_one (hD b hbI).1)).mpr |
| 11253 | 11253 | have hm := mul_le_mul_of_nonneg_left (hD b hbI).1 (show 0 ≤ 4 * Θ ^ 8 * N by positivity) |
| 11254 | - nlinarith | |
| 11254 | + linarith | |
| 11255 | 11255 | have hder := reduction_of_order_derivative_relative hu hv hfu hfv hDne |
| 11256 | 11256 | (fun t ht => ne_of_gt (hupos t ht)) b hbI |
| 11257 | 11257 | have heq : (u a / u b) * D a * E / D b = R * ((u a / u b) ^ 2 * D a * E / D b) := by |
| @@ -11274,7 +11274,7 @@ theorem relative_propagator_bound | ||
| 11274 | 11274 | (mul_le_mul_of_nonneg_left hsecond hR.le) |
| 11275 | 11275 | change |v b| + |v₁ b| ≤ 20 * Θ ^ 8 * R * N |
| 11276 | 11276 | have hRN : 0 ≤ Θ ^ 8 * R * N := by positivity |
| 11277 | - nlinarith | |
| 11277 | + linarith | |
| 11278 | 11278 | |
| 11279 | 11279 | /-- The ideal scalar propagator has only a polynomial loss relative to the |
| 11280 | 11280 | zero-slope growing solution. This proves the reference propagator estimate |
| @@ -11307,7 +11307,7 @@ theorem equation30_relative_propagator | ||
| 11307 | 11307 | have ht4 : t ^ 4 ≤ Θ ^ 4 := pow_le_pow_left₀ ht0 htΘ 4 |
| 11308 | 11308 | have hΘ4 : 1 ≤ Θ ^ 4 := one_le_pow₀ hΘ |
| 11309 | 11309 | have hm := mul_le_mul heps4 ht4 (by positivity : 0 ≤ t ^ 4) (by norm_num : (0 : ℝ) ≤ 1) |
| 11310 | - constructor <;> nlinarith [sq_nonneg (ε ^ 2 * t ^ 2)] | |
| 11310 | + constructor <;> linarith [sq_nonneg (ε ^ 2 * t ^ 2)] | |
| 11311 | 11311 | · intro t ht |
| 11312 | 11312 | exact hp t (ha.trans ht.1) |
| 11313 | 11313 | · intro t ht |
| @@ -11454,10 +11454,10 @@ theorem ideal_frame_bounds | ||
| 11454 | 11454 | have hUn : 0 ≤ 2 * ε * z * y ^ 3 := by positivity |
| 11455 | 11455 | have hUlocal : 2 * ε * z * y ^ 3 ≤ 8 * ε * y ^ 3 := by |
| 11456 | 11456 | have hm := mul_le_mul_of_nonneg_right hzupper (show 0 ≤ 2 * ε * y ^ 3 by positivity) |
| 11457 | - nlinarith | |
| 11457 | + linarith | |
| 11458 | 11458 | have hUε : 2 * ε * z * y ^ 3 ≤ 8 * ε := by |
| 11459 | 11459 | have hm := mul_le_mul_of_nonneg_left hy3 (show 0 ≤ 8 * ε by positivity) |
| 11460 | - nlinarith | |
| 11460 | + linarith | |
| 11461 | 11461 | have hB : 1 / 2 ≤ idealFrameDenominator ε y z := by |
| 11462 | 11462 | unfold idealFrameDenominator |
| 11463 | 11463 | nlinarith only [hTsmall, hUn] |
| @@ -11480,7 +11480,7 @@ theorem ideal_frame_bounds | ||
| 11480 | 11480 | rw [hNrewrite] |
| 11481 | 11481 | obtain ⟨hl, hu⟩ := abs_le.mp hDerr |
| 11482 | 11482 | apply abs_le.mpr |
| 11483 | - constructor <;> nlinarith only [hl, hu, hTn, hTε, hUn, hUε, hε] | |
| 11483 | + constructor <;> linarith only [hl, hu, hTn, hTε, hUn, hUε, hε] | |
| 11484 | 11484 | have hA : |idealFrameDenominator ε y z / sqrt (1 + y ^ 4) - 1| ≤ |
| 11485 | 11485 | y ^ 4 + ε ^ 2 * y ^ 2 + 8 * ε * y ^ 3 := by |
| 11486 | 11486 | have heq : idealFrameDenominator ε y z / sqrt (1 + y ^ 4) - 1 = |
| @@ -11669,8 +11669,8 @@ theorem forced_variation_of_constants | ||
| 11669 | 11669 | dsimp only |
| 11670 | 11670 | rw [← hWu, ← hWv] |
| 11671 | 11671 | constructor |
| 11672 | - · nlinarith [congrArg (fun r : ℝ => r * Y t) hW] | |
| 11673 | - · nlinarith [congrArg (fun r : ℝ => r * Y₁ t) hW] | |
| 11672 | + · linarith [congrArg (fun r : ℝ => r * Y t) hW] | |
| 11673 | + · linarith [congrArg (fun r : ℝ => r * Y₁ t) hW] | |
| 11674 | 11674 | |
| 11675 | 11675 | /-- First displacement component of the scalar fundamental propagator. -/ |
| 11676 | 11676 | def kernel11 (D u u₁ v v₁ : ℝ → ℝ) (t s : ℝ) : ℝ := |
| @@ -11799,7 +11799,7 @@ theorem equation30_kernel_bound | ||
| 11799 | 11799 | (hfluxU r (hs.trans hr.1)) (hfluxV r (hs.trans hr.1))).2) |
| 11800 | 11800 | constructor |
| 11801 | 11801 | · have hb := hlin (D s * V₁ s) (-(D s * U₁ s)) |
| 11802 | - have hfirst : D s * V₁ s * U s + -(D s * U₁ s) * V s = 1 := by nlinarith [hW] | |
| 11802 | + have hfirst : D s * V₁ s * U s + -(D s * U₁ s) * V s = 1 := by linarith [hW] | |
| 11803 | 11803 | have hsecond : D s * V₁ s * U₁ s + -(D s * U₁ s) * V₁ s = 0 := by ring |
| 11804 | 11804 | rw [hfirst, hsecond] at hb |
| 11805 | 11805 | norm_num at hb |
| @@ -11807,7 +11807,7 @@ theorem equation30_kernel_bound | ||
| 11807 | 11807 | congr 2 <;> dsimp [kernel11, kernel21, D] <;> ring |
| 11808 | 11808 | · have hb := hlin (-(D s * V s)) (D s * U s) |
| 11809 | 11809 | have hfirst : -(D s * V s) * U s + D s * U s * V s = 0 := by ring |
| 11810 | - have hsecond : -(D s * V s) * U₁ s + D s * U s * V₁ s = 1 := by nlinarith [hW] | |
| 11810 | + have hsecond : -(D s * V s) * U₁ s + D s * U s * V₁ s = 1 := by linarith [hW] | |
| 11811 | 11811 | rw [hfirst, hsecond] at hb |
| 11812 | 11812 | norm_num at hb |
| 11813 | 11813 | convert! hb using 1 |
| @@ -12260,7 +12260,7 @@ theorem triangular_ray_kernel_bound | ||
| 12260 | 12260 | have hq := mul_le_mul_of_nonneg_right hcol2 (abs_nonneg q) |
| 12261 | 12261 | have hn := mul_le_mul_of_nonneg_right hcol3 (abs_nonneg n) |
| 12262 | 12262 | unfold norm3 |
| 12263 | - nlinarith | |
| 12263 | + linarith | |
| 12264 | 12264 | |
| 12265 | 12265 | /-- The exact triangular ray equations imply a polynomial Duhamel bound. -/ |
| 12266 | 12266 | theorem triangular_ray_forced_bound |
| @@ -12433,7 +12433,7 @@ theorem triangular_ray_difference_bound | ||
| 12433 | 12433 | have hinit := mul_le_mul_of_nonneg_left hinitial (show 0 ≤ 4 * Θ ^ 2 by positivity) |
| 12434 | 12434 | have herr := herror t ht |
| 12435 | 12435 | simp only [zero_pow (by decide : 2 ≠ 0), mul_zero, sub_zero, add_zero] at herr |
| 12436 | - nlinarith | |
| 12436 | + linarith | |
| 12437 | 12437 | |
| 12438 | 12438 | /-- Entries of the triangular ideal ray generator. -/ |
| 12439 | 12439 | def idealRayEntry (β : ℝ) (i j : Fin 3) : ℝ := |
| @@ -12520,7 +12520,7 @@ theorem ray_closeness_of_coefficient_error | ||
| 12520 | 12520 | have hsm : 4 * Θ ^ 2 * (3 * e) * T ≤ 1 / 2 := by |
| 12521 | 12521 | have ht := mul_le_mul_of_nonneg_left hT (show 0 ≤ 12 * e * Θ ^ 2 by positivity) |
| 12522 | 12522 | have hp := mul_le_mul_of_nonneg_left hpow35 (show 0 ≤ 12 * e by positivity) |
| 12523 | - nlinarith | |
| 12523 | + linarith | |
| 12524 | 12524 | have hdiff := triangular_ray_difference_bound hβ hβupper hΘ hT0 hT |
| 12525 | 12525 | (by positivity : 0 ≤ 3 * e) he hsm hPf hQg hNh hfc hgc hhc hforcing hinitial |
| 12526 | 12526 | intro t ht |
| @@ -12529,13 +12529,13 @@ theorem ray_closeness_of_coefficient_error | ||
| 12529 | 12529 | have h2 := mul_le_mul_of_nonneg_left (show 1 + e ≤ 2 by linarith) |
| 12530 | 12530 | (show 0 ≤ 96 * e * Θ ^ 5 by positivity) |
| 12531 | 12531 | have hp : 0 ≤ e * Θ ^ 5 := by positivity |
| 12532 | - nlinarith [hdiff t ht] | |
| 12532 | + linarith [hdiff t ht] | |
| 12533 | 12533 | refine ⟨hbound, ?_⟩ |
| 12534 | 12534 | have hNabs : |N t - 1| ≤ 200 * e * Θ ^ 5 := by |
| 12535 | 12535 | unfold norm3 at hbound |
| 12536 | 12536 | linarith [abs_nonneg (P t - β * t ^ 2), abs_nonneg (Q t + 2 * β * t)] |
| 12537 | 12537 | have hn := (abs_le.mp hNabs).1 |
| 12538 | - nlinarith | |
| 12538 | + linarith | |
| 12539 | 12539 | |
| 12540 | 12540 | /-- The skew matrix of the moving orthonormal frame in the source. -/ |
| 12541 | 12541 | def frameSkew (B : Fin 3 → Fin 3 → ℝ) (i j : Fin 3) : ℝ := |
| @@ -13132,7 +13132,7 @@ theorem velocity_rhs_error | ||
| 13132 | 13132 | (show |(0 : ℝ)| ≤ 2 * Θ ^ 2 by simp; positivity) |
| 13133 | 13133 | dsimp [J₀] |
| 13134 | 13134 | simpa only [zero_mul, add_zero, norm3, abs_zero, add_comm] using hh |
| 13135 | - have hD₀ : 1 ≤ D₀ := by dsimp [D₀]; nlinarith [sq_nonneg P₀] | |
| 13135 | + have hD₀ : 1 ≤ D₀ := by dsimp [D₀]; linarith [sq_nonneg P₀] | |
| 13136 | 13136 | have hproj := velocity_projection_error (ε := ε) hΘ hρ hd hj hjupper hD hD₀ hP hP₀ hp hq hDD hJ hJ₀ |
| 13137 | 13137 | have hL : 0 ≤ |U| + |V| := add_nonneg (abs_nonneg _) (abs_nonneg _) |
| 13138 | 13138 | have hnorm : norm3 U V W ≤ 7 * Θ ^ 2 * (|U| + |V|) := by |
| @@ -13185,7 +13185,7 @@ theorem velocity_rhs_error | ||
| 13185 | 13185 | nlinarith only [he2, he4, he6, he7, he8, he11, hε4, hε8, |
| 13186 | 13186 | mul_nonneg he (pow_nonneg hΘ0 12)] |
| 13187 | 13187 | have hm := mul_le_mul_of_nonneg_right hcoefficient hL |
| 13188 | - nlinarith only [htU, htV, hu, hv, hproj, hm] | |
| 13188 | + linarith only [htU, htV, hu, hv, hproj, hm] | |
| 13189 | 13189 | |
| 13190 | 13190 | end EulerPacketRay |
| 13191 | 13191 | |
| @@ -13857,7 +13857,7 @@ theorem frame_cross_numerator_error | ||
| 13857 | 13857 | have hmε := mul_le_mul_of_nonneg_left h24 (by positivity : 0 ≤ 54 * ε ^ 2) |
| 13858 | 13858 | have hpρ : 0 ≤ 86 * ρ * Θ ^ 4 := by positivity |
| 13859 | 13859 | have hpε : 0 ≤ 86 * ε ^ 2 * Θ ^ 4 := by positivity |
| 13860 | - nlinarith only [hsum, hsum', hS₀, hS₁, hS₂, hmρ, hmσ, hmσ2, hmε, hpρ, hpε] | |
| 13860 | + linarith only [hsum, hsum', hS₀, hS₁, hS₂, hmρ, hmσ, hmσ2, hmε, hpρ, hpε] | |
| 13861 | 13861 | |
| 13862 | 13862 | /-- The cross numerator bound with every velocity-ratio and parent-action |
| 13863 | 13863 | estimate derived from ray, state, and matrix coefficient errors. -/ |
| @@ -14211,7 +14211,7 @@ theorem perturbed_target_compression | ||
| 14211 | 14211 | have hscale2 : 1 ≤ (β * t ^ 2) ^ 2 := by nlinarith only [hscale] |
| 14212 | 14212 | have hDupper : rayDenominator ε P Q N ≤ 5 * β ^ 2 * t ^ 4 := by |
| 14213 | 14213 | unfold rayDenominator |
| 14214 | - nlinarith only [hPsq, hNsq, hεQsq, hscale2] | |
| 14214 | + linarith only [hPsq, hNsq, hεQsq, hscale2] | |
| 14215 | 14215 | have hDpos : 0 < rayDenominator ε P Q N := by |
| 14216 | 14216 | unfold rayDenominator |
| 14217 | 14217 | have hh : 0 < P ^ 2 := sq_pos_of_pos hPpos |
| @@ -14258,10 +14258,10 @@ theorem quadratic_form_bound | ||
| 14258 | 14258 | have hq := sq_abs q |
| 14259 | 14259 | have hn := sq_abs n |
| 14260 | 14260 | unfold norm3 |
| 14261 | - nlinarith only [h₁, h₂, h₃, hp, hq, hn] | |
| 14261 | + linarith only [h₁, h₂, h₃, hp, hq, hn] | |
| 14262 | 14262 | have hm := mul_le_mul_of_nonneg_left hnorm hG |
| 14263 | 14263 | unfold quadraticForm3 norm3 at * |
| 14264 | - nlinarith only [h₀, h₁, h₂, ht0, ht1, hm] | |
| 14264 | + linarith only [h₀, h₁, h₂, ht0, ht1, hm] | |
| 14265 | 14265 | |
| 14266 | 14266 | /-- The full normalized compression is the negative shear term plus a |
| 14267 | 14267 | controlled contribution from the older gradient and the packet error. -/ |
| @@ -14334,7 +14334,7 @@ theorem equation30_target_frame_renewal | ||
| 14334 | 14334 | have hJ₀abs : |J₀| ≤ 2 * P₀ := by |
| 14335 | 14335 | rw [abs_of_pos hJ₀pos] |
| 14336 | 14336 | exact (div_le_iff₀ hP₀pos).mp hJ₀upper |
| 14337 | - have hD₀ : 1 ≤ 1 + P₀ ^ 2 := by nlinarith [sq_nonneg P₀] | |
| 14337 | + have hD₀ : 1 ≤ 1 + P₀ ^ 2 := by linarith [sq_nonneg P₀] | |
| 14338 | 14338 | have hroot : sqrt (1 + P₀ ^ 2) ≤ 2 * P₀ := by |
| 14339 | 14339 | have hh := sq_sqrt (by positivity : 0 ≤ 1 + P₀ ^ 2) |
| 14340 | 14340 | have hn := sqrt_nonneg (1 + P₀ ^ 2) |
| @@ -14583,7 +14583,7 @@ theorem frame_renewal_order40 | ||
| 14583 | 14583 | constructor |
| 14584 | 14584 | · have hh := hrenew.1 |
| 14585 | 14585 | dsimp [P₀] at hAbound |
| 14586 | - nlinarith only [hh, hAbound] | |
| 14586 | + linarith only [hh, hAbound] | |
| 14587 | 14587 | · have hh := hrenew.2 |
| 14588 | 14588 | exact hh.trans (by dsimp [P₀] at hBbound; nlinarith only [hBbound]) |
| 14589 | 14589 | |
+15 −0 routes/s2-euler-euler-1/README.md added View file
| @@ -0,0 +1,15 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-euler-1 | |
| 6 | + | |
| 7 | +S-2, one unit: the family `Euler/Euler*`, the single file `Euler/EulerProof.lean`, made cheaper to elaborate | |
| 8 | +(−10.6%). The edits are Treant's `speedup_trials` stage carried onto main at `df2f18f` and recounted there: inside | |
| 9 | +proofs only, `nlinarith` becomes `linarith` where the goal is linear, and one `simp only` list loses `mul_comm`. No | |
| 10 | +statement, import or docstring changes, and no `maxHeartbeats`. The numbers and how they were taken are in the pull | |
| 11 | +request's description. | |
| 12 | + | |
| 13 | +## Next | |
| 14 | + | |
| 15 | +Push, then open the pull request into `main`; leave it for the maintainer agent and the `build` check. | |