
(/VERSIONCHECK 2) 

(DEFPARAMETER |SetAggregate;CAT| 'NIL) 

(DEFPARAMETER |SetAggregate;AL| 'NIL) 

(DEFUN |SetAggregate| (#0=#:G1816)
  (LET (#1=#:G1817)
    (COND
      ((SETQ #1# (|assoc| #2=(|devaluate| #0#) |SetAggregate;AL|))
       (CDR #1#))
      (T (SETQ |SetAggregate;AL|
               (|cons5| (CONS #2# (SETQ #1# (|SetAggregate;| #0#)))
                        |SetAggregate;AL|))
         #1#)))) 

(DEFUN |SetAggregate;| (|t#1|)
  (PROG (#0=#:G1815)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|SetAggregate;CAT|)
                         ('T
                          (LETT |SetAggregate;CAT|
                                (|Join| (|SetCategory|)
                                        (|Collection| '|t#1|)
                                        (|partiallyOrderedSet|)
                                        (|mkCategory| '|domain|
                                         '(((< ((|Boolean|) $ $)) T)
                                           ((|brace| ($)) T)
                                           ((|brace|
                                             ($ (|List| |t#1|)))
                                            T)
                                           ((|set| ($)) T)
                                           ((|set| ($ (|List| |t#1|)))
                                            T)
                                           ((|intersect| ($ $ $)) T)
                                           ((|difference| ($ $ $)) T)
                                           ((|difference| ($ $ |t#1|))
                                            T)
                                           ((|symmetricDifference|
                                             ($ $ $))
                                            T)
                                           ((|subset?|
                                             ((|Boolean|) $ $))
                                            T)
                                           ((|union| ($ $ $)) T)
                                           ((|union| ($ $ |t#1|)) T)
                                           ((|union| ($ |t#1| $)) T))
                                         NIL
                                         '((|Boolean|) (|List| |t#1|))
                                         NIL))
                                . #1=(|SetAggregate|))))) . #1#)
        (SETELT #0# 0 (LIST '|SetAggregate| (|devaluate| |t#1|))))))) 
