
(/VERSIONCHECK 2) 

(DEFPARAMETER |GradedModule;CAT| 'NIL) 

(DEFPARAMETER |GradedModule;AL| 'NIL) 

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

(DEFUN |GradedModule;| (|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
                         (|GradedModule;CAT|)
                         ('T
                          (LETT |GradedModule;CAT|
                                (|Join| (|SetCategory|)
                                        (|mkCategory| '|domain|
                                         '(((|degree| (|t#2| $)) T)
                                           ((|Zero| ($) |constant|) T)
                                           ((* ($ |t#1| $)) T)
                                           ((* ($ $ |t#1|)) T)
                                           ((- ($ $)) T)
                                           ((+ ($ $ $)) T)
                                           ((- ($ $ $)) T))
                                         NIL 'NIL NIL))
                                . #1=(|GradedModule|))))) . #1#)
        (SETELT #0# 0
                (LIST '|GradedModule| (|devaluate| |t#1|)
                      (|devaluate| |t#2|))))))) 
