src/HOLCF/Cprod3.thy
author lcp
Wed, 17 Aug 1994 10:33:23 +0200
changeset 538 b4fe3da03449
parent 442 13ac1fd0a14d
child 625 119391dd1d59
permissions -rw-r--r--
ZF/func/fun_extend3: new ZF/func/cons_fun_eq: simplified proof

(*  Title: 	HOLCF/cprod3.thy
    ID:         $Id$
    Author: 	Franz Regensburger
    Copyright   1993 Technische Universitaet Muenchen


Class instance of  * for class pcpo

*)

Cprod3 = Cprod2 +

arities "*" :: (pcpo,pcpo)pcpo			(* Witness cprod2.ML *)

consts  
	"@cpair"     :: "'a => 'b => ('a*'b)" ("_#_" [101,100] 100)
	"cop @cpair" :: "'a -> 'b -> ('a*'b)" ("cpair")
					(* continuous  pairing *)
	cfst         :: "('a*'b)->'a"
	csnd         :: "('a*'b)->'b"
	csplit       :: "('a->'b->'c)->('a*'b)->'c"

rules 

inst_cprod_pcpo	"(UU::'a*'b) = <UU,UU>"

cpair_def	"cpair  == (LAM x y.<x,y>)"
cfst_def	"cfst   == (LAM p.fst(p))"
csnd_def	"csnd   == (LAM p.snd(p))"	
csplit_def	"csplit == (LAM f p.f[cfst[p]][csnd[p]])"

end

ML

(* ----------------------------------------------------------------------*)
(* parse translations for the above mixfix                               *)
(* ----------------------------------------------------------------------*)

val parse_translation = [("@cpair",mk_cinfixtr "@cpair")];