Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

build open-axiom

54525 views
1
2
(DEFPARAMETER |AbelianMonoid;AL| NIL)
3
4
(DEFUN |AbelianMonoid;| ()
5
(LET ((#1=#:G541
6
(|Join| (|AbelianSemiGroup|)
7
(|mkCategory| '|domain|
8
'(((|Zero| ($) |constant|) T)
9
((|sample| ($) |constant|) T)
10
((|zero?| ((|Boolean|) $)) T)
11
((* ($ (|NonNegativeInteger|) $)) T)
12
((|opposite?| ((|Boolean|) $ $)) T))
13
NIL '((|Boolean|) (|NonNegativeInteger|)) NIL))))
14
(PROGN (SETF (|shellEntry| #1# 0) '(|AbelianMonoid|)) #1#)))
15
16
(DEFUN |AbelianMonoid| ()
17
(COND (|AbelianMonoid;AL|) (T (SETQ |AbelianMonoid;AL| (|AbelianMonoid;|)))))
18
19
(SETF (|dbConstructorDefault| (|constructorDB| '|AbelianMonoid|))
20
'|AbelianMonoid&|)
21
22
(SETF (|dbConstructorForm| (|constructorDB| '|AbelianMonoid|))
23
'(|AbelianMonoid|))
24
25
(SETF (|dbConstructorKind| (|constructorDB| '|AbelianMonoid|)) '|category|)
26
27
(SETF (|dbConstructorModemap| (|constructorDB| '|AbelianMonoid|))
28
'(((|AbelianMonoid|) (|Category|)) (T |AbelianMonoid|)))
29
30
(SETF (|dbDualSignature| (|constructorDB| '|AbelianMonoid|)) '(T))
31
32
(SETF (|dbCategory| (|constructorDB| '|AbelianMonoid|))
33
'(|Join| (|AbelianSemiGroup|)
34
(CATEGORY |domain| (SIGNATURE |Zero| ($) |constant|)
35
(SIGNATURE |sample| ($) |constant|)
36
(SIGNATURE |zero?| ((|Boolean|) $))
37
(SIGNATURE * ($ (|NonNegativeInteger|) $))
38
(SIGNATURE |opposite?| ((|Boolean|) $ $)))))
39
40
(SETF (|dbSourceFile| (|constructorDB| '|AbelianMonoid|)) '"catdef.spad")
41
42
(SETF (|dbModemaps| (|constructorDB| '|AbelianMonoid|))
43
'((|Zero| (*1 *1) (|ofCategory| *1 (|AbelianMonoid|)))
44
(|sample| (*1 *1) (|ofCategory| *1 (|AbelianMonoid|)))
45
(|zero?| (*1 *2 *1)
46
(AND (|ofCategory| *1 (|AbelianMonoid|))
47
(|isDomain| *2 (|Boolean|))))
48
(* (*1 *1 *2 *1)
49
(AND (|ofCategory| *1 (|AbelianMonoid|))
50
(|isDomain| *2 (|NonNegativeInteger|))))
51
(|opposite?| (*1 *2 *1 *1)
52
(AND (|ofCategory| *1 (|AbelianMonoid|))
53
(|isDomain| *2 (|Boolean|))))))
54
55
(SETF (|dbOperations| (|constructorDB| '|AbelianMonoid|))
56
'((~= (#1=((|Boolean|) $ $) 7 T ELT))
57
(|zero?| (((|Boolean|) $) 22 T ELT)) (|sample| (($) 23 T CONST))
58
(|opposite?| (((|Boolean|) $ $) 20 T ELT))
59
(|latex| (((|String|) $) 11 T ELT))
60
(|hash| (((|SingleInteger|) $) 12 T ELT))
61
(|coerce| (((|OutputForm|) $) 13 T ELT)) (|before?| (#1# 6 T ELT))
62
(|Zero| (($) 24 T CONST)) (= (#1# 8 T ELT)) (+ (($ $ $) 18 T ELT))
63
(* (($ (|PositiveInteger|) $) 17 T ELT)
64
(($ (|NonNegativeInteger|) $) 21 T ELT))))
65
66
(SETF (|dbAbbreviation| (|constructorDB| '|AbelianMonoid|)) 'ABELMON)
67
68
(SETF (|dbPrincipals| (|constructorDB| '|AbelianMonoid|))
69
'(((|AbelianSemiGroup|) . T)))
70
71
(SETF (|dbAncestors| (|constructorDB| '|AbelianMonoid|))
72
'(((|AbelianSemiGroup|) . T) ((|BasicType|) . T)
73
((|CoercibleTo| (|OutputForm|)) . T) ((|SetCategory|) . T)
74
((|Type|) . T)))
75
76