
(/VERSIONCHECK 2) 

(DEFPARAMETER |VectorCategory;CAT| 'NIL) 

(DEFPARAMETER |VectorCategory;AL| 'NIL) 

(DEFUN |VectorCategory| (#0=#:G1820)
  (LET (#1=#:G1821)
    (COND
      ((SETQ #1# (|assoc| #2=(|devaluate| #0#) |VectorCategory;AL|))
       (CDR #1#))
      (T (SETQ |VectorCategory;AL|
               (|cons5| (CONS #2# (SETQ #1# (|VectorCategory;| #0#)))
                        |VectorCategory;AL|))
         #1#)))) 

(DEFUN |VectorCategory;| (|t#1|)
  (PROG (#0=#:G1819)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|VectorCategory;CAT|)
                         ('T
                          (LETT |VectorCategory;CAT|
                                (|Join| (|OneDimensionalArrayAggregate|
                                         '|t#1|)
                                        (|mkCategory| '|domain|
                                         '(((+ ($ $ $))
                                            (|has| |t#1|
                                             (|AbelianSemiGroup|)))
                                           ((|zero|
                                             ($ (|NonNegativeInteger|)))
                                            (|has| |t#1|
                                             (|AbelianMonoid|)))
                                           ((- ($ $))
                                            (|has| |t#1|
                                             (|AbelianGroup|)))
                                           ((- ($ $ $))
                                            (|has| |t#1|
                                             (|AbelianGroup|)))
                                           ((* ($ (|Integer|) $))
                                            (|has| |t#1|
                                             (|AbelianGroup|)))
                                           ((* ($ |t#1| $))
                                            (|has| |t#1| (|Monoid|)))
                                           ((* ($ $ |t#1|))
                                            (|has| |t#1| (|Monoid|)))
                                           ((|dot| (|t#1| $ $))
                                            (|has| |t#1| (|Ring|)))
                                           ((|outerProduct|
                                             ((|Matrix| |t#1|) $ $))
                                            (|has| |t#1| (|Ring|)))
                                           ((|cross| ($ $ $))
                                            (|has| |t#1| (|Ring|)))
                                           ((|length| (|t#1| $))
                                            (AND (|has| |t#1| (|Ring|))
                                             (|has| |t#1|
                                              (|RadicalCategory|))))
                                           ((|magnitude| (|t#1| $))
                                            (AND (|has| |t#1| (|Ring|))
                                             (|has| |t#1|
                                              (|RadicalCategory|)))))
                                         NIL
                                         '((|Matrix| |t#1|) (|Integer|)
                                           (|NonNegativeInteger|))
                                         NIL))
                                . #1=(|VectorCategory|))))) . #1#)
        (SETELT #0# 0 (LIST '|VectorCategory| (|devaluate| |t#1|))))))) 
