src/HOLCF/Tools/pcpodef_package.ML
changeset 28965 1de908189869
parent 28662 64ab5bb68d4c
child 29060 d7bde0b4bf72
--- a/src/HOLCF/Tools/pcpodef_package.ML	Wed Dec 03 21:00:39 2008 -0800
+++ b/src/HOLCF/Tools/pcpodef_package.ML	Thu Dec 04 14:43:33 2008 +0100
@@ -54,7 +54,7 @@
 fun prepare_pcpodef prep_term pcpo def name (t, vs, mx) raw_set opt_morphs thy =
   let
     val ctxt = ProofContext.init thy;
-    val full = Sign.full_name thy;
+    val full = Sign.full_bname thy;
 
     (*rhs*)
     val full_name = full name;
@@ -94,7 +94,7 @@
           |> TheoryTarget.instantiation ([full_tname], lhs_tfrees, @{sort "Porder.po"});
         val less_def' = Syntax.check_term lthy3 less_def;
         val ((_, (_, less_definition')), lthy4) = lthy3
-          |> Specification.definition (NONE, ((Name.binding ("less_" ^ name ^ "_def"), []), less_def'));
+          |> Specification.definition (NONE, ((Binding.name ("less_" ^ name ^ "_def"), []), less_def'));
         val ctxt_thy = ProofContext.init (ProofContext.theory_of lthy4);
         val less_definition = singleton (ProofContext.export lthy4 ctxt_thy) less_definition';
         val thy5 = lthy4