
(/VERSIONCHECK 2) 

(DEFPARAMETER |FiniteLinearAggregate;CAT| 'NIL) 

(DEFPARAMETER |FiniteLinearAggregate;AL| 'NIL) 

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

(DEFUN |FiniteLinearAggregate;| (|t#1|)
  (PROG (#0=#:G1815)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|FiniteLinearAggregate;CAT|)
                         ('T
                          (LETT |FiniteLinearAggregate;CAT|
                                (|Join| (|LinearAggregate| '|t#1|)
                                        (|finiteAggregate|)
                                        (|mkCategory| '|domain|
                                         '(((|merge|
                                             ($
                                              (|Mapping| (|Boolean|)
                                               |t#1| |t#1|)
                                              $ $))
                                            T)
                                           ((|reverse| ($ $)) T)
                                           ((|sort|
                                             ($
                                              (|Mapping| (|Boolean|)
                                               |t#1| |t#1|)
                                              $))
                                            T)
                                           ((|sorted?|
                                             ((|Boolean|)
                                              (|Mapping| (|Boolean|)
                                               |t#1| |t#1|)
                                              $))
                                            T)
                                           ((|position|
                                             ((|Integer|)
                                              (|Mapping| (|Boolean|)
                                               |t#1|)
                                              $))
                                            T)
                                           ((|position|
                                             ((|Integer|) |t#1| $))
                                            (|has| |t#1|
                                             (|SetCategory|)))
                                           ((|position|
                                             ((|Integer|) |t#1| $
                                              (|Integer|)))
                                            (|has| |t#1|
                                             (|SetCategory|)))
                                           ((|merge| ($ $ $))
                                            (|has| |t#1|
                                             (|OrderedSet|)))
                                           ((|sort| ($ $))
                                            (|has| |t#1|
                                             (|OrderedSet|)))
                                           ((|sorted?| ((|Boolean|) $))
                                            (|has| |t#1|
                                             (|OrderedSet|)))
                                           ((|copyInto!|
                                             ($ $ $ (|Integer|)))
                                            (|has| $
                                             (|shallowlyMutable|)))
                                           ((|reverse!| ($ $))
                                            (|has| $
                                             (|shallowlyMutable|)))
                                           ((|sort!|
                                             ($
                                              (|Mapping| (|Boolean|)
                                               |t#1| |t#1|)
                                              $))
                                            (|has| $
                                             (|shallowlyMutable|)))
                                           ((|sort!| ($ $))
                                            (AND
                                             (|has| |t#1|
                                              (|OrderedSet|))
                                             (|has| $
                                              (|shallowlyMutable|)))))
                                         '(((|OrderedSet|)
                                            (|has| |t#1|
                                             (|OrderedSet|))))
                                         '((|Integer|) (|Boolean|))
                                         NIL))
                                . #1=(|FiniteLinearAggregate|))))) . #1#)
        (SETELT #0# 0
                (LIST '|FiniteLinearAggregate| (|devaluate| |t#1|))))))) 
