
(/VERSIONCHECK 2) 

(DEFUN |UPOLYC2;map;MPRPS;1| (|f| |p| $)
  (PROG (|ans|)
    (RETURN
      (SEQ (LETT |ans| (|spadConstant| $ 10)
                 . #0=(|UPOLYC2;map;MPRPS;1|))
           (SEQ G190
                (COND
                  ((NULL (COND
                           ((SPADCALL |p| (|spadConstant| $ 12)
                                (QREFELT $ 14))
                            'NIL)
                           ('T 'T)))
                   (GO G191)))
                (SEQ (LETT |ans|
                           (SPADCALL |ans|
                               (SPADCALL
                                   (SPADCALL
                                    (SPADCALL |p| (QREFELT $ 15)) |f|)
                                   (SPADCALL |p| (QREFELT $ 17))
                                   (QREFELT $ 18))
                               (QREFELT $ 19)) . #0#)
                     (EXIT (LETT |p|
                                 (SPADCALL |p| (QREFELT $ 20)) . #0#)))
                NIL (GO G190) G191 (EXIT NIL))
           (EXIT |ans|))))) 

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

(DEFUN |UnivariatePolynomialCategoryFunctions2;| (|#1| |#2| |#3| |#4|)
  (PROG (DV$1 DV$2 DV$3 DV$4 |dv$| $ |pv$|)
    (RETURN
      (PROGN
        (LETT DV$1 (|devaluate| |#1|)
              . #0=(|UnivariatePolynomialCategoryFunctions2|))
        (LETT DV$2 (|devaluate| |#2|) . #0#)
        (LETT DV$3 (|devaluate| |#3|) . #0#)
        (LETT DV$4 (|devaluate| |#4|) . #0#)
        (LETT |dv$|
              (LIST '|UnivariatePolynomialCategoryFunctions2| DV$1 DV$2
                    DV$3 DV$4) . #0#)
        (LETT $ (GETREFV 23) . #0#)
        (QSETREFV $ 0 |dv$|)
        (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#))
        (|haddProp| |$ConstructorCache|
            '|UnivariatePolynomialCategoryFunctions2|
            (LIST DV$1 DV$2 DV$3 DV$4) (CONS 1 $))
        (|stuffDomainSlots| $)
        (QSETREFV $ 6 |#1|)
        (QSETREFV $ 7 |#2|)
        (QSETREFV $ 8 |#3|)
        (QSETREFV $ 9 |#4|)
        $)))) 

(MAKEPROP '|UnivariatePolynomialCategoryFunctions2| '|infovec|
    (LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|)
             (|local| |#3|) (|local| |#4|) (0 . |Zero|) (4 . |Zero|)
             (8 . |Zero|) (|Boolean|) (12 . =)
             (18 . |leadingCoefficient|) (|NonNegativeInteger|)
             (23 . |degree|) (28 . |monomial|) (34 . +)
             (40 . |reductum|) (|Mapping| 8 6) |UPOLYC2;map;MPRPS;1|)
          '#(|map| 45) 'NIL
          (CONS (|makeByteWordVec2| 1 'NIL)
                (CONS '#()
                      (CONS '#()
                            (|makeByteWordVec2| 22
                                '(0 9 0 10 0 6 0 11 0 7 0 12 2 7 13 0 0
                                  14 1 7 6 0 15 1 7 16 0 17 2 9 0 8 16
                                  18 2 9 0 0 0 19 1 7 0 0 20 2 0 9 21 7
                                  22)))))
          '|lookupComplete|)) 
