
(/VERSIONCHECK 2) 

(DEFUN |SHDP;lessThanRlex| (|v1| |v2| |low| |high| $)
  (PROG (#1=#:G673 |i| |n2| |n1|)
    (RETURN
     (SEQ
      (EXIT
       (SEQ (LETT |n1| (|spadConstant| $ 10) . #2=(|SHDP;lessThanRlex|))
            (LETT |n2| (|spadConstant| $ 10) . #2#)
            (SEQ (LETT |i| |low| . #2#) G190
                 (COND ((> |i| |high|) #3=(GO G191)))
                 (SEQ
                  (LETT |n1|
                        (SPADCALL |n1| (SPADCALL |v1| |i| (QREFELT $ 12))
                                  (QREFELT $ 13))
                        . #2#)
                  (EXIT
                   (LETT |n2|
                         (SPADCALL |n2| (SPADCALL |v2| |i| (QREFELT $ 12))
                                   (QREFELT $ 13))
                         . #2#)))
                 (LETT |i| (+ |i| 1) . #2#) #4=(GO G190) G191 (EXIT NIL))
            (EXIT
             (COND ((SPADCALL |n1| |n2| (QREFELT $ 15)) 'T)
                   ((SPADCALL |n2| |n1| (QREFELT $ 15)) 'NIL)
                   ('T
                    (SEQ
                     (SEQ (LETT |i| |high| . #2#) G190
                          (COND ((< |i| |low|) #3#))
                          (SEQ
                           (COND
                            ((SPADCALL (SPADCALL |v2| |i| (QREFELT $ 12))
                                       (SPADCALL |v1| |i| (QREFELT $ 12))
                                       (QREFELT $ 15))
                             (PROGN (LETT #1# 'T . #2#) (GO #1#))))
                           (EXIT
                            (COND
                             ((SPADCALL (SPADCALL |v1| |i| (QREFELT $ 12))
                                        (SPADCALL |v2| |i| (QREFELT $ 12))
                                        (QREFELT $ 15))
                              (PROGN (LETT #1# 'NIL . #2#) (GO #1#))))))
                          (LETT |i| (+ |i| -1) . #2#) #4# G191 (EXIT NIL))
                     (EXIT 'NIL)))))))
      #1# (EXIT #1#))))) 

(DEFUN |SHDP;<;2$B;2| (|v1| |v2| $)
  (PROG (#1=#:G678 #2=#:G679 |i|)
    (RETURN
     (SEQ
      (EXIT
       (COND ((|SHDP;lessThanRlex| |v1| |v2| 1 (QREFELT $ 7) $) 'T)
             ('T
              (SEQ
               (SEQ (LETT |i| 1 . #3=(|SHDP;<;2$B;2|))
                    (LETT #2# (QREFELT $ 7) . #3#) G190
                    (COND ((QSGREATERP |i| #2#) (GO G191)))
                    (SEQ
                     (EXIT
                      (COND
                       ((NULL
                         (SPADCALL (SPADCALL |v1| |i| (QREFELT $ 12))
                                   (SPADCALL |v2| |i| (QREFELT $ 12))
                                   (QREFELT $ 16)))
                        (PROGN (LETT #1# 'NIL . #3#) (GO #1#))))))
                    (LETT |i| (QSADD1 |i|) . #3#) (GO G190) G191 (EXIT NIL))
               (EXIT
                (|SHDP;lessThanRlex| |v1| |v2| (+ (QREFELT $ 7) 1)
                 (QREFELT $ 6) $))))))
      #1# (EXIT #1#))))) 

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

(DEFUN |SplitHomogeneousDirectProduct;| (|#1| |#2| |#3|)
  (PROG (|pv$| #1=#:G697 #2=#:G698 #3=#:G699 #4=#:G700 #5=#:G701 $ |dv$| DV$3
         DV$2 DV$1)
    (RETURN
     (PROGN
      (LETT DV$1 (|devaluate| |#1|) . #6=(|SplitHomogeneousDirectProduct|))
      (LETT DV$2 (|devaluate| |#2|) . #6#)
      (LETT DV$3 (|devaluate| |#3|) . #6#)
      (LETT |dv$| (LIST '|SplitHomogeneousDirectProduct| DV$1 DV$2 DV$3) . #6#)
      (LETT $ (GETREFV 47) . #6#)
      (QSETREFV $ 0 |dv$|)
      (QSETREFV $ 3
                (LETT |pv$|
                      (|buildPredVector| 0 0
                                         (LIST
                                          (|HasCategory| |#3| '(|SetCategory|))
                                          (|HasCategory| |#3| '(|Field|))
                                          (|HasCategory| |#3| '(|Ring|))
                                          (|HasCategory| |#3|
                                                         '(|OrderedAbelianMonoidSup|))
                                          (LETT #5#
                                                (|HasCategory| |#3|
                                                               '(|OrderedRing|))
                                                . #6#)
                                          (OR
                                           (|HasCategory| |#3|
                                                          '(|OrderedAbelianMonoidSup|))
                                           #5#)
                                          (|HasCategory| |#3| '(|Monoid|))
                                          (|HasCategory| |#3| '(|unitsKnown|))
                                          (LETT #4#
                                                (|HasCategory| |#3|
                                                               '(|CommutativeRing|))
                                                . #6#)
                                          (OR #4#
                                              (|HasCategory| |#3| '(|Field|))
                                              (|HasCategory| |#3| '(|Ring|)))
                                          (OR #4#
                                              (|HasCategory| |#3| '(|Field|)))
                                          (OR #4#
                                              (|HasCategory| |#3| '(|Ring|)))
                                          (|HasCategory| |#3| '(|Finite|))
                                          (|HasCategory| |#3|
                                                         '(|LinearlyExplicitRingOver|
                                                           (|Integer|)))
                                          (|HasCategory| |#3|
                                                         '(|PartialDifferentialRing|
                                                           (|Symbol|)))
                                          (LETT #3#
                                                (|HasCategory| |#3|
                                                               '(|DifferentialRing|))
                                                . #6#)
                                          (OR #4# #3#
                                              (|HasCategory| |#3| '(|Field|))
                                              (|HasCategory| |#3| '(|Ring|))
                                              (|HasCategory| |#3|
                                                             '(|LinearlyExplicitRingOver|
                                                               (|Integer|)))
                                              (|HasCategory| |#3|
                                                             '(|PartialDifferentialRing|
                                                               (|Symbol|))))
                                          (OR #4# #3#
                                              (|HasCategory| |#3| '(|Ring|))
                                              (|HasCategory| |#3|
                                                             '(|LinearlyExplicitRingOver|
                                                               (|Integer|)))
                                              (|HasCategory| |#3|
                                                             '(|PartialDifferentialRing|
                                                               (|Symbol|))))
                                          (|HasCategory| (|Integer|)
                                                         '(|OrderedSet|))
                                          (AND (|HasCategory| |#3| '(|Ring|))
                                               (|HasCategory| |#3|
                                                              '(|LinearlyExplicitRingOver|
                                                                (|Integer|))))
                                          (AND #3#
                                               (|HasCategory| |#3| '(|Ring|)))
                                          (AND (|HasCategory| |#3| '(|Ring|))
                                               (|HasCategory| |#3|
                                                              '(|PartialDifferentialRing|
                                                                (|Symbol|))))
                                          (AND
                                           (|HasCategory| |#3|
                                                          '(|SetCategory|))
                                           (|HasCategory| |#3|
                                                          '(|RetractableTo|
                                                            (|Integer|))))
                                          (OR
                                           (AND
                                            (|HasCategory| |#3|
                                                           '(|SetCategory|))
                                            (|HasCategory| |#3|
                                                           '(|RetractableTo|
                                                             (|Integer|))))
                                           (|HasCategory| |#3| '(|Ring|)))
                                          (AND
                                           (|HasCategory| |#3|
                                                          '(|SetCategory|))
                                           (|HasCategory| |#3|
                                                          '(|RetractableTo|
                                                            (|Fraction|
                                                             (|Integer|)))))
                                          (LETT #2#
                                                (|HasCategory| |#3|
                                                               '(|CancellationAbelianMonoid|))
                                                . #6#)
                                          (OR #2# #4# #3#
                                              (|HasCategory| |#3| '(|Field|))
                                              (|HasCategory| |#3| '(|Ring|))
                                              (|HasCategory| |#3|
                                                             '(|LinearlyExplicitRingOver|
                                                               (|Integer|)))
                                              (|HasCategory| |#3|
                                                             '(|PartialDifferentialRing|
                                                               (|Symbol|))))
                                          (LETT #1#
                                                (|HasCategory| |#3|
                                                               '(|AbelianSemiGroup|))
                                                . #6#)
                                          (OR #1# #2# #4# #3#
                                              (|HasCategory| |#3| '(|Field|))
                                              (|HasCategory| |#3| '(|Finite|))
                                              (|HasCategory| |#3| '(|Monoid|))
                                              (|HasCategory| |#3|
                                                             '(|OrderedAbelianMonoidSup|))
                                              #5#
                                              (|HasCategory| |#3| '(|Ring|))
                                              (|HasCategory| |#3|
                                                             '(|SetCategory|))
                                              (|HasCategory| |#3|
                                                             '(|LinearlyExplicitRingOver|
                                                               (|Integer|)))
                                              (|HasCategory| |#3|
                                                             '(|PartialDifferentialRing|
                                                               (|Symbol|))))
                                          (OR #1# #2# #4# #3#
                                              (|HasCategory| |#3| '(|Field|))
                                              (|HasCategory| |#3| '(|Ring|))
                                              (|HasCategory| |#3|
                                                             '(|LinearlyExplicitRingOver|
                                                               (|Integer|)))
                                              (|HasCategory| |#3|
                                                             '(|PartialDifferentialRing|
                                                               (|Symbol|))))
                                          (OR
                                           (AND #1#
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Fraction|
                                                                  (|Integer|)))))
                                           (AND #2#
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Fraction|
                                                                  (|Integer|)))))
                                           (AND #4#
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Fraction|
                                                                  (|Integer|)))))
                                           (AND #3#
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Fraction|
                                                                  (|Integer|)))))
                                           (AND (|HasCategory| |#3| '(|Field|))
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Fraction|
                                                                  (|Integer|)))))
                                           (AND
                                            (|HasCategory| |#3| '(|Finite|))
                                            (|HasCategory| |#3|
                                                           '(|RetractableTo|
                                                             (|Fraction|
                                                              (|Integer|)))))
                                           (AND
                                            (|HasCategory| |#3| '(|Monoid|))
                                            (|HasCategory| |#3|
                                                           '(|RetractableTo|
                                                             (|Fraction|
                                                              (|Integer|)))))
                                           (AND
                                            (|HasCategory| |#3|
                                                           '(|OrderedAbelianMonoidSup|))
                                            (|HasCategory| |#3|
                                                           '(|RetractableTo|
                                                             (|Fraction|
                                                              (|Integer|)))))
                                           (AND #5#
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Fraction|
                                                                  (|Integer|)))))
                                           (AND (|HasCategory| |#3| '(|Ring|))
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Fraction|
                                                                  (|Integer|)))))
                                           (AND
                                            (|HasCategory| |#3|
                                                           '(|SetCategory|))
                                            (|HasCategory| |#3|
                                                           '(|RetractableTo|
                                                             (|Fraction|
                                                              (|Integer|)))))
                                           (AND
                                            (|HasCategory| |#3|
                                                           '(|LinearlyExplicitRingOver|
                                                             (|Integer|)))
                                            (|HasCategory| |#3|
                                                           '(|RetractableTo|
                                                             (|Fraction|
                                                              (|Integer|)))))
                                           (AND
                                            (|HasCategory| |#3|
                                                           '(|PartialDifferentialRing|
                                                             (|Symbol|)))
                                            (|HasCategory| |#3|
                                                           '(|RetractableTo|
                                                             (|Fraction|
                                                              (|Integer|))))))
                                          (OR
                                           (AND #1#
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Integer|))))
                                           (AND #2#
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Integer|))))
                                           (AND #4#
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Integer|))))
                                           (AND #3#
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Integer|))))
                                           (AND (|HasCategory| |#3| '(|Field|))
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Integer|))))
                                           (AND
                                            (|HasCategory| |#3| '(|Finite|))
                                            (|HasCategory| |#3|
                                                           '(|RetractableTo|
                                                             (|Integer|))))
                                           (AND
                                            (|HasCategory| |#3| '(|Monoid|))
                                            (|HasCategory| |#3|
                                                           '(|RetractableTo|
                                                             (|Integer|))))
                                           (AND
                                            (|HasCategory| |#3|
                                                           '(|OrderedAbelianMonoidSup|))
                                            (|HasCategory| |#3|
                                                           '(|RetractableTo|
                                                             (|Integer|))))
                                           (AND #5#
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Integer|))))
                                           (AND (|HasCategory| |#3| '(|Ring|))
                                                (|HasCategory| |#3|
                                                               '(|RetractableTo|
                                                                 (|Integer|))))
                                           (AND
                                            (|HasCategory| |#3|
                                                           '(|SetCategory|))
                                            (|HasCategory| |#3|
                                                           '(|RetractableTo|
                                                             (|Integer|))))
                                           (AND
                                            (|HasCategory| |#3|
                                                           '(|LinearlyExplicitRingOver|
                                                             (|Integer|)))
                                            (|HasCategory| |#3|
                                                           '(|RetractableTo|
                                                             (|Integer|))))
                                           (AND
                                            (|HasCategory| |#3|
                                                           '(|PartialDifferentialRing|
                                                             (|Symbol|)))
                                            (|HasCategory| |#3|
                                                           '(|RetractableTo|
                                                             (|Integer|)))))
                                          (AND
                                           (|HasCategory| |#3|
                                                          '(|SetCategory|))
                                           (|HasCategory| |#3|
                                                          (LIST '|Evalable|
                                                                (|devaluate|
                                                                 |#3|))))
                                          (OR
                                           (AND #1#
                                                (|HasCategory| |#3|
                                                               (LIST
                                                                '|Evalable|
                                                                (|devaluate|
                                                                 |#3|))))
                                           (AND #2#
                                                (|HasCategory| |#3|
                                                               (LIST
                                                                '|Evalable|
                                                                (|devaluate|
                                                                 |#3|))))
                                           (AND #4#
                                                (|HasCategory| |#3|
                                                               (LIST
                                                                '|Evalable|
                                                                (|devaluate|
                                                                 |#3|))))
                                           (AND #3#
                                                (|HasCategory| |#3|
                                                               (LIST
                                                                '|Evalable|
                                                                (|devaluate|
                                                                 |#3|))))
                                           (AND (|HasCategory| |#3| '(|Field|))
                                                (|HasCategory| |#3|
                                                               (LIST
                                                                '|Evalable|
                                                                (|devaluate|
                                                                 |#3|))))
                                           (AND
                                            (|HasCategory| |#3| '(|Finite|))
                                            (|HasCategory| |#3|
                                                           (LIST '|Evalable|
                                                                 (|devaluate|
                                                                  |#3|))))
                                           (AND
                                            (|HasCategory| |#3| '(|Monoid|))
                                            (|HasCategory| |#3|
                                                           (LIST '|Evalable|
                                                                 (|devaluate|
                                                                  |#3|))))
                                           (AND
                                            (|HasCategory| |#3|
                                                           '(|OrderedAbelianMonoidSup|))
                                            (|HasCategory| |#3|
                                                           (LIST '|Evalable|
                                                                 (|devaluate|
                                                                  |#3|))))
                                           (AND #5#
                                                (|HasCategory| |#3|
                                                               (LIST
                                                                '|Evalable|
                                                                (|devaluate|
                                                                 |#3|))))
                                           (AND (|HasCategory| |#3| '(|Ring|))
                                                (|HasCategory| |#3|
                                                               (LIST
                                                                '|Evalable|
                                                                (|devaluate|
                                                                 |#3|))))
                                           (AND
                                            (|HasCategory| |#3|
                                                           '(|SetCategory|))
                                            (|HasCategory| |#3|
                                                           (LIST '|Evalable|
                                                                 (|devaluate|
                                                                  |#3|))))
                                           (AND
                                            (|HasCategory| |#3|
                                                           (LIST '|Evalable|
                                                                 (|devaluate|
                                                                  |#3|)))
                                            (|HasCategory| |#3|
                                                           '(|LinearlyExplicitRingOver|
                                                             (|Integer|))))
                                           (AND
                                            (|HasCategory| |#3|
                                                           (LIST '|Evalable|
                                                                 (|devaluate|
                                                                  |#3|)))
                                            (|HasCategory| |#3|
                                                           '(|PartialDifferentialRing|
                                                             (|Symbol|)))))))
                      . #6#))
      (|haddProp| |$ConstructorCache| '|SplitHomogeneousDirectProduct|
                  (LIST DV$1 DV$2 DV$3) (CONS 1 $))
      (|stuffDomainSlots| $)
      (QSETREFV $ 6 |#1|)
      (QSETREFV $ 7 |#2|)
      (QSETREFV $ 8 |#3|)
      (AND (|HasCategory| $ '(|finiteAggregate|))
           (|augmentPredVector| $ 17179869184))
      (AND (|HasCategory| $ '(|finiteAggregate|))
           (|HasCategory| |#3| '(|SetCategory|))
           (|augmentPredVector| $ 34359738368))
      (AND (|HasCategory| $ '(|shallowlyMutable|))
           (|augmentPredVector| $ 68719476736))
      (QSETREFV $ 9 (|Vector| |#3|))
      $)))) 

(MAKEPROP '|SplitHomogeneousDirectProduct| '|infovec|
          (LIST
           '#(NIL NIL NIL NIL NIL (|DirectProduct| 6 8) (|local| |#1|)
              (|local| |#2|) (|local| |#3|) '|Rep| (0 . |Zero|) (|Integer|)
              (4 . |qelt|) (10 . +) (|Boolean|) (16 . <) (22 . =)
              |SHDP;<;2$B;2| (|NonNegativeInteger|) (|List| 8) (|List| 21)
              (|Equation| 8)
              (|Record| (|:| |mat| 25) (|:| |vec| (|Vector| 11))) (|Matrix| $)
              (|Vector| $) (|Matrix| 11) (|Symbol|) (|List| 26) (|List| 18)
              (|Fraction| 11) (|Union| 29 '#1="failed") (|Union| 11 '#1#)
              (|Mapping| 14 8) (|Void|) (|Mapping| 8 8) (|PositiveInteger|)
              (|Union| $ '"failed") (|CardinalNumber|) (|List| $) (|Matrix| 8)
              (|Record| (|:| |mat| 39) (|:| |vec| 45)) (|Union| 8 '#1#)
              (|SingleInteger|) (|OutputForm|) (|String|) (|Vector| 8)
              (|List| 11))
           '#(|qelt| 28 < 34) 'NIL
           (CONS
            (|makeByteWordVec2| 34
                                '(0 2 9 3 3 11 5 9 3 14 15 16 10 4 5 9 18 10 3
                                  6 12 9 18 6 17 6 3 27 0 6 3 7 27 0 6 7 13 30
                                  0 0 34 29 1 0 0 0 0 34 1 8 9 29 1 31 32))
            (CONS
             '#(|DirectProductCategory&| |VectorSpace&| |Algebra&|
                |FullyLinearlyExplicitRingOver&| |DifferentialExtension&|
                |Module&| |OrderedRing&| NIL NIL NIL |PartialDifferentialRing&|
                |DifferentialRing&| NIL NIL NIL NIL |Ring&| NIL NIL NIL NIL NIL
                NIL NIL |AbelianGroup&| NIL NIL NIL |IndexedAggregate&|
                |OrderedSet&| NIL |Monoid&| |AbelianMonoid&|
                |HomogeneousAggregate&| NIL |SemiGroup&| |Finite&|
                |AbelianSemiGroup&| |Aggregate&| |EltableAggregate&|
                |Evalable&| |SetCategory&| |FullyRetractableTo&| NIL NIL NIL
                NIL |InnerEvalable&| NIL NIL NIL |BasicType&| |RetractableTo&|
                |RetractableTo&| |RetractableTo&|)
             (CONS
              '#((|DirectProductCategory| 6 8) (|VectorSpace| 8) (|Algebra| 8)
                 (|FullyLinearlyExplicitRingOver| 8)
                 (|DifferentialExtension| 8) (|Module| 8) (|OrderedRing|)
                 (|CommutativeRing|) (|LinearlyExplicitRingOver| 8)
                 (|LinearlyExplicitRingOver| 11) (|PartialDifferentialRing| 26)
                 (|DifferentialRing|) (|BiModule| 8 8)
                 (|OrderedAbelianMonoidSup|) (|OrderedAbelianGroup|)
                 (|BiModule| $$ $$) (|Ring|) (|LeftModule| 8) (|RightModule| 8)
                 (|OrderedCancellationAbelianMonoid|) (|LeftModule| $$)
                 (|RightModule| $$) (|Rng|) (|OrderedAbelianMonoid|)
                 (|AbelianGroup|) (|OrderedAbelianSemiGroup|) (|SemiRing|)
                 (|CancellationAbelianMonoid|) (|IndexedAggregate| 11 8)
                 (|OrderedSet|) (|SemiRng|) (|Monoid|) (|AbelianMonoid|)
                 (|HomogeneousAggregate| 8) (|Comparable|) (|SemiGroup|)
                 (|Finite|) (|AbelianSemiGroup|) (|Aggregate|)
                 (|EltableAggregate| 11 8) (|Evalable| 8) (|SetCategory|)
                 (|FullyRetractableTo| 8) (|Type|) (|finiteAggregate|)
                 (|CoercibleTo| (|Vector| 8)) (|Eltable| 11 8)
                 (|InnerEvalable| 8 8) (|CoercibleTo| 43) (|unitsKnown|)
                 (|CommutativeStar|) (|BasicType|) (|RetractableTo| 8)
                 (|RetractableTo| 29) (|RetractableTo| 11))
              (|makeByteWordVec2| 17
                                  '(0 8 0 10 2 0 8 0 11 12 2 8 0 0 0 13 2 8 14
                                    0 0 15 2 8 14 0 0 16 2 0 8 0 11 12 2 6 14 0
                                    0 17)))))
           '|lookupIncomplete|)) 
