We present three term rewrite systems for integer arithmetic with addition, multiplication, and, in two cases, subtraction. All systems axe ground confluent and terminating; termination is proved by semantic labelling and recursive path order. The first system represents numbers by successor and predecessor. In the second, which defines non-negative integers only, digits are represented as unary operators. In the third, digits are represented as constants. The first and the second system are complete; the second and the third system have logarithmic space and time complexity, and are parameterized for an arbitrary radix (binary, decimal, or other radices). Choosing the largest machine representable single precision integer as radix, results in unbounded arithmetic with machine efficiency.
CITATION STYLE
Walters, H. R., & Zantema, H. (1995). Rewrite systems for integer arithmetic. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 914, pp. 324–338). Springer Verlag. https://doi.org/10.1007/3-540-59200-8_67
Mendeley helps you to discover research relevant for your work.