A typed pattern calculus

  • Authors:
  • Delia Kesner;Laurence Puel

  • Affiliations:
  • -;-

  • Venue:
  • Information and Computation
  • Year:
  • 1996

Quantified Score

Hi-index 0.00

Visualization

Abstract

The theory of programming with pattern-matching functiondefinitions has been studied mainly in the framework of first-orderrewrite systems. We present a typed functional calculus that emphasizesthe strong connection between the structures of whole patterndefinitions and their types. In this calculus, type-checking guaranteesthe absence of runtime errors caused by non-exhaustive pattern-matchingdefinitions. Its operational semantics is deterministic in a naturalway, without the imposition of ad hoc solutions such as clause order or“best fit”. In the spirit of Curry-Howard homomorphism, wedesign the calculus as a computational interpretation of the Gentzensequent proofs for the intuitionistic propositional logic.We prove the basic properties connecting typing and evaluation: subjectreduction and strong normalization. We believe that this calculus offersa rational reconstruction of the pattern-matching features found insuccessful functional languages.—Authors' Abstract