src/HOL/Tools/Old_Datatype/old_datatype_data.ML
changeset 59582 0fbed69ff081
parent 59271 c448752e8b9d
child 69593 3dda49e08b9d
--- a/src/HOL/Tools/Old_Datatype/old_datatype_data.ML	Tue Mar 03 19:08:04 2015 +0100
+++ b/src/HOL/Tools/Old_Datatype/old_datatype_data.ML	Wed Mar 04 19:53:18 2015 +0100
@@ -87,12 +87,12 @@
 val info_of_case = Symtab.lookup o #cases o Data.get;
 
 fun ctrs_of_exhaust exhaust =
-  Logic.strip_imp_prems (prop_of exhaust) |>
+  Logic.strip_imp_prems (Thm.prop_of exhaust) |>
   map (head_of o snd o HOLogic.dest_eq o HOLogic.dest_Trueprop o the_single
     o Logic.strip_assums_hyp);
 
 fun case_of_case_rewrite case_rewrite =
-  head_of (fst (HOLogic.dest_eq (HOLogic.dest_Trueprop (prop_of case_rewrite))));
+  head_of (fst (HOLogic.dest_eq (HOLogic.dest_Trueprop (Thm.prop_of case_rewrite))));
 
 fun ctr_sugar_of_info ({exhaust, nchotomy, inject, distinct, case_rewrites, case_cong,
     case_cong_weak, split, split_asm, ...} : Old_Datatype_Aux.info) =