rep_datatype now stores theorems properly.
authorberghofe
Tue, 05 Oct 1999 18:56:13 +0200
changeset 7743 64662aa3c173
parent 7742 01386eb4eab0
child 7744 f27d54c1ef39
rep_datatype now stores theorems properly.
src/HOL/Tools/datatype_package.ML
--- a/src/HOL/Tools/datatype_package.ML	Tue Oct 05 18:26:34 1999 +0200
+++ b/src/HOL/Tools/datatype_package.ML	Tue Oct 05 18:56:13 1999 +0200
@@ -612,7 +612,10 @@
     val simps = flat (distinct @ inject @ case_thms) @ size_thms @ rec_thms;
 
     val thy9 = thy8 |>
+      store_thmss "inject" new_type_names inject |>
+      store_thmss "distinct" new_type_names distinct |>
       Theory.add_path (space_implode "_" new_type_names) |>
+      PureThy.add_thms [(("induct", induction), [])] |>
       PureThy.add_thmss [(("simps", simps), [])] |>
       put_datatypes (foldr Symtab.update (dt_infos, dt_info)) |>
       Theory.parent_path;