
(/VERSIONCHECK 2) 

(DEFPARAMETER |DifferentialVariableCategory;CAT| 'NIL) 

(DEFPARAMETER |DifferentialVariableCategory;AL| 'NIL) 

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

(DEFUN |DifferentialVariableCategory;| (|t#1|)
  (PROG (#0=#:G1820)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|DifferentialVariableCategory;CAT|)
                         ('T
                          (LETT |DifferentialVariableCategory;CAT|
                                (|Join| (|OrderedSet|)
                                        (|RetractableTo| '|t#1|)
                                        (|mkCategory| '|domain|
                                         '(((|makeVariable|
                                             ($ |t#1|
                                              (|NonNegativeInteger|)))
                                            T)
                                           ((|order|
                                             ((|NonNegativeInteger|) $))
                                            T)
                                           ((|variable| (|t#1| $)) T)
                                           ((|weight|
                                             ((|NonNegativeInteger|) $))
                                            T)
                                           ((|differentiate| ($ $)) T)
                                           ((|differentiate|
                                             ($ $
                                              (|NonNegativeInteger|)))
                                            T)
                                           ((|coerce| ($ |t#1|)) T))
                                         NIL '((|NonNegativeInteger|))
                                         NIL))
                                . #1=(|DifferentialVariableCategory|))))) . #1#)
        (SETELT #0# 0
                (LIST '|DifferentialVariableCategory|
                      (|devaluate| |t#1|))))))) 
