
(/VERSIONCHECK 2) 

(DEFPARAMETER |PAdicIntegerCategory;CAT| 'NIL) 

(DEFPARAMETER |PAdicIntegerCategory;AL| 'NIL) 

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

(DEFUN |PAdicIntegerCategory;| (|t#1|)
  (PROG (#0=#:G1816)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|PAdicIntegerCategory;CAT|)
                         ('T
                          (LETT |PAdicIntegerCategory;CAT|
                                (|Join| (|EuclideanDomain|)
                                        (|CharacteristicZero|)
                                        (|mkCategory| '|domain|
                                         '(((|digits|
                                             ((|Stream| (|Integer|)) $))
                                            T)
                                           ((|order|
                                             ((|NonNegativeInteger|) $))
                                            T)
                                           ((|extend|
                                             ($ $ (|Integer|)))
                                            T)
                                           ((|complete| ($ $)) T)
                                           ((|modulus| ((|Integer|)))
                                            T)
                                           ((|moduloP| ((|Integer|) $))
                                            T)
                                           ((|quotientByP| ($ $)) T)
                                           ((|approximate|
                                             ((|Integer|) $
                                              (|Integer|)))
                                            T)
                                           ((|sqrt| ($ $ (|Integer|)))
                                            T)
                                           ((|root|
                                             ($
                                              (|SparseUnivariatePolynomial|
                                               (|Integer|))
                                              (|Integer|)))
                                            T))
                                         NIL
                                         '((|SparseUnivariatePolynomial|
                                            (|Integer|))
                                           (|Integer|)
                                           (|NonNegativeInteger|)
                                           (|Stream| (|Integer|)))
                                         NIL))
                                . #1=(|PAdicIntegerCategory|))))) . #1#)
        (SETELT #0# 0
                (LIST '|PAdicIntegerCategory| (|devaluate| |t#1|))))))) 
