
(/VERSIONCHECK 2) 

(DEFPARAMETER |GradedAlgebra;CAT| 'NIL) 

(DEFPARAMETER |GradedAlgebra;AL| 'NIL) 

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

(DEFUN |GradedAlgebra;| (|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
                         (|GradedAlgebra;CAT|)
                         ('T
                          (LETT |GradedAlgebra;CAT|
                                (|Join| (|GradedModule| '|t#1| '|t#2|)
                                        (|RetractableTo| '|t#1|)
                                        (|mkCategory| '|domain|
                                         '(((|One| ($) |constant|) T)
                                           ((|product| ($ $ $)) T))
                                         NIL 'NIL NIL))
                                . #1=(|GradedAlgebra|))))) . #1#)
        (SETELT #0# 0
                (LIST '|GradedAlgebra| (|devaluate| |t#1|)
                      (|devaluate| |t#2|))))))) 
