Codd's Theorem for Databases over Semirings

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Badia, Guillermo, Kolaitis, Phokion G., Noguera, Carles
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909579768496128
author Badia, Guillermo
Kolaitis, Phokion G.
Noguera, Carles
author_facet Badia, Guillermo
Kolaitis, Phokion G.
Noguera, Carles
contents Codd's Theorem, a fundamental result of database theory, asserts that relational algebra and relational calculus have the same expressive power on relational databases. We explore Codd's Theorem for databases over semirings and establish two different versions of this result for such databases: the first version involves the five basic operations of relational algebra, while in the second version the division operation is added to the five basic operations of relational algebra. In both versions, the difference operation of relations is given semantics using semirings with monus, while on the side of relational calculus a limited form of negation is used. The reason for considering these two different versions of Codd's theorem is that, unlike the case of ordinary relational databases, the division operation need not be expressible in terms of the five basic operations of relational algebra for databases over an arbitrary positive semiring; in fact, we show that this inexpressibility result holds even for bag databases.
format Preprint
id arxiv_https___arxiv_org_abs_2501_16543
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Codd's Theorem for Databases over Semirings
Badia, Guillermo
Kolaitis, Phokion G.
Noguera, Carles
Logic in Computer Science
Codd's Theorem, a fundamental result of database theory, asserts that relational algebra and relational calculus have the same expressive power on relational databases. We explore Codd's Theorem for databases over semirings and establish two different versions of this result for such databases: the first version involves the five basic operations of relational algebra, while in the second version the division operation is added to the five basic operations of relational algebra. In both versions, the difference operation of relations is given semantics using semirings with monus, while on the side of relational calculus a limited form of negation is used. The reason for considering these two different versions of Codd's theorem is that, unlike the case of ordinary relational databases, the division operation need not be expressible in terms of the five basic operations of relational algebra for databases over an arbitrary positive semiring; in fact, we show that this inexpressibility result holds even for bag databases.
title Codd's Theorem for Databases over Semirings
topic Logic in Computer Science
url https://arxiv.org/abs/2501.16543