Comparing and implementing calculi of explicit substitutions with eta-reduction

Mauricio Ayala-Rinćn, F. L C de Moura, Fairouz Kamareddine

Research output: Contribution to journalArticle

6 Citations (Scopus)

Abstract

The past decade has seen an explosion of work on calculi of explicit substitutions. Numerous works have illustrated the usefulness of these calculi for practical notions like the implementation of typed functional programming languages and higher order proof assistants. It has also been shown that eta-reduction is useful for adapting substitution calculi for practical problems like higher order unification. This paper concentrates on rewrite rules for eta-reduction in three different styles of explicit substitution calculi: ? s, ?se and the suspension calculus. Both ? s and ?se when extended with eta-reduction rules, have proved useful for solving higher order unification. We enlarge the suspension calculus with an adequate eta-reduction rule which we show to preserve termination and confluence of the associated substitution calculus and to correspond to the eta rules of the other two calculi. We prove that ?s and ?se as well as ?s and the suspension calculus are non-comparable while ?se is more adequate than the suspension calculus in simulating one-step beta-reduction. After defining the eta-reduction rule in the suspension calculus, and after comparing these three calculi of explicit substitutions (all with an eta rule), we then concentrate on the implementation of the rewrite rules of eta-reduction in these calculi.We note that it is usual practice when implementing the eta rule for substitution calculi, to mix isolated applications of eta-reduction with the application of other rules of the corresponding substitution calculi. Themain disadvantage of this practice is that the eta rewrite rules so obtained are unclean because they have an operational semantics different from that of the eta-reduction of the ?-calculus. For the three calculi in question enlarged with adequate eta rules we show how to implement these eta rules. For the ?se we build a clean implementation of the eta rule and we prove that it is not possible to follow the same approach for the ?s and ?SUSP. © 2004 Elsevier B.V. All rights reserved.

Original languageEnglish
Pages (from-to)5-41
Number of pages37
JournalAnnals of Pure and Applied Logic
Volume134
Issue number1 SPEC. ISS.
DOIs
Publication statusPublished - Jun 2005

Keywords

  • λ-calculi
  • Eta-reduction
  • Explicit substitutions

Fingerprint Dive into the research topics of 'Comparing and implementing calculi of explicit substitutions with eta-reduction'. Together they form a unique fingerprint.

Cite this