
(/VERSIONCHECK 2) 

(DEFUN |XPBWPOLY;outForm| (|t| $)
  (COND
   ((SPADCALL (QCDR |t|) (|spadConstant| $ 9) (QREFELT $ 11))
    (SPADCALL (QCAR |t|) (QREFELT $ 14)))
   ((SPADCALL (QCAR |t|) (|spadConstant| $ 15) (QREFELT $ 16))
    (SPADCALL (QCDR |t|) (QREFELT $ 17)))
   ('T
    (SPADCALL (SPADCALL (QCDR |t|) (QREFELT $ 17))
              (SPADCALL (QCAR |t|) (QREFELT $ 14)) (QREFELT $ 18))))) 

(DEFUN |XPBWPOLY;prod1| (|b| |p| $)
  (PROG (#1=#:G1142 #2=#:G1141 #3=#:G1143 #4=#:G1145 |t|)
    (RETURN
     (SEQ
      (PROGN
       (LETT #1# NIL . #5=(|XPBWPOLY;prod1|))
       (SEQ (LETT |t| NIL . #5#) (LETT #4# |p| . #5#) G190
            (COND
             ((OR (ATOM #4#) (PROGN (LETT |t| (CAR #4#) . #5#) NIL))
              (GO G191)))
            (SEQ
             (EXIT
              (PROGN
               (LETT #3#
                     (SPADCALL (QCDR |t|) (|XPBWPOLY;prod| |b| (QCAR |t|) $)
                               (QREFELT $ 19))
                     . #5#)
               (COND (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 20)) . #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| $ 21)))))))) 

(DEFUN |XPBWPOLY;prod2| (|p| |b| $)
  (PROG (#1=#:G1147 #2=#:G1146 #3=#:G1148 #4=#:G1150 |t|)
    (RETURN
     (SEQ
      (PROGN
       (LETT #1# NIL . #5=(|XPBWPOLY;prod2|))
       (SEQ (LETT |t| NIL . #5#) (LETT #4# |p| . #5#) G190
            (COND
             ((OR (ATOM #4#) (PROGN (LETT |t| (CAR #4#) . #5#) NIL))
              (GO G191)))
            (SEQ
             (EXIT
              (PROGN
               (LETT #3#
                     (SPADCALL (QCDR |t|) (|XPBWPOLY;prod| (QCAR |t|) |b| $)
                               (QREFELT $ 19))
                     . #5#)
               (COND (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 20)) . #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| $ 21)))))))) 

(DEFUN |XPBWPOLY;prod11| (|b| |p| |n| $)
  (PROG (#1=#:G1153 #2=#:G1152 #3=#:G1154 #4=#:G1157 |t| |limit|)
    (RETURN
     (SEQ
      (LETT |limit| (- |n| (SPADCALL |b| (QREFELT $ 23)))
            . #5=(|XPBWPOLY;prod11|))
      (EXIT
       (PROGN
        (LETT #1# NIL . #5#)
        (SEQ (LETT |t| NIL . #5#) (LETT #4# |p| . #5#) G190
             (COND
              ((OR (ATOM #4#) (PROGN (LETT |t| (CAR #4#) . #5#) NIL))
               (GO G191)))
             (SEQ
              (EXIT
               (COND
                ((COND ((< |limit| (SPADCALL (QCAR |t|) (QREFELT $ 23))) 'NIL)
                       (#6='T 'T))
                 (PROGN
                  (LETT #3#
                        (SPADCALL (QCDR |t|) (|XPBWPOLY;prod| |b| (QCAR |t|) $)
                                  (QREFELT $ 19))
                        . #5#)
                  (COND
                   (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 20)) . #5#))
                   ('T (PROGN (LETT #2# #3# . #5#) (LETT #1# 'T . #5#)))))))))
             (LETT #4# (CDR #4#) . #5#) (GO G190) G191 (EXIT NIL))
        (COND (#1# #2#) (#6# (|spadConstant| $ 21))))))))) 

(DEFUN |XPBWPOLY;prod22| (|p| |b| |n| $)
  (PROG (#1=#:G1160 #2=#:G1159 #3=#:G1161 #4=#:G1164 |t| |limit|)
    (RETURN
     (SEQ
      (LETT |limit| (- |n| (SPADCALL |b| (QREFELT $ 23)))
            . #5=(|XPBWPOLY;prod22|))
      (EXIT
       (PROGN
        (LETT #1# NIL . #5#)
        (SEQ (LETT |t| NIL . #5#) (LETT #4# |p| . #5#) G190
             (COND
              ((OR (ATOM #4#) (PROGN (LETT |t| (CAR #4#) . #5#) NIL))
               (GO G191)))
             (SEQ
              (EXIT
               (COND
                ((COND ((< |limit| (SPADCALL (QCAR |t|) (QREFELT $ 23))) 'NIL)
                       (#6='T 'T))
                 (PROGN
                  (LETT #3#
                        (SPADCALL (QCDR |t|) (|XPBWPOLY;prod| (QCAR |t|) |b| $)
                                  (QREFELT $ 19))
                        . #5#)
                  (COND
                   (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 20)) . #5#))
                   ('T (PROGN (LETT #2# #3# . #5#) (LETT #1# 'T . #5#)))))))))
             (LETT #4# (CDR #4#) . #5#) (GO G190) G191 (EXIT NIL))
        (COND (#1# #2#) (#6# (|spadConstant| $ 21))))))))) 

(DEFUN |XPBWPOLY;prod| (|g| |d| $)
  (COND
   ((SPADCALL |d| (|spadConstant| $ 15) (QREFELT $ 16))
    (SPADCALL |g| (|spadConstant| $ 9) (QREFELT $ 25)))
   ((SPADCALL |g| (|spadConstant| $ 15) (QREFELT $ 16))
    (SPADCALL |d| (|spadConstant| $ 9) (QREFELT $ 25)))
   ('T
    (|XPBWPOLY;process| (REVERSE (SPADCALL |g| (QREFELT $ 27)))
     (SPADCALL |d| (QREFELT $ 29)) (CDR (SPADCALL |d| (QREFELT $ 27))) $)))) 

(DEFUN |XPBWPOLY;Dexpand| (|b| $)
  (PROG (#1=#:G1167 #2=#:G1166 #3=#:G1168 #4=#:G1170 |l|)
    (RETURN
     (SEQ
      (COND
       ((SPADCALL |b| (|spadConstant| $ 15) (QREFELT $ 16))
        (|spadConstant| $ 31))
       (#5='T
        (PROGN
         (LETT #1# NIL . #6=(|XPBWPOLY;Dexpand|))
         (SEQ (LETT |l| NIL . #6#)
              (LETT #4# (SPADCALL |b| (QREFELT $ 27)) . #6#) G190
              (COND
               ((OR (ATOM #4#) (PROGN (LETT |l| (CAR #4#) . #6#) NIL))
                (GO G191)))
              (SEQ
               (EXIT
                (PROGN
                 (LETT #3#
                       (SPADCALL (SPADCALL |l| (QREFELT $ 33)) (QREFELT $ 34))
                       . #6#)
                 (COND (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 35)) . #6#))
                       ('T
                        (PROGN (LETT #2# #3# . #6#) (LETT #1# 'T . #6#)))))))
              (LETT #4# (CDR #4#) . #6#) (GO G190) G191 (EXIT NIL))
         (COND (#1# #2#) (#5# (|spadConstant| $ 31)))))))))) 

(DEFUN |XPBWPOLY;Rexpand| (|b| $)
  (PROG (#1=#:G1172 #2=#:G1171 #3=#:G1173 #4=#:G1175 |l|)
    (RETURN
     (SEQ
      (COND
       ((SPADCALL |b| (|spadConstant| $ 15) (QREFELT $ 16))
        (|spadConstant| $ 37))
       (#5='T
        (PROGN
         (LETT #1# NIL . #6=(|XPBWPOLY;Rexpand|))
         (SEQ (LETT |l| NIL . #6#)
              (LETT #4# (SPADCALL |b| (QREFELT $ 27)) . #6#) G190
              (COND
               ((OR (ATOM #4#) (PROGN (LETT |l| (CAR #4#) . #6#) NIL))
                (GO G191)))
              (SEQ
               (EXIT
                (PROGN
                 (LETT #3#
                       (SPADCALL (SPADCALL |l| (QREFELT $ 33)) (QREFELT $ 38))
                       . #6#)
                 (COND (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 39)) . #6#))
                       ('T
                        (PROGN (LETT #2# #3# . #6#) (LETT #1# 'T . #6#)))))))
              (LETT #4# (CDR #4#) . #6#) (GO G190) G191 (EXIT NIL))
         (COND (#1# #2#) (#5# (|spadConstant| $ 37)))))))))) 

(DEFUN |XPBWPOLY;mirror1| (|b| $)
  (PROG (|lp|)
    (RETURN
     (SEQ
      (COND
       ((SPADCALL |b| (|spadConstant| $ 15) (QREFELT $ 16))
        (|spadConstant| $ 24))
       ('T
        (SEQ
         (LETT |lp| (SPADCALL (SPADCALL |b| (QREFELT $ 29)) (QREFELT $ 33))
               . #1=(|XPBWPOLY;mirror1|))
         (LETT |lp| (SPADCALL |lp| (QREFELT $ 40)) . #1#)
         (EXIT
          (SPADCALL (|XPBWPOLY;mirror1| (SPADCALL |b| (QREFELT $ 41)) $)
                    (SPADCALL |lp| (QREFELT $ 42)) (QREFELT $ 43)))))))))) 

(DEFUN |XPBWPOLY;process| (|gauche| |x| |droite| $)
  (PROG (|r2| #1=#:G1193 #2=#:G1192 #3=#:G1194 #4=#:G1201 |t| |r1| #5=#:G1190
         #6=#:G1189 #7=#:G1191 #8=#:G1200 #9=#:G1187 #10=#:G1186 #11=#:G1188
         #12=#:G1199 |fd| |rd| #13=#:G1183 #14=#:G1182 #15=#:G1184 #16=#:G1198
         |p|)
    (RETURN
     (SEQ
      (COND
       ((NULL |gauche|)
        (SPADCALL (CONS |x| |droite|) (|spadConstant| $ 9) (QREFELT $ 25)))
       ((NULL (SPADCALL (|SPADfirst| |gauche|) |x| (QREFELT $ 44)))
        (SPADCALL (APPEND (REVERSE |gauche|) (CONS |x| |droite|))
                  (|spadConstant| $ 9) (QREFELT $ 25)))
       ('T
        (SEQ
         (LETT |p| (SPADCALL (|SPADfirst| |gauche|) |x| (QREFELT $ 45))
               . #17=(|XPBWPOLY;process|))
         (EXIT
          (COND
           ((NULL |droite|)
            (SEQ
             (LETT |r1|
                   (PROGN
                    (LETT #13# NIL . #17#)
                    (SEQ (LETT |t| NIL . #17#)
                         (LETT #16# (SPADCALL |p| (QREFELT $ 48)) . #17#) G190
                         (COND
                          ((OR (ATOM #16#)
                               (PROGN (LETT |t| (CAR #16#) . #17#) NIL))
                           #18=(GO G191)))
                         (SEQ
                          (EXIT
                           (PROGN
                            (LETT #15#
                                  (SPADCALL (QCDR |t|)
                                            (|XPBWPOLY;process| (CDR |gauche|)
                                             (QCAR |t|) |droite| $)
                                            (QREFELT $ 19))
                                  . #17#)
                            (COND
                             (#13#
                              (LETT #14# (SPADCALL #14# #15# (QREFELT $ 20))
                                    . #17#))
                             ('T
                              (PROGN
                               (LETT #14# #15# . #17#)
                               (LETT #13# 'T . #17#)))))))
                         (LETT #16# (CDR #16#) . #17#) #19=(GO G190) G191
                         (EXIT NIL))
                    (COND (#13# #14#) (#20='T (|spadConstant| $ 21))))
                   . #17#)
             (LETT |r2|
                   (|XPBWPOLY;process| (CDR |gauche|) |x|
                    (SPADCALL (|SPADfirst| |gauche|) (QREFELT $ 49)) $)
                   . #17#)
             (EXIT (SPADCALL |r1| |r2| (QREFELT $ 20)))))
           (#20#
            (SEQ (LETT |rd| (CDR |droite|) . #17#)
                 (LETT |fd| (|SPADfirst| |droite|) . #17#)
                 (LETT |r1|
                       (PROGN
                        (LETT #9# NIL . #17#)
                        (SEQ (LETT |t| NIL . #17#)
                             (LETT #12# (SPADCALL |p| (QREFELT $ 48)) . #17#)
                             G190
                             (COND
                              ((OR (ATOM #12#)
                                   (PROGN (LETT |t| (CAR #12#) . #17#) NIL))
                               #18#))
                             (SEQ
                              (EXIT
                               (PROGN
                                (LETT #11#
                                      (SPADCALL (QCDR |t|)
                                                (|XPBWPOLY;process|
                                                 (SPADCALL (QCAR |t|)
                                                           (QREFELT $ 49))
                                                 |fd| |rd| $)
                                                (QREFELT $ 19))
                                      . #17#)
                                (COND
                                 (#9#
                                  (LETT #10#
                                        (SPADCALL #10# #11# (QREFELT $ 20))
                                        . #17#))
                                 ('T
                                  (PROGN
                                   (LETT #10# #11# . #17#)
                                   (LETT #9# 'T . #17#)))))))
                             (LETT #12# (CDR #12#) . #17#) #19# G191
                             (EXIT NIL))
                        (COND (#9# #10#) (#20# (|spadConstant| $ 21))))
                       . #17#)
                 (LETT |r1|
                       (PROGN
                        (LETT #5# NIL . #17#)
                        (SEQ (LETT |t| NIL . #17#) (LETT #8# |r1| . #17#) G190
                             (COND
                              ((OR (ATOM #8#)
                                   (PROGN (LETT |t| (CAR #8#) . #17#) NIL))
                               #18#))
                             (SEQ
                              (EXIT
                               (PROGN
                                (LETT #7#
                                      (SPADCALL (QCDR |t|)
                                                (|XPBWPOLY;process|
                                                 (CDR |gauche|)
                                                 (SPADCALL (QCAR |t|)
                                                           (QREFELT $ 29))
                                                 (CDR
                                                  (SPADCALL (QCAR |t|)
                                                            (QREFELT $ 27)))
                                                 $)
                                                (QREFELT $ 19))
                                      . #17#)
                                (COND
                                 (#5#
                                  (LETT #6# (SPADCALL #6# #7# (QREFELT $ 20))
                                        . #17#))
                                 ('T
                                  (PROGN
                                   (LETT #6# #7# . #17#)
                                   (LETT #5# 'T . #17#)))))))
                             (LETT #8# (CDR #8#) . #17#) #19# G191 (EXIT NIL))
                        (COND (#5# #6#) (#20# (|spadConstant| $ 21))))
                       . #17#)
                 (LETT |r2|
                       (|XPBWPOLY;process| (LIST (|SPADfirst| |gauche|) |x|)
                        |fd| |rd| $)
                       . #17#)
                 (LETT |r2|
                       (PROGN
                        (LETT #1# NIL . #17#)
                        (SEQ (LETT |t| NIL . #17#) (LETT #4# |r2| . #17#) G190
                             (COND
                              ((OR (ATOM #4#)
                                   (PROGN (LETT |t| (CAR #4#) . #17#) NIL))
                               #18#))
                             (SEQ
                              (EXIT
                               (PROGN
                                (LETT #3#
                                      (SPADCALL (QCDR |t|)
                                                (|XPBWPOLY;process|
                                                 (CDR |gauche|)
                                                 (SPADCALL (QCAR |t|)
                                                           (QREFELT $ 29))
                                                 (CDR
                                                  (SPADCALL (QCAR |t|)
                                                            (QREFELT $ 27)))
                                                 $)
                                                (QREFELT $ 19))
                                      . #17#)
                                (COND
                                 (#1#
                                  (LETT #2# (SPADCALL #2# #3# (QREFELT $ 20))
                                        . #17#))
                                 ('T
                                  (PROGN
                                   (LETT #2# #3# . #17#)
                                   (LETT #1# 'T . #17#)))))))
                             (LETT #4# (CDR #4#) . #17#) #19# G191 (EXIT NIL))
                        (COND (#1# #2#) (#20# (|spadConstant| $ 21))))
                       . #17#)
                 (EXIT (SPADCALL |r1| |r2| (QREFELT $ 20)))))))))))))) 

(DEFUN |XPBWPOLY;One;$;11| ($)
  (SPADCALL (|spadConstant| $ 15) (|spadConstant| $ 9) (QREFELT $ 25))) 

(DEFUN |XPBWPOLY;coerce;R$;12| (|r| $) (LIST (CONS (|spadConstant| $ 15) |r|))) 

(DEFUN |XPBWPOLY;coerce;$Of;13| (|p| $)
  (PROG (|le| #1=#:G1208 |rec|)
    (RETURN
     (SEQ
      (COND ((NULL |p|) (SPADCALL (|spadConstant| $ 51) (QREFELT $ 17)))
            ('T
             (SEQ (LETT |le| NIL . #2=(|XPBWPOLY;coerce;$Of;13|))
                  (SEQ (LETT |rec| NIL . #2#) (LETT #1# |p| . #2#) G190
                       (COND
                        ((OR (ATOM #1#)
                             (PROGN (LETT |rec| (CAR #1#) . #2#) NIL))
                         (GO G191)))
                       (SEQ
                        (EXIT
                         (LETT |le| (CONS (|XPBWPOLY;outForm| |rec| $) |le|)
                               . #2#)))
                       (LETT #1# (CDR #1#) . #2#) (GO G190) G191 (EXIT NIL))
                  (EXIT (SPADCALL (ELT $ 52) |le| (QREFELT $ 55)))))))))) 

(DEFUN |XPBWPOLY;coerce;VarSet$;14| (|v| $)
  (SPADCALL (SPADCALL |v| (QREFELT $ 57)) (|spadConstant| $ 9) (QREFELT $ 25))) 

(DEFUN |XPBWPOLY;coerce;Lp$;15| (|p| $)
  (PROG (#1=#:G1214 |t| #2=#:G1213)
    (RETURN
     (SEQ
      (PROGN
       (LETT #2# NIL . #3=(|XPBWPOLY;coerce;Lp$;15|))
       (SEQ (LETT |t| NIL . #3#) (LETT #1# (SPADCALL |p| (QREFELT $ 48)) . #3#)
            G190
            (COND
             ((OR (ATOM #1#) (PROGN (LETT |t| (CAR #1#) . #3#) NIL))
              (GO G191)))
            (SEQ
             (EXIT
              (LETT #2#
                    (CONS
                     (CONS (SPADCALL (QCAR |t|) (QREFELT $ 59)) (QCDR |t|))
                     #2#)
                    . #3#)))
            (LETT #1# (CDR #1#) . #3#) (GO G190) G191
            (EXIT (NREVERSE0 #2#)))))))) 

(DEFUN |XPBWPOLY;coerce;$Xdp;16| (|p| $)
  (PROG (#1=#:G1216 #2=#:G1215 #3=#:G1217 #4=#:G1219 |t|)
    (RETURN
     (SEQ
      (PROGN
       (LETT #1# NIL . #5=(|XPBWPOLY;coerce;$Xdp;16|))
       (SEQ (LETT |t| NIL . #5#) (LETT #4# |p| . #5#) G190
            (COND
             ((OR (ATOM #4#) (PROGN (LETT |t| (CAR #4#) . #5#) NIL))
              (GO G191)))
            (SEQ
             (EXIT
              (PROGN
               (LETT #3#
                     (SPADCALL (QCDR |t|) (|XPBWPOLY;Dexpand| (QCAR |t|) $)
                               (QREFELT $ 60))
                     . #5#)
               (COND (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 61)) . #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| $ 62)))))))) 

(DEFUN |XPBWPOLY;coerce;$Xrp;17| (|p| $)
  (PROG (#1=#:G1221 #2=#:G1220 #3=#:G1222 #4=#:G1224 |t|)
    (RETURN
     (SEQ
      (COND
       ((SPADCALL |p| (|spadConstant| $ 21) (QREFELT $ 64))
        (|spadConstant| $ 65))
       (#5='T
        (PROGN
         (LETT #1# NIL . #6=(|XPBWPOLY;coerce;$Xrp;17|))
         (SEQ (LETT |t| NIL . #6#) (LETT #4# |p| . #6#) G190
              (COND
               ((OR (ATOM #4#) (PROGN (LETT |t| (CAR #4#) . #6#) NIL))
                (GO G191)))
              (SEQ
               (EXIT
                (PROGN
                 (LETT #3#
                       (SPADCALL (QCDR |t|) (|XPBWPOLY;Rexpand| (QCAR |t|) $)
                                 (QREFELT $ 66))
                       . #6#)
                 (COND (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 67)) . #6#))
                       ('T
                        (PROGN (LETT #2# #3# . #6#) (LETT #1# 'T . #6#)))))))
              (LETT #4# (CDR #4#) . #6#) (GO G190) G191 (EXIT NIL))
         (COND (#1# #2#) (#5# (|spadConstant| $ 65)))))))))) 

(DEFUN |XPBWPOLY;constant?;$B;18| (|p| $)
  (COND ((NULL |p|) 'T)
        ('T
         (SPADCALL (SPADCALL |p| (QREFELT $ 69)) (|spadConstant| $ 15)
                   (QREFELT $ 16))))) 

(DEFUN |XPBWPOLY;constant;$R;19| (|p| $)
  (COND
   ((OR (NULL |p|)
        (NULL
         (SPADCALL (QCAR (SPADCALL |p| '|last| (QREFELT $ 73)))
                   (|spadConstant| $ 15) (QREFELT $ 16))))
    (|spadConstant| $ 51))
   ('T (QCDR (SPADCALL |p| '|last| (QREFELT $ 73)))))) 

(DEFUN |XPBWPOLY;quasiRegular?;$B;20| (|p| $)
  (COND
   ((OR (SPADCALL |p| (|spadConstant| $ 21) (QREFELT $ 64))
        (NULL
         (SPADCALL (QCAR (SPADCALL |p| '|last| (QREFELT $ 73)))
                   (|spadConstant| $ 15) (QREFELT $ 16))))
    'T)
   ('T 'NIL))) 

(DEFUN |XPBWPOLY;quasiRegular;2$;21| (|p| $)
  (COND
   ((OR (SPADCALL |p| (|spadConstant| $ 21) (QREFELT $ 64))
        (NULL
         (SPADCALL (QCAR (SPADCALL |p| '|last| (QREFELT $ 73)))
                   (|spadConstant| $ 15) (QREFELT $ 16))))
    |p|)
   ('T (SPADCALL |p| (SPADCALL |p| (QREFELT $ 77)) (QREFELT $ 78))))) 

(DEFUN |XPBWPOLY;*;3$;22| (|x| |y| $)
  (PROG (#1=#:G1234 #2=#:G1233 #3=#:G1235 #4=#:G1237 |t|)
    (RETURN
     (SEQ
      (COND
       ((SPADCALL |y| (|spadConstant| $ 21) (QREFELT $ 64))
        (|spadConstant| $ 21))
       (#5='T
        (PROGN
         (LETT #1# NIL . #6=(|XPBWPOLY;*;3$;22|))
         (SEQ (LETT |t| NIL . #6#) (LETT #4# |x| . #6#) G190
              (COND
               ((OR (ATOM #4#) (PROGN (LETT |t| (CAR #4#) . #6#) NIL))
                (GO G191)))
              (SEQ
               (EXIT
                (PROGN
                 (LETT #3#
                       (SPADCALL (QCDR |t|) (|XPBWPOLY;prod1| (QCAR |t|) |y| $)
                                 (QREFELT $ 19))
                       . #6#)
                 (COND (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 20)) . #6#))
                       ('T
                        (PROGN (LETT #2# #3# . #6#) (LETT #1# 'T . #6#)))))))
              (LETT #4# (CDR #4#) . #6#) (GO G190) G191 (EXIT NIL))
         (COND (#1# #2#) (#5# (|spadConstant| $ 21)))))))))) 

(DEFUN |XPBWPOLY;varList;$L;23| (|p| $)
  (PROG (|lv| #1=#:G1239 #2=#:G1238 #3=#:G1240 #4=#:G1243 |b|)
    (RETURN
     (SEQ
      (LETT |lv|
            (PROGN
             (LETT #1# NIL . #5=(|XPBWPOLY;varList;$L;23|))
             (SEQ (LETT |b| NIL . #5#) (LETT #4# |p| . #5#) G190
                  (COND
                   ((OR (ATOM #4#) (PROGN (LETT |b| (CAR #4#) . #5#) NIL))
                    (GO G191)))
                  (SEQ
                   (EXIT
                    (PROGN
                     (LETT #3# (SPADCALL (QCAR |b|) (QREFELT $ 81)) . #5#)
                     (COND
                      (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 82)) . #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 (|IdentityError| '|setUnion|))))
            . #5#)
      (EXIT (SPADCALL |lv| (QREFELT $ 83))))))) 

(DEFUN |XPBWPOLY;degree;$Nni;24| (|p| $)
  (COND
   ((SPADCALL |p| (|spadConstant| $ 21) (QREFELT $ 64))
    (|error| "null polynomial"))
   ('T (SPADCALL (SPADCALL |p| (QREFELT $ 69)) (QREFELT $ 23))))) 

(DEFUN |XPBWPOLY;trunc;$Nni$;25| (|p| |n| $)
  (COND
   ((OR (SPADCALL |p| (|spadConstant| $ 21) (QREFELT $ 64))
        (NULL (< |n| (SPADCALL |p| (QREFELT $ 85)))))
    |p|)
   ('T (SPADCALL (SPADCALL |p| (QREFELT $ 86)) |n| (QREFELT $ 87))))) 

(DEFUN |XPBWPOLY;product;2$Nni$;26| (|x| |y| |n| $)
  (PROG (#1=#:G1248 #2=#:G1247 #3=#:G1249 #4=#:G1251 |t|)
    (RETURN
     (SEQ
      (COND
       ((OR (SPADCALL |x| (|spadConstant| $ 21) (QREFELT $ 64))
            (SPADCALL |y| (|spadConstant| $ 21) (QREFELT $ 64)))
        (|spadConstant| $ 21))
       ('T
        (PROGN
         (LETT #1# NIL . #5=(|XPBWPOLY;product;2$Nni$;26|))
         (SEQ (LETT |t| NIL . #5#) (LETT #4# |x| . #5#) G190
              (COND
               ((OR (ATOM #4#) (PROGN (LETT |t| (CAR #4#) . #5#) NIL))
                (GO G191)))
              (SEQ
               (EXIT
                (PROGN
                 (LETT #3#
                       (SPADCALL (QCDR |t|)
                                 (|XPBWPOLY;prod11| (QCAR |t|) |y| |n| $)
                                 (QREFELT $ 19))
                       . #5#)
                 (COND (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 20)) . #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| $ 21)))))))))) 

(DEFUN |XPBWPOLY;exp;$Nni$;27| (|p| |n| $)
  (PROG (|r| |s| |k2| |k1| |i|)
    (RETURN
     (SEQ
      (COND
       ((SPADCALL |p| (|spadConstant| $ 21) (QREFELT $ 64))
        (|spadConstant| $ 24))
       ((NULL (SPADCALL |p| (QREFELT $ 75)))
        (|error| "a proper polynomial is required"))
       ('T
        (SEQ (LETT |s| (|spadConstant| $ 24) . #1=(|XPBWPOLY;exp;$Nni$;27|))
             (LETT |r| (|spadConstant| $ 24) . #1#)
             (SEQ (LETT |i| 1 . #1#) G190
                  (COND ((QSGREATERP |i| |n|) (GO G191)))
                  (SEQ (LETT |k1| (SPADCALL 1 |i| (QREFELT $ 90)) . #1#)
                       (LETT |k2|
                             (SPADCALL |k1| (|spadConstant| $ 9)
                                       (QREFELT $ 91))
                             . #1#)
                       (LETT |s|
                             (SPADCALL |k2|
                                       (SPADCALL |p| |s| |n| (QREFELT $ 88))
                                       (QREFELT $ 19))
                             . #1#)
                       (EXIT
                        (LETT |r| (SPADCALL |r| |s| (QREFELT $ 20)) . #1#)))
                  (LETT |i| (QSADD1 |i|) . #1#) (GO G190) G191 (EXIT NIL))
             (EXIT |r|)))))))) 

(DEFUN |XPBWPOLY;log;$Nni$;28| (|p| |n| $)
  (PROG (|r| |s| |k2| |k1| |i| |p1|)
    (RETURN
     (SEQ
      (COND
       ((SPADCALL |p| (|spadConstant| $ 24) (QREFELT $ 64))
        (|spadConstant| $ 21))
       ('T
        (SEQ
         (LETT |p1| (SPADCALL (|spadConstant| $ 24) |p| (QREFELT $ 93))
               . #1=(|XPBWPOLY;log;$Nni$;28|))
         (COND
          ((NULL (SPADCALL |p1| (QREFELT $ 75)))
           (EXIT (|error| "constant term <> 1, impossible log "))))
         (LETT |s| (SPADCALL (|spadConstant| $ 24) (QREFELT $ 94)) . #1#)
         (LETT |r| (|spadConstant| $ 21) . #1#)
         (SEQ (LETT |i| 1 . #1#) G190 (COND ((QSGREATERP |i| |n|) (GO G191)))
              (SEQ (LETT |k1| (SPADCALL 1 |i| (QREFELT $ 90)) . #1#)
                   (LETT |k2|
                         (SPADCALL |k1| (|spadConstant| $ 9) (QREFELT $ 91))
                         . #1#)
                   (LETT |s| (SPADCALL |p1| |s| |n| (QREFELT $ 88)) . #1#)
                   (EXIT
                    (LETT |r|
                          (SPADCALL (SPADCALL |k2| |s| (QREFELT $ 19)) |r|
                                    (QREFELT $ 20))
                          . #1#)))
              (LETT |i| (QSADD1 |i|) . #1#) (GO G190) G191 (EXIT NIL))
         (EXIT |r|)))))))) 

(DEFUN |XPBWPOLY;LiePolyIfCan;$U;29| (|p| $)
  (PROG (|lt| #1=#:G1278 |t| #2=#:G1277 #3=#:G1266 #4=#:G1265 #5=#:G1267
         #6=#:G1276)
    (RETURN
     (SEQ
      (COND
       ((SPADCALL |p| (|spadConstant| $ 21) (QREFELT $ 64))
        (CONS 0 (|spadConstant| $ 96)))
       ((PROGN
         (LETT #3# NIL . #7=(|XPBWPOLY;LiePolyIfCan;$U;29|))
         (SEQ (LETT |t| NIL . #7#) (LETT #6# |p| . #7#) G190
              (COND
               ((OR (ATOM #6#) (PROGN (LETT |t| (CAR #6#) . #7#) NIL))
                #8=(GO G191)))
              (SEQ
               (EXIT
                (PROGN
                 (LETT #5# (SPADCALL (QCAR |t|) (QREFELT $ 97)) . #7#)
                 (COND (#3# (LETT #4# (COND (#4# #5#) ('T 'NIL)) . #7#))
                       ('T
                        (PROGN (LETT #4# #5# . #7#) (LETT #3# 'T . #7#)))))))
              (LETT #6# (CDR #6#) . #7#) #9=(GO G190) G191 (EXIT NIL))
         (COND (#3# #4#) (#10='T 'T)))
        (SEQ
         (LETT |lt|
               (PROGN
                (LETT #2# NIL . #7#)
                (SEQ (LETT |t| NIL . #7#) (LETT #1# |p| . #7#) G190
                     (COND
                      ((OR (ATOM #1#) (PROGN (LETT |t| (CAR #1#) . #7#) NIL))
                       #8#))
                     (SEQ
                      (EXIT
                       (LETT #2#
                             (CONS
                              (CONS (SPADCALL (QCAR |t|) (QREFELT $ 98))
                                    (QCDR |t|))
                              #2#)
                             . #7#)))
                     (LETT #1# (CDR #1#) . #7#) #9# G191
                     (EXIT (NREVERSE0 #2#))))
               . #7#)
         (EXIT (CONS 0 |lt|))))
       (#10# (CONS 1 "failed"))))))) 

(DEFUN |XPBWPOLY;mirror;2$;30| (|p| $)
  (PROG (#1=#:G1280 #2=#:G1279 #3=#:G1281 #4=#:G1283 |t|)
    (RETURN
     (SEQ
      (PROGN
       (LETT #1# NIL . #5=(|XPBWPOLY;mirror;2$;30|))
       (SEQ (LETT |t| NIL . #5#) (LETT #4# |p| . #5#) G190
            (COND
             ((OR (ATOM #4#) (PROGN (LETT |t| (CAR #4#) . #5#) NIL))
              (GO G191)))
            (SEQ
             (EXIT
              (PROGN
               (LETT #3#
                     (SPADCALL (QCDR |t|) (|XPBWPOLY;mirror1| (QCAR |t|) $)
                               (QREFELT $ 19))
                     . #5#)
               (COND (#1# (LETT #2# (SPADCALL #2# #3# (QREFELT $ 20)) . #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| $ 21)))))))) 

(DEFUN |XPBWPolynomial| (&REST #1=#:G1296)
  (PROG ()
    (RETURN
     (PROG (#2=#:G1297)
       (RETURN
        (COND
         ((LETT #2#
                (|lassocShiftWithFunction| (|devaluateList| #1#)
                                           (HGET |$ConstructorCache|
                                                 '|XPBWPolynomial|)
                                           '|domainEqualList|)
                . #3=(|XPBWPolynomial|))
          (|CDRwithIncrement| #2#))
         ('T
          (UNWIND-PROTECT
              (PROG1 (APPLY (|function| |XPBWPolynomial;|) #1#)
                (LETT #2# T . #3#))
            (COND
             ((NOT #2#) (HREM |$ConstructorCache| '|XPBWPolynomial|))))))))))) 

(DEFUN |XPBWPolynomial;| (|#1| |#2|)
  (PROG (|pv$| $ |dv$| DV$2 DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #1=(|XPBWPolynomial|))
      (LETT DV$2 (|devaluate| |#2|) . #1#)
      (LETT |dv$| (LIST '|XPBWPolynomial| DV$1 DV$2) . #1#)
      (LETT $ (GETREFV 115) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3
                (LETT |pv$|
                      (|buildPredVector| 0 0
                                         (LIST
                                          (|HasCategory| |#2|
                                                         '(|noZeroDivisors|))
                                          (|HasCategory| |#2|
                                                         '(|CommutativeRing|))
                                          (|HasCategory| |#2|
                                                         '(|Module|
                                                           (|Fraction|
                                                            (|Integer|))))))
                      . #1#))
      (|haddProp| |$ConstructorCache| '|XPBWPolynomial| (LIST DV$1 DV$2)
                  (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 |#2|)
      (QSETREFV $ 8
                (|List|
                 (|Record| (|:| |k| (|PoincareBirkhoffWittLyndonBasis| |#1|))
                           (|:| |c| |#2|))))
      (COND
       ((|testBitVector| |pv$| 3)
        (PROGN
         (QSETREFV $ 92 (CONS (|dispatchFunction| |XPBWPOLY;exp;$Nni$;27|) $))
         (QSETREFV $ 95
                   (CONS (|dispatchFunction| |XPBWPOLY;log;$Nni$;28|) $)))))
      $)))) 

(MAKEPROP '|XPBWPolynomial| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL (|FreeModule| 7 13) (|local| |#1|)
              (|local| |#2|) '|Rep| (0 . |One|) (|Boolean|) (4 . =)
              (|OutputForm|) (|PoincareBirkhoffWittLyndonBasis| 6)
              (10 . |coerce|) (15 . |One|) (19 . =) (25 . |coerce|) (30 . *)
              (36 . *) (42 . +) (48 . |Zero|) (|NonNegativeInteger|)
              (52 . |length|)
              (CONS IDENTITY
                    (FUNCALL (|dispatchFunction| |XPBWPOLY;One;$;11|) $))
              (57 . |monom|) (|List| 28) (63 . |listOfTerms|) (|LyndonWord| 6)
              (68 . |first|) (|XDistributedPolynomial| 6 7) (73 . |One|)
              (|LiePolynomial| 6 7) (77 . |LiePoly|) (82 . |coerce|) (87 . *)
              (|XRecursivePolynomial| 6 7) (93 . |One|) (97 . |coerce|)
              (102 . *) (108 . |mirror|) (113 . |rest|)
              |XPBWPOLY;coerce;Lp$;15| |XPBWPOLY;*;3$;22| (118 . |lexico|)
              (124 . |construct|) (|Record| (|:| |k| 28) (|:| |c| 7))
              (|List| 46) (130 . |listOfTerms|) (135 . |list|)
              |XPBWPOLY;coerce;R$;12| (140 . |Zero|) (144 . +)
              (|Mapping| 12 12 12) (|List| 12) (150 . |reduce|)
              |XPBWPOLY;coerce;$Of;13| (156 . |coerce|)
              |XPBWPOLY;coerce;VarSet$;14| (161 . |coerce|) (166 . *) (172 . +)
              (178 . |Zero|) |XPBWPOLY;coerce;$Xdp;16| (182 . =) (188 . |Zero|)
              (192 . *) (198 . +) |XPBWPOLY;coerce;$Xrp;17|
              (204 . |leadingMonomial|) |XPBWPOLY;constant?;$B;18|
              (|Record| (|:| |k| 13) (|:| |c| 7)) '"last" (209 . |elt|)
              |XPBWPOLY;constant;$R;19| |XPBWPOLY;quasiRegular?;$B;20|
              (|Integer|) (215 . |maxIndex|) (220 . |delete|)
              |XPBWPOLY;quasiRegular;2$;21| (|List| 6) (226 . |varList|)
              (231 . |setUnion|) (237 . |sort|) |XPBWPOLY;varList;$L;23|
              |XPBWPOLY;degree;$Nni;24| (242 . |reductum|)
              |XPBWPOLY;trunc;$Nni$;25| |XPBWPOLY;product;2$Nni$;26|
              (|Fraction| 76) (247 . /) (253 . *) (259 . |exp|) (265 . -)
              (271 . -) (276 . |log|) (282 . |Zero|) (286 . |retractable?|)
              (291 . |retract|) (|Union| 32 '"failed")
              |XPBWPOLY;LiePolyIfCan;$U;29| |XPBWPOLY;mirror;2$;30|
              (|Union| 13 '#1="failed") (|List| 71) (|List| 13) (|List| 7)
              (|List| $) (|OrderedFreeMonoid| 6) (|Mapping| 7 7)
              (|Record| (|:| |k| 107) (|:| |c| 7)) (|Union| 107 '#1#)
              (|Union| $ '"failed") (|PositiveInteger|) (|SingleInteger|)
              (|String|))
           '#(|varList| 296 |trunc| 301 |reductum| 307 |quasiRegular?| 312
              |quasiRegular| 317 |product| 322 |monom| 329 |mirror| 335 |log|
              340 |leadingMonomial| 346 |exp| 351 |degree| 357 |constant?| 362
              |constant| 367 |coerce| 372 |Zero| 402 |One| 406 |LiePolyIfCan|
              410 = 415 - 421 + 432 * 438)
           'NIL
           (CONS
            (|makeByteWordVec2| 2
                                '(0 0 0 0 2 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
                                  0 0 0 0 1))
            (CONS
             '#(NIL NIL NIL NIL |Algebra&| |Module&| NIL |Ring&| NIL NIL NIL
                NIL |AbelianGroup&| NIL NIL |AbelianMonoid&| |Monoid&| NIL NIL
                |SemiGroup&| |AbelianSemiGroup&| |SetCategory&|
                |RetractableTo&| |RetractableTo&| NIL |BasicType&| NIL NIL)
             (CONS
              '#((|XPolynomialsCat| 6 7) (|XFreeAlgebra| 6 7) (|XAlgebra| 7)
                 (|FreeModuleCategory| 7 (|PoincareBirkhoffWittLyndonBasis| 6))
                 (|Algebra| 7) (|Module| 7) (|BiModule| 7 7) (|Ring|)
                 (|LeftModule| 7) (|Rng|) (|RightModule| 7) (|LeftModule| $$)
                 (|AbelianGroup|) (|CancellationAbelianMonoid|) (|SemiRing|)
                 (|AbelianMonoid|) (|Monoid|) (|SemiRng|)
                 (|IndexedDirectProductCategory| 7
                                                 (|PoincareBirkhoffWittLyndonBasis|
                                                  6))
                 (|SemiGroup|) (|AbelianSemiGroup|) (|SetCategory|)
                 (|RetractableTo| (|PoincareBirkhoffWittLyndonBasis| 6))
                 (|RetractableTo| (|OrderedFreeMonoid| 6)) (|unitsKnown|)
                 (|BasicType|) (|CoercibleTo| 12) (|noZeroDivisors|))
              (|makeByteWordVec2| 101
                                  '(0 7 0 9 2 7 10 0 0 11 1 13 12 0 14 0 13 0
                                    15 2 13 10 0 0 16 1 7 12 0 17 2 12 0 0 0 18
                                    2 0 0 7 0 19 2 0 0 0 0 20 0 0 0 21 1 13 22
                                    0 23 2 0 0 13 7 25 1 13 26 0 27 1 13 28 0
                                    29 0 30 0 31 1 32 0 28 33 1 32 30 0 34 2 30
                                    0 0 0 35 0 36 0 37 1 32 36 0 38 2 36 0 0 0
                                    39 1 32 0 0 40 1 13 0 0 41 2 28 10 0 0 44 2
                                    32 0 28 28 45 1 32 47 0 48 1 26 0 28 49 0 7
                                    0 51 2 12 0 0 0 52 2 54 12 53 0 55 1 13 0 6
                                    57 1 13 0 28 59 2 30 0 7 0 60 2 30 0 0 0 61
                                    0 30 0 62 2 0 10 0 0 64 0 36 0 65 2 36 0 7
                                    0 66 2 36 0 0 0 67 1 0 13 0 69 2 8 71 0 72
                                    73 1 8 76 0 77 2 8 0 0 76 78 1 13 80 0 81 2
                                    80 0 0 0 82 1 80 0 0 83 1 0 0 0 86 2 89 0
                                    76 76 90 2 7 0 89 0 91 2 0 0 0 22 92 2 0 0
                                    0 0 93 1 0 0 0 94 2 0 0 0 22 95 0 32 0 96 1
                                    13 10 0 97 1 13 28 0 98 1 0 80 0 84 2 0 0 0
                                    22 87 1 0 0 0 86 1 0 10 0 75 1 0 0 0 79 3 0
                                    0 0 0 22 88 2 0 0 13 7 25 1 0 0 0 101 2 3 0
                                    0 22 95 1 0 13 0 69 2 3 0 0 22 92 1 0 22 0
                                    85 1 0 10 0 70 1 0 7 0 74 1 0 36 0 68 1 0 0
                                    32 42 1 0 30 0 63 1 0 0 6 58 1 0 0 7 50 1 0
                                    12 0 56 0 0 0 21 0 0 0 24 1 0 99 0 100 2 0
                                    10 0 0 64 2 0 0 0 0 93 1 0 0 0 94 2 0 0 0 0
                                    20 2 0 0 7 0 19 2 0 0 0 0 43)))))
           '|lookupIncomplete|)) 
