src/HOL/Tools/res_axioms.ML
changeset 24959 119793c84647
parent 24937 340523598914
child 25007 cd497f6fe8d1
--- a/src/HOL/Tools/res_axioms.ML	Thu Oct 11 15:59:31 2007 +0200
+++ b/src/HOL/Tools/res_axioms.ML	Thu Oct 11 16:05:23 2007 +0200
@@ -77,12 +77,11 @@
                 val argsx = map (fn T => Free(gensym"vsk", T)) extraTs
                 val args = argsx @ args0
                 val cT = extraTs ---> Ts ---> T
-                val c = Const (Sign.full_name thy cname, cT)
                 val rhs = list_abs_free (map dest_Free args, HOLogic.choice_const T $ xtp)
                         (*Forms a lambda-abstraction over the formal parameters*)
                 val _ = Output.debug (fn () => "declaring the constant " ^ cname)
-                val thy' =
-                  Sign.add_consts_authentic [Markup.property_internal] [(cname, cT, NoSyn)] thy
+                val (c, thy') =
+                  Sign.declare_const [Markup.property_internal] (cname, cT, NoSyn) thy
                            (*Theory is augmented with the constant, then its def*)
                 val cdef = cname ^ "_def"
                 val thy'' = Theory.add_defs_i true false [(cdef, equals cT $ c $ rhs)] thy'