Relational Programming in a Functional Style
Friedrich Steimann
Key points
From the paper's conclusion- We exploit coverage of the former for introducing elementary mappings, or maplets, strings of which amount to finite functions or relations that can not only be applied, but that also serve the natural representation of relational data.
Abstract
While programming languages typically know only singulars (single values, single functions), the problem domains addressed by most programs abound with plurals (two parents, any number of children, etc.). Rather than encoding plurals as singulars using lists or other containers, we extend the lambda calculus to strings of terms, thereby catering for the occurrence of an arbitrary number of terms in the place of one. Since “arbitrary number” includes none, the resulting calculus naturally covers both partial functions and general relations. We exploit coverage of the former for introducing elementary mappings, or maplets, strings of which amount to finite functions or relations that can not only be applied, but that also serve the natural representation of relational data. To gain some control over the use of strings, we introduce the grammatical category of numerus as an abstraction of the length — rather than the type — of a value, and mapping constraints as abstractions of the nature of mappings, i.e., whether they are total or partial functions, or general relations. With this, we arrive at a calculus that strictly generalizes the simply typed lambda calculus, adding plurals in a type- and number-safe manner without requiring parametric polymorphism or other more advanced typing features. With this generalization comes a distinction between singular and plural abstractions , which live side-by-side in the same calculus, contrasting the commitment to either singular or plural semantics of applications (also dubbed call-time vs. runtime choice) suggested by the works of others.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Record Types EverywherearXiv · 2026
- Revisiting Row Polymorphism for Set-Theoretic TypesProceedings of the ACM on Programming Languages · 2026
- Logical Relations on DisplayarXiv · 2026
- Defining the mathematical family tree with a minimal programming languagearXiv · 2026
- Arbitrary Functors as Modalities in a Linear CalculusarXiv · 2026
- A unification of graded and substructural logicsElectronic Notes in Theoretical Informatics and Computer Science · 2026