
(/VERSIONCHECK 2) 

(DEFUN |UPOLYC2;map;MPRPS;1| (|f| |p| $)
  (PROG (|ans|)
    (RETURN
     (SEQ (LETT |ans| (|spadConstant| $ 10) . #1=(|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))
                      . #1#)
                (EXIT (LETT |p| (SPADCALL |p| (QREFELT $ 20)) . #1#)))
               NIL (GO G190) G191 (EXIT NIL))
          (EXIT |ans|))))) 

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

(DEFUN |UnivariatePolynomialCategoryFunctions2;| (|#1| |#2| |#3| |#4|)
  (PROG (|pv$| $ |dv$| DV$4 DV$3 DV$2 DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|)
            . #1=(|UnivariatePolynomialCategoryFunctions2|))
      (LETT DV$2 (|devaluate| |#2|) . #1#)
      (LETT DV$3 (|devaluate| |#3|) . #1#)
      (LETT DV$4 (|devaluate| |#4|) . #1#)
      (LETT |dv$|
            (LIST '|UnivariatePolynomialCategoryFunctions2| DV$1 DV$2 DV$3
                  DV$4)
            . #1#)
      (LETT $ (GETREFV 23) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
      (|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|)) 
