src/HOLCF/Sprod0.thy
author paulson
Wed, 13 Nov 1996 10:47:08 +0100
changeset 2183 8d42a7bccf0b
parent 1479 21eb5e156d91
child 2278 d63ffafce255
permissions -rw-r--r--
Updated version and date
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1479
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
     1
(*  Title:      HOLCF/sprod0.thy
243
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
     2
    ID:         $Id$
1479
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
     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
Strict product
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
Sprod0 = Cfun3 +
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    10
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    11
(* new type for strict product *)
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    12
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    13
types "**" 2        (infixr 20)
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    14
1479
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    15
arities "**" :: (pcpo,pcpo)term 
243
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    16
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    17
consts
1479
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    18
  Sprod         :: "('a => 'b => bool)set"
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    19
  Spair_Rep     :: "['a,'b] => ['a,'b] => bool"
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    20
  Rep_Sprod     :: "('a ** 'b) => ('a => 'b => bool)"
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    21
  Abs_Sprod     :: "('a => 'b => bool) => ('a ** 'b)"
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    22
  Ispair        :: "['a,'b] => ('a ** 'b)"
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    23
  Isfst         :: "('a ** 'b) => 'a"
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    24
  Issnd         :: "('a ** 'b) => 'b"  
243
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    25
1168
74be52691d62 The curried version of HOLCF is now just called HOLCF. The old
regensbu
parents: 1150
diff changeset
    26
defs
1479
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    27
  Spair_Rep_def         "Spair_Rep == (%a b. %x y.
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    28
                                (~a=UU & ~b=UU --> x=a  & y=b ))"
243
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    29
1479
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    30
  Sprod_def             "Sprod == {f. ? a b. f = Spair_Rep a b}"
243
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    31
1168
74be52691d62 The curried version of HOLCF is now just called HOLCF. The old
regensbu
parents: 1150
diff changeset
    32
rules
243
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    33
  (*faking a type definition... *)
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    34
  (* "**" is isomorphic to Sprod *)
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    35
1479
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    36
  Rep_Sprod             "Rep_Sprod(p):Sprod"            
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    37
  Rep_Sprod_inverse     "Abs_Sprod(Rep_Sprod(p)) = p"   
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    38
  Abs_Sprod_inverse     "f:Sprod ==> Rep_Sprod(Abs_Sprod(f)) = f"
243
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    39
1168
74be52691d62 The curried version of HOLCF is now just called HOLCF. The old
regensbu
parents: 1150
diff changeset
    40
defs
243
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    41
   (*defining the abstract constants*)
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    42
1479
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    43
  Ispair_def    "Ispair a b == Abs_Sprod(Spair_Rep a b)"
243
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    44
1479
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    45
  Isfst_def     "Isfst(p) == @z.
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    46
                                        (p=Ispair UU UU --> z=UU)
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    47
                &(! a b. ~a=UU & ~b=UU & p=Ispair a b   --> z=a)"  
243
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    48
1479
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    49
  Issnd_def     "Issnd(p) == @z.
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    50
                                        (p=Ispair UU UU  --> z=UU)
21eb5e156d91 expanded tabs
clasohm
parents: 1274
diff changeset
    51
                &(! a b. ~a=UU & ~b=UU & p=Ispair a b    --> z=b)"  
243
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    52
1274
ea0668a1c0ba added 8bit pragmas
regensbu
parents: 1168
diff changeset
    53
(* start 8bit 1 *)
ea0668a1c0ba added 8bit pragmas
regensbu
parents: 1168
diff changeset
    54
(* end 8bit 1 *)
ea0668a1c0ba added 8bit pragmas
regensbu
parents: 1168
diff changeset
    55
243
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    56
end
c22b85994e17 Franz Regensburger's Higher-Order Logic of Computable Functions embedding LCF
nipkow
parents:
diff changeset
    57