
(/VERSIONCHECK 2) 

(DEFPARAMETER |IndexedDirectProductCategory;CAT| 'NIL) 

(DEFPARAMETER |IndexedDirectProductCategory;AL| 'NIL) 

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

(DEFUN |IndexedDirectProductCategory;| (|t#1| |t#2|)
  (PROG (#1=#:G9460)
    (RETURN
     (PROG1
         (LETT #1#
               (|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)
                                                     ((|construct|
                                                       ($
                                                        (|List|
                                                         (|Record|
                                                          (|:| |k| |t#2|)
                                                          (|:| |c| |t#1|)))))
                                                      T)
                                                     ((|constructOrdered|
                                                       ($
                                                        (|List|
                                                         (|Record|
                                                          (|:| |k| |t#2|)
                                                          (|:| |c| |t#1|)))))
                                                      T)
                                                     ((|leadingTerm|
                                                       ((|Record|
                                                         (|:| |k| |t#2|)
                                                         (|:| |c| |t#1|))
                                                        $))
                                                      T)
                                                     ((|listOfTerms|
                                                       ((|List|
                                                         (|Record|
                                                          (|:| |k| |t#2|)
                                                          (|:| |c| |t#1|)))
                                                        $))
                                                      T))
                                                   NIL
                                                   '((|List|
                                                      (|Record| (|:| |k| |t#2|)
                                                                (|:| |c|
                                                                     |t#1|))))
                                                   NIL))
                             . #2=(|IndexedDirectProductCategory|)))))
               . #2#)
       (SETELT #1# 0
               (LIST '|IndexedDirectProductCategory| (|devaluate| |t#1|)
                     (|devaluate| |t#2|))))))) 
