
(/VERSIONCHECK 2) 

(DEFPARAMETER |Monoid;AL| 'NIL) 

(DEFUN |Monoid| ()
  (LET (#:G2896)
    (COND (|Monoid;AL|) (T (SETQ |Monoid;AL| (|Monoid;|)))))) 

(DEFUN |Monoid;| ()
  (PROG (#1=#:G2894)
    (RETURN
     (PROG1
         (LETT #1#
               (|Join| (|SemiGroup|)
                       (|mkCategory| '|domain|
                                     '(((|One| ($) |constant|) T)
                                       ((|sample| ($) |constant|) T)
                                       ((|one?| ((|Boolean|) $)) T)
                                       ((^ ($ $ (|NonNegativeInteger|))) T)
                                       ((|recip| ((|Union| $ "failed") $)) T))
                                     NIL '((|NonNegativeInteger|) (|Boolean|))
                                     NIL))
               |Monoid|)
       (SETELT #1# 0 '(|Monoid|)))))) 

(MAKEPROP '|Monoid| 'NILADIC T) 
