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/Natural): 6 files cheaper to elaborate (−8.6%, measured)
Browse filesProof-only edits in six files of the Natural* family: `nlinarith` becomes `linarith` where the goal is linear in the monomials already in context, and three `simp` argument lists lose an entry that does not change the goal. No statement, import line, docstring or maxHeartbeats changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
main s1-euler-angle-9 s1-ns-harmonic-11 s1-ns-particular-10 s1-ns-radial-9 s1-ns-wave-11 s2-euler-correction-1 s2-euler-cylinder-1 s2-euler-dirichlet-1 s2-euler-euler-1 s2-euler-finite-1 s2-euler-mean-1 s2-euler-ordinary-2 s2-euler-packet-1 s2-euler-transverse-1 s2-ns-actual-1 s2-ns-annular-1 s2-ns-base-1 s2-ns-common-1 s2-ns-correction-1 s2-ns-current-1 s2-ns-five-1 s2-ns-flat-1 s2-ns-global-1 s2-ns-heat-1 s2-ns-mean-1 s2-ns-modulated-1 s2-ns-moment-1 s2-ns-natural-1 s2-ns-outgoing-2 s2-ns-periodic-1 s2-ns-periodized-1 s2-ns-physical-1 s2-ns-positive-1 s2-ns-pressure-1 s2-ns-primary-1 s2-ns-reserved-1 s2-ns-residual-1 s2-ns-scaled-2 s2-ns-signed-1 s2-ns-slow-1 s2-ns-smooth-1 s2-ns-temporal-1 s2-ns-uniform-1 s2-ns-variable-1 s2-ns-viscous-1 s2-ns-volterra-2
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+2 −2 NavierStokes/NaturalAxisBridge.lean View file
| @@ -580,7 +580,7 @@ theorem integrated_solution (I : Window) {ε : ℝ} (hε : 0 < ε) | ||
| 580 | 580 | (2 * s) * angularRemainder (parameters I ε χ d) t |
| 581 | 581 | (AxisEvaluation.profile I ε x.1) (AxisEvaluation.profile I ε x.2) |
| 582 | 582 | (AxisEvaluation.profile I ε (AxisOperators.average I hε x.2)) p := by |
| 583 | - nlinarith only [he] | |
| 583 | + linarith only [he] | |
| 584 | 584 | _ = _ := by rw [hst] |
| 585 | 585 | · intro p hp |
| 586 | 586 | have hY : |p.1| < 20 := abs_lt.mpr hp.1 |
| @@ -602,7 +602,7 @@ theorem integrated_solution (I : Window) {ε : ℝ} (hε : 0 < ε) | ||
| 602 | 602 | (AxisEvaluation.profile I ε x.2) |
| 603 | 603 | (AxisEvaluation.profile I ε (AxisOperators.average I hε x.2)) |
| 604 | 604 | (AxisEvaluation.profile I ε (pressureCoefficient I hε a x.1)) p := by |
| 605 | - nlinarith only [he] | |
| 605 | + linarith only [he] | |
| 606 | 606 | _ = _ := by rw [hst] |
| 607 | 607 | |
| 608 | 608 | /-- The leading pair defined using the proved angular resolvent. -/ |
+3 −3 NavierStokes/NaturalAxisCoefficients.lean View file
| @@ -74,10 +74,10 @@ theorem L_pos_on_window {h j : ℝ} (hp : NaturalAxisRange.Parameters h j) | ||
| 74 | 74 | have hx' : -(11 / 10 : ℝ) ≤ x ∧ x ≤ 11 / 10 := by |
| 75 | 75 | simpa [window, Window.interval, neg_div] using hx |
| 76 | 76 | have hs : x ^ 2 ≤ 2 := by |
| 77 | - nlinarith [mul_nonneg (sub_nonneg.mpr hx'.2) (show 0 ≤ x + 11 / 10 by linarith [hx'.1])] | |
| 77 | + linarith [mul_nonneg (sub_nonneg.mpr hx'.2) (show 0 ≤ x + 11 / 10 by linarith [hx'.1])] | |
| 78 | 78 | have hh := mul_le_mul_of_nonneg_left hs hp.h_pos.le |
| 79 | 79 | dsimp [NaturalAxisData.L] |
| 80 | - nlinarith [hp.h_le] | |
| 80 | + linarith [hp.h_le] | |
| 81 | 81 | |
| 82 | 82 | theorem denominator_ne_zero_on_real (h j : ℝ) {σ : ℝ} (hσ : 0 < σ) (x : ℝ) : |
| 83 | 83 | denominator h j σ (x : ℂ) ≠ 0 := by |
| @@ -165,7 +165,7 @@ theorem complexField_ofReal {g a : ℝ → ℝ} {cap : ℝ} | ||
| 165 | 165 | (realField h j σ (PressureDatum.pressure g a) k x : ℂ) := by |
| 166 | 166 | cases k <;> |
| 167 | 167 | simp [complexField, realField, complexD, complexL, complexU, complexH, complexW, |
| 168 | - complexZ, complexChi, complexGradient, denominator, realGradient, | |
| 168 | + complexZ, complexChi, denominator, realGradient, | |
| 169 | 169 | NaturalAxisData.d, NaturalAxisData.L, NaturalAxisData.U, NaturalAxisData.H, |
| 170 | 170 | NaturalAxisData.W, NaturalAxisData.Z, NaturalAxisData.chi, |
| 171 | 171 | deriv_complexPressure_ofReal hp] |
+9 −9 NavierStokes/NaturalAxisData.lean View file
| @@ -64,13 +64,13 @@ theorem d_nonneg {η : ℝ} (hη : η ∈ Icc (-1 : ℝ) 1) : 0 ≤ d η := by | ||
| 64 | 64 | have hp := mul_nonneg (sub_nonneg.mpr hη.2) |
| 65 | 65 | (show 0 ≤ η + 1 by linarith [hη.1]) |
| 66 | 66 | unfold d |
| 67 | - nlinarith | |
| 67 | + linarith | |
| 68 | 68 | |
| 69 | 69 | theorem L_lower_bound {h j η : ℝ} (p : SmallParameters h j) |
| 70 | 70 | (hη : η ∈ Icc (-1 : ℝ) 1) : 499 / 500 ≤ L h η := by |
| 71 | 71 | have hp := mul_nonneg p.h_pos.le (d_nonneg hη) |
| 72 | 72 | dsimp [d, L] at * |
| 73 | - nlinarith [p.h_le] | |
| 73 | + linarith [p.h_le] | |
| 74 | 74 | |
| 75 | 75 | theorem L_pos {h j η : ℝ} (p : SmallParameters h j) |
| 76 | 76 | (hη : η ∈ Icc (-1 : ℝ) 1) : 0 < L h η := by |
| @@ -87,15 +87,15 @@ theorem neg_W_lower_bound {h j η : ℝ} (p : SmallParameters h j) | ||
| 87 | 87 | have hDj : 0 ≤ 2 * D h * j := |
| 88 | 88 | mul_nonneg (mul_nonneg (by norm_num) (D_pos p).le) p.j_pos.le |
| 89 | 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] | |
| 90 | + linarith [mul_nonneg (show 0 ≤ 1 - 2 * D h by linarith [(D_bounds p).2]) p.j_pos.le] | |
| 91 | 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])] | |
| 92 | + linarith [mul_nonneg hDj (show 0 ≤ η + 1 by linarith [hη.1])] | |
| 93 | 93 | have hhη : h * η ^ 2 ≤ h := by |
| 94 | 94 | have hp := mul_nonneg p.h_pos.le (d_nonneg hη) |
| 95 | 95 | dsimp [d] at hp |
| 96 | - nlinarith | |
| 96 | + linarith | |
| 97 | 97 | rw [neg_W_formula] |
| 98 | - nlinarith [p.h_le, p.j_le] | |
| 98 | + linarith [p.h_le, p.j_le] | |
| 99 | 99 | |
| 100 | 100 | theorem H_contDiff (h j : ℝ) : ContDiff ℝ ∞ (H h j) := by |
| 101 | 101 | unfold H U d |
| @@ -330,13 +330,13 @@ theorem pressureData_of_ideal_prefix {g a : ℝ → ℝ} {cap B : ℝ} | ||
| 330 | 330 | apply (le_div_iff₀ hden).mpr |
| 331 | 331 | linarith |
| 332 | 332 | have hisq : (1 / 4 : ℝ) ≤ ((1 + η ^ 2)⁻¹) ^ 2 := by |
| 333 | - nlinarith [sq_nonneg ((1 + η ^ 2)⁻¹ - 1 / 2)] | |
| 333 | + linarith [sq_nonneg ((1 + η ^ 2)⁻¹ - 1 / 2)] | |
| 334 | 334 | have hBsq : (4 : ℝ) ≤ B ^ 2 := by nlinarith |
| 335 | 335 | have hprod : (1 : ℝ) ≤ B ^ 2 * ((1 + η ^ 2)⁻¹) ^ 2 := by |
| 336 | 336 | have hm := mul_le_mul hBsq hisq (by norm_num : (0 : ℝ) ≤ 1 / 4) (sq_nonneg B) |
| 337 | - nlinarith | |
| 337 | + linarith | |
| 338 | 338 | have hpressure := PressureDatum.pressure_le_of_ideal_prefix hp hg ha η |
| 339 | - nlinarith | |
| 339 | + linarith | |
| 340 | 340 | · intro η hη |
| 341 | 341 | rcases lt_trichotomy η 0 with hn | rfl | hpη |
| 342 | 342 | · exact (mul_pos_of_neg_of_neg hn (PressureDatum.deriv_pressure_neg hp hmass hn)).le |
+10 −10 NavierStokes/NaturalAxisRange.lean View file
| @@ -42,7 +42,7 @@ theorem L_lower_bound {h j η : ℝ} (p : Parameters h j) | ||
| 42 | 42 | (hη : η ∈ Icc (-1 : ℝ) 1) : 49 / 50 ≤ L h η := by |
| 43 | 43 | have hp := mul_nonneg p.h_pos.le (d_nonneg hη) |
| 44 | 44 | dsimp [d, L] at * |
| 45 | - nlinarith [p.h_le] | |
| 45 | + linarith [p.h_le] | |
| 46 | 46 | |
| 47 | 47 | theorem L_pos {h j η : ℝ} (p : Parameters h j) |
| 48 | 48 | (hη : η ∈ Icc (-1 : ℝ) 1) : 0 < L h η := by |
| @@ -58,8 +58,8 @@ theorem H_right_pos {h j : ℝ} (p : Parameters h j) : 0 < H h j (-j / 5) := by | ||
| 58 | 58 | apply mul_pos (div_pos p.j_pos (by norm_num)) |
| 59 | 59 | have hj1 : j ≤ 1 := by linarith [p.j_le] |
| 60 | 60 | have hj2 : j ^ 2 ≤ 1 := by |
| 61 | - nlinarith [mul_nonneg (sub_nonneg.mpr hj1) (show 0 ≤ j + 1 by linarith [p.j_pos])] | |
| 62 | - nlinarith [(D_bounds p).2] | |
| 61 | + linarith [mul_nonneg (sub_nonneg.mpr hj1) (show 0 ≤ j + 1 by linarith [p.j_pos])] | |
| 62 | + linarith [(D_bounds p).2] | |
| 63 | 63 | |
| 64 | 64 | theorem H_pos_of_nonneg {h j η : ℝ} (p : Parameters h j) |
| 65 | 65 | (hη : η ∈ Icc (-1 : ℝ) 1) (hη0 : 0 ≤ η) : 0 < H h j η := by |
| @@ -114,23 +114,23 @@ theorem Z_at_root_lower {h j η : ℝ} {P : ℝ → ℝ} (p : Parameters h j) | ||
| 114 | 114 | have hUj : U j η < j / 5 := by dsimp [U]; linarith [hη.2] |
| 115 | 115 | have hrU : -η * U j η ≤ U j η := by |
| 116 | 116 | simpa using mul_le_mul_of_nonneg_right (show -η ≤ 1 by linarith [hI.1]) hU.le |
| 117 | - have hfactor : 1 - 2 * η * U j η ≤ 2 := by nlinarith [p.j_le] | |
| 117 | + have hfactor : 1 - 2 * η * U j η ≤ 2 := by linarith [p.j_le] | |
| 118 | 118 | have hadverse : (1 - 2 * η * U j η) * U j η < 2 * j / 5 := |
| 119 | 119 | lt_of_le_of_lt (mul_le_mul_of_nonneg_right hfactor hU.le) (by linarith) |
| 120 | 120 | have hpressure := mul_le_mul_of_nonpos_left hP hηn.le |
| 121 | 121 | have hcore : 2 * j / 5 < -(1 - 2 * η * U j η) * U j η + 4 * η * P η := by |
| 122 | - nlinarith [hη.2] | |
| 122 | + linarith [hη.2] | |
| 123 | 123 | have hderiv : d η * deriv P η ≤ 0 := |
| 124 | 124 | mul_nonpos_of_nonneg_of_nonpos (d_nonneg hI) hP' |
| 125 | 125 | calc |
| 126 | 126 | j / 5 ≤ A h * (2 * j / 5) := by |
| 127 | - nlinarith [mul_nonneg (show 0 ≤ A h - 1 / 2 by linarith [(A_bounds p).1]) p.j_pos.le] | |
| 127 | + linarith [mul_nonneg (show 0 ≤ A h - 1 / 2 by linarith [(A_bounds p).1]) p.j_pos.le] | |
| 128 | 128 | _ < A h * (-(1 - 2 * η * U j η) * U j η + 4 * η * P η) := |
| 129 | 129 | mul_lt_mul_of_pos_left hcore (A_pos p) |
| 130 | 130 | _ ≤ Z h j P η := by |
| 131 | 131 | unfold Z |
| 132 | 132 | rw [hz] |
| 133 | - nlinarith | |
| 133 | + linarith | |
| 134 | 134 | |
| 135 | 135 | theorem exists_root_with_positive_Z {h j : ℝ} {P : ℝ → ℝ} |
| 136 | 136 | (p : Parameters h j) (pP : PressureData P) : |
| @@ -178,10 +178,10 @@ theorem exists_sigma {h j : ℝ} {P : ℝ → ℝ} | ||
| 178 | 178 | refine ⟨σ, hσ, ?_⟩ |
| 179 | 179 | intro η hη hZ |
| 180 | 180 | have hH := hbound η hη hZ |
| 181 | - have hden : 0 < (H h j η) ^ 2 + σ ^ 2 := by nlinarith [sq_nonneg σ] | |
| 181 | + have hden : 0 < (H h j η) ^ 2 + σ ^ 2 := by linarith [sq_nonneg σ] | |
| 182 | 182 | unfold chi |
| 183 | 183 | apply (lt_div_iff₀ hden).mpr |
| 184 | - nlinarith | |
| 184 | + linarith | |
| 185 | 185 | |
| 186 | 186 | theorem exists_cutoff_parameters {h j : ℝ} {P : ℝ → ℝ} |
| 187 | 187 | (p : Parameters h j) (pP : PressureData P) : |
| @@ -211,6 +211,6 @@ theorem base_source_lower {h j η : ℝ} (p : Parameters h j) | ||
| 211 | 211 | ring |
| 212 | 212 | rw [he] |
| 213 | 213 | have hm := mul_nonneg p.j_pos.le (show 0 ≤ η + 1 by linarith [hη.1]) |
| 214 | - nlinarith [p.h_le, p.j_le] | |
| 214 | + linarith [p.h_le, p.j_le] | |
| 215 | 215 | |
| 216 | 216 | end NavierStokes.NaturalAxisRange |
+3 −3 NavierStokes/NaturalCoefficientBridge.lean View file
| @@ -99,7 +99,7 @@ theorem angular_zero_formula (h : ℝ) (f : SlowProfiles) (w : InnerPoint) : | ||
| 99 | 99 | (f.flux 0 w * (partialX (f.phi 0) w + f.phi 0 w / w.1) + |
| 100 | 100 | f.axial 0 w * Z h (angularExponent h) (f.phi 0) w) := by |
| 101 | 101 | simp [angularCoefficient, transportCoefficient, recurrence, transportLinear, transportPair, |
| 102 | - slowOrder, convolution, previous] | |
| 102 | + convolution, previous] | |
| 103 | 103 | |
| 104 | 104 | theorem axial_zero_formula (h : ℝ) (f : SlowProfiles) (w : InnerPoint) : |
| 105 | 105 | axialCoefficient h f 0 w = |
| @@ -109,7 +109,7 @@ theorem axial_zero_formula (h : ℝ) (f : SlowProfiles) (w : InnerPoint) : | ||
| 109 | 109 | (f.flux 0 w * partialX (f.axial 0) w + |
| 110 | 110 | f.axial 0 w * Z h (axialExponent h) (f.axial 0) w) := by |
| 111 | 111 | simp [axialCoefficient, transportCoefficient, recurrence, transportLinear, transportPair, |
| 112 | - slowOrder, convolution, previous, axialPressureSource] | |
| 112 | + convolution, previous, axialPressureSource] | |
| 113 | 113 | |
| 114 | 114 | theorem natural_angular_zero {h j Λ : ℝ} {P0 a0 : ℝ → ℝ} {f U V P : InnerProfile} |
| 115 | 115 | (hs : NaturalProfile.IsNaturalSolution h j Λ P0 a0 f U V P) |
| @@ -260,7 +260,7 @@ theorem initialBand_mem_domain {Λ : ℝ} (hΛ : 0 < Λ) {w : InnerPoint} | ||
| 260 | 260 | have hlo := mul_nonneg hΛ.le hw.1.1 |
| 261 | 261 | have hhi : Λ * w.1 ≤ 4 := by |
| 262 | 262 | have ht := (le_div_iff₀ hΛ).mp hw.1.2 |
| 263 | - nlinarith | |
| 263 | + linarith | |
| 264 | 264 | exact ⟨⟨by linarith, by linarith⟩, hw.2⟩ |
| 265 | 265 | |
| 266 | 266 | theorem radialFlux_congr_germ (h lam : ℝ) {U V : InnerProfile} {w : InnerPoint} |
+11 −11 NavierStokes/NaturalEntrance.lean View file
| @@ -78,7 +78,7 @@ theorem cone_size_of_second_large {a b : ℝ} (ha : 0 < a) (hb : (6 / 5 : ℝ) ^ | ||
| 78 | 78 | calc |
| 79 | 79 | 12 / 5 < (a ^ 2 + b ^ 2) / a := by |
| 80 | 80 | apply (lt_div_iff₀ ha).mpr |
| 81 | - nlinarith [sq_nonneg (a - 6 / 5)] | |
| 81 | + linarith [sq_nonneg (a - 6 / 5)] | |
| 82 | 82 | _ = _ := by field_simp |
| 83 | 83 | |
| 84 | 84 | /-- Compactness supplies one absorption scale when the limiting remainder |
| @@ -419,13 +419,13 @@ theorem sourceRemainder_uniform_limit {h j σ : ℝ} {P0 : ℝ → ℝ} | ||
| 419 | 419 | have hmul := (div_lt_iff₀ hδ).mp hratio |
| 420 | 420 | have htime : |1 / Λ| < δ := by |
| 421 | 421 | rw [abs_of_pos (one_div_pos.mpr hΛpos), div_lt_iff₀ hΛpos] |
| 422 | - nlinarith [mul_nonneg hJ.le hK] | |
| 422 | + linarith [mul_nonneg hJ.le hK] | |
| 423 | 423 | have hjets : ‖sourceJets v.epsilon_pos x p - |
| 424 | 424 | sourceJets v.epsilon_pos (referencePair v) p‖ < δ := by |
| 425 | 425 | apply (sourceJets_sub_bound v.epsilon_pos x (referencePair v) p.property).trans_lt |
| 426 | 426 | apply (mul_le_mul_of_nonneg_left hx hJ.le).trans_lt |
| 427 | 427 | rw [← mul_div_assoc, div_lt_iff₀ (by positivity : 0 < 2 * Λ)] |
| 428 | - nlinarith [mul_nonneg hJ.le hK] | |
| 428 | + linarith [mul_nonneg hJ.le hK] | |
| 429 | 429 | have hpert : ‖((1 / Λ), sourceJets v.epsilon_pos x p - |
| 430 | 430 | sourceJets v.epsilon_pos (referencePair v) p)‖ < δ := by |
| 431 | 431 | simpa only [Prod.norm_def, Real.norm_eq_abs, max_lt_iff] using And.intro htime hjets |
| @@ -451,7 +451,7 @@ theorem source_uniform_lower {h j σ : ℝ} {P0 : ℝ → ℝ} | ||
| 451 | 451 | intro Λ hΛ x hx p |
| 452 | 452 | have hbase := hmain Λ ((le_max_left _ _).trans hΛ) p |
| 453 | 453 | have he := (abs_lt.mp (herr Λ ((le_max_right _ _).trans hΛ) x hx p)).1 |
| 454 | - nlinarith | |
| 454 | + linarith | |
| 455 | 455 | |
| 456 | 456 | theorem angularProfile_radial_log_derivative {a : ℝ → ℝ} {Λ : ℝ} |
| 457 | 457 | {Φ : ℝ × ℝ → ℝ} (hΦ : ContDiffOn ℝ ∞ Φ (AxisEvaluation.strip window 20)) |
| @@ -593,7 +593,7 @@ theorem p1_pos_of_source {h j Λ R η : ℝ} {P0 a : ℝ → ℝ} | ||
| 593 | 593 | simpa only [radialDifferential, partialY, iteratedDeriv_succ, |
| 594 | 594 | iteratedDeriv_zero, Nat.cast_ofNat] using hsrc |
| 595 | 595 | unfold p1 partialY |
| 596 | - exact div_pos (mul_pos_of_neg_of_neg (by nlinarith) hneg) (hpos R ⟨hR.le, le_rfl⟩) | |
| 596 | + exact div_pos (mul_pos_of_neg_of_neg (by linarith) hneg) (hpos R ⟨hR.le, le_rfl⟩) | |
| 597 | 597 | |
| 598 | 598 | /-- Applying the actual regular inverse to radially constant data gives |
| 599 | 599 | exactly its degree-one polynomial. -/ |
| @@ -749,7 +749,7 @@ theorem ns_error {h j σ Λ K : ℝ} {P0 : ℝ → ℝ} | ||
| 749 | 749 | theorem L_le_one {h j : ℝ} (hsmall : NaturalAxisRange.Parameters h j) (η : ℝ) : |
| 750 | 750 | NaturalAxisData.L h η ≤ 1 := by |
| 751 | 751 | unfold NaturalAxisData.L |
| 752 | - nlinarith [mul_nonneg hsmall.h_pos.le (sq_nonneg η)] | |
| 752 | + linarith [mul_nonneg hsmall.h_pos.le (sq_nonneg η)] | |
| 753 | 753 | |
| 754 | 754 | /-- Where `Z*` is separated from zero, the actual axial shear is separated |
| 755 | 755 | from zero uniformly in the normalization. -/ |
| @@ -774,7 +774,7 @@ theorem ns_separated {h j σ Λ K δ : ℝ} {P0 : ℝ → ℝ} | ||
| 774 | 774 | apply he.trans_lt |
| 775 | 775 | rw [div_lt_iff₀ hΛ] |
| 776 | 776 | have ht := (div_lt_iff₀ hδ).mp hΛ' |
| 777 | - nlinarith | |
| 777 | + linarith | |
| 778 | 778 | have hratio : δ < |NaturalAxisData.Z h j P0 p.2 / NaturalAxisData.L h p.2| := by |
| 779 | 779 | rw [abs_div, abs_of_pos hL] |
| 780 | 780 | apply hZ.trans_le |
| @@ -873,7 +873,7 @@ theorem angularField_small {h j σ Λ C δ : ℝ} {P0 : ℝ → ℝ} | ||
| 873 | 873 | unfold entranceNormalization |
| 874 | 874 | field_simp |
| 875 | 875 | rwa [hid] at hh |
| 876 | - nlinarith [mul_pos hT hδ] | |
| 876 | + linarith [mul_pos hT hδ] | |
| 877 | 877 | |
| 878 | 878 | theorem second_coordinate_large {Λ δ f n : ℝ} |
| 879 | 879 | (hΛ : 1 ≤ Λ) (hδ : 0 < δ) (hf : 0 < f) |
| @@ -892,13 +892,13 @@ theorem second_coordinate_large {Λ δ f n : ℝ} | ||
| 892 | 892 | have hEb : Λ * (Real.sqrt (2 * (4 / Λ)) * f) ≤ 3 * δ / 100 := by |
| 893 | 893 | have hm := mul_le_mul_of_nonneg_right hsqrt hf.le |
| 894 | 894 | have hm' := mul_le_mul_of_nonneg_left hm hΛpos.le |
| 895 | - nlinarith | |
| 895 | + linarith | |
| 896 | 896 | have hn' : 2 * δ < Λ * ((4 / Λ) * |n|) := by |
| 897 | 897 | rw [← mul_assoc, hprod] |
| 898 | 898 | linarith |
| 899 | 899 | have hlarge : (6 / 5 : ℝ) * (Real.sqrt (2 * (4 / Λ)) * f) < (4 / Λ) * |n| := by |
| 900 | 900 | apply (mul_lt_mul_iff_of_pos_left hΛpos).mp |
| 901 | - nlinarith | |
| 901 | + linarith | |
| 902 | 902 | have habs : |(4 / Λ) * n / (Real.sqrt (2 * (4 / Λ)) * f)| = |
| 903 | 903 | (4 / Λ) * |n| / (Real.sqrt (2 * (4 / Λ)) * f) := by |
| 904 | 904 | rw [abs_div, abs_mul, abs_of_pos hX, abs_of_pos hE] |
| @@ -1213,7 +1213,7 @@ theorem angular_source_integral {h j Λ : ℝ} {P0 a : ℝ → ℝ} | ||
| 1213 | 1213 | intro x hx |
| 1214 | 1214 | dsimp only |
| 1215 | 1215 | rw [Sq_eq_radial hs (hmem x hx) (hf x hx)] |
| 1216 | - simp only [radialDifferential, partialY, iteratedDeriv_succ, iteratedDeriv_zero, Nat.cast_ofNat] | |
| 1216 | + simp only [radialDifferential, partialY, iteratedDeriv_succ, iteratedDeriv_zero] | |
| 1217 | 1217 | field_simp [hf x hx] ; ring |
| 1218 | 1218 | _ = _ := angular_flux_integral (NaturalAxisData.L h p.2) p.1 hreg |
| 1219 | 1219 | |
+29 −0 routes/s2-ns-natural-1/README.md added View file
| @@ -0,0 +1,29 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-ns-natural-1 | |
| 6 | + | |
| 7 | +S-2, the `NavierStokes/Natural*` family, wave 1: six files | |
| 8 | +`NavierStokes/NaturalAxisBridge.lean`, `NavierStokes/NaturalAxisCoefficients.lean`, | |
| 9 | +`NavierStokes/NaturalAxisData.lean`, `NavierStokes/NaturalAxisRange.lean`, | |
| 10 | +`NavierStokes/NaturalCoefficientBridge.lean` and `NavierStokes/NaturalEntrance.lean`, | |
| 11 | +each among the slowest to elaborate in the tree. The change is 38 lines out and 38 in, all | |
| 12 | +inside proofs, below the `:=` of their declarations: `nlinarith` becomes `linarith` where the | |
| 13 | +goal is linear in the monomials already in context, and three `simp` argument lists lose an | |
| 14 | +entry that does not change the goal (`complexGradient`, `slowOrder` in two places, | |
| 15 | +`Nat.cast_ofNat`). No statement, import line, docstring or `maxHeartbeats` changes, and the | |
| 16 | +diff names only these six files. | |
| 17 | + | |
| 18 | +The edits are Treant's `speedup_trials` edits from upstream `f9e8bc5` | |
| 19 | +(TitiSkywalker/NavierStokesAndEuler, run of 2026-12-03), carried onto main `d956c7c` and counted | |
| 20 | +there. The measured cost per file, before and after, and how it was counted, are in the pull | |
| 21 | +request's description; `docs/build-profile.md` holds S-2's list of the ten costliest files. | |
| 22 | +`python3 checks/challenge.py .` ends with `ok: 4 challenge files and the build configuration as | |
| 23 | +approved; …`. Lean is installed here but the clone has no Mathlib build cache, so the module | |
| 24 | +build is left to the `build` check. | |
| 25 | + | |
| 26 | +## Next | |
| 27 | + | |
| 28 | +Push, open the pull request into `main` (`Part of #11`), and reply to the maintainer's review. | |
| 29 | +The rest of the `Natural*` family and the other units of #11 are separate. | |