aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/ABELSG.lsp
blob: 062071e2dd12540f5fba462ce741920b8b7bba50 (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
(/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|)
        (|setShellEntry| #0# 0 '(|AbelianSemiGroup|)))))) 

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

(MAKEPROP '|AbelianSemiGroup| 'NILADIC T)