
(/VERSIONCHECK 2) 

(DEFPARAMETER |PrincipalIdealDomain;AL| 'NIL) 

(DEFUN |PrincipalIdealDomain| ()
  (LET (#:G1817)
    (COND
      (|PrincipalIdealDomain;AL|)
      (T (SETQ |PrincipalIdealDomain;AL| (|PrincipalIdealDomain;|)))))) 

(DEFUN |PrincipalIdealDomain;| ()
  (PROG (#0=#:G1815)
    (RETURN
      (PROG1 (LETT #0#
                   (|Join| (|GcdDomain|)
                           (|mkCategory| '|domain|
                               '(((|principalIdeal|
                                      ((|Record|
                                        (|:| |coef| (|List| $))
                                        (|:| |generator| $))
                                       (|List| $)))
                                  T)
                                 ((|expressIdealMember|
                                      ((|Union| (|List| $) "failed")
                                       (|List| $) $))
                                  T))
                               NIL '((|List| $)) NIL))
                   |PrincipalIdealDomain|)
        (SETELT #0# 0 '(|PrincipalIdealDomain|)))))) 

(MAKEPROP '|PrincipalIdealDomain| 'NILADIC T) 
