
(/VERSIONCHECK 2) 

(DEFPARAMETER |ExtensionField;CAT| 'NIL) 

(DEFPARAMETER |ExtensionField;AL| 'NIL) 

(DEFUN |ExtensionField| (#0=#:G1817)
  (LET (#1=#:G1818)
    (COND
      ((SETQ #1# (|assoc| #2=(|devaluate| #0#) |ExtensionField;AL|))
       (CDR #1#))
      (T (SETQ |ExtensionField;AL|
               (|cons5| (CONS #2# (SETQ #1# (|ExtensionField;| #0#)))
                        |ExtensionField;AL|))
         #1#)))) 

(DEFUN |ExtensionField;| (|t#1|)
  (PROG (#0=#:G1816)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|ExtensionField;CAT|)
                         ('T
                          (LETT |ExtensionField;CAT|
                                (|Join| (|Field|)
                                        (|RetractableTo| '|t#1|)
                                        (|VectorSpace| '|t#1|)
                                        (|mkCategory| '|domain|
                                         '(((|algebraic?|
                                             ((|Boolean|) $))
                                            T)
                                           ((|transcendent?|
                                             ((|Boolean|) $))
                                            T)
                                           ((|inGroundField?|
                                             ((|Boolean|) $))
                                            T)
                                           ((|degree|
                                             ((|OnePointCompletion|
                                               (|PositiveInteger|))
                                              $))
                                            T)
                                           ((|extensionDegree|
                                             ((|OnePointCompletion|
                                               (|PositiveInteger|))))
                                            T)
                                           ((|transcendenceDegree|
                                             ((|NonNegativeInteger|)))
                                            T)
                                           ((|Frobenius| ($ $))
                                            (|has| |t#1| (|Finite|)))
                                           ((|Frobenius|
                                             ($ $
                                              (|NonNegativeInteger|)))
                                            (|has| |t#1| (|Finite|))))
                                         '(((|CharacteristicZero|)
                                            (|has| |t#1|
                                             (|CharacteristicZero|)))
                                           ((|FieldOfPrimeCharacteristic|)
                                            (|has| |t#1|
                                             (|CharacteristicNonZero|)))
                                           ((|FieldOfPrimeCharacteristic|)
                                            (|has| |t#1| (|Finite|))))
                                         '((|NonNegativeInteger|)
                                           (|OnePointCompletion|
                                            (|PositiveInteger|))
                                           (|Boolean|))
                                         NIL))
                                . #1=(|ExtensionField|))))) . #1#)
        (SETELT #0# 0 (LIST '|ExtensionField| (|devaluate| |t#1|))))))) 
