removed is_Trueprop (use can dest_Trueprop'' instead);
authorwenzelm
Sat, 04 Nov 2006 19:25:40 +0100
changeset 21173 663a7b39894c
parent 21172 eea3c9048c7a
child 21174 4d733b76b5fa
removed is_Trueprop (use can dest_Trueprop'' instead); tuned list_all;
src/HOL/hologic.ML
--- a/src/HOL/hologic.ML	Sat Nov 04 19:25:39 2006 +0100
+++ b/src/HOL/hologic.ML	Sat Nov 04 19:25:40 2006 +0100
@@ -17,7 +17,6 @@
   val dest_setT: typ -> typ
   val Trueprop: term
   val mk_Trueprop: term -> term
-  val is_Trueprop: term -> bool
   val dest_Trueprop: term -> term
   val conj: term
   val disj: term
@@ -122,9 +121,6 @@
 
 fun mk_Trueprop P = Trueprop $ P;
 
-fun is_Trueprop (Const ("Trueprop", _) $ _) = true
-  | is_Trueprop t = false;
-
 fun dest_Trueprop (Const ("Trueprop", _) $ P) = P
   | dest_Trueprop t = raise TERM ("dest_Trueprop", [t]);
 
@@ -165,7 +161,7 @@
 
 fun all_const T = Const ("All", [T --> boolT] ---> boolT);
 fun mk_all (x, T, P) = all_const T $ absfree (x, T, P);
-fun list_all (vs,x) = Library.foldr (fn ((x, T), P) => all_const T $ Abs (x, T, P)) (vs, x);
+fun list_all (xs, t) = fold_rev (fn (x, T) => fn P => all_const T $ Abs (x, T, P)) xs t;
 
 fun exists_const T = Const ("Ex", [T --> boolT] ---> boolT);
 fun mk_exists (x, T, P) = exists_const T $ absfree (x, T, P);