Non-Linear Pattern-Matching against Unfree Data Types with Lexical Scoping
Satoshi Egi

TL;DR
This paper introduces a flexible pattern-matching system for unfree data types, supporting non-linear patterns, multiple results, and modularization with lexical scoping, implemented in the Egison language.
Contribution
It presents a novel non-linear pattern-matching approach for unfree data types with lexical scoping, enhancing expressiveness and modularity.
Findings
Supports pattern-matching on sets, graphs, and other unfree data types.
Allows multiple pattern-matching results and variable reuse.
Implemented in the Egison programming language.
Abstract
This paper proposes a pattern-matching system that enables non-linear pattern-matching against unfree data types. The system allows multiple occurrences of the same variables in a pattern, multiple results of pattern-matching and modularization of the way of pattern-matching for each data type at the same time. It enables us to represent pattern-matching against not only algebraic data types but also unfree data types such as sets, graphs and any other data types whose data have no canonical form and multiple ways of decomposition. I have realized that with a rule that pattern-matching is executed from the left side of a pattern and a rule that a binding to a variable in a pattern can be referred to in its right side of the pattern. Furthermore, I have realized modularization of these patterns with lexical scoping. In my system, a pattern is not a first class object, but a…
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.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsMachine Learning and Algorithms · Web Data Mining and Analysis · Algorithms and Data Compression
