
(/VERSIONCHECK 2) 

(DEFUN |RADFF;discriminant;F;1| ($)
  (SEQ
   (COND ((SPADCALL (QREFELT $ 20) (QREFELT $ 39)) (|RADFF;startUp| 'NIL $)))
   (EXIT (SPADCALL (QREFELT $ 24) (QREFELT $ 40))))) 

(DEFUN |RADFF;radcand| ($)
  (SEQ
   (COND ((SPADCALL (QREFELT $ 20) (QREFELT $ 39)) (|RADFF;startUp| 'NIL $)))
   (EXIT (SPADCALL (QREFELT $ 28) (QREFELT $ 42))))) 

(DEFUN |RADFF;integralBasis;V;3| ($)
  (SEQ
   (COND ((SPADCALL (QREFELT $ 20) (QREFELT $ 39)) (|RADFF;startUp| 'NIL $)))
   (EXIT (|RADFF;diag| (QREFELT $ 31) $)))) 

(DEFUN |RADFF;integralBasisAtInfinity;V;4| ($)
  (SEQ
   (COND ((SPADCALL (QREFELT $ 20) (QREFELT $ 39)) (|RADFF;startUp| 'NIL $)))
   (EXIT (|RADFF;diag| (QREFELT $ 33) $)))) 

(DEFUN |RADFF;basisvec| ($)
  (SEQ
   (COND ((SPADCALL (QREFELT $ 20) (QREFELT $ 39)) (|RADFF;startUp| 'NIL $)))
   (EXIT (QREFELT $ 31)))) 

(DEFUN |RADFF;integralMatrix;M;6| ($)
  (SPADCALL (|RADFF;basisvec| $) (QREFELT $ 47))) 

(DEFUN |RADFF;integralMatrixAtInfinity;M;7| ($)
  (SEQ
   (COND ((SPADCALL (QREFELT $ 20) (QREFELT $ 39)) (|RADFF;startUp| 'NIL $)))
   (EXIT (SPADCALL (QREFELT $ 33) (QREFELT $ 47))))) 

(DEFUN |RADFF;inverseIntegralMatrix;M;8| ($)
  (SEQ
   (COND ((SPADCALL (QREFELT $ 20) (QREFELT $ 39)) (|RADFF;startUp| 'NIL $)))
   (EXIT (SPADCALL (QREFELT $ 32) (QREFELT $ 47))))) 

(DEFUN |RADFF;inverseIntegralMatrixAtInfinity;M;9| ($)
  (SEQ
   (COND ((SPADCALL (QREFELT $ 20) (QREFELT $ 39)) (|RADFF;startUp| 'NIL $)))
   (EXIT (SPADCALL (QREFELT $ 34) (QREFELT $ 47))))) 

(DEFUN |RADFF;definingPolynomial;UPUP;10| ($) (QREFELT $ 30)) 

(DEFUN |RADFF;ramified?;FB;11| (|point| $)
  (SPADCALL (SPADCALL (|RADFF;radcand| $) |point| (QREFELT $ 53))
            (QREFELT $ 54))) 

(DEFUN |RADFF;branchPointAtInfinity?;B;12| ($)
  (QEQCAR
   (SPADCALL (SPADCALL (|RADFF;radcand| $) (QREFELT $ 56)) (QREFELT $ 10)
             (QREFELT $ 58))
   1)) 

(DEFUN |RADFF;elliptic;U;13| ($)
  (SEQ
   (COND
    ((EQL (QREFELT $ 10) 2)
     (COND
      ((EQL (SPADCALL (|RADFF;radcand| $) (QREFELT $ 56)) 3)
       (EXIT (CONS 0 (|RADFF;radcand| $)))))))
   (EXIT (CONS 1 "failed")))) 

(DEFUN |RADFF;hyperelliptic;U;14| ($)
  (SEQ
   (COND
    ((EQL (QREFELT $ 10) 2)
     (COND
      ((ODDP (SPADCALL (|RADFF;radcand| $) (QREFELT $ 56)))
       (EXIT (CONS 0 (|RADFF;radcand| $)))))))
   (EXIT (CONS 1 "failed")))) 

(DEFUN |RADFF;diag| (|v| $)
  (PROG (#1=#:G1863 |i| #2=#:G1862)
    (RETURN
     (SEQ
      (PROGN
       (LETT #2# (GETREFV (QSADD1 #3=(QREFELT $ 29))) . #4=(|RADFF;diag|))
       (SEQ (LETT |i| 0 . #4#) (LETT #1# #3# . #4#) G190
            (COND ((QSGREATERP |i| #1#) (GO G191)))
            (SEQ
             (EXIT
              (SETELT #2# |i|
                      (SPADCALL
                       (SPADCALL (QAREF1O |v| (+ |i| (QREFELT $ 38)) 1) |i|
                                 (QREFELT $ 14))
                       (QREFELT $ 63)))))
            (LETT |i| (QSADD1 |i|) . #4#) (GO G190) G191 (EXIT NIL))
       #2#))))) 

(DEFUN |RADFF;integralRepresents;VUP$;16| (|v| |d| $)
  (PROG (#1=#:G1869 |i| #2=#:G1868 #3=#:G1867 |ib|)
    (RETURN
     (SEQ
      (LETT |ib| (|RADFF;basisvec| $)
            . #4=(|RADFF;integralRepresents;VUP$;16|))
      (EXIT
       (SPADCALL
        (PROGN
         (LETT #3# (GETREFV (QSADD1 (- #5=(QVSIZE |ib|) #6=(QREFELT $ 38))))
               . #4#)
         (SEQ (LETT #2# 0 . #4#) (LETT |i| #6# . #4#) (LETT #1# #5# . #4#) G190
              (COND ((> |i| #1#) (GO G191)))
              (SEQ
               (EXIT
                (SETELT #3# #2#
                        (SPADCALL (QAREF1O |ib| |i| 1)
                                  (SPADCALL (QAREF1O |v| |i| 1) |d|
                                            (QREFELT $ 64))
                                  (QREFELT $ 65)))))
              (LETT |i| (PROG1 (+ |i| 1) (LETT #2# (QSADD1 #2#) . #4#)) . #4#)
              (GO G190) G191 (EXIT NIL))
         #3#)
        (QREFELT $ 66))))))) 

(DEFUN |RADFF;integralCoordinates;$R;17| (|f| $)
  (PROG (#1=#:G1877 |i| #2=#:G1876 #3=#:G1875 |ib| |v|)
    (RETURN
     (SEQ
      (LETT |v| (SPADCALL |f| (QREFELT $ 69))
            . #4=(|RADFF;integralCoordinates;$R;17|))
      (LETT |ib| (|RADFF;basisvec| $) . #4#)
      (EXIT
       (SPADCALL
        (PROGN
         (LETT #3# (GETREFV (QSADD1 (- #5=(QVSIZE |ib|) #6=(QREFELT $ 38))))
               . #4#)
         (SEQ (LETT #2# 0 . #4#) (LETT |i| #6# . #4#) (LETT #1# #5# . #4#) G190
              (COND ((> |i| #1#) (GO G191)))
              (SEQ
               (EXIT
                (SETELT #3# #2#
                        (SPADCALL (QAREF1O |v| |i| 1) (QAREF1O |ib| |i| 1)
                                  (QREFELT $ 70)))))
              (LETT |i| (PROG1 (+ |i| 1) (LETT #2# (QSADD1 #2#) . #4#)) . #4#)
              (GO G190) G191 (EXIT NIL))
         #3#)
        (QREFELT $ 73))))))) 

(DEFUN |RADFF;integralDerivationMatrix;MR;18| (|d| $)
  (PROG (|cd| #1=#:G1889 |i| #2=#:G1888 #3=#:G1887 |v| |dlogp|)
    (RETURN
     (SEQ
      (LETT |dlogp|
            (SPADCALL (SPADCALL (QREFELT $ 9) |d| (QREFELT $ 76))
                      (SPADCALL (QREFELT $ 10) (QREFELT $ 9) (QREFELT $ 77))
                      (QREFELT $ 70))
            . #4=(|RADFF;integralDerivationMatrix;MR;18|))
      (LETT |v| (|RADFF;basisvec| $) . #4#)
      (LETT |cd|
            (SPADCALL
             (PROGN
              (LETT #3#
                    (GETREFV (QSADD1 (- #5=(QVSIZE |v|) #6=(QREFELT $ 38))))
                    . #4#)
              (SEQ (LETT #2# 0 . #4#) (LETT |i| #6# . #4#) (LETT #1# #5# . #4#)
                   G190 (COND ((> |i| #1#) (GO G191)))
                   (SEQ
                    (EXIT
                     (SETELT #3# #2#
                             (SPADCALL
                              (SPADCALL (- |i| (QREFELT $ 38)) |dlogp|
                                        (QREFELT $ 78))
                              (SPADCALL
                               (SPADCALL (QAREF1O |v| |i| 1) |d|
                                         (QREFELT $ 76))
                               (QAREF1O |v| |i| 1) (QREFELT $ 70))
                              (QREFELT $ 79)))))
                   (LETT |i| (PROG1 (+ |i| 1) (LETT #2# (QSADD1 #2#) . #4#))
                         . #4#)
                   (GO G190) G191 (EXIT NIL))
              #3#)
             (QREFELT $ 73))
            . #4#)
      (EXIT (CONS (SPADCALL (QCAR |cd|) (QREFELT $ 81)) (QCDR |cd|))))))) 

(DEFUN |RADFF;iBasis| (|p| |d| $)
  (PROG (#1=#:G1896 #2=#:G1895 #3=#:G1897 |j| |i| #4=#:G1901 |d1| #5=#:G1894
         |pl|)
    (RETURN
     (SEQ
      (LETT |pl| (|RADFF;fullVector| (SPADCALL |p| (QREFELT $ 85)) |d| $)
            . #6=(|RADFF;iBasis|))
      (LETT |d1|
            (PROG1 (LETT #5# (- |d| 1) . #6#)
              (|check-subtype| (>= #5# 0) '(|NonNegativeInteger|) #5#))
            . #6#)
      (EXIT
       (PROGN
        (LETT #4# (GETREFV (QSADD1 |d1|)) . #6#)
        (SEQ (LETT |i| 0 . #6#) G190
             (COND ((QSGREATERP |i| |d1|) #7=(GO G191)))
             (SEQ
              (EXIT
               (SETELT #4# |i|
                       (PROGN
                        (LETT #1# NIL . #6#)
                        (SEQ (LETT |j| 0 . #6#) G190
                             (COND ((QSGREATERP |j| |d1|) #7#))
                             (SEQ
                              (EXIT
                               (PROGN
                                (LETT #3#
                                      (SPADCALL (QAREF1 |pl| |j|)
                                                (QUOTIENT2 (* |i| |j|) |d|)
                                                (QREFELT $ 86))
                                      . #6#)
                                (COND
                                 (#1#
                                  (LETT #2# (SPADCALL #2# #3# (QREFELT $ 87))
                                        . #6#))
                                 ('T
                                  (PROGN
                                   (LETT #2# #3# . #6#)
                                   (LETT #1# 'T . #6#)))))))
                             (LETT |j| (QSADD1 |j|) . #6#) #8=(GO G190) G191
                             (EXIT NIL))
                        (COND (#1# #2#) ('T (|spadConstant| $ 88)))))))
             (LETT |i| (QSADD1 |i|) . #6#) #8# G191 (EXIT NIL))
        #4#)))))) 

(DEFUN |RADFF;fullVector| (|p| |m| $)
  (PROG (|u| #1=#:G1926 |i| |l| |ans|)
    (RETURN
     (SEQ
      (LETT |ans| (MAKEARR1 |m| (|spadConstant| $ 25))
            . #2=(|RADFF;fullVector|))
      (QSETAREF1 |ans| 0 (SPADCALL |p| (QREFELT $ 94)))
      (LETT |l| (SPADCALL |p| (QREFELT $ 97)) . #2#)
      (SEQ (LETT |i| 1 . #2#) (LETT #1# (SPADCALL |ans| (QREFELT $ 99)) . #2#)
           G190 (COND ((QSGREATERP |i| #1#) (GO G191)))
           (SEQ
            (EXIT
             (QSETAREF1 |ans| |i|
                        (SEQ
                         (LETT |u|
                               (SPADCALL
                                (CONS #'|RADFF;fullVector!0| (VECTOR $ |i|))
                                |l| (QREFELT $ 103))
                               . #2#)
                         (EXIT
                          (COND ((QEQCAR |u| 1) (|spadConstant| $ 88))
                                ('T (QCAR (QCDR |u|)))))))))
           (LETT |i| (QSADD1 |i|) . #2#) (GO G190) G191 (EXIT NIL))
      (EXIT |ans|))))) 

(DEFUN |RADFF;fullVector!0| (|s| $$)
  (PROG (|i| $)
    (LETT |i| (QREFELT $$ 1) . #1=(|RADFF;fullVector|))
    (LETT $ (QREFELT $$ 0) . #1#)
    (RETURN (PROGN (SPADCALL (QCDR |s|) |i| (QREFELT $ 100)))))) 

(DEFUN |RADFF;inftyBasis| (|p| |m| $)
  (PROG (|b| #1=#:G1934 |i| |w| |v| |a| |rt| |x|)
    (RETURN
     (SEQ
      (LETT |rt|
            (SPADCALL
             (SPADCALL |p|
                       (LETT |x|
                             (SPADCALL
                              (SPADCALL
                               (SPADCALL (|spadConstant| $ 104) 1
                                         (QREFELT $ 105))
                               (QREFELT $ 106))
                              (QREFELT $ 107))
                             . #2=(|RADFF;inftyBasis|))
                       (QREFELT $ 109))
             |m| (QREFELT $ 112))
            . #2#)
      (COND
       ((NULL (EQL |m| (QVELT |rt| 0)))
        (EXIT
         (|error|
          "Curve not irreducible after change of variable 0 -> infinity"))))
      (LETT |a| (SPADCALL (QVELT |rt| 1) |x| (QREFELT $ 109)) . #2#)
      (LETT |b| (|spadConstant| $ 12) . #2#)
      (LETT |v| (|RADFF;iBasis| (QVELT |rt| 2) |m| $) . #2#)
      (LETT |w| (MAKEARR1 |m| (|spadConstant| $ 21)) . #2#)
      (SEQ (LETT |i| (QREFELT $ 38) . #2#) (LETT #1# (QVSIZE |v|) . #2#) G190
           (COND ((> |i| #1#) (GO G191)))
           (SEQ
            (QSETAREF1O |w| |i|
                        (SPADCALL |b|
                                  (SPADCALL
                                   (SPADCALL (QAREF1O |v| |i| 1)
                                             (QREFELT $ 106))
                                   |x| (QREFELT $ 109))
                                  (QREFELT $ 70))
                        1)
            (EXIT (LETT |b| (SPADCALL |b| |a| (QREFELT $ 65)) . #2#)))
           (LETT |i| (+ |i| 1) . #2#) (GO G190) G191 (EXIT NIL))
      (EXIT |w|))))) 

(DEFUN |RADFF;charPintbas| (|p| |c| |v| |w| $)
  (PROG (|a| #1=#:G1943 |i| #2=#:G1944 |j| #3=#:G1945 |k| |ib| |q|)
    (RETURN
     (SEQ
      (COND
       ((NULL (EQL (SPADCALL |p| (QREFELT $ 113)) (QREFELT $ 10)))
        (|error| "charPintbas: should not happen"))
       ('T
        (SEQ
         (LETT |q| (SPADCALL (ELT $ 114) |p| (QREFELT $ 118))
               . #4=(|RADFF;charPintbas|))
         (LETT |ib|
               (SPADCALL
                (|compiledLookupCheck| '|integralBasis|
                                       (LIST
                                        (LIST '|Record|
                                              (LIST '|:| '|basis|
                                                    (LIST '|Matrix|
                                                          (|devaluate|
                                                           (ELT $ 7))))
                                              (LIST '|:| '|basisDen|
                                                    (|devaluate| (ELT $ 7)))
                                              (LIST '|:| '|basisInv|
                                                    (LIST '|Matrix|
                                                          (|devaluate|
                                                           (ELT $ 7))))))
                                       (|FunctionFieldIntegralBasis| (ELT $ 7)
                                                                     (|SparseUnivariatePolynomial|
                                                                      (ELT $
                                                                           7))
                                                                     (|SimpleAlgebraicExtension|
                                                                      (ELT $ 7)
                                                                      (|SparseUnivariatePolynomial|
                                                                       (ELT $
                                                                            7))
                                                                      |q|))))
               . #4#)
         (COND
          ((NULL (SPADCALL (QVELT |ib| 0) (QREFELT $ 120)))
           (EXIT (|error| "charPintbas: integral basis not diagonal"))))
         (LETT |a| (|spadConstant| $ 12) . #4#)
         (SEQ (LETT |k| (QREFELT $ 38) . #4#) (LETT #3# (QVSIZE |v|) . #4#)
              (LETT |j| 1 . #4#)
              (LETT #2# (SPADCALL (QVELT |ib| 0) (QREFELT $ 122)) . #4#)
              (LETT |i| 1 . #4#)
              (LETT #1# (SPADCALL (QVELT |ib| 0) (QREFELT $ 121)) . #4#) G190
              (COND
               ((OR (QSGREATERP |i| #1#) (QSGREATERP |j| #2#) (> |k| #3#))
                (GO G191)))
              (SEQ
               (QSETAREF1O |v| |k|
                           (SPADCALL
                            (SPADCALL (QAREF2O (QVELT |ib| 0) |i| |j| 1 1)
                                      (QVELT |ib| 1) (QREFELT $ 64))
                            |a| (QREFELT $ 65))
                           1)
               (QSETAREF1O |w| |k|
                           (SPADCALL (QAREF2O (QVELT |ib| 2) |i| |j| 1 1)
                                     (SPADCALL |a| (QREFELT $ 107))
                                     (QREFELT $ 123))
                           1)
               (EXIT (LETT |a| (SPADCALL |a| |c| (QREFELT $ 65)) . #4#)))
              (LETT |i|
                    (PROG1 (QSADD1 |i|)
                      (LETT |j| (PROG1 (QSADD1 |j|) (LETT |k| (+ |k| 1) . #4#))
                            . #4#))
                    . #4#)
              (GO G190) G191 (EXIT NIL))
         (EXIT (SPADCALL (QREFELT $ 125)))))))))) 

(DEFUN |RADFF;charPStartUp| ($)
  (PROG (|r| |invmod| |x|)
    (RETURN
     (SEQ
      (LETT |r| (SPADCALL (QREFELT $ 30) (QREFELT $ 127))
            . #1=(|RADFF;charPStartUp|))
      (|RADFF;charPintbas| (QCDR |r|) (QCAR |r|) (QREFELT $ 31) (QREFELT $ 32)
       $)
      (LETT |x|
            (SPADCALL
             (SPADCALL (SPADCALL (|spadConstant| $ 104) 1 (QREFELT $ 105))
                       (QREFELT $ 106))
             (QREFELT $ 107))
            . #1#)
      (LETT |invmod|
            (SPADCALL
             (SPADCALL (|spadConstant| $ 12) (QREFELT $ 10) (QREFELT $ 14))
             (SPADCALL (SPADCALL (QREFELT $ 9) |x| (QREFELT $ 109))
                       (QREFELT $ 15))
             (QREFELT $ 16))
            . #1#)
      (LETT |r| (SPADCALL |invmod| (QREFELT $ 127)) . #1#)
      (EXIT
       (|RADFF;charPintbas| (QCDR |r|)
        (SPADCALL (QCAR |r|) |x| (QREFELT $ 109)) (QREFELT $ 33) (QREFELT $ 34)
        $)))))) 

(DEFUN |RADFF;startUp| (|b| $)
  (PROG (|dsc| #1=#:G1961 #2=#:G1960 #3=#:G1962 #4=#:G1965 |i| |p|)
    (RETURN
     (SEQ (SPADCALL (QREFELT $ 20) |b| (QREFELT $ 128))
          (COND
           ((OR
             (ZEROP
              (LETT |p| (SPADCALL (QREFELT $ 129)) . #5=(|RADFF;startUp|)))
             (< (QREFELT $ 10) |p|))
            (|RADFF;char0StartUp| $))
           ('T (|RADFF;charPStartUp| $)))
          (LETT |dsc|
                (SPADCALL
                 (SPADCALL
                  (* (EXPT -1 (QUOTIENT2 (* (QREFELT $ 10) (QREFELT $ 29)) 2))
                     (EXPT (QREFELT $ 10) (QREFELT $ 10)))
                  (SPADCALL (QREFELT $ 9) (QREFELT $ 29) (QREFELT $ 130))
                  (QREFELT $ 78))
                 (PROGN
                  (LETT #1# NIL . #5#)
                  (SEQ (LETT |i| (QREFELT $ 38) . #5#)
                       (LETT #4# (QVSIZE (QREFELT $ 31)) . #5#) G190
                       (COND ((> |i| #4#) (GO G191)))
                       (SEQ
                        (EXIT
                         (PROGN
                          (LETT #3#
                                (SPADCALL (QAREF1O (QREFELT $ 31) |i| 1) 2
                                          (QREFELT $ 131))
                                . #5#)
                          (COND
                           (#1#
                            (LETT #2# (SPADCALL #2# #3# (QREFELT $ 65)) . #5#))
                           ('T
                            (PROGN
                             (LETT #2# #3# . #5#)
                             (LETT #1# 'T . #5#)))))))
                       (LETT |i| (+ |i| 1) . #5#) (GO G190) G191 (EXIT NIL))
                  (COND (#1# #2#) ('T (|spadConstant| $ 12))))
                 (QREFELT $ 65))
                . #5#)
          (SPADCALL (QREFELT $ 24)
                    (SPADCALL
                     (SPADCALL (SPADCALL |dsc| (QREFELT $ 132))
                               (QREFELT $ 133))
                     (SPADCALL |dsc| (QREFELT $ 134)) (QREFELT $ 64))
                    (QREFELT $ 135))
          (EXIT (SPADCALL (QREFELT $ 125))))))) 

(DEFUN |RADFF;char0StartUp| ($)
  (PROG (|a| |invden| #1=#:G1972 |i| |infb| |ib| |rp|)
    (RETURN
     (SEQ
      (LETT |rp| (SPADCALL (QREFELT $ 9) (QREFELT $ 10) (QREFELT $ 112))
            . #2=(|RADFF;char0StartUp|))
      (COND
       ((NULL (EQL (QVELT |rp| 0) (QREFELT $ 10)))
        (EXIT (|error| "RadicalFunctionField: curve is not irreducible"))))
      (SPADCALL (QREFELT $ 28) (QVELT |rp| 2) (QREFELT $ 136))
      (LETT |ib|
            (|RADFF;iBasis| (SPADCALL (QREFELT $ 28) (QREFELT $ 42))
             (QREFELT $ 10) $)
            . #2#)
      (LETT |infb| (|RADFF;inftyBasis| (QREFELT $ 9) (QREFELT $ 10) $) . #2#)
      (LETT |invden| (|spadConstant| $ 12) . #2#)
      (SEQ (LETT |i| (QREFELT $ 38) . #2#) (LETT #1# (QVSIZE |ib|) . #2#) G190
           (COND ((> |i| #1#) (GO G191)))
           (SEQ
            (QSETAREF1O (QREFELT $ 32) |i|
                        (LETT |a|
                              (SPADCALL (QAREF1O |ib| |i| 1) |invden|
                                        (QREFELT $ 123))
                              . #2#)
                        1)
            (QSETAREF1O (QREFELT $ 31) |i| (SPADCALL |a| (QREFELT $ 107)) 1)
            (LETT |invden| (SPADCALL |invden| (QVELT |rp| 1) (QREFELT $ 70))
                  . #2#)
            (QSETAREF1O (QREFELT $ 33) |i|
                        (LETT |a| (QAREF1O |infb| |i| 1) . #2#) 1)
            (EXIT
             (QSETAREF1O (QREFELT $ 34) |i| (SPADCALL |a| (QREFELT $ 107)) 1)))
           (LETT |i| (+ |i| 1) . #2#) (GO G190) G191 (EXIT NIL))
      (EXIT (SPADCALL (QREFELT $ 125))))))) 

(DEFUN |RADFF;ramified?;UPB;26| (|p| $)
  (PROG (|r|)
    (RETURN
     (SEQ (LETT |r| (SPADCALL |p| (QREFELT $ 138)) |RADFF;ramified?;UPB;26|)
          (EXIT
           (COND ((QEQCAR |r| 0) (SPADCALL (QCDR |r|) (QREFELT $ 139)))
                 ('T
                  (QEQCAR (SPADCALL (|RADFF;radcand| $) |p| (QREFELT $ 140))
                          0)))))))) 

(DEFUN |RADFF;singular?;UPB;27| (|p| $)
  (PROG (|r|)
    (RETURN
     (SEQ (LETT |r| (SPADCALL |p| (QREFELT $ 138)) |RADFF;singular?;UPB;27|)
          (EXIT
           (COND ((QEQCAR |r| 0) (SPADCALL (QCDR |r|) (QREFELT $ 139)))
                 ('T
                  (QEQCAR
                   (SPADCALL (|RADFF;radcand| $)
                             (SPADCALL |p| 2 (QREFELT $ 143)) (QREFELT $ 140))
                   0)))))))) 

(DEFUN |RADFF;branchPoint?;UPB;28| (|p| $)
  (PROG (|q| |r|)
    (RETURN
     (SEQ
      (LETT |r| (SPADCALL |p| (QREFELT $ 138))
            . #1=(|RADFF;branchPoint?;UPB;28|))
      (EXIT
       (COND ((QEQCAR |r| 0) (SPADCALL (QCDR |r|) (QREFELT $ 145)))
             (#2='T
              (SEQ
               (LETT |q| (SPADCALL (|RADFF;radcand| $) |p| (QREFELT $ 140))
                     . #1#)
               (EXIT
                (COND
                 ((QEQCAR |q| 0)
                  (QEQCAR (SPADCALL (QCDR |q|) |p| (QREFELT $ 140)) 1))
                 (#2# 'NIL))))))))))) 

(DEFUN |RADFF;singular?;FB;29| (|point| $)
  (PROG (#1=#:G2002)
    (RETURN
     (COND
      ((SPADCALL (SPADCALL (|RADFF;radcand| $) |point| (QREFELT $ 53))
                 (QREFELT $ 54))
       (SPADCALL
        (SPADCALL
         (PROG2
             (LETT #1#
                   (SPADCALL (|RADFF;radcand| $)
                             (SPADCALL
                              (SPADCALL (|spadConstant| $ 104) 1
                                        (QREFELT $ 105))
                              (SPADCALL |point| (QREFELT $ 147))
                              (QREFELT $ 148))
                             (QREFELT $ 140))
                   |RADFF;singular?;FB;29|)
             (QCDR #1#)
           (|check-union| (QEQCAR #1# 0) (QREFELT $ 7) #1#))
         |point| (QREFELT $ 53))
        (QREFELT $ 54)))
      ('T 'NIL))))) 

(DEFUN |RADFF;branchPoint?;FB;30| (|point| $)
  (PROG (#1=#:G2007)
    (RETURN
     (COND
      ((SPADCALL (SPADCALL (|RADFF;radcand| $) |point| (QREFELT $ 53))
                 (QREFELT $ 54))
       (COND
        ((SPADCALL
          (SPADCALL
           (PROG2
               (LETT #1#
                     (SPADCALL (|RADFF;radcand| $)
                               (SPADCALL
                                (SPADCALL (|spadConstant| $ 104) 1
                                          (QREFELT $ 105))
                                (SPADCALL |point| (QREFELT $ 147))
                                (QREFELT $ 148))
                               (QREFELT $ 140))
                     |RADFF;branchPoint?;FB;30|)
               (QCDR #1#)
             (|check-union| (QEQCAR #1# 0) (QREFELT $ 7) #1#))
           |point| (QREFELT $ 53))
          (QREFELT $ 54))
         'NIL)
        (#2='T 'T)))
      (#2# 'NIL))))) 

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

(DEFUN |RadicalFunctionField;| (|#1| |#2| |#3| |#4| |#5|)
  (PROG (#1=#:G1808 |pv$| #2=#:G2049 #3=#:G2050 #4=#:G2051 $ |dv$| DV$5 DV$4
         DV$3 DV$2 DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #5=(|RadicalFunctionField|))
      (LETT DV$2 (|devaluate| |#2|) . #5#)
      (LETT DV$3 (|devaluate| |#3|) . #5#)
      (LETT DV$4 (|devaluate| |#4|) . #5#)
      (LETT DV$5 (|devaluate| |#5|) . #5#)
      (LETT |dv$| (LIST '|RadicalFunctionField| DV$1 DV$2 DV$3 DV$4 DV$5)
            . #5#)
      (LETT $ (GETREFV 184) . #5#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3
                (LETT |pv$|
                      (|buildPredVector| 0 0
                                         (LIST
                                          (|HasCategory| (|Fraction| |#2|)
                                                         '(|CharacteristicNonZero|))
                                          (|HasCategory| (|Fraction| |#2|)
                                                         '(|CharacteristicZero|))
                                          (|HasCategory| (|Fraction| |#2|)
                                                         '(|FiniteFieldCategory|))
                                          (LETT #4#
                                                (|HasCategory|
                                                 (|Fraction| |#2|) '(|Field|))
                                                . #5#)
                                          (OR #4#
                                              (|HasCategory| (|Fraction| |#2|)
                                                             '(|FiniteFieldCategory|)))
                                          (|HasCategory| (|Fraction| |#2|)
                                                         '(|Finite|))
                                          (|HasCategory| (|Fraction| |#2|)
                                                         '(|LinearlyExplicitRingOver|
                                                           (|Integer|)))
                                          (|HasCategory| (|Fraction| |#2|)
                                                         '(|RetractableTo|
                                                           (|Fraction|
                                                            (|Integer|))))
                                          (|HasCategory| (|Fraction| |#2|)
                                                         '(|RetractableTo|
                                                           (|Integer|)))
                                          (|HasCategory| |#1| '(|Field|))
                                          (|HasCategory| |#1| '(|Finite|))
                                          (OR
                                           (|HasCategory| (|Fraction| |#2|)
                                                          '(|RetractableTo|
                                                            (|Fraction|
                                                             (|Integer|))))
                                           #4#)
                                          (LETT #3#
                                                (AND
                                                 (|HasCategory|
                                                  (|Fraction| |#2|)
                                                  '(|PartialDifferentialRing|
                                                    (|Symbol|)))
                                                 (|HasCategory|
                                                  (|Fraction| |#2|)
                                                  '(|Field|)))
                                                . #5#)
                                          (OR #3#
                                              (AND
                                               (|HasCategory| (|Fraction| |#2|)
                                                              '(|PartialDifferentialRing|
                                                                (|Symbol|)))
                                               (|HasCategory| (|Fraction| |#2|)
                                                              '(|FiniteFieldCategory|))))
                                          (LETT #2#
                                                (AND
                                                 (|HasCategory|
                                                  (|Fraction| |#2|)
                                                  '(|DifferentialRing|))
                                                 (|HasCategory|
                                                  (|Fraction| |#2|)
                                                  '(|Field|)))
                                                . #5#)
                                          (OR #2#
                                              (|HasCategory| (|Fraction| |#2|)
                                                             '(|FiniteFieldCategory|)))))
                      . #5#))
      (|haddProp| |$ConstructorCache| '|RadicalFunctionField|
                  (LIST DV$1 DV$2 DV$3 DV$4 DV$5) (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 |#2|)
      (QSETREFV $ 8 |#3|)
      (QSETREFV $ 9 |#4|)
      (QSETREFV $ 10 |#5|)
      (QSETREFV $ 20 (SPADCALL 'T (QREFELT $ 19)))
      (QSETREFV $ 24 (SPADCALL (|spadConstant| $ 21) (QREFELT $ 23)))
      (QSETREFV $ 28 (SPADCALL (|spadConstant| $ 25) (QREFELT $ 27)))
      (QSETREFV $ 29
                (PROG1 (LETT #1# (- |#5| 1) . #5#)
                  (|check-subtype| (>= #1# 0) '(|NonNegativeInteger|) #1#)))
      (QSETREFV $ 30
                (SPADCALL (SPADCALL (|spadConstant| $ 12) |#5| (QREFELT $ 14))
                          (SPADCALL |#4| (QREFELT $ 15)) (QREFELT $ 16)))
      (QSETREFV $ 31 (MAKEARR1 |#5| (|spadConstant| $ 21)))
      (QSETREFV $ 32 (MAKEARR1 |#5| (|spadConstant| $ 21)))
      (QSETREFV $ 33 (MAKEARR1 |#5| (|spadConstant| $ 21)))
      (QSETREFV $ 34 (MAKEARR1 |#5| (|spadConstant| $ 21)))
      (QSETREFV $ 38 (SPADCALL (QREFELT $ 31) (QREFELT $ 37)))
      $)))) 

(MAKEPROP '|RadicalFunctionField| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL
              (|SimpleAlgebraicExtension| 11 8
                                          (NRTEVAL
                                           (SPADCALL
                                            (SPADCALL (|spadConstant| $ 12)
                                                      (QREFELT $ 10)
                                                      (QREFELT $ 14))
                                            (SPADCALL (QREFELT $ 9)
                                                      (QREFELT $ 15))
                                            (QREFELT $ 16))))
              (|local| |#1|) (|local| |#2|) (|local| |#3|) (|local| |#4|)
              (|local| |#5|) (|Fraction| 7) (0 . |One|) (|NonNegativeInteger|)
              (4 . |monomial|) (10 . |coerce|) (15 . -) (|Boolean|)
              (|Reference| 17) (21 . |ref|) '|brandNew?| (26 . |Zero|)
              (|Reference| 11) (30 . |ref|) '|discPoly| (35 . |Zero|)
              (|Reference| 7) (39 . |ref|) '|newrad| '|n1| '|modulus| '|ibasis|
              '|invibasis| '|infbasis| '|invinfbasis| (|Integer|) (|Vector| 11)
              (44 . |minIndex|) '|mini| (49 . |deref|) (54 . |elt|)
              |RADFF;discriminant;F;1| (59 . |elt|) (|Vector| $)
              |RADFF;integralBasis;V;3| |RADFF;integralBasisAtInfinity;V;4|
              (|Matrix| 11) (64 . |diagonalMatrix|) |RADFF;integralMatrix;M;6|
              |RADFF;integralMatrixAtInfinity;M;7|
              |RADFF;inverseIntegralMatrix;M;8|
              |RADFF;inverseIntegralMatrixAtInfinity;M;9|
              |RADFF;definingPolynomial;UPUP;10| (69 . |elt|) (75 . |zero?|)
              |RADFF;ramified?;FB;11| (80 . |degree|) (|Union| $ '"failed")
              (85 . |exquo|) |RADFF;branchPointAtInfinity?;B;12|
              (|Union| 7 '"failed") |RADFF;elliptic;U;13|
              |RADFF;hyperelliptic;U;14| (91 . |reduce|) (96 . /) (102 . *)
              (108 . |represents|) (|Vector| 7)
              |RADFF;integralRepresents;VUP$;16| (113 . |coordinates|)
              (118 . /) (|Record| (|:| |num| 67) (|:| |den| 7))
              (|InnerCommonDenominator| 7 11 67 36) (124 . |splitDenominator|)
              |RADFF;integralCoordinates;$R;17| (|Mapping| 7 7)
              (129 . |differentiate|) (135 . *) (141 . *) (147 . +)
              (|Matrix| 7) (153 . |diagonalMatrix|)
              (|Record| (|:| |num| 80) (|:| |den| 7))
              |RADFF;integralDerivationMatrix;MR;18| (|Factored| $)
              (158 . |squareFree|) (163 . ^) (169 . *) (175 . |One|)
              (179 . |Zero|) (183 . |Zero|) (187 . |Zero|) (|Factored| 7)
              (191 . |Zero|) (195 . |unit|)
              (|Record| (|:| |factor| 7) (|:| |exponent| 35)) (|List| 95)
              (200 . |factors|) (|PrimitiveArray| 7) (205 . |maxIndex|)
              (210 . =) (|Union| 95 '"failed") (|Mapping| 17 95) (216 . |find|)
              (222 . |One|) (226 . |monomial|) (232 . |coerce|) (237 . |inv|)
              (|Fraction| $) (242 . |elt|)
              (|Record| (|:| |exponent| 13) (|:| |coef| 11) (|:| |radicand| 7))
              (|ChangeOfVariable| 6 7 8) (248 . |rootPoly|) (254 . |degree|)
              (259 . |retract|) (|SparseUnivariatePolynomial| 7)
              (|Mapping| 7 11)
              (|UnivariatePolynomialCategoryFunctions2| 11 8 7 115)
              (264 . |map|) (270 . |basis|) (274 . |diagonal?|)
              (279 . |maxRowIndex|) (284 . |maxColIndex|) (289 . *) (|Void|)
              (295 . |void|) (|Record| (|:| |coef| 11) (|:| |poly| 8))
              (299 . |mkIntegral|) (304 . |setelt|) (310 . |characteristic|)
              (314 . ^) (320 . ^) (326 . |numer|) (331 . |primitivePart|)
              (336 . |denom|) (341 . |setelt|) (347 . |setelt|)
              (|Union| 6 '#1="failed") (353 . |retractIfCan|)
              |RADFF;singular?;FB;29| (358 . |exquo|) |RADFF;ramified?;UPB;26|
              (|PositiveInteger|) (364 . ^) |RADFF;singular?;UPB;27|
              |RADFF;branchPoint?;FB;30| |RADFF;branchPoint?;UPB;28|
              (370 . |coerce|) (375 . -) (|List| 150) (|Symbol|) (|List| 13)
              (|Fraction| 35)
              (|Record| (|:| |unit| $) (|:| |canonical| $) (|:| |associate| $))
              (|List| $) (|SparseUnivariatePolynomial| $)
              (|Record| (|:| |coef| 154) (|:| |generator| $))
              (|Union| 154 '"failed")
              (|Record| (|:| |quotient| $) (|:| |remainder| $))
              (|Record| (|:| |coef1| $) (|:| |coef2| $))
              (|Union| 159 '"failed")
              (|Record| (|:| |coef1| $) (|:| |coef2| $) (|:| |generator| $))
              (|Mapping| 11 11) (|Fraction| 8) (|OnePointCompletion| 142)
              (|Union| 13 '"failed")
              (|Record| (|:| |factor| 35) (|:| |exponent| 35)) (|List| 166)
              (|Union| 43 '"failed") (|Matrix| $) (|Table| 142 13)
              (|Union| '"prime" '"polynomial" '"normal" '"cyclic")
              (|Record| (|:| |mat| 173) (|:| |vec| (|Vector| 35)))
              (|Matrix| 35) (|Union| 152 '#1#) (|Union| 35 '#1#)
              (|List| (|Polynomial| 6)) (|List| (|List| 6))
              (|Record| (|:| |num| $) (|:| |den| 7) (|:| |derivden| 7)
                        (|:| |gd| 7))
              (|Record| (|:| |mat| 46) (|:| |vec| 36)) (|Union| 11 '#1#)
              (|SingleInteger|) (|String|) (|OutputForm|))
           '#(|singular?| 381 |represents| 391 |reduce| 396 |ramified?| 401
              |inverseIntegralMatrixAtInfinity| 411 |inverseIntegralMatrix| 415
              |integralRepresents| 419 |integralMatrixAtInfinity| 425
              |integralMatrix| 429 |integralDerivationMatrix| 433
              |integralCoordinates| 438 |integralBasisAtInfinity| 443
              |integralBasis| 447 |hyperelliptic| 451 |elliptic| 455
              |discriminant| 459 |definingPolynomial| 463 |coordinates| 467
              |branchPointAtInfinity?| 472 |branchPoint?| 476 |basis| 486
              |Zero| 490)
           'NIL
           (CONS
            (|makeByteWordVec2| 16
                                '(0 0 3 3 5 5 5 4 0 5 0 5 4 0 0 4 4 4 0 0 0 1 2
                                  4 4 4 16 14 7 0 0 0 4 0 0 0 0 0 4 4 0 0 0 0 0
                                  0 0 0 6 3 0 0 0 0 0 0 0 0 4 4 4 8 9))
            (CONS
             '#(|FunctionFieldCategory&| |MonogenicAlgebra&|
                |FiniteFieldCategory&| |FieldOfPrimeCharacteristic&| |Field&|
                |EuclideanDomain&| NIL |UniqueFactorizationDomain&|
                |FramedAlgebra&| |GcdDomain&| |FiniteRankAlgebra&|
                |IntegralDomain&| |DivisionRing&| |Algebra&|
                |FullyLinearlyExplicitRingOver&| |Algebra&| |Algebra&|
                |DifferentialExtension&| NIL NIL |Module&| NIL NIL |Module&|
                NIL |Module&| |DifferentialRing&| |PartialDifferentialRing&|
                NIL NIL |Ring&| NIL NIL NIL NIL NIL NIL NIL NIL NIL
                |AbelianGroup&| NIL NIL |AbelianMonoid&| |Monoid&| NIL
                |SemiGroup&| |AbelianSemiGroup&| |Finite&| NIL
                |FullyRetractableTo&| |SetCategory&| |RetractableTo&| NIL NIL
                NIL |BasicType&| NIL NIL NIL NIL |RetractableTo&|
                |RetractableTo&|)
             (CONS
              '#((|FunctionFieldCategory| 6 7 8)
                 (|MonogenicAlgebra| (|Fraction| 7) 8) (|FiniteFieldCategory|)
                 (|FieldOfPrimeCharacteristic|) (|Field|) (|EuclideanDomain|)
                 (|PrincipalIdealDomain|) (|UniqueFactorizationDomain|)
                 (|FramedAlgebra| (|Fraction| 7) 8) (|GcdDomain|)
                 (|FiniteRankAlgebra| (|Fraction| 7) 8) (|IntegralDomain|)
                 (|DivisionRing|) (|Algebra| (|Fraction| 7))
                 (|FullyLinearlyExplicitRingOver| (|Fraction| 7))
                 (|Algebra| $$) (|Algebra| 152)
                 (|DifferentialExtension| (|Fraction| 7))
                 (|LinearlyExplicitRingOver| (|Fraction| 7))
                 (|CommutativeRing|) (|Module| (|Fraction| 7))
                 (|CharacteristicNonZero|) (|CharacteristicZero|) (|Module| $$)
                 (|EntireRing|) (|Module| 152) (|DifferentialRing|)
                 (|PartialDifferentialRing| 150)
                 (|LinearlyExplicitRingOver| 35) (|BiModule| $$ $$) (|Ring|)
                 (|BiModule| (|Fraction| 7) (|Fraction| 7))
                 (|BiModule| 152 152) (|RightModule| $$) (|Rng|)
                 (|RightModule| (|Fraction| 7)) (|LeftModule| (|Fraction| 7))
                 (|LeftModule| $$) (|LeftModule| 152) (|RightModule| 152)
                 (|AbelianGroup|) (|CancellationAbelianMonoid|) (|SemiRing|)
                 (|AbelianMonoid|) (|Monoid|) (|SemiRng|) (|SemiGroup|)
                 (|AbelianSemiGroup|) (|Finite|) (|StepThrough|)
                 (|FullyRetractableTo| (|Fraction| 7)) (|SetCategory|)
                 (|RetractableTo| (|Fraction| 7)) (|ConvertibleTo| 8)
                 (|CommutativeStar|) (|unitsKnown|) (|BasicType|)
                 (|CoercibleTo| 183) (|noZeroDivisors|) (|canonicalUnitNormal|)
                 (|canonicalsClosed|) (|RetractableTo| 152)
                 (|RetractableTo| 35))
              (|makeByteWordVec2| 148
                                  '(0 11 0 12 2 8 0 11 13 14 1 8 0 11 15 2 8 0
                                    0 0 16 1 18 0 17 19 0 11 0 21 1 22 0 11 23
                                    0 7 0 25 1 26 0 7 27 1 36 35 0 37 1 18 17 0
                                    39 1 22 11 0 40 1 26 7 0 42 1 46 0 36 47 2
                                    7 6 0 6 53 1 6 17 0 54 1 7 13 0 56 2 13 57
                                    0 0 58 1 0 0 8 63 2 11 0 7 7 64 2 11 0 0 0
                                    65 1 0 0 36 66 1 0 36 0 69 2 11 0 0 0 70 1
                                    72 71 36 73 2 11 0 0 75 76 2 11 0 13 0 77 2
                                    11 0 35 0 78 2 11 0 0 0 79 1 80 0 67 81 1 7
                                    84 0 85 2 7 0 0 13 86 2 7 0 0 0 87 0 7 0 88
                                    0 0 0 89 0 6 0 90 0 8 0 91 0 92 0 93 1 92 7
                                    0 94 1 92 96 0 97 1 98 35 0 99 2 35 17 0 0
                                    100 2 96 101 102 0 103 0 6 0 104 2 7 0 6 13
                                    105 1 11 0 7 106 1 11 0 0 107 2 7 108 108
                                    108 109 2 111 110 11 13 112 1 8 13 0 113 1
                                    11 7 0 114 2 117 115 116 8 118 0 0 43 119 1
                                    80 17 0 120 1 80 35 0 121 1 80 35 0 122 2
                                    11 0 7 0 123 0 124 0 125 1 111 126 8 127 2
                                    18 17 0 17 128 0 6 13 129 2 11 0 0 13 130 2
                                    11 0 0 35 131 1 11 7 0 132 1 7 0 0 133 1 11
                                    7 0 134 2 22 11 0 11 135 2 26 7 0 7 136 1 7
                                    137 0 138 2 7 57 0 0 140 2 7 0 0 142 143 1
                                    7 0 6 147 2 7 0 0 0 148 1 0 17 6 139 1 0 17
                                    7 144 1 0 0 36 66 1 0 0 8 63 1 0 17 6 55 1
                                    0 17 7 141 0 0 46 51 0 0 46 50 2 0 0 67 7
                                    68 0 0 46 49 0 0 46 48 1 0 82 75 83 1 0 71
                                    0 74 0 0 43 45 0 0 43 44 0 0 60 62 0 0 60
                                    61 0 0 11 41 0 0 8 52 1 0 36 0 69 0 0 17 59
                                    1 0 17 6 145 1 0 17 7 146 0 0 43 119 0 0 0
                                    89)))))
           '|lookupIncomplete|)) 
