
(/VERSIONCHECK 2) 

(DEFPARAMETER |VectorCategory;CAT| 'NIL) 

(DEFPARAMETER |VectorCategory;AL| 'NIL) 

(DEFUN |VectorCategory| (#1=#:G12273)
  (LET (#2=#:G12274)
    (COND
     ((SETQ #2# (|assoc| #3=(|devaluate| #1#) |VectorCategory;AL|)) (CDR #2#))
     (T
      (SETQ |VectorCategory;AL|
              (|cons5| (CONS #3# (SETQ #2# (|VectorCategory;| #1#)))
                       |VectorCategory;AL|))
      #2#)))) 

(DEFUN |VectorCategory;| (|t#1|)
  (PROG (#1=#:G12272)
    (RETURN
     (PROG1
         (LETT #1#
               (|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))
                                       . #2=(|VectorCategory|)))))
               . #2#)
       (SETELT #1# 0 (LIST '|VectorCategory| (|devaluate| |t#1|))))))) 
