
(/VERSIONCHECK 2) 

(DEFUN |SYMPOLY;*;3$;1| (|p1| |p2| $)
  (PROG (#1=#:G1806 #2=#:G1805 #3=#:G1807 #4=#:G1813 |t2| #5=#:G1812 #6=#:G1811
         |t1|)
    (RETURN
     (SEQ
      (COND ((OR (NULL |p1|) (NULL |p2|)) (|spadConstant| $ 9))
            ('T
             (COND
              ((SPADCALL (QCAR (|SPADfirst| |p1|)) (QREFELT $ 12))
               (SPADCALL (QCDR (|SPADfirst| |p1|)) |p2| (QREFELT $ 13)))
              ((SPADCALL |p2| (|spadConstant| $ 14) (QREFELT $ 16)) |p1|)
              (#7='T
               (PROGN
                (LETT #1# NIL . #8=(|SYMPOLY;*;3$;1|))
                (SEQ (LETT |t1| NIL . #8#) (LETT #6# (REVERSE |p1|) . #8#) G190
                     (COND
                      ((OR (ATOM #6#) (PROGN (LETT |t1| (CAR #6#) . #8#) NIL))
                       #9=(GO G191)))
                     (SEQ
                      (EXIT
                       (PROGN
                        (LETT #3#
                              (PROGN
                               (LETT #5# NIL . #8#)
                               (SEQ (LETT |t2| NIL . #8#) (LETT #4# |p2| . #8#)
                                    G190
                                    (COND
                                     ((OR (ATOM #4#)
                                          (PROGN
                                           (LETT |t2| (CAR #4#) . #8#)
                                           NIL))
                                      #9#))
                                    (SEQ
                                     (EXIT
                                      (LETT #5#
                                            (CONS
                                             (CONS
                                              (SPADCALL (QCAR |t1|) (QCAR |t2|)
                                                        (QREFELT $ 17))
                                              (SPADCALL (QCDR |t1|) (QCDR |t2|)
                                                        (QREFELT $ 18)))
                                             #5#)
                                            . #8#)))
                                    (LETT #4# (CDR #4#) . #8#) #10=(GO G190)
                                    G191 (EXIT (NREVERSE0 #5#))))
                              . #8#)
                        (COND
                         (#1#
                          (LETT #2# (SPADCALL #2# #3# (QREFELT $ 19)) . #8#))
                         ('T
                          (PROGN (LETT #2# #3# . #8#) (LETT #1# 'T . #8#)))))))
                     (LETT #6# (CDR #6#) . #8#) #10# G191 (EXIT NIL))
                (COND (#1# #2#) (#7# (|spadConstant| $ 9)))))))))))) 

(DEFUN |SYMPOLY;*;3$;2| (|p1| |p2| $)
  (PROG (#1=#:G1815 #2=#:G1814 #3=#:G1816 |r| #4=#:G1826 |t2| #5=#:G1825
         #6=#:G1824 |t1|)
    (RETURN
     (SEQ
      (COND ((OR (NULL |p1|) (NULL |p2|)) (|spadConstant| $ 9))
            ('T
             (COND
              ((SPADCALL (QCAR (|SPADfirst| |p1|)) (QREFELT $ 12))
               (SPADCALL (QCDR (|SPADfirst| |p1|)) |p2| (QREFELT $ 13)))
              ((SPADCALL |p2| (|spadConstant| $ 14) (QREFELT $ 16)) |p1|)
              (#7='T
               (PROGN
                (LETT #1# NIL . #8=(|SYMPOLY;*;3$;2|))
                (SEQ (LETT |t1| NIL . #8#) (LETT #6# (REVERSE |p1|) . #8#) G190
                     (COND
                      ((OR (ATOM #6#) (PROGN (LETT |t1| (CAR #6#) . #8#) NIL))
                       #9=(GO G191)))
                     (SEQ
                      (EXIT
                       (PROGN
                        (LETT #3#
                              (PROGN
                               (LETT #5# NIL . #8#)
                               (SEQ (LETT |t2| NIL . #8#) (LETT #4# |p2| . #8#)
                                    G190
                                    (COND
                                     ((OR (ATOM #4#)
                                          (PROGN
                                           (LETT |t2| (CAR #4#) . #8#)
                                           NIL))
                                      #9#))
                                    (SEQ
                                     (EXIT
                                      (COND
                                       ((SEQ
                                         (LETT |r|
                                               (SPADCALL (QCDR |t1|)
                                                         (QCDR |t2|)
                                                         (QREFELT $ 18))
                                               . #8#)
                                         (EXIT
                                          (COND
                                           ((SPADCALL |r| (|spadConstant| $ 21)
                                                      (QREFELT $ 22))
                                            'NIL)
                                           ('T 'T))))
                                        (LETT #5#
                                              (CONS
                                               (CONS
                                                (SPADCALL (QCAR |t1|)
                                                          (QCAR |t2|)
                                                          (QREFELT $ 17))
                                                |r|)
                                               #5#)
                                              . #8#)))))
                                    (LETT #4# (CDR #4#) . #8#) #10=(GO G190)
                                    G191 (EXIT (NREVERSE0 #5#))))
                              . #8#)
                        (COND
                         (#1#
                          (LETT #2# (SPADCALL #2# #3# (QREFELT $ 19)) . #8#))
                         ('T
                          (PROGN (LETT #2# #3# . #8#) (LETT #1# 'T . #8#)))))))
                     (LETT #6# (CDR #6#) . #8#) #10# G191 (EXIT NIL))
                (COND (#1# #2#) (#7# (|spadConstant| $ 9)))))))))))) 

(DEFUN |SymmetricPolynomial| (#1=#:G1844)
  (PROG ()
    (RETURN
     (PROG (#2=#:G1845)
       (RETURN
        (COND
         ((LETT #2#
                (|lassocShiftWithFunction| (LIST (|devaluate| #1#))
                                           (HGET |$ConstructorCache|
                                                 '|SymmetricPolynomial|)
                                           '|domainEqualList|)
                . #3=(|SymmetricPolynomial|))
          (|CDRwithIncrement| #2#))
         ('T
          (UNWIND-PROTECT
              (PROG1 (|SymmetricPolynomial;| #1#) (LETT #2# T . #3#))
            (COND
             ((NOT #2#)
              (HREM |$ConstructorCache| '|SymmetricPolynomial|))))))))))) 

(DEFUN |SymmetricPolynomial;| (|#1|)
  (PROG (|pv$| #1=#:G1843 $ |dv$| DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #2=(|SymmetricPolynomial|))
      (LETT |dv$| (LIST '|SymmetricPolynomial| DV$1) . #2#)
      (LETT $ (GETREFV 38) . #2#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3
                (LETT |pv$|
                      (|buildPredVector| 0 0
                                         (LIST
                                          (|HasCategory| |#1|
                                                         '(|Algebra|
                                                           (|Fraction|
                                                            (|Integer|))))
                                          (|HasCategory| |#1|
                                                         '(|IntegralDomain|))
                                          (LETT #1#
                                                (|HasCategory| |#1|
                                                               '(|CommutativeRing|))
                                                . #2#)
                                          (OR #1#
                                              (|HasCategory| |#1|
                                                             '(|IntegralDomain|)))
                                          (|HasCategory| |#1|
                                                         '(|CharacteristicNonZero|))
                                          (|HasCategory| |#1|
                                                         '(|CharacteristicZero|))
                                          (|HasCategory| |#1|
                                                         '(|RetractableTo|
                                                           (|Fraction|
                                                            (|Integer|))))
                                          (|HasCategory| |#1|
                                                         '(|RetractableTo|
                                                           (|Integer|)))
                                          (|HasCategory| |#1|
                                                         '(|canonicalUnitNormal|))
                                          (|HasCategory| |#1| '(|Field|))
                                          (|HasCategory| |#1| '(|GcdDomain|))
                                          (AND
                                           (|HasCategory| |#1|
                                                          '(|IntegralDomain|))
                                           (|HasCategory| (|Partition|)
                                                          '(|CancellationAbelianMonoid|)))
                                          (OR
                                           (|HasCategory| |#1|
                                                          '(|Algebra|
                                                            (|Fraction|
                                                             (|Integer|))))
                                           (|HasCategory| |#1|
                                                          '(|RetractableTo|
                                                            (|Fraction|
                                                             (|Integer|)))))))
                      . #2#))
      (|haddProp| |$ConstructorCache| '|SymmetricPolynomial| (LIST DV$1)
                  (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 (|Record| (|:| |k| (|Partition|)) (|:| |c| |#1|)))
      (QSETREFV $ 8 (|List| (QREFELT $ 7)))
      (COND
       ((|HasCategory| |#1| '(|EntireRing|))
        (QSETREFV $ 20 (CONS (|dispatchFunction| |SYMPOLY;*;3$;1|) $)))
       ('T (QSETREFV $ 20 (CONS (|dispatchFunction| |SYMPOLY;*;3$;2|) $))))
      $)))) 

(MAKEPROP '|SymmetricPolynomial| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL (|PolynomialRing| 6 11) (|local| |#1|)
              '|Term| '|Rep| (0 . |Zero|) (|Boolean|) (|Partition|)
              (4 . |zero?|) (9 . *) (15 . |One|) (19 . |One|) (23 . =) (29 . +)
              (35 . *) (41 . +) (47 . *) (53 . |Zero|) (57 . =) (|Fraction| 29)
              (|Union| $ '"failed") (|NonNegativeInteger|)
              (|Record| (|:| |unit| $) (|:| |canonical| $) (|:| |associate| $))
              (|Union| 23 '#1="failed") (|Union| 29 '#1#) (|Integer|)
              (|Mapping| 11 11) (|List| 6) (|Union| 6 '#1#) (|Mapping| 6 6)
              (|PositiveInteger|) (|String|) (|OutputForm|) (|SingleInteger|))
           '#(|Zero| 63 |One| 67 = 71 + 77 * 83) 'NIL
           (CONS
            (|makeByteWordVec2| 9
                                '(0 0 2 1 2 3 1 4 2 2 5 6 3 0 0 1 4 0 0 0 0 1 1
                                  3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 2 7 8 9))
            (CONS
             '#(|FiniteAbelianMonoidRing&| |AbelianMonoidRing&|
                |IntegralDomain&| |Algebra&| |Algebra&| |Algebra&| |Module&|
                NIL |Module&| NIL NIL NIL |Module&| |Ring&| NIL NIL NIL NIL NIL
                NIL NIL NIL NIL NIL |AbelianGroup&| NIL NIL |AbelianMonoid&|
                |Monoid&| NIL |SemiGroup&| |AbelianSemiGroup&|
                |FullyRetractableTo&| |SetCategory&| |RetractableTo&| NIL
                |BasicType&| NIL NIL NIL |RetractableTo&| |RetractableTo&| NIL)
             (CONS
              '#((|FiniteAbelianMonoidRing| 6 11) (|AbelianMonoidRing| 6 11)
                 (|IntegralDomain|) (|Algebra| 23) (|Algebra| $$) (|Algebra| 6)
                 (|Module| 23) (|CommutativeRing|) (|Module| $$) (|EntireRing|)
                 (|CharacteristicNonZero|) (|CharacteristicZero|) (|Module| 6)
                 (|Ring|) (|BiModule| 6 6) (|BiModule| 23 23)
                 (|BiModule| $$ $$) (|Rng|) (|LeftModule| 6) (|RightModule| 6)
                 (|LeftModule| $$) (|LeftModule| 23) (|RightModule| 23)
                 (|RightModule| $$) (|AbelianGroup|)
                 (|CancellationAbelianMonoid|) (|SemiRing|) (|AbelianMonoid|)
                 (|Monoid|) (|SemiRng|) (|SemiGroup|) (|AbelianSemiGroup|)
                 (|FullyRetractableTo| 6) (|SetCategory|) (|RetractableTo| 6)
                 (|unitsKnown|) (|BasicType|) (|CoercibleTo| 36)
                 (|CommutativeStar|) (|noZeroDivisors|) (|RetractableTo| 23)
                 (|RetractableTo| 29) (|canonicalUnitNormal|))
              (|makeByteWordVec2| 22
                                  '(0 0 0 9 1 11 10 0 12 2 0 0 6 0 13 0 0 0 14
                                    0 6 0 15 2 0 10 0 0 16 2 11 0 0 0 17 2 6 0
                                    0 0 18 2 0 0 0 0 19 2 0 0 0 0 20 0 6 0 21 2
                                    6 10 0 0 22 0 0 0 9 0 0 0 14 2 0 10 0 0 16
                                    2 0 0 0 0 19 2 0 0 6 0 13 2 0 0 0 0 20)))))
           '|lookupIncomplete|)) 
