src/CTT/Bool.thy
author paulson
Mon, 05 Mar 2001 15:25:11 +0100
changeset 11193 851c90b23a9e
parent 3837 d7f033c74b38
child 17441 5b5feca0344a
permissions -rw-r--r--
reorganization of HOL/UNITY, moving examples to subdirectories Simple and Comp

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