aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/CABMON.lsp
diff options
context:
space:
mode:
Diffstat (limited to 'src/algebra/strap/CABMON.lsp')
-rw-r--r--src/algebra/strap/CABMON.lsp26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/algebra/strap/CABMON.lsp b/src/algebra/strap/CABMON.lsp
new file mode 100644
index 00000000..d1059b38
--- /dev/null
+++ b/src/algebra/strap/CABMON.lsp
@@ -0,0 +1,26 @@
+
+(/VERSIONCHECK 2)
+
+(DEFPARAMETER |CancellationAbelianMonoid;AL| 'NIL)
+
+(DEFUN |CancellationAbelianMonoid| ()
+ (LET (#:G1387)
+ (COND
+ (|CancellationAbelianMonoid;AL|)
+ (T (SETQ |CancellationAbelianMonoid;AL|
+ (|CancellationAbelianMonoid;|))))))
+
+(DEFUN |CancellationAbelianMonoid;| ()
+ (PROG (#0=#:G1385)
+ (RETURN
+ (PROG1 (LETT #0#
+ (|Join| (|AbelianMonoid|)
+ (|mkCategory| '|domain|
+ '(((|subtractIfCan|
+ ((|Union| $ "failed") $ $))
+ T))
+ NIL 'NIL NIL))
+ |CancellationAbelianMonoid|)
+ (SETELT #0# 0 '(|CancellationAbelianMonoid|))))))
+
+(MAKEPROP '|CancellationAbelianMonoid| 'NILADIC T)