
(/VERSIONCHECK 2) 

(DEFUN |POLYCAT-;eval;SLS;1| (|p| |l| $)
  (PROG (#1=#:G7506 |e| #2=#:G7505 |lvar| #3=#:G7504 #4=#:G7503 #5=#:G7496
         #6=#:G7502)
    (RETURN
     (SEQ
      (COND ((NULL |l|) |p|)
            ('T
             (SEQ
              (SEQ
               (EXIT
                (SEQ (LETT |e| NIL . #7=(|POLYCAT-;eval;SLS;1|))
                     (LETT #6# |l| . #7#) G190
                     (COND
                      ((OR (ATOM #6#) (PROGN (LETT |e| (CAR #6#) . #7#) NIL))
                       #8=(GO G191)))
                     (SEQ
                      (EXIT
                       (COND
                        ((QEQCAR
                          (SPADCALL (SPADCALL |e| (QREFELT $ 11))
                                    (QREFELT $ 13))
                          1)
                         (PROGN
                          (LETT #5#
                                (|error| "cannot find a variable to evaluate")
                                . #7#)
                          (GO #5#))))))
                     (LETT #6# (CDR #6#) . #7#) #9=(GO G190) G191 (EXIT NIL)))
               #5# (EXIT #5#))
              (LETT |lvar|
                    (PROGN
                     (LETT #4# NIL . #7#)
                     (SEQ (LETT |e| NIL . #7#) (LETT #3# |l| . #7#) G190
                          (COND
                           ((OR (ATOM #3#)
                                (PROGN (LETT |e| (CAR #3#) . #7#) NIL))
                            #8#))
                          (SEQ
                           (EXIT
                            (LETT #4#
                                  (CONS
                                   (SPADCALL (SPADCALL |e| (QREFELT $ 11))
                                             (QREFELT $ 14))
                                   #4#)
                                  . #7#)))
                          (LETT #3# (CDR #3#) . #7#) #9# G191
                          (EXIT (NREVERSE0 #4#))))
                    . #7#)
              (EXIT
               (SPADCALL |p| |lvar|
                         (PROGN
                          (LETT #2# NIL . #7#)
                          (SEQ (LETT |e| NIL . #7#) (LETT #1# |l| . #7#) G190
                               (COND
                                ((OR (ATOM #1#)
                                     (PROGN (LETT |e| (CAR #1#) . #7#) NIL))
                                 #8#))
                               (SEQ
                                (EXIT
                                 (LETT #2#
                                       (CONS (SPADCALL |e| (QREFELT $ 15)) #2#)
                                       . #7#)))
                               (LETT #1# (CDR #1#) . #7#) #9# G191
                               (EXIT (NREVERSE0 #2#))))
                         (QREFELT $ 18)))))))))) 

(DEFUN |POLYCAT-;monomials;SL;2| (|p| $)
  (PROG (|ml|)
    (RETURN
     (SEQ (LETT |ml| NIL . #1=(|POLYCAT-;monomials;SL;2|))
          (SEQ G190
               (COND
                ((NULL
                  (COND
                   ((SPADCALL |p| (|spadConstant| $ 21) (QREFELT $ 24)) 'NIL)
                   ('T 'T)))
                 (GO G191)))
               (SEQ (LETT |ml| (CONS (SPADCALL |p| (QREFELT $ 25)) |ml|) . #1#)
                    (EXIT (LETT |p| (SPADCALL |p| (QREFELT $ 26)) . #1#)))
               NIL (GO G190) G191 (EXIT NIL))
          (EXIT (REVERSE |ml|)))))) 

(DEFUN |POLYCAT-;isPlus;SU;3| (|p| $)
  (PROG (|l|)
    (RETURN
     (COND
      ((NULL
        (CDR (LETT |l| (SPADCALL |p| (QREFELT $ 28)) |POLYCAT-;isPlus;SU;3|)))
       (CONS 1 "failed"))
      ('T (CONS 0 |l|)))))) 

(DEFUN |POLYCAT-;isTimes;SU;4| (|p| $)
  (PROG (|r| |l| #1=#:G7529 |v| #2=#:G7528 |lv|)
    (RETURN
     (SEQ
      (COND
       ((OR
         (NULL
          (LETT |lv| (SPADCALL |p| (QREFELT $ 31))
                . #3=(|POLYCAT-;isTimes;SU;4|)))
         (NULL (SPADCALL |p| (QREFELT $ 32))))
        (CONS 1 "failed"))
       ('T
        (SEQ
         (LETT |l|
               (PROGN
                (LETT #2# NIL . #3#)
                (SEQ (LETT |v| NIL . #3#) (LETT #1# |lv| . #3#) G190
                     (COND
                      ((OR (ATOM #1#) (PROGN (LETT |v| (CAR #1#) . #3#) NIL))
                       (GO G191)))
                     (SEQ
                      (EXIT
                       (LETT #2#
                             (CONS
                              (SPADCALL (|spadConstant| $ 33) |v|
                                        (SPADCALL |p| |v| (QREFELT $ 36))
                                        (QREFELT $ 37))
                              #2#)
                             . #3#)))
                     (LETT #1# (CDR #1#) . #3#) (GO G190) G191
                     (EXIT (NREVERSE0 #2#))))
               . #3#)
         (LETT |r| (SPADCALL |p| (QREFELT $ 38)) . #3#)
         (EXIT
          (COND
           ((SPADCALL |r| (|spadConstant| $ 34) (QREFELT $ 39))
            (COND ((NULL (CDR |lv|)) (CONS 1 "failed")) (#4='T (CONS 0 |l|))))
           (#4# (CONS 0 (CONS (SPADCALL |r| (QREFELT $ 40)) |l|)))))))))))) 

(DEFUN |POLYCAT-;isExpt;SU;5| (|p| $)
  (PROG (|d| |u|)
    (RETURN
     (SEQ
      (LETT |u| (SPADCALL |p| (QREFELT $ 42)) . #1=(|POLYCAT-;isExpt;SU;5|))
      (EXIT
       (COND
        ((OR (QEQCAR |u| 1)
             (NULL
              (SPADCALL |p|
                        (SPADCALL (|spadConstant| $ 33) (QCDR |u|)
                                  (LETT |d|
                                        (SPADCALL |p| (QCDR |u|)
                                                  (QREFELT $ 36))
                                        . #1#)
                                  (QREFELT $ 37))
                        (QREFELT $ 24))))
         (CONS 1 "failed"))
        ('T (CONS 0 (CONS (QCDR |u|) |d|))))))))) 

(DEFUN |POLYCAT-;coefficient;SVarSetNniS;6| (|p| |v| |n| $)
  (SPADCALL (SPADCALL |p| |v| (QREFELT $ 47)) |n| (QREFELT $ 49))) 

(DEFUN |POLYCAT-;coefficient;SLLS;7| (|p| |lv| |ln| $)
  (COND
   ((NULL |lv|)
    (COND ((NULL |ln|) |p|)
          (#1='T (|error| "mismatched lists in coefficient"))))
   ((NULL |ln|) (|error| "mismatched lists in coefficient"))
   (#1#
    (SPADCALL
     (SPADCALL (SPADCALL |p| (|SPADfirst| |lv|) (QREFELT $ 47))
               (|SPADfirst| |ln|) (QREFELT $ 49))
     (CDR |lv|) (CDR |ln|) (QREFELT $ 52))))) 

(DEFUN |POLYCAT-;monomial;SLLS;8| (|p| |lv| |ln| $)
  (COND
   ((NULL |lv|)
    (COND ((NULL |ln|) |p|) (#1='T (|error| "mismatched lists in monomial"))))
   ((NULL |ln|) (|error| "mismatched lists in monomial"))
   (#1#
    (SPADCALL
     (SPADCALL |p| (|SPADfirst| |lv|) (|SPADfirst| |ln|) (QREFELT $ 37))
     (CDR |lv|) (CDR |ln|) (QREFELT $ 54))))) 

(DEFUN |POLYCAT-;retract;SVarSet;9| (|p| $)
  (PROG (|q| #1=#:G7554)
    (RETURN
     (SEQ
      (LETT |q|
            (PROG2
                (LETT #1# (SPADCALL |p| (QREFELT $ 42))
                      . #2=(|POLYCAT-;retract;SVarSet;9|))
                (QCDR #1#)
              (|check-union| (QEQCAR #1# 0) (QREFELT $ 9) #1#))
            . #2#)
      (EXIT
       (COND ((SPADCALL (SPADCALL |q| (QREFELT $ 56)) |p| (QREFELT $ 24)) |q|)
             ('T (|error| "Polynomial is not a single variable")))))))) 

(DEFUN |POLYCAT-;retractIfCan;SU;10| (|p| $)
  (PROG (#1=#:G7562 |q|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (SEQ
         (LETT |q| (SPADCALL |p| (QREFELT $ 42))
               . #2=(|POLYCAT-;retractIfCan;SU;10|))
         (EXIT
          (COND
           ((QEQCAR |q| 0)
            (COND
             ((SPADCALL (SPADCALL (QCDR |q|) (QREFELT $ 56)) |p|
                        (QREFELT $ 24))
              (PROGN (LETT #1# |q| . #2#) (GO #1#))))))))
        (EXIT (CONS 1 "failed"))))
      #1# (EXIT #1#))))) 

(DEFUN |POLYCAT-;mkPrim| (|p| $)
  (SPADCALL (|spadConstant| $ 34) (SPADCALL |p| (QREFELT $ 59)) (QREFELT $ 60))) 

(DEFUN |POLYCAT-;primitiveMonomials;SL;12| (|p| $)
  (PROG (#1=#:G7568 |q| #2=#:G7567)
    (RETURN
     (SEQ
      (PROGN
       (LETT #2# NIL . #3=(|POLYCAT-;primitiveMonomials;SL;12|))
       (SEQ (LETT |q| NIL . #3#) (LETT #1# (SPADCALL |p| (QREFELT $ 28)) . #3#)
            G190
            (COND
             ((OR (ATOM #1#) (PROGN (LETT |q| (CAR #1#) . #3#) NIL))
              (GO G191)))
            (SEQ (EXIT (LETT #2# (CONS (|POLYCAT-;mkPrim| |q| $) #2#) . #3#)))
            (LETT #1# (CDR #1#) . #3#) (GO G190) G191
            (EXIT (NREVERSE0 #2#)))))))) 

(DEFUN |POLYCAT-;totalDegree;SNni;13| (|p| $)
  (PROG (|u| |d| #1=#:G7570)
    (RETURN
     (SEQ
      (COND ((SPADCALL |p| (QREFELT $ 62)) 0)
            ('T
             (SEQ
              (LETT |u|
                    (SPADCALL |p|
                              (PROG2
                                  (LETT #1# (SPADCALL |p| (QREFELT $ 42))
                                        . #2=(|POLYCAT-;totalDegree;SNni;13|))
                                  (QCDR #1#)
                                (|check-union| (QEQCAR #1# 0) (QREFELT $ 9)
                                               #1#))
                              (QREFELT $ 47))
                    . #2#)
              (LETT |d| 0 . #2#)
              (SEQ G190
                   (COND
                    ((NULL
                      (COND
                       ((SPADCALL |u| (|spadConstant| $ 63) (QREFELT $ 64))
                        'NIL)
                       ('T 'T)))
                     (GO G191)))
                   (SEQ
                    (LETT |d|
                          (MAX |d|
                               (+ (SPADCALL |u| (QREFELT $ 65))
                                  (SPADCALL (SPADCALL |u| (QREFELT $ 66))
                                            (QREFELT $ 67))))
                          . #2#)
                    (EXIT (LETT |u| (SPADCALL |u| (QREFELT $ 68)) . #2#)))
                   NIL (GO G190) G191 (EXIT NIL))
              (EXIT |d|)))))))) 

(DEFUN |POLYCAT-;totalDegree;SLNni;14| (|p| |lv| $)
  (PROG (|u| |d| |w| |v| #1=#:G7578)
    (RETURN
     (SEQ
      (COND ((SPADCALL |p| (QREFELT $ 62)) 0)
            ('T
             (SEQ
              (LETT |u|
                    (SPADCALL |p|
                              (LETT |v|
                                    (PROG2
                                        (LETT #1# (SPADCALL |p| (QREFELT $ 42))
                                              . #2=(|POLYCAT-;totalDegree;SLNni;14|))
                                        (QCDR #1#)
                                      (|check-union| (QEQCAR #1# 0)
                                                     (QREFELT $ 9) #1#))
                                    . #2#)
                              (QREFELT $ 47))
                    . #2#)
              (LETT |d| 0 . #2#) (LETT |w| 0 . #2#)
              (COND ((SPADCALL |v| |lv| (QREFELT $ 70)) (LETT |w| 1 . #2#)))
              (SEQ G190
                   (COND
                    ((NULL
                      (COND
                       ((SPADCALL |u| (|spadConstant| $ 63) (QREFELT $ 64))
                        'NIL)
                       ('T 'T)))
                     (GO G191)))
                   (SEQ
                    (LETT |d|
                          (MAX |d|
                               (+ (* |w| (SPADCALL |u| (QREFELT $ 65)))
                                  (SPADCALL (SPADCALL |u| (QREFELT $ 66)) |lv|
                                            (QREFELT $ 71))))
                          . #2#)
                    (EXIT (LETT |u| (SPADCALL |u| (QREFELT $ 68)) . #2#)))
                   NIL (GO G190) G191 (EXIT NIL))
              (EXIT |d|)))))))) 

(DEFUN |POLYCAT-;resultant;2SVarSetS;15| (|p1| |p2| |mvar| $)
  (SPADCALL (SPADCALL |p1| |mvar| (QREFELT $ 47))
            (SPADCALL |p2| |mvar| (QREFELT $ 47)) (QREFELT $ 73))) 

(DEFUN |POLYCAT-;discriminant;SVarSetS;16| (|p| |var| $)
  (SPADCALL (SPADCALL |p| |var| (QREFELT $ 47)) (QREFELT $ 75))) 

(DEFUN |POLYCAT-;allMonoms| (|l| $)
  (PROG (#1=#:G7591 |p| #2=#:G7590)
    (RETURN
     (SEQ
      (SPADCALL
       (SPADCALL
        (PROGN
         (LETT #2# NIL . #3=(|POLYCAT-;allMonoms|))
         (SEQ (LETT |p| NIL . #3#) (LETT #1# |l| . #3#) G190
              (COND
               ((OR (ATOM #1#) (PROGN (LETT |p| (CAR #1#) . #3#) NIL))
                (GO G191)))
              (SEQ
               (EXIT
                (LETT #2# (CONS (SPADCALL |p| (QREFELT $ 77)) #2#) . #3#)))
              (LETT #1# (CDR #1#) . #3#) (GO G190) G191
              (EXIT (NREVERSE0 #2#))))
        (QREFELT $ 79))
       (QREFELT $ 80)))))) 

(DEFUN |POLYCAT-;P2R| (|p| |b| |n| $)
  (PROG (#1=#:G7596 |i| #2=#:G7597 |bj| |w|)
    (RETURN
     (SEQ (LETT |w| (MAKEARR1 |n| (|spadConstant| $ 22)) . #3=(|POLYCAT-;P2R|))
          (SEQ (LETT |bj| NIL . #3#) (LETT #2# |b| . #3#)
               (LETT |i| (SPADCALL |w| (QREFELT $ 83)) . #3#)
               (LETT #1# (QVSIZE |w|) . #3#) G190
               (COND
                ((OR (> |i| #1#) (ATOM #2#)
                     (PROGN (LETT |bj| (CAR #2#) . #3#) NIL))
                 (GO G191)))
               (SEQ
                (EXIT
                 (SPADCALL |w| |i| (SPADCALL |p| |bj| (QREFELT $ 84))
                           (QREFELT $ 85))))
               (LETT |i| (PROG1 (+ |i| 1) (LETT #2# (CDR #2#) . #3#)) . #3#)
               (GO G190) G191 (EXIT NIL))
          (EXIT |w|))))) 

(DEFUN |POLYCAT-;eq2R| (|l| |b| $)
  (PROG (#1=#:G7606 |p| #2=#:G7605 #3=#:G7604 |bj| #4=#:G7603)
    (RETURN
     (SEQ
      (SPADCALL
       (PROGN
        (LETT #4# NIL . #5=(|POLYCAT-;eq2R|))
        (SEQ (LETT |bj| NIL . #5#) (LETT #3# |b| . #5#) G190
             (COND
              ((OR (ATOM #3#) (PROGN (LETT |bj| (CAR #3#) . #5#) NIL))
               #6=(GO G191)))
             (SEQ
              (EXIT
               (LETT #4#
                     (CONS
                      (PROGN
                       (LETT #2# NIL . #5#)
                       (SEQ (LETT |p| NIL . #5#) (LETT #1# |l| . #5#) G190
                            (COND
                             ((OR (ATOM #1#)
                                  (PROGN (LETT |p| (CAR #1#) . #5#) NIL))
                              #6#))
                            (SEQ
                             (EXIT
                              (LETT #2#
                                    (CONS (SPADCALL |p| |bj| (QREFELT $ 84))
                                          #2#)
                                    . #5#)))
                            (LETT #1# (CDR #1#) . #5#) #7=(GO G190) G191
                            (EXIT (NREVERSE0 #2#))))
                      #4#)
                     . #5#)))
             (LETT #3# (CDR #3#) . #5#) #7# G191 (EXIT (NREVERSE0 #4#))))
       (QREFELT $ 88)))))) 

(DEFUN |POLYCAT-;reducedSystem;MM;20| (|m| $)
  (PROG (|l| |mm| |d| #1=#:G7619 |bj| #2=#:G7618 |b| #3=#:G7617 |r| #4=#:G7616)
    (RETURN
     (SEQ
      (LETT |l| (SPADCALL |m| (QREFELT $ 91))
            . #5=(|POLYCAT-;reducedSystem;MM;20|))
      (LETT |b|
            (SPADCALL
             (SPADCALL
              (PROGN
               (LETT #4# NIL . #5#)
               (SEQ (LETT |r| NIL . #5#) (LETT #3# |l| . #5#) G190
                    (COND
                     ((OR (ATOM #3#) (PROGN (LETT |r| (CAR #3#) . #5#) NIL))
                      #6=(GO G191)))
                    (SEQ
                     (EXIT
                      (LETT #4# (CONS (|POLYCAT-;allMonoms| |r| $) #4#)
                            . #5#)))
                    (LETT #3# (CDR #3#) . #5#) #7=(GO G190) G191
                    (EXIT (NREVERSE0 #4#))))
              (QREFELT $ 79))
             (QREFELT $ 80))
            . #5#)
      (LETT |d|
            (PROGN
             (LETT #2# NIL . #5#)
             (SEQ (LETT |bj| NIL . #5#) (LETT #1# |b| . #5#) G190
                  (COND
                   ((OR (ATOM #1#) (PROGN (LETT |bj| (CAR #1#) . #5#) NIL))
                    #6#))
                  (SEQ
                   (EXIT
                    (LETT #2# (CONS (SPADCALL |bj| (QREFELT $ 59)) #2#)
                          . #5#)))
                  (LETT #1# (CDR #1#) . #5#) #7# G191 (EXIT (NREVERSE0 #2#))))
            . #5#)
      (LETT |mm| (|POLYCAT-;eq2R| (|SPADfirst| |l|) |d| $) . #5#)
      (LETT |l| (CDR |l|) . #5#)
      (SEQ G190 (COND ((NULL (COND ((NULL |l|) 'NIL) ('T 'T))) #6#))
           (SEQ
            (LETT |mm|
                  (SPADCALL |mm| (|POLYCAT-;eq2R| (|SPADfirst| |l|) |d| $)
                            (QREFELT $ 92))
                  . #5#)
            (EXIT (LETT |l| (CDR |l|) . #5#)))
           NIL #7# G191 (EXIT NIL))
      (EXIT |mm|))))) 

(DEFUN |POLYCAT-;reducedSystem;MVR;21| (|m| |v| $)
  (PROG (|r| |l| |w| |mm| |n| |d| #1=#:G7634 |bj| #2=#:G7633 |b| #3=#:G7632 |s|
         #4=#:G7631)
    (RETURN
     (SEQ
      (LETT |l| (SPADCALL |m| (QREFELT $ 91))
            . #5=(|POLYCAT-;reducedSystem;MVR;21|))
      (LETT |r| (SPADCALL |v| (QREFELT $ 96)) . #5#)
      (LETT |b|
            (SPADCALL
             (SPADCALL (|POLYCAT-;allMonoms| |r| $)
                       (SPADCALL
                        (PROGN
                         (LETT #4# NIL . #5#)
                         (SEQ (LETT |s| NIL . #5#) (LETT #3# |l| . #5#) G190
                              (COND
                               ((OR (ATOM #3#)
                                    (PROGN (LETT |s| (CAR #3#) . #5#) NIL))
                                #6=(GO G191)))
                              (SEQ
                               (EXIT
                                (LETT #4#
                                      (CONS (|POLYCAT-;allMonoms| |s| $) #4#)
                                      . #5#)))
                              (LETT #3# (CDR #3#) . #5#) #7=(GO G190) G191
                              (EXIT (NREVERSE0 #4#))))
                        (QREFELT $ 79))
                       (QREFELT $ 97))
             (QREFELT $ 80))
            . #5#)
      (LETT |d|
            (PROGN
             (LETT #2# NIL . #5#)
             (SEQ (LETT |bj| NIL . #5#) (LETT #1# |b| . #5#) G190
                  (COND
                   ((OR (ATOM #1#) (PROGN (LETT |bj| (CAR #1#) . #5#) NIL))
                    #6#))
                  (SEQ
                   (EXIT
                    (LETT #2# (CONS (SPADCALL |bj| (QREFELT $ 59)) #2#)
                          . #5#)))
                  (LETT #1# (CDR #1#) . #5#) #7# G191 (EXIT (NREVERSE0 #2#))))
            . #5#)
      (LETT |n| (LENGTH |d|) . #5#)
      (LETT |mm| (|POLYCAT-;eq2R| (|SPADfirst| |l|) |d| $) . #5#)
      (LETT |w| (|POLYCAT-;P2R| (|SPADfirst| |r|) |d| |n| $) . #5#)
      (LETT |l| (CDR |l|) . #5#) (LETT |r| (CDR |r|) . #5#)
      (SEQ G190 (COND ((NULL (COND ((NULL |l|) 'NIL) ('T 'T))) #6#))
           (SEQ
            (LETT |mm|
                  (SPADCALL |mm| (|POLYCAT-;eq2R| (|SPADfirst| |l|) |d| $)
                            (QREFELT $ 92))
                  . #5#)
            (LETT |w|
                  (SPADCALL |w| (|POLYCAT-;P2R| (|SPADfirst| |r|) |d| |n| $)
                            (QREFELT $ 98))
                  . #5#)
            (LETT |l| (CDR |l|) . #5#) (EXIT (LETT |r| (CDR |r|) . #5#)))
           NIL #7# G191 (EXIT NIL))
      (EXIT (CONS |mm| |w|)))))) 

(DEFUN |POLYCAT-;gcdPolynomial;3Sup;22| (|pp| |qq| $)
  (SPADCALL |pp| |qq| (QREFELT $ 103))) 

(DEFUN |POLYCAT-;solveLinearPolynomialEquation;LSupU;23| (|lpp| |pp| $)
  (SPADCALL |lpp| |pp| (QREFELT $ 108))) 

(DEFUN |POLYCAT-;factorPolynomial;SupF;24| (|pp| $)
  (SPADCALL |pp| (QREFELT $ 113))) 

(DEFUN |POLYCAT-;factorSquareFreePolynomial;SupF;25| (|pp| $)
  (SPADCALL |pp| (QREFELT $ 116))) 

(DEFUN |POLYCAT-;factor;SF;26| (|p| $)
  (PROG (#1=#:G7679 |ww| #2=#:G7678 |ansSUP| |up| #3=#:G7677 |w| #4=#:G7676
         |ansR| |v|)
    (RETURN
     (SEQ
      (LETT |v| (SPADCALL |p| (QREFELT $ 42)) . #5=(|POLYCAT-;factor;SF;26|))
      (EXIT
       (COND
        ((QEQCAR |v| 1)
         (SEQ
          (LETT |ansR| (SPADCALL (SPADCALL |p| (QREFELT $ 38)) (QREFELT $ 119))
                . #5#)
          (EXIT
           (SPADCALL
            (SPADCALL (SPADCALL |ansR| (QREFELT $ 121)) (QREFELT $ 40))
            (PROGN
             (LETT #4# NIL . #5#)
             (SEQ (LETT |w| NIL . #5#)
                  (LETT #3# (SPADCALL |ansR| (QREFELT $ 125)) . #5#) G190
                  (COND
                   ((OR (ATOM #3#) (PROGN (LETT |w| (CAR #3#) . #5#) NIL))
                    #6=(GO G191)))
                  (SEQ
                   (EXIT
                    (LETT #4#
                          (CONS
                           (VECTOR (QVELT |w| 0)
                                   (SPADCALL (QVELT |w| 1) (QREFELT $ 40))
                                   (QVELT |w| 2))
                           #4#)
                          . #5#)))
                  (LETT #3# (CDR #3#) . #5#) #7=(GO G190) G191
                  (EXIT (NREVERSE0 #4#))))
            (QREFELT $ 129)))))
        ('T
         (SEQ (LETT |up| (SPADCALL |p| (QCDR |v|) (QREFELT $ 47)) . #5#)
              (LETT |ansSUP| (SPADCALL |up| (QREFELT $ 113)) . #5#)
              (EXIT
               (SPADCALL
                (SPADCALL (SPADCALL |ansSUP| (QREFELT $ 130)) (QCDR |v|)
                          (QREFELT $ 131))
                (PROGN
                 (LETT #2# NIL . #5#)
                 (SEQ (LETT |ww| NIL . #5#)
                      (LETT #1# (SPADCALL |ansSUP| (QREFELT $ 134)) . #5#) G190
                      (COND
                       ((OR (ATOM #1#) (PROGN (LETT |ww| (CAR #1#) . #5#) NIL))
                        #6#))
                      (SEQ
                       (EXIT
                        (LETT #2#
                              (CONS
                               (VECTOR (QVELT |ww| 0)
                                       (SPADCALL (QVELT |ww| 1) (QCDR |v|)
                                                 (QREFELT $ 131))
                                       (QVELT |ww| 2))
                               #2#)
                              . #5#)))
                      (LETT #1# (CDR #1#) . #5#) #7# G191
                      (EXIT (NREVERSE0 #2#))))
                (QREFELT $ 129))))))))))) 

(DEFUN |POLYCAT-;conditionP;MU;27| (|mat| $)
  (PROG (#1=#:G7708 #2=#:G7707 #3=#:G7709 |i| #4=#:G7727 |m| #5=#:G7726 |mons|
         #6=#:G7725 #7=#:G7724 |ans| |monslist| |llR| #8=#:G7722 |u| #9=#:G7723
         |v| #10=#:G7721 |redmons| |deg1| #11=#:G7693 #12=#:G7713 |nd|
         #13=#:G7720 |d| #14=#:G7719 |degs| |vars| #15=#:G7718 #16=#:G7685
         #17=#:G7684 #18=#:G7686 #19=#:G7717 #20=#:G7716 |l| |ch| #21=#:G7715
         |z| #22=#:G7714 |ll|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |ll| (SPADCALL (SPADCALL |mat| (QREFELT $ 136)) (QREFELT $ 91))
              . #23=(|POLYCAT-;conditionP;MU;27|))
        (LETT |llR|
              (PROGN
               (LETT #22# NIL . #23#)
               (SEQ (LETT |z| NIL . #23#) (LETT #21# (|SPADfirst| |ll|) . #23#)
                    G190
                    (COND
                     ((OR (ATOM #21#) (PROGN (LETT |z| (CAR #21#) . #23#) NIL))
                      #24=(GO G191)))
                    (SEQ (EXIT (LETT #22# (CONS NIL #22#) . #23#)))
                    (LETT #21# (CDR #21#) . #23#) #25=(GO G190) G191
                    (EXIT (NREVERSE0 #22#))))
              . #23#)
        (LETT |monslist| NIL . #23#)
        (LETT |ch| (SPADCALL (QREFELT $ 137)) . #23#)
        (SEQ (LETT |l| NIL . #23#) (LETT #20# |ll| . #23#) G190
             (COND
              ((OR (ATOM #20#) (PROGN (LETT |l| (CAR #20#) . #23#) NIL)) #24#))
             (SEQ
              (LETT |mons|
                    (PROGN
                     (LETT #16# NIL . #23#)
                     (SEQ (LETT |u| NIL . #23#) (LETT #19# |l| . #23#) G190
                          (COND
                           ((OR (ATOM #19#)
                                (PROGN (LETT |u| (CAR #19#) . #23#) NIL))
                            #24#))
                          (SEQ
                           (EXIT
                            (PROGN
                             (LETT #18# (SPADCALL |u| (QREFELT $ 77)) . #23#)
                             (COND
                              (#16#
                               (LETT #17# (SPADCALL #17# #18# (QREFELT $ 138))
                                     . #23#))
                              ('T
                               (PROGN
                                (LETT #17# #18# . #23#)
                                (LETT #16# 'T . #23#)))))))
                          (LETT #19# (CDR #19#) . #23#) #25# G191 (EXIT NIL))
                     (COND (#16# #17#) ('T (|IdentityError| '|setUnion|))))
                    . #23#)
              (LETT |redmons| NIL . #23#)
              (SEQ (LETT |m| NIL . #23#) (LETT #15# |mons| . #23#) G190
                   (COND
                    ((OR (ATOM #15#) (PROGN (LETT |m| (CAR #15#) . #23#) NIL))
                     #24#))
                   (SEQ (LETT |vars| (SPADCALL |m| (QREFELT $ 31)) . #23#)
                        (LETT |degs| (SPADCALL |m| |vars| (QREFELT $ 139))
                              . #23#)
                        (LETT |deg1|
                              (PROGN
                               (LETT #14# NIL . #23#)
                               (SEQ (LETT |d| NIL . #23#)
                                    (LETT #13# |degs| . #23#) G190
                                    (COND
                                     ((OR (ATOM #13#)
                                          (PROGN
                                           (LETT |d| (CAR #13#) . #23#)
                                           NIL))
                                      #24#))
                                    (SEQ
                                     (EXIT
                                      (LETT #14#
                                            (CONS
                                             (SEQ
                                              (LETT |nd|
                                                    (SPADCALL |d| |ch|
                                                              (QREFELT $ 141))
                                                    . #23#)
                                              (EXIT
                                               (COND
                                                ((QEQCAR |nd| 1)
                                                 (PROGN
                                                  (LETT #12# (CONS 1 "failed")
                                                        . #23#)
                                                  (GO #12#)))
                                                ('T
                                                 (PROG1
                                                     (LETT #11# (QCDR |nd|)
                                                           . #23#)
                                                   (|check-subtype| (>= #11# 0)
                                                                    '(|NonNegativeInteger|)
                                                                    #11#))))))
                                             #14#)
                                            . #23#)))
                                    (LETT #13# (CDR #13#) . #23#) #25# G191
                                    (EXIT (NREVERSE0 #14#))))
                              . #23#)
                        (LETT |redmons|
                              (CONS
                               (SPADCALL (|spadConstant| $ 33) |vars| |deg1|
                                         (QREFELT $ 54))
                               |redmons|)
                              . #23#)
                        (EXIT
                         (LETT |llR|
                               (PROGN
                                (LETT #10# NIL . #23#)
                                (SEQ (LETT |v| NIL . #23#)
                                     (LETT #9# |llR| . #23#)
                                     (LETT |u| NIL . #23#)
                                     (LETT #8# |l| . #23#) G190
                                     (COND
                                      ((OR (ATOM #8#)
                                           (PROGN
                                            (LETT |u| (CAR #8#) . #23#)
                                            NIL)
                                           (ATOM #9#)
                                           (PROGN
                                            (LETT |v| (CAR #9#) . #23#)
                                            NIL))
                                       #24#))
                                     (SEQ
                                      (EXIT
                                       (LETT #10#
                                             (CONS
                                              (CONS
                                               (SPADCALL
                                                (SPADCALL |u| |vars| |degs|
                                                          (QREFELT $ 52))
                                                (QREFELT $ 142))
                                               |v|)
                                              #10#)
                                             . #23#)))
                                     (LETT #8#
                                           (PROG1 (CDR #8#)
                                             (LETT #9# (CDR #9#) . #23#))
                                           . #23#)
                                     #25# G191 (EXIT (NREVERSE0 #10#))))
                               . #23#)))
                   (LETT #15# (CDR #15#) . #23#) #25# G191 (EXIT NIL))
              (EXIT (LETT |monslist| (CONS |redmons| |monslist|) . #23#)))
             (LETT #20# (CDR #20#) . #23#) #25# G191 (EXIT NIL))
        (LETT |ans|
              (SPADCALL
               (SPADCALL (SPADCALL |llR| (QREFELT $ 88)) (QREFELT $ 143))
               (QREFELT $ 145))
              . #23#)
        (EXIT
         (COND ((QEQCAR |ans| 1) (CONS 1 "failed"))
               ('T
                (SEQ (LETT |i| 0 . #23#)
                     (EXIT
                      (CONS 0
                            (PROGN
                             (LETT #7# (GETREFV (SIZE |monslist|)) . #23#)
                             (SEQ (LETT #6# 0 . #23#) (LETT |mons| NIL . #23#)
                                  (LETT #5# |monslist| . #23#) G190
                                  (COND
                                   ((OR (ATOM #5#)
                                        (PROGN
                                         (LETT |mons| (CAR #5#) . #23#)
                                         NIL))
                                    #24#))
                                  (SEQ
                                   (EXIT
                                    (SETELT #7# #6#
                                            (PROGN
                                             (LETT #1# NIL . #23#)
                                             (SEQ (LETT |m| NIL . #23#)
                                                  (LETT #4# |mons| . #23#) G190
                                                  (COND
                                                   ((OR (ATOM #4#)
                                                        (PROGN
                                                         (LETT |m| (CAR #4#)
                                                               . #23#)
                                                         NIL))
                                                    #24#))
                                                  (SEQ
                                                   (EXIT
                                                    (PROGN
                                                     (LETT #3#
                                                           (SPADCALL |m|
                                                                     (SPADCALL
                                                                      (SPADCALL
                                                                       (QCDR
                                                                        |ans|)
                                                                       (LETT
                                                                        |i|
                                                                        (+ |i|
                                                                           1)
                                                                        . #23#)
                                                                       (QREFELT
                                                                        $ 146))
                                                                      (QREFELT
                                                                       $ 40))
                                                                     (QREFELT $
                                                                              147))
                                                           . #23#)
                                                     (COND
                                                      (#1#
                                                       (LETT #2#
                                                             (SPADCALL #2# #3#
                                                                       (QREFELT
                                                                        $ 148))
                                                             . #23#))
                                                      ('T
                                                       (PROGN
                                                        (LETT #2# #3# . #23#)
                                                        (LETT #1# 'T
                                                              . #23#)))))))
                                                  (LETT #4# (CDR #4#) . #23#)
                                                  #25# G191 (EXIT NIL))
                                             (COND (#1# #2#)
                                                   ('T
                                                    (|spadConstant| $ 21)))))))
                                  (LETT #5#
                                        (PROG1 (CDR #5#)
                                          (LETT #6# (QSADD1 #6#) . #23#))
                                        . #23#)
                                  #25# G191 (EXIT NIL))
                             #7#)))))))))
      #12# (EXIT #12#))))) 

(DEFUN |POLYCAT-;charthRoot;SU;28| (|p| $)
  (PROG (|ch| |ans| |vars|)
    (RETURN
     (SEQ
      (LETT |vars| (SPADCALL |p| (QREFELT $ 31))
            . #1=(|POLYCAT-;charthRoot;SU;28|))
      (EXIT
       (COND
        ((NULL |vars|)
         (SEQ
          (LETT |ans| (SPADCALL (SPADCALL |p| (QREFELT $ 142)) (QREFELT $ 150))
                . #1#)
          (EXIT
           (COND ((QEQCAR |ans| 1) (CONS 1 "failed"))
                 (#2='T (CONS 0 (SPADCALL (QCDR |ans|) (QREFELT $ 40))))))))
        (#2#
         (SEQ (LETT |ch| (SPADCALL (QREFELT $ 137)) . #1#)
              (EXIT (|POLYCAT-;charthRootlv| |p| |vars| |ch| $)))))))))) 

(DEFUN |POLYCAT-;charthRootlv| (|p| |vars| |ch| $)
  (PROG (#1=#:G7755 |ansx| |ans| #2=#:G7748 |d| |cp| |dd| |v|)
    (RETURN
     (SEQ
      (EXIT
       (COND
        ((NULL |vars|)
         (SEQ
          (LETT |ans| (SPADCALL (SPADCALL |p| (QREFELT $ 142)) (QREFELT $ 150))
                . #3=(|POLYCAT-;charthRootlv|))
          (EXIT
           (COND ((QEQCAR |ans| 1) (CONS 1 "failed"))
                 (#4='T (CONS 0 (SPADCALL (QCDR |ans|) (QREFELT $ 40))))))))
        (#4#
         (SEQ (LETT |v| (|SPADfirst| |vars|) . #3#)
              (LETT |vars| (CDR |vars|) . #3#)
              (LETT |d| (SPADCALL |p| |v| (QREFELT $ 36)) . #3#)
              (LETT |ans| (|spadConstant| $ 21) . #3#)
              (SEQ G190 (COND ((NULL (< 0 |d|)) (GO G191)))
                   (SEQ (LETT |dd| (SPADCALL |d| |ch| (QREFELT $ 141)) . #3#)
                        (EXIT
                         (COND
                          ((QEQCAR |dd| 1)
                           (PROGN (LETT #1# (CONS 1 "failed") . #3#) (GO #1#)))
                          ('T
                           (SEQ
                            (LETT |cp| (SPADCALL |p| |v| |d| (QREFELT $ 153))
                                  . #3#)
                            (LETT |p|
                                  (SPADCALL |p|
                                            (SPADCALL |cp| |v| |d|
                                                      (QREFELT $ 37))
                                            (QREFELT $ 154))
                                  . #3#)
                            (LETT |ansx|
                                  (|POLYCAT-;charthRootlv| |cp| |vars| |ch| $)
                                  . #3#)
                            (EXIT
                             (COND
                              ((QEQCAR |ansx| 1)
                               (PROGN
                                (LETT #1# (CONS 1 "failed") . #3#)
                                (GO #1#)))
                              ('T
                               (SEQ
                                (LETT |d| (SPADCALL |p| |v| (QREFELT $ 36))
                                      . #3#)
                                (EXIT
                                 (LETT |ans|
                                       (SPADCALL |ans|
                                                 (SPADCALL (QCDR |ansx|) |v|
                                                           (PROG1
                                                               (LETT #2#
                                                                     (QCDR
                                                                      |dd|)
                                                                     . #3#)
                                                             (|check-subtype|
                                                              (>= #2# 0)
                                                              '(|NonNegativeInteger|)
                                                              #2#))
                                                           (QREFELT $ 37))
                                                 (QREFELT $ 148))
                                       . #3#)))))))))))
                   NIL (GO G190) G191 (EXIT NIL))
              (LETT |ansx| (|POLYCAT-;charthRootlv| |p| |vars| |ch| $) . #3#)
              (EXIT
               (COND
                ((QEQCAR |ansx| 1)
                 (PROGN (LETT #1# (CONS 1 "failed") . #3#) (GO #1#)))
                (#4#
                 (PROGN
                  (LETT #1#
                        (CONS 0 (SPADCALL |ans| (QCDR |ansx|) (QREFELT $ 148)))
                        . #3#)
                  (GO #1#)))))))))
      #1# (EXIT #1#))))) 

(DEFUN |POLYCAT-;monicDivide;2SVarSetR;30| (|p1| |p2| |mvar| $)
  (PROG (|result|)
    (RETURN
     (SEQ
      (LETT |result|
            (SPADCALL (SPADCALL |p1| |mvar| (QREFELT $ 47))
                      (SPADCALL |p2| |mvar| (QREFELT $ 47)) (QREFELT $ 156))
            |POLYCAT-;monicDivide;2SVarSetR;30|)
      (EXIT
       (CONS (SPADCALL (QCAR |result|) |mvar| (QREFELT $ 131))
             (SPADCALL (QCDR |result|) |mvar| (QREFELT $ 131)))))))) 

(DEFUN |POLYCAT-;squareFree;SF;31| (|p| $) (SPADCALL |p| (QREFELT $ 159))) 

(DEFUN |POLYCAT-;squareFree;SF;32| (|p| $) (SPADCALL |p| (QREFELT $ 162))) 

(DEFUN |POLYCAT-;squareFree;SF;33| (|p| $) (SPADCALL |p| (QREFELT $ 162))) 

(DEFUN |POLYCAT-;squareFreePart;2S;34| (|p| $)
  (PROG (#1=#:G7768 #2=#:G7767 #3=#:G7769 #4=#:G7771 |f| |s|)
    (RETURN
     (SEQ
      (SPADCALL
       (SPADCALL
        (LETT |s| (SPADCALL |p| (QREFELT $ 163))
              . #5=(|POLYCAT-;squareFreePart;2S;34|))
        (QREFELT $ 164))
       (PROGN
        (LETT #1# NIL . #5#)
        (SEQ (LETT |f| NIL . #5#)
             (LETT #4# (SPADCALL |s| (QREFELT $ 167)) . #5#) G190
             (COND
              ((OR (ATOM #4#) (PROGN (LETT |f| (CAR #4#) . #5#) NIL))
               (GO G191)))
             (SEQ
              (EXIT
               (PROGN
                (LETT #3# (QCAR |f|) . #5#)
                (COND (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 147)) . #5#))
                      ('T (PROGN (LETT #2# #3# . #5#) (LETT #1# 'T . #5#)))))))
             (LETT #4# (CDR #4#) . #5#) (GO G190) G191 (EXIT NIL))
        (COND (#1# #2#) ('T (|spadConstant| $ 33))))
       (QREFELT $ 147)))))) 

(DEFUN |POLYCAT-;content;SVarSetS;35| (|p| |v| $)
  (SPADCALL (SPADCALL |p| |v| (QREFELT $ 47)) (QREFELT $ 169))) 

(DEFUN |POLYCAT-;primitivePart;2S;36| (|p| $)
  (PROG (#1=#:G7774)
    (RETURN
     (COND ((SPADCALL |p| (QREFELT $ 171)) |p|)
           ('T
            (QVELT
             (SPADCALL
              (PROG2
                  (LETT #1#
                        (SPADCALL |p| (SPADCALL |p| (QREFELT $ 172))
                                  (QREFELT $ 173))
                        |POLYCAT-;primitivePart;2S;36|)
                  (QCDR #1#)
                (|check-union| (QEQCAR #1# 0) (QREFELT $ 6) #1#))
              (QREFELT $ 175))
             1)))))) 

(DEFUN |POLYCAT-;primitivePart;SVarSetS;37| (|p| |v| $)
  (PROG (#1=#:G7781)
    (RETURN
     (COND ((SPADCALL |p| (QREFELT $ 171)) |p|)
           ('T
            (QVELT
             (SPADCALL
              (PROG2
                  (LETT #1#
                        (SPADCALL |p| (SPADCALL |p| |v| (QREFELT $ 177))
                                  (QREFELT $ 178))
                        |POLYCAT-;primitivePart;SVarSetS;37|)
                  (QCDR #1#)
                (|check-union| (QEQCAR #1# 0) (QREFELT $ 6) #1#))
              (QREFELT $ 175))
             1)))))) 

(DEFUN |POLYCAT-;smaller?;2SB;38| (|p| |q| $)
  (PROG (|dq| |dp|)
    (RETURN
     (SEQ
      (LETT |dp| (SPADCALL |p| (QREFELT $ 59))
            . #1=(|POLYCAT-;smaller?;2SB;38|))
      (LETT |dq| (SPADCALL |q| (QREFELT $ 59)) . #1#)
      (EXIT
       (COND
        ((SPADCALL |dp| |dq| (QREFELT $ 180))
         (SPADCALL (|spadConstant| $ 22) (SPADCALL |q| (QREFELT $ 38))
                   (QREFELT $ 181)))
        ((SPADCALL |dq| |dp| (QREFELT $ 180))
         (SPADCALL (SPADCALL |p| (QREFELT $ 38)) (|spadConstant| $ 22)
                   (QREFELT $ 181)))
        ('T
         (SPADCALL (SPADCALL (SPADCALL |p| |q| (QREFELT $ 154)) (QREFELT $ 38))
                   (|spadConstant| $ 22) (QREFELT $ 181))))))))) 

(DEFUN |POLYCAT-;patternMatch;SP2Pmr;39| (|p| |pat| |l| $)
  (SPADCALL |p| |pat| |l| (QREFELT $ 186))) 

(DEFUN |POLYCAT-;patternMatch;SP2Pmr;40| (|p| |pat| |l| $)
  (SPADCALL |p| |pat| |l| (QREFELT $ 192))) 

(DEFUN |POLYCAT-;convert;SP;41| (|x| $)
  (SPADCALL (ELT $ 195) (ELT $ 196) |x| (QREFELT $ 200))) 

(DEFUN |POLYCAT-;convert;SP;42| (|x| $)
  (SPADCALL (ELT $ 202) (ELT $ 203) |x| (QREFELT $ 207))) 

(DEFUN |POLYCAT-;convert;SIf;43| (|p| $)
  (SPADCALL (ELT $ 210) (ELT $ 211) |p| (QREFELT $ 215))) 

(DEFUN |PolynomialCategory&| (|#1| |#2| |#3| |#4|)
  (PROG (|pv$| $ |dv$| DV$4 DV$3 DV$2 DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #1=(|PolynomialCategory&|))
      (LETT DV$2 (|devaluate| |#2|) . #1#)
      (LETT DV$3 (|devaluate| |#3|) . #1#)
      (LETT DV$4 (|devaluate| |#4|) . #1#)
      (LETT |dv$| (LIST '|PolynomialCategory&| DV$1 DV$2 DV$3 DV$4) . #1#)
      (LETT $ (GETREFV 225) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3
                (LETT |pv$|
                      (|buildPredVector| 0 0
                                         (LIST
                                          (|HasCategory| |#2|
                                                         '(|PolynomialFactorizationExplicit|))
                                          (|HasCategory| |#2|
                                                         '(|canonicalUnitNormal|))
                                          (|HasCategory| |#2| '(|GcdDomain|))
                                          (|HasCategory| |#2|
                                                         '(|CommutativeRing|))
                                          (|HasCategory| |#4|
                                                         '(|PatternMatchable|
                                                           (|Float|)))
                                          (|HasCategory| |#2|
                                                         '(|PatternMatchable|
                                                           (|Float|)))
                                          (|HasCategory| |#4|
                                                         '(|PatternMatchable|
                                                           (|Integer|)))
                                          (|HasCategory| |#2|
                                                         '(|PatternMatchable|
                                                           (|Integer|)))
                                          (|HasCategory| |#4|
                                                         '(|ConvertibleTo|
                                                           (|Pattern|
                                                            (|Float|))))
                                          (|HasCategory| |#2|
                                                         '(|ConvertibleTo|
                                                           (|Pattern|
                                                            (|Float|))))
                                          (|HasCategory| |#4|
                                                         '(|ConvertibleTo|
                                                           (|Pattern|
                                                            (|Integer|))))
                                          (|HasCategory| |#2|
                                                         '(|ConvertibleTo|
                                                           (|Pattern|
                                                            (|Integer|))))
                                          (|HasCategory| |#4|
                                                         '(|ConvertibleTo|
                                                           (|InputForm|)))
                                          (|HasCategory| |#2|
                                                         '(|ConvertibleTo|
                                                           (|InputForm|)))
                                          (|HasCategory| |#2|
                                                         '(|Comparable|))))
                      . #1#))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 |#2|)
      (QSETREFV $ 8 |#3|)
      (QSETREFV $ 9 |#4|)
      (COND
       ((|testBitVector| |pv$| 4)
        (PROGN
         (QSETREFV $ 74
                   (CONS (|dispatchFunction| |POLYCAT-;resultant;2SVarSetS;15|)
                         $))
         (QSETREFV $ 76
                   (CONS
                    (|dispatchFunction| |POLYCAT-;discriminant;SVarSetS;16|)
                    $)))))
      (COND
       ((|HasCategory| |#2| '(|IntegralDomain|))
        (PROGN
         (QSETREFV $ 94
                   (CONS (|dispatchFunction| |POLYCAT-;reducedSystem;MM;20|)
                         $))
         (QSETREFV $ 101
                   (CONS (|dispatchFunction| |POLYCAT-;reducedSystem;MVR;21|)
                         $)))))
      (COND
       ((|testBitVector| |pv$| 1)
        (PROGN
         (QSETREFV $ 104
                   (CONS (|dispatchFunction| |POLYCAT-;gcdPolynomial;3Sup;22|)
                         $))
         (QSETREFV $ 111
                   (CONS
                    (|dispatchFunction|
                     |POLYCAT-;solveLinearPolynomialEquation;LSupU;23|)
                    $))
         (QSETREFV $ 115
                   (CONS
                    (|dispatchFunction| |POLYCAT-;factorPolynomial;SupF;24|)
                    $))
         (QSETREFV $ 117
                   (CONS
                    (|dispatchFunction|
                     |POLYCAT-;factorSquareFreePolynomial;SupF;25|)
                    $))
         (QSETREFV $ 135 (CONS (|dispatchFunction| |POLYCAT-;factor;SF;26|) $))
         (COND
          ((|HasCategory| |#2| '(|CharacteristicNonZero|))
           (PROGN
            (QSETREFV $ 149
                      (CONS (|dispatchFunction| |POLYCAT-;conditionP;MU;27|)
                            $))))))))
      (COND
       ((|HasCategory| |#2| '(|CharacteristicNonZero|))
        (PROGN
         (QSETREFV $ 151
                   (CONS (|dispatchFunction| |POLYCAT-;charthRoot;SU;28|)
                         $)))))
      (COND
       ((|testBitVector| |pv$| 3)
        (PROGN
         (COND
          ((|HasCategory| |#2| '(|EuclideanDomain|))
           (COND
            ((|HasCategory| |#2| '(|CharacteristicZero|))
             (QSETREFV $ 160
                       (CONS (|dispatchFunction| |POLYCAT-;squareFree;SF;31|)
                             $)))
            ('T
             (QSETREFV $ 160
                       (CONS (|dispatchFunction| |POLYCAT-;squareFree;SF;32|)
                             $)))))
          ('T
           (QSETREFV $ 160
                     (CONS (|dispatchFunction| |POLYCAT-;squareFree;SF;33|)
                           $))))
         (QSETREFV $ 168
                   (CONS (|dispatchFunction| |POLYCAT-;squareFreePart;2S;34|)
                         $))
         (QSETREFV $ 170
                   (CONS (|dispatchFunction| |POLYCAT-;content;SVarSetS;35|)
                         $))
         (QSETREFV $ 176
                   (CONS (|dispatchFunction| |POLYCAT-;primitivePart;2S;36|)
                         $))
         (QSETREFV $ 179
                   (CONS
                    (|dispatchFunction| |POLYCAT-;primitivePart;SVarSetS;37|)
                    $)))))
      (COND
       ((|testBitVector| |pv$| 15)
        (PROGN
         (QSETREFV $ 182
                   (CONS (|dispatchFunction| |POLYCAT-;smaller?;2SB;38|) $))
         (COND
          ((|testBitVector| |pv$| 8)
           (COND
            ((|testBitVector| |pv$| 7)
             (QSETREFV $ 188
                       (CONS
                        (|dispatchFunction| |POLYCAT-;patternMatch;SP2Pmr;39|)
                        $))))))
         (COND
          ((|testBitVector| |pv$| 6)
           (COND
            ((|testBitVector| |pv$| 5)
             (QSETREFV $ 194
                       (CONS
                        (|dispatchFunction| |POLYCAT-;patternMatch;SP2Pmr;40|)
                        $)))))))))
      (COND
       ((|testBitVector| |pv$| 12)
        (COND
         ((|testBitVector| |pv$| 11)
          (QSETREFV $ 201
                    (CONS (|dispatchFunction| |POLYCAT-;convert;SP;41|) $))))))
      (COND
       ((|testBitVector| |pv$| 10)
        (COND
         ((|testBitVector| |pv$| 9)
          (QSETREFV $ 208
                    (CONS (|dispatchFunction| |POLYCAT-;convert;SP;42|) $))))))
      (COND
       ((|testBitVector| |pv$| 14)
        (COND
         ((|testBitVector| |pv$| 13)
          (QSETREFV $ 216
                    (CONS (|dispatchFunction| |POLYCAT-;convert;SIf;43|)
                          $))))))
      $)))) 

(MAKEPROP '|PolynomialCategory&| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|)
              (|local| |#3|) (|local| |#4|) (|Equation| 6) (0 . |lhs|)
              (|Union| 9 '#1="failed") (5 . |retractIfCan|) (10 . |retract|)
              (15 . |rhs|) (|List| 9) (|List| $) (20 . |eval|) (|List| 220)
              |POLYCAT-;eval;SLS;1| (27 . |Zero|) (31 . |Zero|) (|Boolean|)
              (35 . =) (41 . |leadingMonomial|) (46 . |reductum|)
              |POLYCAT-;monomials;SL;2| (51 . |monomials|)
              (|Union| 17 '"failed") |POLYCAT-;isPlus;SU;3| (56 . |variables|)
              (61 . |monomial?|) (66 . |One|) (70 . |One|)
              (|NonNegativeInteger|) (74 . |degree|) (80 . |monomial|)
              (87 . |leadingCoefficient|) (92 . =) (98 . |coerce|)
              |POLYCAT-;isTimes;SU;4| (103 . |mainVariable|)
              (|Record| (|:| |var| 9) (|:| |exponent| 35))
              (|Union| 43 '"failed") |POLYCAT-;isExpt;SU;5|
              (|SparseUnivariatePolynomial| $) (108 . |univariate|)
              (|SparseUnivariatePolynomial| 6) (114 . |coefficient|)
              |POLYCAT-;coefficient;SVarSetNniS;6| (|List| 35)
              (120 . |coefficient|) |POLYCAT-;coefficient;SLLS;7|
              (127 . |monomial|) |POLYCAT-;monomial;SLLS;8| (134 . |coerce|)
              |POLYCAT-;retract;SVarSet;9| |POLYCAT-;retractIfCan;SU;10|
              (139 . |degree|) (144 . |monomial|)
              |POLYCAT-;primitiveMonomials;SL;12| (150 . |ground?|)
              (155 . |Zero|) (159 . =) (165 . |degree|)
              (170 . |leadingCoefficient|) (175 . |totalDegree|)
              (180 . |reductum|) |POLYCAT-;totalDegree;SNni;13|
              (185 . |member?|) (191 . |totalDegree|)
              |POLYCAT-;totalDegree;SLNni;14| (197 . |resultant|)
              (203 . |resultant|) (210 . |discriminant|) (215 . |discriminant|)
              (221 . |primitiveMonomials|) (|List| 6) (226 . |concat|)
              (231 . |removeDuplicates!|) (|Integer|) (|Vector| 7)
              (236 . |minIndex|) (241 . |coefficient|) (247 . |qsetelt!|)
              (|List| 219) (|Matrix| 7) (254 . |matrix|) (|List| 78)
              (|Matrix| 6) (259 . |listOfLists|) (264 . |vertConcat|)
              (|Matrix| $) (270 . |reducedSystem|) (|Vector| 6)
              (275 . |entries|) (280 . |concat|) (286 . |concat|)
              (|Record| (|:| |mat| 87) (|:| |vec| 82)) (|Vector| $)
              (292 . |reducedSystem|) (|GeneralPolynomialGcdPackage| 8 9 7 6)
              (298 . |gcdPolynomial|) (304 . |gcdPolynomial|)
              (|Union| 106 '"failed") (|List| 48)
              (|PolynomialFactorizationByRecursion| 7 8 9 6)
              (310 . |solveLinearPolynomialEquationByRecursion|)
              (|Union| 110 '#2="failed") (|List| 46)
              (316 . |solveLinearPolynomialEquation|) (|Factored| 48)
              (322 . |factorByRecursion|) (|Factored| 46)
              (327 . |factorPolynomial|) (332 . |factorSquareFreeByRecursion|)
              (337 . |factorSquareFreePolynomial|) (|Factored| $)
              (342 . |factor|) (|Factored| 7) (347 . |unit|)
              (|Union| '"nil" '"sqfr" '"irred" '"prime")
              (|Record| (|:| |flg| 122) (|:| |fctr| 7) (|:| |xpnt| 81))
              (|List| 123) (352 . |factorList|)
              (|Record| (|:| |flg| 122) (|:| |fctr| 6) (|:| |xpnt| 81))
              (|List| 126) (|Factored| 6) (357 . |makeFR|) (363 . |unit|)
              (368 . |multivariate|)
              (|Record| (|:| |flg| 122) (|:| |fctr| 48) (|:| |xpnt| 81))
              (|List| 132) (374 . |factorList|) (379 . |factor|)
              (384 . |transpose|) (389 . |characteristic|) (393 . |setUnion|)
              (399 . |degree|) (|Union| $ '"failed") (405 . |exquo|)
              (411 . |ground|) (416 . |transpose|) (|Union| 100 '#2#)
              (421 . |conditionP|) (426 . |elt|) (432 . *) (438 . +)
              (444 . |conditionP|) (449 . |charthRoot|) (454 . |charthRoot|)
              (459 . |Zero|) (463 . |coefficient|) (470 . -)
              (|Record| (|:| |quotient| $) (|:| |remainder| $))
              (476 . |monicDivide|) |POLYCAT-;monicDivide;2SVarSetR;30|
              (|MultivariateSquareFree| 8 9 7 6) (482 . |squareFree|)
              (487 . |squareFree|) (|PolynomialSquareFree| 9 8 7 6)
              (492 . |squareFree|) (497 . |squareFree|) (502 . |unit|)
              (|Record| (|:| |factor| 6) (|:| |exponent| 81)) (|List| 165)
              (507 . |factors|) (512 . |squareFreePart|) (517 . |content|)
              (522 . |content|) (528 . |zero?|) (533 . |content|)
              (538 . |exquo|)
              (|Record| (|:| |unit| $) (|:| |canonical| $) (|:| |associate| $))
              (544 . |unitNormal|) (549 . |primitivePart|) (554 . |content|)
              (560 . |exquo|) (566 . |primitivePart|) (572 . <)
              (578 . |smaller?|) (584 . |smaller?|) (|PatternMatchResult| 81 6)
              (|Pattern| 81) (|PatternMatchPolynomialCategory| 81 8 9 7 6)
              (590 . |patternMatch|) (|PatternMatchResult| 81 $)
              (597 . |patternMatch|) (|PatternMatchResult| (|Float|) 6)
              (|Pattern| (|Float|))
              (|PatternMatchPolynomialCategory| (|Float|) 8 9 7 6)
              (604 . |patternMatch|) (|PatternMatchResult| (|Float|) $)
              (611 . |patternMatch|) (618 . |convert|) (623 . |convert|)
              (|Mapping| 184 9) (|Mapping| 184 7)
              (|PolynomialCategoryLifting| 8 9 7 6 184) (628 . |map|)
              (635 . |convert|) (640 . |convert|) (645 . |convert|)
              (|Mapping| 190 9) (|Mapping| 190 7)
              (|PolynomialCategoryLifting| 8 9 7 6 190) (650 . |map|)
              (657 . |convert|) (|InputForm|) (662 . |convert|)
              (667 . |convert|) (|Mapping| 209 9) (|Mapping| 209 7)
              (|PolynomialCategoryLifting| 8 9 7 6 209) (672 . |map|)
              (679 . |convert|)
              (|Record| (|:| |mat| 218) (|:| |vec| (|Vector| 81)))
              (|Matrix| 81) (|List| 7) (|Equation| $) (|Union| 81 '#1#)
              (|Union| 223 '#1#) (|Fraction| 81) (|Union| 7 '#1#))
           '#(|totalDegree| 684 |squareFreePart| 695 |squareFree| 700
              |solveLinearPolynomialEquation| 705 |smaller?| 711 |retractIfCan|
              717 |retract| 722 |resultant| 727 |reducedSystem| 734
              |primitivePart| 745 |primitiveMonomials| 756 |patternMatch| 761
              |monomials| 775 |monomial| 780 |monicDivide| 787 |isTimes| 794
              |isPlus| 799 |isExpt| 804 |gcdPolynomial| 809
              |factorSquareFreePolynomial| 815 |factorPolynomial| 820 |factor|
              825 |eval| 830 |discriminant| 836 |convert| 842 |content| 857
              |conditionP| 863 |coefficient| 868 |charthRoot| 882)
           'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 216
                                                 '(1 10 6 0 11 1 6 12 0 13 1 6
                                                   9 0 14 1 10 6 0 15 3 6 0 0
                                                   16 17 18 0 6 0 21 0 7 0 22 2
                                                   6 23 0 0 24 1 6 0 0 25 1 6 0
                                                   0 26 1 6 17 0 28 1 6 16 0 31
                                                   1 6 23 0 32 0 6 0 33 0 7 0
                                                   34 2 6 35 0 9 36 3 6 0 0 9
                                                   35 37 1 6 7 0 38 2 7 23 0 0
                                                   39 1 6 0 7 40 1 6 12 0 42 2
                                                   6 46 0 9 47 2 48 6 0 35 49 3
                                                   6 0 0 16 51 52 3 6 0 0 16 51
                                                   54 1 6 0 9 56 1 6 8 0 59 2 6
                                                   0 7 8 60 1 6 23 0 62 0 48 0
                                                   63 2 48 23 0 0 64 1 48 35 0
                                                   65 1 48 6 0 66 1 6 35 0 67 1
                                                   48 0 0 68 2 16 23 9 0 70 2 6
                                                   35 0 16 71 2 48 6 0 0 73 3 0
                                                   0 0 0 9 74 1 48 6 0 75 2 0 0
                                                   0 9 76 1 6 17 0 77 1 78 0 17
                                                   79 1 78 0 0 80 1 82 81 0 83
                                                   2 6 7 0 8 84 3 82 7 0 81 7
                                                   85 1 87 0 86 88 1 90 89 0 91
                                                   2 87 0 0 0 92 1 0 87 93 94 1
                                                   95 78 0 96 2 78 0 0 0 97 2
                                                   82 0 0 0 98 2 0 99 93 100
                                                   101 2 102 48 48 48 103 2 0
                                                   46 46 46 104 2 107 105 106
                                                   48 108 2 0 109 110 46 111 1
                                                   107 112 48 113 1 0 114 46
                                                   115 1 107 112 48 116 1 0 114
                                                   46 117 1 7 118 0 119 1 120 7
                                                   0 121 1 120 124 0 125 2 128
                                                   0 6 127 129 1 112 48 0 130 2
                                                   6 0 46 9 131 1 112 133 0 134
                                                   1 0 118 0 135 1 90 0 0 136 0
                                                   6 35 137 2 78 0 0 0 138 2 6
                                                   51 0 16 139 2 81 140 0 0 141
                                                   1 6 7 0 142 1 87 0 0 143 1 7
                                                   144 93 145 2 82 7 0 81 146 2
                                                   6 0 0 0 147 2 6 0 0 0 148 1
                                                   0 144 93 149 1 7 140 0 150 1
                                                   0 140 0 151 0 8 0 152 3 6 0
                                                   0 9 35 153 2 6 0 0 0 154 2
                                                   48 155 0 0 156 1 158 128 6
                                                   159 1 0 118 0 160 1 161 128
                                                   6 162 1 6 118 0 163 1 128 6
                                                   0 164 1 128 166 0 167 1 0 0
                                                   0 168 1 48 6 0 169 2 0 0 0 9
                                                   170 1 6 23 0 171 1 6 7 0 172
                                                   2 6 140 0 7 173 1 6 174 0
                                                   175 1 0 0 0 176 2 6 0 0 9
                                                   177 2 6 140 0 0 178 2 0 0 0
                                                   9 179 2 8 23 0 0 180 2 7 23
                                                   0 0 181 2 0 23 0 0 182 3 185
                                                   183 6 184 183 186 3 0 187 0
                                                   184 187 188 3 191 189 6 190
                                                   189 192 3 0 193 0 190 193
                                                   194 1 9 184 0 195 1 7 184 0
                                                   196 3 199 184 197 198 6 200
                                                   1 0 184 0 201 1 9 190 0 202
                                                   1 7 190 0 203 3 206 190 204
                                                   205 6 207 1 0 190 0 208 1 9
                                                   209 0 210 1 7 209 0 211 3
                                                   214 209 212 213 6 215 1 0
                                                   209 0 216 2 0 35 0 16 72 1 0
                                                   35 0 69 1 0 0 0 168 1 0 118
                                                   0 160 2 0 109 110 46 111 2 0
                                                   23 0 0 182 1 0 12 0 58 1 0 9
                                                   0 57 3 0 0 0 0 9 74 1 0 87
                                                   93 94 2 0 99 93 100 101 2 0
                                                   0 0 9 179 1 0 0 0 176 1 0 17
                                                   0 61 3 0 187 0 184 187 188 3
                                                   0 193 0 190 193 194 1 0 17 0
                                                   27 3 0 0 0 16 51 55 3 0 155
                                                   0 0 9 157 1 0 29 0 41 1 0 29
                                                   0 30 1 0 44 0 45 2 0 46 46
                                                   46 104 1 0 114 46 117 1 0
                                                   114 46 115 1 0 118 0 135 2 0
                                                   0 0 19 20 2 0 0 0 9 76 1 0
                                                   209 0 216 1 0 184 0 201 1 0
                                                   190 0 208 2 0 0 0 9 170 1 0
                                                   144 93 149 3 0 0 0 16 51 53
                                                   3 0 0 0 9 35 50 1 0 140 0
                                                   151)))))
           '|lookupComplete|)) 
