src/HOL/Tools/Predicate_Compile/predicate_compile_core.ML
changeset 36035 d82682936c52
parent 36034 ee84eac07290
child 36037 b1b21a8f6362
--- a/src/HOL/Tools/Predicate_Compile/predicate_compile_core.ML	Mon Mar 29 17:30:53 2010 +0200
+++ b/src/HOL/Tools/Predicate_Compile/predicate_compile_core.ML	Mon Mar 29 17:30:53 2010 +0200
@@ -736,7 +736,7 @@
   Alt_Names_Data.map (Symtab.insert_list (op =) (pred_name, (mode, fun_name)))
 
 fun alternative_function_of thy pred_name mode =
-  AList.lookup (op =) (Symtab.lookup_list (Alt_Names_Data.get thy) pred_name) mode
+  AList.lookup eq_mode (Symtab.lookup_list (Alt_Names_Data.get thy) pred_name) mode
 
 (* datastructures and setup for generic compilation *)