begin
:: deftheorem defines FALSE XBOOLEAN:def 1 :
FALSE = 0 ;
:: deftheorem defines TRUE XBOOLEAN:def 2 :
TRUE = 1;
:: deftheorem Def3 defines boolean XBOOLEAN:def 3 :
for p being set holds
( p is boolean iff ( p = FALSE or p = TRUE ) );
:: deftheorem defines 'not' XBOOLEAN:def 4 :
for p being boolean number holds 'not' p = 1 - p;
:: deftheorem defines '&' XBOOLEAN:def 5 :
for p, q being boolean number holds p '&' q = p * q;
:: deftheorem defines 'or' XBOOLEAN:def 6 :
for p, q being boolean number holds p 'or' q = 'not' (('not' p) '&' ('not' q));
:: deftheorem defines => XBOOLEAN:def 7 :
for p, q being boolean number holds p => q = ('not' p) 'or' q;
:: deftheorem defines <=> XBOOLEAN:def 8 :
for p, q being boolean number holds p <=> q = (p => q) '&' (q => p);
:: deftheorem defines 'nand' XBOOLEAN:def 9 :
for p, q being boolean number holds p 'nand' q = 'not' (p '&' q);
:: deftheorem defines 'nor' XBOOLEAN:def 10 :
for p, q being boolean number holds p 'nor' q = 'not' (p 'or' q);
:: deftheorem defines 'xor' XBOOLEAN:def 11 :
for p, q being boolean number holds p 'xor' q = 'not' (p <=> q);
:: deftheorem defines '\' XBOOLEAN:def 12 :
for p, q being boolean number holds p '\' q = p '&' ('not' q);
begin
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
begin
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem
theorem