added mk_conj, mk_disj, mk_imp;
authorwenzelm
Mon, 04 Oct 1999 14:45:35 +0200
changeset 7690 27676b51243d
parent 7689 affe0c2fdfbf
child 7691 b7e8277fa088
added mk_conj, mk_disj, mk_imp;
src/HOL/hologic.ML
--- a/src/HOL/hologic.ML	Mon Oct 04 13:47:28 1999 +0200
+++ b/src/HOL/hologic.ML	Mon Oct 04 14:45:35 1999 +0200
@@ -20,6 +20,9 @@
   val conj: term
   val disj: term
   val imp: term
+  val mk_conj: term * term -> term
+  val mk_disj: term * term -> term
+  val mk_imp: term * term -> term
   val dest_imp: term -> term * term
   val eq_const: typ -> term
   val all_const: typ -> term
@@ -102,6 +105,10 @@
 and disj = Const ("op |", [boolT, boolT] ---> boolT)
 and imp = Const ("op -->", [boolT, boolT] ---> boolT);
 
+fun mk_conj (t1, t2) = conj $ t1 $ t2
+and mk_disj (t1, t2) = disj $ t1 $ t2
+and mk_imp (t1, t2) = imp $ t1 $ t2;
+
 fun dest_imp (Const("op -->",_) $ A $ B) = (A, B)
   | dest_imp  t = raise TERM ("dest_imp", [t]);