src/HOL/Library/Formal_Power_Series.thy
changeset 30746 d6915b738bd9
parent 30488 5c4c3a9e9102
child 30747 b8ca7e450de3
--- a/src/HOL/Library/Formal_Power_Series.thy	Thu Mar 19 22:05:37 2009 +0100
+++ b/src/HOL/Library/Formal_Power_Series.thy	Fri Mar 27 14:43:47 2009 +0000
@@ -389,6 +389,14 @@
 
 instance fps :: (idom) idom ..
 
+instantiation fps :: (comm_ring_1) number_ring
+begin
+definition number_of_fps_def: "(number_of k::'a fps) = of_int k"
+
+instance 
+by (intro_classes, rule number_of_fps_def)
+end
+
 subsection{* Inverses of formal power series *}
 
 declare setsum_cong[fundef_cong]