
(/VERSIONCHECK 2) 

(PUT '|BOOLEAN;test;2$;1| '|SPADreplace| '(XLAM (|a|) |a|)) 

(DEFUN |BOOLEAN;test;2$;1| (|a| $) |a|) 

(DEFUN |BOOLEAN;nt| (|b| $) (COND (|b| 'NIL) ('T 'T))) 

(PUT '|BOOLEAN;true;$;3| '|SPADreplace| '(XLAM NIL 'T)) 

(DEFUN |BOOLEAN;true;$;3| ($) 'T) 

(PUT '|BOOLEAN;false;$;4| '|SPADreplace| '(XLAM NIL NIL)) 

(DEFUN |BOOLEAN;false;$;4| ($) NIL) 

(DEFUN |BOOLEAN;not;2$;5| (|b| $) (COND (|b| 'NIL) ('T 'T))) 

(DEFUN |BOOLEAN;~;2$;6| (|b| $) (COND (|b| 'NIL) ('T 'T))) 

(DEFUN |BOOLEAN;and;3$;7| (|a| |b| $) (COND (|a| |b|) ('T 'NIL))) 

(DEFUN |BOOLEAN;/\\;3$;8| (|a| |b| $) (COND (|a| |b|) ('T 'NIL))) 

(DEFUN |BOOLEAN;or;3$;9| (|a| |b| $) (COND (|a| 'T) ('T |b|))) 

(DEFUN |BOOLEAN;\\/;3$;10| (|a| |b| $) (COND (|a| 'T) ('T |b|))) 

(DEFUN |BOOLEAN;xor;3$;11| (|a| |b| $)
  (COND (|a| (|BOOLEAN;nt| |b| $)) ('T |b|))) 

(DEFUN |BOOLEAN;nor;3$;12| (|a| |b| $)
  (COND (|a| 'NIL) ('T (|BOOLEAN;nt| |b| $)))) 

(DEFUN |BOOLEAN;nand;3$;13| (|a| |b| $)
  (COND (|a| (|BOOLEAN;nt| |b| $)) ('T 'T))) 

(PUT '|BOOLEAN;=;3$;14| '|SPADreplace| '|BooleanEquality|) 

(DEFUN |BOOLEAN;=;3$;14| (|a| |b| $) (|BooleanEquality| |a| |b|)) 

(DEFUN |BOOLEAN;implies;3$;15| (|a| |b| $) (COND (|a| |b|) ('T 'T))) 

(DEFUN |BOOLEAN;<;3$;16| (|a| |b| $)
  (COND (|b| (COND (|a| 'NIL) ('T 'T))) ('T 'NIL))) 

(PUT '|BOOLEAN;size;Nni;17| '|SPADreplace| '(XLAM NIL 2)) 

(DEFUN |BOOLEAN;size;Nni;17| ($) 2) 

(DEFUN |BOOLEAN;index;Pi$;18| (|i| $)
  (COND ((SPADCALL |i| (QREFELT $ 25)) 'NIL) ('T 'T))) 

(DEFUN |BOOLEAN;lookup;$Pi;19| (|a| $) (COND (|a| 1) ('T 2))) 

(DEFUN |BOOLEAN;random;$;20| ($)
  (COND ((SPADCALL (RANDOM 2) (QREFELT $ 25)) 'NIL) ('T 'T))) 

(DEFUN |BOOLEAN;convert;$If;21| (|x| $)
  (COND
    (|x| (SPADCALL (SPADCALL "true" (QREFELT $ 32)) (QREFELT $ 34)))
    ('T (SPADCALL (SPADCALL "false" (QREFELT $ 32)) (QREFELT $ 34))))) 

(DEFUN |BOOLEAN;coerce;$Of;22| (|x| $)
  (COND
    (|x| (SPADCALL "true" (QREFELT $ 37)))
    ('T (SPADCALL "false" (QREFELT $ 37))))) 

(DEFUN |Boolean| ()
  (PROG ()
    (RETURN
      (PROG (#0=#:G1874)
        (RETURN
          (COND
            ((LETT #0# (HGET |$ConstructorCache| '|Boolean|)
                   . #1=(|Boolean|))
             (|CDRwithIncrement| (CDAR #0#)))
            ('T
             (UNWIND-PROTECT
               (PROG1 (CDDAR (HPUT |$ConstructorCache| '|Boolean|
                                   (LIST
                                    (CONS NIL (CONS 1 (|Boolean;|))))))
                 (LETT #0# T . #1#))
               (COND
                 ((NOT #0#) (HREM |$ConstructorCache| '|Boolean|))))))))))) 

(DEFUN |Boolean;| ()
  (PROG (|dv$| $ |pv$|)
    (RETURN
      (PROGN
        (LETT |dv$| '(|Boolean|) . #0=(|Boolean|))
        (LETT $ (GETREFV 41) . #0#)
        (QSETREFV $ 0 |dv$|)
        (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#))
        (|haddProp| |$ConstructorCache| '|Boolean| NIL (CONS 1 $))
        (|stuffDomainSlots| $)
        $)))) 

(MAKEPROP '|Boolean| '|infovec|
    (LIST '#(NIL NIL NIL NIL NIL NIL (|Boolean|) |BOOLEAN;test;2$;1|
             (CONS IDENTITY
                   (FUNCALL (|dispatchFunction| |BOOLEAN;true;$;3|) $))
             (CONS IDENTITY
                   (FUNCALL (|dispatchFunction| |BOOLEAN;false;$;4|) $))
             |BOOLEAN;not;2$;5| |BOOLEAN;~;2$;6| |BOOLEAN;and;3$;7|
             |BOOLEAN;/\\;3$;8| |BOOLEAN;or;3$;9| |BOOLEAN;\\/;3$;10|
             |BOOLEAN;xor;3$;11| |BOOLEAN;nor;3$;12|
             |BOOLEAN;nand;3$;13| |BOOLEAN;=;3$;14|
             |BOOLEAN;implies;3$;15| |BOOLEAN;<;3$;16|
             (|NonNegativeInteger|) |BOOLEAN;size;Nni;17| (|Integer|)
             (0 . |even?|) (|PositiveInteger|) |BOOLEAN;index;Pi$;18|
             |BOOLEAN;lookup;$Pi;19| |BOOLEAN;random;$;20| (|String|)
             (|Symbol|) (5 . |coerce|) (|InputForm|) (10 . |convert|)
             |BOOLEAN;convert;$If;21| (|OutputForm|) (15 . |message|)
             |BOOLEAN;coerce;$Of;22| (|List| $) (|SingleInteger|))
          '#(~= 20 ~ 26 |xor| 31 |true| 37 |test| 41 |size| 46 |random|
             50 |or| 54 |not| 60 |nor| 65 |nand| 71 |min| 77 |max| 83
             |lookup| 89 |latex| 94 |index| 99 |implies| 104 |hash| 110
             |false| 115 |enumerate| 119 |convert| 123 |coerce| 128
             |and| 133 |\\/| 139 >= 145 > 151 = 157 <= 163 < 169 |/\\|
             175)
          'NIL
          (CONS (|makeByteWordVec2| 1 '(0 0 0 0 0 0 0))
                (CONS '#(|OrderedSet&| |Finite&| |Logic&|
                         |SetCategory&| NIL |BasicType&| NIL)
                      (CONS '#((|OrderedSet|) (|Finite|) (|Logic|)
                               (|SetCategory|) (|ConvertibleTo| 33)
                               (|BasicType|) (|CoercibleTo| 36))
                            (|makeByteWordVec2| 40
                                '(1 24 6 0 25 1 31 0 30 32 1 33 0 31 34
                                  1 36 0 30 37 2 0 6 0 0 1 1 0 0 0 11 2
                                  0 0 0 0 16 0 0 0 8 1 0 6 0 7 0 0 22
                                  23 0 0 0 29 2 0 0 0 0 14 1 0 0 0 10 2
                                  0 0 0 0 17 2 0 0 0 0 18 2 0 0 0 0 1 2
                                  0 0 0 0 1 1 0 26 0 28 1 0 30 0 1 1 0
                                  0 26 27 2 0 0 0 0 20 1 0 40 0 1 0 0 0
                                  9 0 0 39 1 1 0 33 0 35 1 0 36 0 38 2
                                  0 0 0 0 12 2 0 0 0 0 15 2 0 6 0 0 1 2
                                  0 6 0 0 1 2 0 6 0 0 19 2 0 6 0 0 1 2
                                  0 6 0 0 21 2 0 0 0 0 13)))))
          '|lookupComplete|)) 

(MAKEPROP '|Boolean| 'NILADIC T) 
