src/HOLCF/ssum3.thy
author paulson
Thu, 21 Mar 1996 13:02:26 +0100
changeset 1601 0ef6ea27ab15
parent 243 c22b85994e17
permissions -rw-r--r--
Changes required by removal of the theory argument of Theorem

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

Class instance of  ++ for class pcpo
*)

Ssum3 = Ssum2 +

arities "++" :: (pcpo,pcpo)pcpo			(* Witness ssum2.ML *)

consts  
	sinl	     :: "'a -> ('a++'b)" 
	sinr	     :: "'b -> ('a++'b)" 
	when         :: "('a->'c)->('b->'c)->('a ++ 'b)-> 'c"

rules 

inst_ssum_pcpo	"UU::'a++'b = Isinl(UU)"

sinl_def	"sinl   == (LAM x.Isinl(x))"
sinr_def	"sinr   == (LAM x.Isinr(x))"
when_def	"when   == (LAM f g s.Iwhen(f)(g)(s))"

end