src/ZF/Bool.thy
author lcp
Tue Nov 29 00:31:31 1994 +0100 (1994-11-29 ago)
changeset 753 ec86863e87c8
parent 124 858ab9a9b047
child 799 13aa1e3d8a3a
permissions -rw-r--r--
replaced "rules" by "defs"
clasohm@0
     1
(*  Title: 	ZF/bool.thy
clasohm@0
     2
    ID:         $Id$
clasohm@0
     3
    Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
clasohm@0
     4
    Copyright   1992  University of Cambridge
clasohm@0
     5
clasohm@0
     6
Booleans in Zermelo-Fraenkel Set Theory 
clasohm@0
     7
*)
clasohm@0
     8
clasohm@124
     9
Bool = ZF + "simpdata" +
clasohm@0
    10
consts
clasohm@0
    11
    "1"		::      "i"     	("1")
clasohm@0
    12
    bool        ::      "i"
clasohm@0
    13
    cond        ::      "[i,i,i]=>i"
clasohm@0
    14
    not		::	"i=>i"
clasohm@0
    15
    and         ::      "[i,i]=>i"      (infixl 70)
clasohm@0
    16
    or		::      "[i,i]=>i"      (infixl 65)
clasohm@0
    17
    xor		::      "[i,i]=>i"      (infixl 65)
clasohm@0
    18
lcp@14
    19
translations
lcp@14
    20
   "1"  == "succ(0)"
lcp@14
    21
lcp@753
    22
defs
clasohm@0
    23
    bool_def	"bool == {0,1}"
clasohm@0
    24
    cond_def	"cond(b,c,d) == if(b=1,c,d)"
clasohm@0
    25
    not_def	"not(b) == cond(b,0,1)"
clasohm@0
    26
    and_def	"a and b == cond(a,b,0)"
clasohm@0
    27
    or_def	"a or b == cond(a,1,b)"
clasohm@0
    28
    xor_def	"a xor b == cond(a,not(b),b)"
clasohm@0
    29
end