src/HOLCF/Sprod3.thy
author paulson
Thu, 26 Sep 1996 15:14:23 +0200
changeset 2033 639de962ded4
parent 1479 21eb5e156d91
child 2278 d63ffafce255
permissions -rw-r--r--
Ran expandshort; used stac instead of ssubst

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

Class instance of  ** for class pcpo
*)

Sprod3 = Sprod2 +

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

consts  
        spair        :: "'a -> 'b -> ('a**'b)" (* continuous strict pairing *)
        sfst         :: "('a**'b)->'a"
        ssnd         :: "('a**'b)->'b"
        ssplit       :: "('a->'b->'c)->('a**'b)->'c"

syntax  
        "@stuple"    :: "['a, args] => 'a ** 'b"        ("(1'(|_,/ _|'))")

translations
        "(|x, y, z|)"   == "(|x, (|y, z|)|)"
        "(|x, y|)"      == "spair`x`y"

rules 

inst_sprod_pcpo "(UU::'a**'b) = Ispair UU UU"

defs
spair_def       "spair  == (LAM x y.Ispair x y)"
sfst_def        "sfst   == (LAM p.Isfst p)"
ssnd_def        "ssnd   == (LAM p.Issnd p)"     
ssplit_def      "ssplit == (LAM f. strictify`(LAM p.f`(sfst`p)`(ssnd`p)))"

(* start 8bit 1 *)
(* end 8bit 1 *)

end