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

(DEFPARAMETER |AbelianGroup;AL| 'NIL) 

(DEFUN |AbelianGroup| ()
  (LET (#:G1397)
    (COND
      (|AbelianGroup;AL|)
      (T (SETQ |AbelianGroup;AL| (|AbelianGroup;|)))))) 

(DEFUN |AbelianGroup;| ()
  (PROG (#0=#:G1395)
    (RETURN
      (PROG1 (LETT #0#
                   (|Join| (|CancellationAbelianMonoid|)
                           (|mkCategory| '|domain|
                               '(((- ($ $)) T) ((- ($ $ $)) T)
                                 ((* ($ (|Integer|) $)) T))
                               NIL '((|Integer|)) NIL))
                   |AbelianGroup|)
        (SETELT #0# 0 '(|AbelianGroup|)))))) 

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

(MAKEPROP '|AbelianGroup| 'NILADIC T)