
(/VERSIONCHECK 2) 

(DEFPARAMETER |MonogenicAlgebra;CAT| 'NIL) 

(DEFPARAMETER |MonogenicAlgebra;AL| 'NIL) 

(DEFUN |MonogenicAlgebra| (&REST #0=#:G1816)
  (LET (#1=#:G1817)
    (COND
      ((SETQ #1#
             (|assoc| #2=(|devaluateList| #0#) |MonogenicAlgebra;AL|))
       (CDR #1#))
      (T (SETQ |MonogenicAlgebra;AL|
               (|cons5| (CONS #2#
                              (SETQ #1#
                                    (APPLY #'|MonogenicAlgebra;| #0#)))
                        |MonogenicAlgebra;AL|))
         #1#)))) 

(DEFUN |MonogenicAlgebra;| (|t#1| |t#2|)
  (PROG (#0=#:G1815)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1| |t#2|)
                             (LIST (|devaluate| |t#1|)
                                   (|devaluate| |t#2|)))
                       (COND
                         (|MonogenicAlgebra;CAT|)
                         ('T
                          (LETT |MonogenicAlgebra;CAT|
                                (|Join| (|FramedAlgebra| '|t#1| '|t#2|)
                                        (|CommutativeRing|)
                                        (|ConvertibleTo| '|t#2|)
                                        (|FullyRetractableTo| '|t#1|)
                                        (|FullyLinearlyExplicitRingOver|
                                         '|t#1|)
                                        (|mkCategory| '|domain|
                                         '(((|generator| ($)) T)
                                           ((|definingPolynomial|
                                             (|t#2|))
                                            T)
                                           ((|reduce| ($ |t#2|)) T)
                                           ((|convert| ($ |t#2|)) T)
                                           ((|lift| (|t#2| $)) T)
                                           ((|reduce|
                                             ((|Union| $ "failed")
                                              (|Fraction| |t#2|)))
                                            (|has| |t#1| (|Field|)))
                                           ((|derivationCoordinates|
                                             ((|Matrix| |t#1|)
                                              (|Vector| $)
                                              (|Mapping| |t#1| |t#1|)))
                                            (|has| |t#1| (|Field|))))
                                         '(((|Finite|)
                                            (|has| |t#1| (|Finite|)))
                                           ((|Field|)
                                            (|has| |t#1| (|Field|)))
                                           ((|DifferentialExtension|
                                             |t#1|)
                                            (|has| |t#1| (|Field|)))
                                           ((|FiniteFieldCategory|)
                                            (|has| |t#1|
                                             (|FiniteFieldCategory|))))
                                         '((|Matrix| |t#1|)
                                           (|Vector| $)
                                           (|Fraction| |t#2|))
                                         NIL))
                                . #1=(|MonogenicAlgebra|))))) . #1#)
        (SETELT #0# 0
                (LIST '|MonogenicAlgebra| (|devaluate| |t#1|)
                      (|devaluate| |t#2|))))))) 
