Recognition: 2 theorem links
· Lean TheoremPreservation Theorems in Semiring Semantics
Pith reviewed 2026-05-12 03:52 UTC · model grok-4.3
The pith
Preservation theorems from classical model theory hold for first-order logic over all lattice semirings.
A machine-rendered reading of the paper's core claim, the machinery that carries it, and where it could break.
Core claim
The preservation theorems do indeed hold for all lattice 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. Variants of the existential preservation theorem fail for many other semirings, including the tropical semiring, the Viterbi semiring, the Łukasiewicz semiring, and the natural semiring. Surprisingly, the existential preservation theorem does hold for finite interpretations in a number of semirings, including all lattice semirings.
What carries the argument
lattice semirings, whose algebraic structure supports the adapted compactness and amalgamation arguments that recover classical preservation results from model theory
If this is right
- A sentence preserved under extensions is equivalent to an existential sentence when interpreted over any lattice semiring.
- A sentence preserved under homomorphisms is equivalent to an existential-positive sentence when interpreted over any lattice semiring.
- The same equivalences apply to provenance tracking, cost computation, or confidence evaluation in database queries whenever the semiring is a lattice.
- Existential preservation holds for all finite structures over every lattice semiring and over several additional semirings.
Where Pith is reading between the lines
- Query optimizers that rely on provenance or cost lattices can safely apply classical syntactic simplifications that depend on preservation properties.
- The divergence between the general and finite cases for non-lattice semirings raises the question of which preservation results survive when structures are required to be finite.
- Similar adaptation techniques may extend preservation results to other logical languages or to semirings with additional algebraic structure beyond lattices.
Load-bearing premise
The definitions of semantic properties such as preservation under extensions, substructures, or homomorphisms naturally generalise to the setting of semiring semantics, and the algebraic properties of lattice semirings suffice for the adapted compactness and amalgamation arguments to go through.
What would settle it
A first-order sentence that is preserved under extensions over some lattice semiring yet is not equivalent to any existential sentence over that semiring.
read the original abstract
We study the status of preservation theorems such as the {\L}o\'s-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. Depending on the underlying semiring, it allows us to track which atomic facts 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 {\L}ukasiewicz semiring, and the natural semiring. Surprisingly, the existential preservation theorem does hold for finite interpretations in a number of semirings, including all lattice semirings. Thus, the situation for these semirings is in sharp contrast to the Boolean case, where the {\L}o\'s-Tarski theorem holds in general, but not in the finite.
Editorial analysis
A structured set of objections, weighed in public.
Referee Report
Summary. The paper examines the status of classical preservation theorems (Łoś-Tarski, homomorphism preservation, and existential preservation) when first-order logic is interpreted over semiring semantics. It shows that the theorems hold for the broad class of lattice semirings by adapting compactness and amalgamation arguments together with existing semiring-specific reduction techniques for entailment; explicit counterexamples are given for the tropical, Viterbi, Łukasiewicz, and natural semirings. The paper further establishes that existential preservation holds over finite interpretations for all lattice semirings, in contrast to the Boolean case where the Łoś-Tarski theorem fails in the finite.
Significance. If the claimed proofs and counterexamples are correct, the work supplies a precise algebraic demarcation (lattice vs. non-lattice semirings) under which model-theoretic preservation results survive in the provenance setting. This is valuable both for database theory and for the systematic study of generalized semantics. The combination of adapted compactness/amalgamation with semiring reduction methods, together with the finite-model positive results, constitutes a substantive contribution that clarifies the boundary between classical and semiring model theory.
minor comments (3)
- The abstract and introduction refer to 'adaptations of the classical compactness and amalgamation methods' without indicating the precise section where the adapted compactness theorem for lattice semirings is stated and proved; a forward reference would help readers locate the technical core.
- Notation for semiring operations (addition, multiplication, zero, one) is introduced early but occasionally reused with different fonts in later sections; consistent use of a single macro or font throughout would improve readability.
- The counterexample constructions for the tropical and Viterbi semirings are described at a high level; adding a short table summarizing the key algebraic properties that cause the failure (e.g., lack of idempotence or distributivity) would make the contrast with lattice semirings sharper.
Simulated Author's Rebuttal
We thank the referee for the positive assessment of our manuscript and the recommendation for minor revision. The referee's summary correctly captures the main results on preservation theorems for lattice semirings and the counterexamples for non-lattice semirings, as well as the finite-model existential preservation result.
Circularity Check
No significant circularity; standard model-theoretic tools plus prior independent reductions
full rationale
The paper adapts classical compactness and amalgamation arguments to lattice semirings and invokes reduction methods for entailment developed in the semiring-semantics literature. These are external, previously published techniques rather than self-referential definitions or fitted parameters renamed as predictions. No equation or theorem in the derivation reduces by construction to the target preservation statement itself. Minor self-citations to semiring-semantics foundations exist but are not load-bearing for the central claims, which remain independently verifiable via the algebraic properties of lattice semirings and standard first-order model theory.
Axiom & Free-Parameter Ledger
axioms (2)
- standard math Compactness theorem for first-order logic
- standard math Amalgamation property for models
Lean theorems connected to this paper
-
IndisputableMonolith/Cost/FunctionalEquation.leanwashburn_uniqueness_aczel unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
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).
-
IndisputableMonolith/Foundation/AlexanderDuality.leanalexander_duality_circle_linking unclear?
unclearRelation between the paper passage and the cited Recognition theorem.
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.
What do these tags mean?
- matches
- The paper's claim is directly supported by a theorem in the formal canon.
- supports
- The theorem supports part of the paper's argument, but the paper may add assumptions or extra steps.
- extends
- The paper goes beyond the formal theorem; the theorem is a base layer rather than the whole result.
- uses
- The paper appears to rely on the theorem as machinery.
- contradicts
- The paper's claim conflicts with a theorem or certificate in the canon.
- unclear
- Pith found a possible connection, but the passage is too broad, indirect, or ambiguous to say the theorem truly supports the claim.
Reference graph
Works this paper leans on
- [1]
- [2]
-
[3]
Y. Amsterdamer and S. Davidson and D. Deutch and T. Milo and J. Stoyanovich and V Tannen , title =
-
[4]
Dawar, Anuj and Pago, Benedikt and Seppelt, Tim , title =. CoRR , volume =. 2025 , doi =
work page 2025
- [5]
-
[6]
Large networks and graph limits , isbn =
Lovász, László , year =. Large networks and graph limits , isbn =
-
[7]
Amsterdamer, Y. and Deutch, D. and Tannen, V. On the Limitations of Provenance for Queries with Difference. 3rd Workshop on the Theory and Practice of Provenance, TaPP'11. 2011
work page 2011
-
[8]
Amsterdamer, Y. and Deutch, D. and Tannen, V. Provenance for aggregate queries. Principles of Database Systems, PODS. 2011
work page 2011
-
[9]
Andr\'eka, H. and van Benthem, J. and N\'emeti, I. Modal Languages and Bounded Fragments of Predicate Logic. Journal of Philosophical Logic. 1998. doi:10.1023/A:1004275029985
-
[10]
Lectures in Game Theory for Computer Scientists. 2011. doi:10.1017/CBO9780511973468
-
[11]
Arenas, M. and Barcel \' o , P. and Libkin, L. Game-based notions of locality over finite models. Ann. Pure Appl. Log. 2008. doi:10.1016/j.apal.2007.11.012
-
[12]
A. Atserias and P. Kolaitis , title =. Samson Abramsky on Logic and Structure in Computer Science and Beyond, volume 25 of Outstanding Contributions to Logic , editor =
- [13]
-
[14]
Codd's Theorem for Databases over Semirings , author=. 2025 , journal =
work page 2025
-
[15]
G. Badia and V. Costa and P. Dellunde and C. Noguera , title =. Soft Comput. , volume =. 2019 , doi =
work page 2019
-
[16]
Balc\'azar, J. and D\' az, J. and Gabarr\'o, J. Structural Complexity II. 1990. doi:10.1007/978-3-642-75357-2
-
[17]
B\' a r\' a ny, V. and ten Cate , B. and Segoufin, L. Guarded Negation. J. ACM. 2015. doi:10.1145/2701414
-
[18]
B\' a r\' a ny, V. and Gottlob, G. and Otto, M. Querying the Guarded Fragment. Proceedings of the 2010 25th Annual IEEE Symposium on Logic in Computer Science. 2010. doi:10.1109/LICS.2010.26
-
[19]
Benedikt, M. and Bourhis, P. and Vanden Boom , M. Characterizing Definability in Decidable Fixpoint Logics. 44th International Colloquium on Automata, Languages, and Programming, ICALP 2017. 2017. doi:10.4230/LIPIcs.ICALP.2017.107
-
[20]
Benedikt, M. and ten Cate , B. and Vanden Boom , M. Effective Interpolation and Preservation in Guarded Logics. ACM Trans. Comput. Log. 2016. doi:10.1145/2814570
-
[21]
Benedikt, M. and Griffin, T. and Libkin, L. Verifiable Properties of Database Transactions. Inf. Comput. 1998. doi:10.1006/inco.1998.2731
-
[22]
Bergerem, S. van. Learning Concepts Definable in First-Order Logic with Counting. 34th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2019. 2019. doi:10.1109/LICS.2019.8785811
-
[23]
Bergerem, S. van and Grohe, M. and Ritzert, M. On the Parameterized Complexity of Learning First-Order Logic. PODS '22: International Conference on Management of Data. 2022. doi:10.1145/3517804.3524151
-
[24]
Bergerem, S. van and Schweikardt, N. Learning Concepts Described By Weight Aggregation Logic. 29th EACSL Annual Conference on Computer Science Logic, CSL 2021. 2021. doi:10.4230/LIPIcs.CSL.2021.10
- [25]
-
[26]
Brinke, S. and Gr\". 32nd EACSL Annual Conference on Computer Science Logic (CSL 2024) , pages =. 2024 , volume =. doi:10.4230/LIPIcs.CSL.2024.19 , annote =
-
[27]
Brinke, S. and Dawar, A. and Gr\". 34th EACSL Annual Conference on Computer Science Logic (CSL 2026) , pages =. 2026 , volume =. doi:10.4230/LIPIcs.CSL.2026.13 , annote =
-
[28]
Locality Theorems in Semiring Semantics
Bizi. Locality Theorems in Semiring Semantics. 2023. arXiv:2303.12627
-
[29]
48th International Symposium on Mathematical Foundations of Computer Science (MFCS 2023) , pages =
Bizi\`. 48th International Symposium on Mathematical Foundations of Computer Science (MFCS 2023) , pages =. 2023 , volume =. doi:10.4230/LIPIcs.MFCS.2023.20 , annote =
-
[30]
Blackburn, P. and de Rijke , M. and Venema, Y. Modal Logic. 2001. doi:10.1017/CBO9781107050884
-
[31]
Blass, A. and Gurevich, Y. Strong extension axioms and S helah's zero-one law for choiceless polynomial time. Journal of Symbolic Logic. 2003. doi:10.2178/jsl/1045861507
-
[32]
Bourgaux, C. and Ozaki, A. and Pe \ n aloza, R. and Predoiu, L. Provenance for the Description Logic ELHr. Proceedings of IJCAI 2020. 2020. doi:10.24963/ijcai.2020/258
-
[33]
Bradfield, J. and Walukiewicz, I. The mu-calculus and model checking. Handbook of Model Checking. 2018. doi:10.1007/978-3-319-10575-8_26
- [34]
-
[35]
Brinke, S. and Gr. The Provenance of Elegance in Computation - Essays Dedicated to Val Tannen , pages =. 2024 , volume =
work page 2024
-
[36]
Canavoi, F. and Gr. Defining winning strategies in fixed-point logic. 30th Annual ACM/IEEE Symposium on Logic in Computer Science (LICS). 2015. doi:10.1109/LICS.2015.42
-
[37]
ACM Transactions on Computational Logic , year=
Homomorphism Preservation Theorems for Many-Valued Structures , author=. ACM Transactions on Computational Logic , year=
-
[38]
Castro, J. and Seara, C. Complexity classes between _k^P and _k^P. RAIRO - Theoretical Informatics and Applications - Informatique Th\' e orique et Applications. 1996
work page 1996
-
[39]
Chatterjee, K. and Dvor \' a k, W. and Henzinger, M. and Loitzenbauer, V. Conditionally Optimal Algorithms for Generalized. 2016
work page 2016
-
[40]
Chatterjee, K. and Henzinger, M. Efficient and Dynamic Algorithms for Alternating. J. ACM. 2014. doi:10.1145/2597631
-
[41]
Chatterjee, K. and Henzinger, T. and Piterman, N. Algorithms for. 2008
work page 2008
-
[42]
Cintula, P. and Navara, M. Compactness of fuzzy logics , journal =. 2004 , url =. doi:10.1016/J.FSS.2003.06.002 , timestamp =
-
[43]
0-1 laws in logic and combinatorics
Compton, K. 0-1 laws in logic and combinatorics. N A T O Advanced Study Institute on Algorithms and Order. 1998. doi:10.1007/978-94-009-2639-4_10
-
[44]
Dannert, K. and Gr\". Provenance Analysis: A Perspective for Description Logics?. Description Logic, Theory Combination, and All That. 2019. doi:10.1007/978-3-030-22102-7_12
-
[45]
Dannert, K. and Gr\". Semiring Provenance for guarded logics. Hajnal Andr \'e ka and Istv \'a n N \'e meti on Unity of Science: From Computing to Relativity Theory through Algebraic Logic. 2020. doi:10.1007/978-3-030-64187-0_3
-
[46]
Dannert, K. and Gr. Generalized Absorptive Polynomials and Provenance Semantics for Fixed-Point Logic. 2019
work page 2019
-
[47]
Dannert, K. and Gr. Semiring Provenance for Fixed-Point Logic. 29th EACSL Annual Conference on Computer Science Logic (CSL 2021). 2021. doi:10.4230/LIPIcs.CSL.2021.17
-
[48]
Dawar, A. and Grohe, M. and Kreutzer, S. and Schweikardt, N. Approximation Schemes for First-Order Definable Optimisation Problems. 21th IEEE Symposium on Logic in Computer Science ( LICS 2006). 2006. doi:10.1109/LICS.2006.13
-
[49]
A. Dawar and A. Sankaran , title =. 29th EACSL Annual Conference on Computer Science Logic (CSL 2021) , pages =. 2021 , doi =
work page 2021
-
[50]
P. Dellunde and A. Vidal , title =. International Journal of Uncertainty, Fuzzyness, and Knowledge-Based Systems , volume =
- [51]
-
[52]
Deutch, D. and Milo, T. and Roy, S. and Tannen, V. Circuits for Datalog Provenance. Proc. 17th International Conference on Database Theory ICDT. 2014. doi:10.5441/002/icdt.2014.22
-
[53]
Doleschal, J. and Kimelfeld, B. and Martens, W. and Peterfreund, L. Weight Annotation in Information Extraction. International Conference on Database Theory, ICDT 2020. 2020. doi:10.4230/LIPIcs.ICDT.2020.8
-
[54]
Droste, M. and Gastin, P. Weighted automata and weighted logics. International Colloquium on Automata, Languages, and Programming. 2005
work page 2005
-
[55]
Droste, M. and Gastin, P. Weighted automata and weighted logics. Handbook of weighted automata. 2009. doi:10.1007/978-3-642-01492-5_5
-
[56]
Handbook of Weighted Automata. 2009. doi:10.1007/978-3-642-01492-5
-
[57]
Droste, M. and Kuich, W. Semirings and formal power series. Handbook of Weighted Automata. 2009. doi:10.1007/978-3-642-01492-5_1
-
[58]
Droste, M. and Rahonis, G. Weighted automata and weighted logics on infinite words. International Conference on Developments in Language Theory. 2006. doi:10.1007/11779148_6
-
[59]
Positive games and persistent strategies
Duparc, J. Positive games and persistent strategies. International Workshop on Computer Science Logic. 2003. doi:10.1007/978-3-540-45220-1_17
-
[60]
Ebbinghaus, H.-D. and Flum, J. Finite Model Theory. 1995. doi:10.1007/3-540-28788-4
-
[61]
Emerson, A. and Jutla, C. The complexity of tree automata and logics of programs. Proceedings of FOCS 1988. 1988. doi:10.1109/SFCS.1988.21949
-
[62]
Probabilities on finite models
Fagin, R. Probabilities on finite models. Journal of Symbolic Logic. 1976. doi:10.1017/S0022481200051756
-
[63]
Foster, J. Nathan and Green, Todd J. and Tannen, Val , title =. Proceedings of the Twenty-Seventh ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems , pages =. 2008 , doi =
work page 2008
-
[64]
On Local and Non-Local Properties
Gaifman, H. On Local and Non-Local Properties. Proceedings of the Herbrand Symposium. 1982. doi:10.1016/S0049-237X(08)71879-2
-
[65]
Geerts, F. and Poggi, A. On database query languages for K-relations. Journal of Applied Logic. 2010. doi:10.1016/j.jal.2009.09.001
-
[66]
Geerts, F. and Unger, T. and Karvounarakis, G. and Fundulaki, I. and Christophides, V. Algebraic Structures for Capturing the Provenance of SPARQL Queries. J. ACM. 2016. doi:10.1145/2810037
-
[67]
Glavic, B. Data Provenance. Foundations and Trends in Databases. 2021. doi:10.1561/1900000068
-
[68]
Glebskii, Y. and Kogan, D. and Liogon'kii, M. and Talanov, V. Range and degree of realizability of formulas in the restricted predicate calculus. Kibernetika. 1969. doi:10.1007/BF01071084
- [69]
-
[70]
Finite Model Theory and Its Applications
Gr. Finite Model Theory and Its Applications. 2007. doi:10.1007/3-540-68804-8
-
[71]
On the restraining power of guards
Gr. On the restraining power of guards. Journal of Symbolic Logic. 1999. doi:10.2307/2586808
-
[72]
Why are modal logics so robustly decidable?
Gr. Why are modal logics so robustly decidable?. Bulletin of the European Association for Theoretical Computer Science. 1999
work page 1999
-
[73]
Gr. Metafinite Model Theory. Information and Computation. 1998. doi:10.1006/inco.1997.2675
-
[74]
Gr. LICS '22: 37th Annual ACM/IEEE Symposium on Logic in Computer Science, Haifa, Israel, August 2 - 5, 2022. 2022. doi:10.1145/3531130.3533358
-
[75]
Semiring Provenance for B \"u chi Games: Strategy Analysis with Absorptive Polynomials
Gr. Semiring Provenance for B \"u chi Games: Strategy Analysis with Absorptive Polynomials. 2021
work page 2021
-
[76]
Gr. Semiring Provenance for. Proceedings 12th International Symposium on Games, Automata, Logics, and Formal Verification (GandALF 2021). 2021. doi:10.4204/EPTCS.346.5
-
[77]
Elementary Equivalence Versus Isomorphism in Semiring Semantics
Gr\". Elementary Equivalence Versus Isomorphism in Semiring Semantics. 48th International Colloquium on Automata, Languages, and Programming (ICALP 2021). 2021. doi:10.4230/LIPIcs.ICALP.2021.133
-
[78]
The Freedoms of (Guarded) Bisimulation
Gr. The Freedoms of (Guarded) Bisimulation. Trends in Logic: Johan van Benthem on Logical and Informational Dynamics. 2014. doi:10.1007/978-3-319-06025-5_1
-
[79]
Semiring Provenance for First-Order Model Checking
Gr. Semiring Provenance for First-Order Model Checking. 2017. arXiv:1712.01980
-
[80]
Provenance Analysis and Semiring Semantics for First-Order Logic
Gr. Model Theory, Computer Science and Graph Polynomials. Festschrift for Johann A. Makowsky , title = "Provenance Analysis and Semiring Semantics for First-Order Logic", year = "2025", publisher =
work page 2025
discussion (0)
Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.