--- a/QuotMain.thy Tue Oct 20 09:31:34 2009 +0200
+++ b/QuotMain.thy Tue Oct 20 09:37:22 2009 +0200
@@ -1114,11 +1114,13 @@
(****************************)
(* some helper functions *)
+
+
ML {*
-fun mk_babs ty ty' = Const (@{const_name "Babs"}, (ty' --> @{typ bool}) --> ty --> ty)
+fun mk_babs ty ty' = Const (@{const_name "Babs"}, [ty' --> @{typ bool}, ty] ---> ty)
fun mk_ball ty = Const (@{const_name "Ball"}, [ty, ty] ---> @{typ bool})
fun mk_bex ty = Const (@{const_name "Bex"}, [ty, ty] ---> @{typ bool})
-fun mk_resp ty = Const (@{const_name Respects}, ([ty, ty] ---> @{typ bool}) --> ty --> @{typ bool})
+fun mk_resp ty = Const (@{const_name Respects}, [[ty, ty] ---> @{typ bool}, ty] ---> @{typ bool})
*}
(* applies f to the subterm of an abstractions, otherwise to the given term *)
@@ -1179,7 +1181,7 @@
cterm_of @{theory} (my_reg @{term "RR"} @{term "\<exists>x::trm. P x"})
*}
-(* my version is not eta-expanded *)
+(* my version is not eta-expanded, but that should be OK *)
ML {*
cterm_of @{theory} (regularise @{term "All (P::trm \<Rightarrow> bool)"} @{typ "trm"} @{term "RR"} @{context});
cterm_of @{theory} (my_reg @{term "RR"} @{term "All (P::trm \<Rightarrow> bool)"})