src/Pure/axclass.ML
changeset 67629 357737ccb138
parent 67628 bea024ea14ae
child 70387 35dd9212bf29
--- a/src/Pure/axclass.ML	Fri Feb 16 18:29:11 2018 +0100
+++ b/src/Pure/axclass.ML	Fri Feb 16 18:55:42 2018 +0100
@@ -420,7 +420,7 @@
 
     val args = Name.invent_names Name.context Name.aT Ss;
     val T = Type (t, map TFree args);
-    val std_vars = map (fn (a, S) => SOME (Thm.global_ctyp_of thy' (TVar ((a, 0), [])))) args;
+    val std_vars = map (fn (a, _) => SOME (Thm.global_ctyp_of thy' (TVar ((a, 0), [])))) args;
 
     val missing_params = Sign.complete_sort thy' [c]
       |> maps (these o Option.map #params o try (get_info thy'))
@@ -456,7 +456,6 @@
   let
     val ctxt = Proof_Context.init_global thy;
     val arity = Proof_Context.cert_arity ctxt raw_arity;
-    val names = map (prefix arity_prefix) (Logic.name_arities arity);
     val props = Logic.mk_arities arity;
     val ths =
       Goal.prove_common ctxt NONE [] [] props
@@ -598,9 +597,6 @@
     |-> fold (add o Drule.export_without_context o snd)
   end;
 
-fun class_const c =
-  (Logic.const_of_class c, Term.itselfT (Term.aT []) --> propT);
-
 fun class_const_dep c =
   ((Defs.Const, Logic.const_of_class c), [Term.aT []]);