
(/VERSIONCHECK 2) 

(DEFPARAMETER |BinaryRecursiveAggregate;CAT| 'NIL) 

(DEFPARAMETER |BinaryRecursiveAggregate;AL| 'NIL) 

(DEFUN |BinaryRecursiveAggregate| (#0=#:G1845)
  (LET (#1=#:G1846)
    (COND
      ((SETQ #1#
             (|assoc| #2=(|devaluate| #0#)
                      |BinaryRecursiveAggregate;AL|))
       (CDR #1#))
      (T (SETQ |BinaryRecursiveAggregate;AL|
               (|cons5| (CONS #2#
                              (SETQ #1#
                                    (|BinaryRecursiveAggregate;| #0#)))
                        |BinaryRecursiveAggregate;AL|))
         #1#)))) 

(DEFUN |BinaryRecursiveAggregate;| (|t#1|)
  (PROG (#0=#:G1844)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|BinaryRecursiveAggregate;CAT|)
                         ('T
                          (LETT |BinaryRecursiveAggregate;CAT|
                                (|Join| (|RecursiveAggregate| '|t#1|)
                                        (|mkCategory| '|domain|
                                         '(((|left| ($ $)) T)
                                           ((|elt| ($ $ "left")) T)
                                           ((|right| ($ $)) T)
                                           ((|elt| ($ $ "right")) T)
                                           ((|setelt| ($ $ "left" $))
                                            (|has| $
                                             (|shallowlyMutable|)))
                                           ((|setleft!| ($ $ $))
                                            (|has| $
                                             (|shallowlyMutable|)))
                                           ((|setelt| ($ $ "right" $))
                                            (|has| $
                                             (|shallowlyMutable|)))
                                           ((|setright!| ($ $ $))
                                            (|has| $
                                             (|shallowlyMutable|))))
                                         NIL 'NIL NIL))
                                . #1=(|BinaryRecursiveAggregate|))))) . #1#)
        (SETELT #0# 0
                (LIST '|BinaryRecursiveAggregate| (|devaluate| |t#1|))))))) 
