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

(DEFPARAMETER |DivisionRing;AL| 'NIL) 

(DEFUN |DivisionRing| ()
  (LET (#:G1399)
    (COND
      (|DivisionRing;AL|)
      (T (SETQ |DivisionRing;AL| (|DivisionRing;|)))))) 

(DEFUN |DivisionRing;| ()
  (PROG (#0=#:G1397)
    (RETURN
      (PROG1 (LETT #0#
                   (|sublisV|
                       (PAIR '(#1=#:G1396)
                             (LIST '(|Fraction| (|Integer|))))
                       (|Join| (|EntireRing|) (|Algebra| '#1#)
                               (|mkCategory| '|domain|
                                   '(((** ($ $ (|Integer|))) T)
                                     ((^ ($ $ (|Integer|))) T)
                                     ((|inv| ($ $)) T))
                                   NIL '((|Integer|)) NIL)))
                   |DivisionRing|)
        (SETELT #0# 0 '(|DivisionRing|)))))) 

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

(MAKEPROP '|DivisionRing| 'NILADIC T)