Skip to main content
Article thumbnail
Location of Repository

Polytypic Unification

By Polytypic Unification, Patrik Jansson and Johan Jeuring

Abstract

Unification, or two-way pattern matching, is the process of solving an equation involving two first-order terms with variables. Unification is used in type inference in many programming languages and in the execution of logic programs. This means that unification algorithms have to be written over and over again for different term types. Many other functions also make sense for a large class of datatypes, examples are pretty printers, equality checks, maps etc. They can be defined by induction on the structure of user-defined datatypes. Implementations of these functions for different datatypes are closely related to the structure of the datatypes. We call such functions polytypic. This paper describes a unification algorithm parametrised by the type of the terms and shows how to use polytypism to obtain a unification algorithm that works for all regular term types. 1 Introduction In simple pattern matching, a pattern (a string containing wild cards) is matched with a normal string..

Year: 1993
OAI identifier: oai:CiteSeerX.psu:10.1.1.36.4633
Provided by: CiteSeerX
Download PDF:
Sorry, we are unable to provide the full text but you may find it at the following location(s):
  • http://citeseerx.ist.psu.edu/v... (external link)
  • http://www-sop.inria.fr/oasis/... (external link)
  • Suggested articles


    To submit an update or takedown request for this paper, please submit an Update/Correction/Removal Request.