
(/VERSIONCHECK 2) 

(DEFUN |REP2;blockMultiply| (|a| |b| |li| |n| $)
  (PROG (#1=#:G1817 #2=#:G1816 #3=#:G1818 |s| #4=#:G1825 |j| #5=#:G1824
         #6=#:G1823 |i| #7=#:G1822)
    (RETURN
     (SEQ
      (SPADCALL
       (PROGN
        (LETT #7# NIL . #8=(|REP2;blockMultiply|))
        (SEQ (LETT |i| NIL . #8#) (LETT #6# |li| . #8#) G190
             (COND
              ((OR (ATOM #6#) (PROGN (LETT |i| (CAR #6#) . #8#) NIL))
               #9=(GO G191)))
             (SEQ
              (EXIT
               (LETT #7#
                     (CONS
                      (PROGN
                       (LETT #5# NIL . #8#)
                       (SEQ (LETT |j| NIL . #8#) (LETT #4# |li| . #8#) G190
                            (COND
                             ((OR (ATOM #4#)
                                  (PROGN (LETT |j| (CAR #4#) . #8#) NIL))
                              #9#))
                            (SEQ
                             (EXIT
                              (LETT #5#
                                    (CONS
                                     (PROGN
                                      (LETT #1# NIL . #8#)
                                      (SEQ (LETT |s| 1 . #8#) G190
                                           (COND ((QSGREATERP |s| |n|) #9#))
                                           (SEQ
                                            (EXIT
                                             (PROGN
                                              (LETT #3#
                                                    (SPADCALL
                                                     (SPADCALL |a| |i| |s|
                                                               (QREFELT $ 9))
                                                     (SPADCALL |b| |s| |j|
                                                               (QREFELT $ 9))
                                                     (QREFELT $ 10))
                                                    . #8#)
                                              (COND
                                               (#1#
                                                (LETT #2#
                                                      (SPADCALL #2# #3#
                                                                (QREFELT $ 11))
                                                      . #8#))
                                               ('T
                                                (PROGN
                                                 (LETT #2# #3# . #8#)
                                                 (LETT #1# 'T . #8#)))))))
                                           (LETT |s| (QSADD1 |s|) . #8#)
                                           #10=(GO G190) G191 (EXIT NIL))
                                      (COND (#1# #2#)
                                            ('T (|spadConstant| $ 12))))
                                     #5#)
                                    . #8#)))
                            (LETT #4# (CDR #4#) . #8#) #10# G191
                            (EXIT (NREVERSE0 #5#))))
                      #7#)
                     . #8#)))
             (LETT #6# (CDR #6#) . #8#) #10# G191 (EXIT (NREVERSE0 #7#))))
       (QREFELT $ 14)))))) 

(DEFUN |REP2;fingerPrint| (|i| |a| |b| |x| $)
  (PROG (#1=#:G1855 #2=#:G1850 #3=#:G1845 #4=#:G1840 #5=#:G1835 #6=#:G1830)
    (RETURN
     (SEQ
      (COND
       ((EQL
         (PROG1 (LETT #6# |i| . #7=(|REP2;fingerPrint|))
           (|check-subtype| (> #6# 0) '(|PositiveInteger|) #6#))
         1)
        (LETT |x|
              (SPADCALL (SPADCALL |a| |b| (QREFELT $ 15))
                        (SPADCALL |a| |b| (QREFELT $ 16)) (QREFELT $ 15))
              . #7#))
       ((EQL
         (PROG1 (LETT #5# |i| . #7#)
           (|check-subtype| (> #5# 0) '(|PositiveInteger|) #5#))
         2)
        (LETT |x|
              (SPADCALL
               (SPADCALL |x| (SPADCALL |a| |b| (QREFELT $ 16)) (QREFELT $ 15))
               |b| (QREFELT $ 16))
              . #7#))
       ((EQL
         (PROG1 (LETT #4# |i| . #7#)
           (|check-subtype| (> #4# 0) '(|PositiveInteger|) #4#))
         3)
        (LETT |x|
              (SPADCALL |a| (SPADCALL |b| |x| (QREFELT $ 16)) (QREFELT $ 15))
              . #7#))
       ((EQL
         (PROG1 (LETT #3# |i| . #7#)
           (|check-subtype| (> #3# 0) '(|PositiveInteger|) #3#))
         4)
        (LETT |x| (SPADCALL |x| |b| (QREFELT $ 15)) . #7#))
       ((EQL
         (PROG1 (LETT #2# |i| . #7#)
           (|check-subtype| (> #2# 0) '(|PositiveInteger|) #2#))
         5)
        (LETT |x|
              (SPADCALL |x| (SPADCALL |a| |b| (QREFELT $ 16)) (QREFELT $ 15))
              . #7#))
       ((EQL
         (PROG1 (LETT #1# |i| . #7#)
           (|check-subtype| (> #1# 0) '(|PositiveInteger|) #1#))
         6)
        (LETT |x|
              (SPADCALL (SPADCALL |x| |a| (QREFELT $ 17))
                        (SPADCALL |b| |a| (QREFELT $ 16)) (QREFELT $ 15))
              . #7#))
       ('T
        (SEQ (|error| "Sorry, but there are only 6 fingerprints!")
             (EXIT |x|)))))))) 

(DEFUN |REP2;completeEchelonBasis;VM;3| (|basis| $)
  (PROG (|j| |newStart| |indexOfVectorToBeScanned| |row| |completedBasis| |i|
         |n| |dimensionOfSubmodule|)
    (RETURN
     (SEQ
      (LETT |dimensionOfSubmodule| (QVSIZE |basis|)
            . #1=(|REP2;completeEchelonBasis;VM;3|))
      (LETT |n| (QVSIZE (SPADCALL |basis| 1 (QREFELT $ 21))) . #1#)
      (LETT |indexOfVectorToBeScanned| 1 . #1#)
      (LETT |row| |dimensionOfSubmodule| . #1#)
      (LETT |completedBasis| (SPADCALL |n| |n| (QREFELT $ 23)) . #1#)
      (SEQ (LETT |i| 1 . #1#) G190
           (COND ((QSGREATERP |i| |dimensionOfSubmodule|) #2=(GO G191)))
           (SEQ
            (EXIT
             (LETT |completedBasis|
                   (SPADCALL |completedBasis| |i|
                             (SPADCALL |basis| |i| (QREFELT $ 21))
                             (QREFELT $ 24))
                   . #1#)))
           (LETT |i| (QSADD1 |i|) . #1#) #3=(GO G190) G191 (EXIT NIL))
      (COND
       ((NULL (< |n| (QVSIZE |basis|)))
        (SEQ (LETT |newStart| 1 . #1#)
             (SEQ (LETT |j| 1 . #1#) G190
                  (COND
                   ((OR (QSGREATERP |j| |n|)
                        (NULL
                         (COND
                          ((< |dimensionOfSubmodule|
                              |indexOfVectorToBeScanned|)
                           'NIL)
                          ('T 'T))))
                    #2#))
                  (SEQ
                   (COND
                    ((SPADCALL
                      (SPADCALL
                       (SPADCALL |basis| |indexOfVectorToBeScanned|
                                 (QREFELT $ 21))
                       |j| (QREFELT $ 25))
                      (|spadConstant| $ 12) (QREFELT $ 27))
                     (SEQ
                      (SPADCALL |completedBasis| (+ 1 |row|) |j|
                                (|spadConstant| $ 18) (QREFELT $ 28))
                      (EXIT (LETT |row| (+ |row| 1) . #1#))))
                    ('T
                     (LETT |indexOfVectorToBeScanned|
                           (+ |indexOfVectorToBeScanned| 1) . #1#)))
                   (EXIT (LETT |newStart| (+ |j| 1) . #1#)))
                  (LETT |j| (QSADD1 |j|) . #1#) #3# G191 (EXIT NIL))
             (EXIT
              (SEQ (LETT |j| |newStart| . #1#) G190 (COND ((> |j| |n|) #2#))
                   (SEQ
                    (EXIT
                     (SPADCALL |completedBasis| |j| |j| (|spadConstant| $ 18)
                               (QREFELT $ 28))))
                   (LETT |j| (+ |j| 1) . #1#) #3# G191 (EXIT NIL))))))
      (EXIT |completedBasis|))))) 

(DEFUN |REP2;createRandomElement;L2M;4| (|aG| |algElt| $)
  (PROG (|randomIndex| |numberOfGenerators|)
    (RETURN
     (SEQ
      (LETT |numberOfGenerators| (LENGTH |aG|)
            . #1=(|REP2;createRandomElement;L2M;4|))
      (LETT |randomIndex| (+ 1 (RANDOM |numberOfGenerators|)) . #1#)
      (LETT |algElt|
            (SPADCALL |algElt| (SPADCALL |aG| |randomIndex| (QREFELT $ 31))
                      (QREFELT $ 16))
            . #1#)
      (LETT |randomIndex| (+ 1 (RANDOM |numberOfGenerators|)) . #1#)
      (EXIT
       (SPADCALL |algElt| (SPADCALL |aG| |randomIndex| (QREFELT $ 31))
                 (QREFELT $ 15))))))) 

(DEFUN |REP2;cyclicSubmodule;LVV;5| (|lm| |v| $)
  (PROG (#1=#:G1895 |i| #2=#:G1894 |furtherElts| |updateFurtherElts| #3=#:G1893
         #4=#:G1892 |basis| |addedToBasis| |nextVector| |w| #5=#:G1891
         #6=#:G1890)
    (RETURN
     (SEQ
      (LETT |basis|
            (SPADCALL
             (SPADCALL (SPADCALL (SPADCALL |v| (QREFELT $ 34)) (QREFELT $ 35))
                       (QREFELT $ 14))
             (QREFELT $ 36))
            . #7=(|REP2;cyclicSubmodule;LVV;5|))
      (LETT |furtherElts|
            (PROGN
             (LETT #6# NIL . #7#)
             (SEQ (LETT |i| 1 . #7#)
                  (LETT #5# (SPADCALL |lm| (QREFELT $ 37)) . #7#) G190
                  (COND ((QSGREATERP |i| #5#) #8=(GO G191)))
                  (SEQ
                   (EXIT
                    (LETT #6#
                          (CONS
                           (SPADCALL (SPADCALL |lm| |i| (QREFELT $ 31)) |v|
                                     (QREFELT $ 38))
                           #6#)
                          . #7#)))
                  (LETT |i| (QSADD1 |i|) . #7#) #9=(GO G190) G191
                  (EXIT (NREVERSE0 #6#))))
            . #7#)
      (SEQ G190
           (COND
            ((NULL
              (COND ((NULL |furtherElts|) 'NIL)
                    ('T (< (QVSIZE |basis|) (QVSIZE |v|)))))
             #8#))
           (SEQ (LETT |w| (|SPADfirst| |furtherElts|) . #7#)
                (LETT |nextVector|
                      (SPADCALL
                       (SPADCALL (SPADCALL |w| (QREFELT $ 34)) (QREFELT $ 35))
                       (QREFELT $ 14))
                      . #7#)
                (LETT |addedToBasis|
                      (SPADCALL |basis| |nextVector| (QREFELT $ 39)) . #7#)
                (EXIT
                 (COND
                  ((EQL (SPADCALL |addedToBasis| (QREFELT $ 40))
                        (QVSIZE |basis|))
                   (LETT |furtherElts| (CDR |furtherElts|) . #7#))
                  ('T
                   (SEQ
                    (LETT |basis| (SPADCALL |addedToBasis| (QREFELT $ 36))
                          . #7#)
                    (LETT |updateFurtherElts|
                          (PROGN
                           (LETT #4# NIL . #7#)
                           (SEQ (LETT |i| 1 . #7#)
                                (LETT #3# (SPADCALL |lm| (QREFELT $ 37)) . #7#)
                                G190 (COND ((QSGREATERP |i| #3#) #8#))
                                (SEQ
                                 (EXIT
                                  (LETT #4#
                                        (CONS
                                         (SPADCALL
                                          (SPADCALL |lm| |i| (QREFELT $ 31))
                                          |w| (QREFELT $ 38))
                                         #4#)
                                        . #7#)))
                                (LETT |i| (QSADD1 |i|) . #7#) #9# G191
                                (EXIT (NREVERSE0 #4#))))
                          . #7#)
                    (EXIT
                     (LETT |furtherElts|
                           (APPEND (CDR |furtherElts|) |updateFurtherElts|)
                           . #7#)))))))
           NIL #9# G191 (EXIT NIL))
      (EXIT
       (SPADCALL
        (PROGN
         (LETT #2# NIL . #7#)
         (SEQ (LETT |i| 1 . #7#)
              (LETT #1# (SPADCALL |basis| (QREFELT $ 41)) . #7#) G190
              (COND ((QSGREATERP |i| #1#) #8#))
              (SEQ
               (EXIT
                (LETT #2# (CONS (SPADCALL |basis| |i| (QREFELT $ 42)) #2#)
                      . #7#)))
              (LETT |i| (QSADD1 |i|) . #7#) #9# G191 (EXIT (NREVERSE0 #2#))))
        (QREFELT $ 44))))))) 

(DEFUN |REP2;standardBasisOfCyclicSubmodule;LVM;6| (|lm| |v| $)
  (PROG (|furtherElts| |updateFurtherElts| #1=#:G1906 |i| #2=#:G1905 |basis|
         |standardBasis| |addedToBasis| |nextVector| |w| #3=#:G1904 #4=#:G1903
         |dim|)
    (RETURN
     (SEQ
      (LETT |dim| (QVSIZE |v|)
            . #5=(|REP2;standardBasisOfCyclicSubmodule;LVM;6|))
      (LETT |standardBasis|
            (SPADCALL (SPADCALL |v| (QREFELT $ 34)) (QREFELT $ 35)) . #5#)
      (LETT |basis|
            (SPADCALL
             (SPADCALL (SPADCALL (SPADCALL |v| (QREFELT $ 34)) (QREFELT $ 35))
                       (QREFELT $ 14))
             (QREFELT $ 36))
            . #5#)
      (LETT |furtherElts|
            (PROGN
             (LETT #4# NIL . #5#)
             (SEQ (LETT |i| 1 . #5#)
                  (LETT #3# (SPADCALL |lm| (QREFELT $ 37)) . #5#) G190
                  (COND ((QSGREATERP |i| #3#) #6=(GO G191)))
                  (SEQ
                   (EXIT
                    (LETT #4#
                          (CONS
                           (SPADCALL (SPADCALL |lm| |i| (QREFELT $ 31)) |v|
                                     (QREFELT $ 38))
                           #4#)
                          . #5#)))
                  (LETT |i| (QSADD1 |i|) . #5#) #7=(GO G190) G191
                  (EXIT (NREVERSE0 #4#))))
            . #5#)
      (SEQ G190
           (COND
            ((NULL
              (COND ((NULL |furtherElts|) 'NIL)
                    ('T (< (QVSIZE |basis|) (QVSIZE |v|)))))
             #6#))
           (SEQ (LETT |w| (|SPADfirst| |furtherElts|) . #5#)
                (LETT |nextVector|
                      (SPADCALL
                       (SPADCALL (SPADCALL |w| (QREFELT $ 34)) (QREFELT $ 35))
                       (QREFELT $ 14))
                      . #5#)
                (LETT |addedToBasis|
                      (SPADCALL |basis| |nextVector| (QREFELT $ 39)) . #5#)
                (EXIT
                 (COND
                  ((EQL (SPADCALL |addedToBasis| (QREFELT $ 40))
                        (QVSIZE |basis|))
                   (LETT |furtherElts| (CDR |furtherElts|) . #5#))
                  ('T
                   (SEQ
                    (LETT |standardBasis|
                          (CONS (SPADCALL |w| (QREFELT $ 34)) |standardBasis|)
                          . #5#)
                    (LETT |basis| (SPADCALL |addedToBasis| (QREFELT $ 36))
                          . #5#)
                    (LETT |updateFurtherElts|
                          (PROGN
                           (LETT #2# NIL . #5#)
                           (SEQ (LETT |i| 1 . #5#)
                                (LETT #1# (SPADCALL |lm| (QREFELT $ 37)) . #5#)
                                G190 (COND ((QSGREATERP |i| #1#) #6#))
                                (SEQ
                                 (EXIT
                                  (LETT #2#
                                        (CONS
                                         (SPADCALL
                                          (SPADCALL |lm| |i| (QREFELT $ 31))
                                          |w| (QREFELT $ 38))
                                         #2#)
                                        . #5#)))
                                (LETT |i| (QSADD1 |i|) . #5#) #7# G191
                                (EXIT (NREVERSE0 #2#))))
                          . #5#)
                    (EXIT
                     (LETT |furtherElts|
                           (APPEND (CDR |furtherElts|) |updateFurtherElts|)
                           . #5#)))))))
           NIL #7# G191 (EXIT NIL))
      (EXIT
       (SPADCALL (SPADCALL |standardBasis| (QREFELT $ 14)) (QREFELT $ 46))))))) 

(DEFUN |REP2;splitInternal| (|algebraGenerators| |vector| |doSplitting?| $)
  (PROG (|factormoduleRepresentation| |submoduleRepresentation| |helpMatrix|
         #1=#:G1924 |i| |inverseTransitionMatrix| |transitionMatrix|
         |factormoduleIndices| #2=#:G1923 |submoduleIndices| #3=#:G1922
         |rankOfSubmodule| |submodule| |n|)
    (RETURN
     (SEQ (LETT |n| (QVSIZE |vector|) . #4=(|REP2;splitInternal|))
          (LETT |submodule|
                (SPADCALL |algebraGenerators| |vector| (QREFELT $ 45)) . #4#)
          (LETT |rankOfSubmodule| (QVSIZE |submodule|) . #4#)
          (LETT |submoduleRepresentation| NIL . #4#)
          (LETT |factormoduleRepresentation| NIL . #4#)
          (EXIT
           (COND
            ((EQL |n| |rankOfSubmodule|)
             (SEQ
              (SPADCALL "  The generated cyclic submodule was not proper"
                        (QREFELT $ 51))
              (EXIT (LIST |algebraGenerators|))))
            ('T
             (SEQ
              (SPADCALL "  A proper cyclic submodule is found." (QREFELT $ 51))
              (COND
               (|doSplitting?|
                (SEQ
                 (LETT |submoduleIndices|
                       (PROGN
                        (LETT #3# NIL . #4#)
                        (SEQ (LETT |i| 1 . #4#) G190
                             (COND
                              ((QSGREATERP |i| |rankOfSubmodule|)
                               #5=(GO G191)))
                             (SEQ (EXIT (LETT #3# (CONS |i| #3#) . #4#)))
                             (LETT |i| (QSADD1 |i|) . #4#) #6=(GO G190) G191
                             (EXIT (NREVERSE0 #3#))))
                       . #4#)
                 (LETT |factormoduleIndices|
                       (PROGN
                        (LETT #2# NIL . #4#)
                        (SEQ (LETT |i| (+ 1 |rankOfSubmodule|) . #4#) G190
                             (COND ((> |i| |n|) #5#))
                             (SEQ (EXIT (LETT #2# (CONS |i| #2#) . #4#)))
                             (LETT |i| (+ |i| 1) . #4#) #6# G191
                             (EXIT (NREVERSE0 #2#))))
                       . #4#)
                 (LETT |transitionMatrix|
                       (SPADCALL (SPADCALL |submodule| (QREFELT $ 29))
                                 (QREFELT $ 46))
                       . #4#)
                 (SPADCALL "  Transition matrix computed" (QREFELT $ 51))
                 (LETT |inverseTransitionMatrix|
                       (QCDR (SPADCALL |transitionMatrix| (QREFELT $ 53)))
                       . #4#)
                 (SPADCALL "  The inverse of the transition matrix computed"
                           (QREFELT $ 51))
                 (SPADCALL "  Now transform the matrices" (QREFELT $ 51))
                 (EXIT
                  (SEQ (LETT |i| 1 . #4#)
                       (LETT #1# (SPADCALL |algebraGenerators| (QREFELT $ 37))
                             . #4#)
                       G190 (COND ((QSGREATERP |i| #1#) #5#))
                       (SEQ
                        (LETT |helpMatrix|
                              (SPADCALL |inverseTransitionMatrix|
                                        (SPADCALL |algebraGenerators| |i|
                                                  (QREFELT $ 31))
                                        (QREFELT $ 16))
                              . #4#)
                        (LETT |submoduleRepresentation|
                              (CONS
                               (|REP2;blockMultiply| |helpMatrix|
                                |transitionMatrix| |submoduleIndices| |n| $)
                               |submoduleRepresentation|)
                              . #4#)
                        (EXIT
                         (LETT |factormoduleRepresentation|
                               (CONS
                                (|REP2;blockMultiply| |helpMatrix|
                                 |transitionMatrix| |factormoduleIndices| |n|
                                 $)
                                |factormoduleRepresentation|)
                               . #4#)))
                       (LETT |i| (QSADD1 |i|) . #4#) #6# G191 (EXIT NIL))))))
              (EXIT
               (LIST (REVERSE |submoduleRepresentation|)
                     (REVERSE |factormoduleRepresentation|))))))))))) 

(DEFUN |REP2;irreducibilityTestInternal|
       (|algebraGenerators| |singularMatrix| |split?| $)
  (PROG (|mat| #1=#:G1941 |j| #2=#:G1940 |i| |result| |kernel| |xt|
         |algebraGeneratorsTranspose| #3=#:G1939 #4=#:G1938)
    (RETURN
     (SEQ
      (LETT |algebraGeneratorsTranspose|
            (PROGN
             (LETT #4# NIL . #5=(|REP2;irreducibilityTestInternal|))
             (SEQ (LETT |j| 1 . #5#)
                  (LETT #3# (SPADCALL |algebraGenerators| (QREFELT $ 37))
                        . #5#)
                  G190 (COND ((QSGREATERP |j| #3#) #6=(GO G191)))
                  (SEQ
                   (EXIT
                    (LETT #4#
                          (CONS
                           (SPADCALL
                            (SPADCALL |algebraGenerators| |j| (QREFELT $ 31))
                            (QREFELT $ 46))
                           #4#)
                          . #5#)))
                  (LETT |j| (QSADD1 |j|) . #5#) #7=(GO G190) G191
                  (EXIT (NREVERSE0 #4#))))
            . #5#)
      (LETT |xt| (SPADCALL |singularMatrix| (QREFELT $ 46)) . #5#)
      (SPADCALL "  We know that all the cyclic submodules generated by all"
                (QREFELT $ 51))
      (SPADCALL "    non-trivial element of the singular matrix under view are"
                (QREFELT $ 51))
      (SPADCALL
       "    not proper, hence Norton's irreducibility test can be done:"
       (QREFELT $ 51))
      (LETT |kernel| (SPADCALL |xt| (QREFELT $ 54)) . #5#)
      (LETT |result|
            (|REP2;splitInternal| |algebraGeneratorsTranspose|
             (|SPADfirst| |kernel|) |split?| $)
            . #5#)
      (COND
       ((NULL (CDR |result|))
        (COND
         ((EQL 1 (LENGTH |kernel|))
          (SPADCALL "  Representation is absolutely irreducible"
                    (QREFELT $ 51)))
         (#8='T
          (SEQ
           (SPADCALL "  Representation is irreducible, but we don't know "
                     (QREFELT $ 51))
           (EXIT
            (SPADCALL "    whether it is absolutely irreducible"
                      (QREFELT $ 51)))))))
       (|split?|
        (SEQ
         (SPADCALL "  Representation is not irreducible and it will be split:"
                   (QREFELT $ 51))
         (EXIT
          (SEQ (LETT |i| 1 . #5#)
               (LETT #2# (SPADCALL |result| (QREFELT $ 56)) . #5#) G190
               (COND ((QSGREATERP |i| #2#) #6#))
               (SEQ
                (EXIT
                 (SEQ (LETT |j| 1 . #5#)
                      (LETT #1#
                            (SPADCALL (SPADCALL |result| |i| (QREFELT $ 57))
                                      (QREFELT $ 37))
                            . #5#)
                      G190 (COND ((QSGREATERP |j| #1#) #6#))
                      (SEQ
                       (LETT |mat|
                             (SPADCALL (SPADCALL |result| |i| (QREFELT $ 57))
                                       |j| (QREFELT $ 31))
                             . #5#)
                       (EXIT
                        (SPADCALL (SPADCALL |result| |i| (QREFELT $ 57)) |j|
                                  (SPADCALL
                                   (QCDR (SPADCALL |mat| (QREFELT $ 53)))
                                   (QREFELT $ 46))
                                  (QREFELT $ 58))))
                      (LETT |j| (QSADD1 |j|) . #5#) #7# G191 (EXIT NIL))))
               (LETT |i| (QSADD1 |i|) . #5#) #7# G191 (EXIT NIL)))))
       (#8#
        (SPADCALL "  Representation is not irreducible, use meatAxe to split"
                  (QREFELT $ 51))))
      (EXIT (REVERSE |result|)))))) 

(DEFUN |REP2;areEquivalent?;2LM;9| (|aG0| |aG1| $)
  (SPADCALL |aG0| |aG1| 'T 25 (QREFELT $ 59))) 

(DEFUN |REP2;areEquivalent?;2LIM;10| (|aG0| |aG1| |numberOfTries| $)
  (SPADCALL |aG0| |aG1| 'T |numberOfTries| (QREFELT $ 59))) 

(DEFUN |REP2;areEquivalent?;2LBIM;11|
       (|aG0| |aG1| |randomelements| |numberOfTries| $)
  (PROG (|result| |foundResult| |transitionM| |j| |baseChange1| |baseChange0|
         |kernel1| |kernel0| |rk1| |rk0| |x1| |x0| |randomIndex| |i| #1=#:G1974
         |n| |numberOfGenerators|)
    (RETURN
     (SEQ (LETT |result| 'NIL . #2=(|REP2;areEquivalent?;2LBIM;11|))
          (LETT |transitionM| (SPADCALL 1 1 (QREFELT $ 23)) . #2#)
          (LETT |numberOfGenerators| (LENGTH |aG0|) . #2#)
          (COND
           (|randomelements|
            (SEQ (LETT |randomIndex| (+ 1 (RANDOM |numberOfGenerators|)) . #2#)
                 (LETT |x0| (SPADCALL |aG0| |randomIndex| (QREFELT $ 31))
                       . #2#)
                 (EXIT
                  (LETT |x1| (SPADCALL |aG1| |randomIndex| (QREFELT $ 31))
                        . #2#)))))
          (LETT |n| (QVSIZE (SPADCALL |x0| 1 (QREFELT $ 42))) . #2#)
          (LETT |foundResult| 'NIL . #2#)
          (SEQ (LETT #1# NIL . #2#) (LETT |i| 1 . #2#) G190
               (COND ((OR (QSGREATERP |i| |numberOfTries|) #1#) #3=(GO G191)))
               (SEQ (COND ((EQL |i| 7) (LETT |randomelements| 'T . #2#)))
                    (COND
                     (|randomelements|
                      (SEQ
                       (LETT |randomIndex| (+ 1 (RANDOM |numberOfGenerators|))
                             . #2#)
                       (LETT |x0|
                             (SPADCALL |x0|
                                       (SPADCALL |aG0| |randomIndex|
                                                 (QREFELT $ 31))
                                       (QREFELT $ 16))
                             . #2#)
                       (LETT |x1|
                             (SPADCALL |x1|
                                       (SPADCALL |aG1| |randomIndex|
                                                 (QREFELT $ 31))
                                       (QREFELT $ 16))
                             . #2#)
                       (LETT |randomIndex| (+ 1 (RANDOM |numberOfGenerators|))
                             . #2#)
                       (LETT |x0|
                             (SPADCALL |x0|
                                       (SPADCALL |aG0| |randomIndex|
                                                 (QREFELT $ 31))
                                       (QREFELT $ 15))
                             . #2#)
                       (EXIT
                        (LETT |x1|
                              (SPADCALL |x1|
                                        (SPADCALL |aG1| |randomIndex|
                                                  (QREFELT $ 31))
                                        (QREFELT $ 15))
                              . #2#))))
                     ('T
                      (SEQ
                       (LETT |x0|
                             (|REP2;fingerPrint| |i|
                              (SPADCALL |aG0| 0 (QREFELT $ 31))
                              (SPADCALL |aG0| 1 (QREFELT $ 31)) |x0| $)
                             . #2#)
                       (EXIT
                        (LETT |x1|
                              (|REP2;fingerPrint| |i|
                               (SPADCALL |aG1| 0 (QREFELT $ 31))
                               (SPADCALL |aG1| 1 (QREFELT $ 31)) |x1| $)
                              . #2#)))))
                    (LETT |rk0| (SPADCALL |x0| (QREFELT $ 40)) . #2#)
                    (LETT |rk1| (SPADCALL |x1| (QREFELT $ 40)) . #2#)
                    (EXIT
                     (COND
                      ((EQL |rk0| |rk1|)
                       (COND
                        ((NULL (EQL |rk0| (- |n| 1)))
                         (COND
                          (|randomelements|
                           (SEQ
                            (SPADCALL
                             "Random element in generated algebra does"
                             (QREFELT $ 51))
                            (EXIT
                             (SPADCALL "  not have a one-dimensional kernel"
                                       (QREFELT $ 51)))))
                          ('T
                           (SEQ
                            (SPADCALL
                             "Fingerprint element in generated algebra does"
                             (QREFELT $ 51))
                            (EXIT
                             (SPADCALL "  not have a one-dimensional kernel"
                                       (QREFELT $ 51)))))))
                        ('T
                         (SEQ
                          (COND
                           (|randomelements|
                            (SEQ
                             (SPADCALL
                              "Random element in generated algebra has"
                              (QREFELT $ 51))
                             (EXIT
                              (SPADCALL "  one-dimensional kernel"
                                        (QREFELT $ 51)))))
                           ('T
                            (SEQ
                             (SPADCALL
                              "Fingerprint element in generated algebra has"
                              (QREFELT $ 51))
                             (EXIT
                              (SPADCALL "  one-dimensional kernel"
                                        (QREFELT $ 51))))))
                          (LETT |kernel0| (SPADCALL |x0| (QREFELT $ 54)) . #2#)
                          (LETT |kernel1| (SPADCALL |x1| (QREFELT $ 54)) . #2#)
                          (LETT |baseChange0|
                                (SPADCALL |aG0|
                                          (SPADCALL |kernel0| 1 (QREFELT $ 62))
                                          (QREFELT $ 47))
                                . #2#)
                          (LETT |baseChange1|
                                (SPADCALL |aG1|
                                          (SPADCALL |kernel1| 1 (QREFELT $ 62))
                                          (QREFELT $ 47))
                                . #2#)
                          (COND
                           ((NULL
                             (EQL (SPADCALL |baseChange0| (QREFELT $ 63))
                                  (SPADCALL |baseChange1| (QREFELT $ 63))))
                            (EXIT
                             (SEQ
                              (SPADCALL
                               "  Dimensions of generated cyclic submodules differ"
                               (QREFELT $ 51))
                              (LETT |foundResult| 'T . #2#)
                              (EXIT (LETT |result| 'NIL . #2#))))))
                          (EXIT
                           (COND
                            ((EQL (SPADCALL |baseChange0| (QREFELT $ 63)) |n|)
                             (SEQ
                              (LETT |transitionM|
                                    (SPADCALL |baseChange0|
                                              (QCDR
                                               (SPADCALL |baseChange1|
                                                         (QREFELT $ 53)))
                                              (QREFELT $ 16))
                                    . #2#)
                              (LETT |foundResult| 'T . #2#)
                              (LETT |result| 'T . #2#)
                              (EXIT
                               (SEQ (LETT |j| 1 . #2#) G190
                                    (COND
                                     ((OR (QSGREATERP |j| |numberOfGenerators|)
                                          (NULL |result|))
                                      #3#))
                                    (SEQ
                                     (EXIT
                                      (COND
                                       ((NULL
                                         (SPADCALL
                                          (SPADCALL
                                           (SPADCALL |aG0| |j| (QREFELT $ 31))
                                           |transitionM| (QREFELT $ 16))
                                          (SPADCALL |transitionM|
                                                    (SPADCALL |aG1| |j|
                                                              (QREFELT $ 31))
                                                    (QREFELT $ 16))
                                          (QREFELT $ 64)))
                                        (SEQ (LETT |result| 'NIL . #2#)
                                             (LETT |transitionM|
                                                   (SPADCALL 1 1
                                                             (QREFELT $ 23))
                                                   . #2#)
                                             (SPADCALL
                                              "  There is no isomorphism, as the only possible one"
                                              (QREFELT $ 51))
                                             (EXIT
                                              (SPADCALL
                                               "    fails to do the necessary base change"
                                               (QREFELT $ 51))))))))
                                    (LETT |j| (QSADD1 |j|) . #2#) #4=(GO G190)
                                    G191 (EXIT NIL)))))
                            ('T
                             (SEQ
                              (SPADCALL
                               "  Generated cyclic submodules have equal, but not full"
                               (QREFELT $ 51))
                              (EXIT
                               (SPADCALL
                                "    dimension, hence we can not draw any conclusion"
                                (QREFELT $ 51)))))))))))
                      ('T
                       (SEQ
                        (SPADCALL "Dimensions of kernels differ"
                                  (QREFELT $ 51))
                        (LETT |foundResult| 'T . #2#)
                        (EXIT (LETT |result| 'NIL . #2#)))))))
               (LETT |i| (PROG1 (QSADD1 |i|) (LETT #1# |foundResult| . #2#))
                     . #2#)
               #4# G191 (EXIT NIL))
          (COND
           (|foundResult|
            (COND
             (|result|
              (SEQ (SPADCALL " " (QREFELT $ 51))
                   (EXIT
                    (SPADCALL "Representations are equivalent."
                              (QREFELT $ 51)))))
             (#5='T
              (SEQ (SPADCALL " " (QREFELT $ 51))
                   (EXIT
                    (SPADCALL "Representations are not equivalent."
                              (QREFELT $ 51)))))))
           (#5#
            (SEQ (SPADCALL " " (QREFELT $ 51))
                 (SPADCALL "Can neither prove equivalence nor inequivalence."
                           (QREFELT $ 51))
                 (EXIT (SPADCALL "  Try again." (QREFELT $ 51))))))
          (EXIT |transitionM|))))) 

(DEFUN |REP2;isAbsolutelyIrreducible?;LB;12| (|aG| $)
  (SPADCALL |aG| 25 (QREFELT $ 65))) 

(DEFUN |REP2;isAbsolutelyIrreducible?;LIB;13| (|aG| |numberOfTries| $)
  (PROG (|result| |kernel| |foundResult| |rk| |x| |randomIndex| |i| #1=#:G1984
         |n| |numberOfGenerators|)
    (RETURN
     (SEQ (LETT |result| 'NIL . #2=(|REP2;isAbsolutelyIrreducible?;LIB;13|))
          (LETT |numberOfGenerators| (LENGTH |aG|) . #2#)
          (LETT |randomIndex| (+ 1 (RANDOM |numberOfGenerators|)) . #2#)
          (LETT |x| (SPADCALL |aG| |randomIndex| (QREFELT $ 31)) . #2#)
          (LETT |n| (QVSIZE (SPADCALL |x| 1 (QREFELT $ 42))) . #2#)
          (LETT |foundResult| 'NIL . #2#)
          (SEQ (LETT #1# NIL . #2#) (LETT |i| 1 . #2#) G190
               (COND ((OR (QSGREATERP |i| |numberOfTries|) #1#) (GO G191)))
               (SEQ
                (LETT |randomIndex| (+ 1 (RANDOM |numberOfGenerators|)) . #2#)
                (LETT |x|
                      (SPADCALL |x|
                                (SPADCALL |aG| |randomIndex| (QREFELT $ 31))
                                (QREFELT $ 16))
                      . #2#)
                (LETT |randomIndex| (+ 1 (RANDOM |numberOfGenerators|)) . #2#)
                (LETT |x|
                      (SPADCALL |x|
                                (SPADCALL |aG| |randomIndex| (QREFELT $ 31))
                                (QREFELT $ 15))
                      . #2#)
                (LETT |rk| (SPADCALL |x| (QREFELT $ 40)) . #2#)
                (EXIT
                 (COND
                  ((EQL |rk| (- |n| 1))
                   (SEQ (LETT |foundResult| 'T . #2#)
                        (SPADCALL "Random element in generated algebra has"
                                  (QREFELT $ 51))
                        (SPADCALL "  one-dimensional kernel" (QREFELT $ 51))
                        (LETT |kernel| (SPADCALL |x| (QREFELT $ 54)) . #2#)
                        (EXIT
                         (COND
                          ((EQL |n|
                                (QVSIZE
                                 (SPADCALL |aG| (|SPADfirst| |kernel|)
                                           (QREFELT $ 45))))
                           (LETT |result|
                                 (COND
                                  ((SPADCALL
                                    (SPADCALL
                                     (|REP2;irreducibilityTestInternal| |aG|
                                      |x| 'NIL $)
                                     1 (QREFELT $ 57))
                                    NIL (QREFELT $ 67))
                                   'NIL)
                                  ('T 'T))
                                 . #2#))
                          ('T (LETT |result| 'NIL . #2#))))))
                  ('T
                   (SEQ
                    (SPADCALL "Random element in generated algebra does"
                              (QREFELT $ 51))
                    (EXIT
                     (SPADCALL "  not have a one-dimensional kernel"
                               (QREFELT $ 51))))))))
               (LETT |i| (PROG1 (QSADD1 |i|) (LETT #1# |foundResult| . #2#))
                     . #2#)
               (GO G190) G191 (EXIT NIL))
          (COND
           ((NULL |foundResult|)
            (SEQ
             (SPADCALL "We have not found a one-dimensional kernel so far,"
                       (QREFELT $ 51))
             (EXIT
              (SPADCALL "  as we do a random search you could try again"
                        (QREFELT $ 51))))))
          (EXIT |result|))))) 

(DEFUN |REP2;split;LVL;14| (|algebraGenerators| |vector| $)
  (|REP2;splitInternal| |algebraGenerators| |vector| 'T $)) 

(DEFUN |REP2;split;LVL;15| (|algebraGenerators| |submodule| $)
  (PROG (|factormoduleRepresentation| |submoduleRepresentation| |helpMatrix|
         #1=#:G1997 |i| |inverseTransitionMatrix| |transitionMatrix|
         |factormoduleIndices| #2=#:G1996 |submoduleIndices| #3=#:G1995
         |rankOfSubmodule| |n|)
    (RETURN
     (SEQ
      (LETT |n| (QVSIZE (SPADCALL |submodule| 1 (QREFELT $ 21)))
            . #4=(|REP2;split;LVL;15|))
      (LETT |rankOfSubmodule| (QVSIZE |submodule|) . #4#)
      (LETT |submoduleRepresentation| NIL . #4#)
      (LETT |factormoduleRepresentation| NIL . #4#)
      (LETT |submoduleIndices|
            (PROGN
             (LETT #3# NIL . #4#)
             (SEQ (LETT |i| 1 . #4#) G190
                  (COND ((QSGREATERP |i| |rankOfSubmodule|) #5=(GO G191)))
                  (SEQ (EXIT (LETT #3# (CONS |i| #3#) . #4#)))
                  (LETT |i| (QSADD1 |i|) . #4#) #6=(GO G190) G191
                  (EXIT (NREVERSE0 #3#))))
            . #4#)
      (LETT |factormoduleIndices|
            (PROGN
             (LETT #2# NIL . #4#)
             (SEQ (LETT |i| (+ 1 |rankOfSubmodule|) . #4#) G190
                  (COND ((> |i| |n|) #5#))
                  (SEQ (EXIT (LETT #2# (CONS |i| #2#) . #4#)))
                  (LETT |i| (+ |i| 1) . #4#) #6# G191 (EXIT (NREVERSE0 #2#))))
            . #4#)
      (LETT |transitionMatrix|
            (SPADCALL (SPADCALL |submodule| (QREFELT $ 29)) (QREFELT $ 46))
            . #4#)
      (SPADCALL "  Transition matrix computed" (QREFELT $ 51))
      (LETT |inverseTransitionMatrix|
            (QCDR (SPADCALL |transitionMatrix| (QREFELT $ 53))) . #4#)
      (SPADCALL "  The inverse of the transition matrix computed"
                (QREFELT $ 51))
      (SPADCALL "  Now transform the matrices" (QREFELT $ 51))
      (SEQ (LETT |i| 1 . #4#)
           (LETT #1# (SPADCALL |algebraGenerators| (QREFELT $ 37)) . #4#) G190
           (COND ((QSGREATERP |i| #1#) #5#))
           (SEQ
            (LETT |helpMatrix|
                  (SPADCALL |inverseTransitionMatrix|
                            (SPADCALL |algebraGenerators| |i| (QREFELT $ 31))
                            (QREFELT $ 16))
                  . #4#)
            (LETT |submoduleRepresentation|
                  (CONS
                   (|REP2;blockMultiply| |helpMatrix| |transitionMatrix|
                    |submoduleIndices| |n| $)
                   |submoduleRepresentation|)
                  . #4#)
            (EXIT
             (LETT |factormoduleRepresentation|
                   (CONS
                    (|REP2;blockMultiply| |helpMatrix| |transitionMatrix|
                     |factormoduleIndices| |n| $)
                    |factormoduleRepresentation|)
                   . #4#)))
           (LETT |i| (QSADD1 |i|) . #4#) #6# G191 (EXIT NIL))
      (EXIT
       (CONS (REVERSE |submoduleRepresentation|)
             (SPADCALL (REVERSE |factormoduleRepresentation|)
                       (QREFELT $ 69)))))))) 

(DEFUN |REP2;meatAxe;LB2IL;16|
       (|algebraGenerators| |randomelements| |numberOfTries| |maxTests| $)
  (PROG (|result| #1=#:G2005 |foundResult| |j| |numberOfTests|
         |numberOfOneDimSubspacesInKernel| |kernel| |n| |x| |randomIndex| |i|
         #2=#:G2012 |q| #3=#:G1998 |numberOfGenerators|)
    (RETURN
     (SEQ
      (LETT |numberOfGenerators| (LENGTH |algebraGenerators|)
            . #4=(|REP2;meatAxe;LB2IL;16|))
      (LETT |result| NIL . #4#)
      (LETT |q|
            (PROG1 (LETT #3# (SPADCALL (QREFELT $ 71)) . #4#)
              (|check-subtype| (> #3# 0) '(|PositiveInteger|) #3#))
            . #4#)
      (COND
       (|randomelements|
        (SEQ (LETT |randomIndex| (+ 1 (RANDOM |numberOfGenerators|)) . #4#)
             (EXIT
              (LETT |x|
                    (SPADCALL |algebraGenerators| |randomIndex| (QREFELT $ 31))
                    . #4#)))))
      (LETT |foundResult| 'NIL . #4#)
      (SEQ (LETT #2# NIL . #4#) (LETT |i| 1 . #4#) G190
           (COND ((OR (QSGREATERP |i| |numberOfTries|) #2#) #5=(GO G191)))
           (SEQ (COND ((EQL |i| 7) (LETT |randomelements| 'T . #4#)))
                (COND
                 (|randomelements|
                  (SEQ
                   (LETT |randomIndex| (+ 1 (RANDOM |numberOfGenerators|))
                         . #4#)
                   (LETT |x|
                         (SPADCALL |x|
                                   (SPADCALL |algebraGenerators| |randomIndex|
                                             (QREFELT $ 31))
                                   (QREFELT $ 16))
                         . #4#)
                   (LETT |randomIndex| (+ 1 (RANDOM |numberOfGenerators|))
                         . #4#)
                   (EXIT
                    (LETT |x|
                          (SPADCALL |x|
                                    (SPADCALL |algebraGenerators| |randomIndex|
                                              (QREFELT $ 31))
                                    (QREFELT $ 15))
                          . #4#))))
                 ('T
                  (LETT |x|
                        (|REP2;fingerPrint| |i|
                         (SPADCALL |algebraGenerators| 1 (QREFELT $ 31))
                         (SPADCALL |algebraGenerators| 2 (QREFELT $ 31)) |x| $)
                        . #4#)))
                (LETT |n| (QVSIZE (SPADCALL |x| 1 (QREFELT $ 42))) . #4#)
                (EXIT
                 (COND
                  ((EQL (SPADCALL |x| (QREFELT $ 40)) |n|)
                   (COND
                    (|randomelements|
                     (SPADCALL
                      "Random element in generated algebra is non-singular"
                      (QREFELT $ 51)))
                    ('T
                     (SPADCALL
                      "Fingerprint element in generated algebra is non-singular"
                      (QREFELT $ 51)))))
                  ('T
                   (SEQ
                    (COND
                     (|randomelements|
                      (SPADCALL
                       "Random element in generated algebra is singular"
                       (QREFELT $ 51)))
                     ('T
                      (SPADCALL
                       "Fingerprint element in generated algebra is singular"
                       (QREFELT $ 51))))
                    (LETT |kernel| (SPADCALL |x| (QREFELT $ 54)) . #4#)
                    (LETT |numberOfOneDimSubspacesInKernel|
                          (QUOTIENT2 (- (EXPT |q| (LENGTH |kernel|)) 1)
                                     (- |q| 1))
                          . #4#)
                    (LETT |numberOfTests|
                          (MIN |numberOfOneDimSubspacesInKernel| |maxTests|)
                          . #4#)
                    (EXIT
                     (SEQ
                      (EXIT
                       (SEQ (LETT |j| 1 . #4#) G190
                            (COND ((QSGREATERP |j| |numberOfTests|) #5#))
                            (SEQ
                             (LETT |result|
                                   (SPADCALL |algebraGenerators|
                                             (SPADCALL |kernel| |j|
                                                       (QREFELT $ 72))
                                             (QREFELT $ 68))
                                   . #4#)
                             (LETT |foundResult|
                                   (COND ((NULL (CDR |result|)) 'NIL) ('T 'T))
                                   . #4#)
                             (EXIT
                              (COND
                               (|foundResult|
                                (PROGN (LETT #1# |$NoValue| . #4#) (GO #1#)))
                               ((< |numberOfOneDimSubspacesInKernel| (+ |j| 1))
                                (SEQ (LETT |foundResult| 'T . #4#)
                                     (LETT |result|
                                           (|REP2;irreducibilityTestInternal|
                                            |algebraGenerators| |x| 'T $)
                                           . #4#)
                                     (EXIT
                                      (PROGN
                                       (LETT #1# |$NoValue| . #4#)
                                       (GO #1#))))))))
                            (LETT |j| (QSADD1 |j|) . #4#) #6=(GO G190) G191
                            (EXIT NIL)))
                      #1# (EXIT #1#))))))))
           (LETT |i| (PROG1 (QSADD1 |i|) (LETT #2# |foundResult| . #4#)) . #4#)
           #6# G191 (EXIT NIL))
      (COND
       ((NULL |foundResult|)
        (SEQ (LETT |result| (LIST NIL NIL) . #4#) (SPADCALL " " (QREFELT $ 51))
             (SPADCALL "Sorry, no result, try meatAxe(...,true)"
                       (QREFELT $ 51))
             (EXIT
              (SPADCALL "  or consider using an extension field."
                        (QREFELT $ 51))))))
      (EXIT |result|))))) 

(DEFUN |REP2;meatAxe;LL;17| (|algebraGenerators| $)
  (SPADCALL |algebraGenerators| 'NIL 25 7 (QREFELT $ 73))) 

(DEFUN |REP2;meatAxe;LBL;18| (|algebraGenerators| |randomElements?| $)
  (COND
   (|randomElements?| (SPADCALL |algebraGenerators| 'T 25 7 (QREFELT $ 73)))
   ('T (SPADCALL |algebraGenerators| 'NIL 6 7 (QREFELT $ 73))))) 

(DEFUN |REP2;meatAxe;LPiL;19| (|algebraGenerators| |numberOfTries| $)
  (SPADCALL |algebraGenerators| 'T |numberOfTries| 7 (QREFELT $ 73))) 

(DEFUN |REP2;scanOneDimSubspaces;LIV;20| (|basis| |n| $)
  (PROG (|j| |newAdd| #1=#:G2027 |i| |result| #2=#:G2018 #3=#:G2026 |iR|
         |coefficients| |nred| |pos| #4=#:G2025 |q| |nn| |dim|)
    (RETURN
     (SEQ
      (LETT |dim| (LENGTH |basis|) . #5=(|REP2;scanOneDimSubspaces;LIV;20|))
      (LETT |nn| (QVSIZE (SPADCALL |basis| 1 (QREFELT $ 62))) . #5#)
      (LETT |q| (SPADCALL (QREFELT $ 71)) . #5#)
      (LETT |nred|
            (REMAINDER2 |n| (QUOTIENT2 (- (EXPT |q| |dim|) 1) (- |q| 1)))
            . #5#)
      (LETT |pos| |nred| . #5#) (LETT |i| 0 . #5#)
      (SEQ (LETT |i| 0 . #5#) (LETT #4# (- |dim| 1) . #5#) G190
           (COND
            ((OR (QSGREATERP |i| #4#)
                 (NULL (COND ((< |nred| 0) 'NIL) ('T 'T))))
             #6=(GO G191)))
           (SEQ (LETT |pos| |nred| . #5#)
                (EXIT (LETT |nred| (- |nred| (EXPT |q| |i|)) . #5#)))
           (LETT |i| (QSADD1 |i|) . #5#) #7=(GO G190) G191 (EXIT NIL))
      (LETT |i| (COND ((EQL |i| 0) 0) ('T (- |i| 1))) . #5#)
      (LETT |coefficients| (MAKEARR1 |dim| (|spadConstant| $ 12)) . #5#)
      (SPADCALL |coefficients| (- |dim| |i|) (|spadConstant| $ 18)
                (QREFELT $ 78))
      (LETT |iR|
            (SPADCALL
             (SPADCALL |pos|
                       (|compiledLookupCheck| '|coerce|
                                              (LIST '$ (LIST '|Integer|))
                                              (|RadixExpansion| |q|)))
             (|compiledLookupCheck| '|wholeRagits|
                                    (LIST (LIST '|List| (LIST '|Integer|)) '$)
                                    (|RadixExpansion| |q|)))
            . #5#)
      (SEQ (LETT |j| 1 . #5#) (LETT #3# (SPADCALL |iR| (QREFELT $ 80)) . #5#)
           G190 (COND ((QSGREATERP |j| #3#) #6#))
           (SEQ
            (EXIT
             (SPADCALL |coefficients| (+ (- |dim| (LENGTH |iR|)) |j|)
                       (SPADCALL
                        (PROG1
                            (LETT #2#
                                  (+ (SPADCALL |iR| |j| (QREFELT $ 81)) |q|)
                                  . #5#)
                          (|check-subtype| (> #2# 0) '(|PositiveInteger|) #2#))
                        (QREFELT $ 82))
                       (QREFELT $ 78))))
           (LETT |j| (QSADD1 |j|) . #5#) #7# G191 (EXIT NIL))
      (LETT |result| (MAKEARR1 |nn| (|spadConstant| $ 12)) . #5#)
      (SEQ (LETT |i| 1 . #5#) (LETT #1# (QVSIZE |coefficients|) . #5#) G190
           (COND ((QSGREATERP |i| #1#) #6#))
           (SEQ
            (LETT |newAdd|
                  (SPADCALL (SPADCALL |coefficients| |i| (QREFELT $ 25))
                            (SPADCALL |basis| |i| (QREFELT $ 62))
                            (QREFELT $ 83))
                  . #5#)
            (EXIT
             (SEQ (LETT |j| 1 . #5#) G190 (COND ((QSGREATERP |j| |nn|) #6#))
                  (SEQ
                   (EXIT
                    (SPADCALL |result| |j|
                              (SPADCALL (SPADCALL |result| |j| (QREFELT $ 25))
                                        (SPADCALL |newAdd| |j| (QREFELT $ 25))
                                        (QREFELT $ 11))
                              (QREFELT $ 78))))
                  (LETT |j| (QSADD1 |j|) . #5#) #7# G191 (EXIT NIL))))
           (LETT |i| (QSADD1 |i|) . #5#) #7# G191 (EXIT NIL))
      (EXIT |result|))))) 

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

(DEFUN |RepresentationPackage2;| (|#1|)
  (PROG (|pv$| #1=#:G2028 $ |dv$| DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #2=(|RepresentationPackage2|))
      (LETT |dv$| (LIST '|RepresentationPackage2| DV$1) . #2#)
      (LETT $ (GETREFV 84) . #2#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3
                (LETT |pv$|
                      (|buildPredVector| 0 0
                                         (LIST
                                          (LETT #1#
                                                (|HasCategory| |#1| '(|Field|))
                                                . #2#)
                                          (AND #1#
                                               (|HasCategory| |#1|
                                                              '(|Finite|)))
                                          (|HasCategory| |#1|
                                                         '(|EuclideanDomain|))))
                      . #2#))
      (|haddProp| |$ConstructorCache| '|RepresentationPackage2| (LIST DV$1)
                  (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (COND
       ((|testBitVector| |pv$| 3)
        (PROGN
         (QSETREFV $ 45
                   (CONS (|dispatchFunction| |REP2;cyclicSubmodule;LVV;5|) $))
         (QSETREFV $ 47
                   (CONS
                    (|dispatchFunction|
                     |REP2;standardBasisOfCyclicSubmodule;LVM;6|)
                    $)))))
      (COND
       ((|testBitVector| |pv$| 1)
        (PROGN
         (QSETREFV $ 60
                   (CONS (|dispatchFunction| |REP2;areEquivalent?;2LM;9|) $))
         (QSETREFV $ 61
                   (CONS (|dispatchFunction| |REP2;areEquivalent?;2LIM;10|) $))
         (QSETREFV $ 59
                   (CONS (|dispatchFunction| |REP2;areEquivalent?;2LBIM;11|)
                         $))
         (QSETREFV $ 66
                   (CONS
                    (|dispatchFunction| |REP2;isAbsolutelyIrreducible?;LB;12|)
                    $))
         (QSETREFV $ 65
                   (CONS
                    (|dispatchFunction| |REP2;isAbsolutelyIrreducible?;LIB;13|)
                    $))
         (QSETREFV $ 68 (CONS (|dispatchFunction| |REP2;split;LVL;14|) $))
         (QSETREFV $ 70 (CONS (|dispatchFunction| |REP2;split;LVL;15|) $))
         (COND
          ((|HasCategory| |#1| '(|Finite|))
           (COND
            ((|testBitVector| |pv$| 1)
             (PROGN
              (QSETREFV $ 73
                        (CONS (|dispatchFunction| |REP2;meatAxe;LB2IL;16|) $))
              (QSETREFV $ 74
                        (CONS (|dispatchFunction| |REP2;meatAxe;LL;17|) $))
              (QSETREFV $ 75
                        (CONS (|dispatchFunction| |REP2;meatAxe;LBL;18|) $))
              (QSETREFV $ 77
                        (CONS (|dispatchFunction| |REP2;meatAxe;LPiL;19|) $))
              (QSETREFV $ 72
                        (CONS
                         (|dispatchFunction| |REP2;scanOneDimSubspaces;LIV;20|)
                         $))))))))))
      $)))) 

(MAKEPROP '|RepresentationPackage2| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|Integer|) (|Matrix| 6)
              (0 . |elt|) (7 . *) (13 . +) (19 . |Zero|) (|List| 33)
              (23 . |matrix|) (28 . +) (34 . *) (40 . -) (46 . |One|)
              (|Vector| 6) (|Vector| 19) (50 . |elt|) (|NonNegativeInteger|)
              (56 . |zero|) (62 . |setRow!|) (69 . |elt|) (|Boolean|) (75 . =)
              (81 . |setelt|) |REP2;completeEchelonBasis;VM;3| (|List| 8)
              (89 . |elt|) |REP2;createRandomElement;L2M;4| (|List| 6)
              (95 . |entries|) (100 . |list|) (105 . |rowEchelon|)
              (110 . |maxIndex|) (115 . *) (121 . |vertConcat|) (127 . |rank|)
              (132 . |maxRowIndex|) (137 . |row|) (|List| 19) (143 . |vector|)
              (148 . |cyclicSubmodule|) (154 . |transpose|)
              (159 . |standardBasisOfCyclicSubmodule|) (|Void|) (|String|)
              (|OutputForm|) (165 . |messagePrint|) (|Union| $ '"failed")
              (170 . |inverse|) (175 . |nullSpace|) (|List| 30)
              (180 . |maxIndex|) (185 . |elt|) (191 . |setelt|)
              (198 . |areEquivalent?|) (206 . |areEquivalent?|)
              (212 . |areEquivalent?|) (219 . |elt|) (225 . |ncols|) (230 . =)
              (236 . |isAbsolutelyIrreducible?|)
              (242 . |isAbsolutelyIrreducible?|) (247 . =) (253 . |split|)
              (259 . |list|) (264 . |split|) (270 . |size|)
              (274 . |scanOneDimSubspaces|) (280 . |meatAxe|) (288 . |meatAxe|)
              (293 . |meatAxe|) (|PositiveInteger|) (299 . |meatAxe|)
              (305 . |setelt|) (|List| 7) (312 . |maxIndex|) (317 . |elt|)
              (323 . |index|) (328 . *))
           '#(|standardBasisOfCyclicSubmodule| 334 |split| 340
              |scanOneDimSubspaces| 352 |meatAxe| 358
              |isAbsolutelyIrreducible?| 383 |cyclicSubmodule| 394
              |createRandomElement| 400 |completeEchelonBasis| 406
              |areEquivalent?| 411)
           'NIL
           (CONS (|makeByteWordVec2| 1 'NIL)
                 (CONS '#()
                       (CONS '#()
                             (|makeByteWordVec2| 83
                                                 '(3 8 6 0 7 7 9 2 6 0 0 0 10 2
                                                   6 0 0 0 11 0 6 0 12 1 8 0 13
                                                   14 2 8 0 0 0 15 2 8 0 0 0 16
                                                   2 8 0 0 0 17 0 6 0 18 2 20
                                                   19 0 7 21 2 8 0 22 22 23 3 8
                                                   0 0 7 19 24 2 19 6 0 7 25 2
                                                   6 26 0 0 27 4 8 6 0 7 7 6 28
                                                   2 30 8 0 7 31 1 19 33 0 34 1
                                                   13 0 33 35 1 8 0 0 36 1 30 7
                                                   0 37 2 8 19 0 19 38 2 8 0 0
                                                   0 39 1 8 22 0 40 1 8 7 0 41
                                                   2 8 19 0 7 42 1 20 0 43 44 2
                                                   0 20 30 19 45 1 8 0 0 46 2 0
                                                   8 30 19 47 1 50 48 49 51 1 8
                                                   52 0 53 1 8 43 0 54 1 55 7 0
                                                   56 2 55 30 0 7 57 3 30 8 0 7
                                                   8 58 4 0 8 30 30 26 7 59 2 0
                                                   8 30 30 60 3 0 8 30 30 7 61
                                                   2 43 19 0 7 62 1 8 22 0 63 2
                                                   8 26 0 0 64 2 0 26 30 7 65 1
                                                   0 26 30 66 2 30 26 0 0 67 2
                                                   0 55 30 19 68 1 55 0 30 69 2
                                                   0 55 30 20 70 0 6 22 71 2 0
                                                   19 43 7 72 4 0 55 30 26 7 7
                                                   73 1 0 55 30 74 2 0 55 30 26
                                                   75 2 0 55 30 76 77 3 19 6 0
                                                   7 6 78 1 79 7 0 80 2 79 7 0
                                                   7 81 1 6 0 76 82 2 19 0 6 0
                                                   83 2 3 8 30 19 47 2 1 55 30
                                                   19 68 2 1 55 30 20 70 2 2 19
                                                   43 7 72 4 2 55 30 26 7 7 73
                                                   2 2 55 30 26 75 1 2 55 30 74
                                                   2 2 55 30 76 77 2 1 26 30 7
                                                   65 1 1 26 30 66 2 3 20 30 19
                                                   45 2 0 8 30 8 32 1 0 8 20 29
                                                   2 1 8 30 30 60 4 1 8 30 30
                                                   26 7 59 3 1 8 30 30 7
                                                   61)))))
           '|lookupComplete|)) 
