removed pointless check (see Type_Infer.object_logic);
authorwenzelm
Sun, 17 Apr 2016 16:36:47 +0200
changeset 63002 56cf1249ee20
parent 63001 637ed69b4d46
child 63003 bf5fcc65586b
removed pointless check (see Type_Infer.object_logic);
src/HOL/Tools/Function/function_common.ML
--- a/src/HOL/Tools/Function/function_common.ML	Sun Apr 17 16:28:35 2016 +0200
+++ b/src/HOL/Tools/Function/function_common.ML	Sun Apr 17 16:36:47 2016 +0200
@@ -151,7 +151,7 @@
     (fname, qs, gs, args, rhs)
   end
 
-(*check for all sorts of errors in the input*)
+(*check for various errors in the input*)
 fun check_defs ctxt fixes eqs =
   let
     val fnames = map (fst o fst) fixes
@@ -203,17 +203,7 @@
     val _ = null not_defined
       orelse error ("No defining equations for function" ^
         plural " " "s " not_defined ^ commas_quote not_defined)
-
-    fun check_sorts ((fname, fT), _) =
-      Sorts.of_sort (Sign.classes_of (Proof_Context.theory_of ctxt)) (fT, @{sort type})
-      orelse error (cat_lines
-      ["Type of " ^ quote fname ^ " is not of sort " ^ quote "type" ^ ":",
-       Syntax.string_of_typ (Config.put show_sorts true ctxt) fT])
-
-    val _ = map check_sorts fixes
-  in
-    ()
-  end
+  in () end
 
 
 (* preprocessors *)