src/HOLCF/Cfun3.thy
author nipkow
Tue Jan 09 15:32:27 2001 +0100 (2001-01-09)
changeset 10834 a7897aebbffc
parent 3842 b55686a7b22c
child 12030 46d57d0290a2
permissions -rw-r--r--
*** empty log message ***
     1 (*  Title:      HOLCF/Cfun3.thy
     2     ID:         $Id$
     3     Author:     Franz Regensburger
     4     Copyright   1993 Technische Universitaet Muenchen
     5 
     6 Class instance of  -> for class pcpo
     7 
     8 *)
     9 
    10 Cfun3 = Cfun2 +
    11 
    12 instance "->" :: (cpo,cpo)cpo              (cpo_cfun)
    13 instance "->" :: (cpo,pcpo)pcpo            (least_cfun)
    14 
    15 default pcpo
    16 
    17 consts  
    18         Istrictify   :: "('a->'b)=>'a=>'b"
    19         strictify    :: "('a->'b)->'a->'b"
    20 defs
    21 
    22 Istrictify_def  "Istrictify f x == if x=UU then UU else f$x"    
    23 strictify_def   "strictify == (LAM f x. Istrictify f x)"
    24 
    25 consts
    26         ID      :: "('a::cpo) -> 'a"
    27         cfcomp  :: "('b->'c)->(('a::cpo)->('b::cpo))->'a->('c::cpo)"
    28 
    29 syntax  "@oo"   :: "('b->'c)=>('a->'b)=>'a->'c" ("_ oo _" [101,100] 100)
    30      
    31 translations    "f1 oo f2" == "cfcomp$f1$f2"
    32 
    33 defs
    34 
    35   ID_def        "ID ==(LAM x. x)"
    36   oo_def        "cfcomp == (LAM f g x. f$(g$x))" 
    37 
    38 end