src/HOLCF/cprod3.thy
changeset 243 c22b85994e17
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/HOLCF/cprod3.thy	Wed Jan 19 17:35:01 1994 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +(*  Title: 	HOLCF/cprod3.thy
     1.5 +    ID:         $Id$
     1.6 +    Author: 	Franz Regensburger
     1.7 +    Copyright   1993 Technische Universitaet Muenchen
     1.8 +
     1.9 +
    1.10 +Class instance of  * for class pcpo
    1.11 +
    1.12 +*)
    1.13 +
    1.14 +Cprod3 = Cprod2 +
    1.15 +
    1.16 +arities "*" :: (pcpo,pcpo)pcpo			(* Witness cprod2.ML *)
    1.17 +
    1.18 +consts  
    1.19 +	"@cpair"     :: "'a => 'b => ('a*'b)" ("_#_" [101,100] 100)
    1.20 +	"cop @cpair" :: "'a -> 'b -> ('a*'b)" ("cpair")
    1.21 +					(* continuous  pairing *)
    1.22 +	cfst         :: "('a*'b)->'a"
    1.23 +	csnd         :: "('a*'b)->'b"
    1.24 +	csplit       :: "('a->'b->'c)->('a*'b)->'c"
    1.25 +
    1.26 +rules 
    1.27 +
    1.28 +inst_cprod_pcpo	"UU::'a*'b = <UU,UU>"
    1.29 +
    1.30 +cpair_def	"cpair  == (LAM x y.<x,y>)"
    1.31 +cfst_def	"cfst   == (LAM p.fst(p))"
    1.32 +csnd_def	"csnd   == (LAM p.snd(p))"	
    1.33 +csplit_def	"csplit == (LAM f p.f[cfst[p]][csnd[p]])"
    1.34 +
    1.35 +end
    1.36 +
    1.37 +ML
    1.38 +
    1.39 +(* ----------------------------------------------------------------------*)
    1.40 +(* parse translations for the above mixfix                               *)
    1.41 +(* ----------------------------------------------------------------------*)
    1.42 +
    1.43 +val parse_translation = [("@cpair",mk_cinfixtr "@cpair")];
    1.44 +
    1.45 +
    1.46 +