
(/VERSIONCHECK 2) 

(DEFPARAMETER |XAlgebra;CAT| 'NIL) 

(DEFPARAMETER |XAlgebra;AL| 'NIL) 

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

(DEFUN |XAlgebra;| (|t#1|)
  (PROG (#0=#:G1815)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|XAlgebra;CAT|)
                         ('T
                          (LETT |XAlgebra;CAT|
                                (|Join| (|Ring|)
                                        (|BiModule| '|t#1| '|t#1|)
                                        (|mkCategory| '|domain|
                                         '(((|coerce| ($ |t#1|)) T))
                                         '(((|Algebra| |t#1|)
                                            (|has| |t#1|
                                             (|CommutativeRing|))))
                                         'NIL NIL))
                                . #1=(|XAlgebra|))))) . #1#)
        (SETELT #0# 0 (LIST '|XAlgebra| (|devaluate| |t#1|))))))) 
