Sign.exists_stamp;
authorwenzelm
Thu, 18 Jan 2001 20:36:31 +0100
changeset 10930 7c7a7b0e1d0c
parent 10929 ccceb5fb517d
child 10931 ef2b1dd40db9
Sign.exists_stamp;
src/HOL/Tools/datatype_package.ML
src/Pure/theory.ML
--- a/src/HOL/Tools/datatype_package.ML	Thu Jan 18 20:36:08 2001 +0100
+++ b/src/HOL/Tools/datatype_package.ML	Thu Jan 18 20:36:31 2001 +0100
@@ -716,7 +716,7 @@
     val (thy8, weak_case_congs) = DatatypeAbsProofs.prove_weak_case_congs new_type_names
       [descr] sorts thy7;
     val (thy9, size_thms) =
-      if exists (equal "NatArith") (Sign.stamp_names_of (Theory.sign_of thy8)) then
+      if Sign.exists_stamp "NatArith" (Theory.sign_of thy8) then
         DatatypeAbsProofs.prove_size_thms false new_type_names
           [descr] sorts reccomb_names rec_thms thy8
       else (thy8, []);
--- a/src/Pure/theory.ML	Thu Jan 18 20:36:08 2001 +0100
+++ b/src/Pure/theory.ML	Thu Jan 18 20:36:31 2001 +0100
@@ -141,7 +141,7 @@
 
 (*check for some theory*)
 fun requires thy name what =
-  if exists (equal name) (Sign.stamp_names_of (sign_of thy)) then ()
+  if Sign.exists_stamp name (sign_of thy) then ()
   else error ("Require theory " ^ quote name ^ " as an ancestor for " ^ what);
 
 fun assert_super thy1 thy2 =