Typing rule-based transformations over topological collections

Julien Cohen
DOI: https://doi.org/10.48550/arXiv.0912.4877
2009-12-24
Programming Languages
Abstract:Pattern-matching programming is an example of a rule-based programming style developed in functional languages. This programming style is intensively used in dialects of ML but is restricted to algebraic data-types. This restriction limits the field of application. However, as shown by Giavitto and Michel at RULE'02, case-based function definitions can be extended to more general data structures called topological collections. We show in this paper that this extension retains the benefits of the typed discipline of the functional languages. More precisely, we show that topological collections and the rule-based definition of functions associated with them fit in a polytypic extension of mini-ML where type inference is still possible.
What problem does this paper attempt to address?