aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/COMRING.lsp
blob: 6bf0118a6db363cab65bc967a294de3aedd91bfd (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
(/VERSIONCHECK 2) 

(DEFPARAMETER |CommutativeRing;AL| 'NIL) 

(DEFUN |CommutativeRing;| ()
  (PROG (#0=#:G1397)
    (RETURN
      (PROG1 (LETT #0#
                   (|Join| (|Ring|) (|BiModule| '$ '$)
                           (|mkCategory| '|package| NIL
                               '(((|commutative| "*") T)) 'NIL NIL))
                   |CommutativeRing|)
        (SETELT #0# 0 '(|CommutativeRing|)))))) 

(DEFUN |CommutativeRing| ()
  (LET ()
    (COND
      (|CommutativeRing;AL|)
      (T (SETQ |CommutativeRing;AL| (|CommutativeRing;|)))))) 

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

(MAKEPROP '|CommutativeRing| 'NILADIC T)