login

A calculus for collections and aggregates

Lecture notes in computer sciencePublished 1 January 1997
Kazem Lellahi, Val Tannen
Citations33
SJR quartileQ2
SJR score0.35
SNIP0.55

TL;DR

A calculus that should play for database query languages the same role that the lambda calculus plays for functional programming, and a new concept: monads enriched with algebraic structure is introduced.

Abstract

We present a calculus that should play for database query languages the same role that the lambda calculus plays for functional programming. For the semantic foundations of the calculus we introduce a new concept: monads enriched with algebraic structure. We model collection types through enriched monads and aggregate operations through enriched monad algebras. The calculus derives program equivalences that underlie a good number of the optimizations used in query languages.

Keywords

Computer Science