
(DEFPARAMETER |UnivariateLaurentSeriesCategory;CAT| 'NIL) 

(DECLAIM (NOTINLINE |UnivariateLaurentSeriesCategory;|)) 

(DEFPARAMETER |UnivariateLaurentSeriesCategory;AL| 'NIL) 

(DEFUN |UnivariateLaurentSeriesCategory| (#1=#:G697)
  (LET (#2=#:G698)
    (COND
     ((SETQ #2#
              (|assoc| #3=(|devaluate| #1#)
                       |UnivariateLaurentSeriesCategory;AL|))
      (CDR #2#))
     (T
      (SETQ |UnivariateLaurentSeriesCategory;AL|
              (|cons5|
               (CONS #3# (SETQ #2# (|UnivariateLaurentSeriesCategory;| #1#)))
               |UnivariateLaurentSeriesCategory;AL|))
      #2#)))) 

(DEFUN |UnivariateLaurentSeriesCategory;| (|t#1|)
  (SPROG ((#1=#:G696 NIL))
         (PROG1
             (LETT #1#
                   (|sublisV| (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                              (|sublisV|
                               (PAIR '(#2=#:G695) (LIST '(|Integer|)))
                               (COND (|UnivariateLaurentSeriesCategory;CAT|)
                                     ('T
                                      (LETT
                                       |UnivariateLaurentSeriesCategory;CAT|
                                       (|Join|
                                        (|UnivariatePowerSeriesCategory| '|t#1|
                                                                         '#2#)
                                        (|mkCategory|
                                         '(((|series|
                                             ($
                                              (|Stream|
                                               (|Record| (|:| |k| (|Integer|))
                                                         (|:| |c| |t#1|)))))
                                            T)
                                           ((|laurent|
                                             ($ (|Integer|) (|Stream| |t#1|)))
                                            T)
                                           ((|multiplyCoefficients|
                                             ($ (|Mapping| |t#1| (|Integer|))
                                              $))
                                            T)
                                           ((|rationalFunction|
                                             ((|Fraction| (|Polynomial| |t#1|))
                                              $ (|Integer|)))
                                            (|has| |t#1| (|IntegralDomain|)))
                                           ((|rationalFunction|
                                             ((|Fraction| (|Polynomial| |t#1|))
                                              $ (|Integer|) (|Integer|)))
                                            (|has| |t#1| (|IntegralDomain|)))
                                           ((|integrate| ($ $))
                                            (|has| |t#1|
                                                   (|Algebra|
                                                    (|Fraction| (|Integer|)))))
                                           ((|integrate| ($ $ (|Symbol|)))
                                            (AND
                                             (|has| |t#1|
                                                    (SIGNATURE |variables|
                                                     ((|List| (|Symbol|))
                                                      |t#1|)))
                                             (|has| |t#1|
                                                    (SIGNATURE |integrate|
                                                     (|t#1| |t#1| (|Symbol|))))
                                             (|has| |t#1|
                                                    (|Algebra|
                                                     (|Fraction|
                                                      (|Integer|))))))
                                           ((|integrate| ($ $ (|Symbol|)))
                                            (AND
                                             (|has| |t#1|
                                                    (|AlgebraicallyClosedFunctionSpace|
                                                     (|Integer|)))
                                             (|has| |t#1|
                                                    (|PrimitiveFunctionCategory|))
                                             (|has| |t#1|
                                                    (|TranscendentalFunctionCategory|))
                                             (|has| |t#1|
                                                    (|Algebra|
                                                     (|Fraction|
                                                      (|Integer|)))))))
                                         '(((|RadicalCategory|)
                                            (|has| |t#1|
                                                   (|Algebra|
                                                    (|Fraction| (|Integer|)))))
                                           ((|TranscendentalFunctionCategory|)
                                            (|has| |t#1|
                                                   (|Algebra|
                                                    (|Fraction| (|Integer|)))))
                                           ((|Field|) (|has| |t#1| (|Field|))))
                                         '((|Symbol|)
                                           (|Fraction| (|Polynomial| |t#1|))
                                           (|Integer|) (|Stream| |t#1|)
                                           (|Stream|
                                            (|Record| (|:| |k| (|Integer|))
                                                      (|:| |c| |t#1|))))
                                         NIL))
                                       . #3=(|UnivariateLaurentSeriesCategory|))))))
                   . #3#)
           (SETELT #1# 0
                   (LIST '|UnivariateLaurentSeriesCategory|
                         (|devaluate| |t#1|)))))) 
