Pure Pattern Calculus \`a la de Bruijn
Alexis Mart\'in, Alejandro R\'ios, Andr\'es Viso

TL;DR
This paper extends de Bruijn indices to the Pure Pattern Calculus to handle multiple variable bindings simultaneously, enabling more robust implementation of pattern-based functional languages.
Contribution
It introduces a novel bidimensional indexing method for PPC, addressing multi-binding issues and facilitating the development of typed functional languages with pattern matching.
Findings
Developed a new bidimensional de Bruijn indexing scheme for PPC
Successfully implemented a prototype language capturing path polymorphism
Enhanced handling of variable bindings in pattern calculi
Abstract
It is well-known in the field of programming languages that dealing with variable names and binders may lead to conflicts such as undesired captures when implementing interpreters or compilers. This situation has been overcome by resorting to de Bruijn indices for calculi where binders capture only one variable name, like the -calculus. The advantage of this approach relies on the fact that so-called -equivalence becomes syntactical equality when working with indices. In recent years pattern calculi have gained considerable attention given their expressiveness. They turn out to be notoriously convenient to study the foundations of modern functional programming languages modeling features like pattern matching, path polymorphism, pattern polymorphism, etc. However, the literature falls short when it comes to dealing with -conversion and binders capturing…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
