src/Pure/Isar/object_logic.ML
changeset 35626 06197484c6ad
parent 35625 9c818cab0dd0
child 36610 bafd82950e24
--- a/src/Pure/Isar/object_logic.ML	Sun Mar 07 12:19:47 2010 +0100
+++ b/src/Pure/Isar/object_logic.ML	Sun Mar 07 12:47:02 2010 +0100
@@ -8,7 +8,6 @@
 sig
   val get_base_sort: theory -> sort option
   val add_base_sort: sort -> theory -> theory
-  val typedecl: binding * string list * mixfix -> theory -> typ * theory
   val add_judgment: binding * typ * mixfix -> theory -> theory
   val add_judgment_cmd: binding * string * mixfix -> theory -> theory
   val judgment_name: theory -> string
@@ -82,24 +81,6 @@
   else (SOME S, judgment, atomize_rulify));
 
 
-(* typedecl *)
-
-fun typedecl (b, vs, mx) thy =
-  let
-    val base_sort = get_base_sort thy;
-    val _ = has_duplicates (op =) vs andalso
-      error ("Duplicate parameters in type declaration " ^ quote (Binding.str_of b));
-    val name = Sign.full_name thy b;
-    val n = length vs;
-    val T = Type (name, map (fn v => TFree (v, [])) vs);
-  in
-    thy
-    |> Sign.add_types [(b, n, mx)]
-    |> (case base_sort of NONE => I | SOME S => AxClass.axiomatize_arity (name, replicate n S, S))
-    |> pair T
-  end;
-
-
 (* add judgment *)
 
 local