Skip to content

Commit 7fac62b

Browse files
committed
chore: replace some uses of lia with omega
1 parent abc669d commit 7fac62b

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

Mathlib/Analysis/Analytic/Order.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ theorem AnalyticAt.analyticOrderAt_sub_eq_one_of_deriv_ne_zero {x : 𝕜} (hf :
320320
· contrapose! hf'
321321
simp_rw [sub_eq_iff_eq_add] at hfF
322322
rw [EventuallyEq.deriv_eq hfF, deriv_add_const, deriv_fun_smul (by fun_prop) (by fun_prop),
323-
deriv_fun_pow (by fun_prop), sub_self, zero_pow (by omega), zero_pow (by omega),
323+
deriv_fun_pow (by fun_prop), sub_self, zero_pow (by lia), zero_pow (by lia),
324324
mul_zero, zero_mul, zero_smul, zero_smul, add_zero]
325325

326326
lemma natCast_le_analyticOrderAt_iff_iteratedDeriv_eq_zero [CharZero 𝕜] [CompleteSpace E]

Mathlib/CategoryTheory/Triangulated/Opposite/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ lemma shiftFunctorCompIsoId_op_inv_app (X : Cᵒᵖ) (n m : ℤ) (hnm : n + m =
315315
(shiftFunctorOpIso C m n (by omega)).inv.app (Opposite.op (X.unop⟦m⟧)) ≫
316316
((shiftFunctorOpIso C n m hnm).inv.app X)⟦m⟧' := by
317317
simp [shiftFunctorCompIsoId, shiftFunctorZero_op_inv_app X,
318-
shiftFunctorAdd'_op_hom_app X n m 0 hnm m n 0 hnm (by omega) (add_zero 0)]
318+
shiftFunctorAdd'_op_hom_app X n m 0 hnm m n 0 hnm (by lia) (add_zero 0)]
319319

320320
set_option backward.isDefEq.respectTransparency false in
321321
@[reassoc]

Mathlib/LinearAlgebra/Lagrange.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ theorem leadingCoeff_eq_sum
507507
replace hP : #s = deg + 1 := WithBot.coe_eq_coe.mp hP
508508
have hdegree : P.degree = ↑(#s - 1) := hdeg.symm.trans (WithBot.coe_eq_coe.mpr (by grind))
509509
rw [leadingCoeff, natDegree_eq_of_degree_eq_some hdegree]
510-
exact coeff_eq_sum hvs (by rw [hdegree]; norm_cast; omega)
510+
exact coeff_eq_sum hvs (by rw [hdegree]; norm_cast; lia)
511511

512512
end Interpolate
513513

Mathlib/Order/Interval/Finset/Gaps.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ theorem intervalGapsWithin_snd_of_lt (hj : j < k) :
9292
congr
9393
ext
9494
simp only [coe_castPred, val_natCast, Nat.mod_succ_eq_iff_lt]
95-
omega
95+
lia
9696

9797
theorem intervalGapsWithin_mapsTo : (Set.Iio k).MapsTo
9898
(fun (j : ℕ) ↦ ((F.intervalGapsWithin h a b j).2, (F.intervalGapsWithin h a b j.succ).1))
@@ -128,7 +128,7 @@ theorem intervalGapsWithin_le_fst {a b : α} (hFab : ∀ ⦃z⦄, z ∈ F → a
128128
by_cases hj : j = 0
129129
· simp [hj]
130130
· have := hFab (F.intervalGapsWithin_mapsTo h a b (x := j - 1) (by grind))
131-
have hj₀ : j - 1 + 1 = j := by omega
131+
have hj₀ : j - 1 + 1 = j := by lia
132132
simp only [Nat.succ_eq_add_one, hj₀] at this
133133
grind
134134

Mathlib/RingTheory/Finiteness/Ideal.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ theorem exists_radical_pow_le_of_fg {R : Type*} [CommSemiring R] (I : Ideal R) (
6363
refine fun i _ => mul_le_right.trans ?_
6464
obtain h | h := le_or_gt n i
6565
· exact mul_le_right.trans ((pow_le_pow_right h).trans hn)
66-
· exact mul_le_left.trans ((pow_le_pow_right (by omega)).trans hm)
66+
· exact mul_le_left.trans ((pow_le_pow_right (by lia)).trans hm)
6767

6868
theorem exists_pow_le_of_le_radical_of_fg_radical {R : Type*} [CommSemiring R] {I J : Ideal R}
6969
(hIJ : I ≤ J.radical) (hJ : J.radical.FG) :

Mathlib/RingTheory/PowerSeries/Schroder.lean

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,19 @@ lemma coeff_X_mul_largeSchroderSeriesSeries_sq (n : ℕ) (hn : 0 < n) :
7676
split
7777
next h =>
7878
simp_all only [mul_eq_mul_right_iff]
79-
simp [coeff_X_mul_largeSchroderSeries x (by omega)]
79+
simp [coeff_X_mul_largeSchroderSeries x (by lia)]
8080
next h =>
8181
simp_all only [not_lt, nonpos_iff_eq_zero, coeff_zero_eq_constantCoeff, map_mul,
8282
constantCoeff_X, constantCoeff_largeSchroderSeries, mul_one, tsub_zero, zero_mul]
83-
rw [this, sum_range_eq_add_Ico _ (by omega)]
83+
rw [this, sum_range_eq_add_Ico _ (by lia)]
8484
simp only [lt_self_iff_false, reduceIte, zero_add]
8585
have : (∑ x ∈ Ico 1 n, if 0 < x then largeSchroder (x - 1) * largeSchroder (n - x) else 0) =
8686
∑ x ∈ Ico 1 n, largeSchroder (x - 1) * largeSchroder (n - x) := by
8787
apply sum_congr rfl
8888
intros x hx
8989
have hx' : 0 < x := by grind
9090
rw [if_pos hx']
91-
rw [this, sum_Ico_eq_sum_range, show n = n - 1 + 1 by omega,
91+
rw [this, sum_Ico_eq_sum_range, show n = n - 1 + 1 by lia,
9292
sum_range_succ]
9393
grind [largeSchroder_zero]
9494

0 commit comments

Comments
 (0)