![](//s1.studylibfr.com/store/data-gzf/eec0e651da2ea40ae4091dfcf4b8fa88/1/009718636.htmlex.zip/bg3.jpg)
of some arity r, a relation RA⊆Ar. A graph is a structure G=(V,E), where Eis a binary relation that is
symmetric and irreflexive. Thus, our graphs are undirected, loopless, and without parallel edges.
Aσ-structure Bis called a substructure of A(and we write B⊆A) if B⊆Aand RB⊆RAfor every
R∈σ. It is called an induced substructure if RB=RA∩Brfor every R∈σof arity r. Note that this
terminology is at variance with common usage in model theory where the term “substructure” is used for
what we call an “induced substructure”. However, it is more convenient for us as, for the purpose of studying
properties preserved under homomorphisms, we are more interested in substructures that are not necessarily
induced. Note also the analogy with the concepts of subgraph and induced subgraph from graph theory. A
substructure Bof Ais proper if A,B.
Ahomomorphism from Ato Bis a mapping h:A→Bfrom the universe of Ato the universe of Bthat
preserves the relations, that is if (a1,...,ar)∈RA, then (h(a1),...,h(ar)) ∈RB. We say that two structures
Aand Bare homomorphically equivalent if there is a homomorphism from Ato Band a homomorphism
from Bto A. Note that, if Ais a substructure of B, then the injection mapping is a homomorphism from A
to B. If the homomorphism his bijective and its inverse is a homomorphism from Bto Athen Aand Bare
isomorphic and we write AB.
For a pair of structures Aand B, we write A⊕Bfor the disjoint union of Aand B. That is, A⊕Bis
the structure whose universe is the disjoint union of Aand Band where, for any relation symbol Rand any
tuple of elements t, we have t∈RA⊕Bjust in case either t∈RAor t∈RB.
The Gaifman graph of a σ-structure A, denoted by G(A), is the (undirected) graph whose set of nodes
is the universe of A, and whose set of edges consists of all pairs (a,a′) of distinct elements of Asuch that a
and a′appear together in some tuple of a relation in A.
Let G=(V,E) be a graph. Recall that the distance between two vertices uand vis the length of the
shortest path from uto v. For a vertex uand an integer r≥0, r-neighborhood of uin G, denoted by NG
r(u),
is the set of vertices at distance atmost rfrom u. In particular, NG
0(u)={u}.
Where this causes no confusion, we also write NG
r(u) for the subgraph of Ginduced by this set of
vertices. Similarly, for a structure Aand an element ain its universe, we write NA
r(a) both for the set
NG(A)
r(a) and the substructure of Ait induces.
2.2 Logic
Let σbe a relational vocabulary. The atomic formulas of σare those of the form R(x1,...,xr), where
R∈σis a relation symbol of arity r, and x1,...,xrare first-order variables that are not necessarily distinct.
Formulas of the form x=yare also atomic formulas, and we refer to them as equalities. The collection
of first-order formulas is obtained by closing the atomic formulas under negation, conjunction, disjunction,
universal and existential first-order quantification. The semantics of first-order logic is standard. If Ais a
σ-structure and ϕis a first-order formula, we use the notation A|=ϕ[a] to denote the fact that ϕis true in A
when its free variables are interpreted by the tuple of elements a. When ϕis a sentence (i.e. contains no free
variables), we simply write A|=ϕ. The collection of existential-positive first-order formulas is obtained by
closing the atomic formulas under conjunction, disjunction, and existential quantification. By substituting
variables, it is easy to see that equalities can be eliminated from existential-positive formulas.
We say that a first-order formula ϕis preserved under homomorphisms if, whenever A|=ϕ[a] and
h:A→Bis a homomorphism from Ato Bthen B|=ϕ[h(a)]. It is an easy exercise to show that any
existential positive first-order formula is preserved under homomorphisms. The homomorphism preserva-
tion theorem provides a kind of converse to this statement: every first-order formula that is preserved under
homomorphisms is logically equivalent to an existential positive formula.
3