src/HOL/Tools/datatype_rep_proofs.ML
changeset 15457 1fbd4aba46e3
parent 15391 797ed46d724b
child 15531 08c8dad8e399
--- a/src/HOL/Tools/datatype_rep_proofs.ML	Mon Jan 24 17:56:18 2005 +0100
+++ b/src/HOL/Tools/datatype_rep_proofs.ML	Mon Jan 24 17:59:48 2005 +0100
@@ -57,7 +57,7 @@
 
     val [In0_inject, In1_inject, Scons_inject, Leaf_inject,
          In0_eq, In1_eq, In0_not_In1, In1_not_In0,
-         Lim_inject, Suml_inject, Sumr_inject] = map (get_thm Datatype_thy)
+         Lim_inject, Suml_inject, Sumr_inject] = map (get_thm Datatype_thy o rpair None)
         ["In0_inject", "In1_inject", "Scons_inject", "Leaf_inject",
          "In0_eq", "In1_eq", "In0_not_In1", "In1_not_In0",
          "Lim_inject", "Suml_inject", "Sumr_inject"];
@@ -261,9 +261,9 @@
     (* get axioms from theory *)
 
     val newT_iso_axms = map (fn s =>
-      (get_thm thy4 ("Abs_" ^ s ^ "_inverse"),
-       get_thm thy4 ("Rep_" ^ s ^ "_inverse"),
-       get_thm thy4 ("Rep_" ^ s))) new_type_names;
+      (get_thm thy4 ("Abs_" ^ s ^ "_inverse", None),
+       get_thm thy4 ("Rep_" ^ s ^ "_inverse", None),
+       get_thm thy4 ("Rep_" ^ s, None))) new_type_names;
 
     (*------------------------------------------------*)
     (* prove additional theorems:                     *)