aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/HOAGG.lsp
blob: 97d2ffb6b6d11e660a394ce876803f9287721ad8 (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
(/VERSIONCHECK 2) 

(DEFPARAMETER |HomogeneousAggregate;CAT| 'NIL) 

(DEFPARAMETER |HomogeneousAggregate;AL| 'NIL) 

(DEFUN |HomogeneousAggregate;| (|t#1|)
  (PROG (#0=#:G1397)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|HomogeneousAggregate;CAT|)
                         ('T
                          (LETT |HomogeneousAggregate;CAT|
                                (|Join| (|Aggregate|)
                                        (|mkCategory| '|domain|
                                         '(((|map|
                                             ($ (|Mapping| |t#1| |t#1|)
                                              $))
                                            T)
                                           ((|map!|
                                             ($ (|Mapping| |t#1| |t#1|)
                                              $))
                                            (|has| $
                                             (ATTRIBUTE
                                              |shallowlyMutable|)))
                                           ((|any?|
                                             ((|Boolean|)
                                              (|Mapping| (|Boolean|)
                                               |t#1|)
                                              $))
                                            (|has| $
                                             (ATTRIBUTE
                                              |finiteAggregate|)))
                                           ((|every?|
                                             ((|Boolean|)
                                              (|Mapping| (|Boolean|)
                                               |t#1|)
                                              $))
                                            (|has| $
                                             (ATTRIBUTE
                                              |finiteAggregate|)))
                                           ((|count|
                                             ((|NonNegativeInteger|)
                                              (|Mapping| (|Boolean|)
                                               |t#1|)
                                              $))
                                            (|has| $
                                             (ATTRIBUTE
                                              |finiteAggregate|)))
                                           ((|parts|
                                             ((|List| |t#1|) $))
                                            (|has| $
                                             (ATTRIBUTE
                                              |finiteAggregate|)))
                                           ((|members|
                                             ((|List| |t#1|) $))
                                            (|has| $
                                             (ATTRIBUTE
                                              |finiteAggregate|)))
                                           ((|count|
                                             ((|NonNegativeInteger|)
                                              |t#1| $))
                                            (AND
                                             (|has| |t#1|
                                              (|SetCategory|))
                                             (|has| $
                                              (ATTRIBUTE
                                               |finiteAggregate|))))
                                           ((|member?|
                                             ((|Boolean|) |t#1| $))
                                            (AND
                                             (|has| |t#1|
                                              (|SetCategory|))
                                             (|has| $
                                              (ATTRIBUTE
                                               |finiteAggregate|)))))
                                         '(((|CoercibleTo|
                                             (|OutputForm|))
                                            (|has| |t#1|
                                             (|CoercibleTo|
                                              (|OutputForm|))))
                                           ((|SetCategory|)
                                            (|has| |t#1|
                                             (|SetCategory|)))
                                           ((|Evalable| |t#1|)
                                            (AND
                                             (|has| |t#1|
                                              (|Evalable| |t#1|))
                                             (|has| |t#1|
                                              (|SetCategory|)))))
                                         '((|Boolean|)
                                           (|NonNegativeInteger|)
                                           (|List| |t#1|))
                                         NIL))
                                . #1=(|HomogeneousAggregate|))))) . #1#)
        (|setShellEntry| #0# 0
            (LIST '|HomogeneousAggregate| (|devaluate| |t#1|))))))) 

(DEFUN |HomogeneousAggregate| (#0=#:G1398)
  (LET (#1=#:G1399)
    (COND
      ((SETQ #1# (|assoc| (|devaluate| #0#) |HomogeneousAggregate;AL|))
       (CDR #1#))
      (T (SETQ |HomogeneousAggregate;AL|
               (|cons5| (CONS (|devaluate| #0#)
                              (SETQ #1# (|HomogeneousAggregate;| #0#)))
                        |HomogeneousAggregate;AL|))
         #1#))))