aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/MONOID.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/strap/MONOID.lsp')
-rw-r--r--src/algebra/strap/MONOID.lsp28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/algebra/strap/MONOID.lsp b/src/algebra/strap/MONOID.lsp
new file mode 100644
index 00000000..eecfccc9
--- /dev/null
+++ b/src/algebra/strap/MONOID.lsp
@@ -0,0 +1,28 @@
+
+(/VERSIONCHECK 2)
+
+(DEFPARAMETER |Monoid;AL| 'NIL)
+
+(DEFUN |Monoid| ()
+ (LET (#:G1388)
+ (COND (|Monoid;AL|) (T (SETQ |Monoid;AL| (|Monoid;|))))))
+
+(DEFUN |Monoid;| ()
+ (PROG (#0=#:G1386)
+ (RETURN
+ (PROG1 (LETT #0#
+ (|Join| (|SemiGroup|)
+ (|mkCategory| '|domain|
+ '(((|One| ($) |constant|) T)
+ ((|sample| ($) |constant|) T)
+ ((|one?| ((|Boolean|) $)) T)
+ ((** ($ $ (|NonNegativeInteger|))) T)
+ ((^ ($ $ (|NonNegativeInteger|))) T)
+ ((|recip| ((|Union| $ "failed") $)) T))
+ NIL
+ '((|NonNegativeInteger|) (|Boolean|))
+ NIL))
+ |Monoid|)
+ (SETELT #0# 0 '(|Monoid|))))))
+
+(MAKEPROP '|Monoid| 'NILADIC T)