author | wenzelm |
Tue, 04 Nov 1997 16:57:52 +0100 | |
changeset 4128 | 42584a53a3e7 |
parent 3842 | b55686a7b22c |
child 5033 | 06f03dc5a1dc |
permissions | -rw-r--r-- |
1479 | 1 |
(* Title: HOLCF/sprod3.thy |
243
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
2 |
ID: $Id$ |
1479 | 3 |
Author: Franz Regensburger |
243
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
4 |
Copyright 1993 Technische Universitaet Muenchen |
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
5 |
|
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
6 |
Class instance of ** for class pcpo |
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
7 |
*) |
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
8 |
|
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
9 |
Sprod3 = Sprod2 + |
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
10 |
|
2640 | 11 |
instance "**" :: (pcpo,pcpo)pcpo (least_sprod,cpo_sprod) |
243
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
12 |
|
752
b89462f9d5f1
----------------------------------------------------------------------
regensbu
parents:
657
diff
changeset
|
13 |
consts |
2394 | 14 |
spair :: "'a -> 'b -> ('a**'b)" (* continuous strict pairing *) |
15 |
sfst :: "('a**'b)->'a" |
|
16 |
ssnd :: "('a**'b)->'b" |
|
17 |
ssplit :: "('a->'b->'c)->('a**'b)->'c" |
|
243
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
18 |
|
1168
74be52691d62
The curried version of HOLCF is now just called HOLCF. The old
regensbu
parents:
752
diff
changeset
|
19 |
syntax |
2640 | 20 |
"@stuple" :: "['a, args] => 'a ** 'b" ("(1'(|_,/ _|'))") |
752
b89462f9d5f1
----------------------------------------------------------------------
regensbu
parents:
657
diff
changeset
|
21 |
|
1168
74be52691d62
The curried version of HOLCF is now just called HOLCF. The old
regensbu
parents:
752
diff
changeset
|
22 |
translations |
1479 | 23 |
"(|x, y, z|)" == "(|x, (|y, z|)|)" |
24 |
"(|x, y|)" == "spair`x`y" |
|
625 | 25 |
|
1168
74be52691d62
The curried version of HOLCF is now just called HOLCF. The old
regensbu
parents:
752
diff
changeset
|
26 |
defs |
3842 | 27 |
spair_def "spair == (LAM x y. Ispair x y)" |
28 |
sfst_def "sfst == (LAM p. Isfst p)" |
|
29 |
ssnd_def "ssnd == (LAM p. Issnd p)" |
|
30 |
ssplit_def "ssplit == (LAM f. strictify`(LAM p. f`(sfst`p)`(ssnd`p)))" |
|
243
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
31 |
|
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
32 |
end |
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
33 |
|
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
34 |
|
c22b85994e17
Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff
changeset
|
35 |