The numericpeano package

[Tags:apache, library]

Value-level lazy Peano numbers for all your proof-theoretic and infinity-related needs. The features are: 1) natural and integral numbers (N and Z); 2) lazy infinities; and 3) instances for all relevant typeclasses, meaning that Peano arithmetic can be used in generic functions without extra hassle. The implementation is naive: a number of magnitude n may consume O(n) bytes of memory.

[Skip to Readme]


Dependencies base (>=4.7 && <=5.0) [details]
License Apache-2.0
Author Janos Tapolczai
Stability Unknown
Category Math
Home page
Uploaded Mon Dec 29 01:19:38 UTC 2014 by jtapolczai
Distributions NixOS:
Downloads 357 total (6 in the last 30 days)
0 []
Status Docs available [build log]
Last success reported on 2014-12-29 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees

Readme for numericpeano

Readme for numericpeano-

numericpeano ============ Peano numbers with the expected bells and whistles. The implementation is naive (the memory footprint of a number n is O(n) bytes). Features:

  • lazy evaluation, i.e. compatibility with infinity,
  • positive as well as negative numbers (N and Z),
  • instances for the usual typeclasses: Enum, Bounded, Num, Integral, etc.