aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/TSETCAT.lsp
blob: 12fb6a33270a2fda5b06dc02d4447bff005c1023 (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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
(/VERSIONCHECK 2) 

(DEFPARAMETER |TriangularSetCategory;CAT| 'NIL) 

(DEFPARAMETER |TriangularSetCategory;AL| 'NIL) 

(DEFUN |TriangularSetCategory;| (|t#1| |t#2| |t#3| |t#4|)
  (PROG (#0=#:G1448)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(|t#1| |t#2| |t#3| |t#4|)
                             (LIST (|devaluate| |t#1|)
                                   (|devaluate| |t#2|)
                                   (|devaluate| |t#3|)
                                   (|devaluate| |t#4|)))
                       (COND
                         (|TriangularSetCategory;CAT|)
                         ('T
                          (LETT |TriangularSetCategory;CAT|
                                (|Join| (|PolynomialSetCategory| '|t#1|
                                         '|t#2| '|t#3| '|t#4|)
                                        (|mkCategory| '|domain|
                                         '(((|infRittWu?|
                                             ((|Boolean|) $ $))
                                            T)
                                           ((|basicSet|
                                             ((|Union|
                                               (|Record| (|:| |bas| $)
                                                (|:| |top|
                                                 (|List| |t#4|)))
                                               "failed")
                                              (|List| |t#4|)
                                              (|Mapping| (|Boolean|)
                                               |t#4| |t#4|)))
                                            T)
                                           ((|basicSet|
                                             ((|Union|
                                               (|Record| (|:| |bas| $)
                                                (|:| |top|
                                                 (|List| |t#4|)))
                                               "failed")
                                              (|List| |t#4|)
                                              (|Mapping| (|Boolean|)
                                               |t#4|)
                                              (|Mapping| (|Boolean|)
                                               |t#4| |t#4|)))
                                            T)
                                           ((|initials|
                                             ((|List| |t#4|) $))
                                            T)
                                           ((|degree|
                                             ((|NonNegativeInteger|) $))
                                            T)
                                           ((|quasiComponent|
                                             ((|Record|
                                               (|:| |close|
                                                (|List| |t#4|))
                                               (|:| |open|
                                                (|List| |t#4|)))
                                              $))
                                            T)
                                           ((|normalized?|
                                             ((|Boolean|) |t#4| $))
                                            T)
                                           ((|normalized?|
                                             ((|Boolean|) $))
                                            T)
                                           ((|reduced?|
                                             ((|Boolean|) |t#4| $
                                              (|Mapping| (|Boolean|)
                                               |t#4| |t#4|)))
                                            T)
                                           ((|stronglyReduced?|
                                             ((|Boolean|) |t#4| $))
                                            T)
                                           ((|headReduced?|
                                             ((|Boolean|) |t#4| $))
                                            T)
                                           ((|initiallyReduced?|
                                             ((|Boolean|) |t#4| $))
                                            T)
                                           ((|autoReduced?|
                                             ((|Boolean|) $
                                              (|Mapping| (|Boolean|)
                                               |t#4| (|List| |t#4|))))
                                            T)
                                           ((|stronglyReduced?|
                                             ((|Boolean|) $))
                                            T)
                                           ((|headReduced?|
                                             ((|Boolean|) $))
                                            T)
                                           ((|initiallyReduced?|
                                             ((|Boolean|) $))
                                            T)
                                           ((|reduce|
                                             (|t#4| |t#4| $
                                              (|Mapping| |t#4| |t#4|
                                               |t#4|)
                                              (|Mapping| (|Boolean|)
                                               |t#4| |t#4|)))
                                            T)
                                           ((|rewriteSetWithReduction|
                                             ((|List| |t#4|)
                                              (|List| |t#4|) $
                                              (|Mapping| |t#4| |t#4|
                                               |t#4|)
                                              (|Mapping| (|Boolean|)
                                               |t#4| |t#4|)))
                                            T)
                                           ((|stronglyReduce|
                                             (|t#4| |t#4| $))
                                            T)
                                           ((|headReduce|
                                             (|t#4| |t#4| $))
                                            T)
                                           ((|initiallyReduce|
                                             (|t#4| |t#4| $))
                                            T)
                                           ((|removeZero|
                                             (|t#4| |t#4| $))
                                            T)
                                           ((|collectQuasiMonic| ($ $))
                                            T)
                                           ((|reduceByQuasiMonic|
                                             (|t#4| |t#4| $))
                                            T)
                                           ((|zeroSetSplit|
                                             ((|List| $)
                                              (|List| |t#4|)))
                                            T)
                                           ((|zeroSetSplitIntoTriangularSystems|
                                             ((|List|
                                               (|Record|
                                                (|:| |close| $)
                                                (|:| |open|
                                                 (|List| |t#4|))))
                                              (|List| |t#4|)))
                                            T)
                                           ((|first|
                                             ((|Union| |t#4| "failed")
                                              $))
                                            T)
                                           ((|last|
                                             ((|Union| |t#4| "failed")
                                              $))
                                            T)
                                           ((|rest|
                                             ((|Union| $ "failed") $))
                                            T)
                                           ((|algebraicVariables|
                                             ((|List| |t#3|) $))
                                            T)
                                           ((|algebraic?|
                                             ((|Boolean|) |t#3| $))
                                            T)
                                           ((|select|
                                             ((|Union| |t#4| "failed")
                                              $ |t#3|))
                                            T)
                                           ((|extendIfCan|
                                             ((|Union| $ "failed") $
                                              |t#4|))
                                            T)
                                           ((|extend| ($ $ |t#4|)) T)
                                           ((|coHeight|
                                             ((|NonNegativeInteger|) $))
                                            (|has| |t#3| (|Finite|))))
                                         '((|finiteAggregate| T)
                                           (|shallowlyMutable| T))
                                         '((|NonNegativeInteger|)
                                           (|Boolean|) (|List| |t#3|)
                                           (|List|
                                            (|Record| (|:| |close| $)
                                             (|:| |open|
                                              (|List| |t#4|))))
                                           (|List| |t#4|) (|List| $))
                                         NIL))
                                . #1=(|TriangularSetCategory|))))) . #1#)
        (SETELT #0# 0
                (LIST '|TriangularSetCategory| (|devaluate| |t#1|)
                      (|devaluate| |t#2|) (|devaluate| |t#3|)
                      (|devaluate| |t#4|))))))) 

(DEFUN |TriangularSetCategory| (&REST #0=#:G1451 &AUX #1=#:G1449)
  (DSETQ #1# #0#)
  (LET (#2=#:G1450)
    (COND
      ((SETQ #2#
             (|assoc| (|devaluateList| #1#) |TriangularSetCategory;AL|))
       (CDR #2#))
      (T (SETQ |TriangularSetCategory;AL|
               (|cons5| (CONS (|devaluateList| #1#)
                              (SETQ #2#
                                    (APPLY #'|TriangularSetCategory;|
                                     #1#)))
                        |TriangularSetCategory;AL|))
         #2#)))) 

(SETQ |$CategoryFrame|
      (|put| '|TriangularSetCategory| '|isCategory| T
             (|addModemap| '|TriangularSetCategory|
                 '(|TriangularSetCategory| |#1| |#2| |#3| |#4|)
                 '((|Category|) (|IntegralDomain|)
                   (|OrderedAbelianMonoidSup|) (|OrderedSet|)
                   (|RecursivePolynomialCategory| |t#1| |t#2| |t#3|))
                 T '|TriangularSetCategory| |$CategoryFrame|)))