aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/DIFRING.lsp
blob: 621d91b32d96a280334063c5b55012ebde4857e1 (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
(/VERSIONCHECK 2) 

(DEFPARAMETER |DifferentialRing;AL| 'NIL) 

(DEFUN |DifferentialRing| ()
  (LET (#:G1396)
    (COND
      (|DifferentialRing;AL|)
      (T (SETQ |DifferentialRing;AL| (|DifferentialRing;|)))))) 

(DEFUN |DifferentialRing;| ()
  (PROG (#0=#:G1394)
    (RETURN
      (PROG1 (LETT #0#
                   (|Join| (|Ring|)
                           (|mkCategory| '|domain|
                               '(((|differentiate| ($ $)) T)
                                 ((D ($ $)) T)
                                 ((|differentiate|
                                      ($ $ (|NonNegativeInteger|)))
                                  T)
                                 ((D ($ $ (|NonNegativeInteger|))) T))
                               NIL '((|NonNegativeInteger|)) NIL))
                   |DifferentialRing|)
        (SETELT #0# 0 '(|DifferentialRing|)))))) 

(SETQ |$CategoryFrame|
      (|put| '|DifferentialRing| '|isCategory| T
             (|addModemap| '|DifferentialRing| '(|DifferentialRing|)
                 '((|Category|)) T '|DifferentialRing|
                 |$CategoryFrame|))) 

(MAKEPROP '|DifferentialRing| 'NILADIC T)