HAL will be down for maintenance from Friday, June 10 at 4pm through Monday, June 13 at 9am. More information
Skip to Main content Skip to Navigation

A rewriting calculus for cyclic higher-order term graphs

Paolo Baldan 1 Clara Bertolissi 2 Horatiu Cirstea 2 Claude Kirchner 2
2 PROTHEO - Constraints, automatic deduction and software properties proofs
INRIA Lorraine, LORIA - Laboratoire Lorrain de Recherche en Informatique et ses Applications
Abstract : Introduced at the end of the nineties, the Rewriting Calculus (rho-calculus, for short) fully integrates term-rewriting and lambda-calculus. The rewrite rules, acting as elaborated abstractions, their application and the obtained structured results are first class objects of the calculus. The evaluation mechanism, generalising beta-reduction, strongly relies on term matching in various theories. In this paper we propose an extension of the rho-calculus, called Rg, handling structures with cycles and sharing rather than simple terms. This is obtained by using unification constraints in addition to the standard rho-calculus matching constraints, which leads to a term-graph representation in an equational style. As for the classical rho-calculus , the transformations are performed by explicit application of rewrite rules as first class entities. The possibility of expressing sharing and cycles allows one to represent and compute over regular infinite entities. We show that the (linear) Rg is confluent. The proof of this result is quite elaborated, due to the non-termination of the system and to the fact that Rg-terms are considered modulo an equational theory. We also show that the Rg is expressive enough to simulate first-order (equational) term-graph rewriting and lambda-calculus with explicit recursion (modelled using a letrec like construct.
Document type :
Complete list of metadata

Contributor : Clara Bertolissi Connect in order to contact the contributor
Submitted on : Thursday, November 24, 2005 - 10:18:06 AM
Last modification on : Friday, February 4, 2022 - 3:34:51 AM
Long-term archiving on: : Tuesday, September 11, 2012 - 5:40:29 PM


  • HAL Id : inria-00000825, version 1



Paolo Baldan, Clara Bertolissi, Horatiu Cirstea, Claude Kirchner. A rewriting calculus for cyclic higher-order term graphs. [Intern report] 2005. ⟨inria-00000825⟩



Record views


Files downloads