Skip to content

Commit 9bf532e

Browse files
committed
chore replace many instances of 'linarith' with 'omega'
1 parent d1fa45b commit 9bf532e

33 files changed

Lines changed: 60 additions & 60 deletions

File tree

Mathlib/Algebra/Homology/HomotopyCategory/DegreewiseSplit.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ noncomputable def mappingConeHomOfDegreewiseSplitIso :
115115
have s_g := (σ (p + 1)).s_g
116116
dsimp at r_f s_g ⊢
117117
simp only [mappingConeHomOfDegreewiseSplitXIso, mappingCone.ext_from_iff _ _ _ rfl,
118-
mappingCone.inl_v_d_assoc _ (p + 1) _ (p + 1 + 1) (by linarith) (by linarith),
118+
mappingCone.inl_v_d_assoc _ (p + 1) _ (p + 1 + 1) (by linarith) (by omega),
119119
cocycleOfDegreewiseSplit, r_f, Int.reduceNeg, Cochain.ofHom_v, sub_comp, assoc,
120120
Hom.comm, comp_sub, mappingCone.inl_v_fst_v_assoc, mappingCone.inl_v_snd_v_assoc,
121121
shiftFunctor_obj_X', zero_comp, sub_zero, homOfDegreewiseSplit_f,

Mathlib/Algebra/Homology/HomotopyCategory/HomComplex.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,7 @@ lemma δ_comp {n₁ n₂ n₁₂ : ℤ} (z₁ : Cochain F G n₁) (z₂ : Cochai
491491
dsimp
492492
rw [z₁.comp_v _ (add_assoc n₁ n₂ 1).symm p _ q rfl (by omega),
493493
Cochain.comp_v _ _ (show n₁ + 1 + n₂ = n₁ + n₂ + 1 by omega) p (p+n₁+1) q
494-
(by linarith) (by omega),
494+
(by omega) (by omega),
495495
δ_v (n₁ + n₂) _ rfl (z₁.comp z₂ rfl) p q hpq (p + n₁ + n₂) _ (by omega) rfl,
496496
z₁.comp_v z₂ rfl p _ _ rfl rfl,
497497
z₁.comp_v z₂ rfl (p+1) (p+n₁+1) q (by omega) (by omega),

Mathlib/Algebra/Homology/HomotopyCategory/HomComplexShift.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ lemma rightUnshift_v {n' a : ℤ} (γ : Cochain K (L⟦a⟧) n') (n : ℤ) (hn :
8585
def leftUnshift {n' a : ℤ} (γ : Cochain (K⟦a⟧) L n') (n : ℤ) (hn : n + a = n') :
8686
Cochain K L n :=
8787
Cochain.mk (fun p q hpq => (a * n' + ((a * (a-1))/2)).negOnePow •
88-
(K.shiftFunctorObjXIso a (p - a) p (by linarith)).inv ≫ γ.v (p-a) q (by omega))
88+
(K.shiftFunctorObjXIso a (p - a) p (by omega)).inv ≫ γ.v (p-a) q (by omega))
8989

9090
lemma leftUnshift_v {n' a : ℤ} (γ : Cochain (K⟦a⟧) L n') (n : ℤ) (hn : n + a = n')
9191
(p q : ℤ) (hpq : p + n = q) (p' : ℤ) (hp' : p' + n' = q) :
@@ -373,7 +373,7 @@ lemma leftShift_comp (a n' : ℤ) (hn' : n + a = n') {m t t' : ℤ} (γ' : Cocha
373373
(γ.comp γ' h).leftShift a t' ht' = (a * m).negOnePow • (γ.leftShift a n' hn').comp γ'
374374
(by rw [← ht', ← h, ← hn', add_assoc, add_comm a, add_assoc]) := by
375375
ext p q hpq
376-
have h' : n' + m = t' := by linarith
376+
have h' : n' + m = t' := by omega
377377
dsimp
378378
simp only [Cochain.comp_v _ _ h' p (p + n') q rfl (by omega),
379379
γ.leftShift_v a n' hn' p (p + n') rfl (p + a) (by omega),

Mathlib/Algebra/Polynomial/Module/Basic.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ theorem smul_single_apply (i : ℕ) (f : R[X]) (m : M) (n : ℕ) :
153153
· rw [if_neg h, ite_eq_right_iff]
154154
intro e
155155
exfalso
156-
linarith
156+
omega
157157

158158
theorem smul_apply (f : R[X]) (g : PolynomialModule R M) (n : ℕ) :
159159
(f • g) n = ∑ x ∈ Finset.antidiagonal n, f.coeff x.1 • g x.2 := by

Mathlib/AlgebraicTopology/AlternatingFaceMapComplex.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ theorem d_squared (n : ℕ) : objD X (n + 1) ≫ objD X n = 0 := by
8282
intro ij hij
8383
simp only [S, φ, Finset.mem_univ, Finset.compl_filter, Finset.mem_filter, true_and,
8484
Fin.val_succ, Fin.coe_castLT] at hij ⊢
85-
linarith
85+
omega
8686
· -- φ : S → Sᶜ is injective
8787
rintro ⟨i, j⟩ hij ⟨i', j'⟩ hij' h
8888
rw [Prod.mk.inj_iff]

Mathlib/AlgebraicTopology/DoldKan/Faces.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ theorem induction {Y : C} {n q : ℕ} {φ : Y ⟶ X _[n + 1]} (v : HigherFacesVa
196196
swap
197197
· rw [Fin.le_iff_val_le_val]
198198
dsimp
199-
linarith
199+
omega
200200
simp only [← assoc, v j (by omega), zero_comp]
201201
· -- in the last case, a=m, q=1 and j=a+1
202202
rw [X.δ_comp_δ_self'_assoc]

Mathlib/AlgebraicTopology/DoldKan/NCompGamma.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ theorem PInfty_comp_map_mono_eq_zero (X : SimplicialObject C) {n : ℕ} {Δ' : S
7373
· simp only [op_comp, X.map_comp, assoc, PInfty_f]
7474
erw [(HigherFacesVanish.of_P _ _).comp_δ_eq_zero_assoc _ hj₁, zero_comp]
7575
by_contra
76-
exact hj₁ (by simp only [Fin.ext_iff, Fin.val_zero]; linarith)
76+
exact hj₁ (by simp only [Fin.ext_iff, Fin.val_zero]; omega)
7777

7878
@[reassoc]
7979
theorem Γ₀_obj_termwise_mapMono_comp_PInfty (X : SimplicialObject C) {Δ Δ' : SimplexCategory}

Mathlib/Analysis/Distribution/FourierSchwartz.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ noncomputable def fourierTransformCLM : 𝓢(V, E) →L[𝕜] 𝓢(V, E) := by
7171
have : (p.1 + integrablePower (volume : Measure V), p.2) ∈ (Finset.range
7272
(n + integrablePower (volume : Measure V) + 1) ×ˢ Finset.range (k + 1)) := by
7373
simp [hp.2]
74-
linarith
74+
omega
7575
apply Finset.le_sup this (f := fun p ↦ SchwartzMap.seminorm 𝕜 p.1 p.2 (E := V) (F := E))
7676
_ = _ := by simp [mul_assoc]
7777

Mathlib/Analysis/InnerProductSpace/TwoDim.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def rightAngleRotationAux₂ : E →ₗᵢ[ℝ] E :=
211211
have : Finset.card {x} = 1 := Finset.card_singleton x
212212
have : finrank ℝ K + finrank ℝ Kᗮ = finrank ℝ E := K.finrank_add_finrank_orthogonal
213213
have : finrank ℝ E = 2 := Fact.out
214-
linarith
214+
omega
215215
obtain ⟨w, hw₀⟩ : ∃ w : Kᗮ, w ≠ 0 := exists_ne 0
216216
have hw' : ⟪x, (w : E)⟫ = 0 := Submodule.mem_orthogonal_singleton_iff_inner_right.mp w.2
217217
have hw : (w : E) ≠ 0 := fun h => hw₀ (Submodule.coe_eq_zero.mp h)

Mathlib/Analysis/Normed/Algebra/Norm.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def toRingNorm (f : MulRingNorm R) : RingNorm R where
188188
/-- A multiplicative ring norm is power-multiplicative. -/
189189
theorem isPowMul {A : Type*} [Ring A] (f : MulRingNorm A) : IsPowMul f := fun x n hn => by
190190
cases n
191-
· exfalso; linarith
191+
· omega
192192
· rw [map_pow]
193193

194194
end MulRingNorm

0 commit comments

Comments
 (0)