HOME

TheInfoList



OR:

In the mathematical fields of
graph theory In mathematics, graph theory is the study of ''graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of '' vertices'' (also called ''nodes'' or ''points'') which are conn ...
and finite model theory, the logic of graphs deals with formal specifications of
graph properties In graph theory, a graph property or graph invariant is a property of graphs that depends only on the abstract structure, not on graph representations such as particular labellings or drawings of the graph.. Definitions While graph drawing an ...
using
sentences ''The Four Books of Sentences'' (''Libri Quattuor Sententiarum'') is a book of theology written by Peter Lombard in the 12th century. It is a systematic compilation of theology, written around 1150; it derives its name from the '' sententiae'' ...
of
mathematical logic Mathematical logic is the study of formal logic within mathematics. Major subareas include model theory, proof theory, set theory, and recursion theory. Research in mathematical logic commonly addresses the mathematical properties of formal ...
. There are several variations in the types of logical operation that can be used in these sentences. The first-order logic of graphs concerns sentences in which the variables and predicates concern individual vertices and edges of a graph, while monadic second-order graph logic allows quantification over sets of vertices or edges. Logics based on
least fixed point In order theory, a branch of mathematics, the least fixed point (lfp or LFP, sometimes also smallest fixed point) of a function from a partially ordered set to itself is the fixed point which is less than each other fixed point, according to the ...
operators allow more general predicates over tuples of vertices, but these predicates can only be constructed through fixed-point operators, restricting their power. A sentence S may be true for some graphs, and false for others; a graph G is said to ''model'' S, written G\models S, if S is true of the vertices and adjacency relation of G. The algorithmic problem of model checking concerns testing whether a given graph models a given sentence. The algorithmic problem of
satisfiability In mathematical logic, a formula is ''satisfiable'' if it is true under some assignment of values to its variables. For example, the formula x+3=y is satisfiable because it is true when x=3 and y=6, while the formula x+1=x is not satisfiable over ...
concerns testing whether there exists a graph that models a given sentence. Although both model checking and satisfiability are hard in general, several major algorithmic meta-theorems show that properties expressed in this way can be tested efficiently for important classes of graphs. Other topics of research in the logic of graphs include investigations of the probability that a
random graph In mathematics, random graph is the general term to refer to probability distributions over graphs. Random graphs may be described simply by a probability distribution, or by a random process which generates them. The theory of random graphs ...
has a property specified within a particular type of logic, and methods for
data compression In information theory, data compression, source coding, or bit-rate reduction is the process of encoding information using fewer bits than the original representation. Any particular compression is either lossy or lossless. Lossless compressio ...
based on finding logical sentences that are modeled by a unique graph.


First order

In the
first-order logic First-order logic—also known as predicate logic, quantificational logic, and first-order predicate calculus—is a collection of formal systems used in mathematics, philosophy, linguistics, and computer science. First-order logic uses quantifie ...
of graphs, a graph property is expressed as a quantified logical sentence whose variables represent graph vertices, with
predicates Predicate or predication may refer to: * Predicate (grammar), in linguistics * Predication (philosophy) * several closely related uses in mathematics and formal logic: **Predicate (mathematical logic) **Propositional function **Finitary relation, ...
for equality and adjacency testing.


Examples

For instance, the condition that a graph does not have any isolated vertices may be expressed by the sentence \forall u\exists v(u\sim v) where the \sim symbol indicates the undirected adjacency relation between two vertices. This sentence can be interpreted as meaning that for every vertex u there is another vertex v that is adjacent to u., Section 1.2, "What Is a First Order Theory?"
pp. 15–17
The
subgraph isomorphism problem In theoretical computer science, the subgraph isomorphism problem is a computational task in which two graphs ''G'' and ''H'' are given as input, and one must determine whether ''G'' contains a subgraph that is isomorphic to ''H''. Subgraph isomor ...
for a fixed subgraph H asks whether H appears as a subgraph of a larger graph G. It may be expressed by a sentence that states the existence of vertices (one for each vertex of H) such that, for each edge of H, the corresponding pair of variables represent adjacent vertices and such that, for each remaining pair of vertices of H, the corresponding pair of variables represent distinct vertices; see the illustration. As a special case the
clique problem In computer science, the clique problem is the computational problem of finding cliques (subsets of vertices, all adjacent to each other, also called complete subgraphs) in a graph. It has several different formulations depending on which cli ...
(for a fixed clique size) may be expressed by a sentence that states the existence of a number of vertices equal to the clique size all of which are adjacent.


Axioms

For simple
undirected graph In discrete mathematics, and more specifically in graph theory, a graph is a structure amounting to a set of objects in which some pairs of the objects are in some sense "related". The objects correspond to mathematical abstractions called '' ve ...
s, the first-order theory of graphs includes the axioms Other types of graphs, such as
directed graph In mathematics, and more specifically in graph theory, a directed graph (or digraph) is a graph that is made up of a set of vertices connected by directed edges, often called arcs. Definition In formal terms, a directed graph is an ordered pa ...
s, may involve different axioms, and logical formulations of
multigraph In mathematics, and more specifically in graph theory, a multigraph is a graph which is permitted to have multiple edges (also called ''parallel edges''), that is, edges that have the same end nodes. Thus two vertices may be connected by more ...
properties require special handling such as having multiple edge relations or separate variables for vertices and edges.


Zero-one law

and, independently, proved a zero–one law for first-order graph logic; Fagin's proof used the
compactness theorem In mathematical logic, the compactness theorem states that a set of first-order sentences has a model if and only if every finite subset of it has a model. This theorem is an important tool in model theory, as it provides a useful (but generally ...
. According to this result, every first-order sentence is either almost always true or almost always false for
random graph In mathematics, random graph is the general term to refer to probability distributions over graphs. Random graphs may be described simply by a probability distribution, or by a random process which generates them. The theory of random graphs ...
s in the
Erdős–Rényi model In the mathematical field of graph theory, the Erdős–Rényi model is either of two closely related models for generating random graphs or the evolution of a random network. They are named after Hungarian mathematicians Paul Erdős and Alfrà ...
. That is, let S be a fixed first-order sentence, and choose a random n-vertex graph G_n uniformly at random among all graphs on a set of n labeled vertices. Then in the limit as n tends to infinity the probability that G_n models S will tend either to zero or to one: \lim_\operatorname _n\models Sin\. Moreover, there is a specific infinite graph, the Rado graph R, such that the sentences modeled by the Rado graph are exactly the ones for which the probability of being modeled by a random finite graph tends to one: R\models S \quad \Longleftrightarrow \quad \lim_\operatorname _n\models S= 1. For random graphs in which each edge is included independently of the others with a fixed probability, the same result is true, with the same sentences having probabilities tending to zero or to one. The computational complexity of determining whether a given sentence has probability tending to zero or to one is high: the problem is
PSPACE-complete In computational complexity theory, a decision problem is PSPACE-complete if it can be solved using an amount of memory that is polynomial in the input length (polynomial space) and if every other problem that can be solved in polynomial space can b ...
. If a first-order graph property has probability tending to one on random graphs, then it is possible to list all the n-vertex graphs that model the property, with polynomial delay (as a function of n) per graph. A similar analysis can be performed for non-uniform random graphs, where the probability of including an edge is a function of the number of vertices, and where the decision to include or exclude an edge is made independently with equal probability for all edges. However, for these graphs the situation is more complicated. In this case, a first-order property may have one or more thresholds, such that when the edge
inclusion probability In statistics, in the theory relating to sampling from finite populations, the sampling probability (also known as inclusion probability) of an element or member of the population, is its probability of becoming part of the sample during the dra ...
is bounded away from the threshold then the probability of having the given property tends to zero or one. These thresholds can never be an irrational power of n, so random graphs where the edge inclusion probability is an irrational power obey a zero-one law analogous to the one for uniformly random graphs. A similar zero-one law holds for very sparse random graphs that have an edge inclusion probability of n^ with c>1, as long as c is not a
superparticular ratio In mathematics, a superparticular ratio, also called a superparticular number or epimoric ratio, is the ratio of two consecutive integer numbers. More particularly, the ratio takes the form: :\frac = 1 + \frac where is a positive integer. Thu ...
. If c is superparticular, the probability of having a given property may tend to a limit that is not zero or one, but this limit can be calculated efficiently. There exist first-order sentences that have infinitely many thresholds.


Parameterized complexity

If a first-order sentence includes k distinct variables, then the property it describes can be tested in graphs of n vertices by examining all k-tuples of vertices; however, this
brute force search In computer science, brute-force search or exhaustive search, also known as generate and test, is a very general problem-solving technique and algorithmic paradigm that consists of systematically enumerating all possible candidates for the soluti ...
algorithm is not particularly efficient, taking time O(n^k). The problem of checking whether a graph models a given first-order sentence includes as special cases the
subgraph isomorphism problem In theoretical computer science, the subgraph isomorphism problem is a computational task in which two graphs ''G'' and ''H'' are given as input, and one must determine whether ''G'' contains a subgraph that is isomorphic to ''H''. Subgraph isomor ...
(in which the sentence describes the graphs that contain a fixed subgraph) and the
clique problem In computer science, the clique problem is the computational problem of finding cliques (subsets of vertices, all adjacent to each other, also called complete subgraphs) in a graph. It has several different formulations depending on which cli ...
(in which the sentence describes graphs that contain complete subgraphs of a fixed size). The clique problem is hard for W(1), the first level of a hierarchy of hard problems from the point of view of
parameterized complexity In computer science, parameterized complexity is a branch of computational complexity theory that focuses on classifying computational problems according to their inherent difficulty with respect to ''multiple'' parameters of the input or output. ...
. Therefore, it is unlikely to have a fixed-parameter tractable algorithm, one whose running time takes the form O(f(k)n^c) for a function f and constant c that are independent of k and n. More strongly, if the
exponential time hypothesis In computational complexity theory, the exponential time hypothesis is an unproven computational hardness assumption that was formulated by . It states that satisfiability of 3-CNF Boolean formulas cannot be solved more quickly than exponential t ...
is true, then clique-finding and first-order model checking would necessarily take time proportional to a power of n whose exponent is proportional to k. On restricted classes of graphs, model checking of first-order sentences can be much more efficient. In particular, every graph property expressible as a first-order sentence can be tested in linear time for the graphs of bounded expansion. These are the graphs in which all shallow minors are
sparse graph In mathematics, a dense graph is a graph in which the number of edges is close to the maximal number of edges (where every pair of vertices is connected by one edge). The opposite, a graph with only a few edges, is a sparse graph. The distinction ...
s, with a ratio of edges to vertices bounded by a function of the depth of the minor. Even more generally, first-order model checking can be performed in near-linear time for nowhere-dense graphs, classes of graphs for which, at each possible depth, there is at least one forbidden shallow minor. Conversely, if model checking is fixed-parameter tractable for any hereditary family of graphs, that family must be nowhere-dense.


Data compression and graph isomorphism

A first-order sentence S in the logic of graphs is said to define a graph G if G is the only graph that models S. Every graph may be defined by at least one sentence; for instance, one can define any n-vertex graph G by a sentence with n+1 variables, one for each vertex of the graph, and one more to state the condition that there is no vertex other than the n vertices of the graph. Additional clauses of the sentence can be used to ensure that no two vertex variables are equal, that each edge of G is present, and no edge exists between a pair of non-adjacent vertices of G. However, for some graphs there exist significantly shorter sentences that define the graph. Several different graph invariants can be defined from the simplest sentences (with different measures of simplicity) that define a given graph. In particular the ''logical depth'' of a graph is defined to be the minimum level of nesting of quantifiers (the quantifier rank) in a sentence defining the graph. The sentence outlined above nests the quantifiers for all of its variables, so it has logical depth n+1. The ''logical width'' of a graph is the minimum number of variables in a sentence that defines it. In the sentence outlined above, this number of variables is again n+1. Both the logical depth and logical width can be bounded in terms of the
treewidth In graph theory, the treewidth of an undirected graph is an integer number which specifies, informally, how far the graph is from being a tree. The smallest treewidth is 1; the graphs with treewidth 1 are exactly the trees and the forests. The gra ...
of the given graph. The logical length, analogously, is defined as the length of the shortest sentence describing the graph. The sentence described above has length proportional to the square of the number of vertices, but it is possible to define any graph by a sentence with length proportional to its number of edges. All trees, and most graphs, can be described by first-order sentences with only two variables, but extended by counting predicates. For graphs that can be described by sentences in this logic with a fixed constant number of variables, it is possible to find a graph canonization in polynomial time (with the exponent of the polynomial equal to the number of variables). By comparing canonizations, it is possible to solve the
graph isomorphism problem The graph isomorphism problem is the computational problem of determining whether two finite graphs are isomorphic. The problem is not known to be solvable in polynomial time nor to be NP-complete, and therefore may be in the computational compl ...
for these graphs in polynomial time.


Satisfiability

It is undecidable whether a given first-order sentence can be realized by a finite undirected graph. This means that no algorithm can correctly answer this question for all sentences. Some first-order sentences are modeled by infinite graphs but not by any finite graph. For instance, the property of having exactly one vertex of degree one, with all other vertices having degree exactly two, can be expressed by a first-order sentence. It is modeled by an infinite ray, but violates Euler's
handshaking lemma In graph theory, a branch of mathematics, the handshaking lemma is the statement that, in every finite undirected graph, the number of vertices that touch an odd number of edges is even. In more colloquial terms, in a party of people some of whom ...
for finite graphs. However, it follows from the negative solution to the
Entscheidungsproblem In mathematics and computer science, the ' (, ) is a challenge posed by David Hilbert and Wilhelm Ackermann in 1928. The problem asks for an algorithm that considers, as input, a statement and answers "Yes" or "No" according to whether the state ...
(by
Alonzo Church Alonzo Church (June 14, 1903 – August 11, 1995) was an American mathematician, computer scientist, logician, philosopher, professor and editor who made major contributions to mathematical logic and the foundations of theoretical computer scien ...
and
Alan Turing Alan Mathison Turing (; 23 June 1912 â€“ 7 June 1954) was an English mathematician, computer scientist, logician, cryptanalyst, philosopher, and theoretical biologist. Turing was highly influential in the development of theoretical co ...
in the 1930s) that satisfiability of first-order sentences for graphs that are not constrained to be finite remains undecidable. It is also undecidable to distinguish between the first-order sentences that are true for all graphs and the ones that are true of finite graphs but false for some infinite graphs.


Fixed point

Least fixed point In order theory, a branch of mathematics, the least fixed point (lfp or LFP, sometimes also smallest fixed point) of a function from a partially ordered set to itself is the fixed point which is less than each other fixed point, according to the ...
based logics of graphs extend the first-order logic of graphs by allowing predicates (properties of vertices or tuples of vertices) defined by special fixed-point operators. This kind of definition begins with an implication, a formula stating that when certain values of the predicate are true, then other values are true as well. A "fixed point" is any predicate for which this is a valid implication. There may be many fixed points, including the always-true predicate; a "least fixed point" is a fixed point that has as few true values as possible. More precisely, its true values should be a subset of the true values of any other fixed point. For instance, define C(u,v) to be true when the two vertices u and v are connected by a path in a given graph, and false otherwise. Then every vertex is connected to itself, and when u is connected to a neighbor of v, it is also connected by one more step to v. Expressing this reasoning in logical terms, C is the least fixed point of the formula C(u,v)\leftarrow\Bigl( (u=v)\vee \exists w\bigl(C(u,w)\wedge w\sim v\bigr)\Bigr). Here, being a fixed point means that the truth of the right side of the formula implies the truth of the left side, as the reversed implication arrow suggests. Being the least fixed point, in this case, implies that no two vertices will be defined as connected unless their connectivity comes from repeated use of this implication. Several variations of fixed point logics have been studied. In least fixed point logic, the right hand side of the \leftarrow operator in the defining formula must use the predicate only positively (that is, each appearance should be nested within an even number of negations) in order to make the least fixed point well defined. In another variant with equivalent logical power, inflationary fixed point logic, the formula need not be monotone but the resulting fixed point is defined as the one obtained by repeatedly applying implications derived from the defining formula starting from the all-false predicate. Other variants, allowing negative implications or multiple simultaneously-defined predicates, are also possible, but provide no additional definitional power. A predicate, defined in one of these ways, can then be applied to a tuple of vertices as part of a larger logical sentence. Fixed point logics, and extensions of these logics that also allow integer counting variables whose values range from 0 to the number of vertices, have been used in
descriptive complexity ''Descriptive Complexity'' is a book in mathematical logic and computational complexity theory by Neil Immerman. It concerns descriptive complexity theory, an area in which the expressibility of mathematical properties using different types of lo ...
in an attempt to provide a logical description of
decision problem In computability theory and computational complexity theory, a decision problem is a computational problem that can be posed as a yes–no question of the input values. An example of a decision problem is deciding by means of an algorithm wheth ...
s in graph theory that can be decided in polynomial time. The fixed point of a logical formula can be constructed in polynomial time, by an algorithm that repeatedly adds tuples to the set of values for which the predicate is true until reaching a fixed point, so deciding whether a graph models a sentence in this logic can always be decided in polynomial time. Not every polynomial time graph property can be modeled by a sentence in a logic that uses only fixed points and counting. However, for some special classes of graphs the polynomial time properties are the same as the properties expressible in fixed point logic with counting. These include random graphs,
interval graph In graph theory, an interval graph is an undirected graph formed from a set of intervals on the real line, with a vertex for each interval and an edge between vertices whose intervals intersect. It is the intersection graph of the intervals. In ...
s, and (through a logical expression of the
graph structure theorem In mathematics, the graph structure theorem is a major result in the area of graph theory. The result establishes a deep and fundamental connection between the theory of graph minors and topological embeddings. The theorem is stated in the seven ...
) every class of graphs characterized by
forbidden minor In graph theory, a branch of mathematics, many important families of graphs can be described by a finite set of individual graphs that do not belong to the family and further exclude all graphs from the family which contain any of these forbidde ...
s.


Second order

In the
monadic second-order logic In mathematical logic, monadic second-order logic (MSO) is the fragment of second-order logic where the second-order quantification is limited to quantification over sets. It is particularly important in the logic of graphs, because of Courcelle's ...
of graphs, the variables represent objects of up to four types: vertices, edges, sets of vertices, and sets of edges. There are two main variations of monadic second-order graph logic: MSO1 in which only vertex and vertex set variables are allowed, and MSO2 in which all four types of variables are allowed. The predicates on these variables include equality testing, membership testing, and either vertex-edge incidence (if both vertex and edge variables are allowed) or adjacency between pairs of vertices (if only vertex variables are allowed). Additional variations in the definition allow additional predicates such as modular counting predicates.


Examples

As an example, the
connectivity Connectivity may refer to: Computing and technology * Connectivity (media), the ability of the social media to accumulate economic capital from the users connections and activities * Internet connectivity, the means by which individual terminal ...
of an undirected graph can be expressed in MSO1 as the statement that, for every partition of the vertices into two nonempty subsets, there exists an edge from one subset to the other. A partition of the vertices can be described by the subset S of vertices on one side of the partition, and each such subset should either describe a trivial partition (one in which one or the other side is empty) or be crossed by an edge. That is, a graph is connected when it models the MSO1 sentence \forall S\Bigl( \forall x(x\in S) \vee \forall y\bigl(\lnot(y\in S)\bigr) \vee \exists x\exists y\bigl(x\in S\wedge \lnot(y\in S) \wedge x\sim y\bigr) \Bigr). However, connectivity cannot be expressed in first-order graph logic, nor can it be expressed in existential MSO1 (the fragment of MSO1 in which all set quantifiers are existential and occur at the beginning of the sentence) nor even existential MSO2. Hamiltonicity can be expressed in MSO2 by the existence of a set of edges that forms a connected 2-regular graph on all the vertices, with connectivity expressed as above and 2-regularity expressed as the incidence of two but not three distinct edges at each vertex. However, Hamiltonicity is not expressible in MSO1, because MSO1 is not capable of distinguishing
complete bipartite graph In the mathematical field of graph theory, a complete bipartite graph or biclique is a special kind of bipartite graph where every vertex of the first set is connected to every vertex of the second set..Electronic edition page 17. Graph theory i ...
s with equal numbers of vertices on each side of the bipartition (which are Hamiltonian) from unbalanced complete bipartite graphs (which are not). Although not part of the definition of MSO2,
orientations ''Orientations'' is a bimonthly print magazine published in Hong Kong and distributed worldwide since 1969. It is an authoritative source of information on the many and varied aspects of the arts of East and Southeast Asia, the Himalayas, the India ...
of undirected graphs can be represented by a technique involving
Trémaux tree In graph theory, a Trémaux tree of an undirected graph G is a type of spanning tree, generalizing depth-first search trees. They are defined by the property that every edge of G connects an ancestor–descendant pair in the tree. Trémaux trees ar ...
s. This allows other graph properties involving orientations to be expressed as well.


Courcelle's theorem

According to
Courcelle's theorem In the study of graph algorithms, Courcelle's theorem is the statement that every graph property definable in the monadic second-order logic of graphs can be decided in linear time on graphs of bounded treewidth. The result was first proved by Bru ...
, every fixed MSO2 property can be tested in linear time on graphs of bounded
treewidth In graph theory, the treewidth of an undirected graph is an integer number which specifies, informally, how far the graph is from being a tree. The smallest treewidth is 1; the graphs with treewidth 1 are exactly the trees and the forests. The gra ...
, and every fixed MSO1 property can be tested in linear time on graphs of bounded
clique-width In graph theory, the clique-width of a graph is a parameter that describes the structural complexity of the graph; it is closely related to treewidth, but unlike treewidth it can be bounded even for dense graphs. It is defined as the minimum num ...
. The version of this result for graphs of bounded treewidth can also be implemented in
logarithmic space In computational complexity theory, L (also known as LSPACE or DLOGSPACE) is the complexity class containing decision problems that can be solved by a deterministic Turing machine using a logarithmic amount of writable memory space., Definition& ...
. Applications of this result include a fixed-parameter tractable algorithm for computing the crossing number of a graph.; .


Seese's theorem

The
satisfiability problem In mathematical logic, a formula is ''satisfiable'' if it is true under some assignment of values to its variables. For example, the formula x+3=y is satisfiable because it is true when x=3 and y=6, while the formula x+1=x is not satisfiable over ...
for a sentence of monadic second-order logic is the problem of determining whether there exists at least one graph (possibly within a restricted family of graphs) for which the sentence is true. For arbitrary graph families, and arbitrary sentences, this problem is undecidable. However, satisfiability of MSO2 sentences is decidable for the graphs of bounded treewidth, and satisfiability of MSO1 sentences is decidable for graphs of bounded clique-width. The proof involves using Courcelle's theorem to build an automaton that can test the property, and then examining the automaton to determine whether there is any graph it can accept. As a partial converse, proved that, whenever a family of graphs has a decidable MSO2 satisfiability problem, the family must have bounded treewidth. The proof is based on a theorem of Robertson and Seymour that the families of graphs with unbounded treewidth have arbitrarily large
grid Grid, The Grid, or GRID may refer to: Common usage * Cattle grid or stock grid, a type of obstacle is used to prevent livestock from crossing the road * Grid reference, used to define a location on a map Arts, entertainment, and media * News ...
minors. Seese also conjectured that every family of graphs with a decidable MSO1 satisfiability problem must have bounded clique-width. This has not been proven, but a weakening of the conjecture that extends MSO1 with modular counting predicates is true.


Notes


References

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * {{refend Graph theory Finite model theory