aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/CABMON.lsp
blob: 0d547bd5e04507b4f86dbc57a9f977342ecd7097 (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| ()
  (LET (#:G1396)
    (COND
      (|CancellationAbelianMonoid;AL|)
      (T (SETQ |CancellationAbelianMonoid;AL|
               (|CancellationAbelianMonoid;|)))))) 

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

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

(MAKEPROP '|CancellationAbelianMonoid| 'NILADIC T)