Preservation Theorems in Semiring Semantics
Abstract
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.
Keywords and phrases:
Semiring semantics, preservation theorems, model theory, algebraic logicsCategory:
Track B: Automata, Logic, Semantics, and Theory of ProgrammingCopyright and License:
2012 ACM Subject Classification:
Theory of computation Finite Model TheoryEditors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Preservation Theorems
In model theory, preservation theorems typically state that the first-order sentences satisfying a specific semantic property are precisely those that are equivalent to sentences of a particular syntactic form. Well-known examples include the Łoś-Tarski theorem saying that a first-order sentence is preserved under extensions of its models if, and only if, it is equivalent to an existential sentence, and the homomorphism preservation theorem which states that the first-order sentences preserved under homomorphisms are precisely those that are equivalent to existential-positive sentences (unions of conjunctive queries). Preservation theorems matter because they tell us which syntactic forms capture which structural invariance properties, and this drives applications in databases, descriptive complexity, the simplification of axiomatisations, quantifier elimination, and the study of expressive power of fragments of first-order logic.
The prominence of preservation theorems in classical model theory has motivated persistent investigations of their status in other model-theoretic contexts, in particular in finite model theory and, more recently, also in many-valued logics. In finite model theory, it has been known for a long time that most of the classical preservation theorems fail when restricted to finite structures. In particular this concerns the Łoś-Tarski theorem for which Tait [28] and Gurevich [22] provide examples of first-order sentences whose finite models are closed under extensions but which are not equivalent, over finite structures, to any existential sentence. This failure has been strengthened by Dawar and Sankaran [11] who construct, for every , sentences whose finite models are closed under extensions, but which are not equivalent in the finite to any -sentence. Among the few positive results on preservation theorems in finite model theory, the most significant one, due to Rossman [27], establishes that the homomorphism preservation theorem does indeed hold on finite structures. There are many further results on preservation theorems in finite model theory, see [26] for a survey and [23] for a more recent treatment.
In many-valued logics, Badia et al. [3] generalised the Łoś-Tarski theorem and also the Chang-Łoś-Suszko preservation theorem for -sentences under unions of chains to the specific setting of fixed finite MTL-chains (linearly ordered algebraic models of monoidal t-norm–based logic). Dellunde and Vidal [12] established a variant of the homomorphism preservation theorem in the same setting and Carr [10] provided a variant of this for finite many-valued structures, based on an extension of Rossman’s proof.
Semiring Semantics
In this paper, we extend the study of preservation theorems to the setting of semiring semantics. This approach, which has its origins in the provenance analysis of database queries [20], is based on the idea of evaluating logical statements not just to true or false, but more generally to values in some commutative semiring . Atomic facts are annotated by values from which are then propagated through a database query or a logical formula, keeping track whether information is used alternatively or jointly. Depending on the chosen semiring, provenance valuations give practical information about a statement, for instance concerning the confidence that we may have in its truth, the cost of its evaluation, the required clearance level for the access to not freely available data, the number of successful evaluation strategies, and so on. Beyond such provenance evaluations in specific application semirings, more precise information is obtained by evaluations in provenance semirings of polynomials or formal power series, which permit us to track which atomic facts are used (and how often) to compute the answer to the query. See [21, 14] for surveys on semiring provenance in databases.
The detailed information on a logical statement, as provided by semiring provenance, is of interest not just for databases, but also in many other areas of logic in computer science. There is thus ample motivation to extend the approach of semiring provenance beyond database queries to a general semiring semantics for logical systems, in particular for full first-order logic. Further, semiring valuations have also been successfully applied to the strategy analysis for various forms of finite and infinite games [18, 16, 24]. This poses a number of mathematical challenges that have been addressed in recent research, and it raises the question to what extent classical logical methods and results also hold in this more general context. Research on such questions has included the study of elementary equivalence and the axiomatisability of finite semiring interpretations [17], of the equivalence of the relational calculus with relational algebra (Codd’s Theorem) [4], 0-1 laws [15], Ehrenfeucht–Fraïssé games [8], the locality theorems by Hanf and Gaifman [5], compactness [6], and the interplay between local consistency and global consistency for relations over semirings [1, 2]. The study of preservation theorems in semiring semantics extends this research to a further important model-theoretic topic.
From the study of model-theoretic methods and results in the setting of semiring semantics, the following general picture has emerged.
-
For most of the central model-theoretic notions (such as elementary equivalence, homomorphisms, evaluation and comparison games, locality, compactness, random structures etc.), the definitions naturally generalise to the semiring setting. In some cases, the generalisations require that semirings with specific algebraic properties are considered (for instance absorptive semirings, or semirings with infinitary operations).
-
Sometimes, variants of such definitions which are clearly equivalent in the classical Boolean case can become different, non-equivalent notions in semiring semantics. An important example is compactness, which can be formulated either in terms of satisfiability or in terms of entailment, and in the classical setting either one of the formulations of the compactness theorem obviously implies the other. In semiring semantics this is not the case. There, compactness in terms of entailment is a stronger notion than compactness in terms of satisfiability, and there are important semirings, such as the tropical semiring where the two notions can be separated [6].
-
While the questions about the status of classical logical theorems in semiring semantics arise very naturally, their answers (and the proofs of these) become much more complicated and often strongly depend on algebraic properties of the underlying semirings. Moreover, they often require the development of new mathematical methods.
Our Contributions
For preservation properties in semiring semantics, we make similar observations. The notions of preservation under extensions, substructures, or homomorphisms generalise very naturally to semiring semantics, and so do the straightforward directions (from syntactic forms to semantic properties) of the preservation theorems that we consider: Existential sentences are preserved under extensions, universal sentences are preserved downwards and existential-positive sentences are preserved under homomorphisms. We study the question for which semirings also the “difficult” direction (from semantic properties to syntactic forms) of the preservation theorems holds, both in the case of semiring interpretations over arbitrary domains and those just over finite domains. More precisely, our questions concerning, say, the Łoś-Tarski theorem can be stated as follows: Fix a semiring . Is it the case that for every first-order sentence which is preserved under extensions of (finite) -interpretations there exists a purely existential sentence which is equivalent to under all (finite) -interpretations? Can we identify algebraic notions that imply positive or negative answers to this question?
The questions for universal preservation and preservation under homomorphisms are analogous. Notice that the classical duality between existential and universal preservation breaks down. While the classical Łoś-Tarski theorem can be equivalently formulated in terms of existential or universal preservation, these are separate issues in semiring semantics. We also note that preservation theorems for semirings neither entail the classical Boolean variants, nor are they entailed by them. This is because on the semantic side, preservation properties for a semiring are stronger than their Boolean analogues, but on the syntactic side also -equivalence is a stronger notion than classical logical equivalence.
Our main results can be summarised as follows:
-
The preservation theorems for extensions, subinterpretations and homomorphisms are indeed true for all lattice semirings . These are semirings induced by a completely distributive complete lattice (i.e. a partial order closed under suprema and infima in which infima distributive over suprema), with suprema and infima as semiring operations; they encompass in particular all min-max semirings, such as the fuzzy semiring , and the security semiring for reasoning about access control [13]. The proofs combine adaptations of the classical compactness and amalgamation methods to the specific three-element min-max semiring with a reduction method from [6], reducing entailments for arbitrary lattice semirings to -entailments.
-
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, however, hold for finite interpretations in the Viterbi semiring, the tropical semiring, the Łukasiewicz semiring, and every lattice semiring with at least three elements. Thus the situation for these semirings is in sharp contrast to the classical Boolean case, where the Łoś-Tarski theorem holds in general, but not in the finite. To prove this result, we develop a novel technique that allows us to translate evaluation strategies for sentences between models of different finite cardinalities.
In particular, the latter result raises the intriguing question whether the failure of extension preservation in the finite is perhaps merely a sporadic phenomenon that is unique to the Boolean semiring. Thus, our study provides the foundation for a new line of future research: For which other (classes of) semirings does extension preservation survive in the finite?
2 Semiring Semantics for First-order Logic
We briefly describe the foundations of semiring semantics for first-order logic and refer to [19] for further details.
Definition 2.1.
A commutative monoid is an algebraic structure where is a binary commutative and associative operation with as its neutral element. A commutative semiring is a structure with such that and are commutative monoids, distributes over , and .
In the following, we assume that all semirings are commutative and naturally ordered, that is, defines a partial order. Addition and multiplication are monotone with respect to the natural order. A semiring is absorptive if for all , which is equivalent to the property that multiplication is decreasing with respect to the natural order. Absorptive semirings are particularly important in semiring semantics, because they preserve, to some extent, the common logical dualities. Addition in absorptive semirings is idempotent (i.e., for each ), so sums coincide with suprema. Beyond the Boolean semiring , there are many other absorptive semirings that provide useful information about the evaluation of a formula.
-
A totally ordered set with least element and greatest element induces the min-max semiring .
-
A more general class is the class of lattice semirings induced by a bounded distributive lattice . In fact, every absorptive semiring with idempotent multiplication is a lattice semiring.
-
The tropical semiring is used for cost analysis.
-
To reason about confidence, we may use the Viterbi semiring or the Łukasiewicz semiring where .
-
The semiring with models levels of doubt.
-
The most important non-absorptive semirings are the natural semiring and its extension to .
-
Provenance semirings allow us to track the atomic facts that are responsible for the truth of a formula. In the non-absorptive case, the most general provenance semirings are , the semirings of polynomials over a finite set of indeterminates and coefficients from . In the absorptive setting the important examples are the semirings and of (generalised) absorptive polynomials. See [19, 25] for more details.
To define semiring semantics also for infinite universes, and to extend it to valuations of infinite collections of first-order sentences, the semirings need to be equipped with infinitary summation and product operators. Algebraic foundations, mathematical properties and provenance valuations of such infinitary semirings have been studied in [9]. We will not go into details here and tacitly assume that infinitary sums and products are available and have the desired associativity and commutativity properties. In the specific semirings that we consider here, the definitions of these operations are straightforward.
To evaluate first-order formulae in semirings, classical structures are generalised to semiring interpretations that map the atomic facts and their negations to semiring values. While represents falsity, every non-zero element provides an annotation of truth.
Definition 2.2 (Semiring interpretations).
Let be a (finite or infinite) universe, let be a relational vocabulary, and let be a semiring. We denote by the set of -literals of the form or that are instantiated with tuples from . Analogously, denotes the set of -atoms over . An -interpretation (for and ) is a function . We say that is model-defining if for every literal precisely one of the values and is 0. Every model-defining -interpretation defines a -model where if for .
We only consider model-defining interpretations in this paper. Semiring semantics lifts each -interpretation for a universe and vocabulary to a mapping where is the set of first-order formulae instantiated with elements from . We assume that all formulae are written in negation normal form. This has emerged as the standard approach for dealing with negation in semiring semantics, and is explained in detail in [19].
Definition 2.3 (Semiring Semantics).
For every in negation normal form, the semiring valuation is lifted beyond the literals inductively, by
Equality atoms are interpreted by their Boolean truth value, that is, and for (and analogously for inequalities). For finite or infinite sets we set .
Lemma 2.4 (Fundamental Property).
Let be semirings, be an -interpretation, and be a semiring homomorphism. Then, is a -interpretation and it holds that for all .
Definition 2.5 (Entailment).
Let be sets of first-order sentences and let be an (absorptive) semiring. We write
-
(1)
( -entails ) if for every -interpretation , and
-
(2)
( is -equivalent to ) if for every -interpretation .
If or is a singleton, we replace them with the corresponding formula in these notations.
Notions of Preservation in Semiring Semantics
We next discuss how semantic preservation properties (upwards, downwards, and under homomorphisms) present themselves in the context of semiring semantics, and why they are implied by specific syntactic forms.
Definition 2.6 (Homomorphisms and Subinterpretations).
-
A homomorphism between -interpretations and is a mapping such that for any it holds that (note that we only take into account the positive literals here). Further, is a strong homomorphism if for all . If , in addition, is injective, we call it an embedding and write . Note that for idempotent semirings (where addition is the supremum with respect to the natural order), the inequality above reduces to for each .
-
is a subinterpretation of (and is an extension of ), denoted , if and holds for all literals .
-
is an elementary subinterpretation of (and is an elementary extension of ), denoted , if and holds for all .
Classical preservation properties have the form that sentences which are true in a specific structure remain true when we move to another structure, related to the first one as an extension, a substructure, or by a homomorphism. In the context of semiring interpretations we evaluate formulae not just by true or false, but in a general semiring. The property that the formula remains true is replaced by the stronger relationship that the formula evaluates to a greater or equal value (w.r.t. to the natural order on the semiring) when we move from one interpretation to a new one.
Definition 2.7 (Preservation).
-
A sentence is preserved under homomorphisms in if for all model-defining -interpretations with a homomorphism , we have that .
-
A sentence is preserved under subinterpretations in if for all model-defining -interpretations , we have that .
-
Analogously, is preserved under extensions in if is true for all model-defining -interpretations .
We observe that the directions from the syntactic form to the semantic preservation properties of the classical preservation theorems also hold in this context. Recall that
-
denotes the set of existential-positive sentences where is quantifier- and negation-free,
-
denotes the set of existential sentences where is quantifier-free, and
-
is the set of universal sentences where is quantifier-free.
At this point, it becomes clear why our definition of homomorphism involves summation over the preimages of tuples. This accounts for the possibility that multiple tuples in the left-hand side interpretation are collapsed onto the same tuple in . Our definition ensures that existential-positive sentences are indeed preserved under homomorphisms. For example, consider the sentence . Now take for example to be a bipartite graph with edge weights from , and an -weighted graph that is just a single edge. Since every bipartite graph maps homomorphically to a single edge, should map homomorphically to . But we have to insist that the value of the single edge in is at least the sum of its preimages, or else, we would not have . Moreover, in defining homomorphisms we use the natural order rather than insisting on equalities, so that edges are preserved while non-edges need not be.
Lemma 2.8.
If is a positive Boolean combination of (positive) existential sentences, there is some () such that for all additively idempotent semirings . If is a positive Boolean combination of universal sentences, there is some such that for all lattice semirings .
By monotonicity of the semiring operations and the fact that addition is increasing with respect to the natural order, the implication from syntax to semantics follows readily by induction for and . We only need to take some care in the case , where we need multiplication to be decreasing. This is true exactly for absorptive semirings.
Lemma 2.9.
-
(1)
-sentences are preserved under homomorphisms in every semiring.
-
(2)
-sentences are preserved under extensions in every semiring.
-
(3)
-sentences are preserved under subinterpretations in every absorptive semiring.
3 Failure of Extension Preservation in General Semirings
While the easy direction of the classical preservation theorems from syntax to semantics survives in semiring semantics, there are cases where the converse direction fails. We present two examples where sentences or sets of sentences are preserved under extensions but cannot be written without the use of universal quantifiers. The detailed proofs can be found in Appendix C. We first consider , the natural semiring expanded to .
Lemma 3.1.
The sentence is preserved under extensions in but not -equivalent to a -sentence.
In this example, the universally quantified variable does not appear in the formula. Hence, the universal quantifier has the effect of just raising the value of the inner formula to the -th power if is the size of the universe, and otherwise to the infinite power. While the formula is clearly extension-closed, one can see that expressing powers that grow with the size of the universe is not possible in without the use of a universal quantifier.
Our next counterexamples are the Viterbi semiring and the semiring of doubt with . We establish that extension preservation fails for a set of sentences, or for semiring interpretations over infinite universes. Of course these results translate to the tropical semiring and to the Łukasiewicz semiring , since is isomorphic to , and is isomorphic to .
Lemma 3.2.
For , the set is preserved under extensions in , but is not -equivalent to a set of -sentences.
The axiom system forces its models to be infinite. In infinite -interpretations, the universal quantifier raises the value of to its infinite power (i.e. the infimum of the finite powers), and the maximum over these values is preserved under extensions. However, one can prove that no set of existential sentences has the same semantics. The key argument is this: The supremum (the evaluation of the existential quantifier) over an infinite sequence tending towards in the interval is always , but when these values are first raised to – which is the effect of – then the supremum becomes . In other words, infinite suprema and powers do not commute in . The argument for is analogous.
4 Preservation Theorems in Lattice Semirings
Whether we consider single sentences or sets of them, the extension preservation theorem does not generalise to all semirings. This raises the question in which semirings it does survive. We show that both variants hold for the important and fairly general class of lattice semirings, induced by a completely distributive complete lattice (i.e. a partial order closed under suprema and infima in which infima distributive over suprema), with supremum and infimum as semiring operations. Also the homomorphism and subinterpretation preservation theorems generalise to the lattice setting.
Theorem 4.1.
Let be a lattice semiring. A sentence is preserved under homomorphisms/extensions/subinterpretations in if, and only if, there is some / / such that .
Here we will only treat extension preservation and refer to [7] for the proofs of the homomorphism and subinterpretation preservation theorems.
The classical proofs of most model-theoretic preservation theorems
rely on compactness and amalgamation. Compactness has recently been studied in the context of semiring semantics in [6] and positive results have been established, in particular, for the lattice case.
However, by itself, compactness alone does not suffice to
extend the proofs of preservation theorems to lattice semirings.
A simple yet important property that the classical proof of the extension preservation theorem is based on is that two Boolean structures satisfy the same -sentences if, and only if, they share the same finite substructures. In this respect, semiring semantics behaves completely differently, and finite non-isomorphic interpretations over -element min-max semirings may even agree on the evaluation of any -sentence [17].
The intuitive reason for this is that the semiring elements do not occur in the logic’s syntax.
While the -sentence , for example, describes a substructure of size in the Boolean, its evaluation in a lattice semiring may not even be witnessed by a single instantiation of as existential quantifiers are evaluated to a supremum.
Even if we fix some instantiation , by commutativity, the evaluation of does not give insights into the contribution of the single literals.
This mismatch between -sentences and the notions of subinterpretations and extensions in semiring semantics is what makes it a challenge to show that the extension preservation theorem still holds. We achieve this by combining arguments used in the classical proof with new methods specifically developed for semiring semantics.
Proof Methods from Semiring Semantics
A key ingredient to the proof of Theorem 4.1 is a reduction to the case where we evaluate in the three-element lattice semiring , where an element denoted is sandwiched in between and , that is, . As it embeds into any lattice semiring except the Boolean one, it can be thought of as the simplest lattice semiring beyond the Boolean. By extending a decomposition method based on homomorphisms from [6], we show that a preservation property or a logical equivalence must hold in all lattice semirings once it holds in a single such semiring.
Proposition 4.2.
Let be lattice semirings and be a set of sentences. If is preserved under homomorphisms/extensions/subinterpretations in , then must also be preserved under homomorphisms/extensions/subinterpretations in .
Proposition 4.3.
For all , the following are equivalent:
-
(1)
for all lattice semirings ;
-
(2)
for some lattice semiring ;
-
(3)
for all -interpretations with .
Corollary 4.4.
For all , the following are equivalent:
-
(1)
for all lattice semirings ;
-
(2)
for some lattice semiring ;
-
(3)
if, and only if, for all -interpretations .
Note that this reduction only works for lattice semirings , but not for the Boolean semiring itself, i.e., classical semantics. Since equalities are evaluated by their Boolean truth value in semiring semantics, some Boolean tautologies can only evaluate to in lattice semirings, while others may take values different from . As a consequence, the sentence , for example, is clearly extension preserved in the classical sense, but it is not in any lattice semiring , which contains a third truth value : Extending an -interpretation over a single element whose valuation with respect to is by a second element such that is evaluated to decreases the valuation of . Similarly, one observes that for all .
An essential part of the proof of Theorem 4.1 will be the third statement of Corollary 4.4, which intuitively says that the -semantics of a sentence is uniquely determined by its -valuations. This is not to be confused with its classical Boolean semantics, because it is still evaluated on -interpretations that may also annotate literals with . This insight gives us some relationship between and finite subinterpretations again: Two -interpretations evaluate the same -sentence to if, and only if, they have the same finite subinterpretations that only contain valuations of .
Besides this reduction to , we will need to apply compactness. The semiring setting admits different notions of compactness. Restricting ourselves to the case allows us to apply two different variants, one of them being based on -axioms , where is a sentence and a set of designated truth values (a modified version of the notion used in [24]), and another one based on entailment (studied in [6]). While we use the first variant to prove an amalgamation theorem and justify its application, the second variant is important to infer a single equivalent -sentence starting from a single extension preserved sentence, just as in the Boolean proof.
Definition 4.5.
An -axiom (over a universe ) is a pair where and . An -interpretation satisfies if . A set of -axioms is called an axiomatic system, and it is satisfied by if satisfies each . An axiomatic system is satisfiable if there is a model-defining interpretation that satisfies it.
Theorem 4.6 ([24]).
Let be finite and absorptive, and be an unsatisfiable set of -axioms. Then there is already a finite unsatisfiable .
It should be noted that [24] proves Theorem 4.6 only for -axioms where is a singleton, but the case where is any finite set is completely analogous.
Theorem 4.7 ([6]).
Let be a lattice semiring. If , then there is some finite such that .
Extension Preservation
We first consider the case and then generalise it to arbitrary lattice semirings . More precisely, we prove that every set of sentences which is extension preserved in is -equivalent to some . As in the classical proof, we show that , where . It holds that because for any -interpretation , is a lower bound of , which implies . It remains to show that if is extension preserved in , the converse entailment holds as well.
Lemma 4.8.
Let be an -interpretation such that for all . Then there is an -interpretation such that
-
(1)
, and
-
(2)
for all with .
Lemma 4.9 (Existential Amalgamation).
Let and be -interpretations such that for all with . Then there is some and an injective mapping such that for all with .
Theorem 4.10.
Let . If is extension preserved in , then .
Proof.
Let , i.e., for all . By Proposition 4.3, it suffices to prove that . Let be as in Lemma 4.8 and be the corresponding amalgamated -interpretation according to Lemma 4.9. We know that and want to argue that holds as well. However, there need not be an embedding from to , only an injective mapping that preserves valuations of , which is why we take a detour via another -interpretation that still evaluates to but embeds into . Consider the homomorphism where and . By construction, , which implies . Since valuations of do not occur in , the mapping we get from Lemma 4.9 must be a homomorphism from to . However, is not necessarily model-defining and we might have that both a literal and its complement are evaluated to . Hence, to define the -interpretation , also on the universe , we insert the missing valuations by copying them from , which ensures that is still an embedding into .
More precisely, is defined as follows: For we set if or .111 refers to the dual literal, i.e. we identify with Otherwise, we set . Note that is model-defining; in the first case this is inherited from , and in the second case this is inherited from . It remains to verify that embeds into . By Lemma 4.9, is injective. So let . By definition of , we can restrict ourselves to the case or . First let . We have because preserves valuations of inside . If , we must have that by construction of , i.e. , and .
We have for all . By monotonicity of and , this inductively yields . Since is extension preserved by assumption, this implies . With , it follows that . Hence, we can overall conclude that .
Theorem 4.11.
Let be a lattice semiring. If is preserved under extensions in , then for some . In the special case where is a singleton, there is a single -sentence -equivalent to .
Proof.
Let be extension preserved in . By Proposition 4.2, must be extension preserved in . By Theorem 4.10, we know that , and thus . With Corollary 4.4 this yields . In the case where only contains a single sentence, we can apply compactness via entailment (Theorem 4.7), and obtain a finite such that . By Lemma 2.8, is -equivalent to a -sentence.
5 Extension Preservation in the Finite
The classical Łos–Tarski theorem is known to fail in finite model theory, when both preservation and equivalence are restricted to finite structures. However, unlike for other model-theoretic properties, this does not immediately imply the failure of the theorem for other semirings, as sentences that are preserved under extensions in the Boolean sense may not be preserved in other semirings as well. Therefore, we study the question of whether there are semirings in which the extension preservation theorem remains true when restricted to finite universes. It turns out that in semiring semantics, the situation is much more diverse than in the Boolean world. In some cases, e.g. if we consider the natural semiring, we can easily adapt the counterexample used to disprove the extension preservation theorem in the general setting.
Theorem 5.1.
There is a sentence which is finite extension preserved in (i.e. extension preserved on finite -interpretations), but, on finite -interpretations, it is not equivalent to any .
For other semirings, this is different. Despite the failure in the Boolean, the extension preservation theorem holds in the finite for the Viterbi and the Łukasiewicz semiring (and thus the tropical semiring and the semiring of doubt), and every lattice semiring with at least three elements. In this section, we discuss the key concepts and main proof ideas, and refer to the full version of this paper for a formal definition of all notions and proofs [7].
5.1 The Viterbi and Łukasiewicz Semiring
Recall the counterexample from Section 3. It relied on the fact that on -interpretations of infinite universe, the sentence is preserved under extensions. If we restrict ourselves to finite -interpretations, this is no longer true as the universal quantifier generates a power to the size of the universe, and multiplication is strictly decreasing in . Consider, for example, the -interpretation over the universe with and its extension over with , where we have . We will show that universal quantifiers, not just in this example, but always, make it impossible for a sentence to be extension preserved in the finite, except when: On sufficiently large -interpretations, either the universal quantifier always evaluates to 1 (such as ) and can be replaced by , or it does not actually contribute anything to the semantics of the formula and we can replace it with . As an example for the latter case, consider the sentence . While addition is increasing, multiplication is decreasing in , so we have for all -interpretations , and replacing the universal subformula with yields a -equivalent sentence. Based on this idea, we show that the extension preservation theorem holds not just for in the finite, but also for and .
Theorem 5.2.
Let . A sentence is finite extension preserved in if, and only if, there is some which is equivalent to on finite -interpretations.
The implication from syntax to semantics is covered by Lemma 2.9. It remains to prove the converse. The main steps of the proof are as follows.
-
(1)
Reduce the problem of equivalence to a -sentence to sufficiently large -interpretations.
-
(2)
Track the contribution of subformulae to the semantics of a formula by means of so-called evaluation strategies – these are equivalent to strategies of the Verifier in the classical model checking game for FO.
-
(3)
Show that for extension preserved sentences and large -interpretations, evaluation strategies that use a subformula are always dominated by ones that avoid universal quantifiers.
-
(4)
Remove all strategies using a subformula and rewrite the formula without universal quantifiers.
Equivalence on Large -interpretations
Given a finite extension preserved sentence , our goal is to construct a finitely equivalent existential sentence. The first step is to argue that it suffices to find an existential sentence which is equivalent on -interpretations whose universe has at least a certain cardinality (denoted ). By replacing each universal quantifier of with an -ary conjunction, we can always find an existential sentence that is equivalent to on -interpretations of fixed size . Using extension preservation of and the fact that addition is the maximum with respect to the natural order222This is also true for and , where the natural order is the reverse of the usual order on ., we can combine such formulae with to obtain an existential sentence that is equivalent to on all finite -interpretations (denoted by ).
Lemma 5.3.
Let be additively idempotent. If is finite extension preserved in and there is some and such that , then there must be some such that .
Strategies and their Valuation
The semiring semantics of a sentence can be defined via the notion of evaluation strategies. In order to avoid having to consider different equality types of instantiations, we use the variant of where we no longer have equality atoms and the quantifiers only range over elements that do not occur in the instantiations of the free variables. Since formulae can be translated back and forth between and all results for readily translate to . We give a formal definition of and evaluation strategies in Appendix C. Intuitively, an evaluation strategy for a sentence and an -interpretation is given by specifying for each subformula of , whether we would like to evaluate or , and for each instantiated subformula , an instantiation of with an element of the universe that does not occur in . Then the value of the strategy is the product over all such that is an instantiated literal in that can be reached in the classical FO model-checking game in a play consistent with the (Verifier) strategy . Essentially, these are all literals in subformulae of the disjuncts chosen by with all variable instantiations consistent with the existential ones chosen by .
Theorem 5.4 (Sum-of-Strategies [19]).
For every semiring and every -interpretation and we have .
Because addition is the maximum operation in and , by the above theorem, the valuation coincides with the maximum valuation of any evaluation strategy. We refer to such a strategy as optimal for and . We call a strategy existential if it does not use any subformula . The central claim we prove is that finite extension preservation implies redundancy of in , which means that for any sufficiently large -interpretations there must always be an existential strategy which is optimal for and .
Existence of Existential Optimal Strategies
To prove this claim, we suppose that was not redundant in a finite extension preserved sentence . Starting from a non-existential strategy optimal for an -interpretation , we aim to infer a contradiction by disproving finite extension preservation of . Essentially, we make use of the fact that multiplication is strictly decreasing on to construct a strategy for a subinterpretation of such that . By Theorem 5.4 and the optimality of , this shows that is not finite extension preserved because , but . Let denote the universe of and the universe of . The idea is to construct the strategy from by restricting the instantiations of all universally quantified variables to elements of . Because uses at least one subformula , this will remove at least one substrategy (where we instantiate with ). So if we can make sure that neither evaluates this substrategy to , nor the entire strategy to , we obtain as desired. However, there are some technical intricacies to this: The strategy may choose to instantiate existentially quantified variables with , so we have to show that we can find alternative choices without changing the valuation of the strategy too much. We show that this is always possible as long as sufficiently many elements from do not occur in any relational atom used in . This construction of from , that we refer to as strategy translation, is the key new technique that we develop for this proof.
Lemma 5.5 (Strategy translation).
If there is an -interpretation on a sufficiently large universe and a strategy optimal for and such that (1) , (2) uses a subformula such that no substrategy for some is evaluated to , and (3) at least elements of do not occur in any relational atom used in , then cannot be finite extension preserved.
To finally argue that finite extension preservation implies redundancy of , we assume that was not redundant in a finite extension preserved sentence , and show that we can always find an -interpretation that meets the conditions in Lemma 5.5, which yields the desired contradiction. Just from irredundancy of in , we only know the existence of arbitrarily large -interpretations such that every strategy optimal for and is non-existential (that is, uses a subformula ). We call such -interpretations counterexamples to redundancy of in . It remains to prove that we can find a sufficiently large such counterexample to redundancy that additionally satisfy condition (1)-(3) in Lemma 5.5. This will follow from three main lemmas.
Lemma 5.6.
Let for each be finite extension preserved in . If is not redundant in , then there are arbitrarily large counterexamples to redundancy of in such that and at least elements of the universe are not used in any relational atom in any optimal strategy for .
Using the fact that there is no unique minimal positive element in , Lemma 5.6 justifies that condition (1) and (3) from Lemma 5.5 can be met. The main idea in the proof of Lemma 5.6 is to extend a counterexample to redundancy of by elements and to annotate all new literals with a sufficiently small value. Finite extension preservation then makes sure that no strategy optimal for this extension uses any of the newly added relational atoms.
What remains is to exclude the case that only substrategies with a -valuation are removed during the strategy translation (condition (2) in Lemma 5.5). To this end, we prove that one of the following two cases must occur: On sufficiently large -interpretations , a subformula must either always be evaluated to , in which case we call it trivial and can simply rewrite it, or its strategies never evaluate to unless occurs as the annotation of a relational atom in . We show in Lemma 5.8 that occurrences of in can be eliminated by replacing them by sufficiently large values .
Lemma 5.7.
Let . For every non-trivial formula there is some such that for all and -interpretations of size with , it holds that for all strategies for and all tuples .
Lemma 5.8.
Let . For every -interpretation with there is an -interpretation such that , , and every strategy optimal for and is optimal for and , too.
Combining Lemma 5.6, Lemma 5.7, and Lemma 5.8 allows us to apply Lemma 5.5 and infer that finite extension preservation ensures redundancy of in the following way.
Theorem 5.9.
Let and be finite extension preserved in such that for all and such that every subformula of is non-trivial. Then must be redundant in .
Omitting Universal Quantifiers
The final argument is to show that we can syntactically remove universal subformulae from , provided that is redundant in . More precisely, we replace every non-trivial subformula with . Due to the existence of existential optimal strategies, this will maintain the valuation of at least one optimal strategy and thus the semantics of .
Theorem 5.10.
Let and be finite extension preserved in such that every subformula of is non-trivial and for all . Then for some where arises from by substituting each non-trivial subformula with .
The harder direction of Theorem 5.2 now follows: With Theorem 5.10, we can rewrite the given finite extension preserved sentence (on large enough universes) to an existential sentence . By Lemma 5.3, this is sufficient to obtain an equivalent existential sentence on all universe sizes. Technically, there is a small gap between the assumptions of Theorem 5.2 and Theorem 5.10: The latter requires all universal subformulae to be non-trivial. This can be achieved by first suitably rewriting , but we defer the details to [7].
5.2 Lattice Semirings
The central ingredient to the proof of Theorem 5.2 is the existence of existential optimal strategies in the presence of finite extension preservation. Note that this argument really relied on the specific algebraic properties of the Viterbi and Łukasiewicz semiring and does not apply to the Boolean semiring. In fact, this argument does not work for any lattice semiring , in which multiplication is idempotent. It is not just that the existence of any optimal strategy is not guaranteed in the case where is not linearly ordered, even for min-max semirings it may be that all optimal strategies are non-existential. The sentence , for example, is finite extension preserved in . However, it clearly does not admit any existential strategy, so in particular not an optimal one.
Surprisingly, by combining the techniques from Section 4 and Section 5, we can prove that the finite extension preservation theorem also holds for every lattice semiring apart from the Boolean one.
Theorem 5.11.
Let be a lattice semiring. A sentence is finite extension preserved in if, and only if, on finite -interpretations, it is equivalent to an existential sentence.
To prove Theorem 5.11, we reuse the reduction method from Section 4 and restrict ourselves to the case where we evaluate in the fuzzy semiring . The structure of the proof is similar to the one from Section 5: The first two steps are just the same. Due to its linear order, the notion of optimal strategies also applies to . The existence of existential optimal strategies in step 3, however, has to be replaced by a weaker statement. Intuitively, the reason why finite extension preservation in might still hold in the presence of universal quantifiers is that strategies might use subformulae , however, without actually relying on a literal that contains the universally quantified variable . In the example above, it is easy to rewrite as an existential sentence: Because no strategy uses a literal containing , we can simply delete the universal quantifier. A more complicated case occurs when strategies use a literal that contains for some instantiations, but not for all of them, which might happen if we consider , for example. Therefore, we consider almost existential strategies, where whenever a subformula is used, at least one substrategy for some does not use any relational literal that contains . Using density of , the main claim we prove is the following.
Lemma 5.12.
Let be finite extension preserved in . For every sufficiently large -interpretation , there must be an almost existential strategy optimal for and .
The proof requires a strategy translation lemma similar to the one we applied to and . Knowing just the existence of almost, but not necessarily fully, existential optimal strategies, we cannot replace all universal subformulae by right away as done in the Viterbi and Łukasiewicz case. Instead, in step 4 of the proof, we will first manipulate a given extension preserved sentence by basic logical equivalences to make sure that universal subformulae only occur at places where they do not admit almost existential strategies. This will allow us in the end to argue that such universal subformulae must be redundant and can be removed from the formula without changing its semantics. In the example above, we first transform into , which is -equivalent by continuity, and then argue that as can never be used in an almost existential strategy.
6 Conclusion
In this paper, we have provided a framework for studying the interplay between syntactic forms and semantic properties of first-order formulae evaluated in semirings beyond the classical Boolean case. As a first result, we have seen that preservation theorems do not always generalise to the semiring setting as, for instance, the extension preservation theorem fails for the tropical semiring, the Viterbi semiring, the Łukasiewicz semiring, and the natural semirings and . However, on the fairly broad class of lattice semirings we manage to recover the classical preservation theorems for homomorphisms, extensions and subinterpretations. The proof combines adaptations of classical methods from model theory, based on compactness and amalgamation, with a reduction technique specifically designed for semiring semantics. Results with a somewhat similar flavour have been studied in the context of certain many-valued logics [3, 10]. However, our framework differs from these studies in multiple ways: Our notions of preservation and logical equivalence are much more fine-grained as they do not just distinguish valuations of from those taking different values. Moreover, in our setting, elements of the algebraic structure in which we evaluate the formulae do not appear as constants in the logic (which has several relevant consequences as existential sentences can no longer describe the finite subinterpretations of a given interpretation), and we obtained positive results for arbitrary lattice semirings rather than just the finite linearly ordered ones. Surprisingly, the extension preservation theorem, which fails in finite model theory under Boolean semantics, does hold for a number of semirings including the tropical semiring, the Viterbi semiring, the Łukasiewicz semiring, and every non-Boolean lattice semiring, which is the second main contribution of this paper.
The results presented here suggest two main directions for future research: towards other semirings, and other preservation theorems (both in the finite and general case). More specifically, the approach employed for lattices might be applicable to other preservation theorems, for example concerning chain preservation. Moreover, we believe that the curious phenomenon of extension preservation in the finite deserves further investigation. We suspect that a similar proof technique could be used to establish extension preservation in the finite also for other semirings. For all we know, it is possible that the Boolean lattice is the only one which does not satisfy extension preservation in the finite. Exploring this question further would shed a new light on preservation theorems in finite model theory.
References
- [1] A. Atserias and P. Kolaitis. Acyclicity, consistency, and positive semirings. In A. Palmigiano and M. Sadrzadeh, editors, Samson Abramsky on Logic and Structure in Computer Science and Beyond, volume 25 of Outstanding Contributions to Logic, pages 623–668. Springer, 2023. doi:10.1007/978-3-031-24117-8_17.
- [2] A. Atserias and P. Kolaitis. Consistency of relations over monoids. Proc. ACM Manag. Data, 2(2):107, 2024. doi:10.1145/3651608.
- [3] G. Badia, V. Costa, P. Dellunde, and C. Noguera. Syntactic characterizations of classes of first-order structures in mathematical fuzzy logic. Soft Comput., 23(7):2177–2186, 2019. doi:10.1007/S00500-019-03850-6.
- [4] G. Badia, P. Kolaitis, and C. Noguera. Codd’s theorem for databases over semirings. Proc. ACM Manag. Data, 3(5):277:1–277:26, 2025. doi:10.1145/3767713.
- [5] C. Bizière, E. Grädel, and M. Naaf. Locality Theorems in Semiring Semantics. In 48th International Symposium on Mathematical Foundations of Computer Science (MFCS 2023), volume 272 of Leibniz International Proceedings in Informatics (LIPIcs), pages 20:1–20:15, 2023. doi:10.4230/LIPIcs.MFCS.2023.20.
- [6] S. Brinke, A. Dawar, E. Grädel, L. Mrkonjić, and M. Naaf. Compactness in Semiring Semantics. In 34th EACSL Annual Conference on Computer Science Logic (CSL 2026), volume 363 of Leibniz International Proceedings in Informatics (LIPIcs), pages 13:1–13:21, 2026. doi:10.4230/LIPIcs.CSL.2026.13.
- [7] S. Brinke, A. Dawar, E. Grädel, and B. Pago. Preservation Theorems in Semiring Semantics, 2026. arXiv:2605.10829.
- [8] S. Brinke, E. Grädel, and L. Mrkonjić. Ehrenfeucht-Fraïssé Games in Semiring Semantics. In 32nd EACSL Annual Conference on Computer Science Logic (CSL 2024), volume 288 of Leibniz International Proceedings in Informatics (LIPIcs), pages 19:1–19:22, 2024. doi:10.4230/LIPIcs.CSL.2024.19.
- [9] S. Brinke, E. Grädel, L. Mrkonjić, and M. Naaf. Semiring Provenance in the Infinite. In The Provenance of Elegance in Computation - Essays Dedicated to Val Tannen, volume 119 of Open Access Series in Informatics (OASIcs), pages 3:1–3:26, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/OASIcs.Tannen.3.
- [10] J. Carr. Homomorphism preservation theorems for many-valued structures. ACM Transactions on Computational Logic, 2026. doi:10.1145/3793665.
- [11] A. Dawar and A. Sankaran. Extension preservation in the finite and prefix classes of first order logic. In 29th EACSL Annual Conference on Computer Science Logic (CSL 2021), pages 18:1–18:13, 2021. doi:10.4230/LIPIcs.CSL.2021.18.
- [12] P. Dellunde and A. Vidal. Truth-preservartion under fuzzy pp-formulas. International Journal of Uncertainty, Fuzzyness, and Knowledge-Based Systems, 27:89–105, 2019. doi:10.1142/S0218488519400051.
- [13] J. Nathan Foster, Todd J. Green, and Val Tannen. Annotated xml: queries and provenance. In Proceedings of the Twenty-Seventh ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, PODS ’08, pages 271–280, 2008. doi:10.1145/1376916.1376954.
- [14] B. Glavic. Data provenance. Foundations and Trends in Databases, 9(3-4):209–441, 2021. doi:10.1561/1900000068.
- [15] E. Grädel, H. Helal, M. Naaf, and R. Wilke. Zero-One Laws and Almost Sure Valuations of First-Order Logic in Semiring Semantics. In LICS ’22: 37th Annual ACM/IEEE Symposium on Logic in Computer Science, Haifa, Israel, August 2 - 5, 2022, pages 41:1–41:12. ACM, 2022. doi:10.1145/3531130.3533358.
- [16] E. Grädel, N. Lücking, and M. Naaf. Semiring provenance for Büchi games: Strategy analysis with absorptive polynomials. In P. Ganty and D. Bresolin, editors, Proceedings 12th International Symposium on Games, Automata, Logics, and Formal Verification (GandALF 2021), volume 346 of EPTCS, pages 67–82, 2021. doi:10.4204/EPTCS.346.5.
- [17] E. Grädel and L. Mrkonjić. Elementary equivalence versus isomorphism in semiring semantics. In 48th International Colloquium on Automata, Languages, and Programming (ICALP 2021), volume 198, pages 133:1–133:20, Dagstuhl, Germany, 2021. doi:10.4230/LIPIcs.ICALP.2021.133.
- [18] E. Grädel and V. Tannen. Provenance analysis for logic and games. Moscow Journal of Combinatorics and Number Theory, 9(3):203–228, 2020. Preprint available at https://arxiv.org/abs/1907.08470. doi:10.2140/moscow.2020.9.203.
- [19] E. Grädel and V. Tannen. Provenance analysis and semiring semantics for first-order logic. In Model Theory, Computer Science and Graph Polynomials. Festschrift for Johann A. Makowsky. Birkhäuser, 2025. See also arXiv:2412.07986. doi:10.48550/arXiv.2412.07986.
- [20] T. Green, G. Karvounarakis, and V. Tannen. Provenance semirings. In Proceedings of the Twenty-Sixth ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, PODS ’07, pages 31–40. Association for Computing Machinery, 2007. doi:10.1145/1265530.1265535.
- [21] T. Green and V. Tannen. The Semiring Framework for Database Provenance. In Proceedings of the 36th ACM SIGMOD-SIGACT-SIGAI Symposium on Principles of Database Systems, PODS ’17, pages 93–99. Association for Computing Machinery, 2017. doi:10.1145/3034786.3056125.
- [22] Y. Gurevich. Towards logic tailored for computational complexity. In Computation and Proof Theory, pages 175–216. Springer Lecture Notes in Mathematics, 1984.
- [23] A. Lopez. First Order Preservation Theorems in Finite Model Theory : Locality, Topology, and Limit Constructions. PhD thesis, University of Paris-Saclay, France, 2023. URL: https://tel.archives-ouvertes.fr/tel-04534568.
- [24] L. Mrkonjić. Semiring Semantics: Algebraic Foundations, Model Theory, and Strategy Analysis. PhD thesis, RWTH Aachen University, 2025. URL: https://publications.rwth-aachen.de/record/1010223.
- [25] M. Naaf. Logic, Semirings, and Fixed Points. PhD thesis, RWTH Aachen University, 2024. URL: https://publications.rwth-aachen.de/record/996756.
- [26] E. Rosen. Some aspects of model theory on finite structures. Bulletin of Symbolic Logic, 8:380–403, 2002. doi:10.2178/BSL/1182353894.
- [27] Benjamin Rossman. Homomorphism preservation theorems. J. ACM, 55(3), 2008. doi:10.1145/1379759.1379763.
- [28] W. Tait. A counterexample to a conjecture of Scott and Suppes. Journal of Symbolic Logic, 24:15–16, 1959. doi:10.2307/2964569.
Appendix A Proofs from Section 2 and Section 3
Lemma 2.8. [Restated, see original statement.]
If is a positive Boolean combination of (positive) existential sentences, there is some () such that for all additively idempotent semirings . If is a positive Boolean combination of universal sentences, there is some such that for all lattice semirings .
Proof.
Let be a semiring and where and are disjoint tuples of variables. By (1) commutativity, associativity, and idempotence of addition, and (2) distributivity, we have the logical equivalences for in any semiring since for any -interpretation of universe ,
Hence, the first claim follows by induction. In order to prove the second statement in an analogous way, we do not just need commutativity, associativity, and idempotence of multiplication, but also the dual distributivity law , where , which only holds in lattice semirings. In any lattice semiring , however, we have the logical equivalences and , which inductively imply the second claim.
Lemma 3.1. [Restated, see original statement.]
The sentence is preserved under extensions in but not -equivalent to a -sentence.
Proof.
For -interpretations we have that
because addition and exponentiation are increasing. Hence, is preserved under extensions in . It remains to show that is not -equivalent to a -sentence. For , let be the -interpretation with universe and valuations and for all . For , the valuation is a polynomial whose degree is bounded by the length of (and does not depend on ). However, . So there must be some such that for the homomorphism induced by we have that . Hence, .
Lemma 3.2. [Restated, see original statement.]
For , the set is preserved under extensions in , but is not -equivalent to a set of -sentences.
Proof.
Consider first the case . Let be -interpretations. If is finite, we have that . So let (and thus , as ) be infinite. Then
Hence, is preserved under extensions in .
Fix some chain such that . Let be the -interpretation over universe where , and let be the extension of with universe with . We have that . We show that cannot be -equivalent to a set of -sentences by proving that for every with , we also have . So fix such a . Let be arbitrary and consider a tuple .
Since is a product of the valuations of literals and , we can replace each occurrence of the unique element in by some sufficiently large such that for the resulting tuple we get . Since and were arbitrary, this shows that
This finishes the case that . If , then the reasoning is analogous, with the difference that in , the natural order is reversed: To be clear, let denote the standard order on the interval , and let denote the order on induced by the semiring addition operation, which is in this case. Then if and only if . Let be -interpretations. We can again assume that both and are infinite. Let be the function that maps to and every other element of to . Also in , is preserved under extensions:
The inequality is due to the fact that , so the right-hand side can only be less than the left-hand side with respect to . To show that is not -equivalent to a set of -sentences, we use a dual construction to the previous one for and . That is, we fix a chain such that . Let be the -interpretation over universe where , and let be the extension of by an additional element with . We have that . It remains to argue that for every , it is the case that also implies . This follows analogously as before by considering an arbitrary and , and observing that by replacing each occurrence of the special element in with a sufficiently small , we obtain a tuple such that . Hence, taking the infimum over all , we conclude that and so, cannot be -equivalent to a set of -sentences.
Appendix B Proofs from Section 4
Lemma 4.8. [Restated, see original statement.]
Let be an -interpretation such that for all . Then there is an -interpretation such that
-
(1)
, and
-
(2)
for all with .
Proof.
Let and suppose towards a contradiction that the set was unsatisfiable. By compactness (Theorem 4.6), there must be a finite unsatisfiable subset. Let be such that is unsatisfiable. That means that every model-defining -interpretation with also satisfies . By Proposition 4.3, this implies and since for some (by Lemma 2.8), is -equivalent to a formula in . By assumption, , but we defined such that for all , a contradiction.
Lemma 4.9 (Existential Amalgamation). [Restated, see original statement.]
Let and be -interpretations such that for all with . Then there is some and an injective mapping such that for all with .
Proof.
Suppose that such a does not exist, i.e., that where , is unsatisfiable. Let be finite such that is unsatisfiable; this exists by Theorem 4.6. Consider the set that is obtained from by replacing each constant with a variable . Since is finite, only a fixed number of variables is needed. We claim that where . By assumption, this would imply , which is in contradiction with the definition of . Suppose that . Then there would be pairwise distinct such that for all , and the expansion of where each constant occurring in is interpreted with would satisfy , a contradiction.
Appendix C Proofs from Section 5
In the proof of Theorem 5.2, we make use of the variant of . Formulae from only contain relational atoms, but no equality atoms, and rather than the usual quantifiers, they may contain quantifiers with the semantics and We also assume that all universes are of the form for some .
Definition C.1.
The model checking game graph for and is a labelled tree where each node is labelled by a subformula of which is instantiated with elements from . We inductively define for and in negation normal form as follows. In any case, the root of is labelled . If is a literal or a Boolean constant, consists of a single node. For where , in we append for as subtrees to the root. Finally, if has the form where we now append the trees for each to the root.
Definition C.2.
An evaluation strategy (or just strategy) for and is a subtree of where each node labelled with or has exactly one successor and each node labelled with or contains all successors in . We write and define the valuation in an -interpretation of universe as the products of all valuations of the leaves in .
Lemma 5.6. [Restated, see original statement.]
Let for each be finite extension preserved in . If is not redundant in , then there are arbitrarily large counterexamples to redundancy of in such that and at least elements of the universe are not used in any relational atom in any optimal strategy for .
Proof.
First note that for each , together with the fact that is finite extension preserved in , implies that there must be some such that for all . Thereby, denotes equivalence on -interpretations of size exactly . Fix some . Because is not redundant in , there must be a counterexample to redundancy of of universe where . We first justify that we can assume without loss of generality that : Suppose that . Then we must have for all strategies , but this means that every such is optimal for and can thus not be existential. In this case, every -interpretation of universe is a counterexample to redundancy in , and we can replace with some arbitrary -interpretation which does not evaluate to . Such an -interpretation must exist by (this is why we insisted on ).
Hence, we can fix some and define an extension of universe such that and for . We claim that has the required properties. By finite extension preservation in and the fact that , we have . Let be a strategy optimal for and . cannot use any literal , otherwise extension preservation would be violated due to . It remains to argue that cannot be existential. So suppose it was. We translate into an existential strategy with to infer a contradiction. Note that although the elements are not used in a relational atom in they may still occur in , as instantiation of an existential quantifier. The depth of is and its branching degree is at most . Hence, has less than nodes, and there must be elements which do not occur at all in . Hence, swapping each occurrence of in with respects all inequalities between instantiations in (recall that at a position , some has to be chosen). Further, neither nor occurs inside a literal in , which ensures . But, by extension preservation, , so would be an existential strategy optimal for and , a contradiction.
Lemma 5.8. [Restated, see original statement.]
Let . For every -interpretation with there is an -interpretation such that , , and every strategy optimal for and is optimal for and , too.
Proof.
In what follows, we extend the set of evaluation strategies by a dummy element whose evaluation is fixed to be (note that is not a strategy in the sense of ˜C.2). Each -interpretation of universe induces a preorder on in the following way: We set whenever . From we construct an -interpretation such that and claim that . Because is finite, there exist such that and is the maximum number of leaves of strategies in .
-
First consider the case . Fix some with and set if and otherwise . Now let , i.e. . We claim that . Using by the Sum-Of-Strategy Theorem, we obtain
Hence, and we overall obtain .
-
Now let . Due to , the natural order of is inverted, and and . We denote by the usual order on . Now fix some and, as before, set if and otherwise. Let , i.e. and thus . We have
Note in that cannot exceed because we take into account the dummy strategy , which always evaluates to , when defining . As before, it follows that , proving .
Now note that we must have . Otherwise we would have , i.e. , for all while , i.e. , for some according to the Sum-Of-Strategies Theorem. Let be a strategy optimal for and . This means that for all and thus for all , implying that must be optimal for and too.
Theorem 5.9. [Restated, see original statement.]
Let and be finite extension preserved in such that for all and such that every subformula of is non-trivial. Then must be redundant in .
Proof.
Suppose that was not redundant in , and let be sufficiently large to apply Lemma 5.5 and Lemma 5.7 to every subformula of . By Lemma 5.6, there must be a counterexample to redundancy of of size such that and such that at least elements do not occur inside the literals used in any optimal strategy. Transform into an -interpretation such that according to Lemma 5.8. Every strategy optimal for and must be optimal for and and thus non-existential such that at least elements do not occur inside the literals of the strategy. Further, because . Fix some strategy optimal for and and a subformula used in . Because is non-trivial, must be non-trivial too, and as , we know by Lemma 5.7 that for all strategies for and all . Hence, we can invoke Lemma 5.5 and obtain a contradiction to finite extension preservation of .
Theorem 5.10. [Restated, see original statement.]
Let and be finite extension preserved in such that every subformula of is non-trivial and for all . Then for some where arises from by substituting each non-trivial subformula with .
Proof.
Apply Theorem 5.9 to and infer that is redundant in . Let be such that for every -interpretation of size at least there exists an existential strategy optimal for and . Now note that for every existential strategy for there is a strategy for with the same valuation and vice versa unless it uses and evaluates to . For any -interpretation of universe where we have
So overall we obtain .
