src/HOLCF/ccc1.thy
author lcp
Tue, 21 Jun 1994 17:20:34 +0200
changeset 435 ca5356bd315a
parent 243 c22b85994e17
child 625 119391dd1d59
permissions -rw-r--r--
Addition of cardinals and order types, various tidying

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

Merge Theories Cprof, Sprod, Ssum, Lift, Fix and
define constants for categorical reasoning
*)

ccc1 = Cprod3 + Sprod3 + Ssum3 + Lift3 + Fix +

consts

	ID 		:: "'a -> 'a"

	"@oo"		:: "('b->'c)=>('a->'b)=>'a->'c" ("_ oo _" [101,100] 100)
	"cop @oo"	:: "('b->'c)->('a->'b)->'a->'c" ("cfcomp")


rules

  ID_def	"ID ==(LAM x.x)"
  oo_def	"cfcomp == (LAM f g x.f[g[x]])" 

end

ML

(* ----------------------------------------------------------------------*)
(* parse translations for the above mixfix  oo                           *)
(* ----------------------------------------------------------------------*)

val parse_translation = [("@oo",mk_cinfixtr "@oo")];
val print_translation = [];