strip_prod_type = HOLogic.prodT_factors;
authorwenzelm
Sun, 16 Jul 2000 21:00:32 +0200
changeset 9373 78a11a353473
parent 9372 7834e56e2277
child 9374 153853af318b
strip_prod_type = HOLogic.prodT_factors;
TFL/usyntax.sml
--- a/TFL/usyntax.sml	Sun Jul 16 21:00:10 2000 +0200
+++ b/TFL/usyntax.sml	Sun Jul 16 21:00:32 2000 +0200
@@ -38,9 +38,7 @@
 val alpha  = mk_vartype "'a"
 val beta   = mk_vartype "'b"
 
-fun strip_prod_type (Type("*", [ty1,ty2])) =
-	strip_prod_type ty1 @ strip_prod_type ty2
-  | strip_prod_type ty = [ty];
+val strip_prod_type = HOLogic.prodT_factors;
 
 
 
@@ -114,7 +112,7 @@
    in list_comb(c,[disj1,disj2])
    end;
 
-fun prod_ty ty1 ty2 = Type("*", [ty1,ty2]);
+fun prod_ty ty1 ty2 = HOLogic.mk_prodT (ty1,ty2);
 
 local
 fun mk_uncurry(xt,yt,zt) =