src/HOL/Tools/Presburger/cooper_dec.ML
changeset 17485 c39871c52977
parent 17378 105519771c67
child 17521 0f1c48de39f5
--- a/src/HOL/Tools/Presburger/cooper_dec.ML	Mon Sep 19 15:12:13 2005 +0200
+++ b/src/HOL/Tools/Presburger/cooper_dec.ML	Mon Sep 19 16:38:35 2005 +0200
@@ -483,13 +483,13 @@
 
 fun evalc_atom at = case at of  
   (Const (p,_) $ s $ t) =>
-   ( case assoc (operations,p) of 
+   ( case AList.lookup (op =) operations p of 
     SOME f => ((if (f ((dest_numeral s),(dest_numeral t))) then HOLogic.true_const 
                 else HOLogic.false_const)  
     handle _ => at) 
       | _ =>  at) 
       |Const("Not",_)$(Const (p,_) $ s $ t) =>(  
-  case assoc (operations,p) of 
+  case AList.lookup (op =) operations p of 
     SOME f => ((if (f ((dest_numeral s),(dest_numeral t))) 
                then HOLogic.false_const else HOLogic.true_const)  
     handle _ => at)