We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.LO

Change to browse by:

cs

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Logic in Computer Science

Title: Datatype defining rewrite systems for naturals and integers

Abstract: A datatype defining rewrite system (DDRS) is an algebraic (equational) specification intended to specify a datatype. When interpreting the equations from left-to-right, a DDRS defines a term rewriting system that must be ground-complete. First we define two DDRSs for the ring of integers, each comprising twelve rewrite rules, and prove their ground-completeness. Then we introduce natural number and integer arithmetic specified according to unary view, that is, arithmetic based on a postfix unary append constructor (a form of tallying). Next we specify arithmetic based on two other views: binary and decimal notation. The binary and decimal view have as their characteristic that each normal form resembles common number notation, that is, either a digit, or a string of digits without leading zero, or the negated versions of the latter. Integer arithmetic in binary and decimal notation is based on (postfix) digit append functions. For each view we define a DDRS, and in each case the resulting datatype is a canonical term algebra that extends a corresponding canonical term algebra for natural numbers. Then, for each view, we consider an alternative DDRS based on tree constructors that yields comparable normal forms, which for that view admits expressions that are algorithmically more involved. For all DDRSs considered, ground-completeness is proven.
Comments: arXiv admin note: text overlap with arXiv:1406.3280
Subjects: Logic in Computer Science (cs.LO)
ACM classes: D.3.1
Journal reference: Logical Methods in Computer Science, Volume 17, Issue 1 (February 18, 2021) lmcs:6031
DOI: 10.23638/LMCS-17(1:17)2021
Cite as: arXiv:1608.06212 [cs.LO]
  (or arXiv:1608.06212v6 [cs.LO] for this version)

Submission history

From: Antoine Amarilli [view email] [via LOGICAL proxy]
[v1] Mon, 22 Aug 2016 16:25:23 GMT (12kb)
[v2] Mon, 13 Jan 2020 15:29:52 GMT (28kb)
[v3] Tue, 14 Jul 2020 17:51:54 GMT (34kb)
[v4] Fri, 8 Jan 2021 13:58:28 GMT (27kb)
[v5] Thu, 14 Jan 2021 14:52:55 GMT (261kb,A)
[v6] Wed, 17 Feb 2021 13:57:55 GMT (267kb,AD)

Link back to: arXiv, form interface, contact.