
(/VERSIONCHECK 2) 

(DEFPARAMETER |IndexedDirectProductCategory;CAT| 'NIL) 

(DEFPARAMETER |IndexedDirectProductCategory;AL| 'NIL) 

(DEFUN |IndexedDirectProductCategory| (&REST #0=#:G1816)
  (LET (#1=#:G1817)
    (COND
      ((SETQ #1#
             (|assoc| #2=(|devaluateList| #0#)
                      |IndexedDirectProductCategory;AL|))
       (CDR #1#))
      (T (SETQ |IndexedDirectProductCategory;AL|
               (|cons5| (CONS #2#
                              (SETQ #1#
                                    (APPLY
                                     #'|IndexedDirectProductCategory;|
                                     #0#)))
                        |IndexedDirectProductCategory;AL|))
         #1#)))) 

(DEFUN |IndexedDirectProductCategory;| (|t#1| |t#2|)
  (PROG (#0=#:G1815)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1| |t#2|)
                             (LIST (|devaluate| |t#1|)
                                   (|devaluate| |t#2|)))
                       (COND
                         (|IndexedDirectProductCategory;CAT|)
                         ('T
                          (LETT |IndexedDirectProductCategory;CAT|
                                (|Join| (|SetCategory|)
                                        (|mkCategory| '|domain|
                                         '(((|map|
                                             ($ (|Mapping| |t#1| |t#1|)
                                              $))
                                            T)
                                           ((|monomial|
                                             ($ |t#1| |t#2|))
                                            T)
                                           ((|leadingCoefficient|
                                             (|t#1| $))
                                            T)
                                           ((|leadingSupport|
                                             (|t#2| $))
                                            T)
                                           ((|reductum| ($ $)) T))
                                         NIL 'NIL NIL))
                                . #1=(|IndexedDirectProductCategory|))))) . #1#)
        (SETELT #0# 0
                (LIST '|IndexedDirectProductCategory|
                      (|devaluate| |t#1|) (|devaluate| |t#2|))))))) 
