scieee AI-readable full text Open interactive document viewer

On zero-one and convergence laws for graphs embeddable on a fixed surface

Atserias, Albert,Kreutzer, Stephan,Noy Serrano, Marcos

Abstract

We show that for no surface except for the plane does monadic second-order logic (MSO) have a zero-one-law - and not even a convergence law - on the class of (connected) graphs embeddable on the surface. In addition we show that every rational in [0,1] is the limiting probability of some MSO formula. This strongly refutes a conjecture by Heinig et al. (2014) who proved a convergence law for planar graphs, and a zero-one law for connected planar graphs, and also identified the so-called gaps of [0,1]: the subintervals that are not limiting probabilities of any MSO formula. The proof relies on a combination of methods from structural graph theory, especially large face-width embeddings of graphs on surfaces, analytic combinatorics, and finite model theory, and several parts of the proof may be of independent interest. In particular, we identify precisely the properties that make the zero-one law work on planar graphs but fail for every other surface.

Full text

On Zero-One and Convergence Laws for Graphs Embeddable on a Fixed Surface Albert Atserias1 Universitat Politècnica de Catalunya, Barcelona, [email protected]c.edu Stephan Kreutzer2 Technical University Berlin, [email protected] Marc Noy3 Universitat Politècnica de Catalunya, Barcelona, [email protected] Abstract We show that for no surface except for the plane does monadic second-order logic (MSO) have a zero-one-law – and not even a convergence law – on the class of (connected) graphs embeddable on the surface. In addition we show that every rational in [0,1] is the limiting probability of some MSO formula. This strongly refutes a conjecture by Heinig et al. (2014) who proved a convergence law for planar graphs, and a zero-one law for connected planar graphs, and also identified the so-called gaps of [0,1]: the subintervals that are not limiting probabilities of any MSO formula. The proof relies on a combination of methods from structural graph theory, especially large face-width embeddings of graphs on surfaces, analytic combinatorics, and finite model theory, and several parts of the proof may be of independent interest. In particular, we identify precisely the properties that make the zero-one law work on planar graphs but fail for every other surface. 2012 ACM Subject Classification Mathematics of computing →Graphs and surfaces, Mathematics of computing →Enumeration, Theory of computation →Finite Model Theory Keywords and phrases topological graph theory, monadic second-order logic, random graphs, zero-one law, convergence law Digital Object Identifier 10.4230/LIPIcs.ICALP.2018.116 1 Introduction We consider classes of labelled graphs with the uniform distribution on graphs with a fixed number of vertices. Let S be a closed compact surface, and let GS be the class of graphs embeddable on S . Heinig et al. [ 9 ] studied limiting probabilities of first order (FO) and monadic second order (MSO) properties of graphs in the classes GS . They showed that a convergence law in FO holds for all surfaces S , and that a convergence law holds in MSO when S is the sphere, so that GS is the class of planar graphs. They also showed that a zero-one law in FO holds for connected graphs in GS , and a zero-one law in MSO for connected planar graphs. They conjectured that these results extend to MSO properties on 1 Partially funded by European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme, grant agreement ERC-2014-CoG 648276 (AUTAR) and MICCIN grant TIN2016-76573-C2-1P (TASSAT3). 2 Research supported by the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation programme (ERC Consolidator Grant DISTRUCT, grant agreement No 648527). 3Partially supported by Grants MTM2014-54745-P and MDM-2014-0445. E A T C S ©Albert Atserias, Stephan Kreutzer, and Marc Noy; licensed under Creative Commons License CC-BY 45th International Colloquium on Automata, Languages, and Programming (ICALP 2018). Editors: Ioannis Chatzigiannakis, Christos Kaklamanis, Dániel Marx, and Donald Sannella; Article No. 116; pp. 116:1–116:14 Leibniz International Proceedings in Informatics Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl Publishing, Germany 116:2 On Zero-One and Convergence Laws for Graphs Embeddable on a Fixed Surface an arbitrary surface. We strongly refute these conjectures. For each surface S other than the sphere we construct an MSO formula ϕ such that the probability that ϕ is satisfied in GS does not converge when the number of vertices n tends to infinity, not even on connected graphs. In addition, telling whether the probability of a given MSO formula ϕ converges is an undecidable problem. We also show that every rational number in [0,1] is the limiting probability of some MSO formula for connected graphs in GS. We sketch next the main ingredients in the proofs of our results. We fix a surface S different from the sphere. Embeddings of graphs on surfaces can be defined in purely combinatorial terms. If S is orientable, an embedding of a graph on S is given by a rotation system consisting, for each vertex v , of a cyclic orientation of the edges incident with v . If S is non-orientable one has to consider also signed edges [ 10 ]. Given a graph G embedded in S the face-width of the embedding is the minimum number of intersections of G with a non-contractible curve in S . In what follows, we say that a graph property holds with high probability (w.h.p.), or asymptotically almost surely (a.a.s.), if it holds with probability tending to 1 as n tends to infinity. It is known [ 10 ] that if the face-width of a 3-connected graph G is at least 2 g , where g is the genus of G (orientable or not), then G has a unique embedding in S . We also need the fact that the face-width of a random 3-connected graph Gembedded on Sis Ω(log n)w.h.p. [1]. It is shown in [ 2 ] that w.h.p. a random graph G in GS has a unique non-planar 3-connected component C . Since planarity is MSO expressible and 3-connected components are MSO definable, so is C . Using the fact that w.h.p. the face-width of C is large, we show the existence of an MSO definable grid structure M in G of size Ω( log log n ). This is obtained starting with a non-contractible cycle, which is MSO definable, and extending it to a grid structure. Inspired by the capacity of MSO to emulate Turing machine computations on grid graphs, we are then able to define an MSO formula ϕ expressing the property that log†|M| is in { 0 , 1 , 2 , 3 } modulo 8, where log†n is a variant of log∗n (see Section 5). Given that log log n≤ |M| ≤ n , the value of log†|M| modulo 8 oscillates and, as a consequence, the probability that ϕholds does not converge as ngoes to infinity. The non-converging formula ϕ , combined with the abovementioned capacity of MSO to emulate Turing machine computations on grid graphs, also gives the undecidability of the decision problem for converging probabilities. For each Turing machine M , we find an MSO formula ϕM that simulates partial runs of M along the definable growing grids. The formula ϕM has asymptotic probability 1if M halts, and asymptotic probability 0otherwise, and the probability of the conjunction ϕ∧ϕMis thus converging if and only if Mhalts. To prove that each rational in [0 , 1] is the limiting probability of some MSO formula, we use the following facts. (a) A 3-connected graph in a surface of genus g has a spanning tree with maximum degree at most 4 g [ 7 ]. (b) For the class GS , every property in MSO 2 (quantification over vertices and edges) is also expressible in MSO [ 5 ]. (c) The size Xn of the unique non-planar component obeys a limit local law related to a stable law [ 8 ]. Consider now a random graph G in GS with n vertices, let C be the unique non-planar component, and let Xn = |C| . From properties (a) and (b) it follows that, for each integers a and b , we can express in MSO the property ϕa,b that Xn is equal to a modulo b . Using property (c) we show that the probability that ϕa,b is satisfied tends to 1 /b . Now given any rational non-negative a/b ≤1, the property that Xnis less than amodulo btends to a/b. The key fact that makes MSO properties of graphs on non-planar surfaces so different from the plane is that w.h.p. there is a unique non-planar 3-connected component, which also happens to be the only one of linear size. For random planar graphs there is a unique 3-connected component of linear size as well, but it is indistinguishable in MSO from the smaller ones. A. Atserias, S. Kreutzer, and M. Noy 116:3 2 Graphs and Surfaces In this section we present the background from graph theory and surface topology we need for our main result. We refer to [ 10 , 6 ] for background on graphs and surfaces. Our notation on surfaces and embeddings follows [10]. Graphs. All graphs in this paper are finite, undirected, and simple, i.e. no parallel edges or self-loops. We denote the vertex and edge set of a graph G by V ( G )and E ( G ), resp. For d≥ 0, a graph G is d -degenerate if every subgraph H⊆G contains a vertex of degree at most d. We need the concept of 3-connected components of a graph G . For k > 0, a graph G is k -connected if |V ( G ) |> k and G−S is connected for all S⊆V ( G )with |S|< k . A connected component of G is an inclusion-wise maximal connected subgraph C⊆G . A 2-connected component of G is an inclusion-wise maximal 2-connected subgraph C⊆G . For defining 3-connected components of Gwe need some preparation. Let G be a 2-connected graph. A separator of order 2in G is a set X = {u, v} of distinct vertices such that G−X is not connected. Let C be an inclusion-wise maximal subgraph of G such that for all 2-separations X of G there is one connected component of G−X which contains all vertices of C−X . For any such 2-separation X of G , if X⊆V ( C )then we add an edge between the two vertices of X in C if it is not already there. This produces a new graph e C . For a 2-connected graph G , the graphs e C obtained in this way which are not cycles are called the 3-connected components of G . Tutte proved that every 2-connected graph has a decomposition into a tree whose nodes are cycles or 3-connected components. Surfaces and Graph Embeddings. We now present some fundamental properties of surfaces and embedded graphs. We refer to [10] for background. Asurface is a compact connected Hausdorff topological space in which every point has a neighbourhood homeomorphic to the plane. A surface can be constructed from the sphere by cutting a number of holes and pairs of holes into the sphere, each homeomorphic to an open disc. Every pair of holes is then closed by adding a handle – an open cylinder – connecting the boundary of the holes. The remaining holes are closed by adding a crosscap, that is, by identifying each point on the boundary of the hole with the corresponding point on the opposite side. The surface classification theorem shows that every surface is homeomorphic to a surface constructed in this way. Any surface obtained in this way that includes a crosscap is called non-orientable, otherwise it is called orientable. Our main result holds for orientable and non-orientable surfaces. Due to space constraints, we only explain the orientable case. The surface obtained from the sphere by adding k handles is denoted by Sk . The number k is called the genus of Sk. Let S = Sk be a surface. The way we constructed S implies that we can reduce it to the plane by taking for each handle a closed curve that goes around the handle and cut the surface along the curves, closing the appearing holes by disks. This way, every handle is cut open and the resulting surface is homeomorphic to the plane. We call curves which cut a handle in this way noncontractible. There are two types of non-contractible curves: if we cut along a curve, we may either disconnect the surface or not. Curves which do not disconnect the surface when we cut along them are called non-separating. Following [ 10 ], a graph G0 is embedded on a surface S if its vertices are distinct points on S and every edge e of G0 with endpoints u, v is a simple closed arc connecting u and v in S such that the interior of e is disjoint from other edges and vertices of G0 . A graph G is ICALP 2018 116:4 On Zero-One and Convergence Laws for Graphs Embeddable on a Fixed Surface embeddable on S if it is isomorphic to an embedded graph G0 on S . Let Πbe an embedding of a graph Gin S. The connected components of S−Πare called the faces of Π. An embedding of a graph in a surface S can be uniquely represented by an object called an embedding scheme or rotation system. If v is a vertex of G then the embedding of G embeds the edges incident with v in some order in clockwise orientation around v . That is, for any v the embedding defines a cyclic permutation of the incident edges, or a linear order on the edges that have v as an endpoint. We call this order the clockwise order around v . A rotation system is a set of clockwise orderings containing one order for every vertex. Such a rotation system uniquely determines an embedding of G in S . Given a rotation system π of a graph G , we can construct the facial cycles of the embedding as follows. Let v be a vertex and let e = {u, v} be an incident edge. Then v and e determine a walk in G where we start at v , follow the edge e to its other endpoint and then proceed with the next edge in clockwise order until we return to v . In this way we obtain exactly the facial cycles of the embedding. In particular, we can represent any face of the embedding by orienting an edge in its boundary cycle, which fixes the start vertex v and the edge e to choose first. This will be used in the MSO definition in the next section. One of the main challenges in proving our main result is that we need to define MSO - formulas that encode in a given graph an embedding of it in a fixed surface S . Whitney proved that a planar graph G that is 3-connected has a unique embedding into the plane. In [ 3 ], Courcelle proved that there are MSO -formulas defining the rotation system for planar graphs. To prove that rotation systems are also definable for graphs on other surfaces we will reduce the problem to the planar case as follows. As mentioned above, any surface can be reduced to the plane by cutting the surface along a finite set of closed curves each of which cuts a handle. We can generalize this concept of cutting along a cycle to cycles in embedded graphs. In the sequel, let S be a surface. If we refer to a Π-embedded graph G we implicitly define Πto be an embedding of the graph G on S . Let C = ( v0e1v1e2....vk = v0 )be a cycle in G . For i > 0, let Li be the set of edges incident to vi which in the clockwise ordering around vi appear after ei but before ei+1 the Ri be the set of edges appearing after ei+1 and ei . The edges in any Li are called the left edges of the cycle C and the edges in any Ri are called the right edges of C. IDefinition 2.1. Let C = ( v0e1v1. . . vk )be a surface nonseparating cycle of a Π-embedded graph G . Let G0 be the graph obtained from G by replacing C by two isomorphic copies Cr = ( vr 0er 1vr 1. . . vr k )and Cl = ( vr 0el 1vl 1. . . vl k )such that all edges e = {u, vi} on the right of C are replaced by edges {u, vr i} incident to the corresponding vertices on Cr and all edges e = {u, vi} on the left of C are replaced by edges {u, vl i} incident to the corresponding vertices on Cl . We say that G0 is obtained from G by cutting along the cycle C . The embedding Π defines an embedding Π 0 of G0 in the surface obtained from S by cutting along C and closing the resulting holes by discs in the obvious way. Note that the two copies C1, C2 of C are now facial cycles. We now add two new vertices f1, f2 such that fi has an edge to every vertex of Ci . This means that fi is drawn in the face bounded by Ci . We call the resulting graph the augmented graph obtained by cutting along C. This motivates the following definition. IDefinition 2.2 (Planarizing set of cycles) . Let G be a Π-embedded graph. A planarizing set of cycles is a set C1, . . . , Ck of pairwise disjoint cycles in G such that cutting along all cycles C1, . . . , Ckresults in a connected graph embedded in the sphere. A. Atserias, S. Kreutzer, and M. Noy 116:5 We will see below that for certain graphs embedded on a surface such sets of cycles always exist. For this, we need the concept of face-width. IDefinition 2.3. Let Πbe an embedding of a graph G on S . The face-width fw ( G, Π) of G is the smallest number k such that S contains a noncontractible closed curve that intersects Gin kpoints, or ∞if no noncontractible curve exists (i.e. Sis the plane). We prove next that the connectivity between two Π-noncontractible and Π-nonseparating cycles is at least as high as the face-width of Π. ILemma 2.4. Let G be a 2-connected Π-embedded graph and let C and C0 be two disjoint Π-noncontractible, Π-nonseparating cycles. Let 2 ≤k = fw ( G, Π) <∞ . Then there are at least k pairwise vertex disjoint paths linking C and C0 . Furthermore, if G is 3-connected with 3 ≤fw ( G, Π) <∞ and C is a Π-nonseparating cycle then be the augmented graph e G obtained from Gby cutting along Cis 3-connected. See [10, Theorem 5.11.2] for a proof of the following theorem. ITheorem 2.5. Let G be a graph that is Π-embedded in a surface with Euler genus g and let d be a positive integer. If fw ( G, Π) ≥ 8( d + 1)(2 g− 1), then G contains a planarizing collection of induced cycles C1, . . . , Ck , for some g/ 2 ≤k≤g , such that the distance between Ciand Cj,i6=j, is at least d. The previous theorem and the lemma preceding it show that starting from a graph that is 3-connected and has an embedding of face-width at least 3, we can reduce it to a 3-connected planar graph by cutting along a constant number of cycles. Combining this with Whitney’s theorem of unique embeddings of 3-connected planar graphs implies the following result which will be important later. ITheorem 2.6. Let G be a 3-connected graph that is Π-embedded in a surface with Euler genus g such that 3 ≤ 8( d + 1)(2 g− 1) ≤fw ( G, Π) <∞ . Let G0 be the augmented graph obtained by cutting along a set of planarizing cycles. Then the facial cycles of Πare precisely the facial cycles of the unique plane embedding of G0 . Moreover, an embedding scheme which is equivalent to Πcan be deduced from the rotation system of the plane embedding of G0. The following definition captures the abstract properties of planarizing sets of cycles. IDefinition 2.7. Let G be a graph and let k≥ 0. A potential system of planarizing cycles of order k is a sequence  ( Ci, Li, Ri ) k i=1 such that C1, . . . , Ck are pairwise vertex disjoint cycles in G and Li, Ri form a partition of the set of edges e6∈ E ( Ci )incident with a vertex on Ci, for all i. Note that the procedure of cutting along a cycle in a graph G and the augmented graph obtained from G in this way as defined above can be applied to any cycle C with a given partition L, R of the edges e6∈ E ( C )incident with a vertex on C . Of course it may not always lead to the intended effect, e.g. if the sets L and R of left and right edges are chosen wrongly. But in any case it will produce a graph G0 and if G and Πsatisfy the conditions of Theorem 2.5, then G0 will be the augmented graph obtained by cutting along the cycles C1, . . . , Ck. Let G0 be the graph obtained in this way. We call G0 the graph obtained from G by cutting along S . If G0 is planar and Π 0 is a plane embedding of G0 then we can obtain an embedding Π 00 of G on some surface as follows. Let f1, . . . , fk be the extra vertices in G0 . If we delete f1, . . . , fk from G0 and Π 0 then we obtain a plane embedding Π 00 which, for each i , ICALP 2018 116:6 On Zero-One and Convergence Laws for Graphs Embeddable on a Fixed Surface has two facial cycles corresponding to the two copies of Ci . We cut two holes, each having a copy of Ci as boundary cycle, and then identify the corresponding points on the two copies of Ci in the obvious way. In this way we obtain a surface S defined by an embedding Π 000 of G. We call S, Π000 the surface and embedding obtained from G0and Π0by gluing along S. The results and constructions proved in this subsection imply the next theorem. ITheorem 2.8. Let S be a surface of genus g and let G be a 3-connected graph embedded in Sby an embedding Πsuch that 8(d+ 1)(2g−1) ≤fw(G, Π) <∞. 1. Then, there exists a potential system of planarizing cycles S of order at most g such that the graph G0 obtained from G by cutting along S is 3-connected and planar, and if Π 0 is the (uniquely determined) plane embedding of G0 , then S and Πare the surface and the embedding obtained from G0and Π0by gluing along S. 2. Furthermore, for every potential system of planarizing cycles S of order at most g such that the graph G0 obtained from G by cutting along S is 3-connected and planar, if Π 0 is the (uniquely determined) plane embedding of G0 , then S and Πare the surface and the embedding obtained from G0and Π0by gluing along S. This theorem is the main tool for defining embeddings in monadic second-order logic later on. In the next section we exploit face-width for finding grids of controlled size. Grid-like Structures in High-Face Width Embeddings. In this section we establish some graph theoretical properties of embedded graphs that will allow us to define grids in embedded graphs whose order is proportional to the face-width. IDefinition 2.9. Let G be a 2-connected Π-embedded graph such that fw ( G, Π) ≥ 2and let F = F ( G, Π) be the set of Π-faces. The vertex-face graph is the bipartite graph Γ = Γ( G, Π) with vertex set V ( G ) ∪F ( G, Π) and an edge between u∈V ( G )and f∈F ( G, Π) if u is contained in the facial cycle bounding f. Note that any closed curve on a surface corresponds to a cycle in the vertex-face graph in the obvious way. From now on, we will therefore consider cycles in the Γ( G, Π). The length of such a cycle is the number of faces (or vertices) on it. ILemma 2.10 (Prop. 5.5.10 of [ 10 ]) . Let G be a Π-embedded graph such that 2 <fw ( G, Π) < ∞ , and let k := bfw(G,Π) 2c − 1. Let v be a Π-face and let B0 ( v )be the Π-boundary walk of v . For i > 0we define Bi ( v )as the union of Bi−1 ( v )and all Π-facial walks that have a vertex in Bi−1 ( v ). Then there exist k + 1 disjoint Π-contractible cycles C0, . . . , Ck such that for all i= 0,1, ..., k,Ci⊆∂Bi(v)and Bi(v)⊆Int(Ci). We are now ready to prove the graph theoretical properties we will use later to show that any 3-connected graph embedded by a face-width k embedding, for some 3 ≤k < ∞ , contains a k 4×k 4-grid which, moreover, is controlled by a noncontractible cycle. Let Πbe an embedding of a graph G on a surface S of Euler genus g such that fw ( G, Π) ≥ 3. Let Γ = Γ(G, Π). Let k:= bfw(G,Π) 2c − 1. IDefinition 2.11. Let C be a Π-nonseparating, Π-non-contractible cycle of Γof minimal length. Hence, the number of vertices and faces on C is exactly fw ( G, Π). Let v be a face on C . A set P = {P0, . . . , Pk} of pairwise vertex disjoint cycles is controlled by C and v , if for all 0≤i≤k, Piintersects Cin exactly two vertices pi, p0 i, for all 1 ≤i≤k , pi and pi−1 and also p0 i and p0 i−1 have a common neighbour on C , which is a face, and p0and p0 0are the neighbours of the face von C, and if i<j then Pi is contained in the component of G−Pj , called the interior of Pj , that contains v. A. Atserias, S. Kreutzer, and M. Noy 116:7 Let C and v be as before and let P = {P0, . . . , Pk} be a set of pairwise vertex disjoint cycles controlled by C and v . Then either there is exactly one face ¯v on C not in the interior of Pk or there is exactly one vertex ¯v on C which is neither in the interior of Pk nor on Pk itself. We call the node ¯v in the previous claim the opposite node of v on C and denote it by ¯v. Let C, v, ¯v and P be as before. Let a be a face on C and let Q = {Q1, . . . , Qk} be a set of pairwise disjoint cycles controlled by Cand a. Let ¯abe the opposite node of aon C. Let s := dk+1 2e and let s0 := k−s . If fw ( G, Π) is odd then a is a face of facial distance s from v on C if, and only if, the cycle Q∈ Q which contains the vertex ¯v has v on its exterior but v is adjacent to a vertex on Q . If fw ( G, Π) is even then a is a face of facial distance s from v on C if, and only if, v and ¯v are adjacent to vertices on the same two cycles in Q . If aand vsatisfy these conditions, then we say that vand amatch. This observation will allow us to define a, ¯a, ¯v from C and v . What is left is to give a topological condition for C to be a noncontractible cycle of minimal length. But this can easily be done using Lemma 2.4. Finally, it can be shown that C, v, ¯v, a, ¯a uniquely determine a grid structure in C∪ P ∪ Q of size s0 . The previous claims together establish the following theorem. ITheorem 2.12. Let C be a noncontractible, nonseparating cycle of length fw ( G, Π) and let v be a face on C . Let P be a set of pairwise disjoint cycles controlled by C and v and let ¯v be the node on the opposite of v on C . Let x be a face on C and let Q be a set of pairwise disjoint cycles controlled by C and x and let ¯x be the node opposite of x on C . Finally, suppose v and x match as defined in the previous claim. Then C, v, x, ¯x, ¯v determine an s0×s0grid. 3 Monadic Second-Order Logic In this section we introduce monadic second-order logic (MSO), and develop the MSO definability of embedding schemes and grids in large face-width embeddings. Logic. Avocabulary is a set of relation symbols with associate arities. If L is a vocabulary, a finite L -structure M is given by a finite domain or universe D ( M )and a relation R ( M ) ⊆Mr for each relation symbol R∈Lof arity r The class of formulas of monadic second-order logic (MSO) is the smallest class of formulas that contains the atomic formulas and is closed under negations, conjunctions, disjunctions, and existential and universal quantification of individual and set variables. An individual variable ranges over the domain, and a set variable ranges over the subsets of the domain. If X is a set variable and x is an individual variable, then X ( x )is the atomic formula that says that x is in the set X . Given a structure M , the relation defined by a formula ϕ ( ¯x, ¯ X ) with individual and set free-variables ¯x and ¯ X , respectively, is the set of pairs of tuples ( ¯a, ¯ A ) such that Mmakes ϕ(¯a, ¯ A)true. A formula without free variables is called a sentence. Logic on Graphs, MSO1and MSO2. There are two natural encodings of graphs G as structures. In the standard encoding the vocabulary has a single binary relation symbol E , the domain of the structure is V ( G ), and the binary relation E is interpreted by E ( G ). In the incidence encoding the vocabulary has two unary relation symbols V and E , one binary relation symbol I , the domain is V ( G ) ∪E ( G ), and I is the incidence relation between vertices and their incident edges. The unary relations V and E are interpreted by V ( G )and E ( G ). Whereas for FO it is irrelevant which encoding is used, the two encodings behave ICALP 2018 116:8 On Zero-One and Convergence Laws for Graphs Embeddable on a Fixed Surface differently for MSO: on the standard encoding the set quantifiers range over sets of vertices whereas on the incidence encoding they range also over sets of edges, e.g., over paths. MSO on the standard encoding is often referred to as MSO 1 and on the incidence encoding it is referred to as MSO 2 . For graphs of bounded genus, and even more generally, for classes of graphs that are p -degenerate for some fixed p > 0, the two logics MSO 1 and MSO 2 are equivalent: see Theorem 5.22 in [ 5 ]. Since we only consider classes of graphs of bounded genus we will assume from now on that graphs are given by their incidence encoding. MSO-definitions and interpretations. For an integer k≥ 1, an MSO-definition of L - structures of order k is a collection of formulas ϕD,1 ( x ) , . . . , ϕD,k ( x )and ϕR,t ( ¯x )for R∈L and t∈ [ k ] r , where r is the arity of R , and x in ϕD,i ( x )is an individual variable, and ¯x in ϕR,t ( ¯x )is a tuple of individual variables of length r . If Ψis such an MSO-definition and M is a structure of the vocabulary of the formulas in Ψ, then the structure defined by Ψon M is the L -structure N with D ( N ) = { ( a, i ) ∈D ( M ) × [ k ] : M| = ϕD,i ( a ) } and R ( N ) = { (( a1, i1 ) ,..., ( ar, ir )) ∈ ( D ( M ) × [ k ]) r : M| = ϕR,(i1,...,ir) ( a1, . . . , ar ) } . An MSO-definition of order k with parameters is defined analogously, with each formula carrying additional parameter variables ¯z and ¯ Z , and an additional formula π ( ¯z, ¯ Z )to tell if a choice of parameters ¯ b, ¯ B is good. We say that Ψtakes the structure M as input and produces the structure N as output, for the good choice of parameters ¯ b and ¯ B , if the defining formulas produce N when ¯z and ¯ Z are replaced by the parameters. If there is as least one good choice of parameters in M and the same structure N is produced under all good choices of parameters, then we omit any reference to them and say that Ψtakes M as input and produces Nas output. Finally, MSO-interpretations extend MSO-definitions to allow factor structures. Concretely, an MSO-interpretation (without parameters, of order 1) includes an additional equality-defining formula ϕ≡ ( x, y ), that is required to define an equivalence relation on the domain defined by ϕD ( x )that is a congruence of the relations defined by the ϕR ( ¯x )’s. On a structure M as input, the MSO-interpretation produces the structure whose domain is the set of equivalence classes of the equivalence relation ≡ defined by ϕ≡ ( x, y )on the domain defined by ϕD ( x ), and whose relations are the relations that are defined by the ϕR ( ¯x )’s factored by ≡. MSO-interpretations with parameters and of order k > 1are defined analogously. The composition of two MSO-interpretations is defined in the obvious way and is again an MSO-interpretation. As an example of MSO-interpretation we state the following easily derived consequence of Theorem 4.7 in [3]. ITheorem 3.1. There is an MSO-definition Ψthat, for every graph G given as input and every 3-connected component C of G , there is a good choice of parameters for Ψon which it produces C. Logic Representation of Embedding Schemes. Embedding schemes will be represented as graphs expanded by two relations that represent the cyclic orderings around the vertices. Concretely, the vocabulary has two unary relation symbols V and E for vertices and edges, one binary relation symbol I for the incidence relation between vertices and edges and one ternary relation symbol R for cyclic orderings. The predicate R ( v, e1, e2 )holds if e1 and e2 are edges that are incident to vertex v , and e1 is the immediate predecessor of e2 in the cyclic ordering of the edges that are incident to v. This encoding was used by Courcelle [ 4 ] to show that there is an MSO-definition that takes a 3-connected planar graph as input and produces an embedding in the plane as output, which is unique by Whitney’s Theorem. A. Atserias, S. Kreutzer, and M. Noy 116:9 ITheorem 3.2 ([ 4 ]) . There is an MSO-definition that, given a 3-connected planar graph G as input, produces an embedding scheme as output. It will be convenient to extend the embedding schemes to include the faces of the embedding. Accordingly, extended embedding schemes will include a set F of faces in their domain and store the incidence relation between edges and faces through the incidence relation I. We aim at an MSO-interpretation that given an embedding scheme produces its extension with faces. A face is determined by one of its bounding edges together with an orientation. Specifying the orientation directly by specifying one of its endpoints would take us beyond the syntax of MSO-interpretations. Instead of that, we use a proper k -coloring of the graph with a small number k of colors and specify the orientation of the edge by specifying the colors of the left and right endpoints. The k -coloring is provided through k many parameter set variables, and we choose k large enough so that any graph in the surface under consideration has chromatic number at most k . It is well-known that the chromatic number of all graphs embeddable in a fixed surface is bounded (see [ 10 ]). In the case of planar graphs k = 5 suffices (and even k= 4 does). ILemma 3.3. For every k≥ 2, there is an MSO-interpretation that, given an embedding scheme for a graph that is k -colorable, produces its extension by faces as an extended embedding scheme. Embeddings by Reduction to Planar Case. Our next goal is to prove the analogue of Theorem 3.2 for higher genus surfaces. We proceed by reduction to the planar case via Theorem 2.8. Let S be an orientable surface of genus g . For simplicity we start with the orientable case. We start with two MSO-interpretations that implement the operations of cutting a graph along a potential system of planarizing cycles, and its reverse operation of gluing along it; cf. Definition 2.7 and the discussion immediately following it. Systems are represented most simply by a sequence of 3kset variables. ILemma 3.4. There is an MSO-interpretation Ξthat, given a graph G and potential system of planarizing cycles S , produces the graph G0 obtained from G by cutting along S . Conversely, there is an MSO-interpretation Ξ 0 that, given a graph G , a potential system of planarizing cycles S , and a plane embedding scheme Π 0 for the output of Ξon G and S , produces the graph G00 and the embedding scheme Π00 that is obtained from G0and Π0by gluing along S. With these objects at hand we are ready to prove the analogue of Theorem 3.2. ITheorem 3.5. Let S be a surface of genus g . There is an MSO-interpretation that, given a 3-connected graph G that has an embedding in S of finite face-width at least 8( d + 1)(2 g− 1) (which must be unique), produces such an embedding Π. We need to show that the conditions of Theorem 2.8 can be defined in MSO. Defining Grids in High Face-Width Embeddings. Our final goal of this section is to develop an MSO-interpretation γwhich defines large grids in 3-connected Π-embedded graphs. ITheorem 3.6. There is an MSO -interpretation γ that, given an extended embedding scheme for a graph Gof finite face-width k≥3, produces a grid of order bk 4c. To define γ, we need to show that the conditions of Theorem 2.12 can be defined in MSO. ICALP 2018