
(/VERSIONCHECK 2) 

(DEFUN |MODMONOM;<;2$B;1| (|x| |y| $)
  (SPADCALL |x| |y| (QREFELT $ 8))) 

(PUT '|MODMONOM;exponent;$E;2| '|SPADreplace| 'QCDR) 

(DEFUN |MODMONOM;exponent;$E;2| (|x| $) (QCDR |x|)) 

(PUT '|MODMONOM;index;$IS;3| '|SPADreplace| 'QCAR) 

(DEFUN |MODMONOM;index;$IS;3| (|x| $) (QCAR |x|)) 

(PUT '|MODMONOM;coerce;$R;4| '|SPADreplace| '(XLAM (|x|) |x|)) 

(DEFUN |MODMONOM;coerce;$R;4| (|x| $) |x|) 

(PUT '|MODMONOM;coerce;R$;5| '|SPADreplace| '(XLAM (|x|) |x|)) 

(DEFUN |MODMONOM;coerce;R$;5| (|x| $) |x|) 

(PUT '|MODMONOM;construct;ISE$;6| '|SPADreplace| 'CONS) 

(DEFUN |MODMONOM;construct;ISE$;6| (|i| |e| $) (CONS |i| |e|)) 

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

(DEFUN |ModuleMonomial;| (|#1| |#2| |#3|)
  (PROG (DV$1 DV$2 DV$3 |dv$| $ |pv$|)
    (RETURN
      (PROGN
        (LETT DV$1 (|devaluate| |#1|) . #0=(|ModuleMonomial|))
        (LETT DV$2 (|devaluate| |#2|) . #0#)
        (LETT DV$3 (|devaluate| |#3|) . #0#)
        (LETT |dv$| (LIST '|ModuleMonomial| DV$1 DV$2 DV$3) . #0#)
        (LETT $ (GETREFV 20) . #0#)
        (QSETREFV $ 0 |dv$|)
        (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#))
        (|haddProp| |$ConstructorCache| '|ModuleMonomial|
            (LIST DV$1 DV$2 DV$3) (CONS 1 $))
        (|stuffDomainSlots| $)
        (QSETREFV $ 6 |#1|)
        (QSETREFV $ 7 |#2|)
        (QSETREFV $ 8 |#3|)
        (QSETREFV $ 9
            (|Record| (|:| |index| |#1|) (|:| |exponent| |#2|)))
        $)))) 

(MAKEPROP '|ModuleMonomial| '|infovec|
    (LIST '#(NIL NIL NIL NIL NIL
             (|Record| (|:| |index| 6) (|:| |exponent| 7))
             (|local| |#1|) (|local| |#2|) (|local| |#3|) '|Rep|
             (|Boolean|) |MODMONOM;<;2$B;1| |MODMONOM;exponent;$E;2|
             |MODMONOM;index;$IS;3| |MODMONOM;coerce;$R;4|
             |MODMONOM;coerce;R$;5| |MODMONOM;construct;ISE$;6|
             (|String|) (|OutputForm|) (|SingleInteger|))
          '#(~= 0 |min| 6 |max| 12 |latex| 18 |index| 23 |hash| 28
             |exponent| 33 |construct| 38 |coerce| 44 >= 59 > 65 = 71
             <= 77 < 83)
          'NIL
          (CONS (|makeByteWordVec2| 1 '(0 0 0 0))
                (CONS '#(|OrderedSet&| |SetCategory&| |BasicType&| NIL)
                      (CONS '#((|OrderedSet|) (|SetCategory|)
                               (|BasicType|) (|CoercibleTo| 18))
                            (|makeByteWordVec2| 19
                                '(2 0 10 0 0 1 2 0 0 0 0 1 2 0 0 0 0 1
                                  1 0 17 0 1 1 0 6 0 13 1 0 19 0 1 1 0
                                  7 0 12 2 0 0 6 7 16 1 0 5 0 14 1 0 0
                                  5 15 1 0 18 0 1 2 0 10 0 0 1 2 0 10 0
                                  0 1 2 0 10 0 0 1 2 0 10 0 0 1 2 0 10
                                  0 0 11)))))
          '|lookupComplete|)) 
