src/ZF/Bool.thy
author lcp
Thu, 24 Nov 1994 10:23:41 +0100
changeset 737 436019ca97d7
parent 124 858ab9a9b047
child 753 ec86863e87c8
permissions -rw-r--r--
cons_fun_eq: modified strange uses of classical reasoner
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     1
(*  Title: 	ZF/bool.thy
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     2
    ID:         $Id$
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     3
    Author: 	Lawrence C Paulson, Cambridge University Computer Laboratory
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     4
    Copyright   1992  University of Cambridge
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     5
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     6
Booleans in Zermelo-Fraenkel Set Theory 
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     7
*)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
     8
124
858ab9a9b047 made pseudo theories for all ML files;
clasohm
parents: 14
diff changeset
     9
Bool = ZF + "simpdata" +
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    10
consts
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    11
    "1"		::      "i"     	("1")
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    12
    bool        ::      "i"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    13
    cond        ::      "[i,i,i]=>i"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    14
    not		::	"i=>i"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    15
    and         ::      "[i,i]=>i"      (infixl 70)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    16
    or		::      "[i,i]=>i"      (infixl 65)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    17
    xor		::      "[i,i]=>i"      (infixl 65)
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    18
14
1c0926788772 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 0
diff changeset
    19
translations
1c0926788772 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 0
diff changeset
    20
   "1"  == "succ(0)"
1c0926788772 ex/{bin.ML,comb.ML,prop.ML}: replaced NewSext by Syntax.simple_sext
lcp
parents: 0
diff changeset
    21
0
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    22
rules
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    23
    bool_def	"bool == {0,1}"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    24
    cond_def	"cond(b,c,d) == if(b=1,c,d)"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    25
    not_def	"not(b) == cond(b,0,1)"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    26
    and_def	"a and b == cond(a,b,0)"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    27
    or_def	"a or b == cond(a,1,b)"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    28
    xor_def	"a xor b == cond(a,not(b),b)"
a5a9c433f639 Initial revision
clasohm
parents:
diff changeset
    29
end