
(/VERSIONCHECK 2) 

(DEFUN |COMBF;factorial;2F;1| (|x| $)
  (SPADCALL (QREFELT $ 15) |x| (QREFELT $ 23))) 

(DEFUN |COMBF;binomial;3F;2| (|x| |y| $)
  (SPADCALL (QREFELT $ 17) (LIST |x| |y|) (QREFELT $ 26))) 

(DEFUN |COMBF;permutation;3F;3| (|x| |y| $)
  (SPADCALL (QREFELT $ 16) (LIST |x| |y|) (QREFELT $ 26))) 

(DEFUN |COMBF;number?| (|x| $)
  (COND
    ((|HasCategory| (QREFELT $ 6) (LIST '|RetractableTo| '(|Integer|)))
     (COND
       ((SPADCALL |x| (QREFELT $ 30)) 'T)
       ('T (QEQCAR (SPADCALL |x| (QREFELT $ 32)) 0))))
    ('T (SPADCALL |x| (QREFELT $ 30))))) 

(DEFUN |COMBF;**;3F;5| (|x| |y| $)
  (PROG (|args| |exp| #0=#:G1872 |expr|)
    (RETURN
      (SEQ (COND
             ((SPADCALL |x| (SPADCALL "%power" (QREFELT $ 10))
                  (QREFELT $ 33))
              (SEQ (LETT |args|
                         (SPADCALL
                             (|SPADfirst|
                                 (SPADCALL |x| (QREFELT $ 35)))
                             (QREFELT $ 38))
                         . #1=(|COMBF;**;3F;5|))
                   (COND
                     ((NULL (EQL (LENGTH |args|) 2))
                      (EXIT (|error| "Too many arguments to **"))))
                   (COND
                     ((|COMBF;number?| (|SPADfirst| |args|) $)
                      (COND
                        ((|COMBF;number?| |y| $)
                         (EXIT (SPADCALL (QREFELT $ 22)
                                   (LIST
                                    (SPADCALL (|SPADfirst| |args|) |y|
                                     (QREFELT $ 39))
                                    (SPADCALL |args| (QREFELT $ 40)))
                                   (QREFELT $ 26)))))))
                   (EXIT (SPADCALL (QREFELT $ 22)
                             (LIST (|SPADfirst| |args|)
                                   (SPADCALL
                                    (SPADCALL |args| (QREFELT $ 40))
                                    |y| (QREFELT $ 41)))
                             (QREFELT $ 26)))))
             ('T
              (SEQ (LETT |exp| (SPADCALL |x| (QREFELT $ 44)) . #1#)
                   (EXIT (COND
                           ((QEQCAR |exp| 0)
                            (SEQ (LETT |expr|
                                       (PROG2 (LETT #0# |exp| . #1#)
                                        (QCDR #0#)
                                         (|check-union| (QEQCAR #0# 0)
                                          (|Record|
                                           (|:| |val| (QREFELT $ 7))
                                           (|:| |exponent| (|Integer|)))
                                          #0#)) . #1#)
                                 (EXIT (SPADCALL (QREFELT $ 22)
                                        (LIST (QCAR |expr|)
                                         (SPADCALL (QCDR |expr|) |y|
                                          (QREFELT $ 46)))
                                        (QREFELT $ 26)))))
                           ('T
                            (SPADCALL (QREFELT $ 22) (LIST |x| |y|)
                                (QREFELT $ 26)))))))))))) 

(DEFUN |COMBF;belong?;BoB;6| (|op| $)
  (SPADCALL |op| (QREFELT $ 11) (QREFELT $ 47))) 

(DEFUN |COMBF;fourth| (|l| $) (SPADCALL (CDR |l|) (QREFELT $ 49))) 

(DEFUN |COMBF;dvpow1| (|l| $)
  (SPADCALL (SPADCALL |l| (QREFELT $ 40))
      (SPADCALL (|SPADfirst| |l|)
          (SPADCALL (SPADCALL |l| (QREFELT $ 40)) (|spadConstant| $ 50)
              (QREFELT $ 51))
          (QREFELT $ 39))
      (QREFELT $ 41))) 

(DEFUN |COMBF;factorials;2F;9| (|x| $)
  (|COMBF;facts| |x| (SPADCALL |x| (QREFELT $ 53)) $)) 

(DEFUN |COMBF;factorials;FSF;10| (|x| |v| $)
  (|COMBF;facts| |x| (LIST |v|) $)) 

(DEFUN |COMBF;facts| (|x| |l| $)
  (SPADCALL (|COMBF;smpfact| (SPADCALL |x| (QREFELT $ 57)) |l| $)
      (|COMBF;smpfact| (SPADCALL |x| (QREFELT $ 58)) |l| $)
      (QREFELT $ 59))) 

(DEFUN |COMBF;summand| (|l| $)
  (SPADCALL (|SPADfirst| |l|)
      (SPADCALL (SPADCALL |l| (QREFELT $ 40)) (QREFELT $ 61))
      (SPADCALL |l| (QREFELT $ 49)) (QREFELT $ 62))) 

(DEFUN |COMBF;product;FSF;13| (|x| |i| $)
  (PROG (|dm| |k|)
    (RETURN
      (SEQ (LETT |dm|
                 (SPADCALL (SPADCALL (QREFELT $ 63)) (QREFELT $ 64))
                 . #0=(|COMBF;product;FSF;13|))
           (EXIT (SPADCALL (QREFELT $ 20)
                     (LIST (SPADCALL |x|
                               (LETT |k|
                                     (SPADCALL |i| (QREFELT $ 65)) . #0#)
                               |dm| (QREFELT $ 62))
                           |dm| (SPADCALL |k| (QREFELT $ 66)))
                     (QREFELT $ 26))))))) 

(DEFUN |COMBF;summation;FSF;14| (|x| |i| $)
  (PROG (|dm| |k|)
    (RETURN
      (SEQ (LETT |dm|
                 (SPADCALL (SPADCALL (QREFELT $ 63)) (QREFELT $ 64))
                 . #0=(|COMBF;summation;FSF;14|))
           (EXIT (SPADCALL (QREFELT $ 18)
                     (LIST (SPADCALL |x|
                               (LETT |k|
                                     (SPADCALL |i| (QREFELT $ 65)) . #0#)
                               |dm| (QREFELT $ 62))
                           |dm| (SPADCALL |k| (QREFELT $ 66)))
                     (QREFELT $ 26))))))) 

(DEFUN |COMBF;dvsum| (|l| |x| $)
  (SPADCALL (QREFELT $ 18)
      (LIST (SPADCALL (|SPADfirst| |l|) |x| (QREFELT $ 69))
            (SPADCALL |l| (QREFELT $ 40))
            (SPADCALL |l| (QREFELT $ 49)))
      (QREFELT $ 26))) 

(DEFUN |COMBF;dvdsum| (|l| |x| $)
  (PROG (|y| |h| |g|)
    (RETURN
      (COND
        ((EQUAL |x|
                (SPADCALL
                    (LETT |y| (SPADCALL |l| (QREFELT $ 49))
                          . #0=(|COMBF;dvdsum|))
                    (QREFELT $ 70)))
         (|spadConstant| $ 71))
        ((OR (SPADCALL |x|
                 (SPADCALL
                     (LETT |h|
                           (SPADCALL (CDR (CDR |l|)) (QREFELT $ 49)) . #0#)
                     (QREFELT $ 53))
                 (QREFELT $ 72))
             (SPADCALL |x|
                 (SPADCALL
                     (LETT |g|
                           (SPADCALL (CDR |l|) (QREFELT $ 49)) . #0#)
                     (QREFELT $ 53))
                 (QREFELT $ 72)))
         (|error| "a sum cannot be differentiated with respect to a bound"))
        ('T
         (SPADCALL (QREFELT $ 19)
             (LIST (SPADCALL (|SPADfirst| |l|) |x| (QREFELT $ 69))
                   (SPADCALL |l| (QREFELT $ 40)) |y| |g| |h|)
             (QREFELT $ 26))))))) 

(DEFUN |COMBF;dvprod| (|l| |x| $)
  (PROG (|dm| |f| |p|)
    (RETURN
      (SEQ (LETT |dm|
                 (SPADCALL
                     (SPADCALL (SPADCALL (QREFELT $ 63))
                         (QREFELT $ 64))
                     (QREFELT $ 70))
                 . #0=(|COMBF;dvprod|))
           (LETT |f|
                 (SPADCALL (|SPADfirst| |l|)
                     (SPADCALL (SPADCALL |l| (QREFELT $ 40))
                         (QREFELT $ 61))
                     (SPADCALL |dm| (QREFELT $ 64)) (QREFELT $ 62)) . #0#)
           (LETT |p| (SPADCALL |f| |dm| (QREFELT $ 67)) . #0#)
           (EXIT (SPADCALL (QREFELT $ 18)
                     (LIST (SPADCALL
                               (SPADCALL
                                   (SPADCALL (|SPADfirst| |l|) |x|
                                    (QREFELT $ 69))
                                   (|SPADfirst| |l|) (QREFELT $ 59))
                               |p| (QREFELT $ 41))
                           (SPADCALL |l| (QREFELT $ 40))
                           (SPADCALL |l| (QREFELT $ 49)))
                     (QREFELT $ 26))))))) 

(DEFUN |COMBF;dvdprod| (|l| |x| $)
  (PROG (|y| |h| |g|)
    (RETURN
      (COND
        ((EQUAL |x|
                (SPADCALL
                    (LETT |y| (SPADCALL |l| (QREFELT $ 49))
                          . #0=(|COMBF;dvdprod|))
                    (QREFELT $ 70)))
         (|spadConstant| $ 71))
        ((OR (SPADCALL |x|
                 (SPADCALL
                     (LETT |h|
                           (SPADCALL (CDR (CDR |l|)) (QREFELT $ 49)) . #0#)
                     (QREFELT $ 53))
                 (QREFELT $ 72))
             (SPADCALL |x|
                 (SPADCALL
                     (LETT |g|
                           (SPADCALL (CDR |l|) (QREFELT $ 49)) . #0#)
                     (QREFELT $ 53))
                 (QREFELT $ 72)))
         (|error| "a product cannot be differentiated with respect to a bound"))
        ('T
         (SPADCALL
             (SPADCALL (QREFELT $ 19)
                 (CONS (SPADCALL
                           (SPADCALL (|SPADfirst| |l|) |x|
                               (QREFELT $ 69))
                           (|SPADfirst| |l|) (QREFELT $ 59))
                       (CDR |l|))
                 (QREFELT $ 26))
             (SPADCALL (QREFELT $ 21) |l| (QREFELT $ 26))
             (QREFELT $ 41))))))) 

(DEFUN |COMBF;dprod| (|l| $)
  (SPADCALL (SPADCALL (|COMBF;summand| |l| $) (QREFELT $ 74))
      (SPADCALL (SPADCALL |l| (QREFELT $ 49)) (QREFELT $ 74))
      (QREFELT $ 75))) 

(DEFUN |COMBF;ddprod| (|l| $)
  (SPADCALL (SPADCALL (|COMBF;summand| |l| $) (QREFELT $ 74))
      (SPADCALL (SPADCALL (SPADCALL |l| (QREFELT $ 49)) (QREFELT $ 74))
          (SPADCALL (|COMBF;fourth| |l| $) (QREFELT $ 74))
          (QREFELT $ 76))
      (SPADCALL (|COMBF;fourth| (CDR |l|) $) (QREFELT $ 74))
      (QREFELT $ 77))) 

(DEFUN |COMBF;dsum| (|l| $)
  (SPADCALL (SPADCALL (|COMBF;summand| |l| $) (QREFELT $ 74))
      (SPADCALL (SPADCALL |l| (QREFELT $ 49)) (QREFELT $ 74))
      (QREFELT $ 78))) 

(DEFUN |COMBF;ddsum| (|l| $)
  (SPADCALL (SPADCALL (|COMBF;summand| |l| $) (QREFELT $ 74))
      (SPADCALL (SPADCALL (SPADCALL |l| (QREFELT $ 49)) (QREFELT $ 74))
          (SPADCALL (|COMBF;fourth| |l| $) (QREFELT $ 74))
          (QREFELT $ 76))
      (SPADCALL (|COMBF;fourth| (CDR |l|) $) (QREFELT $ 74))
      (QREFELT $ 79))) 

(DEFUN |COMBF;equalsumprod| (|s1| |s2| $)
  (PROG (|l1| |l2|)
    (RETURN
      (SEQ (LETT |l1| (SPADCALL |s1| (QREFELT $ 38))
                 . #0=(|COMBF;equalsumprod|))
           (LETT |l2| (SPADCALL |s2| (QREFELT $ 38)) . #0#)
           (EXIT (SPADCALL
                     (SPADCALL (|SPADfirst| |l1|)
                         (SPADCALL (SPADCALL |l1| (QREFELT $ 40))
                             (QREFELT $ 61))
                         (SPADCALL |l2| (QREFELT $ 40)) (QREFELT $ 62))
                     (|SPADfirst| |l2|) (QREFELT $ 80))))))) 

(DEFUN |COMBF;equaldsumprod| (|s1| |s2| $)
  (PROG (|l1| |l2|)
    (RETURN
      (SEQ (LETT |l1| (SPADCALL |s1| (QREFELT $ 38))
                 . #0=(|COMBF;equaldsumprod|))
           (LETT |l2| (SPADCALL |s2| (QREFELT $ 38)) . #0#)
           (EXIT (COND
                   ((SPADCALL (SPADCALL (CDR |l1|) (QREFELT $ 49))
                        (SPADCALL (CDR |l2|) (QREFELT $ 49))
                        (QREFELT $ 80))
                    (COND
                      ((SPADCALL
                           (SPADCALL (CDR (CDR |l1|)) (QREFELT $ 49))
                           (SPADCALL (CDR (CDR |l2|)) (QREFELT $ 49))
                           (QREFELT $ 80))
                       (SPADCALL
                           (SPADCALL (|SPADfirst| |l1|)
                               (SPADCALL (SPADCALL |l1| (QREFELT $ 40))
                                   (QREFELT $ 61))
                               (SPADCALL |l2| (QREFELT $ 40))
                               (QREFELT $ 62))
                           (|SPADfirst| |l2|) (QREFELT $ 80)))
                      ('T 'NIL)))
                   ('T 'NIL))))))) 

(DEFUN |COMBF;product;FSbF;25| (|x| |s| $)
  (PROG (|k| |dm|)
    (RETURN
      (SEQ (LETT |k|
                 (SPADCALL (SPADCALL |s| (QREFELT $ 82))
                     (QREFELT $ 65))
                 . #0=(|COMBF;product;FSbF;25|))
           (LETT |dm|
                 (SPADCALL (SPADCALL (QREFELT $ 63)) (QREFELT $ 64)) . #0#)
           (EXIT (SPADCALL (QREFELT $ 21)
                     (LIST (SPADCALL |x| |k| |dm| (QREFELT $ 62)) |dm|
                           (SPADCALL |k| (QREFELT $ 66))
                           (SPADCALL (SPADCALL |s| (QREFELT $ 84))
                               (QREFELT $ 85))
                           (SPADCALL (SPADCALL |s| (QREFELT $ 84))
                               (QREFELT $ 86)))
                     (QREFELT $ 26))))))) 

(DEFUN |COMBF;summation;FSbF;26| (|x| |s| $)
  (PROG (|k| |dm|)
    (RETURN
      (SEQ (LETT |k|
                 (SPADCALL (SPADCALL |s| (QREFELT $ 82))
                     (QREFELT $ 65))
                 . #0=(|COMBF;summation;FSbF;26|))
           (LETT |dm|
                 (SPADCALL (SPADCALL (QREFELT $ 63)) (QREFELT $ 64)) . #0#)
           (EXIT (SPADCALL (QREFELT $ 19)
                     (LIST (SPADCALL |x| |k| |dm| (QREFELT $ 62)) |dm|
                           (SPADCALL |k| (QREFELT $ 66))
                           (SPADCALL (SPADCALL |s| (QREFELT $ 84))
                               (QREFELT $ 85))
                           (SPADCALL (SPADCALL |s| (QREFELT $ 84))
                               (QREFELT $ 86)))
                     (QREFELT $ 26))))))) 

(DEFUN |COMBF;smpfact| (|p| |l| $)
  (SPADCALL (CONS #'|COMBF;smpfact!0| (VECTOR $ |l|))
      (CONS #'|COMBF;smpfact!1| $) |p| (QREFELT $ 94))) 

(DEFUN |COMBF;smpfact!1| (|#1| $) (SPADCALL |#1| (QREFELT $ 89))) 

(DEFUN |COMBF;smpfact!0| (|#1| $$)
  (|COMBF;K2fact| |#1| (QREFELT $$ 1) (QREFELT $$ 0))) 

(DEFUN |COMBF;K2fact| (|k| |l| $)
  (PROG (#0=#:G1931 |v| |kf| #1=#:G1932 #2=#:G1933 |a| #3=#:G1934
            |args| |n| |p|)
    (RETURN
      (SEQ (COND
             ((OR (NULL (PROGN
                          (LETT #0# NIL . #4=(|COMBF;K2fact|))
                          (SEQ (LETT |v| NIL . #4#)
                               (LETT #1#
                                     (SPADCALL
                                      (LETT |kf|
                                       (SPADCALL |k| (QREFELT $ 66)) . #4#)
                                      (QREFELT $ 53)) . #4#)
                               G190
                               (COND
                                 ((OR (ATOM #1#)
                                      (PROGN
                                        (LETT |v| (CAR #1#) . #4#)
                                        NIL))
                                  #5=(GO G191)))
                               (SEQ (EXIT
                                     (COND
                                       ((SPADCALL |v| |l|
                                         (QREFELT $ 72))
                                        (LETT #0# (CONS |v| #0#) . #4#)))))
                               (LETT #1# (CDR #1#) . #4#) #6=(GO G190)
                               G191 (EXIT (NREVERSE0 #0#)))))
                  (NULL (LETT |args|
                              (PROGN
                                (LETT #2# NIL . #4#)
                                (SEQ (LETT |a| NIL . #4#)
                                     (LETT #3#
                                      (SPADCALL |k| (QREFELT $ 38)) . #4#)
                                     G190
                                     (COND
                                       ((OR (ATOM #3#)
                                         (PROGN
                                           (LETT |a| (CAR #3#) . #4#)
                                           NIL))
                                        #5#))
                                     (SEQ
                                      (EXIT
                                       (LETT #2#
                                        (CONS (|COMBF;facts| |a| |l| $)
                                         #2#) . #4#)))
                                     (LETT #3# (CDR #3#) . #4#) #6#
                                     G191 (EXIT (NREVERSE0 #2#)))) . #4#)))
              |kf|)
             ((SPADCALL |k| (QREFELT $ 16) (QREFELT $ 95))
              (SPADCALL
                  (SPADCALL (LETT |n| (|SPADfirst| |args|) . #4#)
                      (QREFELT $ 24))
                  (SPADCALL
                      (SPADCALL |n| (SPADCALL |args| (QREFELT $ 40))
                          (QREFELT $ 51))
                      (QREFELT $ 24))
                  (QREFELT $ 59)))
             ((SPADCALL |k| (QREFELT $ 17) (QREFELT $ 95))
              (SEQ (LETT |n| (|SPADfirst| |args|) . #4#)
                   (LETT |p| (SPADCALL |args| (QREFELT $ 40)) . #4#)
                   (EXIT (SPADCALL (SPADCALL |n| (QREFELT $ 24))
                             (SPADCALL (SPADCALL |p| (QREFELT $ 24))
                                 (SPADCALL
                                     (SPADCALL |n| |p| (QREFELT $ 51))
                                     (QREFELT $ 24))
                                 (QREFELT $ 41))
                             (QREFELT $ 59)))))
             ('T
              (SPADCALL (SPADCALL |k| (QREFELT $ 96)) |args|
                  (QREFELT $ 26)))))))) 

(DEFUN |COMBF;operator;2Bo;29| (|op| $)
  (COND
    ((SPADCALL |op| (SPADCALL "factorial" (QREFELT $ 10))
         (QREFELT $ 97))
     (QREFELT $ 15))
    ((SPADCALL |op| (SPADCALL "permutation" (QREFELT $ 10))
         (QREFELT $ 97))
     (QREFELT $ 16))
    ((SPADCALL |op| (SPADCALL "binomial" (QREFELT $ 10))
         (QREFELT $ 97))
     (QREFELT $ 17))
    ((SPADCALL |op| (SPADCALL "summation" (QREFELT $ 10))
         (QREFELT $ 97))
     (QREFELT $ 18))
    ((SPADCALL |op| (SPADCALL "%defsum" (QREFELT $ 10)) (QREFELT $ 97))
     (QREFELT $ 19))
    ((SPADCALL |op| (SPADCALL "product" (QREFELT $ 10)) (QREFELT $ 97))
     (QREFELT $ 20))
    ((SPADCALL |op| (SPADCALL "%defprod" (QREFELT $ 10))
         (QREFELT $ 97))
     (QREFELT $ 21))
    ((SPADCALL |op| (SPADCALL "%power" (QREFELT $ 10)) (QREFELT $ 97))
     (QREFELT $ 22))
    ('T (|error| "Not a combinatorial operator")))) 

(DEFUN |COMBF;iprod| (|l| $)
  (COND
    ((SPADCALL (|SPADfirst| |l|) (QREFELT $ 99)) (|spadConstant| $ 71))
    ((SPADCALL (|SPADfirst| |l|) (|spadConstant| $ 50) (QREFELT $ 80))
     (|spadConstant| $ 50))
    ('T (SPADCALL (QREFELT $ 20) |l| (QREFELT $ 100))))) 

(DEFUN |COMBF;isum| (|l| $)
  (COND
    ((SPADCALL (|SPADfirst| |l|) (QREFELT $ 99)) (|spadConstant| $ 71))
    ('T (SPADCALL (QREFELT $ 18) |l| (QREFELT $ 100))))) 

(DEFUN |COMBF;idprod| (|l| $)
  (COND
    ((SPADCALL (SPADCALL (SPADCALL |l| (QREFELT $ 40)) (QREFELT $ 70))
               (SPADCALL (|SPADfirst| |l|) (QREFELT $ 53))
               (QREFELT $ 72))
     (SPADCALL (QREFELT $ 21) |l| (QREFELT $ 100)))
    ('T
     (SPADCALL (|SPADfirst| |l|)
         (SPADCALL
             (SPADCALL (|COMBF;fourth| (CDR |l|) $)
                 (|COMBF;fourth| |l| $) (QREFELT $ 51))
             (|spadConstant| $ 50) (QREFELT $ 101))
         (QREFELT $ 39))))) 

(DEFUN |COMBF;idsum| (|l| $)
  (COND
    ((SPADCALL (SPADCALL (SPADCALL |l| (QREFELT $ 40)) (QREFELT $ 70))
         (SPADCALL (|SPADfirst| |l|) (QREFELT $ 53)) (QREFELT $ 72))
     (SPADCALL (QREFELT $ 19) |l| (QREFELT $ 100)))
    ('T
     (SPADCALL (|SPADfirst| |l|)
         (SPADCALL
             (SPADCALL (|COMBF;fourth| (CDR |l|) $)
                 (|COMBF;fourth| |l| $) (QREFELT $ 51))
             (|spadConstant| $ 50) (QREFELT $ 101))
         (QREFELT $ 41))))) 

(DEFUN |COMBF;ifact| (|x| $)
  (COND
    ((OR (SPADCALL |x| (QREFELT $ 99))
         (SPADCALL |x| (|spadConstant| $ 50) (QREFELT $ 80)))
     (|spadConstant| $ 50))
    ('T (SPADCALL (QREFELT $ 15) |x| (QREFELT $ 103))))) 

(DEFUN |COMBF;ibinom| (|l| $)
  (PROG (|n| |p| #0=#:G1958)
    (RETURN
      (SEQ (EXIT (SEQ (LETT |n| (|SPADfirst| |l|)
                            . #1=(|COMBF;ibinom|))
                      (SEQ (LETT |p|
                                 (SPADCALL |l| (QREFELT $ 40)) . #1#)
                           (EXIT (COND
                                   ((OR
                                     (SPADCALL |p|
                                      (|spadConstant| $ 71)
                                      (QREFELT $ 80))
                                     (SPADCALL |p| |n| (QREFELT $ 80)))
                                    (PROGN
                                      (LETT #0#
                                       (|spadConstant| $ 50) . #1#)
                                      (GO #0#))))))
                      (COND
                        ((OR (SPADCALL |p| (|spadConstant| $ 50)
                                 (QREFELT $ 80))
                             (SPADCALL |p|
                                 (SPADCALL |n| (|spadConstant| $ 50)
                                     (QREFELT $ 51))
                                 (QREFELT $ 80)))
                         (EXIT |n|)))
                      (EXIT (SPADCALL (QREFELT $ 17) |l|
                                (QREFELT $ 100)))))
           #0# (EXIT #0#))))) 

(DEFUN |COMBF;iperm| (|l| $)
  (COND
    ((SPADCALL (SPADCALL |l| (QREFELT $ 40)) (QREFELT $ 99))
     (|spadConstant| $ 50))
    ('T (SPADCALL (QREFELT $ 16) |l| (QREFELT $ 100))))) 

(DEFUN |COMBF;iidsum;LF;37| (|l| $)
  (PROG (|r1| |r2| |k| #0=#:G1980 |i| #1=#:G1982 #2=#:G1979 #3=#:G1977
              #4=#:G1978)
    (RETURN
      (SEQ (EXIT (SEQ (SEQ (LETT |r1|
                                 (SPADCALL (|COMBF;fourth| |l| $)
                                     (QREFELT $ 106))
                                 . #5=(|COMBF;iidsum;LF;37|))
                           (EXIT (COND
                                   ((QEQCAR |r1| 1)
                                    (PROGN
                                      (LETT #0#
                                       (|COMBF;idsum| |l| $) . #5#)
                                      (GO #0#)))
                                   (#6='T
                                    (SEQ
                                     (LETT |r2|
                                      (SPADCALL
                                       (|COMBF;fourth| (CDR |l|) $)
                                       (QREFELT $ 106)) . #5#)
                                     (EXIT
                                      (COND
                                        ((QEQCAR |r2| 1)
                                         (PROGN
                                           (LETT #0#
                                            (|COMBF;idsum| |l| $) . #5#)
                                           (GO #0#)))
                                        (#6#
                                         (SEQ
                                          (LETT |k|
                                           (SPADCALL
                                            (SPADCALL |l|
                                             (QREFELT $ 40))
                                            (QREFELT $ 108)) . #5#)
                                          (EXIT
                                           (COND
                                             ((QEQCAR |k| 1)
                                              (PROGN
                                                (LETT #0#
                                                 (|COMBF;idsum| |l| $) . #5#)
                                                (GO #0#))))))))))))))
                      (EXIT (PROGN
                              (LETT #4# NIL . #5#)
                              (SEQ (LETT |i| (QCDR |r1|) . #5#)
                                   (LETT #1# (QCDR |r2|) . #5#) G190
                                   (COND ((> |i| #1#) (GO G191)))
                                   (SEQ
                                    (EXIT
                                     (PROGN
                                       (LETT #2#
                                        (SPADCALL (|SPADfirst| |l|)
                                         (QCDR |k|)
                                         (SPADCALL |i| (QREFELT $ 109))
                                         (QREFELT $ 62)) . #5#)
                                       (COND
                                         (#4#
                                          (LETT #3#
                                           (SPADCALL #3# #2#
                                            (QREFELT $ 101)) . #5#))
                                         ('T
                                          (PROGN
                                            (LETT #3# #2# . #5#)
                                            (LETT #4# 'T . #5#)))))))
                                   (LETT |i| (+ |i| 1) . #5#) (GO G190)
                                   G191 (EXIT NIL))
                              (COND
                                (#4# #3#)
                                (#6# (|spadConstant| $ 71)))))))
           #0# (EXIT #0#))))) 

(DEFUN |COMBF;iidprod;LF;38| (|l| $)
  (PROG (|r1| |r2| |k| #0=#:G1995 |i| #1=#:G1997 #2=#:G1994 #3=#:G1992
              #4=#:G1993)
    (RETURN
      (SEQ (EXIT (SEQ (SEQ (LETT |r1|
                                 (SPADCALL (|COMBF;fourth| |l| $)
                                     (QREFELT $ 106))
                                 . #5=(|COMBF;iidprod;LF;38|))
                           (EXIT (COND
                                   ((QEQCAR |r1| 1)
                                    (PROGN
                                      (LETT #0#
                                       (|COMBF;idprod| |l| $) . #5#)
                                      (GO #0#)))
                                   (#6='T
                                    (SEQ
                                     (LETT |r2|
                                      (SPADCALL
                                       (|COMBF;fourth| (CDR |l|) $)
                                       (QREFELT $ 106)) . #5#)
                                     (EXIT
                                      (COND
                                        ((QEQCAR |r2| 1)
                                         (PROGN
                                           (LETT #0#
                                            (|COMBF;idprod| |l| $) . #5#)
                                           (GO #0#)))
                                        (#6#
                                         (SEQ
                                          (LETT |k|
                                           (SPADCALL
                                            (SPADCALL |l|
                                             (QREFELT $ 40))
                                            (QREFELT $ 108)) . #5#)
                                          (EXIT
                                           (COND
                                             ((QEQCAR |k| 1)
                                              (PROGN
                                                (LETT #0#
                                                 (|COMBF;idprod| |l| $) . #5#)
                                                (GO #0#))))))))))))))
                      (EXIT (PROGN
                              (LETT #4# NIL . #5#)
                              (SEQ (LETT |i| (QCDR |r1|) . #5#)
                                   (LETT #1# (QCDR |r2|) . #5#) G190
                                   (COND ((> |i| #1#) (GO G191)))
                                   (SEQ
                                    (EXIT
                                     (PROGN
                                       (LETT #2#
                                        (SPADCALL (|SPADfirst| |l|)
                                         (QCDR |k|)
                                         (SPADCALL |i| (QREFELT $ 109))
                                         (QREFELT $ 62)) . #5#)
                                       (COND
                                         (#4#
                                          (LETT #3#
                                           (SPADCALL #3# #2#
                                            (QREFELT $ 41)) . #5#))
                                         ('T
                                          (PROGN
                                            (LETT #3# #2# . #5#)
                                            (LETT #4# 'T . #5#)))))))
                                   (LETT |i| (+ |i| 1) . #5#) (GO G190)
                                   G191 (EXIT NIL))
                              (COND
                                (#4# #3#)
                                (#6# (|spadConstant| $ 50)))))))
           #0# (EXIT #0#))))) 

(DEFUN |COMBF;iiipow| (|l| $)
  (PROG (|x| |u| |rec| |y| |r|)
    (RETURN
      (SEQ (LETT |u|
                 (SPADCALL
                     (LETT |x| (|SPADfirst| |l|) . #0=(|COMBF;iiipow|))
                     (SPADCALL "exp" (QREFELT $ 10)) (QREFELT $ 114)) . #0#)
           (EXIT (COND
                   ((QEQCAR |u| 1)
                    (SPADCALL (QREFELT $ 22) |l| (QREFELT $ 100)))
                   (#1='T
                    (SEQ (LETT |rec| (QCDR |u|) . #0#)
                         (LETT |y|
                               (|SPADfirst|
                                   (SPADCALL (QCAR |rec|)
                                    (QREFELT $ 38))) . #0#)
                         (LETT |r| (SPADCALL |y| (QREFELT $ 32)) . #0#)
                         (EXIT (COND
                                 ((QEQCAR |r| 1)
                                  (SPADCALL (QREFELT $ 22) |l|
                                      (QREFELT $ 100)))
                                 (#1#
                                  (SPADCALL
                                      (SPADCALL (QCAR |rec|)
                                       (QREFELT $ 96))
                                      (SPADCALL
                                       (SPADCALL (QCDR |rec|) |y|
                                        (QREFELT $ 46))
                                       (SPADCALL |l| (QREFELT $ 40))
                                       (QREFELT $ 41))
                                      (QREFELT $ 23))))))))))))) 

(DEFUN |COMBF;ipow;LF;40| (|l| $)
  (PROG (|r|)
    (RETURN
      (SEQ (LETT |r|
                 (SPADCALL (SPADCALL |l| (QREFELT $ 40))
                     (QREFELT $ 32))
                 |COMBF;ipow;LF;40|)
           (EXIT (COND
                   ((QEQCAR |r| 1) (|COMBF;iiipow| |l| $))
                   ('T
                    (SPADCALL (|SPADfirst| |l|) (QCDR |r|)
                        (QREFELT $ 116))))))))) 

(DEFUN |COMBF;ipow;LF;41| (|l| $)
  (PROG (|r|)
    (RETURN
      (SEQ (LETT |r|
                 (SPADCALL (SPADCALL |l| (QREFELT $ 40))
                     (QREFELT $ 106))
                 |COMBF;ipow;LF;41|)
           (EXIT (COND
                   ((QEQCAR |r| 1) (|COMBF;iiipow| |l| $))
                   ('T
                    (SPADCALL (|SPADfirst| |l|) (QCDR |r|)
                        (QREFELT $ 118))))))))) 

(DEFUN |COMBF;ipow;LF;42| (|l| $)
  (PROG (|x| |n| |u| |rec| |y| #0=#:G2030)
    (RETURN
      (SEQ (COND
             ((SPADCALL
                  (LETT |x| (|SPADfirst| |l|)
                        . #1=(|COMBF;ipow;LF;42|))
                  (QREFELT $ 99))
              (COND
                ((SPADCALL (SPADCALL |l| (QREFELT $ 40))
                     (QREFELT $ 99))
                 (|error| "0 ** 0"))
                ('T (|spadConstant| $ 71))))
             ((OR (SPADCALL |x| (|spadConstant| $ 50) (QREFELT $ 80))
                  (SPADCALL
                      (LETT |n| (SPADCALL |l| (QREFELT $ 40)) . #1#)
                      (QREFELT $ 99)))
              (|spadConstant| $ 50))
             ('T
              (COND
                ((SPADCALL |n| (|spadConstant| $ 50) (QREFELT $ 80))
                 |x|)
                ('T
                 (SEQ (LETT |u|
                            (SPADCALL |x|
                                (SPADCALL "exp" (QREFELT $ 10))
                                (QREFELT $ 114)) . #1#)
                      (EXIT (COND
                              ((QEQCAR |u| 1)
                               (SPADCALL (QREFELT $ 22) |l|
                                   (QREFELT $ 100)))
                              ('T
                               (SEQ (EXIT
                                     (SEQ (LETT |rec| (QCDR |u|) . #1#)
                                      (SEQ
                                       (LETT |y|
                                        (|SPADfirst|
                                         (SPADCALL (QCAR |rec|)
                                          (QREFELT $ 38))) . #1#)
                                       (EXIT
                                        (COND
                                          ((OR
                                            (SPADCALL |y|
                                             (|spadConstant| $ 50)
                                             (QREFELT $ 80))
                                            (SPADCALL |y|
                                             (SPADCALL
                                              (|spadConstant| $ 50)
                                              (QREFELT $ 119))
                                             (QREFELT $ 80)))
                                           (PROGN
                                             (LETT #0#
                                              (SPADCALL
                                               (SPADCALL (QCAR |rec|)
                                                (QREFELT $ 96))
                                               (SPADCALL
                                                (SPADCALL (QCDR |rec|)
                                                 |y| (QREFELT $ 46))
                                                |n| (QREFELT $ 41))
                                               (QREFELT $ 23)) . #1#)
                                             (GO #0#))))))
                                      (EXIT
                                       (SPADCALL (QREFELT $ 22) |l|
                                        (QREFELT $ 100)))))
                                    #0# (EXIT #0#)))))))))))))) 

(DEFUN |COMBF;iifact;2F;43| (|x| $)
  (PROG (|r|)
    (RETURN
      (SEQ (LETT |r| (SPADCALL |x| (QREFELT $ 121))
                 |COMBF;iifact;2F;43|)
           (EXIT (COND
                   ((QEQCAR |r| 1) (|COMBF;ifact| |x| $))
                   ('T
                    (SPADCALL (SPADCALL (QCDR |r|) (QREFELT $ 122))
                        (QREFELT $ 89))))))))) 

(DEFUN |COMBF;iiperm;LF;44| (|l| $)
  (PROG (|r1| |r2| #0=#:G2048)
    (RETURN
      (SEQ (EXIT (SEQ (SEQ (LETT |r1|
                                 (SPADCALL (|SPADfirst| |l|)
                                     (QREFELT $ 121))
                                 . #1=(|COMBF;iiperm;LF;44|))
                           (EXIT (COND
                                   ((QEQCAR |r1| 1)
                                    (PROGN
                                      (LETT #0#
                                       (|COMBF;iperm| |l| $) . #1#)
                                      (GO #0#)))
                                   ('T
                                    (SEQ
                                     (LETT |r2|
                                      (SPADCALL
                                       (SPADCALL |l| (QREFELT $ 40))
                                       (QREFELT $ 121)) . #1#)
                                     (EXIT
                                      (COND
                                        ((QEQCAR |r2| 1)
                                         (PROGN
                                           (LETT #0#
                                            (|COMBF;iperm| |l| $) . #1#)
                                           (GO #0#))))))))))
                      (EXIT (SPADCALL
                                (SPADCALL (QCDR |r1|) (QCDR |r2|)
                                    (QREFELT $ 124))
                                (QREFELT $ 89)))))
           #0# (EXIT #0#))))) 

(DEFUN |COMBF;iibinom;LF;45| (|l| $)
  (PROG (#0=#:G2068 |s| |t| |i| #1=#:G2069 |ans| |r1| |r2| #2=#:G2066)
    (RETURN
      (SEQ (EXIT (SEQ (SEQ (LETT |s|
                                 (SPADCALL
                                     (SPADCALL |l| (QREFELT $ 40))
                                     (QREFELT $ 121))
                                 . #3=(|COMBF;iibinom;LF;45|))
                           (EXIT (COND
                                   ((QEQCAR |s| 0)
                                    (SEQ
                                     (LETT |t|
                                      (SPADCALL (QCDR |s|)
                                       (QREFELT $ 126)) . #3#)
                                     (EXIT
                                      (COND
                                        ((QEQCAR |t| 0)
                                         (COND
                                           ((< 0 (QCDR |t|))
                                            (PROGN
                                              (LETT #2#
                                               (SEQ
                                                (LETT |ans|
                                                 (|spadConstant| $ 50) . #3#)
                                                (SEQ (LETT |i| 0 . #3#)
                                                 (LETT #0#
                                                  (- (QCDR |t|) 1) . #3#)
                                                 G190
                                                 (COND
                                                   ((QSGREATERP |i|
                                                     #0#)
                                                    #4=(GO G191)))
                                                 (SEQ
                                                  (EXIT
                                                   (LETT |ans|
                                                    (SPADCALL |ans|
                                                     (SPADCALL
                                                      (|SPADfirst| |l|)
                                                      (SPADCALL
                                                       (SPADCALL |i|
                                                        (QREFELT $ 127))
                                                       (QREFELT $ 89))
                                                      (QREFELT $ 51))
                                                     (QREFELT $ 41)) . #3#)))
                                                 (LETT |i|
                                                  (QSADD1 |i|) . #3#)
                                                 #5=(GO G190) G191
                                                 (EXIT NIL))
                                                (EXIT
                                                 (SPADCALL
                                                  (SPADCALL 1
                                                   (SPADCALL (QCDR |t|)
                                                    (QREFELT $ 128))
                                                   (QREFELT $ 129))
                                                  |ans|
                                                  (QREFELT $ 130)))) . #3#)
                                              (GO #2#))))))))))))
                      (SEQ (LETT |s|
                                 (SPADCALL
                                     (SPADCALL (|SPADfirst| |l|)
                                      (SPADCALL |l| (QREFELT $ 40))
                                      (QREFELT $ 51))
                                     (QREFELT $ 121)) . #3#)
                           (EXIT (COND
                                   ((QEQCAR |s| 0)
                                    (SEQ
                                     (LETT |t|
                                      (SPADCALL (QCDR |s|)
                                       (QREFELT $ 126)) . #3#)
                                     (EXIT
                                      (COND
                                        ((QEQCAR |t| 0)
                                         (COND
                                           ((< 0 (QCDR |t|))
                                            (PROGN
                                              (LETT #2#
                                               (SEQ
                                                (LETT |ans|
                                                 (|spadConstant| $ 50) . #3#)
                                                (SEQ (LETT |i| 1 . #3#)
                                                 (LETT #1#
                                                  (QCDR |t|) . #3#)
                                                 G190
                                                 (COND
                                                   ((QSGREATERP |i|
                                                     #1#)
                                                    #4#))
                                                 (SEQ
                                                  (EXIT
                                                   (LETT |ans|
                                                    (SPADCALL |ans|
                                                     (SPADCALL
                                                      (SPADCALL |l|
                                                       (QREFELT $ 40))
                                                      (SPADCALL
                                                       (SPADCALL |i|
                                                        (QREFELT $ 127))
                                                       (QREFELT $ 89))
                                                      (QREFELT $ 101))
                                                     (QREFELT $ 41)) . #3#)))
                                                 (LETT |i|
                                                  (QSADD1 |i|) . #3#)
                                                 #5# G191 (EXIT NIL))
                                                (EXIT
                                                 (SPADCALL
                                                  (SPADCALL 1
                                                   (SPADCALL (QCDR |t|)
                                                    (QREFELT $ 128))
                                                   (QREFELT $ 129))
                                                  |ans|
                                                  (QREFELT $ 130)))) . #3#)
                                              (GO #2#))))))))))))
                      (SEQ (LETT |r1|
                                 (SPADCALL (|SPADfirst| |l|)
                                     (QREFELT $ 121)) . #3#)
                           (EXIT (COND
                                   ((QEQCAR |r1| 1)
                                    (PROGN
                                      (LETT #2#
                                       (|COMBF;ibinom| |l| $) . #3#)
                                      (GO #2#)))
                                   ('T
                                    (SEQ
                                     (LETT |r2|
                                      (SPADCALL
                                       (SPADCALL |l| (QREFELT $ 40))
                                       (QREFELT $ 121)) . #3#)
                                     (EXIT
                                      (COND
                                        ((QEQCAR |r2| 1)
                                         (PROGN
                                           (LETT #2#
                                            (|COMBF;ibinom| |l| $) . #3#)
                                           (GO #2#))))))))))
                      (EXIT (SPADCALL
                                (SPADCALL (QCDR |r1|) (QCDR |r2|)
                                    (QREFELT $ 132))
                                (QREFELT $ 89)))))
           #2# (EXIT #2#))))) 

(DEFUN |COMBF;iibinom;LF;46| (|l| $)
  (PROG (|r1| |r2| #0=#:G2075)
    (RETURN
      (SEQ (EXIT (SEQ (SEQ (LETT |r1|
                                 (SPADCALL (|SPADfirst| |l|)
                                     (QREFELT $ 121))
                                 . #1=(|COMBF;iibinom;LF;46|))
                           (EXIT (COND
                                   ((QEQCAR |r1| 1)
                                    (PROGN
                                      (LETT #0#
                                       (|COMBF;ibinom| |l| $) . #1#)
                                      (GO #0#)))
                                   ('T
                                    (SEQ
                                     (LETT |r2|
                                      (SPADCALL
                                       (SPADCALL |l| (QREFELT $ 40))
                                       (QREFELT $ 121)) . #1#)
                                     (EXIT
                                      (COND
                                        ((QEQCAR |r2| 1)
                                         (PROGN
                                           (LETT #0#
                                            (|COMBF;ibinom| |l| $) . #1#)
                                           (GO #0#))))))))))
                      (EXIT (SPADCALL
                                (SPADCALL (QCDR |r1|) (QCDR |r2|)
                                    (QREFELT $ 132))
                                (QREFELT $ 89)))))
           #0# (EXIT #0#))))) 

(DEFUN |COMBF;iibinom;LF;47| (|l| $)
  (PROG (|r1| |r2| #0=#:G2082)
    (RETURN
      (SEQ (EXIT (SEQ (SEQ (LETT |r1|
                                 (SPADCALL (|SPADfirst| |l|)
                                     (QREFELT $ 121))
                                 . #1=(|COMBF;iibinom;LF;47|))
                           (EXIT (COND
                                   ((QEQCAR |r1| 1)
                                    (PROGN
                                      (LETT #0#
                                       (|COMBF;ibinom| |l| $) . #1#)
                                      (GO #0#)))
                                   ('T
                                    (SEQ
                                     (LETT |r2|
                                      (SPADCALL
                                       (SPADCALL |l| (QREFELT $ 40))
                                       (QREFELT $ 121)) . #1#)
                                     (EXIT
                                      (COND
                                        ((QEQCAR |r2| 1)
                                         (PROGN
                                           (LETT #0#
                                            (|COMBF;ibinom| |l| $) . #1#)
                                           (GO #0#))))))))))
                      (EXIT (SPADCALL
                                (SPADCALL (QCDR |r1|) (QCDR |r2|)
                                    (QREFELT $ 132))
                                (QREFELT $ 89)))))
           #0# (EXIT #0#))))) 

(DEFUN |COMBF;iifact;2F;48| (|x| $) (|COMBF;ifact| |x| $)) 

(DEFUN |COMBF;iibinom;LF;49| (|l| $) (|COMBF;ibinom| |l| $)) 

(DEFUN |COMBF;iiperm;LF;50| (|l| $) (|COMBF;iperm| |l| $)) 

(DEFUN |COMBF;iipow;LF;51| (|l| $)
  (PROG (|r1| |r2| #0=#:G2092)
    (RETURN
      (SEQ (EXIT (SEQ (SEQ (LETT |r1|
                                 (SPADCALL (|SPADfirst| |l|)
                                     (QREFELT $ 121))
                                 . #1=(|COMBF;iipow;LF;51|))
                           (EXIT (COND
                                   ((QEQCAR |r1| 1)
                                    (PROGN
                                      (LETT #0#
                                       (SPADCALL |l| (QREFELT $ 117)) . #1#)
                                      (GO #0#)))
                                   ('T
                                    (SEQ
                                     (LETT |r2|
                                      (SPADCALL
                                       (SPADCALL |l| (QREFELT $ 40))
                                       (QREFELT $ 121)) . #1#)
                                     (EXIT
                                      (COND
                                        ((QEQCAR |r2| 1)
                                         (PROGN
                                           (LETT #0#
                                            (SPADCALL |l|
                                             (QREFELT $ 117)) . #1#)
                                           (GO #0#))))))))))
                      (EXIT (SPADCALL
                                (SPADCALL (QCDR |r1|) (QCDR |r2|)
                                    (QREFELT $ 134))
                                (QREFELT $ 89)))))
           #0# (EXIT #0#))))) 

(DEFUN |COMBF;iipow;LF;52| (|l| $) (SPADCALL |l| (QREFELT $ 117))) 

(DEFUN |COMBF;dvpow2| (|l| $)
  (COND
    ((SPADCALL (|SPADfirst| |l|) (QREFELT $ 99)) (|spadConstant| $ 71))
    ('T
     (SPADCALL (SPADCALL (|SPADfirst| |l|) (QREFELT $ 136))
         (SPADCALL (|SPADfirst| |l|) (SPADCALL |l| (QREFELT $ 40))
             (QREFELT $ 39))
         (QREFELT $ 41))))) 

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

(DEFUN |CombinatorialFunction;| (|#1| |#2|)
  (PROG (DV$1 DV$2 |dv$| $ |pv$|)
    (RETURN
      (PROGN
        (LETT DV$1 (|devaluate| |#1|) . #0=(|CombinatorialFunction|))
        (LETT DV$2 (|devaluate| |#2|) . #0#)
        (LETT |dv$| (LIST '|CombinatorialFunction| DV$1 DV$2) . #0#)
        (LETT $ (GETREFV 146) . #0#)
        (QSETREFV $ 0 |dv$|)
        (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#))
        (|haddProp| |$ConstructorCache| '|CombinatorialFunction|
            (LIST DV$1 DV$2) (CONS 1 $))
        (|stuffDomainSlots| $)
        (QSETREFV $ 6 |#1|)
        (QSETREFV $ 7 |#2|)
        (QSETREFV $ 11 (SPADCALL "comb" (QREFELT $ 10)))
        (QSETREFV $ 15
            (SPADCALL (SPADCALL "factorial" (QREFELT $ 10))
                (QREFELT $ 14)))
        (QSETREFV $ 16
            (SPADCALL (SPADCALL "permutation" (QREFELT $ 10))
                (QREFELT $ 14)))
        (QSETREFV $ 17
            (SPADCALL (SPADCALL "binomial" (QREFELT $ 10))
                (QREFELT $ 14)))
        (QSETREFV $ 18
            (SPADCALL (SPADCALL "summation" (QREFELT $ 10))
                (QREFELT $ 14)))
        (QSETREFV $ 19
            (SPADCALL (SPADCALL "%defsum" (QREFELT $ 10))
                (QREFELT $ 14)))
        (QSETREFV $ 20
            (SPADCALL (SPADCALL "product" (QREFELT $ 10))
                (QREFELT $ 14)))
        (QSETREFV $ 21
            (SPADCALL (SPADCALL "%defprod" (QREFELT $ 10))
                (QREFELT $ 14)))
        (QSETREFV $ 22
            (SPADCALL (SPADCALL "%power" (QREFELT $ 10))
                (QREFELT $ 14)))
        (COND
          ((|HasCategory| |#1| '(|RetractableTo| (|Integer|)))
           (PROGN
             (QSETREFV $ 110
                 (CONS (|dispatchFunction| |COMBF;iidsum;LF;37|) $))
             (QSETREFV $ 111
                 (CONS (|dispatchFunction| |COMBF;iidprod;LF;38|) $))
             (COND
               ((|HasCategory| |#2| '(|RadicalCategory|))
                (QSETREFV $ 117
                    (CONS (|dispatchFunction| |COMBF;ipow;LF;40|) $)))
               ('T
                (QSETREFV $ 117
                    (CONS (|dispatchFunction| |COMBF;ipow;LF;41|) $))))))
          ('T
           (QSETREFV $ 117
               (CONS (|dispatchFunction| |COMBF;ipow;LF;42|) $))))
        (COND
          ((|HasCategory| |#1| '(|CombinatorialFunctionCategory|))
           (PROGN
             (QSETREFV $ 123
                 (CONS (|dispatchFunction| |COMBF;iifact;2F;43|) $))
             (QSETREFV $ 125
                 (CONS (|dispatchFunction| |COMBF;iiperm;LF;44|) $))
             (COND
               ((|HasCategory| |#1| '(|RetractableTo| (|Integer|)))
                (COND
                  ((|HasCategory| |#2|
                       '(|Algebra| (|Fraction| (|Integer|))))
                   (QSETREFV $ 133
                       (CONS (|dispatchFunction| |COMBF;iibinom;LF;45|)
                             $)))
                  ('T
                   (QSETREFV $ 133
                       (CONS (|dispatchFunction| |COMBF;iibinom;LF;46|)
                             $)))))
               ('T
                (QSETREFV $ 133
                    (CONS (|dispatchFunction| |COMBF;iibinom;LF;47|) $))))))
          ('T
           (PROGN
             (QSETREFV $ 123
                 (CONS (|dispatchFunction| |COMBF;iifact;2F;48|) $))
             (QSETREFV $ 133
                 (CONS (|dispatchFunction| |COMBF;iibinom;LF;49|) $))
             (QSETREFV $ 125
                 (CONS (|dispatchFunction| |COMBF;iiperm;LF;50|) $)))))
        (COND
          ((|HasCategory| |#1| '(|ElementaryFunctionCategory|))
           (QSETREFV $ 135
               (CONS (|dispatchFunction| |COMBF;iipow;LF;51|) $)))
          ('T
           (QSETREFV $ 135
               (CONS (|dispatchFunction| |COMBF;iipow;LF;52|) $))))
        (SPADCALL (QREFELT $ 15) (ELT $ 123) (QREFELT $ 139))
        (SPADCALL (QREFELT $ 22) (ELT $ 135) (QREFELT $ 141))
        (SPADCALL (QREFELT $ 16) (ELT $ 125) (QREFELT $ 141))
        (SPADCALL (QREFELT $ 17) (ELT $ 133) (QREFELT $ 141))
        (SPADCALL (QREFELT $ 18) (CONS (|function| |COMBF;isum|) $)
            (QREFELT $ 141))
        (SPADCALL (QREFELT $ 19) (ELT $ 110) (QREFELT $ 141))
        (SPADCALL (QREFELT $ 20) (CONS (|function| |COMBF;iprod|) $)
            (QREFELT $ 141))
        (SPADCALL (QREFELT $ 21) (ELT $ 111) (QREFELT $ 141))
        (SPADCALL (QREFELT $ 22)
            (LIST (CONS (|function| |COMBF;dvpow1|) $)
                  (CONS (|function| |COMBF;dvpow2|) $))
            (QREFELT $ 143))
        (SPADCALL (QREFELT $ 18)
            (SPADCALL "%specialDiff" (QREFELT $ 10))
            (CONS (|function| |COMBF;dvsum|) $) (QREFELT $ 145))
        (SPADCALL (QREFELT $ 19)
            (SPADCALL "%specialDiff" (QREFELT $ 10))
            (CONS (|function| |COMBF;dvdsum|) $) (QREFELT $ 145))
        (SPADCALL (QREFELT $ 20)
            (SPADCALL "%specialDiff" (QREFELT $ 10))
            (CONS (|function| |COMBF;dvprod|) $) (QREFELT $ 145))
        (SPADCALL (QREFELT $ 21)
            (SPADCALL "%specialDiff" (QREFELT $ 10))
            (CONS (|function| |COMBF;dvdprod|) $) (QREFELT $ 145))
        (SPADCALL (QREFELT $ 18)
            (SPADCALL "%specialDisp" (QREFELT $ 10))
            (CONS (|function| |COMBF;dsum|) $) (QREFELT $ 145))
        (SPADCALL (QREFELT $ 19)
            (SPADCALL "%specialDisp" (QREFELT $ 10))
            (CONS (|function| |COMBF;ddsum|) $) (QREFELT $ 145))
        (SPADCALL (QREFELT $ 20)
            (SPADCALL "%specialDisp" (QREFELT $ 10))
            (CONS (|function| |COMBF;dprod|) $) (QREFELT $ 145))
        (SPADCALL (QREFELT $ 21)
            (SPADCALL "%specialDisp" (QREFELT $ 10))
            (CONS (|function| |COMBF;ddprod|) $) (QREFELT $ 145))
        (SPADCALL (QREFELT $ 18)
            (SPADCALL "%specialEqual" (QREFELT $ 10))
            (CONS (|function| |COMBF;equalsumprod|) $) (QREFELT $ 145))
        (SPADCALL (QREFELT $ 19)
            (SPADCALL "%specialEqual" (QREFELT $ 10))
            (CONS (|function| |COMBF;equaldsumprod|) $)
            (QREFELT $ 145))
        (SPADCALL (QREFELT $ 20)
            (SPADCALL "%specialEqual" (QREFELT $ 10))
            (CONS (|function| |COMBF;equalsumprod|) $) (QREFELT $ 145))
        (SPADCALL (QREFELT $ 21)
            (SPADCALL "%specialEqual" (QREFELT $ 10))
            (CONS (|function| |COMBF;equaldsumprod|) $)
            (QREFELT $ 145))
        $)))) 

(MAKEPROP '|CombinatorialFunction| '|infovec|
    (LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|)
             (|String|) (|Symbol|) (0 . |coerce|) 'COMB
             (|BasicOperator|) (|CommonOperators|) (5 . |operator|)
             '|opfact| '|opperm| '|opbinom| '|opsum| '|opdsum|
             '|opprod| '|opdprod| '|oppow| (10 . |elt|)
             |COMBF;factorial;2F;1| (|List| $) (16 . |elt|)
             |COMBF;binomial;3F;2| |COMBF;permutation;3F;3| (|Boolean|)
             (22 . |ground?|) (|Union| 115 '"failed")
             (27 . |retractIfCan|) (32 . |is?|) (|List| 60)
             (38 . |kernels|) (|List| 7) (|Kernel| 7) (43 . |argument|)
             |COMBF;**;3F;5| (48 . |second|) (53 . *)
             (|Record| (|:| |val| $) (|:| |exponent| 45))
             (|Union| 42 '"failed") (59 . |isPower|) (|Integer|)
             (64 . *) (70 . |has?|) |COMBF;belong?;BoB;6|
             (76 . |third|) (81 . |One|) (85 . -) (|List| 9)
             (91 . |variables|) |COMBF;factorials;2F;9|
             |COMBF;factorials;FSF;10|
             (|SparseMultivariatePolynomial| 6 60) (96 . |numer|)
             (101 . |denom|) (106 . /) (|Kernel| $) (112 . |retract|)
             (117 . |eval|) (124 . |new|) (128 . |coerce|)
             (133 . |kernel|) (138 . |coerce|) |COMBF;product;FSF;13|
             |COMBF;summation;FSF;14| (143 . |differentiate|)
             (149 . |retract|) (154 . |Zero|) (158 . |member?|)
             (|OutputForm|) (164 . |coerce|) (169 . |prod|) (175 . =)
             (181 . |prod|) (188 . |sum|) (194 . |sum|) (201 . =)
             (|SegmentBinding| 7) (207 . |variable|) (|Segment| 7)
             (212 . |segment|) (217 . |lo|) (222 . |hi|)
             |COMBF;product;FSbF;25| |COMBF;summation;FSbF;26|
             (227 . |coerce|) (|Mapping| 7 37) (|Mapping| 7 6)
             (|SparseMultivariatePolynomial| 6 37)
             (|PolynomialCategoryLifting| (|IndexedExponents| 37) 37 6
                 92 7)
             (232 . |map|) (239 . |is?|) (245 . |operator|)
             (250 . |is?|) |COMBF;operator;2Bo;29| (256 . |zero?|)
             (261 . |kernel|) (267 . +) (273 . |One|) (277 . |kernel|)
             (283 . |Zero|) (|Union| 45 '"failed")
             (287 . |retractIfCan|) (|Union| 60 '"failed")
             (292 . |retractIfCan|) (297 . |coerce|) (302 . |iidsum|)
             (307 . |iidprod|)
             (|Record| (|:| |var| 60) (|:| |exponent| 45))
             (|Union| 112 '"failed") (312 . |isExpt|) (|Fraction| 45)
             (318 . **) (324 . |ipow|) (329 . **) (335 . -)
             (|Union| 6 '"failed") (340 . |retractIfCan|)
             (345 . |factorial|) (350 . |iifact|) (355 . |permutation|)
             (361 . |iiperm|) (366 . |retractIfCan|) (371 . |coerce|)
             (376 . |factorial|) (381 . /) (387 . *) (393 . |Zero|)
             (397 . |binomial|) (403 . |iibinom|) (408 . **)
             (414 . |iipow|) (419 . |log|) (|Mapping| 7 7)
             (|BasicOperatorFunctions1| 7) (424 . |evaluate|)
             (|Mapping| 7 36) (430 . |evaluate|) (|List| 140)
             (436 . |derivative|) (|None|) (442 . |setProperty|))
          '#(|summation| 449 |product| 461 |permutation| 473 |operator|
             479 |ipow| 484 |iipow| 489 |iiperm| 494 |iifact| 499
             |iidsum| 504 |iidprod| 509 |iibinom| 514 |factorials| 519
             |factorial| 530 |binomial| 535 |belong?| 541 ** 546)
          'NIL
          (CONS (|makeByteWordVec2| 1 'NIL)
                (CONS '#()
                      (CONS '#()
                            (|makeByteWordVec2| 145
                                '(1 9 0 8 10 1 13 12 9 14 2 7 0 12 0 23
                                  2 7 0 12 25 26 1 7 29 0 30 1 7 31 0
                                  32 2 7 29 0 9 33 1 7 34 0 35 1 37 36
                                  0 38 1 36 7 0 40 2 7 0 0 0 41 1 7 43
                                  0 44 2 7 0 45 0 46 2 12 29 0 9 47 1
                                  36 7 0 49 0 7 0 50 2 7 0 0 0 51 1 7
                                  52 0 53 1 7 56 0 57 1 7 56 0 58 2 7 0
                                  0 0 59 1 7 60 0 61 3 7 0 0 60 0 62 0
                                  9 0 63 1 7 0 9 64 1 37 0 9 65 1 7 0
                                  60 66 2 7 0 0 9 69 1 7 9 0 70 0 7 0
                                  71 2 52 29 9 0 72 1 7 73 0 74 2 73 0
                                  0 0 75 2 73 0 0 0 76 3 73 0 0 0 0 77
                                  2 73 0 0 0 78 3 73 0 0 0 0 79 2 7 29
                                  0 0 80 1 81 9 0 82 1 81 83 0 84 1 83
                                  7 0 85 1 83 7 0 86 1 7 0 6 89 3 93 7
                                  90 91 92 94 2 37 29 0 12 95 1 37 12 0
                                  96 2 12 29 0 9 97 1 7 29 0 99 2 7 0
                                  12 25 100 2 7 0 0 0 101 0 6 0 102 2 7
                                  0 12 0 103 0 6 0 104 1 7 105 0 106 1
                                  7 107 0 108 1 7 0 45 109 1 0 7 36 110
                                  1 0 7 36 111 2 7 113 0 9 114 2 7 0 0
                                  115 116 1 0 7 36 117 2 7 0 0 45 118 1
                                  7 0 0 119 1 7 120 0 121 1 6 0 0 122 1
                                  0 7 7 123 2 6 0 0 0 124 1 0 7 36 125
                                  1 6 105 0 126 1 6 0 45 127 1 45 0 0
                                  128 2 115 0 45 45 129 2 7 0 115 0 130
                                  0 115 0 131 2 6 0 0 0 132 1 0 7 36
                                  133 2 6 0 0 0 134 1 0 7 36 135 1 7 0
                                  0 136 2 138 12 12 137 139 2 138 12 12
                                  140 141 2 138 12 12 142 143 3 12 0 0
                                  9 144 145 2 0 7 7 9 68 2 0 7 7 81 88
                                  2 0 7 7 9 67 2 0 7 7 81 87 2 0 7 7 7
                                  28 1 0 12 12 98 1 0 7 36 117 1 0 7 36
                                  135 1 0 7 36 125 1 0 7 7 123 1 0 7 36
                                  110 1 0 7 36 111 1 0 7 36 133 1 0 7 7
                                  54 2 0 7 7 9 55 1 0 7 7 24 2 0 7 7 7
                                  27 1 0 29 12 48 2 0 7 7 7 39)))))
          '|lookupComplete|)) 
