src/Pure/Proof/extraction.ML
changeset 29579 cb520b766e00
parent 29270 0eade173f77e
child 29635 31d14e9fa0da
--- a/src/Pure/Proof/extraction.ML	Wed Jan 21 16:47:03 2009 +0100
+++ b/src/Pure/Proof/extraction.ML	Wed Jan 21 16:47:04 2009 +0100
@@ -733,11 +733,11 @@
              val (def_thms, thy') = if t = nullt then ([], thy) else
                thy
                |> Sign.add_consts_i [(extr_name s vs, fastype_of ft, NoSyn)]
-               |> PureThy.add_defs false [((extr_name s vs ^ "_def",
+               |> PureThy.add_defs false [((Binding.name (extr_name s vs ^ "_def"),
                     Logic.mk_equals (head_of (strip_abs_body fu), ft)), [])]
            in
              thy'
-             |> PureThy.store_thm (corr_name s vs,
+             |> PureThy.store_thm (Binding.name (corr_name s vs),
                   Thm.varifyT (funpow (length (OldTerm.term_vars corr_prop))
                     (Thm.forall_elim_var 0) (forall_intr_frees
                       (ProofChecker.thm_of_proof thy'