A Categorical Model for the Lambda Calculus with Constructors
Abstract
The lambda calculus with constructors is an extension of the lambda calculus with variadic constructors. It decomposes the pattern-matching a la ML into a case analysis on constants and a commutation rule between case and application constructs. Although this commutation rule does not match with the usual computing intuitions, it makes the calculus expressive and confluent, with a rather simple syntax. In this paper we define a sound notion of categorical model for the lambda calculus with constructors. We then prove that this definition is complete for the fragment of the calculus with no match-failure, using the model of partial equivalence relations.
- Publication:
-
arXiv e-prints
- Pub Date:
- February 2012
- DOI:
- 10.48550/arXiv.1202.4678
- arXiv:
- arXiv:1202.4678
- Bibcode:
- 2012arXiv1202.4678P
- Keywords:
-
- Computer Science - Logic in Computer Science
- E-Print:
- 21 pages