src/CTT/bool.thy
author clasohm
Sun, 17 Oct 1993 18:03:47 +0100
changeset 60 379872528c16
parent 0 a5a9c433f639
permissions -rw-r--r--
renamed: S4.thy to s4.thy, S43.thy to s43.thy, T.thy to t.thy

(*  Title: 	CTT/bool
    ID:         $Id$
    Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
    Copyright   1991  University of Cambridge

The two-element type (booleans and conditionals)
*)

Bool = CTT +

consts Bool		:: "t"
       true,false	:: "i"
       cond		:: "[i,i,i]=>i"
rules
  Bool_def	"Bool == T+T"
  true_def	"true == inl(tt)"
  false_def	"false == inr(tt)"
  cond_def	"cond(a,b,c) == when(a, %u.b, %u.c)"
end