Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

build open-axiom

54512 views
1
2
(DECLAIM
3
(FTYPE (FUNCTION (|%Thing| |%Thing| |%Shell|) |%Boolean|) |AGG-;eq?;2$B;1|))
4
5
(PUT '|AGG-;eq?;2$B;1| '|SPADreplace| '|%peq|)
6
7
(DECLAIM (FTYPE (FUNCTION (|%Shell|) |%Thing|) |AGG-;sample;$;2|))
8
9
(DEFUN |AGG-;eq?;2$B;1| (|a| |b| $) (DECLARE (IGNORE $)) (EQ |a| |b|))
10
11
(DEFUN |AGG-;sample;$;2| ($) (SPADCALL (|shellEntry| $ 9)))
12
13
(DEFUN |Aggregate&| (|#1|)
14
(LET* ((|dv$1| (|devaluate| |#1|))
15
(|dv$| (LIST '|Aggregate&| |dv$1|))
16
($ (|newShell| 11))
17
(|pv$| (|buildPredVector| 0 0 NIL)))
18
(PROGN
19
(SETF (|shellEntry| $ 0) |dv$|)
20
(SETF (|shellEntry| $ 3) |pv$|)
21
(|stuffDomainSlots| $)
22
(SETF (|shellEntry| $ 6) |#1|)
23
$)))
24
25
(MAKEPROP '|Aggregate&| '|infovec|
26
(LIST
27
'#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|Boolean|)
28
|AGG-;eq?;2$B;1| (0 . |empty|)
29
(|%constant| (|AGG-;sample;$;2| $)))
30
'#(|sample| 4 |eq?| 8) 'NIL
31
(CONS (|makeByteWordVec2| 1 'NIL)
32
(CONS '#()
33
(CONS '#()
34
(|makeByteWordVec2| 10
35
'(0 6 0 9 0 0 0 10 2 0 7 0 0
36
8)))))
37
'|lookupComplete|))
38
39
(SETF (|dbTemplate| (|constructorDB| '|Aggregate&|))
40
#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|Boolean|) |AGG-;eq?;2$B;1|
41
(0 . |empty|) (|%constant| (|AGG-;sample;$;2| $))))
42
43
(SETF (|dbLookupFunction| (|constructorDB| '|Aggregate&|)) '|lookupComplete|)
44
45
(SETF (|dbConstructorForm| (|constructorDB| '|Aggregate&|)) '(|Aggregate&| S))
46
47
(SETF (|dbConstructorKind| (|constructorDB| '|Aggregate&|)) '|package|)
48
49
(SETF (|dbConstructorModemap| (|constructorDB| '|Aggregate&|))
50
'(((|Aggregate&| |#1|)
51
(CATEGORY |package| (SIGNATURE |sample| (|#1|) |constant|)
52
(SIGNATURE |eq?| ((|Boolean|) |#1| |#1|)))
53
(|Aggregate|))
54
(T |Aggregate&|)))
55
56
(SETF (|dbDualSignature| (|constructorDB| '|Aggregate&|)) '(NIL T))
57
58
(SETF (|dbSourceFile| (|constructorDB| '|Aggregate&|)) '"aggcat.spad")
59
60
(SETF (|dbOperations| (|constructorDB| '|Aggregate&|))
61
'((|sample| (($) 10 T CONST)) (|eq?| (((|Boolean|) $ $) 8 T ELT))))
62
63
(SETF (|dbOperationTable| (|constructorDB| '|Aggregate&|))
64
#(|sample| 4 |eq?| 8))
65
66
(SETF (|dbCapsuleDefinitions| (|constructorDB| '|Aggregate&|))
67
'((|AGG-;sample;$;2| ($)) (|AGG-;eq?;2$B;1| ((|Boolean|) $ $))))
68
69
(SETF (|dbAbbreviation| (|constructorDB| '|Aggregate&|)) 'AGG-)
70
71