src/HOL/Tools/semiring_normalizer.ML
changeset 44064 5bce8ff0d9ae
parent 40077 c8a9eaaa2f59
child 46497 89ccf66aa73d
--- a/src/HOL/Tools/semiring_normalizer.ML	Mon Aug 08 08:55:49 2011 -0700
+++ b/src/HOL/Tools/semiring_normalizer.ML	Mon Aug 08 09:52:09 2011 -0700
@@ -185,14 +185,14 @@
   let
     fun numeral_is_const ct =
       case term_of ct of
-       Const (@{const_name Rings.divide},_) $ a $ b =>
+       Const (@{const_name Fields.divide},_) $ a $ b =>
          can HOLogic.dest_number a andalso can HOLogic.dest_number b
-     | Const (@{const_name Rings.inverse},_)$t => can HOLogic.dest_number t
+     | Const (@{const_name Fields.inverse},_)$t => can HOLogic.dest_number t
      | t => can HOLogic.dest_number t
     fun dest_const ct = ((case term_of ct of
-       Const (@{const_name Rings.divide},_) $ a $ b=>
+       Const (@{const_name Fields.divide},_) $ a $ b=>
         Rat.rat_of_quotient (snd (HOLogic.dest_number a), snd (HOLogic.dest_number b))
-     | Const (@{const_name Rings.inverse},_)$t => 
+     | Const (@{const_name Fields.inverse},_)$t => 
                    Rat.inv (Rat.rat_of_int (snd (HOLogic.dest_number t)))
      | t => Rat.rat_of_int (snd (HOLogic.dest_number t))) 
        handle TERM _ => error "ring_dest_const")