Isar: fixed rep_datatype args;
authorwenzelm
Sat, 27 Oct 2001 00:05:50 +0200
changeset 11958 2ece34b9fd8e
parent 11957 f1657e0291ca
child 11959 ed914e8a0fd1
Isar: fixed rep_datatype args;
src/HOL/Tools/datatype_package.ML
--- a/src/HOL/Tools/datatype_package.ML	Sat Oct 27 00:05:14 2001 +0200
+++ b/src/HOL/Tools/datatype_package.ML	Sat Oct 27 00:05:50 2001 +0200
@@ -766,6 +766,7 @@
 val rep_datatype_i = gen_rep_datatype IsarThy.apply_theorems_i;
 
 
+
 (******************************** add datatype ********************************)
 
 fun gen_add_datatype prep_typ flat_names new_type_names dts thy =
@@ -870,8 +871,8 @@
 
 val rep_datatype_decl =
   Scan.option (Scan.repeat1 P.name) --
-    Scan.optional (P.$$$ "distinct" |-- P.!!! (P.and_list1 P.xthms1)) [] --
-    Scan.optional (P.$$$ "inject" |-- P.!!! (P.and_list1 P.xthms1)) [] --
+    Scan.optional (P.$$$ "distinct" |-- P.!!! (P.and_list1 P.xthms1)) [[]] --
+    Scan.optional (P.$$$ "inject" |-- P.!!! (P.and_list1 P.xthms1)) [[]] --
     (P.$$$ "induction" |-- P.!!! P.xthm);
 
 fun mk_rep_datatype (((opt_ts, dss), iss), ind) = #1 o rep_datatype opt_ts dss iss ind;