aboutsummaryrefslogtreecommitdiff
path: root/src/algebra/pattern.spad.pamphlet
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-03-12 19:17:32 +0000
committerdos-reis <gdr@axiomatics.org>2011-03-12 19:17:32 +0000
commitc93e84048964194e5674e859d6bd8827010f09f6 (patch)
tree407ca23d232bf3f974550fce0175c49495ef49c0 /src/algebra/pattern.spad.pamphlet
parent52fddea19454dc2b9bcb54c6edd5a4cd4f5765a9 (diff)
downloadopen-axiom-c93e84048964194e5674e859d6bd8827010f09f6.tar.gz
* src/algebra/: Systematically use negative? when comparing for
greater than 0.
Diffstat (limited to 'src/algebra/pattern.spad.pamphlet')
-rw-r--r--src/algebra/pattern.spad.pamphlet2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/algebra/pattern.spad.pamphlet b/src/algebra/pattern.spad.pamphlet
index fd008b3e..c5a667e6 100644
--- a/src/algebra/pattern.spad.pamphlet
+++ b/src/algebra/pattern.spad.pamphlet
@@ -255,7 +255,7 @@ Pattern(R:SetCategory): Exports == Implementation where
0 == taggedElt(PAT_ZERO, empty())
p:% ** n:NonNegativeInteger ==
- p = 0 and n > 0 => 0
+ p = 0 and positive? n => 0
p = 1 or zero? n => 1
one? n => p
mkPat(constant? p, [[p, n]$REC], 1 + (p.lev))