src/HOL/Tools/Qelim/cooper.ML
changeset 32398 40a0760a00ea
parent 32264 0be31453f698
child 32429 54758ca53fd6
--- a/src/HOL/Tools/Qelim/cooper.ML	Mon Aug 24 09:49:50 2009 +0200
+++ b/src/HOL/Tools/Qelim/cooper.ML	Mon Aug 24 10:44:03 2009 +0200
@@ -246,8 +246,10 @@
              RS eq_reflection
 end;
 
-fun is_intrel (b$_$_) = domain_type (fastype_of b) = HOLogic.intT
-  | is_intrel (@{term "Not"}$(b$_$_)) = domain_type (fastype_of b) = HOLogic.intT
+fun is_intrel_type T = T = @{typ "int => int => bool"};
+
+fun is_intrel (b$_$_) = is_intrel_type (fastype_of b)
+  | is_intrel (@{term "Not"}$(b$_$_)) = is_intrel_type (fastype_of b)
   | is_intrel _ = false;
  
 fun linearize_conv ctxt vs ct = case term_of ct of