aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/CABMON.lsp
blob: a95397c0164a710754cf0dd56129c64c7e25b263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(/VERSIONCHECK 2) 

(DEFPARAMETER |CancellationAbelianMonoid;AL| 'NIL) 

(DEFUN |CancellationAbelianMonoid;| ()
  (PROG (#0=#:G1397)
    (RETURN
      (PROG1 (LETT #0#
                   (|Join| (|AbelianMonoid|)
                           (|mkCategory| '|domain|
                               '(((|subtractIfCan|
                                      ((|Union| $ "failed") $ $))
                                  T))
                               NIL 'NIL NIL))
                   |CancellationAbelianMonoid|)
        (SETELT #0# 0 '(|CancellationAbelianMonoid|)))))) 

(DEFUN |CancellationAbelianMonoid| ()
  (LET ()
    (COND
      (|CancellationAbelianMonoid;AL|)
      (T (SETQ |CancellationAbelianMonoid;AL|
               (|CancellationAbelianMonoid;|)))))) 

(SETQ |$CategoryFrame|
      (|put| '|CancellationAbelianMonoid| '|isCategory| T
             (|addModemap| '|CancellationAbelianMonoid|
                 '(|CancellationAbelianMonoid|) '((|Category|)) T
                 '|CancellationAbelianMonoid| |$CategoryFrame|))) 

(MAKEPROP '|CancellationAbelianMonoid| 'NILADIC T)