Title
Program transformation by templates based on term rewriting
Abstract
Huet and Lang (1978) presented a framework of automated program transformation based on lambda calculus in which programs are transformed according to a given program transformation template. They introduced a second-order matching algorithm of simply-typed lambda calculus to verify whether the input program matches the template. They also showed how to validate the correctness of the program transformation using the denotational semantics.We propose in this paper a framework of program transformation by templates based on term rewriting. In our new framework, programs are given by term rewriting systems. To automate our program transformation, we introduce a term pattern matching problem and present a sound and complete algorithm that solves this problem.We also discuss how to validate the correctness of program transformation in our framework. We introduce a notion of developed templates and a simple method to construct such templates without explicit use of induction. We then show that in any program transformation by developed templates the correctness of the transformation can be verified automatically. In our framework the correctness of the program transformation is discussed based on the operational semantics. This is a sharp contrast to Huet and Lang's framework.
Year
DOI
Venue
2005
10.1145/1069774.1069780
PPDP
Keywords
Field
DocType
developed template,lambda calculus,input program,program transformation,program transformation template,automated program transformation,denotational semantics,complete algorithm,new framework,term pattern,typed lambda calculus,pattern matching,second order,theorem proving,operational semantics
Lambda calculus,Operational semantics,Programming language,Program transformation,Normalisation by evaluation,Computer science,Correctness,Theoretical computer science,Rewriting,Pattern matching,Blossom algorithm
Conference
ISBN
Citations 
PageRank 
1-59593-090-6
7
0.45
References 
Authors
12
3
Name
Order
Citations
PageRank
Yuki Chiba1357.46
Takahito Aoto212117.53
Yoshihito Toyama353349.60