
(SDEFUN |SYMFUNC;coef_vect|
        ((|p| (|SparseUnivariatePolynomial| R)) (|n| (|NonNegativeInteger|))
         (% (|Vector| R)))
        (SPADCALL (SPADCALL |p| |n| (QREFELT % 10)) (QREFELT % 11))) 

(SDEFUN |SYMFUNC;symFunc;RPiV;2|
        ((|x| (R)) (|n| (|PositiveInteger|)) (% (|Vector| R)))
        (|SYMFUNC;coef_vect|
         (SPADCALL
          (SPADCALL (SPADCALL (|spadConstant| % 12) 1 (QREFELT % 13))
                    (SPADCALL |x| (QREFELT % 14)) (QREFELT % 15))
          |n| (QREFELT % 16))
         |n| %)) 

(SDEFUN |SYMFUNC;symFunc;LV;3| ((|l| (|List| R)) (% (|Vector| R)))
        (SPROG
         ((#1=#:G3 NIL) (#2=#:G2 #3=(|SparseUnivariatePolynomial| R))
          (#4=#:G4 #3#) (#5=#:G6 NIL) (|a| NIL))
         (SEQ
          (|SYMFUNC;coef_vect|
           (PROGN
            (LETT #1# NIL)
            (SEQ (LETT |a| NIL) (LETT #5# |l|) G190
                 (COND
                  ((OR (ATOM #5#) (PROGN (LETT |a| (CAR #5#)) NIL)) (GO G191)))
                 (SEQ
                  (EXIT
                   (PROGN
                    (LETT #4#
                          (SPADCALL
                           (SPADCALL (|spadConstant| % 12) 1 (QREFELT % 13))
                           (SPADCALL |a| (QREFELT % 14)) (QREFELT % 15)))
                    (COND (#1# (LETT #2# (SPADCALL #2# #4# (QREFELT % 20))))
                          ('T (PROGN (LETT #2# #4#) (LETT #1# 'T)))))))
                 (LETT #5# (CDR #5#)) (GO G190) G191 (EXIT NIL))
            (COND (#1# #2#) ('T (|spadConstant| % 19))))
           (LENGTH |l|) %)))) 

(DECLAIM (NOTINLINE |SymmetricFunctions;|)) 

(DEFUN |SymmetricFunctions;| (|#1|)
  (SPROG ((|pv$| NIL) (% NIL) (|dv$| NIL) (DV$1 NIL))
         (PROGN
          (LETT DV$1 (|devaluate| |#1|))
          (LETT |dv$| (LIST '|SymmetricFunctions| DV$1))
          (LETT % (GETREFV 23))
          (QSETREFV % 0 |dv$|)
          (QSETREFV % 3 (LETT |pv$| (|buildPredVector| 0 0 NIL)))
          (|haddProp| |$ConstructorCache| '|SymmetricFunctions| (LIST DV$1)
                      (CONS 1 %))
          (|stuffDomainSlots| %)
          (QSETREFV % 6 |#1|)
          (SETF |pv$| (QREFELT % 3))
          %))) 

(DEFUN |SymmetricFunctions| (#1=#:G7)
  (SPROG NIL
         (PROG (#2=#:G8)
           (RETURN
            (COND
             ((LETT #2#
                    (|lassocShiftWithFunction| (LIST (|devaluate| #1#))
                                               (HGET |$ConstructorCache|
                                                     '|SymmetricFunctions|)
                                               '|domainEqualList|))
              (|CDRwithIncrement| #2#))
             ('T
              (UNWIND-PROTECT (PROG1 (|SymmetricFunctions;| #1#) (LETT #2# T))
                (COND
                 ((NOT #2#)
                  (HREM |$ConstructorCache| '|SymmetricFunctions|)))))))))) 

(MAKEPROP '|SymmetricFunctions| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|Vector| 6)
              (|NonNegativeInteger|) (|SparseUnivariatePolynomial| 6)
              (0 . |vectorise|) (6 . |reverse!|) (11 . |One|) (15 . |monomial|)
              (21 . |coerce|) (26 . +) (32 . ^) (|PositiveInteger|)
              |SYMFUNC;symFunc;RPiV;2| (38 . |One|) (42 . *) (|List| 6)
              |SYMFUNC;symFunc;LV;3|)
           '#(|symFunc| 48) 'NIL
           (CONS (|makeByteWordVec2| 1 '(0))
                 (CONS '#(NIL)
                       (CONS
                        '#((|Join|
                            (|mkCategory|
                             (LIST
                              '((|symFunc| ((|Vector| |#1|) (|List| |#1|))) T)
                              '((|symFunc|
                                 ((|Vector| |#1|) |#1| (|PositiveInteger|)))
                                T))
                             (LIST) NIL NIL)))
                        (|makeByteWordVec2| 22
                                            '(2 9 7 0 8 10 1 7 0 0 11 0 6 0 12
                                              2 9 0 6 8 13 1 9 0 6 14 2 9 0 0 0
                                              15 2 9 0 0 8 16 0 9 0 19 2 9 0 0
                                              0 20 1 0 7 21 22 2 0 7 6 17
                                              18)))))
           '|lookupComplete|)) 
