,
Anuj Dawar
,
Erich Grädel
,
Benedikt Pago
Creative Commons Attribution 4.0 International license
We study the status of classical model-theoretic preservation theorems such as the Łoś-Tarski theorem and the homomorphism preservation theorem in the context of semiring semantics. Semiring semantics has its origins in the provenance analysis of database queries but has been extended to a systematic way of evaluating logical statements to values in a commutative semiring. Depending on the underlying semiring, this allows us to track descriptions of the atomic facts that are responsible for the truth of a statement or practical information about the evaluation such as costs or confidence. The systematic development of semiring semantics for first-order logic and other logical systems raises the question to what extent classical model-theoretic results can be generalised to this setting and how such results depend on the underlying semiring. The definitions of semantic properties such as preservation under extensions, substructures, or homomorphisms naturally generalise to the setting of semiring semantics. However, the status of the corresponding preservation theorem strongly depends on the algebraic properties of the particular semirings. We prove that these preservation theorems do indeed hold for all lattice semirings (a quite large class, encompassing practically relevant semirings and in particular all min-max semirings). The proofs combine adaptations of the classical compactness and amalgamation methods with specific reduction methods for logical entailment that have been developed in semiring semantics. On the other side, variants of the existential preservation theorem fail for many other semirings, including the tropical semiring, the Viterbi semiring, the Łukasiewicz semiring, and the natural semirings ℕ and ℕ^∞. Surprisingly, the existential preservation theorem does hold for finite interpretations in a number of semirings, including the three-element min-max semiring, which extends the Boolean by just a single additional truth value. Thus, the situation for these semirings is in sharp contrast to the Boolean case, where the Łoś-Tarski theorem holds in general, but not in the finite.
@InProceedings{brinke_et_al:LIPIcs.ICALP.2026.172,
author = {Brinke, Sophie and Dawar, Anuj and Gr\"{a}del, Erich and Pago, Benedikt},
title = {{Preservation Theorems in Semiring Semantics}},
booktitle = {53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026)},
pages = {172:1--172:23},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-428-4},
ISSN = {1868-8969},
year = {2026},
volume = {374},
editor = {Bhattacharya, Sayan and Nanongkai, Danupon and Benedikt, Michael and Puppis, Gabriele},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ICALP.2026.172},
URN = {urn:nbn:de:0030-drops-265605},
doi = {10.4230/LIPIcs.ICALP.2026.172},
annote = {Keywords: Semiring semantics, preservation theorems, model theory, algebraic logics}
}