aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/ABELSG.lsp
blob: 7c2a2a7d718a4f528bf47132a290659f2122e436 (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
(/VERSIONCHECK 2) 

(DEFPARAMETER |AbelianSemiGroup;AL| 'NIL) 

(DEFUN |AbelianSemiGroup;| ()
  (PROG (#0=#:G1397)
    (RETURN
      (PROG1 (LETT #0#
                   (|Join| (|SetCategory|)
                           (|mkCategory| '|domain|
                               '(((+ ($ $ $)) T)
                                 ((* ($ (|PositiveInteger|) $)) T))
                               NIL '((|PositiveInteger|)) NIL))
                   |AbelianSemiGroup|)
        (SETELT #0# 0 '(|AbelianSemiGroup|)))))) 

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

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

(MAKEPROP '|AbelianSemiGroup| 'NILADIC T)