
(/VERSIONCHECK 2) 

(DEFPARAMETER |FiniteSetAggregate;CAT| 'NIL) 

(DEFPARAMETER |FiniteSetAggregate;AL| 'NIL) 

(DEFUN |FiniteSetAggregate| (#0=#:G1823)
  (LET (#1=#:G1824)
    (COND
      ((SETQ #1#
             (|assoc| #2=(|devaluate| #0#) |FiniteSetAggregate;AL|))
       (CDR #1#))
      (T (SETQ |FiniteSetAggregate;AL|
               (|cons5| (CONS #2#
                              (SETQ #1# (|FiniteSetAggregate;| #0#)))
                        |FiniteSetAggregate;AL|))
         #1#)))) 

(DEFUN |FiniteSetAggregate;| (|t#1|)
  (PROG (#0=#:G1822)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|FiniteSetAggregate;CAT|)
                         ('T
                          (LETT |FiniteSetAggregate;CAT|
                                (|Join| (|Dictionary| '|t#1|)
                                        (|SetAggregate| '|t#1|)
                                        (|finiteAggregate|)
                                        (|mkCategory| '|domain|
                                         '(((|cardinality|
                                             ((|NonNegativeInteger|) $))
                                            T)
                                           ((|complement| ($ $))
                                            (|has| |t#1| (|Finite|)))
                                           ((|universe| ($))
                                            (|has| |t#1| (|Finite|)))
                                           ((|max| (|t#1| $))
                                            (|has| |t#1|
                                             (|OrderedSet|)))
                                           ((|min| (|t#1| $))
                                            (|has| |t#1|
                                             (|OrderedSet|))))
                                         '(((|Finite|)
                                            (|has| |t#1| (|Finite|))))
                                         '((|NonNegativeInteger|)) NIL))
                                . #1=(|FiniteSetAggregate|))))) . #1#)
        (SETELT #0# 0 (LIST '|FiniteSetAggregate| (|devaluate| |t#1|))))))) 
