src/HOL/Tools/datatype_package.ML
changeset 17084 fb0a80aef0be
parent 17057 0934ac31985f
child 17261 193b84a70ca4
--- a/src/HOL/Tools/datatype_package.ML	Tue Aug 16 13:54:24 2005 +0200
+++ b/src/HOL/Tools/datatype_package.ML	Tue Aug 16 15:36:28 2005 +0200
@@ -281,6 +281,9 @@
 
 end;
 
+fun name_notE th =
+    Thm.name_thm (Thm.name_of_thm th ^ "_E", th RS notE);
+      
 fun add_rules simps case_thms size_thms rec_thms inject distinct
                   weak_case_congs cong_att =
   (#1 o PureThy.add_thmss [(("simps", simps), []),
@@ -288,7 +291,7 @@
           List.concat distinct  @ rec_thms), [Simplifier.simp_add_global]),
     (("", size_thms @ rec_thms),             [RecfunCodegen.add NONE]),
     (("", List.concat inject),               [iff_add_global]),
-    (("", List.concat distinct RL [notE]),   [Classical.safe_elim_global]),
+    (("", map name_notE (List.concat distinct)),  [Classical.safe_elim_global]),
     (("", weak_case_congs),                  [cong_att])]);