Defs.define: const_typargs;
authorwenzelm
Mon, 08 May 2006 17:40:08 +0200
changeset 19592 856cd7460168
parent 19591 e7036e812702
child 19593 c52a4360a41d
Defs.define: const_typargs;
src/Pure/theory.ML
--- a/src/Pure/theory.ML	Mon May 08 17:40:07 2006 +0200
+++ b/src/Pure/theory.ML	Mon May 08 17:40:08 2006 +0200
@@ -266,7 +266,7 @@
     val rhs_consts = fold_aterms (fn Const const => insert (op =) const | _ => I) rhs [];
     val _ = check_overloading thy overloaded lhs_const;
   in
-    defs |> Defs.define (Sign.the_const_type thy) true (Context.theory_name thy)
+    defs |> Defs.define (Sign.const_typargs thy) true (Context.theory_name thy)
       name (prep_const thy lhs_const) (map (prep_const thy) rhs_consts)
   end
   handle ERROR msg => cat_error msg (Pretty.string_of (Pretty.block
@@ -302,7 +302,7 @@
     fun const_of (Const const) = const
       | const_of (Free _) = error "Attempt to finalize variable (or undeclared constant)"
       | const_of _ = error "Attempt to finalize non-constant term";
-    fun specify (c, T) = Defs.define (Sign.the_const_type thy) false (Context.theory_name thy)
+    fun specify (c, T) = Defs.define (Sign.const_typargs thy) false (Context.theory_name thy)
       (c ^ " axiom") (prep_const thy (c, T)) [];
     val finalize = specify o check_overloading thy overloaded o
       const_of o Sign.no_vars (Sign.pp thy) o prep_term thy;