
(/VERSIONCHECK 2) 

(DEFPARAMETER |UniqueFactorizationDomain;AL| 'NIL) 

(DEFUN |UniqueFactorizationDomain| ()
  (LET (#:G3483)
    (COND (|UniqueFactorizationDomain;AL|)
          (T
           (SETQ |UniqueFactorizationDomain;AL|
                   (|UniqueFactorizationDomain;|)))))) 

(DEFUN |UniqueFactorizationDomain;| ()
  (PROG (#1=#:G3481)
    (RETURN
     (PROG1
         (LETT #1#
               (|Join| (|GcdDomain|)
                       (|mkCategory| '|domain|
                                     '(((|prime?| ((|Boolean|) $)) T)
                                       ((|squareFree| ((|Factored| $) $)) T)
                                       ((|squareFreePart| ($ $)) T)
                                       ((|factor| ((|Factored| $) $)) T))
                                     NIL '((|Factored| $) (|Boolean|)) NIL))
               |UniqueFactorizationDomain|)
       (SETELT #1# 0 '(|UniqueFactorizationDomain|)))))) 

(MAKEPROP '|UniqueFactorizationDomain| 'NILADIC T) 
