aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/SETCAT-.lsp
blob: 57bf43e1ce7809e1914bde82d38fcc49b21cd629 (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
(/VERSIONCHECK 2) 

(PUT '|SETCAT-;hash;SSi;1| '|SPADreplace| '(XLAM (|s|) 0)) 

(DEFUN |SETCAT-;hash;SSi;1| (|s| $) 0) 

(PUT '|SETCAT-;latex;SS;2| '|SPADreplace|
     '(XLAM (|s|) "\\mbox{\\bf Unimplemented}")) 

(DEFUN |SETCAT-;latex;SS;2| (|s| $) "\\mbox{\\bf Unimplemented}") 

(DEFUN |SetCategory&| (|#1|)
  (PROG (|dv$1| |dv$| $ |pv$|)
    (RETURN
      (PROGN
        (LETT |dv$1| (|devaluate| |#1|) . #0=(|SetCategory&|))
        (LETT |dv$| (LIST '|SetCategory&| |dv$1|) . #0#)
        (LETT $ (|newShell| 11) . #0#)
        (|setShellEntry| $ 0 |dv$|)
        (|setShellEntry| $ 3
            (LETT |pv$| (|buildPredVector| 0 0 NIL) . #0#))
        (|stuffDomainSlots| $)
        (|setShellEntry| $ 6 |#1|)
        $)))) 

(MAKEPROP '|SetCategory&| '|infovec|
    (LIST '#(NIL NIL NIL NIL NIL NIL (|local| |#1|) (|SingleInteger|)
             |SETCAT-;hash;SSi;1| (|String|) |SETCAT-;latex;SS;2|)
          '#(|latex| 0 |hash| 5) 'NIL
          (CONS (|makeByteWordVec2| 1 'NIL)
                (CONS '#()
                      (CONS '#()
                            (|makeByteWordVec2| 10
                                '(1 0 9 0 10 1 0 7 0 8)))))
          '|lookupComplete|)) 

(SETQ |$CategoryFrame|
      (|put| '|SetCategory&| '|isFunctor|
             '(((|latex| ((|String|) $)) T (ELT $ 10))
               ((|hash| ((|SingleInteger|) $)) T (ELT $ 8)))
             (|addModemap| '|SetCategory&| '(|SetCategory&| |#1|)
                 '((CATEGORY |domain|
                       (SIGNATURE |latex| ((|String|) |#1|))
                       (SIGNATURE |hash| ((|SingleInteger|) |#1|)))
                   (|SetCategory|))
                 T '|SetCategory&|
                 (|put| '|SetCategory&| '|mode|
                        '(|Mapping|
                             (CATEGORY |domain|
                                 (SIGNATURE |latex| ((|String|) |#1|))
                                 (SIGNATURE |hash|
                                     ((|SingleInteger|) |#1|)))
                             (|SetCategory|))
                        |$CategoryFrame|))))