
(/VERSIONCHECK 2) 

(DEFPARAMETER |BinaryTreeCategory;CAT| 'NIL) 

(DEFPARAMETER |BinaryTreeCategory;AL| 'NIL) 

(DEFUN |BinaryTreeCategory| (#0=#:G1820)
  (LET (#1=#:G1821)
    (COND
      ((SETQ #1#
             (|assoc| #2=(|devaluate| #0#) |BinaryTreeCategory;AL|))
       (CDR #1#))
      (T (SETQ |BinaryTreeCategory;AL|
               (|cons5| (CONS #2#
                              (SETQ #1# (|BinaryTreeCategory;| #0#)))
                        |BinaryTreeCategory;AL|))
         #1#)))) 

(DEFUN |BinaryTreeCategory;| (|t#1|)
  (PROG (#0=#:G1819)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|BinaryTreeCategory;CAT|)
                         ('T
                          (LETT |BinaryTreeCategory;CAT|
                                (|Join| (|BinaryRecursiveAggregate|
                                         '|t#1|)
                                        (|shallowlyMutable|)
                                        (|finiteAggregate|)
                                        (|mkCategory| '|domain|
                                         '(((|node| ($ $ |t#1| $)) T))
                                         NIL 'NIL NIL))
                                . #1=(|BinaryTreeCategory|))))) . #1#)
        (SETELT #0# 0 (LIST '|BinaryTreeCategory| (|devaluate| |t#1|))))))) 
