aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/SETAGG.lsp
blob: 37a253edc19cf4ae1a77fc6ac53f031815129788 (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
(/VERSIONCHECK 2) 

(DEFPARAMETER |SetAggregate;CAT| 'NIL) 

(DEFPARAMETER |SetAggregate;AL| 'NIL) 

(DEFUN |SetAggregate;| (|t#1|)
  (PROG (#0=#:G1397)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1|) (LIST (|devaluate| |t#1|)))
                       (COND
                         (|SetAggregate;CAT|)
                         ('T
                          (LETT |SetAggregate;CAT|
                                (|Join| (|SetCategory|)
                                        (|Collection| '|t#1|)
                                        (|mkCategory| '|domain|
                                         '(((|part?| ((|Boolean|) $ $))
                                            T)
                                           ((|brace| ($)) T)
                                           ((|brace|
                                             ($ (|List| |t#1|)))
                                            T)
                                           ((|set| ($)) T)
                                           ((|set| ($ (|List| |t#1|)))
                                            T)
                                           ((|intersect| ($ $ $)) T)
                                           ((|difference| ($ $ $)) T)
                                           ((|difference| ($ $ |t#1|))
                                            T)
                                           ((|symmetricDifference|
                                             ($ $ $))
                                            T)
                                           ((|subset?|
                                             ((|Boolean|) $ $))
                                            T)
                                           ((|union| ($ $ $)) T)
                                           ((|union| ($ $ |t#1|)) T)
                                           ((|union| ($ |t#1| $)) T))
                                         '((|partiallyOrderedSet| T))
                                         '((|Boolean|) (|List| |t#1|))
                                         NIL))
                                . #1=(|SetAggregate|))))) . #1#)
        (SETELT #0# 0 (LIST '|SetAggregate| (|devaluate| |t#1|))))))) 

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

(SETQ |$CategoryFrame|
      (|put| '|SetAggregate| '|isCategory| T
             (|addModemap| '|SetAggregate| '(|SetAggregate| |#1|)
                 '((|Category|) (|SetCategory|)) T '|SetAggregate|
                 |$CategoryFrame|)))