Skip to content

Commit

Permalink
removed redundant DecidableEq instance
Browse files Browse the repository at this point in the history
  • Loading branch information
quangvdao committed Oct 31, 2024
1 parent d877c16 commit 5078654
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mathlib/Algebra/MvPolynomial/CommRing.lean
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ section Degrees
theorem degreeOf_neg (i : σ) (p : MvPolynomial σ R) : degreeOf i (-p) = degreeOf i p := by
rw [degreeOf, degreeOf, degrees_neg]

theorem degreeOf_sub_le [DecidableEq σ] (i : σ) (p q : MvPolynomial σ R) :
theorem degreeOf_sub_le (i : σ) (p q : MvPolynomial σ R) :
degreeOf i (p - q) ≤ max (degreeOf i p) (degreeOf i q) := by
simpa only [sub_eq_add_neg, degreeOf_neg] using degreeOf_add_le i p (-q)

Expand Down

0 comments on commit 5078654

Please sign in to comment.