
(/VERSIONCHECK 2) 

(DEFUN |IDPOAM;<;2$B;1| (|x| |y| $)
  (COND ((NULL |y|) 'NIL)
        ((OR (NULL |x|)
             (SPADCALL (QCAR (|SPADfirst| |x|)) (QCAR (|SPADfirst| |y|))
                       (QREFELT $ 10)))
         'T)
        ((SPADCALL (QCAR (|SPADfirst| |y|)) (QCAR (|SPADfirst| |x|))
                   (QREFELT $ 10))
         'NIL)
        ((SPADCALL (QCDR (|SPADfirst| |x|)) (QCDR (|SPADfirst| |y|))
                   (QREFELT $ 11))
         'T)
        ((SPADCALL (QCDR (|SPADfirst| |y|)) (QCDR (|SPADfirst| |x|))
                   (QREFELT $ 11))
         'NIL)
        ('T (SPADCALL (CDR |x|) (CDR |y|) (QREFELT $ 12))))) 

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

(DEFUN |IndexedDirectProductOrderedAbelianMonoid;| (|#1| |#2|)
  (PROG (|pv$| $ |dv$| DV$2 DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|)
            . #1=(|IndexedDirectProductOrderedAbelianMonoid|))
      (LETT DV$2 (|devaluate| |#2|) . #1#)
      (LETT |dv$| (LIST '|IndexedDirectProductOrderedAbelianMonoid| DV$1 DV$2)
            . #1#)
      (LETT $ (GETREFV 21) . #1#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3 (LETT |pv$| (|buildPredVector| 0 0 NIL) . #1#))
      (|haddProp| |$ConstructorCache|
                  '|IndexedDirectProductOrderedAbelianMonoid| (LIST DV$1 DV$2)
                  (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 |#2|)
      (QSETREFV $ 8 (|List| (|Record| (|:| |k| |#2|) (|:| |c| |#1|))))
      $)))) 

(MAKEPROP '|IndexedDirectProductOrderedAbelianMonoid| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL (|IndexedDirectProductAbelianMonoid| 6 7)
              (|local| |#1|) (|local| |#2|) '|Rep| (|Boolean|) (0 . <) (6 . <)
              |IDPOAM;<;2$B;1| (|Mapping| 6 6)
              (|Record| (|:| |k| 7) (|:| |c| 6)) (|List| 14)
              (|NonNegativeInteger|) (|PositiveInteger|) (|String|)
              (|OutputForm|) (|SingleInteger|))
           '#(< 12) 'NIL
           (CONS (|makeByteWordVec2| 1 '(0 0 0 0 0 0 0 0 0 0))
                 (CONS
                  '#(NIL NIL |OrderedSet&| |AbelianMonoid&| NIL NIL
                     |AbelianSemiGroup&| |SetCategory&| |BasicType&| NIL)
                  (CONS
                   '#((|OrderedAbelianMonoid|) (|OrderedAbelianSemiGroup|)
                      (|OrderedSet|) (|AbelianMonoid|) (|Comparable|)
                      (|IndexedDirectProductCategory| 6 7) (|AbelianSemiGroup|)
                      (|SetCategory|) (|BasicType|) (|CoercibleTo| 19))
                   (|makeByteWordVec2| 12
                                       '(2 7 9 0 0 10 2 6 9 0 0 11 2 0 9 0 0
                                         12)))))
           '|lookupIncomplete|)) 
