
(/VERSIONCHECK 2) 

(DEFPARAMETER |FieldOfPrimeCharacteristic;AL| 'NIL) 

(DEFUN |FieldOfPrimeCharacteristic| ()
  (LET (#:G1798)
    (COND (|FieldOfPrimeCharacteristic;AL|)
          (T
           (SETQ |FieldOfPrimeCharacteristic;AL|
                   (|FieldOfPrimeCharacteristic;|)))))) 

(DEFUN |FieldOfPrimeCharacteristic;| ()
  (PROG (#1=#:G1796)
    (RETURN
     (PROG1
         (LETT #1#
               (|Join| (|Field|) (|CharacteristicNonZero|)
                       (|mkCategory|
                        '(((|order|
                            ((|OnePointCompletion| (|PositiveInteger|)) $))
                           T)
                          ((|discreteLog|
                            ((|Union| (|NonNegativeInteger|) "failed") $ $))
                           T)
                          ((|primeFrobenius| ($ $)) T)
                          ((|primeFrobenius| ($ $ (|NonNegativeInteger|))) T))
                        NIL
                        '((|NonNegativeInteger|)
                          (|OnePointCompletion| (|PositiveInteger|)))
                        NIL))
               |FieldOfPrimeCharacteristic|)
       (SETELT #1# 0 '(|FieldOfPrimeCharacteristic|)))))) 

(MAKEPROP '|FieldOfPrimeCharacteristic| 'NILADIC T) 
