
(/VERSIONCHECK 2) 

(DEFPARAMETER |FramedAlgebra;CAT| 'NIL) 

(DEFPARAMETER |FramedAlgebra;AL| 'NIL) 

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

(DEFUN |FramedAlgebra;| (|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
                         (|FramedAlgebra;CAT|)
                         ('T
                          (LETT |FramedAlgebra;CAT|
                                (|Join| (|FiniteRankAlgebra| '|t#1|
                                         '|t#2|)
                                        (|mkCategory| '|domain|
                                         '(((|basis| ((|Vector| $))) T)
                                           ((|coordinates|
                                             ((|Vector| |t#1|) $))
                                            T)
                                           ((|coordinates|
                                             ((|Matrix| |t#1|)
                                              (|Vector| $)))
                                            T)
                                           ((|represents|
                                             ($ (|Vector| |t#1|)))
                                            T)
                                           ((|convert|
                                             ((|Vector| |t#1|) $))
                                            T)
                                           ((|convert|
                                             ($ (|Vector| |t#1|)))
                                            T)
                                           ((|traceMatrix|
                                             ((|Matrix| |t#1|)))
                                            T)
                                           ((|discriminant| (|t#1|)) T)
                                           ((|regularRepresentation|
                                             ((|Matrix| |t#1|) $))
                                            T))
                                         NIL
                                         '((|Matrix| |t#1|)
                                           (|Vector| |t#1|)
                                           (|Vector| $))
                                         NIL))
                                . #1=(|FramedAlgebra|))))) . #1#)
        (SETELT #0# 0
                (LIST '|FramedAlgebra| (|devaluate| |t#1|)
                      (|devaluate| |t#2|))))))) 
