2278
|
1 |
(* Title: HOLCF/Up3.thy
|
|
2 |
ID: $Id$
|
|
3 |
Author: Franz Regensburger
|
|
4 |
Copyright 1993 Technische Universitaet Muenchen
|
|
5 |
|
|
6 |
|
|
7 |
Class instance of ('a)u for class pcpo
|
|
8 |
|
|
9 |
*)
|
|
10 |
|
|
11 |
Up3 = Up2 +
|
|
12 |
|
|
13 |
arities "u" :: (pcpo)pcpo (* Witness up2.ML *)
|
|
14 |
|
|
15 |
consts
|
|
16 |
up :: "'a -> ('a)u"
|
|
17 |
fup :: "('a->'c)-> ('a)u -> 'c"
|
|
18 |
|
|
19 |
rules
|
|
20 |
|
|
21 |
inst_up_pcpo "(UU::('a)u) = UU_up"
|
|
22 |
|
|
23 |
defs
|
|
24 |
up_def "up == (LAM x.Iup(x))"
|
|
25 |
fup_def "fup == (LAM f p.Ifup(f)(p))"
|
|
26 |
|
|
27 |
translations
|
|
28 |
|
|
29 |
"case l of up`x => t1" == "fup`(LAM x.t1)`l"
|
|
30 |
|
|
31 |
(* start 8bit 1 *)
|
|
32 |
translations
|
|
33 |
|
|
34 |
"case l of up`x => t1" == "fup`(¤x.t1)`l"
|
|
35 |
(* end 8bit 1 *)
|
|
36 |
|
|
37 |
end
|
|
38 |
|
|
39 |
|
|
40 |
|