
(/VERSIONCHECK 2) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;1|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |sigma| |gen| |check| (QREFELT $ 17))) 

(DEFUN |MODHPS;LF_to_PA;LILLIU;2| (|l| |sigma| |vars| |points| |p| $)
  (SPADCALL |l| |sigma| |p| (QREFELT $ 24))) 

(DEFUN |MODHPS;VSUPS_to_VPA;VLLIV;3| (|v| |vars| |points| |p| $)
  (SPADCALL |v| |p| (QREFELT $ 29))) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;4|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  (PROG ()
    (RETURN
     (COND ((NULL (SPADCALL |kind| '|diffHP| (QREFELT $ 33))) |check|)
           ('T
            (CONS #'|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;4!0|
                  (VECTOR |gen| |sigma| |l| $))))))) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;4!0| (|x| $$)
  (PROG ($ |l| |sigma| |gen|)
    (LETT $ (QREFELT $$ 3) . #1=(|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;4|))
    (LETT |l| (QREFELT $$ 2) . #1#)
    (LETT |sigma| (QREFELT $$ 1) . #1#)
    (LETT |gen| (QREFELT $$ 0) . #1#)
    (RETURN
     (PROGN
      (|MODHPS;check_sol_mod_diff| (SPADCALL |x| (QREFELT $ 35)) |l| |sigma|
       |gen| '|dummy| NIL $))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;5|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |qvar| |sigma| |gen| |check| (QREFELT $ 40))) 

(DEFUN |MODHPS;LF_to_PA;LILLIU;6| (|l| |sigma| |vars| |points| |p| $)
  (SPADCALL |l| |sigma| |vars| |points| |p| (QREFELT $ 41))) 

(DEFUN |MODHPS;VSUPS_to_VPA;VLLIV;7| (|v| |vars| |points| |p| $)
  (SPADCALL |v| |vars| |points| |p| (QREFELT $ 43))) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;8|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  (PROG (|vars|)
    (RETURN
     (SEQ
      (COND
       ((NULL (SPADCALL |kind| '|diffHP| (QREFELT $ 33)))
        (COND
         ((NULL (SPADCALL |kind| '|qdiffHP| (QREFELT $ 33)))
          (COND
           ((NULL (SPADCALL |kind| '|qmixed| (QREFELT $ 33)))
            (EXIT |check|)))))))
      (LETT |vars| (SPADCALL |l| |kind| |qvar| (QREFELT $ 44))
            |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;8|)
      (EXIT
       (CONS #'|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;8!0|
             (VECTOR |vars| |qvar| |gen| |sigma| |l| $))))))) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;8!0| (|x| $$)
  (PROG ($ |l| |sigma| |gen| |qvar| |vars|)
    (LETT $ (QREFELT $$ 5) . #1=(|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;8|))
    (LETT |l| (QREFELT $$ 4) . #1#)
    (LETT |sigma| (QREFELT $$ 3) . #1#)
    (LETT |gen| (QREFELT $$ 2) . #1#)
    (LETT |qvar| (QREFELT $$ 1) . #1#)
    (LETT |vars| (QREFELT $$ 0) . #1#)
    (RETURN
     (PROGN
      (|MODHPS;check_sol_mod_diff| (SPADCALL |x| (QREFELT $ 35)) |l| |sigma|
       |gen| |qvar| |vars| $))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;9|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |sigma| |gen| |check| (QREFELT $ 48))) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;10| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;10|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;11|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |qvar| |sigma| |gen| |check| (QREFELT $ 52))) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;12| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;12|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;13|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G1948 #2=#:G1946 #3=#:G1945 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;13|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;14|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;15|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;16|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;17| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;17|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;18|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G1979 #2=#:G1977 #3=#:G1976 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;18|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;19|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;20|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;21|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;22| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;22|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;23|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |qvar| |sigma| |gen| |check| (QREFELT $ 52))) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;24| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;24|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;25|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2028 #2=#:G2026 #3=#:G2025 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;25|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;26|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;27|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;28|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;29| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;29|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;30|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2059 #2=#:G2057 #3=#:G2056 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;30|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;31|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;32|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;33|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;34| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;34|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;35|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |sigma| |gen| |check| (QREFELT $ 48))) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;36| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;36|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;37|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |qvar| |sigma| |gen| |check| (QREFELT $ 52))) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;38| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;38|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;39|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2126 #2=#:G2124 #3=#:G2123 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;39|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;40|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;41|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;42|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;43| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;43|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;44|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2157 #2=#:G2155 #3=#:G2154 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;44|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;45|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;46|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;47|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;48| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;48|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;49|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |qvar| |sigma| |gen| |check| (QREFELT $ 52))) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;50| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;50|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;51|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2206 #2=#:G2204 #3=#:G2203 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;51|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;52|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;53|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;54|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;55| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;55|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;56|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2237 #2=#:G2235 #3=#:G2234 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;56|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;57|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;58|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;59|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;60| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;60|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;61|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |qvar| |sigma| |gen| |check| (QREFELT $ 40))) 

(DEFUN |MODHPS;LF_to_PA;LILLIU;62| (|l| |sigma| |vars| |points| |p| $)
  (SPADCALL |l| |sigma| |vars| |points| (QREFELT $ 54) (QREFELT $ 41))) 

(DEFUN |MODHPS;VSUPS_to_VPA;VLLIV;63| (|v| |vars| |points| |p| $)
  (SPADCALL |v| |vars| |points| (QREFELT $ 54) (QREFELT $ 43))) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;64|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  (PROG (|vars|)
    (RETURN
     (SEQ
      (COND
       ((NULL (SPADCALL |kind| '|diffHP| (QREFELT $ 33)))
        (COND
         ((NULL (SPADCALL |kind| '|qdiffHP| (QREFELT $ 33)))
          (COND
           ((NULL (SPADCALL |kind| '|qmixed| (QREFELT $ 33)))
            (EXIT |check|)))))))
      (LETT |vars| (SPADCALL |l| |kind| |qvar| (QREFELT $ 44))
            |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;64|)
      (EXIT
       (CONS #'|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;64!0|
             (VECTOR |vars| |qvar| |gen| |sigma| |l| $))))))) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;64!0| (|x| $$)
  (PROG ($ |l| |sigma| |gen| |qvar| |vars|)
    (LETT $ (QREFELT $$ 5) . #1=(|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;64|))
    (LETT |l| (QREFELT $$ 4) . #1#)
    (LETT |sigma| (QREFELT $$ 3) . #1#)
    (LETT |gen| (QREFELT $$ 2) . #1#)
    (LETT |qvar| (QREFELT $$ 1) . #1#)
    (LETT |vars| (QREFELT $$ 0) . #1#)
    (RETURN
     (PROGN
      (|MODHPS;check_sol_mod_diff| (SPADCALL |x| (QREFELT $ 35)) |l| |sigma|
       |gen| |qvar| |vars| $))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;65|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |sigma| |gen| |check| (QREFELT $ 48))) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;66| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;66|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;67|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |qvar| |sigma| |gen| |check| (QREFELT $ 52))) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;68| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;68|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;69|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2335 #2=#:G2333 #3=#:G2332 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;69|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;70|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;71|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;72|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;73| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;73|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;74|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2366 #2=#:G2364 #3=#:G2363 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;74|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;75|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;76|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;77|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;78| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;78|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;79|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |qvar| |sigma| |gen| |check| (QREFELT $ 52))) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;80| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;80|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;81|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2415 #2=#:G2413 #3=#:G2412 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;81|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;82|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;83|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;84|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;85| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;85|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;86|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2446 #2=#:G2444 #3=#:G2443 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;86|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;87|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;88|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;89|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;90| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;90|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;91|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |sigma| |gen| |check| (QREFELT $ 48))) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;92| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;92|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;93|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |qvar| |sigma| |gen| |check| (QREFELT $ 52))) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;94| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;94|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;95|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2513 #2=#:G2511 #3=#:G2510 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;95|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;96|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;97|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;98|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;99| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;99|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;100|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2544 #2=#:G2542 #3=#:G2541 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;100|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;101|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;102|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;103|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;104| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;104|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;105|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (SPADCALL |l| |degs| |kind| |qvar| |sigma| |gen| |check| (QREFELT $ 52))) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;106| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;106|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;107|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2593 #2=#:G2591 #3=#:G2590 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;107|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;108|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;109|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;110|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;111| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;111|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;112|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (PROG (#1=#:G2624 #2=#:G2622 #3=#:G2621 |pp|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ
        (LETT |pp|
              (SPADCALL |l| |degs| |kind| (QREFELT $ 54) |sigma| |gen|
                        (QREFELT $ 57))
              . #4=(|MODHPS;HP_solve;LL2SNniMMU;112|))
        (EXIT
         (COND
          ((QEQCAR |pp| 0)
           (PROGN
            (LETT #1#
                  (CONS 0
                        (PROG2
                            (LETT #3# |pp| . #4#)
                            (QCDR #3#)
                          (|check-union| (QEQCAR #3# 0)
                                         (|Matrix|
                                          (|SparseUnivariatePolynomial|
                                           (|Integer|)))
                                         #3#)))
                  . #4#)
            (GO #1#)))
          ('T
           (PROGN
            (LETT #1#
                  (CONS 1
                        (PROG2
                            (LETT #2# |pp| . #4#)
                            (QCDR #2#)
                          (|check-union| (QEQCAR #2# 1) (|Boolean|) #2#)))
                  . #4#)
            (GO #1#)))))))
      #1# (EXIT #1#))))) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;113|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;114|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(DEFUN |MODHPS;HP_solve;LL2SNniMMU;115|
       (|l| |degs| |kind| |qvar| |sigma| |gen| |check| $)
  (CONS 1 'T)) 

(PUT '|MODHPS;gen_Monte_Carlo_check;ML2SNniMM;116| '|SPADreplace|
     '(XLAM (|check| |l| |kind| |qvar| |sigma| |gen|) |check|)) 

(DEFUN |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;116|
       (|check| |l| |kind| |qvar| |sigma| |gen| $)
  |check|) 

(DEFUN |MODHPS;check_sol_mod_diff|
       (|resv| |list| |sigma| |gen| |qvar| |vars| $)
  (PROG (#1=#:G2682 |min_ord| #2=#:G2675 |delta| |sigma0| |pa| #3=#:G2685 |j|
         |c0| #4=#:G2668 |ord| #5=#:G2684 |i| |nres| |gv0| |gv0p| |lpt| |qval|
         #6=#:G2683 |var| |ii| |n0|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |n0| (LENGTH |list|) . #7=(|MODHPS;check_sol_mod_diff|))
            (LETT |sigma0| (+ |n0| 2) . #7#) (LETT |min_ord| |sigma0| . #7#)
            (LETT |delta| (- |sigma0| |sigma|) . #7#)
            (EXIT
             (COND
              ((< |delta| |sigma|)
               (SEQ
                (SEQ (LETT |ii| 1 . #7#) G190
                     (COND ((QSGREATERP |ii| 20) #8=(GO G191)))
                     (SEQ
                      (SETELT $ 54
                              (SPADCALL (+ (RANDOM 2000000) 2000000)
                                        (QREFELT $ 62)))
                      (LETT |lpt| NIL . #7#) (LETT |qval| 0 . #7#)
                      (SEQ (LETT |var| NIL . #7#) (LETT #6# |vars| . #7#) G190
                           (COND
                            ((OR (ATOM #6#)
                                 (PROGN (LETT |var| (CAR #6#) . #7#) NIL))
                             #8#))
                           (SEQ
                            (LETT |lpt| (CONS (RANDOM (QREFELT $ 54)) |lpt|)
                                  . #7#)
                            (EXIT
                             (COND
                              ((EQUAL |var| |qvar|)
                               (LETT |qval| (|SPADfirst| |lpt|) . #7#)))))
                           (LETT #6# (CDR #6#) . #7#) #9=(GO G190) G191
                           (EXIT NIL))
                      (LETT |lpt| (NREVERSE |lpt|) . #7#)
                      (LETT |gv0p|
                            (SPADCALL |list| (+ |n0| |delta|) |vars| |lpt|
                                      (QREFELT $ 54) (QREFELT $ 26))
                            . #7#)
                      (EXIT
                       (COND ((QEQCAR |gv0p| 1) "iterate")
                             ('T
                              (SEQ (LETT |gv0| (QCDR |gv0p|) . #7#)
                                   (LETT |nres|
                                         (SPADCALL |resv| |vars| |lpt|
                                                   (QREFELT $ 54)
                                                   (QREFELT $ 31))
                                         . #7#)
                                   (LETT |pa|
                                         (SPADCALL |nres| |gv0| |gen| |sigma0|
                                                   |qval| (QREFELT $ 54)
                                                   (QREFELT $ 64))
                                         . #7#)
                                   (LETT |ord| |sigma0| . #7#)
                                   (SEQ
                                    (EXIT
                                     (SEQ (LETT |i| 0 . #7#)
                                          (LETT #5# (- |sigma0| 1) . #7#) G190
                                          (COND ((QSGREATERP |i| #5#) #8#))
                                          (SEQ
                                           (EXIT
                                            (COND
                                             ((NULL (EQL (ELT32 |pa| |i|) 0))
                                              (SEQ (LETT |ord| |i| . #7#)
                                                   (EXIT
                                                    (PROGN
                                                     (LETT #4# |$NoValue|
                                                           . #7#)
                                                     (GO #4#))))))))
                                          (LETT |i| (QSADD1 |i|) . #7#) #9#
                                          G191 (EXIT NIL)))
                                    #4# (EXIT #4#))
                                   (EXIT
                                    (COND
                                     ((< |ord| |sigma|)
                                      (PROGN
                                       (LETT #1# (CONS 2 "no_solution") . #7#)
                                       (GO #1#)))
                                     ((< |ord| |sigma0|)
                                      (SEQ (LETT |c0| (ELT32 |pa| |ord|) . #7#)
                                           (SEQ
                                            (EXIT
                                             (SEQ (LETT |j| 0 . #7#)
                                                  (LETT #3# (- |delta| 1)
                                                        . #7#)
                                                  G190
                                                  (COND
                                                   ((QSGREATERP |j| #3#) #8#))
                                                  (SEQ
                                                   (SETELT32 |gv0| (+ |n0| |j|)
                                                             1)
                                                   (LETT |pa|
                                                         (SPADCALL |nres| |gv0|
                                                                   |gen|
                                                                   |sigma0|
                                                                   |qval|
                                                                   (QREFELT $
                                                                            54)
                                                                   (QREFELT $
                                                                            64))
                                                         . #7#)
                                                   (COND
                                                    ((NULL
                                                      (EQL (ELT32 |pa| |ord|)
                                                           |c0|))
                                                     (EXIT
                                                      (SEQ
                                                       (LETT |sigma0| |ord|
                                                             . #7#)
                                                       (LETT |delta|
                                                             (- |sigma0|
                                                                |sigma|)
                                                             . #7#)
                                                       (EXIT
                                                        (PROGN
                                                         (LETT #2# |$NoValue|
                                                               . #7#)
                                                         (GO #2#)))))))
                                                   (EXIT
                                                    (SETELT32 |gv0|
                                                              (+ |n0| |j|) 0)))
                                                  (LETT |j| (QSADD1 |j|) . #7#)
                                                  #9# G191 (EXIT NIL)))
                                            #2# (EXIT #2#))
                                           (EXIT
                                            (COND
                                             ((< |ord| |min_ord|)
                                              (LETT |min_ord| |ord|
                                                    . #7#)))))))))))))
                     (LETT |ii| (QSADD1 |ii|) . #7#) #9# G191 (EXIT NIL))
                (EXIT
                 (COND
                  ((< |min_ord| |sigma0|)
                   (PROGN (LETT #1# (CONS 1 "reject") . #7#) (GO #1#)))
                  (#10='T
                   (PROGN (LETT #1# (CONS 0 "good") . #7#) (GO #1#)))))))
              (#10# (|error| "delta too big"))))))
      #1# (EXIT #1#))))) 

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

(DEFUN |ModularHermitePadeSolver;| (|#1| |#2|)
  (PROG (#1=#:G2612 #2=#:G2581 #3=#:G2532 #4=#:G2501 #5=#:G2434 #6=#:G2403
         #7=#:G2354 #8=#:G2323 #9=#:G2225 #10=#:G2194 #11=#:G2145 #12=#:G2114
         #13=#:G2047 #14=#:G2016 #15=#:G1967 #16=#:G1936 |pv$| $ |dv$| DV$2
         DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #17=(|ModularHermitePadeSolver|))
      (LETT DV$2 (|devaluate| |#2|) . #17#)
      (LETT |dv$| (LIST '|ModularHermitePadeSolver| DV$1 DV$2) . #17#)
      (LETT $ (GETREFV 67) . #17#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #17#))
      (|haddProp| |$ConstructorCache| '|ModularHermitePadeSolver|
                  (LIST DV$1 DV$2) (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 |#2|)
      (COND
       ((|domainEqual| |#1| (|Fraction| (|Integer|)))
        (COND
         ((|domainEqual| |#2| (|Integer|))
          (PROGN
           (QSETREFV $ 21
                     (CONS (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;1|)
                           $))
           (QSETREFV $ 26
                     (CONS (|dispatchFunction| |MODHPS;LF_to_PA;LILLIU;2|) $))
           (QSETREFV $ 31
                     (CONS (|dispatchFunction| |MODHPS;VSUPS_to_VPA;VLLIV;3|)
                           $))
           (QSETREFV $ 36
                     (CONS
                      (|dispatchFunction|
                       |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;4|)
                      $))))
         ((|domainEqual| |#1| (|Fraction| (|Polynomial| (|Integer|))))
          (COND
           ((|domainEqual| |#2| (|Polynomial| (|Integer|)))
            (PROGN
             (QSETREFV $ 21
                       (CONS
                        (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;5|) $))
             (QSETREFV $ 26
                       (CONS (|dispatchFunction| |MODHPS;LF_to_PA;LILLIU;6|)
                             $))
             (QSETREFV $ 31
                       (CONS (|dispatchFunction| |MODHPS;VSUPS_to_VPA;VLLIV;7|)
                             $))
             (QSETREFV $ 36
                       (CONS
                        (|dispatchFunction|
                         |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;8|)
                        $))))
           ((|domainEqual| |#1| (|AlgebraicNumber|))
            (COND
             ((|domainEqual| |#2| (|AlgebraicNumber|))
              (PROGN
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;9|)
                          $))
               (QSETREFV $ 36
                         (CONS
                          (|dispatchFunction|
                           |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;10|)
                          $))))
             ((|domainEqual| |#1|
                             (|Fraction| (|Polynomial| (|AlgebraicNumber|))))
              (COND
               ((|domainEqual| |#2| (|Polynomial| (|AlgebraicNumber|)))
                (PROGN
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;11|)
                            $))
                 (QSETREFV $ 36
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;12|)
                            $))))
               ('T
                (PROGN
                 (QSETREFV $ 54 (SPADCALL (QREFELT $ 53)))
                 (COND
                  ((< 0 (QREFELT $ 54))
                   (COND
                    ((< (QREFELT $ 54) 32000000)
                     (COND
                      ((|domainEqual| |#1|
                                      (|PrimeField|
                                       (PROG1 (LETT #16# (QREFELT $ 54) . #17#)
                                         (|check-subtype| (> #16# 0)
                                                          '(|PositiveInteger|)
                                                          #16#))))
                       (QSETREFV $ 21
                                 (CONS
                                  (|dispatchFunction|
                                   |MODHPS;HP_solve;LL2SNniMMU;13|)
                                  $)))
                      ('T
                       (QSETREFV $ 21
                                 (CONS
                                  (|dispatchFunction|
                                   |MODHPS;HP_solve;LL2SNniMMU;14|)
                                  $)))))
                    ('T
                     (QSETREFV $ 21
                               (CONS
                                (|dispatchFunction|
                                 |MODHPS;HP_solve;LL2SNniMMU;15|)
                                $)))))
                  ('T
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;16|)
                              $))))
                 (QSETREFV $ 36
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;17|)
                            $))))))
             ('T
              (PROGN
               (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
               (COND
                ((< 0 (QREFELT $ 54))
                 (COND
                  ((< (QREFELT $ 54) 32000000)
                   (COND
                    ((|domainEqual| |#1|
                                    (|PrimeField|
                                     (PROG1 (LETT #15# (QREFELT $ 54) . #17#)
                                       (|check-subtype| (> #15# 0)
                                                        '(|PositiveInteger|)
                                                        #15#))))
                     (QSETREFV $ 21
                               (CONS
                                (|dispatchFunction|
                                 |MODHPS;HP_solve;LL2SNniMMU;18|)
                                $)))
                    ('T
                     (QSETREFV $ 21
                               (CONS
                                (|dispatchFunction|
                                 |MODHPS;HP_solve;LL2SNniMMU;19|)
                                $)))))
                  ('T
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;20|)
                              $)))))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;21|)
                            $))))
               (QSETREFV $ 36
                         (CONS
                          (|dispatchFunction|
                           |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;22|)
                          $))))))
           ((|domainEqual| |#1|
                           (|Fraction| (|Polynomial| (|AlgebraicNumber|))))
            (COND
             ((|domainEqual| |#2| (|Polynomial| (|AlgebraicNumber|)))
              (PROGN
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;23|)
                          $))
               (QSETREFV $ 36
                         (CONS
                          (|dispatchFunction|
                           |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;24|)
                          $))))
             ('T
              (PROGN
               (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
               (COND
                ((< 0 (QREFELT $ 54))
                 (COND
                  ((< (QREFELT $ 54) 32000000)
                   (COND
                    ((|domainEqual| |#1|
                                    (|PrimeField|
                                     (PROG1 (LETT #14# (QREFELT $ 54) . #17#)
                                       (|check-subtype| (> #14# 0)
                                                        '(|PositiveInteger|)
                                                        #14#))))
                     (QSETREFV $ 21
                               (CONS
                                (|dispatchFunction|
                                 |MODHPS;HP_solve;LL2SNniMMU;25|)
                                $)))
                    ('T
                     (QSETREFV $ 21
                               (CONS
                                (|dispatchFunction|
                                 |MODHPS;HP_solve;LL2SNniMMU;26|)
                                $)))))
                  ('T
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;27|)
                              $)))))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;28|)
                            $))))
               (QSETREFV $ 36
                         (CONS
                          (|dispatchFunction|
                           |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;29|)
                          $))))))
           ('T
            (PROGN
             (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
             (COND
              ((< 0 (QREFELT $ 54))
               (COND
                ((< (QREFELT $ 54) 32000000)
                 (COND
                  ((|domainEqual| |#1|
                                  (|PrimeField|
                                   (PROG1 (LETT #13# (QREFELT $ 54) . #17#)
                                     (|check-subtype| (> #13# 0)
                                                      '(|PositiveInteger|)
                                                      #13#))))
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;30|)
                              $)))
                  ('T
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;31|)
                              $)))))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;32|)
                            $)))))
              ('T
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;33|)
                          $))))
             (QSETREFV $ 36
                       (CONS
                        (|dispatchFunction|
                         |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;34|)
                        $))))))
         ((|domainEqual| |#1| (|AlgebraicNumber|))
          (COND
           ((|domainEqual| |#2| (|AlgebraicNumber|))
            (PROGN
             (QSETREFV $ 21
                       (CONS
                        (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;35|)
                        $))
             (QSETREFV $ 36
                       (CONS
                        (|dispatchFunction|
                         |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;36|)
                        $))))
           ((|domainEqual| |#1|
                           (|Fraction| (|Polynomial| (|AlgebraicNumber|))))
            (COND
             ((|domainEqual| |#2| (|Polynomial| (|AlgebraicNumber|)))
              (PROGN
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;37|)
                          $))
               (QSETREFV $ 36
                         (CONS
                          (|dispatchFunction|
                           |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;38|)
                          $))))
             ('T
              (PROGN
               (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
               (COND
                ((< 0 (QREFELT $ 54))
                 (COND
                  ((< (QREFELT $ 54) 32000000)
                   (COND
                    ((|domainEqual| |#1|
                                    (|PrimeField|
                                     (PROG1 (LETT #12# (QREFELT $ 54) . #17#)
                                       (|check-subtype| (> #12# 0)
                                                        '(|PositiveInteger|)
                                                        #12#))))
                     (QSETREFV $ 21
                               (CONS
                                (|dispatchFunction|
                                 |MODHPS;HP_solve;LL2SNniMMU;39|)
                                $)))
                    ('T
                     (QSETREFV $ 21
                               (CONS
                                (|dispatchFunction|
                                 |MODHPS;HP_solve;LL2SNniMMU;40|)
                                $)))))
                  ('T
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;41|)
                              $)))))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;42|)
                            $))))
               (QSETREFV $ 36
                         (CONS
                          (|dispatchFunction|
                           |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;43|)
                          $))))))
           ('T
            (PROGN
             (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
             (COND
              ((< 0 (QREFELT $ 54))
               (COND
                ((< (QREFELT $ 54) 32000000)
                 (COND
                  ((|domainEqual| |#1|
                                  (|PrimeField|
                                   (PROG1 (LETT #11# (QREFELT $ 54) . #17#)
                                     (|check-subtype| (> #11# 0)
                                                      '(|PositiveInteger|)
                                                      #11#))))
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;44|)
                              $)))
                  ('T
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;45|)
                              $)))))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;46|)
                            $)))))
              ('T
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;47|)
                          $))))
             (QSETREFV $ 36
                       (CONS
                        (|dispatchFunction|
                         |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;48|)
                        $))))))
         ((|domainEqual| |#1| (|Fraction| (|Polynomial| (|AlgebraicNumber|))))
          (COND
           ((|domainEqual| |#2| (|Polynomial| (|AlgebraicNumber|)))
            (PROGN
             (QSETREFV $ 21
                       (CONS
                        (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;49|)
                        $))
             (QSETREFV $ 36
                       (CONS
                        (|dispatchFunction|
                         |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;50|)
                        $))))
           ('T
            (PROGN
             (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
             (COND
              ((< 0 (QREFELT $ 54))
               (COND
                ((< (QREFELT $ 54) 32000000)
                 (COND
                  ((|domainEqual| |#1|
                                  (|PrimeField|
                                   (PROG1 (LETT #10# (QREFELT $ 54) . #17#)
                                     (|check-subtype| (> #10# 0)
                                                      '(|PositiveInteger|)
                                                      #10#))))
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;51|)
                              $)))
                  ('T
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;52|)
                              $)))))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;53|)
                            $)))))
              ('T
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;54|)
                          $))))
             (QSETREFV $ 36
                       (CONS
                        (|dispatchFunction|
                         |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;55|)
                        $))))))
         ('T
          (PROGN
           (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
           (COND
            ((< 0 (QREFELT $ 54))
             (COND
              ((< (QREFELT $ 54) 32000000)
               (COND
                ((|domainEqual| |#1|
                                (|PrimeField|
                                 (PROG1 (LETT #9# (QREFELT $ 54) . #17#)
                                   (|check-subtype| (> #9# 0)
                                                    '(|PositiveInteger|)
                                                    #9#))))
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;56|)
                            $)))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;57|)
                            $)))))
              ('T
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;58|)
                          $)))))
            ('T
             (QSETREFV $ 21
                       (CONS
                        (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;59|)
                        $))))
           (QSETREFV $ 36
                     (CONS
                      (|dispatchFunction|
                       |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;60|)
                      $))))))
       ((|domainEqual| |#1| (|Fraction| (|Polynomial| (|Integer|))))
        (COND
         ((|domainEqual| |#2| (|Polynomial| (|Integer|)))
          (PROGN
           (QSETREFV $ 21
                     (CONS (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;61|)
                           $))
           (QSETREFV $ 26
                     (CONS (|dispatchFunction| |MODHPS;LF_to_PA;LILLIU;62|) $))
           (QSETREFV $ 31
                     (CONS (|dispatchFunction| |MODHPS;VSUPS_to_VPA;VLLIV;63|)
                           $))
           (QSETREFV $ 36
                     (CONS
                      (|dispatchFunction|
                       |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;64|)
                      $))))
         ((|domainEqual| |#1| (|AlgebraicNumber|))
          (COND
           ((|domainEqual| |#2| (|AlgebraicNumber|))
            (PROGN
             (QSETREFV $ 21
                       (CONS
                        (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;65|)
                        $))
             (QSETREFV $ 36
                       (CONS
                        (|dispatchFunction|
                         |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;66|)
                        $))))
           ((|domainEqual| |#1|
                           (|Fraction| (|Polynomial| (|AlgebraicNumber|))))
            (COND
             ((|domainEqual| |#2| (|Polynomial| (|AlgebraicNumber|)))
              (PROGN
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;67|)
                          $))
               (QSETREFV $ 36
                         (CONS
                          (|dispatchFunction|
                           |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;68|)
                          $))))
             ('T
              (PROGN
               (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
               (COND
                ((< 0 (QREFELT $ 54))
                 (COND
                  ((< (QREFELT $ 54) 32000000)
                   (COND
                    ((|domainEqual| |#1|
                                    (|PrimeField|
                                     (PROG1 (LETT #8# (QREFELT $ 54) . #17#)
                                       (|check-subtype| (> #8# 0)
                                                        '(|PositiveInteger|)
                                                        #8#))))
                     (QSETREFV $ 21
                               (CONS
                                (|dispatchFunction|
                                 |MODHPS;HP_solve;LL2SNniMMU;69|)
                                $)))
                    ('T
                     (QSETREFV $ 21
                               (CONS
                                (|dispatchFunction|
                                 |MODHPS;HP_solve;LL2SNniMMU;70|)
                                $)))))
                  ('T
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;71|)
                              $)))))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;72|)
                            $))))
               (QSETREFV $ 36
                         (CONS
                          (|dispatchFunction|
                           |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;73|)
                          $))))))
           ('T
            (PROGN
             (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
             (COND
              ((< 0 (QREFELT $ 54))
               (COND
                ((< (QREFELT $ 54) 32000000)
                 (COND
                  ((|domainEqual| |#1|
                                  (|PrimeField|
                                   (PROG1 (LETT #7# (QREFELT $ 54) . #17#)
                                     (|check-subtype| (> #7# 0)
                                                      '(|PositiveInteger|)
                                                      #7#))))
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;74|)
                              $)))
                  ('T
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;75|)
                              $)))))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;76|)
                            $)))))
              ('T
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;77|)
                          $))))
             (QSETREFV $ 36
                       (CONS
                        (|dispatchFunction|
                         |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;78|)
                        $))))))
         ((|domainEqual| |#1| (|Fraction| (|Polynomial| (|AlgebraicNumber|))))
          (COND
           ((|domainEqual| |#2| (|Polynomial| (|AlgebraicNumber|)))
            (PROGN
             (QSETREFV $ 21
                       (CONS
                        (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;79|)
                        $))
             (QSETREFV $ 36
                       (CONS
                        (|dispatchFunction|
                         |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;80|)
                        $))))
           ('T
            (PROGN
             (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
             (COND
              ((< 0 (QREFELT $ 54))
               (COND
                ((< (QREFELT $ 54) 32000000)
                 (COND
                  ((|domainEqual| |#1|
                                  (|PrimeField|
                                   (PROG1 (LETT #6# (QREFELT $ 54) . #17#)
                                     (|check-subtype| (> #6# 0)
                                                      '(|PositiveInteger|)
                                                      #6#))))
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;81|)
                              $)))
                  ('T
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;82|)
                              $)))))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;83|)
                            $)))))
              ('T
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;84|)
                          $))))
             (QSETREFV $ 36
                       (CONS
                        (|dispatchFunction|
                         |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;85|)
                        $))))))
         ('T
          (PROGN
           (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
           (COND
            ((< 0 (QREFELT $ 54))
             (COND
              ((< (QREFELT $ 54) 32000000)
               (COND
                ((|domainEqual| |#1|
                                (|PrimeField|
                                 (PROG1 (LETT #5# (QREFELT $ 54) . #17#)
                                   (|check-subtype| (> #5# 0)
                                                    '(|PositiveInteger|)
                                                    #5#))))
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;86|)
                            $)))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;87|)
                            $)))))
              ('T
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;88|)
                          $)))))
            ('T
             (QSETREFV $ 21
                       (CONS
                        (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;89|)
                        $))))
           (QSETREFV $ 36
                     (CONS
                      (|dispatchFunction|
                       |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;90|)
                      $))))))
       ((|domainEqual| |#1| (|AlgebraicNumber|))
        (COND
         ((|domainEqual| |#2| (|AlgebraicNumber|))
          (PROGN
           (QSETREFV $ 21
                     (CONS (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;91|)
                           $))
           (QSETREFV $ 36
                     (CONS
                      (|dispatchFunction|
                       |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;92|)
                      $))))
         ((|domainEqual| |#1| (|Fraction| (|Polynomial| (|AlgebraicNumber|))))
          (COND
           ((|domainEqual| |#2| (|Polynomial| (|AlgebraicNumber|)))
            (PROGN
             (QSETREFV $ 21
                       (CONS
                        (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;93|)
                        $))
             (QSETREFV $ 36
                       (CONS
                        (|dispatchFunction|
                         |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;94|)
                        $))))
           ('T
            (PROGN
             (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
             (COND
              ((< 0 (QREFELT $ 54))
               (COND
                ((< (QREFELT $ 54) 32000000)
                 (COND
                  ((|domainEqual| |#1|
                                  (|PrimeField|
                                   (PROG1 (LETT #4# (QREFELT $ 54) . #17#)
                                     (|check-subtype| (> #4# 0)
                                                      '(|PositiveInteger|)
                                                      #4#))))
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;95|)
                              $)))
                  ('T
                   (QSETREFV $ 21
                             (CONS
                              (|dispatchFunction|
                               |MODHPS;HP_solve;LL2SNniMMU;96|)
                              $)))))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;97|)
                            $)))))
              ('T
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;98|)
                          $))))
             (QSETREFV $ 36
                       (CONS
                        (|dispatchFunction|
                         |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;99|)
                        $))))))
         ('T
          (PROGN
           (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
           (COND
            ((< 0 (QREFELT $ 54))
             (COND
              ((< (QREFELT $ 54) 32000000)
               (COND
                ((|domainEqual| |#1|
                                (|PrimeField|
                                 (PROG1 (LETT #3# (QREFELT $ 54) . #17#)
                                   (|check-subtype| (> #3# 0)
                                                    '(|PositiveInteger|)
                                                    #3#))))
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;100|)
                            $)))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;101|)
                            $)))))
              ('T
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;102|)
                          $)))))
            ('T
             (QSETREFV $ 21
                       (CONS
                        (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;103|)
                        $))))
           (QSETREFV $ 36
                     (CONS
                      (|dispatchFunction|
                       |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;104|)
                      $))))))
       ((|domainEqual| |#1| (|Fraction| (|Polynomial| (|AlgebraicNumber|))))
        (COND
         ((|domainEqual| |#2| (|Polynomial| (|AlgebraicNumber|)))
          (PROGN
           (QSETREFV $ 21
                     (CONS
                      (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;105|) $))
           (QSETREFV $ 36
                     (CONS
                      (|dispatchFunction|
                       |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;106|)
                      $))))
         ('T
          (PROGN
           (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
           (COND
            ((< 0 (QREFELT $ 54))
             (COND
              ((< (QREFELT $ 54) 32000000)
               (COND
                ((|domainEqual| |#1|
                                (|PrimeField|
                                 (PROG1 (LETT #2# (QREFELT $ 54) . #17#)
                                   (|check-subtype| (> #2# 0)
                                                    '(|PositiveInteger|)
                                                    #2#))))
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;107|)
                            $)))
                ('T
                 (QSETREFV $ 21
                           (CONS
                            (|dispatchFunction|
                             |MODHPS;HP_solve;LL2SNniMMU;108|)
                            $)))))
              ('T
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;109|)
                          $)))))
            ('T
             (QSETREFV $ 21
                       (CONS
                        (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;110|)
                        $))))
           (QSETREFV $ 36
                     (CONS
                      (|dispatchFunction|
                       |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;111|)
                      $))))))
       ('T
        (PROGN
         (SETELT $ 54 (SPADCALL (QREFELT $ 53)))
         (COND
          ((< 0 (QREFELT $ 54))
           (COND
            ((< (QREFELT $ 54) 32000000)
             (COND
              ((|domainEqual| |#1|
                              (|PrimeField|
                               (PROG1 (LETT #1# (QREFELT $ 54) . #17#)
                                 (|check-subtype| (> #1# 0)
                                                  '(|PositiveInteger|) #1#))))
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;112|)
                          $)))
              ('T
               (QSETREFV $ 21
                         (CONS
                          (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;113|)
                          $)))))
            ('T
             (QSETREFV $ 21
                       (CONS
                        (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;114|)
                        $)))))
          ('T
           (QSETREFV $ 21
                     (CONS
                      (|dispatchFunction| |MODHPS;HP_solve;LL2SNniMMU;115|)
                      $))))
         (QSETREFV $ 36
                   (CONS
                    (|dispatchFunction|
                     |MODHPS;gen_Monte_Carlo_check;ML2SNniMM;116|)
                    $)))))
      $)))) 

(MAKEPROP '|ModularHermitePadeSolver| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|local| |#2|)
              (|Union| (|Matrix| (|SparseUnivariatePolynomial| 23)) 32)
              (|List| (|Fraction| 23)) (|List| 23) (|Symbol|)
              (|NonNegativeInteger|) (|Mapping| 27 63 23 23)
              (|Union| '"good" '"reject" '"no_solution")
              (|Mapping| 14 (|List| (|SparseUnivariatePolynomial| 23)))
              (|ModularHermitePade|) (0 . |HP_solve_I|)
              (|Union| (|Matrix| (|SparseUnivariatePolynomial| 7)) 32)
              (|List| 6) (|Mapping| 14 34) (10 . |HP_solve|)
              (|Union| 63 '"failed") (|Integer|) (21 . |LFI_to_PA|) (|List| 11)
              (28 . |LF_to_PA|) (|Vector| 63)
              (|Vector| (|SparseUnivariatePolynomial| 23))
              (37 . |VSUPI_to_VPA|) (|Vector| (|SparseUnivariatePolynomial| 7))
              (43 . |VSUPS_to_VPA|) (|Boolean|) (51 . =)
              (|List| (|SparseUnivariatePolynomial| 7)) (57 . |vector|)
              (62 . |gen_Monte_Carlo_check|)
              (|Union|
               (|Matrix| (|SparseUnivariatePolynomial| (|Polynomial| 23))) 32)
              (|List| (|Fraction| (|Polynomial| 23)))
              (|Mapping| 14
                         (|List|
                          (|SparseUnivariatePolynomial| (|Polynomial| 23))))
              (72 . |HP_solve_P|) (83 . |LFPI_to_PA|)
              (|Vector| (|SparseUnivariatePolynomial| (|Polynomial| 23)))
              (92 . |VSUPPI_to_VPA|) (100 . |get_variables|)
              (|Union|
               (|Matrix| (|SparseUnivariatePolynomial| (|AlgebraicNumber|)))
               32)
              (|List| (|AlgebraicNumber|))
              (|Mapping| 14
                         (|List|
                          (|SparseUnivariatePolynomial| (|AlgebraicNumber|))))
              (107 . |HP_solve_A|)
              (|Union|
               (|Matrix|
                (|SparseUnivariatePolynomial|
                 (|Polynomial| (|AlgebraicNumber|))))
               32)
              (|List| (|Fraction| (|Polynomial| (|AlgebraicNumber|))))
              (|Mapping| 14
                         (|List|
                          (|SparseUnivariatePolynomial|
                           (|Polynomial| (|AlgebraicNumber|)))))
              (117 . |HP_solve_PA|) (128 . |characteristic|) '|p|
              (132 . |Zero|) (136 . |Zero|) (140 . |HP_solve_M|)
              (|SingleInteger|) (150 . |random|) (154 . |random|)
              (|IntegerPrimesPackage| 23) (158 . |nextPrime|) (|U32Vector|)
              (163 . |check_sol1a|) (173 . |One|) (177 . |One|))
           '#(|gen_Monte_Carlo_check| 181 |VSUPS_to_VPA| 191 |LF_to_PA| 199
              |HP_solve| 208)
           'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 66
                                                 '(6 16 8 9 10 11 12 13 15 17 7
                                                   0 18 19 10 11 11 12 13 20 21
                                                   3 16 22 9 23 23 24 5 0 22 19
                                                   23 25 10 23 26 2 16 27 28 23
                                                   29 4 0 27 30 25 10 23 31 2
                                                   11 32 0 0 33 1 30 0 34 35 6
                                                   0 20 20 19 11 11 12 13 36 7
                                                   16 37 38 10 11 11 12 13 39
                                                   40 5 16 22 38 23 25 10 23 41
                                                   4 16 27 42 25 10 23 43 3 16
                                                   25 38 11 11 44 6 16 45 46 10
                                                   11 12 13 47 48 7 16 49 50 10
                                                   11 11 12 13 51 52 0 6 12 53
                                                   0 6 0 55 0 7 0 56 6 16 8 10
                                                   10 11 23 12 13 57 0 58 0 59
                                                   0 32 0 60 1 61 23 23 62 6 16
                                                   63 27 63 13 23 23 23 64 0 6
                                                   0 65 0 7 0 66 6 0 20 20 19
                                                   11 11 12 13 36 4 0 27 30 25
                                                   10 23 31 5 0 22 19 23 25 10
                                                   23 26 7 0 18 19 10 11 11 12
                                                   13 20 21)))))
           '|lookupComplete|)) 
