src/Pure/Isar/specification.ML
changeset 71217 2dee5cd42fde
parent 71214 5727bcc3c47c
child 71674 48ff625687f5
--- a/src/Pure/Isar/specification.ML	Mon Dec 02 16:15:27 2019 +0100
+++ b/src/Pure/Isar/specification.ML	Mon Dec 02 16:28:23 2019 +0100
@@ -269,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 b Spec_Rules.equational [lhs] [th];
+    val lthy3 = lthy2 |> Spec_Rules.add name Spec_Rules.equational [lhs] [th];
 
     val ([(def_name, [th'])], lthy4) = lthy3
       |> Local_Theory.notes [((name, atts), [([th], [])])];