src/CTT/Bool.thy
author wenzelm
Wed, 09 Jul 1997 17:00:34 +0200
changeset 3511 da4dd8b7ced4
parent 1474 3f7d67927fe2
child 3837 d7f033c74b38
permissions -rw-r--r--
removed obsolete init_pps and init_thy_reader;

(*  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