src/HOL/Tools/Quotient/quotient_def.ML
changeset 37562 21ab339715cd
parent 37561 19fca77829ea
child 37563 6cf28a1dfd75
--- a/src/HOL/Tools/Quotient/quotient_def.ML	Sun Jun 27 08:33:01 2010 +0100
+++ b/src/HOL/Tools/Quotient/quotient_def.ML	Mon Jun 28 07:32:51 2010 +0200
@@ -49,7 +49,7 @@
 fun quotient_def ((optbind, mx), (attr, (lhs, rhs))) lthy =
 let
   val (lhs_str, lhs_ty) = dest_Free lhs handle TERM _ => error "Constant already defined."
-  val _ = if null (strip_abs_vars rhs) then () else error "The definiens cannot be an abstraction"
+  val _ = if is_Const rhs then () else error "The definiens should be a constant"
   
   fun sanity_test NONE _ = true
     | sanity_test (SOME bind) str =