ACM Home Page
Please provide us with feedback. Feedback
Completeness of rewrite rules and rewrite strategies for FP
Full text PdfPdf (4.87 MB)
Source Journal of the ACM (JACM) archive
Volume 37 ,  Issue 1  (January 1990) table of contents
Pages: 86 - 143  
Year of Publication: 1990
ISSN:0004-5411
Authors
Joseph Y. Halpern  IBM Almaden Research Center, San Jose, CA
John H. Williams  IBM Almaden Research Center, San Jose, CA
Edward L. Wimmers  IBM Almaden Research Center, San Jose, CA
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 3,   Downloads (12 Months): 29,   Citation Count: 0
Additional Information:

abstract   references   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/78935.78939
What is a DOI?

ABSTRACT

This paper treats languages whose operational semantics is given by a set of rewrite rules. For such languages, it is important to be able to determine that there are enough rules to be able to compute the correct meaning of all expressions, but not so many that the system of rules is inconsistent. A formal framework is developed in which to give a precise treatment of these completeness and soundness issues, which are then investigated in the context of an extended version of the functional programming language FP. The rewrite rules of FP are shown to be sound and complete with respect to three different notions of completeness. The latter half of the paper considers rewrite strategies. In order to implement a language based on rewrite rules, it does not suffice to know that there are “enough” rules in the language; a good strategy for determining the order in which to apply them is also needed. But what is “good”? Corresponding to each notion of completeness, there is a notion of a good rewrite strategy. These notions of goodness are examined and characterized, and examples of a number of natural good strategies are given. Although these results are presented in the context of FP, the techniques (some of which are nontrivial extensions of techniques first used in the context of &lgr;-calculus) should apply well beyond the realm of FP rewriting systems.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

1
2
3
4
5
 
6
FRIEDMAN, D., AND WISE, n. Cons should not evaluate its arguments. In Proceedings of the 3rd International Colloquium on Automata, Languages, and Programming. Springer-Verlag, New York, 1976, pp. 257-284.
 
7
GOGUEN, J., MESEGUER, J., AND PLAISTED, D. Programming with parameterized abstract objects in OBJ. In Theory and Practice of Software Technology. North-Holland, Amsterdam, 1982.
8
9
10
11
 
12
MEYER, A.R. What is a model of the X-calculus? Inf. Control 52 (1982), 87-122.
 
13
NICKL, F. A denotational semantics for Backus' FP with infinite objects. Tech. Rep. Fakultiit for Mathematik und Informatik. Universitiit Passau, Passau, West Germany, 1985.
 
14
 
15
PLOTKIN, G.D. LCF considered as a programming language. Theoret. Computer Sci. 5 (1977), 223-255.
 
16
PRAWITZ, n. Ideas and results in proof theory. In Proceedings of the 2nd Scandinavian Logic Symposium, J. Fenstad, ed. North-Holland, Amsterdam, 1971.
 
17
 
18
SMYTH, i. B., AND PLOTKIN, G.n. The category-theoretic solution ofrecursive domain equations. SIAM J. Comput. 11, 4 (1982), 761-783.
 
19
 
20
TAIT, W.W. Intentional interpretation of functions of finite type I. J. Symb. Logic 32 (1967), 198-212.
 
21
TMT, W. W. A realizability interpretation of the theory of species. In Logic Colloquium, R. Parikh, Ed. Springer-Verlag, New York, (1975), pp. 240-251.
 
22
TURNER, D.A. A new implementation technique for applicative languages. Softw. Prac. Exp. 9 (1979), 31-49.
 
23
WADSWORTH, C.P. The relation between computational and denotational properties of Scott's D=-models of the lambda calculus. SIAM J. Comput. 5 (1976), 488-521.
 
24
WADSWORTH, C.P. Approximate reduction and lambda calculus models. SIAM J. Comput. 7 (1978), 337-356.
 
25
26

Collaborative Colleagues:
Joseph Y. Halpern: colleagues
John H. Williams: colleagues
Edward L. Wimmers: colleagues