aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/strap/PI.lsp
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-08-17 08:59:26 +0000
committerdos-reis <gdr@axiomatics.org>2008-08-17 08:59:26 +0000
commit5e504b6abaef6cf7e7c58c17e26bec33856b60c0 (patch)
treefc93b37d696d3c1ca38437a5ad9a815a85fe46b7 /src/algebra/strap/PI.lsp
parentffb91646c6f11e84fa886aa5abc2de61ba291cc1 (diff)
downloadopen-axiom-5e504b6abaef6cf7e7c58c17e26bec33856b60c0.tar.gz
* algebra/Makefile.pamphlet (all-algstrap): New.
* algebra/strap: Update cached Lisp translation.
Diffstat (limited to 'src/algebra/strap/PI.lsp')
-rw-r--r--src/algebra/strap/PI.lsp41
1 files changed, 40 insertions, 1 deletions
diff --git a/src/algebra/strap/PI.lsp b/src/algebra/strap/PI.lsp
index bf877607..063678d6 100644
--- a/src/algebra/strap/PI.lsp
+++ b/src/algebra/strap/PI.lsp
@@ -14,7 +14,7 @@
(DEFUN |PositiveInteger| ()
(PROG ()
(RETURN
- (PROG (#0=#:G1396)
+ (PROG (#0=#:G1398)
(RETURN
(COND
((LETT #0# (HGET |$ConstructorCache| '|PositiveInteger|)
@@ -72,4 +72,43 @@
0 0 0 5 1 2 0 0 0 0 1 2 0 0 6 0 1)))))
'|lookupComplete|))
+(SETQ |$CategoryFrame|
+ (|put| '|PositiveInteger| '|isFunctor|
+ '(((|gcd| ($ $ $)) T (ELT $ NIL))
+ ((* ($ $ $)) T (ELT $ NIL))
+ ((** ($ $ (|PositiveInteger|))) T (ELT $ NIL))
+ ((^ ($ $ (|PositiveInteger|))) T (ELT $ NIL))
+ ((|One| ($)) T (CONST $ NIL))
+ ((|sample| ($)) T (CONST $ NIL))
+ ((|one?| ((|Boolean|) $)) T (ELT $ NIL))
+ ((** ($ $ (|NonNegativeInteger|))) T (ELT $ NIL))
+ ((^ ($ $ (|NonNegativeInteger|))) T (ELT $ NIL))
+ ((|recip| ((|Union| $ "failed") $)) T (ELT $ NIL))
+ ((+ ($ $ $)) T (ELT $ NIL))
+ ((* ($ (|PositiveInteger|) $)) T (ELT $ NIL))
+ ((|min| ($ $ $)) T (ELT $ NIL))
+ ((|max| ($ $ $)) T (ELT $ NIL))
+ ((<= ((|Boolean|) $ $)) T (ELT $ NIL))
+ ((>= ((|Boolean|) $ $)) T (ELT $ NIL))
+ ((> ((|Boolean|) $ $)) T (ELT $ NIL))
+ ((< ((|Boolean|) $ $)) T (ELT $ NIL))
+ ((|latex| ((|String|) $)) T (ELT $ NIL))
+ ((|hash| ((|SingleInteger|) $)) T (ELT $ NIL))
+ ((|coerce| ((|OutputForm|) $)) T (ELT $ NIL))
+ ((= ((|Boolean|) $ $)) T (ELT $ NIL))
+ ((~= ((|Boolean|) $ $)) T (ELT $ NIL)))
+ (|addModemap| '|PositiveInteger| '(|PositiveInteger|)
+ '((|Join| (|OrderedAbelianSemiGroup|) (|Monoid|)
+ (CATEGORY |domain| (SIGNATURE |gcd| ($ $ $))
+ (ATTRIBUTE (|commutative| "*")))))
+ T '|PositiveInteger|
+ (|put| '|PositiveInteger| '|mode|
+ '(|Mapping|
+ (|Join| (|OrderedAbelianSemiGroup|)
+ (|Monoid|)
+ (CATEGORY |domain|
+ (SIGNATURE |gcd| ($ $ $))
+ (ATTRIBUTE (|commutative| "*")))))
+ |$CategoryFrame|))))
+
(MAKEPROP '|PositiveInteger| 'NILADIC T)