The compactness theorem for first-order logic says that a set of first-order sentences has a model if and only if every finite subset of has a model. It applies to arbitrary languages, including expansions by arbitrarily many new constants. Equivalently, if entails a sentence, some finite subset already entails it. We will use both formulations with the diagram of a structure.
Name every element by a new constant , distinct from the symbols already in . Let be its full atomic and negated atomic diagram of a structure. A model of this diagram contains an isomorphic copy of as an -substructure. We claimis satisfiable.
Otherwise compactness theorem gives a finite diagram conjunction inconsistent with . Replace these new constants by variables. Since says nothing about the new names, it then entails the universal sentenceThe conjunction uses only symbols of , so this is one of the universal -consequences assumed true in . But satisfies , a contradiction. A model of the consistent enlarged theory gives an embedding of into the -reduct of a model of . Negated atomic facts and disequalities in the diagram ensure that this is a structure embedding, not merely a homomorphism.
Let be all universal sentences true in . The theory is consistent. Indeed, if a finite conjunction of sentences from were inconsistent with , then . A finite conjunction of universal sentences is universal, so its negation is equivalent to an existential sentence. By the hypothesis would satisfy , whereas it satisfies .
Choose . Now expand the language by names for every element of and consider its elementary diagram . Its universal consequences in the original language are exactly : any such consequence is true in the named copy of , while any original-language sentence true in already belongs to its elementary diagram. Part (b), applied to and this expanded theory, gives a structure embedding of into a model of . The named copy of is an elementary substructure of . Identifying that copy with , we obtainThus the required target is an elementary extension of , although itself need not be a model of .
Let be the set of all existential sentences entailed by . Certainly every model of satisfies . Conversely, take . Part (c) gives embedded in an elementary extension of . After identifying with its image, is a superstructure of a model of . The assumed closure under superstructures implies . Since , it follows that as well. HenceThis supplies an existential axiomatization. Conversely, an existential sentence is preserved under embeddings because its finite tuple of witnesses and the quantifier-free facts about them persist, explaining why this is the appropriate syntactic class.
We use the hypothesis for the two target structures when they are models of ; the common source is their generated substructure and need not itself be a model of . If the hypothesis is read as applying to all target structures, it is stronger and the same proof applies.
Suppose tuples and , with , have the same complete quantifier-free type. The substructures they generate are isomorphic by the mapfor every term . Equality of the quantifier-free types makes this map well defined and injective and makes it preserve and reflect all relations. Identify these generated substructures with one common structure. The assumption then implies that and have the same truth value. Thus the truth of is determined by the tuple's quantifier-free type.
For any realization of in a model of , let be its complete quantifier-free type. The preceding paragraph makes inconsistent. By compactness theorem, a finite conjunction of members of satisfiesChoose such a conjunction for every quantifier-free type realized by a -tuple. These conjunctions cover every realization of . Another application of compactness theorem, to together with and the negations of all the chosen conjunctions, gives a finite subcover . ThereforeThe right side is a quantifier-free formula. If there are no realizations of , use the always-false quantifier-free formula. This proves the common-substructure test for quantifier elimination for the given formula; it does not assume that the source structures are models of the theory.
In the language of a single edge relation , axiomatize an undirected loop-free graph byFor every pair of nonnegative integers , add the extension axiom demanding, for any distinct , a new vertex such thatThese axioms form the theory of the random graph. Repetition of the fresh-vertex requirement also forces infinitude.
To prove quantifier elimination, first eliminate one existential quantifier from a quantifier-free formula. Put that formula into disjunctive normal form, so it suffices to consider a conjunction of literals in a new variable and the parameter variables. There are two possibilities for a witness: equals one of the parameters, in which case substitution gives a quantifier-free condition; or is distinct from all of them. In the latter case, the graph axioms reduce all requirements involving to specified adjacency or nonadjacency to the distinct parameter vertices. A requirement is impossible, and conflicting requirements at equal parameter vertices are impossible. Every other consistent adjacency pattern is realized by the extension axiom.
There are only finitely many equality patterns of the given parameter tuple. For each, consistency of the literals is a quantifier-free condition, including the unchanged relations among the parameters. Their finite disjunction describes exactly when a witness exists. Thus is equivalent to a quantifier-free formula whenever is quantifier-free. Mathematical induction on formulas now eliminates all quantifiers, using . Hence the random-graph theory eliminates quantifiers. The extension axioms also yield the usual countable random graph by a back-and-forth construction.
A 1-embedding, or existential embedding, is a structure embedding satisfyingfor every quantifier-free and every parameter tuple from . The forward direction is automatic for an embedding; reflection of existential formulas is the extra property. For an inclusion this says that is simply closed in . This is weaker than requiring an elementary embedding, which preserves all formulas.
Identify with its image under . In a language naming every element of , use the same names for elements of in the two sets of sentencesThis union is consistent. To see finite satisfiability, conjoin the finitely many diagram facts about into a quantifier-free formula and the finitely many elementary-diagram facts about into , where the elements in have names outside . Since , the 1-embedding property gives a witnessing tuple in . Interpret the finitely many new names by that tuple. The resulting expansion of satisfies as well as .
By compactness theorem, a model of this union exists. Its named copy of gives an embedding , while its named copy of is elementary. ConsequentlyThe naming ensures that the two maps agree on the original copy of .
Here denotes universal-existential sentences, with quantifier-free matrix and possibly empty blocks. Add constants for and considerWe show that is consistent. Suppose a finite subset is inconsistent. Combine its diagram facts as and its finitely many negative existential facts as . Replacing the new constants by a variable tuple gives the consequenceThis is equivalent to a universal-existential sentence: move all the existential blocks to the front of the disjunction, using the usual nonempty-domain convention. If there are no negative existential facts, the consequence is simply . By hypothesis satisfies the displayed consequence. Its named tuple satisfies but none of the existential alternatives, a contradiction.
A model of contains a diagram copy of . Every existential formula false in is still false in ; every one true in is preserved by the embedding. ThusBoth preservation and reflection are required here; the atomic diagram alone would give only an ordinary embedding.
Let consist of all universal-existential sentences entailed by , and take . By (c), there is an existential embedding of into . By (b), embeds in with . After replacing structures by isomorphic copies, arrange these maps as inclusions. Since , it also satisfies and the construction can be repeated. This producesThe two interleaved chains have the same union . The elementary chain theorem gives . The are an ordinary chain of models of , so the assumed closure under unions of chains gives . Therefore . This provesConversely, universal-existential axioms are preserved in such unions: a finite universal tuple occurs in one stage, which already supplies its existential witnesses. The quantifier-free matrix has the same truth value in that stage and in the union. This also explains the inductive first-order theory characterization.
The local omission of a partial type by a consistent first-order theory means that, for every formula consistent with , there is some such thatis consistent. Equivalently, no formula consistent with implies every member of . Thus every possible local condition has a compatible refinement excluding at least one proposed type formula.
The omitting types theorem states: in a countable first-order language, if is consistent and locally omits each of countably many finite-arity families , then it has a countable model omitting them all. Omission means that no tuple satisfies every formula in the family. In the case of a complete type, local omission is equivalent to the type being nonisolated. Countability of the language and of the list of omission requirements is essential to this formulation.
An atomic model is a model in which every finite tuple's complete type over the empty set is isolated by a formula. An omega-saturated model realizes every complete type in finitely many variables over every finite parameter set; equivalently it realizes all one-variable types over finite parameter sets, then successive realizations give the finite-tuple version.
Suppose is countable and omega-saturated. Every type in is realized by a tuple in , so is countable. This is a compact Hausdorff Stone space with a clopen basis. Its isolated points are dense. Indeed, if a nonempty clopen subset had no isolated point, split it into two disjoint nonempty clopen subsets and recursively split every resulting subset. Such splits exist because each subset has at least two points and the space is zero-dimensional. Compactness supplies a point in each nested sequence along an infinite binary branch, while disjoint siblings make different branches yield different points. This would give uncountably many points, contradicting countability.
For each , let consist of the negations of all formulas that isolate complete -types. Density of isolated types means that every consistent formula has a consistent refinement to an isolating formula ; this refinement excludes the member of . Thus locally omits every . The omitting types theorem gives a countable model omitting them all. Every tuple in therefore satisfies some isolating formula, so is atomic. If some is itself inconsistent, its omission is automatic and does not obstruct this argument.
The converse about existence is false. Here is a countable atomic model without a countable saturated model. Take a countable set with unary predicates , , such that every finite Boolean pattern of the predicates occurs infinitely often. For example, use finite binary words paired with a natural number, with recording the th bit when it exists and false otherwise. Add a constant naming each element, and put in this countable language. Every tuple of has its type isolated by equations to its named coordinates, so is a countable atomic model.
For each infinite binary sequence , the familyis finitely satisfiable in : realize its finitely many predicate requirements while avoiding finitely many named elements. By compactness theorem, it extends to a complete one-type. Different sequences give different types, so is uncountable. Any omega-saturated model must realize all these empty-parameter types, which a countable model cannot do. This disproves the existence converse, rather than merely exhibiting an atomic model that is itself nonsaturated.
The Ehrenfeucht theory of an increasing named sequence is complete and has quantifier elimination: the usual one-point cut argument for dense linear orders without endpoints works with the finitely many constants occurring in a formula. Complete types are consequently determined by order relations to the named constants and to any additional parameters.
In the model where the sequence is unbounded above, every finite tuple lies below some . Its order relations to , together with its internal equality and order pattern, determine its relations to every later constant as well. This finite condition isolates its complete type. Thus model (ii) is an atomic model. It is not omega-saturated, because the finitely satisfiable type has no realization.
In either bounded model, a point above every realizes the typeThis type is not isolated. Any formula belonging to it uses only finitely many constants after quantifier elimination, and its order condition can also be realized below a sufficiently late . That realization fails one of the later inequalities in . Hence neither bounded model is atomic.
In model (i), let be the least upper bound. The type over the single parameter is finitely satisfiable by density but unrealized, so this model is not omega-saturated.
In model (iii), the upper tail has no least element. Every consistent one-type over finitely many parameters is realizable. Indeed, it is either an equality type, a cut below or between some of the named constants, or a cut in . The first two cases are realized by equality or by density in the relevant interval. In , finitely many parameters divide the tail into finitely many intervals, each relevant nonempty interval having points by density, absence of a least element in , and absence of a last element in the order. This realizes the third case too. There is no other cut among the increasing sequence: a proper initial segment of its indices is finite. Successive one-variable realizations give all finite-tuple types. ThereforeA least upper bound is thus precisely the obstruction to filling the additional finite-parameter cut in model (i).
We work with the usual infinite-model convention for an omega-categorical theory: it has a unique countably infinite model up to isomorphism. The three conditions are the type-space and automorphism formulations of the Ryll-Nardzewski theorem; the following arguments prove them rather than invoke that theorem. The standard hypothesis that has infinite models is understood. If finite models are allowed instead, uniqueness among models of size at most countable is the matching convention for condition (i).
We first prove (i) implies (ii). Suppose some type space were infinite. An infinite compact space cannot have every point isolated: its cover by singleton open sets would have no finite subcover. Thus it has a nonisolated complete type . The omitting types theorem gives a countable model omitting . On the other hand, compactness theorem gives a model realizing , and the Downward Lowenheim-Skolem theorem gives a countable elementary submodel containing its realizing tuple. These countable models cannot be isomorphic, since an isomorphism preserves realization of . This contradicts omega-categoricity. Hence every is finite.
Assume every is finite. Each of its points is isolated: choose, for every other type, a formula separating it from the given one, and conjoin the finitely many choices. Thus every finite tuple in every model has an isolated complete type. Moreover every complete type is realized in every model: its isolating formula is consistent with the complete theory, so the theory entails that the formula has a realization.
For clarity, here is the one-point extension argument needed for both remaining assertions. If tuples and in two models have the same complete type and is any new element in the first, let isolate . The formula belongs to the type of , hence also to that of . Choose with . This extends the tuple map to a partial elementary map. If is different from all earlier entries, the isolating type includes these disequalities, so is new as well.
Apply this argument alternately to the two enumerations of any two countable models. The resulting back-and-forth map is an isomorphism. Thus (ii) implies (i).
Choose any countable model . The same back-and-forth argument, now within , shows that any two tuples of the same complete type are related by an automorphism of a first-order structure. Conversely an automorphism preserves the type. Hence the orbits of on are exactly its complete -types. There are finitely many of them for every , so the automorphism group is an oligomorphic permutation group. Therefore (ii) also implies (iii).
Assume is a countable model of and its automorphism group is an oligomorphic permutation group. Complete types are constant on automorphism orbits, so only finitely many complete -types are realized in , for each .
These realized types are dense in the Stone topology on a type space . Indeed, any nonempty basic clopen set is given by a formula consistent with . Completeness implies , and thus some tuple in realizes a type in . A finite set of points is closed in a Hausdorff space; if it is also dense, it is the whole space. Therefore equals the finite set of types realized in . This proves (iii) implies (ii), and the previous part then yields (i). We have establishedIn particular, the argument does not assume that an arbitrary countable model is saturated or that its type-orbits coincide before that coincidence has been proved.
For a relational first-order structure , form its Gaifman graph: distinct elements are adjacent when they occur together in a tuple of some interpreted relation. Let be graph distance, with distance infinite between different components. For a tuple , its radius- neighbourhood has universeThe neighbourhood structure is the induced relational structure on this set, expanded by constants marking the entries of in their original order. Its isomorphism type thus records the centres, not just the unmarked ball. For one binary graph relation, this is the usual union of the radius- graph balls. This formulation assumes the finite relational signatures used in the finite-model setting.
An exact-count form of the Hanf locality lemma is as follows. For every quantifier rank , put . If finite relational structures admit a bijection such thatthen and agree on every first-order sentence of quantifier rank at most . Equivalently, they have the same number of occurrences of every marked radius- one-point neighbourhood type. The individual local isomorphisms need not be restrictions of .
A bounded-degree threshold version permits the type counts to be different when both exceed a sufficiently large bound depending on the degree bound and . We need only the exact-count form. Its locality content is that sufficiently large matching neighbourhoods and their multiplicities determine all sentences up to the prescribed quantifier rank.
Suppose a first-order sentence defined the bipartite graphs, equivalently the 2-colourable graphs. Let be its quantifier rank and . Choose an odd integer , and compareBoth have vertices. Every marked radius- neighbourhood in either graph is a path with vertices and its middle vertex marked: the choice of prevents the ball from wrapping around a cycle. Thus every vertex has exactly the same neighbourhood type in both graphs, and that type occurs times in each. Any bijection of their universes meets the Hanf locality lemma hypothesis.
Therefore and agree on . But is an even cycle and is bipartite, whereas contains odd cycles and is not bipartite. This contradiction provesThe equal total size is useful here: no large-count threshold or comparison of unequal multiplicities is needed.
Fagin's theorem states that, for a finite relational signature, an isomorphism-invariant class of finite structures has its standard encoding language in NP if and only if it is definable by an existential second-order logic sentencewhere is first-order and the relation variables have fixed finite arities. The forward implication includes the substantive encoding of a polynomially bounded accepting computation by relations. In the reverse implication the relations are polynomial-length certificates and the fixed first-order sentence can be checked in polynomial time. This is a finite-structure characterization; no order need be named in the input signature.
Here equivalence means equivalence on all finite structures of the chosen signature, and an existential sentence means an existential second-order sentence. Suppose, towards a contradiction, that P equals NP. We use that P is closed under complementation, that fixed first-order model checking is polynomial-time, and that guessing a polynomial-length string followed by a polynomial-time test is in NP.
Under this equality, evaluating any fixed second-order logic sentence is in P. Prove this by induction through its quantifiers and Boolean operations. The first-order part is already polynomial-time. If an inner formula can be evaluated in P, existentially quantifying a relation of fixed arity guesses at most bits and then performs the inner polynomial-time test. This gives an NP procedure and hence, under the assumption, a P procedure. A universal relation quantifier is handled by complementing the corresponding existential test. Boolean combinations remain polynomial-time as well. A fixed formula has only finitely many such steps and fixed arities, so the resulting time bound is polynomial.
Consequently every second-order definable class lies in P, hence in NP. By Fagin's theorem it has an equivalent existential second-order sentence. This contradicts the posited second-order sentence with no such equivalent. ThereforeThe proof uses the equality assumption to collapse quantifier alternation; it does not assume an unproved strictness statement about the polynomial hierarchy.
Every fixed second-order logic sentence is evaluable in PSPACE. On a universe of size , a relation of arity is stored using bits. Enumerate its possible interpretations with a counter of the same polynomial length, recursively evaluate the inner formula and reuse the storage. Universal quantifiers require checking all interpretations; existential ones stop at the first success. The fixed quantifier depth and fixed arities bound total space by a polynomial, even though time can be exponential. First-order quantifiers and Boolean operations require no larger bound.
If , this places the class defined by the assumed second-order sentence in NP. Fagin's theorem would give an equivalent existential second-order sentence, again contradicting the hypothesis. HenceFor completeness, : a polynomial-time nondeterministic computation can be searched deterministically depth first, retaining a polynomial-length computation branch and reusing space. Thus the inequality is a strict containment under the stated hypothesis.
Fix a partial fixed-point logic formula , with of arity . On a finite ordered structure, an interpretation of is a bit string of length . To decide whether some interpretation makes true at a given tuple, enumerate all these strings and evaluate for each. Evaluation uses polynomial space by the permitted characterization of PFP, and the enumerating counter also has polynomial length. Storage is reused between interpretations. Thus the resulting pointed-structure property is decidable in PSPACE.
Apply the assumed PFP characterization of PSPACE on ordered structures to this property. It gives a PFP formula such thatTo justify the formula version from a sentence characterization, temporarily name the tuple by finitely many new constants, apply the characterization in that expanded finite signature, and replace those constants by the free variables, renaming bound variables to avoid capture. This does not introduce a new order assumption: the input already interprets as a linear order. Multiple quantified relations are handled by repeated application.
As usual, a class of structures here is closed under isomorphism and uses standard finite-structure encodings. First suppose is defined by , with in partial fixed-point logic. Deterministically enumerate the polynomial-length encodings of and evaluate on each expansion. PFP evaluation is in PSPACE even without a supplied order: a relation of fixed arity requires polynomially many bits, iteration has at most exponentially many states, and a polynomial-length counter suffices to stop after that many stages. If no consecutive stages agree before a repeat must have occurred, the partial fixed point is empty. Nested fixed points have fixed syntactic depth and can be evaluated with reused polynomial storage. Thus the encoding language of is in PSPACE.
Conversely, suppose that encoding language is decidable in PSPACE. Expand each structure by a freely chosen linear order . On such ordered expansions, the assumed characterization gives a PFP sentence deciding whether the reduct belongs to . Since is isomorphism-invariant, the answer is independent of the particular chosen order. HenceThe expression inside the second-order quantifier is PFP, since the assertion that is a linear order is first-order. Every finite universe has a linear order. This proves both directions, using an existentially supplied order when the original signature has none. The construction is also the order-independent consequence of part (a), which shows that existential relation quantification does not increase PFP's power on an already ordered structure.
For an unrestricted binary relation , the extension axioms permit arbitrary directed edges and loops. For each and each choice of bits , require that every tuple of distinct has a fresh element withHere denotes and denotes ; the notation is a literal abbreviation, not exponentiation of a relation. Incoming and outgoing choices are independent, and the loop bit is also specified. These are the extension axioms for an unrestricted binary relation. If one instead restricts to undirected loop-free graphs, the allowable patterns reduce to the random-graph extension axioms of Question 2; no such restriction is imposed here.
Let be the theory of the extension axioms for an unrestricted binary relation. It has quantifier elimination. To prove this, consider a conjunction of literals . A witness equal to one of the parameters is handled by substitution. A witness distinct from them is governed entirely by a finite pattern of incoming edges, outgoing edges and its loop. For each equality pattern of the parameter tuple, incompatible literals make the pattern impossible, and every compatible pattern is supplied by the appropriate extension axiom. Thus existence of a witness is a finite disjunction of quantifier-free conditions on the parameters. Disjunctive normal form and induction on formulas eliminate all remaining quantifiers.
Given any formula , choose a quantifier-free withBy compactness theorem, finitely many extension axioms already entail this particular universally quantified equivalence. Each has asymptotic probability one by the assumption. The union bound givesTherefore the universal equivalence also has asymptotic probability one. We obtain asymptotic equivalence to a quantifier-free formula, uniformly over every tuple in each structure satisfying those finitely many axioms. An infinite conjunction of probability-one events is not used; the finite consequence supplied by compactness is essential.
Use only the variable names . Define mutually renamed formulas bywhere is obtained from by globally interchanging and , including their bound occurrences. By induction, means that an increasing chain of elements starts at . Henceholds exactly when the linear order has at least elements. Inner quantifiers may bind the name again, but their scope is only the nested subformula; the comparison still refers to the preceding point. This finite-variable logic construction works on finite and infinite linear orders.
Choose a variable name among the available names and defineThe formula is obtained by interchanging the names throughout , including bound occurrences. Its only free variable is . A permutation of variable names preserves membership in , so every formula in this recursion still uses at most the original names. In particular, bound variables inside a copy of do not accidentally capture the previous comparison: their scope stays inside that copy.
Induction proves that holds exactly when there is an increasing -tuple of satisfying elements whose first entry is . Any set of distinct points in a linear order can be put in increasing order. Therefore the variable-recycling count on a linear orderis the required sentence. This does not use counting quantifiers or additional variable names, and it applies equally to infinite linear orders.
We use the finite-structure convention of Section B. Express that is a strict linear order by irreflexivity, transitivity and comparability of distinct points. Express that is an equivalence relation by reflexivity, symmetry and transitivity. All these assertions use at most the three variable names .
In a finite linearly ordered structure, every equivalence class has a unique least element. The two-variable formulaselects exactly those least elements. Apply part (b) to this formula, using , to obtain saying that at least representatives exist. The required sentence isThis gives the least representatives of finite equivalence classes construction. Under the two structural axioms, counting representatives is exactly counting equivalence classes.
Finiteness is essential to the assertion as written in this section. If it were interpreted as applying to all infinite structures, the general claim would fail, not merely this choice of representatives. Partition the rational order into three dense classes, or into four dense classes, and let mean belonging to the same class. In the three-pebble version of the Ehrenfeucht-Fraïssé game, the duplicator can play indefinitely between these structures: after one pebble is moved, at most two old classes remain represented; a new point can be placed in the required interval in its corresponding old class, or in a class different from both. Density makes every required placement possible in either structure. Thus the structures agree on all sentences although one has three classes and the other four. The finite reading of the printed request is therefore necessary for .
Articles by others on the same topic
There are currently no matching articles.