
(/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=#:G2334 #2=#:G2333 #3=#:G2335 #4=#:G2337 |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=#:G2339 #2=#:G2338 #3=#:G2340 #4=#:G2342 |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=#:G2345 #2=#:G2344 #3=#:G2346 #4=#:G2349 |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=#:G2352 #2=#:G2351 #3=#:G2353 #4=#:G2356 |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=#:G2359 #2=#:G2358 #3=#:G2360 #4=#:G2362 |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=#:G2364 #2=#:G2363 #3=#:G2365 #4=#:G2367 |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=#:G2385 #2=#:G2384 #3=#:G2386 #4=#:G2393 |t| |r1| #5=#:G2382
         #6=#:G2381 #7=#:G2383 #8=#:G2392 #9=#:G2379 #10=#:G2378 #11=#:G2380
         #12=#:G2391 |fd| |rd| #13=#:G2375 #14=#:G2374 #15=#:G2376 #16=#:G2390
         |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=#:G2400 |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=#:G2406 |t| #2=#:G2405)
    (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=#:G2408 #2=#:G2407 #3=#:G2409 #4=#:G2411 |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=#:G2413 #2=#:G2412 #3=#:G2414 #4=#:G2416 |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=#:G2426 #2=#:G2425 #3=#:G2427 #4=#:G2429 |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=#:G2431 #2=#:G2430 #3=#:G2432 #4=#:G2435 |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=#:G2440 #2=#:G2439 #3=#:G2441 #4=#:G2443 |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=#:G2470 |t| #2=#:G2469 #3=#:G2458 #4=#:G2457 #5=#:G2459
         #6=#:G2468)
    (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=#:G2472 #2=#:G2471 #3=#:G2473 #4=#:G2475 |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=#:G2488)
  (PROG ()
    (RETURN
     (PROG (#2=#:G2489)
       (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|)) 
