diff options
Diffstat (limited to 'src/algebra/strap/LIST.lsp')
-rw-r--r-- | src/algebra/strap/LIST.lsp | 475 |
1 files changed, 395 insertions, 80 deletions
diff --git a/src/algebra/strap/LIST.lsp b/src/algebra/strap/LIST.lsp index 69ffd104..2cb74e75 100644 --- a/src/algebra/strap/LIST.lsp +++ b/src/algebra/strap/LIST.lsp @@ -18,15 +18,17 @@ (DEFUN |LIST;append;3$;4| (|l| |t| $) (APPEND |l| |t|)) (DEFUN |LIST;writeOMList| (|dev| |x| $) - (SEQ (SPADCALL |dev| (QREFELT $ 14)) - (SPADCALL |dev| "list1" "list" (QREFELT $ 16)) + (SEQ (SPADCALL |dev| (|getShellEntry| $ 14)) + (SPADCALL |dev| "list1" "list" (|getShellEntry| $ 16)) (SEQ G190 (COND - ((NULL (SPADCALL (NULL |x|) (QREFELT $ 17))) (GO G191))) - (SEQ (SPADCALL |dev| (|SPADfirst| |x|) 'NIL (QREFELT $ 18)) + ((NULL (SPADCALL (NULL |x|) (|getShellEntry| $ 17))) + (GO G191))) + (SEQ (SPADCALL |dev| (|SPADfirst| |x|) 'NIL + (|getShellEntry| $ 18)) (EXIT (LETT |x| (CDR |x|) |LIST;writeOMList|))) NIL (GO G190) G191 (EXIT NIL)) - (EXIT (SPADCALL |dev| (QREFELT $ 19))))) + (EXIT (SPADCALL |dev| (|getShellEntry| $ 19))))) (DEFUN |LIST;OMwrite;$S;6| (|x| $) (PROG (|sp| |dev| |s|) @@ -34,13 +36,13 @@ (SEQ (LETT |s| "" |LIST;OMwrite;$S;6|) (LETT |sp| (OM-STRINGTOSTRINGPTR |s|) |LIST;OMwrite;$S;6|) (LETT |dev| - (SPADCALL |sp| (SPADCALL (QREFELT $ 21)) - (QREFELT $ 22)) + (SPADCALL |sp| (SPADCALL (|getShellEntry| $ 21)) + (|getShellEntry| $ 22)) |LIST;OMwrite;$S;6|) - (SPADCALL |dev| (QREFELT $ 23)) + (SPADCALL |dev| (|getShellEntry| $ 23)) (|LIST;writeOMList| |dev| |x| $) - (SPADCALL |dev| (QREFELT $ 24)) - (SPADCALL |dev| (QREFELT $ 25)) + (SPADCALL |dev| (|getShellEntry| $ 24)) + (SPADCALL |dev| (|getShellEntry| $ 25)) (LETT |s| (OM-STRINGPTRTOSTRING |sp|) |LIST;OMwrite;$S;6|) (EXIT |s|))))) @@ -50,41 +52,44 @@ (SEQ (LETT |s| "" |LIST;OMwrite;$BS;7|) (LETT |sp| (OM-STRINGTOSTRINGPTR |s|) |LIST;OMwrite;$BS;7|) (LETT |dev| - (SPADCALL |sp| (SPADCALL (QREFELT $ 21)) - (QREFELT $ 22)) + (SPADCALL |sp| (SPADCALL (|getShellEntry| $ 21)) + (|getShellEntry| $ 22)) |LIST;OMwrite;$BS;7|) - (COND (|wholeObj| (SPADCALL |dev| (QREFELT $ 23)))) + (COND (|wholeObj| (SPADCALL |dev| (|getShellEntry| $ 23)))) (|LIST;writeOMList| |dev| |x| $) - (COND (|wholeObj| (SPADCALL |dev| (QREFELT $ 24)))) - (SPADCALL |dev| (QREFELT $ 25)) + (COND (|wholeObj| (SPADCALL |dev| (|getShellEntry| $ 24)))) + (SPADCALL |dev| (|getShellEntry| $ 25)) (LETT |s| (OM-STRINGPTRTOSTRING |sp|) |LIST;OMwrite;$BS;7|) (EXIT |s|))))) (DEFUN |LIST;OMwrite;Omd$V;8| (|dev| |x| $) - (SEQ (SPADCALL |dev| (QREFELT $ 23)) (|LIST;writeOMList| |dev| |x| $) - (EXIT (SPADCALL |dev| (QREFELT $ 24))))) + (SEQ (SPADCALL |dev| (|getShellEntry| $ 23)) + (|LIST;writeOMList| |dev| |x| $) + (EXIT (SPADCALL |dev| (|getShellEntry| $ 24))))) (DEFUN |LIST;OMwrite;Omd$BV;9| (|dev| |x| |wholeObj| $) - (SEQ (COND (|wholeObj| (SPADCALL |dev| (QREFELT $ 23)))) + (SEQ (COND (|wholeObj| (SPADCALL |dev| (|getShellEntry| $ 23)))) (|LIST;writeOMList| |dev| |x| $) - (EXIT (COND (|wholeObj| (SPADCALL |dev| (QREFELT $ 24))))))) + (EXIT (COND + (|wholeObj| (SPADCALL |dev| (|getShellEntry| $ 24))))))) (DEFUN |LIST;setUnion;3$;10| (|l1| |l2| $) - (SPADCALL (SPADCALL |l1| |l2| (QREFELT $ 30)) (QREFELT $ 31))) + (SPADCALL (SPADCALL |l1| |l2| (|getShellEntry| $ 30)) + (|getShellEntry| $ 31))) (DEFUN |LIST;setIntersection;3$;11| (|l1| |l2| $) (PROG (|u|) (RETURN (SEQ (LETT |u| NIL |LIST;setIntersection;3$;11|) - (LETT |l1| (SPADCALL |l1| (QREFELT $ 31)) + (LETT |l1| (SPADCALL |l1| (|getShellEntry| $ 31)) |LIST;setIntersection;3$;11|) (SEQ G190 (COND - ((NULL (SPADCALL (NULL |l1|) (QREFELT $ 17))) + ((NULL (SPADCALL (NULL |l1|) (|getShellEntry| $ 17))) (GO G191))) (SEQ (COND ((SPADCALL (|SPADfirst| |l1|) |l2| - (QREFELT $ 33)) + (|getShellEntry| $ 33)) (LETT |u| (CONS (|SPADfirst| |l1|) |u|) |LIST;setIntersection;3$;11|))) (EXIT (LETT |l1| (CDR |l1|) @@ -95,17 +100,19 @@ (DEFUN |LIST;setDifference;3$;12| (|l1| |l2| $) (PROG (|l11| |lu|) (RETURN - (SEQ (LETT |l1| (SPADCALL |l1| (QREFELT $ 31)) + (SEQ (LETT |l1| (SPADCALL |l1| (|getShellEntry| $ 31)) |LIST;setDifference;3$;12|) (LETT |lu| NIL |LIST;setDifference;3$;12|) (SEQ G190 (COND - ((NULL (SPADCALL (NULL |l1|) (QREFELT $ 17))) + ((NULL (SPADCALL (NULL |l1|) (|getShellEntry| $ 17))) (GO G191))) - (SEQ (LETT |l11| (SPADCALL |l1| 1 (QREFELT $ 36)) + (SEQ (LETT |l11| + (SPADCALL |l1| 1 (|getShellEntry| $ 36)) |LIST;setDifference;3$;12|) (COND - ((NULL (SPADCALL |l11| |l2| (QREFELT $ 33))) + ((NULL (SPADCALL |l11| |l2| + (|getShellEntry| $ 33))) (LETT |lu| (CONS |l11| |lu|) |LIST;setDifference;3$;12|))) (EXIT (LETT |l1| (CDR |l1|) @@ -114,11 +121,12 @@ (EXIT |lu|))))) (DEFUN |LIST;convert;$If;13| (|x| $) - (PROG (#0=#:G1440 |a| #1=#:G1441) + (PROG (#0=#:G1437 |a| #1=#:G1438) (RETURN (SEQ (SPADCALL - (CONS (SPADCALL (SPADCALL "construct" (QREFELT $ 39)) - (QREFELT $ 41)) + (CONS (SPADCALL + (SPADCALL "construct" (|getShellEntry| $ 39)) + (|getShellEntry| $ 41)) (PROGN (LETT #0# NIL |LIST;convert;$If;13|) (SEQ (LETT |a| NIL |LIST;convert;$If;13|) @@ -132,17 +140,18 @@ (GO G191))) (SEQ (EXIT (LETT #0# (CONS - (SPADCALL |a| (QREFELT $ 42)) + (SPADCALL |a| + (|getShellEntry| $ 42)) #0#) |LIST;convert;$If;13|))) (LETT #1# (CDR #1#) |LIST;convert;$If;13|) (GO G190) G191 (EXIT (NREVERSE0 #0#))))) - (QREFELT $ 44)))))) + (|getShellEntry| $ 44)))))) -(DEFUN |List| (#0=#:G1452) +(DEFUN |List| (#0=#:G1446) (PROG () (RETURN - (PROG (#1=#:G1453) + (PROG (#1=#:G1447) (RETURN (COND ((LETT #1# @@ -157,76 +166,77 @@ (COND ((NOT #1#) (HREM |$ConstructorCache| '|List|))))))))))) (DEFUN |List;| (|#1|) - (PROG (|dv$1| |dv$| $ #0=#:G1451 #1=#:G1449 |pv$|) + (PROG (|dv$1| |dv$| $ |pv$|) (RETURN (PROGN - (LETT |dv$1| (|devaluate| |#1|) . #2=(|List|)) - (LETT |dv$| (LIST '|List| |dv$1|) . #2#) - (LETT $ (GETREFV 63) . #2#) - (QSETREFV $ 0 |dv$|) - (QSETREFV $ 3 + (LETT |dv$1| (|devaluate| |#1|) . #0=(|List|)) + (LETT |dv$| (LIST '|List| |dv$1|) . #0#) + (LETT $ (|newShell| 63) . #0#) + (|setShellEntry| $ 0 |dv$|) + (|setShellEntry| $ 3 (LETT |pv$| (|buildPredVector| 0 0 - (LIST (|HasCategory| |#1| - '(|ConvertibleTo| (|InputForm|))) - (|HasCategory| |#1| '(|OrderedSet|)) - (|HasCategory| |#1| '(|OpenMath|)) - (|HasCategory| (|Integer|) '(|OrderedSet|)) - (LETT #0# - (|HasCategory| |#1| '(|SetCategory|)) . #2#) - (OR (|HasCategory| |#1| '(|OrderedSet|)) - #0#) - (AND #0# - (|HasCategory| |#1| - (LIST '|Evalable| - (|devaluate| |#1|)))) - (OR (AND (|HasCategory| |#1| + (LIST (OR (AND (|HasCategory| |#1| '(|OrderedSet|)) (|HasCategory| |#1| (LIST '|Evalable| (|devaluate| |#1|)))) - (AND #0# + (AND (|HasCategory| |#1| + '(|SetCategory|)) (|HasCategory| |#1| (LIST '|Evalable| (|devaluate| |#1|))))) - (LETT #1# - (|HasCategory| |#1| - '(|CoercibleTo| (|OutputForm|))) . #2#) - (OR (AND #0# + (OR (AND (|HasCategory| |#1| + '(|SetCategory|)) (|HasCategory| |#1| (LIST '|Evalable| (|devaluate| |#1|)))) - #1#))) . #2#)) + (|HasCategory| |#1| + '(|CoercibleTo| (|OutputForm|)))) + (|HasCategory| |#1| + '(|ConvertibleTo| (|InputForm|))) + (OR (|HasCategory| |#1| '(|OrderedSet|)) + (|HasCategory| |#1| '(|SetCategory|))) + (|HasCategory| |#1| '(|OrderedSet|)) + (|HasCategory| |#1| '(|OpenMath|)) + (|HasCategory| (|Integer|) '(|OrderedSet|)) + (|HasCategory| |#1| '(|SetCategory|)) + (AND (|HasCategory| |#1| '(|SetCategory|)) + (|HasCategory| |#1| + (LIST '|Evalable| + (|devaluate| |#1|)))) + (|HasCategory| |#1| + '(|CoercibleTo| (|OutputForm|))))) . #0#)) (|haddProp| |$ConstructorCache| '|List| (LIST |dv$1|) (CONS 1 $)) (|stuffDomainSlots| $) - (QSETREFV $ 6 |#1|) + (|setShellEntry| $ 6 |#1|) (COND - ((|testBitVector| |pv$| 3) + ((|testBitVector| |pv$| 6) (PROGN - (QSETREFV $ 26 + (|setShellEntry| $ 26 (CONS (|dispatchFunction| |LIST;OMwrite;$S;6|) $)) - (QSETREFV $ 27 + (|setShellEntry| $ 27 (CONS (|dispatchFunction| |LIST;OMwrite;$BS;7|) $)) - (QSETREFV $ 28 + (|setShellEntry| $ 28 (CONS (|dispatchFunction| |LIST;OMwrite;Omd$V;8|) $)) - (QSETREFV $ 29 + (|setShellEntry| $ 29 (CONS (|dispatchFunction| |LIST;OMwrite;Omd$BV;9|) $))))) (COND - ((|testBitVector| |pv$| 5) + ((|testBitVector| |pv$| 8) (PROGN - (QSETREFV $ 32 + (|setShellEntry| $ 32 (CONS (|dispatchFunction| |LIST;setUnion;3$;10|) $)) - (QSETREFV $ 34 + (|setShellEntry| $ 34 (CONS (|dispatchFunction| |LIST;setIntersection;3$;11|) $)) - (QSETREFV $ 37 + (|setShellEntry| $ 37 (CONS (|dispatchFunction| |LIST;setDifference;3$;12|) $))))) (COND - ((|testBitVector| |pv$| 1) - (QSETREFV $ 45 + ((|testBitVector| |pv$| 3) + (|setShellEntry| $ 45 (CONS (|dispatchFunction| |LIST;convert;$If;13|) $)))) $)))) @@ -247,7 +257,7 @@ (119 . |coerce|) (|InputForm|) (124 . |convert|) (129 . |convert|) (|List| $) (134 . |convert|) (139 . |convert|) (|Mapping| 6 6 6) (|NonNegativeInteger|) - (|List| 6) (|List| 50) (|Equation| 6) (|Mapping| 8 6) + (|List| 6) (|Equation| 6) (|List| 49) (|Mapping| 8 6) (|Mapping| 8 6 6) (|UniversalSegment| 35) '"last" '"rest" '"first" '"value" (|Mapping| 6 6) (|OutputForm|) (|SingleInteger|) (|List| 35) (|Union| 6 '"failed")) @@ -256,8 +266,8 @@ |elt| 182 |convert| 188 |cons| 193 |concat| 199 |append| 205 |OMwrite| 211) '((|shallowlyMutable| . 0) (|finiteAggregate| . 0)) - (CONS (|makeByteWordVec2| 10 - '(0 0 0 0 0 0 0 0 0 0 2 0 0 8 6 0 0 8 10 1 6 3)) + (CONS (|makeByteWordVec2| 6 + '(0 0 0 0 0 0 0 0 0 0 5 0 0 1 4 0 0 1 2 3 4 6)) (CONS '#(|ListAggregate&| |StreamAggregate&| |ExtensibleLinearAggregate&| |FiniteLinearAggregate&| @@ -293,10 +303,315 @@ 0 0 0 32 2 0 8 6 0 33 2 0 0 0 0 34 2 0 6 0 35 36 2 0 0 0 0 37 1 38 0 15 39 1 40 0 38 41 1 6 40 0 42 1 40 0 43 44 - 1 0 40 0 45 2 5 0 0 0 32 2 5 0 0 0 34 - 2 5 0 0 0 37 1 5 0 0 31 1 0 8 0 9 0 0 - 0 7 2 5 8 6 0 33 2 0 6 0 35 36 1 1 40 + 1 0 40 0 45 2 8 0 0 0 32 2 8 0 0 0 34 + 2 8 0 0 0 37 1 8 0 0 31 1 0 8 0 9 0 0 + 0 7 2 8 8 6 0 33 2 0 6 0 35 36 1 3 40 0 45 2 0 0 6 0 10 2 0 0 0 0 30 2 0 0 - 0 0 11 3 3 12 13 0 8 29 2 3 12 13 0 - 28 1 3 15 0 26 2 3 15 0 8 27))))) + 0 0 11 3 6 12 13 0 8 29 2 6 12 13 0 + 28 1 6 15 0 26 2 6 15 0 8 27))))) '|lookupIncomplete|)) + +(SETQ |$CategoryFrame| + (|put| '|List| '|isFunctor| + '(((~= ((|Boolean|) $ $)) (|has| |#1| (|SetCategory|)) + (ELT $ NIL)) + ((= ((|Boolean|) $ $)) (|has| |#1| (|SetCategory|)) + (ELT $ NIL)) + ((|coerce| ((|OutputForm|) $)) + (|has| |#1| (|CoercibleTo| (|OutputForm|))) + (ELT $ NIL)) + ((|hash| ((|SingleInteger|) $)) + (|has| |#1| (|SetCategory|)) (ELT $ NIL)) + ((|latex| ((|String|) $)) (|has| |#1| (|SetCategory|)) + (ELT $ NIL)) + ((|OMwrite| ((|Void|) (|OpenMathDevice|) $ (|Boolean|))) + (|has| |#1| (|OpenMath|)) (ELT $ 29)) + ((|OMwrite| ((|Void|) (|OpenMathDevice|) $)) + (|has| |#1| (|OpenMath|)) (ELT $ 28)) + ((|OMwrite| ((|String|) $ (|Boolean|))) + (|has| |#1| (|OpenMath|)) (ELT $ 27)) + ((|OMwrite| ((|String|) $)) (|has| |#1| (|OpenMath|)) + (ELT $ 26)) + ((|setDifference| ($ $ $)) (|has| |#1| (|SetCategory|)) + (ELT $ 37)) + ((|setIntersection| ($ $ $)) + (|has| |#1| (|SetCategory|)) (ELT $ 34)) + ((|setUnion| ($ $ $)) (|has| |#1| (|SetCategory|)) + (ELT $ 32)) + ((|append| ($ $ $)) T (ELT $ 11)) + ((|cons| ($ |#1| $)) T (ELT $ 10)) + ((|null| ((|Boolean|) $)) T (ELT $ 9)) + ((|nil| ($)) T (ELT $ 7)) + ((|list| ($ |#1|)) T (ELT $ NIL)) + ((|concat!| ($ $ |#1|)) T (ELT $ NIL)) + ((|concat!| ($ $ $)) T (ELT $ NIL)) + ((|delete!| ($ $ (|Integer|))) T (ELT $ NIL)) + ((|delete!| ($ $ (|UniversalSegment| (|Integer|)))) T + (ELT $ NIL)) + ((|remove!| ($ (|Mapping| (|Boolean|) |#1|) $)) T + (ELT $ NIL)) + ((|insert!| ($ |#1| $ (|Integer|))) T (ELT $ NIL)) + ((|insert!| ($ $ $ (|Integer|))) T (ELT $ NIL)) + ((|merge!| ($ (|Mapping| (|Boolean|) |#1| |#1|) $ $)) T + (ELT $ NIL)) + ((|select!| ($ (|Mapping| (|Boolean|) |#1|) $)) T + (ELT $ NIL)) + ((|remove!| ($ |#1| $)) (|has| |#1| (|SetCategory|)) + (ELT $ NIL)) + ((|removeDuplicates!| ($ $)) + (|has| |#1| (|SetCategory|)) (ELT $ NIL)) + ((|merge!| ($ $ $)) (|has| |#1| (|OrderedSet|)) + (ELT $ NIL)) + ((|merge| ($ (|Mapping| (|Boolean|) |#1| |#1|) $ $)) T + (ELT $ NIL)) + ((|reverse| ($ $)) T (ELT $ NIL)) + ((|sort| ($ (|Mapping| (|Boolean|) |#1| |#1|) $)) T + (ELT $ NIL)) + ((|sorted?| + ((|Boolean|) (|Mapping| (|Boolean|) |#1| |#1|) $)) + T (ELT $ NIL)) + ((|position| + ((|Integer|) (|Mapping| (|Boolean|) |#1|) $)) + T (ELT $ NIL)) + ((|position| ((|Integer|) |#1| $)) + (|has| |#1| (|SetCategory|)) (ELT $ NIL)) + ((|position| ((|Integer|) |#1| $ (|Integer|))) + (|has| |#1| (|SetCategory|)) (ELT $ NIL)) + ((|merge| ($ $ $)) (|has| |#1| (|OrderedSet|)) + (ELT $ NIL)) + ((|sort| ($ $)) (|has| |#1| (|OrderedSet|)) (ELT $ NIL)) + ((|sorted?| ((|Boolean|) $)) (|has| |#1| (|OrderedSet|)) + (ELT $ NIL)) + ((|copyInto!| ($ $ $ (|Integer|))) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|reverse!| ($ $)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|sort!| ($ (|Mapping| (|Boolean|) |#1| |#1|) $)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|sort!| ($ $)) + (AND (|has| $ (ATTRIBUTE |shallowlyMutable|)) + (|has| |#1| (|OrderedSet|))) + (ELT $ NIL)) + ((|min| ($ $ $)) (|has| |#1| (|OrderedSet|)) + (ELT $ NIL)) + ((|max| ($ $ $)) (|has| |#1| (|OrderedSet|)) + (ELT $ NIL)) + ((<= ((|Boolean|) $ $)) (|has| |#1| (|OrderedSet|)) + (ELT $ NIL)) + ((>= ((|Boolean|) $ $)) (|has| |#1| (|OrderedSet|)) + (ELT $ NIL)) + ((> ((|Boolean|) $ $)) (|has| |#1| (|OrderedSet|)) + (ELT $ NIL)) + ((< ((|Boolean|) $ $)) (|has| |#1| (|OrderedSet|)) + (ELT $ NIL)) + ((|possiblyInfinite?| ((|Boolean|) $)) T (ELT $ NIL)) + ((|explicitlyFinite?| ((|Boolean|) $)) T (ELT $ NIL)) + ((|qsetelt!| (|#1| $ (|Integer|) |#1|)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|setelt| (|#1| $ (|Integer|) |#1|)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|qelt| (|#1| $ (|Integer|))) T (ELT $ NIL)) + ((|elt| (|#1| $ (|Integer|) |#1|)) T (ELT $ NIL)) + ((|elt| (|#1| $ (|Integer|))) T (ELT $ 36)) + ((|entries| ((|List| |#1|) $)) T (ELT $ NIL)) + ((|index?| ((|Boolean|) (|Integer|) $)) T (ELT $ NIL)) + ((|indices| ((|List| (|Integer|)) $)) T (ELT $ NIL)) + ((|entry?| ((|Boolean|) |#1| $)) + (AND (|has| $ (ATTRIBUTE |finiteAggregate|)) + (|has| |#1| (|SetCategory|))) + (ELT $ NIL)) + ((|maxIndex| ((|Integer|) $)) + (|has| (|Integer|) (|OrderedSet|)) (ELT $ NIL)) + ((|minIndex| ((|Integer|) $)) + (|has| (|Integer|) (|OrderedSet|)) (ELT $ NIL)) + ((|fill!| ($ $ |#1|)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|swap!| ((|Void|) $ (|Integer|) (|Integer|))) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|convert| ((|InputForm|) $)) + (|has| |#1| (|ConvertibleTo| (|InputForm|))) + (ELT $ 45)) + ((|removeDuplicates| ($ $)) + (AND (|has| $ (ATTRIBUTE |finiteAggregate|)) + (|has| |#1| (|SetCategory|))) + (ELT $ 31)) + ((|remove| ($ |#1| $)) + (AND (|has| $ (ATTRIBUTE |finiteAggregate|)) + (|has| |#1| (|SetCategory|))) + (ELT $ NIL)) + ((|reduce| + (|#1| (|Mapping| |#1| |#1| |#1|) $ |#1| |#1|)) + (AND (|has| $ (ATTRIBUTE |finiteAggregate|)) + (|has| |#1| (|SetCategory|))) + (ELT $ NIL)) + ((|select| ($ (|Mapping| (|Boolean|) |#1|) $)) + (|has| $ (ATTRIBUTE |finiteAggregate|)) (ELT $ NIL)) + ((|remove| ($ (|Mapping| (|Boolean|) |#1|) $)) + (|has| $ (ATTRIBUTE |finiteAggregate|)) (ELT $ NIL)) + ((|reduce| (|#1| (|Mapping| |#1| |#1| |#1|) $ |#1|)) + (|has| $ (ATTRIBUTE |finiteAggregate|)) (ELT $ NIL)) + ((|reduce| (|#1| (|Mapping| |#1| |#1| |#1|) $)) + (|has| $ (ATTRIBUTE |finiteAggregate|)) (ELT $ NIL)) + ((|find| ((|Union| |#1| "failed") + (|Mapping| (|Boolean|) |#1|) $)) + T (ELT $ NIL)) + ((|construct| ($ (|List| |#1|))) T (ELT $ NIL)) + ((|new| ($ (|NonNegativeInteger|) |#1|)) T (ELT $ NIL)) + ((|concat| ($ $ |#1|)) T (ELT $ NIL)) + ((|concat| ($ (|List| $))) T (ELT $ NIL)) + ((|map| ($ (|Mapping| |#1| |#1| |#1|) $ $)) T + (ELT $ NIL)) + ((|elt| ($ $ (|UniversalSegment| (|Integer|)))) T + (ELT $ NIL)) + ((|delete| ($ $ (|Integer|))) T (ELT $ NIL)) + ((|delete| ($ $ (|UniversalSegment| (|Integer|)))) T + (ELT $ NIL)) + ((|insert| ($ |#1| $ (|Integer|))) T (ELT $ NIL)) + ((|insert| ($ $ $ (|Integer|))) T (ELT $ NIL)) + ((|setelt| + (|#1| $ (|UniversalSegment| (|Integer|)) |#1|)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|split!| ($ $ (|Integer|))) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|setelt| (|#1| $ "last" |#1|)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|setlast!| (|#1| $ |#1|)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|setelt| ($ $ "rest" $)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|setrest!| ($ $ $)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|setelt| (|#1| $ "first" |#1|)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|setfirst!| (|#1| $ |#1|)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|cycleSplit!| ($ $)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|cycleTail| ($ $)) T (ELT $ NIL)) + ((|cycleLength| ((|NonNegativeInteger|) $)) T + (ELT $ NIL)) + ((|cycleEntry| ($ $)) T (ELT $ NIL)) + ((|third| (|#1| $)) T (ELT $ NIL)) + ((|second| (|#1| $)) T (ELT $ NIL)) + ((|tail| ($ $)) T (ELT $ NIL)) + ((|last| ($ $ (|NonNegativeInteger|))) T (ELT $ NIL)) + ((|elt| (|#1| $ "last")) T (ELT $ NIL)) + ((|last| (|#1| $)) T (ELT $ NIL)) + ((|rest| ($ $ (|NonNegativeInteger|))) T (ELT $ NIL)) + ((|elt| ($ $ "rest")) T (ELT $ NIL)) + ((|rest| ($ $)) T (ELT $ NIL)) + ((|first| ($ $ (|NonNegativeInteger|))) T (ELT $ NIL)) + ((|elt| (|#1| $ "first")) T (ELT $ NIL)) + ((|first| (|#1| $)) T (ELT $ NIL)) + ((|concat| ($ |#1| $)) T (ELT $ NIL)) + ((|concat| ($ $ $)) T (ELT $ 30)) + ((|setvalue!| (|#1| $ |#1|)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|setelt| (|#1| $ "value" |#1|)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|setchildren!| ($ $ (|List| $))) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|node?| ((|Boolean|) $ $)) + (|has| |#1| (|SetCategory|)) (ELT $ NIL)) + ((|child?| ((|Boolean|) $ $)) + (|has| |#1| (|SetCategory|)) (ELT $ NIL)) + ((|distance| ((|Integer|) $ $)) T (ELT $ NIL)) + ((|leaves| ((|List| |#1|) $)) T (ELT $ NIL)) + ((|cyclic?| ((|Boolean|) $)) T (ELT $ NIL)) + ((|elt| (|#1| $ "value")) T (ELT $ NIL)) + ((|value| (|#1| $)) T (ELT $ NIL)) + ((|leaf?| ((|Boolean|) $)) T (ELT $ NIL)) + ((|nodes| ((|List| $) $)) T (ELT $ NIL)) + ((|children| ((|List| $) $)) T (ELT $ NIL)) + ((|eval| ($ $ (|List| |#1|) (|List| |#1|))) + (AND (|has| |#1| (|Evalable| |#1|)) + (|has| |#1| (|SetCategory|))) + (ELT $ NIL)) + ((|eval| ($ $ |#1| |#1|)) + (AND (|has| |#1| (|Evalable| |#1|)) + (|has| |#1| (|SetCategory|))) + (ELT $ NIL)) + ((|eval| ($ $ (|Equation| |#1|))) + (AND (|has| |#1| (|Evalable| |#1|)) + (|has| |#1| (|SetCategory|))) + (ELT $ NIL)) + ((|eval| ($ $ (|List| (|Equation| |#1|)))) + (AND (|has| |#1| (|Evalable| |#1|)) + (|has| |#1| (|SetCategory|))) + (ELT $ NIL)) + ((|member?| ((|Boolean|) |#1| $)) + (AND (|has| $ (ATTRIBUTE |finiteAggregate|)) + (|has| |#1| (|SetCategory|))) + (ELT $ 33)) + ((|count| ((|NonNegativeInteger|) |#1| $)) + (AND (|has| $ (ATTRIBUTE |finiteAggregate|)) + (|has| |#1| (|SetCategory|))) + (ELT $ NIL)) + ((|members| ((|List| |#1|) $)) + (|has| $ (ATTRIBUTE |finiteAggregate|)) (ELT $ NIL)) + ((|parts| ((|List| |#1|) $)) + (|has| $ (ATTRIBUTE |finiteAggregate|)) (ELT $ NIL)) + ((|count| ((|NonNegativeInteger|) + (|Mapping| (|Boolean|) |#1|) $)) + (|has| $ (ATTRIBUTE |finiteAggregate|)) (ELT $ NIL)) + ((|every?| ((|Boolean|) (|Mapping| (|Boolean|) |#1|) $)) + (|has| $ (ATTRIBUTE |finiteAggregate|)) (ELT $ NIL)) + ((|any?| ((|Boolean|) (|Mapping| (|Boolean|) |#1|) $)) + (|has| $ (ATTRIBUTE |finiteAggregate|)) (ELT $ NIL)) + ((|map!| ($ (|Mapping| |#1| |#1|) $)) + (|has| $ (ATTRIBUTE |shallowlyMutable|)) (ELT $ NIL)) + ((|map| ($ (|Mapping| |#1| |#1|) $)) T (ELT $ NIL)) + ((|#| ((|NonNegativeInteger|) $)) + (|has| $ (ATTRIBUTE |finiteAggregate|)) (ELT $ NIL)) + ((|sample| ($)) T (CONST $ NIL)) + ((|size?| ((|Boolean|) $ (|NonNegativeInteger|))) T + (ELT $ NIL)) + ((|more?| ((|Boolean|) $ (|NonNegativeInteger|))) T + (ELT $ NIL)) + ((|less?| ((|Boolean|) $ (|NonNegativeInteger|))) T + (ELT $ NIL)) + ((|empty?| ((|Boolean|) $)) T (ELT $ NIL)) + ((|empty| ($)) T (ELT $ NIL)) + ((|copy| ($ $)) T (ELT $ NIL)) + ((|eq?| ((|Boolean|) $ $)) T (ELT $ NIL))) + (|addModemap| '|List| '(|List| |#1|) + '((|Join| (|ListAggregate| |#1|) + (CATEGORY |domain| (SIGNATURE |nil| ($)) + (SIGNATURE |null| ((|Boolean|) $)) + (SIGNATURE |cons| ($ |#1| $)) + (SIGNATURE |append| ($ $ $)) + (IF (|has| |#1| (|SetCategory|)) + (PROGN + (SIGNATURE |setUnion| ($ $ $)) + (SIGNATURE |setIntersection| + ($ $ $)) + (SIGNATURE |setDifference| + ($ $ $))) + |%noBranch|) + (IF (|has| |#1| (|OpenMath|)) + (ATTRIBUTE (|OpenMath|)) + |%noBranch|))) + (|Type|)) + T '|List| + (|put| '|List| '|mode| + '(|Mapping| + (|Join| (|ListAggregate| |#1|) + (CATEGORY |domain| + (SIGNATURE |nil| ($)) + (SIGNATURE |null| + ((|Boolean|) $)) + (SIGNATURE |cons| ($ |#1| $)) + (SIGNATURE |append| ($ $ $)) + (IF (|has| |#1| (|SetCategory|)) + (PROGN + (SIGNATURE |setUnion| ($ $ $)) + (SIGNATURE |setIntersection| + ($ $ $)) + (SIGNATURE |setDifference| + ($ $ $))) + |%noBranch|) + (IF (|has| |#1| (|OpenMath|)) + (ATTRIBUTE (|OpenMath|)) + |%noBranch|))) + (|Type|)) + |$CategoryFrame|)))) |