src/Pure/Isar/specification.ML
changeset 71214 5727bcc3c47c
parent 71213 39ccdbbed539
child 71217 2dee5cd42fde
--- a/src/Pure/Isar/specification.ML	Mon Dec 02 13:34:02 2019 +0100
+++ b/src/Pure/Isar/specification.ML	Mon Dec 02 15:04:38 2019 +0100
@@ -217,8 +217,7 @@
       map ((apsnd o map) (prep_att vars_ctxt) o fst) raw_concls ~~ map close concls;
 
     val spec_name =
-      Sign.full_name thy
-        (Binding.conglomerate (if null decls then map (#1 o #1) specs else map (#1 o #1) decls));
+      Binding.conglomerate (if null decls then map (#1 o #1) specs else map (#1 o #1) decls);
 
 
     (*consts*)
@@ -270,7 +269,7 @@
       |> Local_Theory.define_internal ((b, mx), ((Binding.suffix_name "_raw" name, []), rhs));
 
     val th = prove lthy2 raw_th;
-    val lthy3 = lthy2 |> Spec_Rules.add const_name Spec_Rules.equational [lhs] [th];
+    val lthy3 = lthy2 |> Spec_Rules.add b Spec_Rules.equational [lhs] [th];
 
     val ([(def_name, [th'])], lthy4) = lthy3
       |> Local_Theory.notes [((name, atts), [([th], [])])];