Got rid of readtm.
authorberghofe
Tue, 05 Oct 1999 15:32:16 +0200
changeset 7722 8add8fdce3f1
parent 7721 cb353d802ade
child 7723 7f073ed51193
Got rid of readtm.
src/HOL/Tools/primrec_package.ML
--- a/src/HOL/Tools/primrec_package.ML	Tue Oct 05 15:31:42 1999 +0200
+++ b/src/HOL/Tools/primrec_package.ML	Tue Oct 05 15:32:16 1999 +0200
@@ -262,7 +262,7 @@
     val sign = Theory.sign_of thy;
     val ((names, strings), srcss) = apfst split_list (split_list eqns);
     val atts = map (map (Attrib.global_attribute thy)) srcss;
-    val eqn_ts = map (readtm sign propT) strings;
+    val eqn_ts = map (term_of o Thm.read_cterm sign o rpair propT) strings;
     val rec_ts = map (fn eq => head_of (fst (HOLogic.dest_eq (HOLogic.dest_Trueprop eq)))
       handle TERM _ => primrec_eq_err sign "not a proper equation" eq) eqn_ts;
     val (_, eqn_ts') = InductivePackage.unify_consts (sign_of thy) rec_ts eqn_ts