clarified name: avoid clashes;
authorwenzelm
Mon, 02 Dec 2019 16:28:23 +0100
changeset 71217 2dee5cd42fde
parent 71216 e64c249d3d98
child 71218 73b313432d8a
clarified name: avoid clashes;
src/Pure/Isar/specification.ML
--- 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], [])])];