Order-Sorted Generalization

  • Authors:
  • María Alpuente;Santiago Escobar;José Meseguer;Pedro Ojeda

  • Affiliations:
  • Dpto. de Sistemas Informáticos y Computación, Universidad Politécnica de Valencia, Spain;Dpto. de Sistemas Informáticos y Computación, Universidad Politécnica de Valencia, Spain;Department of Computer Science, University of Illinois at Urbana-Champaign, USA;Dpto. de Sistemas Informáticos y Computación, Universidad Politécnica de Valencia, Spain

  • Venue:
  • Electronic Notes in Theoretical Computer Science (ENTCS)
  • Year:
  • 2009

Quantified Score

Hi-index 0.02

Visualization

Abstract

Generalization, also called anti-unification, is the dual of unification. Given terms t and t^', a generalization is a term t^'' of which t and t^' are substitution instances. The dual of a most general unifier (mgu) is that of least general generalization (lgg). In this work, we extend the known untyped generalization algorithm to an order-sorted typed setting with sorts, subsorts, and subtype polymorphism. Unlike the untyped case, there is in general no single lgg. Instead, there is a finite, minimal set of lggs, so that any other generalization has at least one of them as an instance. Our generalization algorithm is expressed by means of an inference system for which we give a proof of correctness. This opens up new applications to partial evaluation, program synthesis, and theorem proving for typed reasoning systems and typed rule-based languages such as ASF+SDF, Elan, OBJ, Cafe-OBJ, and Maude.