Commit 2023-08-10 22:19 057299dc
View on Github →feat: Add a DecidableEq
instance for Polynomial
(#5942)
Add a DecidableEq
instance for Polynomial
(in the presence of DecidableEq
for coefficients).
This instance is the companion of an analogue instance for MvPolynomial
, and it allows to use if… then… else for Polynomial
without having to open Classical
.
This also makes Polynomial.instNormalizationMonoid
computable, by defining it in terms of this new instance.