Relational Programming in a Functional Style

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.

Authors

Institutions

Publication Details

Journal
ACM Transactions on Programming Languages and Systems
Published
2026-11-25
DOI
https://doi.org/10.1145/3871062
Primary Topic
Logic, programming, and type systems
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
article

Relational Programming in a Functional Style

Friedrich Steimann
ACM Transactions on Programming Languages and Systems
Logic, programming, and type systems
article

Relational Programming in a Functional Style

Friedrich Steimann
article en

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.

ACM Transactions on Programming Languages and Systems
FernUniversität in Hagen (DE)
Logic, programming, and type systems
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon