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"
     1 (*  Title: 	ZF/bool.thy
     2     ID:         $Id$
     3     Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
     4     Copyright   1992  University of Cambridge
     5 
     6 Booleans in Zermelo-Fraenkel Set Theory 
     7 *)
     8 
     9 Bool = ZF + "simpdata" +
    10 consts
    11     "1"		::      "i"     	("1")
    12     bool        ::      "i"
    13     cond        ::      "[i,i,i]=>i"
    14     not		::	"i=>i"
    15     and         ::      "[i,i]=>i"      (infixl 70)
    16     or		::      "[i,i]=>i"      (infixl 65)
    17     xor		::      "[i,i]=>i"      (infixl 65)
    18 
    19 translations
    20    "1"  == "succ(0)"
    21 
    22 defs
    23     bool_def	"bool == {0,1}"
    24     cond_def	"cond(b,c,d) == if(b=1,c,d)"
    25     not_def	"not(b) == cond(b,0,1)"
    26     and_def	"a and b == cond(a,b,0)"
    27     or_def	"a or b == cond(a,1,b)"
    28     xor_def	"a xor b == cond(a,not(b),b)"
    29 end