Generalised the type of map_poly
authorpaulson <lp15@cam.ac.uk>
Thu, 29 Sep 2016 11:24:36 +0100
changeset 63954 fb03766658f4
parent 63953 b5d7806c9396
child 63955 51a3d38d2281
child 63965 d510b816ea41
Generalised the type of map_poly
src/HOL/Library/Polynomial_Factorial.thy
--- a/src/HOL/Library/Polynomial_Factorial.thy	Wed Sep 28 17:02:06 2016 +0100
+++ b/src/HOL/Library/Polynomial_Factorial.thy	Thu Sep 29 11:24:36 2016 +0100
@@ -223,7 +223,7 @@
 subsection \<open>Mapping polynomials\<close>
 
 definition map_poly 
-     :: "('a :: comm_semiring_0 \<Rightarrow> 'b :: comm_semiring_0) \<Rightarrow> 'a poly \<Rightarrow> 'b poly" where
+     :: "('a :: zero \<Rightarrow> 'b :: zero) \<Rightarrow> 'a poly \<Rightarrow> 'b poly" where
   "map_poly f p = Poly (map f (coeffs p))"
 
 lemma map_poly_0 [simp]: "map_poly f 0 = 0"