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

Merge pull request #536 from s2-euler-parent-1
Browse filesperf(Euler/Parent): 11 files cheaper to elaborate (−4.3%, measured)
main maintainer-statement p1-ns-physical s1-euler-angle-9 s1-ns-harmonic-11 s1-ns-particular-10 s1-ns-radial-9 s1-ns-wave-11 s1-ns-weighted-10 s1-ns-weighted-12 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-instances-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-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 s5-cap-1 s5-euler-all-1 s5-euler-base-1 s5-euler-bounded-1 s5-euler-canonical-1 s5-euler-coefficient-1 s5-euler-compact-1 s5-euler-continuous-1 s5-euler-correction-1 s5-euler-cylinder-1 s5-euler-drift-1 s5-euler-duhamel-1 s5-euler-elapsed-1 s5-euler-elapsed-2 s5-euler-euler-1 s5-euler-external-1 s5-euler-field-1 s5-euler-fixed-1 s5-euler-gained-1 s5-euler-gaussian-1 s5-euler-gevrey-1 s5-euler-graph-1 s5-euler-h5-1 s5-euler-h6-1 s5-euler-heat-1 s5-euler-inviscid-1 s5-euler-lifted-1 s5-euler-linear-1 s5-euler-lp-1 s5-euler-mean-1 s5-euler-mixed-1 s5-euler-ordinary-1 s5-euler-packet-1 s5-euler-parameter-1 s5-euler-parent-1 s5-euler-physical-1 s5-euler-projected-1 s5-euler-quadratic-1 s5-euler-regularized-1 s5-euler-small-1 s5-euler-smooth-1 s5-euler-sobolev-1 s5-euler-source-1 s5-euler-stage-1 s5-euler-static-1 s5-euler-terminal-1 s5-euler-time-1 s5-euler-top-1 s5-euler-transverse-1 s5-euler-weighted-1 s5-euler-whole-1 s5-ns-actual-1 s5-ns-axis-1 s5-ns-generic-1 s5-ns-label-1 s5-ns-local-1 s5-ns-mean-1 s5-ns-moment-1 s5-ns-particular-1 s5-ns-periodic-1 s5-ns-periodize-1 s5-ns-positive-1 s5-ns-r3-folder-1 s5-ns-reference-1 s5-ns-sharp-1 s5-ns-smooth-1 s5-ns-torus-1 s5-ns-valid-1 s5-ns-whole-1 s5-ns-within-1
Checks
build Program · lake build and Comparator
Details
challenge Program · challenge files and build config
Details
+1 −1 Euler/ParentEulerLowBounds.lean View file
| @@ -23,7 +23,7 @@ theorem quadratic_lower_of_difference (M N : Matrix) (C e : ℝ) | ||
| 23 | 23 | -(C+e)*‖z‖^2 ≤ ⟪N z,z⟫_ℝ := by |
| 24 | 24 | have h := quadratic_lower_of_norm (N-M) e he z |
| 25 | 25 | simp only [sub_apply,inner_sub_left] at h |
| 26 | - nlinarith only [h,hC z] | |
| 26 | + linarith only [h,hC z] | |
| 27 | 27 | |
| 28 | 28 | end EulerPacketPhysicalLowBounds |
| 29 | 29 | |
+2 −2 Euler/ParentHistoryFrequencyGuard.lean View file
| @@ -28,7 +28,7 @@ theorem frequency_monotone (J : ℕ) (hJ : 2 ≤ J) (X : ℝ) (hX : 0 ≤ X) : | ||
| 28 | 28 | dsimp [j] |
| 29 | 29 | push_cast |
| 30 | 30 | ring |
| 31 | - have hstep : j+1 ≤ j^2 := by nlinarith only [hj2,sq_nonneg (j-2)] | |
| 31 | + have hstep : j+1 ≤ j^2 := by linarith only [hj2,sq_nonneg (j-2)] | |
| 32 | 32 | have hsq : (j+1)^2 ≤ (j^2)^2 := pow_le_pow_left₀ (by positivity) hstep 2 |
| 33 | 33 | apply exp_le_exp.mpr |
| 34 | 34 | change scaleSequence J X n/j^2 ≤ scaleSequence J X (n+1)/((J+(n+1) : ℕ) : ℝ)^2 |
| @@ -50,7 +50,7 @@ theorem initial_frequency_le_first (J D : ℕ) (hJ : 3 ≤ J) (X : ℝ) (hX : 0 | ||
| 50 | 50 | have hadd : (J : ℝ)=j+1 := by |
| 51 | 51 | dsimp [j] |
| 52 | 52 | exact_mod_cast (show J=J-1+1 by omega) |
| 53 | - have hstep : j+1 ≤ j^2 := by nlinarith only [hj2,sq_nonneg (j-2)] | |
| 53 | + have hstep : j+1 ≤ j^2 := by linarith only [hj2,sq_nonneg (j-2)] | |
| 54 | 54 | have hsq : (J : ℝ)^2 ≤ j^4 := by |
| 55 | 55 | rw [hadd] |
| 56 | 56 | simpa only [← pow_mul] using pow_le_pow_left₀ (by positivity) hstep 2 |
+3 −3 Euler/ParentInitializedRadiusPolynomial.lean View file
| @@ -41,12 +41,12 @@ theorem inputEnvelope_bounds (K X : ℝ) (hK : 1 ≤ K) (hKX : K ≤ X) : | ||
| 41 | 41 | have hf : EulerPacketParentLabelBounds.frameAmplitude K ≤ a := (leaf_bounds K hK0).2.2.2.1.trans hl |
| 42 | 42 | have ha : a ≤ inputEnvelope X := by |
| 43 | 43 | change a ≤ 1+X+a+3*a^3*X |
| 44 | - nlinarith only [hX0,mul_nonneg (pow_nonneg ha0 3) hX0] | |
| 44 | + linarith only [hX0,mul_nonneg (pow_nonneg ha0 3) hX0] | |
| 45 | 45 | refine ⟨?_,?_,hl.trans ha,hp.trans ha,?_⟩ |
| 46 | 46 | · change 1 ≤ 1+X+a+3*a^3*X |
| 47 | - nlinarith only [hX0,ha0,mul_nonneg (pow_nonneg ha0 3) hX0] | |
| 47 | + linarith only [hX0,ha0,mul_nonneg (pow_nonneg ha0 3) hX0] | |
| 48 | 48 | · change X ≤ 1+X+a+3*a^3*X |
| 49 | - nlinarith only [ha0,mul_nonneg (pow_nonneg ha0 3) hX0] | |
| 49 | + linarith only [ha0,mul_nonneg (pow_nonneg ha0 3) hX0] | |
| 50 | 50 | · intro Cp hCp hCpX |
| 51 | 51 | have hprod : physicalCost K Cp ≤ 3*a^3*X := by |
| 52 | 52 | unfold physicalCost |
+2 −2 Euler/ParentPacketBadRatioPolynomial.lean View file
| @@ -61,7 +61,7 @@ theorem initial_history_size_le_difference : | ||
| 61 | 61 | have hx : ‖D.frame.field‖ ≤ L.frameDifferenceCost := by |
| 62 | 62 | apply hq.trans |
| 63 | 63 | unfold frameDifferenceCost |
| 64 | - nlinarith only [mul_le_mul_of_nonneg_left hR (frameAmplitude_nonneg L.K)] | |
| 64 | + linarith only [mul_le_mul_of_nonneg_left hR (frameAmplitude_nonneg L.K)] | |
| 65 | 65 | apply historyCost_le_differenceCost τ D.frameLower _ _ _ _ _ _ _ _ hτ.le D.frameLower_pos.le |
| 66 | 66 | (norm_nonneg _) (norm_nonneg _) (by positivity) (by positivity) |
| 67 | 67 | (historyTransportCost_nonneg (D := D)) hx |
| @@ -216,7 +216,7 @@ theorem badRatio_polynomial : | ||
| 216 | 216 | have hX : 1 ≤ 1+L.K+Ti+P.shear⁻¹+A.CM+A.CH := by |
| 217 | 217 | have ht := (inv_pos.mpr hτ).le.trans hTi |
| 218 | 218 | have hi := (inv_pos.mpr A.shear_pos).le |
| 219 | - nlinarith only [L.K_one,ht,hi,A.CM_nonneg,A.CH_nonneg] | |
| 219 | + linarith only [L.K_one,ht,hi,A.CM_nonneg,A.CH_nonneg] | |
| 220 | 220 | have hh := L.historySizeRatio_polynomial m hm R S hS H τ hτ hτT P A Ti hτ1 hTi |
| 221 | 221 | rw [A.badRatio_formula] |
| 222 | 222 | calc |
+1 −1 Euler/ParentPacketInitialLowBounds.lean View file
| @@ -17,7 +17,7 @@ theorem norm_le_of_shear_error (V : Matrix) (amp δ θ ev size : ℝ) (r w : Spa | ||
| 17 | 17 | (herr : ‖V-shearTerm amp (deriv (profile δ) θ) r w‖ ≤ ev) : ‖V‖ ≤ size+ev := by |
| 18 | 18 | have hshear : ‖shearTerm amp (deriv (profile δ) θ) r w‖ ≤ size := |
| 19 | 19 | (shearTerm_norm_le amp _ δ r w hamp (profile_deriv_abs δ hδ hδ1 θ)).trans |
| 20 | - ((div_le_iff₀ hδ).2 (by nlinarith only [hsize])) | |
| 20 | + ((div_le_iff₀ hδ).2 (by linarith only [hsize])) | |
| 21 | 21 | have h := norm_of_remainder V 0 (shearTerm amp (deriv (profile δ) θ) r w) ev |
| 22 | 22 | (by simpa only [sub_zero] using herr) |
| 23 | 23 | simp only [norm_zero,zero_add] at h |
+3 −3 Euler/ParentPacketNeighborPolynomial.lean View file
| @@ -102,9 +102,9 @@ theorem epsilon_inv_le_twice_shear (ha : 1/2 ≤ P.a) (hH : 1 ≤ P.shear) : | ||
| 102 | 102 | rw [epsilon,← Real.sqrt_inv,inv_div] |
| 103 | 103 | calc |
| 104 | 104 | _ ≤ Real.sqrt (2*P.shear) := Real.sqrt_le_sqrt ((div_le_iff₀ ha0).2 |
| 105 | - (by nlinarith only [mul_le_mul_of_nonneg_left ha hH0])) | |
| 105 | + (by linarith only [mul_le_mul_of_nonneg_left ha hH0])) | |
| 106 | 106 | _ ≤ 2*P.shear := Real.sqrt_le_iff.mpr ⟨by positivity, |
| 107 | - by nlinarith only [hH,sq_nonneg (P.shear-1)]⟩ | |
| 107 | + by linarith only [hH,sq_nonneg (P.shear-1)]⟩ | |
| 108 | 108 | |
| 109 | 109 | end EulerPacketSourceGeometry.ParentFrame |
| 110 | 110 | |
| @@ -204,7 +204,7 @@ theorem neighborScaleCost_low_polynomial (ha : 1/2 ≤ P.a) (hH : 1 ≤ P.shear) | ||
| 204 | 204 | have hab : 1+L.K+Ti+P.epsilon⁻¹+P.shear⁻¹+CM+CH ≤ |
| 205 | 205 | 2*(1+CM+CH)*(1+L.K+Ti+P.shear) := by |
| 206 | 206 | have hc := mul_le_mul_of_nonneg_left hbase (show 0 ≤ CM+CH by positivity) |
| 207 | - nlinarith only [hEi,hHi,hK,hTi0,hc,hCM,hCH] | |
| 207 | + linarith only [hEi,hHi,hK,hTi0,hc,hCM,hCH] | |
| 208 | 208 | have hA0 : 0 ≤ 1+L.K+Ti+P.epsilon⁻¹+P.shear⁻¹+CM+CH := by positivity |
| 209 | 209 | have hC := EulerParentNeighborCost.constant_pos |
| 210 | 210 | calc |
+2 −2 Euler/ParentPacketNeighborScaleGuard.lean View file
| @@ -22,10 +22,10 @@ theorem polynomial_le_monomial (A K Ti H k h : ℝ) (n q c : ℕ) | ||
| 22 | 22 | have hkk : k^q ≤ k^q*h := le_mul_of_one_le_right hkq0 hh |
| 23 | 23 | have hhh : h ≤ k^q*h := le_mul_of_one_le_left hh0 hkq |
| 24 | 24 | have hb : 1+K+Ti+H ≤ 4*k^q*h := by |
| 25 | - nlinarith only [hkh,hKk.trans hkk,hTik.trans hkk,hHh.trans hhh] | |
| 25 | + linarith only [hkh,hKk.trans hkk,hTik.trans hkk,hHh.trans hhh] | |
| 26 | 26 | calc |
| 27 | 27 | _ ≤ A*(4*k^q*h)^n := mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (by positivity) hb n) hA |
| 28 | - _ = (A*4^n)*(k^(q*n)*h^n) := by simp only [mul_pow,← pow_mul]; ring | |
| 28 | + _ = (A*4^n)*(k^(q*n)*h^n) := by simp only [mul_pow]; ring | |
| 29 | 29 | _ ≤ k*(k^(q*n)*h^n) := mul_le_mul_of_nonneg_right hcost (by positivity) |
| 30 | 30 | _ = k^(q*n+1)*h^n := by rw [pow_succ]; ring |
| 31 | 31 | _ ≤ k^c*h^c := mul_le_mul (pow_le_pow_right₀ hk hc) (pow_le_pow_right₀ hh hn) |
+4 −4 Euler/ParentPacketParameterCaps.lean View file
| @@ -29,11 +29,11 @@ theorem boundary_parameter_bound (CM Bc L X : ℝ) (hX : 1 ≤ X) | ||
| 29 | 29 | (hBc : Bc ≤ CM*X^1000+2) (hL : L=boundaryLocalizationC1*Bc+1) : |
| 30 | 30 | L ≤ boundaryConstant CM*X^1000 := by |
| 31 | 31 | have hp : 1 ≤ X^1000 := one_le_pow₀ hX |
| 32 | - have hb : Bc ≤ (CM+2)*X^1000 := by nlinarith only [hBc,hp] | |
| 32 | + have hb : Bc ≤ (CM+2)*X^1000 := by linarith only [hBc,hp] | |
| 33 | 33 | have h := mul_le_mul_of_nonneg_left hb boundaryLocalizationC1_nonneg |
| 34 | 34 | rw [hL] |
| 35 | 35 | unfold boundaryConstant |
| 36 | - nlinarith only [h,hp] | |
| 36 | + linarith only [h,hp] | |
| 37 | 37 | |
| 38 | 38 | end EulerParentPacketParameterCaps |
| 39 | 39 | |
| @@ -69,10 +69,10 @@ theorem selected_terminal_bound (hH : 1 ≤ P.shear) : | ||
| 69 | 69 | have hEmb := embeddingCost_nonneg |
| 70 | 70 | have hFcap : frameAmplitude L.K ≤ (1+embeddingCost)*L.K^2 := by |
| 71 | 71 | unfold frameAmplitude gradientAmplitude |
| 72 | - nlinarith only [hK2] | |
| 72 | + linarith only [hK2] | |
| 73 | 73 | have hFsquare := pow_le_pow_left₀ (frameAmplitude_nonneg L.K) hFcap 2 |
| 74 | 74 | have hIcap : D.inverseBound ≤ (1+3*(1+embeddingCost)^2)*L.K^4 := by |
| 75 | - nlinarith only [hInv,hFsquare,hK4] | |
| 75 | + linarith only [hInv,hFsquare,hK4] | |
| 76 | 76 | have hAct : 0 ≤ 8*(activationConstant G.CM G.CH+1) := by |
| 77 | 77 | unfold activationConstant |
| 78 | 78 | positivity [G.CH_nonneg] |
+4 −4 Euler/ParentRenewalParameters.lean View file
| @@ -46,12 +46,12 @@ theorem compression_margin {e : ℝ} (he : e ≤ 1) : | ||
| 46 | 46 | have hn : 0 ≤ G.ε*G.Θ*G.G^2 := by positivity [G.epsilon_pos,G.Theta_pos] |
| 47 | 47 | have hd : G.d ≤ 1/16 := by |
| 48 | 48 | unfold error at hbound |
| 49 | - nlinarith only [hbound,hn] | |
| 49 | + linarith only [hbound,hn] | |
| 50 | 50 | have hsmall : G.ε*G.Θ*G.G^2 ≤ 1/256 := by |
| 51 | 51 | unfold error at hbound |
| 52 | - nlinarith only [hbound,G.d_nonneg] | |
| 52 | + linarith only [hbound,G.d_nonneg] | |
| 53 | 53 | have hg : 3*(G.G+G.d)+1 ≤ 5*G.G^2 := by |
| 54 | - nlinarith only [hd,G.G_lower,sq_nonneg (G.G-1)] | |
| 54 | + linarith only [hd,G.G_lower,sq_nonneg (G.G-1)] | |
| 55 | 55 | have hprod := mul_le_mul_of_nonneg_right hg |
| 56 | 56 | (mul_nonneg G.epsilon_pos.le G.Theta_pos.le) |
| 57 | 57 | have htime := mul_le_mul_of_nonneg_left G.target_le_Theta G.epsilon_pos.le |
| @@ -60,7 +60,7 @@ theorem compression_margin {e : ℝ} (he : e ≤ 1) : | ||
| 60 | 60 | have hstrong : 3*(G.G+G.d)+1 < G.compressionScale := by |
| 61 | 61 | unfold compressionScale |
| 62 | 62 | apply (lt_div_iff₀ (show 0 < 20*G.ε*G.target by positivity [G.epsilon_pos,G.target_pos])).mpr |
| 63 | - nlinarith only [hprod,htarget,hsmall,G.a_lower] | |
| 63 | + linarith only [hprod,htarget,hsmall,G.a_lower] | |
| 64 | 64 | linarith only [he,hstrong] |
| 65 | 65 | |
| 66 | 66 | theorem nextCompression_le : G.nextCompression ≤ -G.compressionScale+3*(G.G+G.d) := by |
+2 −2 Euler/ParentRenewalScaleApplication.lean View file
| @@ -13,7 +13,7 @@ namespace EulerParentRenewalScale | ||
| 13 | 13 | open EulerPacketMovingFrame EulerPacketSourceScaleChoice |
| 14 | 14 | |
| 15 | 15 | theorem sigma_mul_le_two {σ x : ℝ} (h : σ^2*x^2 ≤ 2) : σ*x ≤ 2 := by |
| 16 | - nlinarith only [h,sq_nonneg (σ*x-2)] | |
| 16 | + linarith only [h,sq_nonneg (σ*x-2)] | |
| 17 | 17 | |
| 18 | 18 | theorem tilt_small_of_cost {ι : Type*} (G : PhysicalGeometryData ι) |
| 19 | 19 | {cost : ℕ → ℝ} {η : ℝ} (n : ℕ) (hs : SmallSeries cost η) |
| @@ -36,7 +36,7 @@ theorem literal_step {ι : Type*} {V : Type} [NormedAddCommGroup V] [InnerProduc | ||
| 36 | 36 | have ht := tilt_small_of_cost G n hs hη hcost.2 |
| 37 | 37 | have hi := H.tilt_interval ht |
| 38 | 38 | rw [hy,inv_inv] at hi |
| 39 | - refine ⟨H.coupling_error.trans hcost.1,?_,?_⟩ <;> nlinarith only [hi.1,hi.2] | |
| 39 | + refine ⟨H.coupling_error.trans hcost.1,?_,?_⟩ <;> linarith only [hi.1,hi.2] | |
| 40 | 40 | |
| 41 | 41 | end EulerParentRenewalScale |
| 42 | 42 | |
+9 −9 Euler/ParentRenewalScaleCosts.lean View file
| @@ -88,8 +88,8 @@ theorem renewal_series_small {J D : ℕ} (hJ : 2 ≤ J) {C c CF X δ η : ℝ} | ||
| 88 | 88 | (hfloor : 12000/η ≤ X) (hsmall : 2*(1+errorConstant CF)*δ ≤ η) : |
| 89 | 89 | SmallSeries (renewalCost J D C c CF X) η := by |
| 90 | 90 | have hf := (div_le_iff₀ hη).mp hfloor |
| 91 | - have hfirst : 6000/X ≤ η/2 := (div_le_iff₀ hX).mpr (by nlinarith only [hf]) | |
| 92 | - have hc : errorConstant CF*δ ≤ η/2 := by nlinarith only [hsmall,hδ] | |
| 91 | + have hfirst : 6000/X ≤ η/2 := (div_le_iff₀ hX).mpr (by linarith only [hf]) | |
| 92 | + have hc : errorConstant CF*δ ≤ η/2 := by linarith only [hsmall,hδ] | |
| 93 | 93 | exact (renewal_series hJ hX hb).weaken (by linarith only [hfirst,hc]) |
| 94 | 94 | |
| 95 | 95 | /-- This uses only the coupling at the present stage. -/ |
| @@ -126,7 +126,7 @@ theorem physical_error_le_maximum {ι : Type*} (G : PhysicalGeometryData ι) | ||
| 126 | 126 | have herr : G.error ≤ CF^2*geometryError J D C c X (fun _ => 2) n := by |
| 127 | 127 | unfold PhysicalGeometryData.error geometryError |
| 128 | 128 | dsimp only |
| 129 | - nlinarith only [hmain,hds] | |
| 129 | + linarith only [hmain,hds] | |
| 130 | 130 | have hpow : G.Θ^40 ≤ sourceTheta J C (scaleSequence J X) n^60 := |
| 131 | 131 | (pow_le_pow_left₀ G.Theta_pos.le htheta 40).trans (pow_le_pow_right₀ hthetaOne (by omega)) |
| 132 | 132 | have hmax0 := geometryError_nonneg J D C c X (fun _ => 2) n (zero_le_one.trans hC) hXp |
| @@ -147,7 +147,7 @@ theorem coupling_polynomial_le {ι : Type*} (G : PhysicalGeometryData ι) : | ||
| 147 | 147 | have hs2 : G.σ^2 ≤ 1 := pow_le_one₀ G.sigma_pos.le hs1 |
| 148 | 148 | have h2 := mul_le_mul hs2 hy2 (sq_nonneg G.y) (by norm_num : (0 : ℝ) ≤ 1) |
| 149 | 149 | have h3 := mul_le_mul hs1 hy3 (pow_nonneg G.y_pos.le 3) (by norm_num : (0 : ℝ) ≤ 1) |
| 150 | - nlinarith only [hy4,h2,h3] | |
| 150 | + linarith only [hy4,h2,h3] | |
| 151 | 151 | |
| 152 | 152 | theorem actual_errors_le_cost {ι : Type*} (G : PhysicalGeometryData ι) |
| 153 | 153 | (J D : ℕ) (hJ : 2 ≤ J) (C c CF X a : ℝ) (hC : 1 ≤ C) (hCF : 1 ≤ CF) |
| @@ -176,7 +176,7 @@ theorem actual_errors_le_cost {ι : Type*} (G : PhysicalGeometryData ι) | ||
| 176 | 176 | have hnorm : 30000000*neighborStabilityConstant*G.error*G.Θ^40 ≤ |
| 177 | 177 | errorConstant CF*maximumError J D C c X n := by |
| 178 | 178 | unfold errorConstant |
| 179 | - nlinarith only [hm] | |
| 179 | + linarith only [hm] | |
| 180 | 180 | have hp := coupling_polynomial_le G |
| 181 | 181 | have hyp := mul_le_mul_of_nonneg_left hy' (by norm_num : (0 : ℝ) ≤ 10) |
| 182 | 182 | have hsp := mul_le_mul_of_nonneg_left hs (by norm_num : (0 : ℝ) ≤ 1500) |
| @@ -184,10 +184,10 @@ theorem actual_errors_le_cost {ι : Type*} (G : PhysicalGeometryData ι) | ||
| 184 | 184 | constructor |
| 185 | 185 | · unfold PhysicalGeometryData.couplingError renewalCost |
| 186 | 186 | simp only [div_eq_mul_inv,one_mul] at hyp hi ⊢ |
| 187 | - nlinarith only [hp,hyp,hnorm,hi] | |
| 187 | + linarith only [hp,hyp,hnorm,hi] | |
| 188 | 188 | · unfold PhysicalGeometryData.tiltError renewalCost |
| 189 | 189 | simp only [div_eq_mul_inv] at hsp ⊢ |
| 190 | - nlinarith only [hsp,hnorm] | |
| 190 | + linarith only [hsp,hnorm] | |
| 191 | 191 | |
| 192 | 192 | /-- Optional explicit extra cost for the next activation. The existing |
| 193 | 193 | parent-square cost also controls it after multiplication by 2*CF+1. -/ |
| @@ -230,11 +230,11 @@ theorem activation_ratio_le {J D : ℕ} (hJ : 1 ≤ J) {C c CF X δ : ℝ} | ||
| 230 | 230 | (activationCostSpec CF hCF).cost J (scaleSequence J X) n := by |
| 231 | 231 | have hp := previousShear_one_le J hJ X hX n |
| 232 | 232 | have h1 : 1+previousShear J X n ≤ 2*(previousShear J X n)^2 := by |
| 233 | - nlinarith only [hp,sq_nonneg (previousShear J X n-1)] | |
| 233 | + linarith only [hp,sq_nonneg (previousShear J X n-1)] | |
| 234 | 234 | have h2 := mul_le_mul_of_nonneg_left h1 (zero_le_one.trans hCF) |
| 235 | 235 | have he' : e ≤ (previousShear J X n)^2 := he.trans (one_le_pow₀ hp) |
| 236 | 236 | have hn : CF*(1+previousShear J X n)+e ≤ (2*CF+1)*(previousShear J X n)^2 := by |
| 237 | - nlinarith only [h2,he'] | |
| 237 | + linarith only [h2,he'] | |
| 238 | 238 | have hd := div_le_div_of_nonneg_right hn (show 0 ≤ shear J X n from (Real.exp_pos _).le) |
| 239 | 239 | have hb' := mul_le_mul_of_nonneg_left |
| 240 | 240 | (actualParentRatio_le J hJ X (zero_lt_one.trans_le hX) hb.initial_shear n) |
+23 −0 routes/s2-euler-parent-1/README.md added View file
| @@ -0,0 +1,23 @@ | ||
| 1 | +--- | |
| 2 | +issue: 11 | |
| 3 | +status: working | |
| 4 | +--- | |
| 5 | +# s2-euler-parent-1 | |
| 6 | + | |
| 7 | +The `Euler/Parent*` family: 11 files (the 11 rows of `unit.json`), each made | |
| 8 | +cheaper to elaborate by edits inside proofs only. | |
| 9 | + | |
| 10 | +All 33 changed lines are tactic lines below the `:=` of a theorem whose | |
| 11 | +statement is untouched: `nlinarith only [...]` becomes `linarith only [...]` | |
| 12 | +with the same hint list, and in `ParentPacketNeighborScaleGuard.lean` a | |
| 13 | +`simp only` list loses `← pow_mul`, a rewrite the following `ring` undid. No | |
| 14 | +import, docstring or `maxHeartbeats` changes. | |
| 15 | + | |
| 16 | +The edits are Treant's `speedup_trials` stage (TitiSkywalker/NavierStokesAndEuler, | |
| 17 | +run of 2026-12-03), carried onto main at `d956c7c` and counted there file by | |
| 18 | +file; `unit.json` has the numbers and `PR.md` says how they were taken. | |
| 19 | + | |
| 20 | +## Next | |
| 21 | + | |
| 22 | +Push, let the `challenge` and `build` checks run, and reply to the | |
| 23 | +maintainer's review. | |