aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/ORDRING.lsp
blob: b3e0d4395ef342706288eb3358a2349149fd9492 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(/VERSIONCHECK 2) 

(DEFPARAMETER |OrderedRing;AL| 'NIL) 

(DEFUN |OrderedRing;| ()
  (LET ((#0=#:G1403
            (|Join| (|OrderedAbelianGroup|) (|Ring|) (|Monoid|)
                    (|mkCategory| '|domain|
                        '(((|positive?| ((|Boolean|) $)) T)
                          ((|negative?| ((|Boolean|) $)) T)
                          ((|sign| ((|Integer|) $)) T)
                          ((|abs| ($ $)) T))
                        NIL '((|Integer|) (|Boolean|)) NIL))))
    (|setShellEntry| #0# 0 '(|OrderedRing|))
    #0#)) 

(DEFUN |OrderedRing| ()
  (COND
    (|OrderedRing;AL|)
    (T (SETQ |OrderedRing;AL| (|OrderedRing;|))))) 

(MAKEPROP '|OrderedRing| 'NILADIC T)