| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | divip@aszt.inf.elte.hu |
Number.Peano.Inf
Description
Lazy Peano numbers including observable infinity value.
Documentation
Natural numbers and infinity.
isInfinity :: Nat -> BoolSource
True on (infinity), (5 + 4 * infinity) etc. Evaluates to bottom on (genericLength [1..]).
Difference of two natural numbers: the result is either positive or negative.
Variant of diff: infinity .
zeroDiff infinity == Left Zero
Variant of diff: infinity .
infDiff infinity == Left infinity