blob: f0eaa266d09ebaf43e02afd324c1fe3efa987996 (
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
33
|
(/VERSIONCHECK 2)
(DEFPARAMETER |AbelianMonoid;AL| 'NIL)
(DEFUN |AbelianMonoid;| ()
(PROG (#0=#:G1398)
(RETURN
(PROG1 (LETT #0#
(|Join| (|AbelianSemiGroup|)
(|mkCategory| '|domain|
'(((|Zero| ($) |constant|) T)
((|sample| ($) |constant|) T)
((|zero?| ((|Boolean|) $)) T)
((* ($ (|NonNegativeInteger|) $)) T))
NIL
'((|NonNegativeInteger|) (|Boolean|))
NIL))
|AbelianMonoid|)
(SETELT #0# 0 '(|AbelianMonoid|))))))
(DEFUN |AbelianMonoid| ()
(LET ()
(COND
(|AbelianMonoid;AL|)
(T (SETQ |AbelianMonoid;AL| (|AbelianMonoid;|))))))
(SETQ |$CategoryFrame|
(|put| '|AbelianMonoid| '|isCategory| T
(|addModemap| '|AbelianMonoid| '(|AbelianMonoid|)
'((|Category|)) T '|AbelianMonoid| |$CategoryFrame|)))
(MAKEPROP '|AbelianMonoid| 'NILADIC T)
|