scieee AI-readable full text Open interactive document viewer

Elements of algebraic geometry and the positive theory of partially commutative groups

Casals-Ruiz, Montserrat; Kazachkov, Ilya v.

Abstract

The first main result of the paper is a criterion for a partially commutative group G to be a domain. It allows us to reduce the study of algebraic sets over G to the study of irreducible algebraic sets, and reduce the elementary theory of G (of a coordinate group over G) to the elementary theories of the direct factors of G (to the elementary theory of coordinate groups of irreducible algebraic sets). Then we establish normal forms for quantifier-free formulas over a non-abelian directly indecomposable partially commutative group H. Analogously to the case of free groups, we introduce the notion of a generalised equation and prove that the positive theory of H has quantifier elimination and that arbitrary first-order formulas lift from H to H * F, where F is a free group of finite rank. As a consequence, the positive theory of an arbitrary partially commutative group is decidable.

Full text

ELEMENTS OF ALGEBRAIC GEOMETRY AND THE POSITIVE THEORY OF PARTIALLY COMMUTATIVE GROUPS MONTSERRAT CASALS-RUIZ AND ILYA V. KAZACHKOV Abstract. The first main result of the paper is a criterion for a partially commutative group Gto be a domain. It allows us to reduce the study of algebraic sets over Gto the study of irreducible algebraic sets, and reduce the elementary theory of G(of a coordinate group over G) to the elementary theories of the direct factors of G(to the elementary theory of coordinate groups of irreducible algebraic sets). Then we establish normal forms for quantifier-free formulas over a non-abelian directly indecomposable partially commutative group H. Analogously to the case of free groups, we introduce the notion of a generalised equation and prove that the positive theory of Hhas quantifier elimination and that arbitrary first-order formulas lift from Hto H∗F, where Fis a free group of finite rank. As a consequence, the positive theory of an arbitrary partially commutative group is decidable. 1. Introduction This paper can be considered as a part of a project the aim of which is to construct algebraic (diophantine) geometry over partially commutative groups, and, more generally, to study the elementary theory of partially commutative groups. Classical algebraic geometry is concerned with the study of the geometry of sets of solutions of systems of equations, i.e. the geometry of algebraic sets. Taking the collection of all algebraic sets as a pre-base of closed sets one gets a topology, known as the Zarsiki topology. In the Zariski topology, every closed set is a union (maybe infinite) of algebraic sets. In the case that the ring of coefficients or, equivalently, the Zariski topology is Noetherian, every closed set Yis a finite union of algebraic sets Y=Y1∪···∪Yk. In the 1991 Mathematics Subject Classification. 20F10, 03C10, 20F06. The first author is supported by Programa de Formaci´on de Investigadores del Departamento de Educaci´on, Universidades e Investigaci´on del Gobierno Vasco. The second author was supported by Richard. H. Tomlinson Fellowship. 1 2 M. CASALS-RUIZ AND I. KAZACHKOV case that Yi*Yj,i6=j, and Yican not be non-trivially presented as a union of algebraic sets, this decomposition is unique and the sets Y1, . . . , Ykare referred to as the irreducible components of Y. In general, however, a finite union of algebraic sets is not necessarily again an algebraic set. In classical algebraic geometry, it suffices to require that the ring of coefficients be a domain. Under these assumptions there exists a one-to-one correspondence between algebraic sets and closed sets. Thus, the study of algebraic sets reduces completely to the study of irreducible algebraic sets. In [1] G. Baumslag, A. Miasnikov and V. Remeslennikov lay down the foundations of algebraic geometry over groups and introduce group-theoretic counterparts of basic notions from algebraic geometry over fields. The counterpart to the notion of a Noetherian ring is the notion of an equationally Noetherian group: a group Gis called equationally Noetherian if every system S(X) = 1 with coefficients from Gis equivalent to a finite subsystem S0= 1, where S0⊂S, i.e. the algebraic set defined by Scoincides with the one defined by S0. The notion of a domain carries over from rings to groups as follows: a group Gis called a domain if for any x, y 6= 1 there exists g∈Gsuch that [x, yg]6= 1. The notions of equationally Noetherian group and domain, play an analogous role (to their ring-theoretic counterparts) in algebraic geometry over groups (see [1]): •a group Gis equationally Noetherian if and only if the Zariski topology is Noetherian, in particular every closed set is a finite union of algebraic sets; •if a group Gis a domain, then the collection of all algebraic sets is a base for the Zariski topology. Our main interest in this paper is algebraic geometry over (free) partially commutative groups. Partially commutative groups are widely studied in different branches of mathematics and computer science, which explains the variety of names they were given: graph groups,right-angled Artin groups, semifree groups, etc. Without trying to give an account of the literature and results in the field we refer the reader to a recent survey [4] and the introduction and references in [14]. Partially commutative groups are linear, see [19], hence, equationally Noetherian, see [1]. In [1] the authors give several sufficient conditions for a group to be a domain. In particular, any CSA group is a domain and various group-theoretic constructions preserve the property of being a domain. However, none of the criteria obtained in [1] apply to the case of partially commutative groups. The major obstacle here is that a partially commutative group may contain a direct product of two free groups. ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 3 In Section 4.2 we give a criterion for a partially commutative group to be a domain: Theorem 4.16. Let Gbe a partially commutative group. Then Gis a domain if and only if Gis non-abelian and directly indecomposable. Note that even if a partially commutative group is directly indecomposable, it still may contain a direct product of free groups. The proof of this theorem is given in Section 4. It makes use of the technique of van Kampen diagrams over partially commutative groups, which we present in Section 3 and the description of centralisers in partially commutative groups (see Theorem 2.3). The remaining part of the paper has a model-theoretic flavor. In Section 5, using results from [18], we prove that that the elementary theory of G(of a coordinate group over G) reduces to the elementary theories of the direct factors of G(to the elementary theory of coordinate groups of irreducible algebraic sets): Corollary 5.2. Let Gbe a non-abelian directly indecomposable partially commutative group. (i) If Y=Y1∪ ··· ∪ Ykis an algebraic set over G, where Y1, . . . , Yk are the irreducible components of Y, then the elementary theory of the coordinate group Γ(Y)of Yis decidable if and only if the elementary theory of Γ(Yi)is decidable for all i= 1, . . . , k. (ii) If Y=Y1∪···∪Ykand Z=Z1∪···∪Zlare two irreducible algebraic sets, where Y1, . . . , Ykand Z1, . . . , Zlare the irreducible components of Yand Z, respectively, then Γ(Y)is elementary equivalent to Γ(Z)if and only if k=land, after a certain re-enumeration, Γ(Yi)is elementary equivalent to Γ(Zi)for all i= 1, . . . , k. It is known that coordinate groups of algebraic sets over Gare separated by G(are residually G), see [25]. If a coordinate group Γ is a coordinate group of an irreducible set, then Γ is discriminated by G(is fully residually G), or equivalently, is universally equivalent to G. Hence, the class of coordinate groups of irreducible algebraic sets is much narrower and admits a convenient logical description. In his seminal work [21], Makanin introduced the notion of a generalised equation. In [22] this notion is used in order to show that the existential theory (the compatibility problem) of free groups and monoids is decidable. Since then this result has been generalised in various ways. In [28] Schulz generalised Makanin’s result to the case of systems of equations over a free monoid with regular constraints, and in [6] Diekert, Gutierrez and Hagenah showed the decidability of the compatibility problem for systems of equations over a free group with rational constraints. Using the latter result, 4 M. CASALS-RUIZ AND I. KAZACHKOV Diekert and Lohrey show in [7] that the existential theory of a certain class of graph products of groups is decidable. Furthermore in [8], the authors show the decidability of the existential theory for an even wider class of groups. A common feature of the results mentioned above is that that they reduce the problem to the one for free groups with rational constraints. One of the main applications of the decidability of the compatibility problem for free groups is the decidability of the positive theory of the respective group. In the case of free groups this is a very well known result. In his paper [24], Merzlyakov performs quantifier elimination for positive formulas over free groups by describing the Skolem functions. Then using the result of Makanin, [22], one gets the decidability of the positive theory. The aim of Sections 6 and 7 is to carry over the approach of Merzlyakov and Makanin to the case of partially commutative groups. In Section 6, we prove that any positive quantifier-free formula over a nonabelian directly indecomposable partially commutative groups is equivalent to a single equation. In order to do so we prove that (i) for any finite system of equations S1(X) = 1, . . . , Sk(X) = 1 one can effectively find a single equation S(X) = 1 such that the algebraic set defined by the equations S1, . . . , Skand by Scoincide for any non-abelian directly indecomposable partially commutative group G, (ii) for any finite set of equations S1(X)=1, . . . , Sk(X) = 1 one can effectively find a single equation S(X) = 1 such that the union of algebraic sets defined by the equations S1, . . . , Skcoincides with the algebraic set defined by Sfor any non-abelian directly indecomposable partially commutative group G. In the case of free groups, the first result is due to Malcev, see [23], and in [22] Makanin attributes the second result to Gurevich. These results hold in fact in a much more general setting (for groups that satisfy certain firstorder formulas), for example in [17] it is proven that this is the case for torsion-free, non-abelian, CSA groups that satisfy the Vaught’s conjecture, in particular, for all non-abelian fully residually free groups and torsionfree hyperbolic groups. Note, that a non-abelian directly indecomposable partially commutative group is almost never a CSA group. We generalise the results of Malcev and Gurevich to the case of partially commutative groups. The exposition in this section as well as in Section 7 is based on [17]. As an immediate consequence of these results we get a normal form for first order formulas over partially commutative groups (in fact, over a much wider class of groups). ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 5 In Section 7, we use the normal form for Van Kampen diagrams obtained in Lemma 3.2 to describe the finite number of all possible cancellation schemes for a given equation. This allows us to introduce the notion of a generalised equation for partially commutative groups. Then we introduce an analogue of the, so called, Merzlyakov words and perform quantifier elimination for positive formulas over non-abelian directly indecomposable partially commutative groups. Theorem 7.8. If G|=∀x1∃y1. . . ∀xk∃yk(S(X, Y, A) = 1), then there exist words (with constants from G)q1(x1), . . . , qk(x1, . . . , xk)∈ G[X],such that G[X]|=S(x1, q1(x1), . . . , xk, qk(x1, . . . , xk, A)) = 1, i.e. the equation S(x1, y1, . . . , xk, yk, A) = 1 (in variables Y)has a solution in the group G[X]. Our approach, therefore, is a natural analog of the classical approach of Merzlyakov and Makanin to the positive theory of free groups and avoids the technically involved language of constraints. In particular, quantifier elimination gives a reduction of the decidability of the positive theory of non-abelian directly indecomposable partially commutative groups to the decidability of the compatibility problem of an equation, which is known to be decidable, see [9]. Finally, in order to prove that the positive theory of any partially commutative group is decidable, we need to study the positive theory of the direct product of groups. In folklore, it is known that if G=H1×···×Hk, then the positive theory of Gis decidable if the positive theories of H1, . . . , Hk are decidable. However, we were unable to find a reference till (when this paper was already written) M. Lohrey pointed out that in [7], the authors give a proof of this result. We present another proof of this fact in the Appendix. The proof is purely model-theoretic and makes use of the ideas of the proof of Theorem 8.13 which is due to Feferman and Vaught, see [16]. 2. Preliminaries 2.1. Partially commutative groups. We begin with the basic notions of the theory of free partially commutative groups. Recall that a (free) partially commutative group is defined as follows. Let Γ be a finite, undirected, simple 6 M. CASALS-RUIZ AND I. KAZACHKOV graph. Let A=V(Γ) = {a1, . . . , an}be the set of vertices of Γ and let F(A) be the free group on A. Let R={[ai, aj]∈F(A)|ai, aj∈Aand there is an edge of Γ joining aito aj}. The partially commutative group corresponding to the (commutation) graph Γ is the group G(Γ) with presentation hA|Ri. This means that the only relations imposed on the generators are commutation of some of the generators. When the underlying graph is clear from the context we write simply G. From now on A={a1, . . . , ar}always stands for a finite alphabet, its elements being called letters. We reserve the term occurrence to denote an occurrence of a letter in a word. In a more formal way, an occurrence is a pair (letter, its placeholder in the word). For a given word wdenote α(w) the set of letters occurring in w. For a word w∈G, we denote by wa geodesic of w. For a word w∈Gdefine A(w) to be the subgroup of Ggenerated by all letters that do not occur in wand commute with w. The subgroup A(w) is well-defined (independent of the choice of a geodesic w), see [15]. An element w∈Gis called cyclically reduced if the length of w2is twice the length of w. For a partially commutative group Gconsider its non-commutation graph ∆. The vertex set Vof ∆ is a set of generators Aof G. There is an edge connecting aiand ajif and only if [ai, aj]6= 1. The graph ∆ is a union of its connected components I1, . . . , Ik. Then (1) G=G(I1)×···×G(Ik). Consider w∈Gand the set α(w). For this set, just as above, consider the graph ∆(α(w)) (it is a full subgraph of ∆). This graph can be either connected or not. If it is connected we will call wablock. If ∆(α(w)) is not connected, then we can split winto the product of commuting words (2) w=wj1·wj2···wjt;j1, . . . , jt∈J, where |J|is the number of connected components of ∆(α(w)) and the word wjiinvolves letters from the ji-th connected component. Clearly, the words {wj1, . . . , wjt}pairwise commute. Each word wji,i∈1, . . . , t is a block and so we refer to presentation (2) as the block decomposition of w. An element w∈Gis called a least root (or simply, root) of v∈Gif there exists an integer 0 6=m∈Zsuch that v=wmand there does not exists w0∈Gand 0 6=m0∈Zsuch that w=w0m0 . In this case we write w=√v. By [11], partially commutative groups have least roots, that is the root element of vis defined uniquely. ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 7 The following proposition reduces the conjugacy problem for arbitrary elements of a partially commutative group to the one for block elements. Proposition 2.1 (Proposition 5.7 of [15]).Let w=w1·w2···wtand v=v1·v2···vsbe cyclically reduced elements decomposed into the product of blocks. Then vand ware conjugate if and only if s=tand, after some certain index re-enumeration, wiis conjugate to vi, i = 1, . . . , t. Corollary 2.2. Let w=wr1 1·wr2 2···wrt tand v=vl1 1·vl2 2···vls sbe cyclically reduced elements decomposed into the product of blocks, where wiand vj are root elements, li, rj∈Z,i= 1, . . . , t,j= 1, . . . , s. Then wand vare conjugate if and only if s=tand, after some certain index re-enumeration, ri=liand wiis conjugate to vi,i= 1, . . . , t. The next result describes centralisers of elements in partially commutative groups. As the definition of “being a domain” relies on the structure of centralisers, we shall make substantial use of the following theorem. Theorem 2.3 (Centraliser Theorem, Theorem 3.10, [11]).Let w∈Gbe a cyclically reduced word, w=v1. . . vkbe its block decomposition. Then, the centraliser of wis the following subgroup of G: C(w) = h√v1i×···×h√vki×A(w). Corollary 2.4. For any w∈Gthe centraliser C(w)of wis an isolated subgroup of G, i.e. C(w) = C(√w). 2.2. Algebraic Geometry over Groups. In this section we recall basic notions of algebraic geometry over groups, see [1] for details. Let Gbe a group generated by a finite set A,F(X) be a free group with basis X={x1, x2, . . . xn},G[X] = G∗F(X) be the free product of Gand F(X). A subset S⊂G[X] is called a system of equations over G. As an element of the free product, the left side of every equation in S= 1 can be written as a product of some elements from X∪X−1(which are called variables) and some elements from A⊂G(constants). Asolution of the system S(X) = 1 over a group Gis a tuple of elements g1, . . . , gn∈Gsuch that every equation from Svanishes at (g1, . . . , gn), i.e. S(g1, . . . , gn) = 1 in G. Equivalently, a solution of the system S= 1 over Gis a G-homomorphism φ:G[X]−→ Gsuch that S⊆ker(φ). Denote by ncl(S) the normal closure of Sin G[X], and by GSthe quotient group G[X] / ncl(S). Then every solution of S(X) = 1 in Ggives rise to a G- homomorphism GS→G, and vice versa. By VG(S) we denote the set of all solutions in Gof the system S= 1 and call it the algebraic set defined by S. Normal subgroup of G[X] of the form R(S) = {T(X)∈G[X]| ∀A∈Gn(S(A) = 1 →T(A) = 1)} 8 M. CASALS-RUIZ AND I. KAZACHKOV is called the radical of the system S. Note that S⊆R(S). There exists a one-to-one correspondence between algebraic sets VG(S) of systems of equations in G[X] and radical subgroups. The quotient group GR(S)=G[X] / R(S) is called the coordinate group of the algebraic set VG(S), and every solution of S(X) = 1 in Gis a G-homomorphism GR(S)→G. AG-group His called G-equationally Noetherian if every system S(X) = 1 with coefficients from Gis equivalent over Gto a finite subsystem S0= 1, where S0⊂S, i.e. the systems Sand S0define the same algebraic set. If Gis G-equationally Noetherian, then we say that Gis equationally Noetherian. If a G-group His equationally Noetherian every algebraic set Vin Gnis a finite union of irreducible components of V. Let Hand Kbe G-groups. We say that a family of G-homomorphisms F ⊂ HomG(H, K)G-separates (G-discriminates)Hinto Kif for every nontrivial element h∈H(every finite set of non-trivial elements H0⊂H) there exists φ∈ F such that hφ6= 1 (hφ6= 1 for every h∈H0). In this case we say that His G-separated (G-discriminated) by K. In the case that G= 1, we simply say that His separated (discriminated) by K. AG-group His called a G-domain if for any x, y 6= 1 there exists g∈G such that [x, yg]6= 1. In the case that Gis G-domain, we say that Gis a domain. 3. Van Kampen Diagrams In this section we present some preliminary results on Van Kampen diagrams. We refer the reader to [3] and [27] for a more detailed account on van Kampen diagrams. Our aim here is to review some basic notions and techniques and apply them to the particular case of partially commutative groups. 3.1. Van Kampen Diagrams in Partially Commutative Groups. By van Kampen’s Lemma (see [3]) the word wrepresents the trivial element in a fixed group Ggiven by the presentation hA|RAiif and only if there exists a finite connected, oriented, based, labeled, planar graph Dwhere each oriented edge is labeled by a letter in A±1, each bounded region (cell) of R2\ D is labeled by a word in RA(up to shifting cyclically or taking inverses) and wcan be read on the boundary of the unbounded region of R2\D from the base vertex. Then we say that Dis a van Kampen diagram for the boundary word wover the presentation hA|RAi. If w=uv−1=G1 we say that Dis a van Kampen diagram realising the equality u=v. In ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 9 the event that a van Kampen diagram Drealises the equality w=wwe say that Dis a geodesic van Kampen diagram for w. Any van Kampen diagram can also be viewed as a 2-complex, with a 2-cell attached for each bounded region (see Figure 1). We shall further restrict our considerations to the case when Gis a partially commutative group. Following monograph [27], if we complete the set of defining relations adding the trivial relations 1·a=a·1 for all a∈A, then every van Kampen diagram can be transformed so that its boundary is a simple curve. In other words, as a 2-complex the van Kampen diagram is homeomorphic to a disc tiled by cells which are also homeomorphic to a disc (see Figure 1). We further assume that all van Kampen diagrams are of this form. base point c a a b b c a a b b cc a a b b 1 1 1 1 1 1 base point Figure 1. van Kampen diagram and non-singular van Kampen diagram for w=caba−1b−1c−1over ha, b, c|[a, b] = 1i. Let Dbe a van Kampen diagram for the boundary word w. Given an occurrence ain w, there is a cell Cin the 2-complex Dattached to a. Since every cell in a van Kampen diagram is either labelled by a relation of the form a−1b−1ab or is a so-called 0-cell, i.e. a cell labelled by 1·a=a·1, there is just one occurrence of aand one occurrence of a−1on the boundary of C. Since Dis homeomorphic to a disc, if the occurrence of a−1on the boundary of Cis not on the boundary of D, there exists a unique cell C06=C attached to this occurrence of a−1in D. Repeating this process, we obtain a unique band in D. 16 M. CASALS-RUIZ AND I. KAZACHKOV Remark 2.Note that the equality diam(∆(G)) = cdim(G) can be attained. Set Gto be, for example, the partially commutative group whose noncommutation graph is a path with an odd number of vertices. Given two geodesic words w, v ∈G, if the product wv is again geodesic we write w◦v. Let g∈Gbe a geodesic word. We refer to the decomposition g=g1◦g2◦g−1 1, where g2is cyclically reduced as the cyclic decomposition of g. Given a word gnwe write g(i)when we refer to the i-th factor gin the product gn=g···g. Similarly, given an occurrence ain gwe write a(i), 1≤i≤nto indicate that the occurrence ais in g(i). Lemma 4.4. Let g,z∈Gbe geodesic and g=g1ag2,a∈A±1. Let Dbe a geodesic van Kampen diagram for gz. If the occurrence adoes not cancel, neither does any occurrence bin g1that belongs to adj(a). Proof. If adoes not cancel, the band Lawith an end in ahas the other end in gz. Then, for any b∈g1that cancels, the correspondent band Lbhas one end in band the other in an occurrence b−1in z. Hence the band Lb crosses the band La. By Remark 1, b6=aand [b, a] = 1, so b /∈adj(a). ¤ Corollary 4.5. Let g, z ∈Gbe geodesic and let g=g1ag2be a cyclically reduced block, a∈A±1. Let Dbe a geodesic van Kampen diagram for zg=gzg−1. If the occurrences ain gand the corresponding occurrence a−1 in g−1do not cancel, then neither does any occurrence bin g1,b∈adj(a), and the corresponding occurrence b−1in g−1 1. Corollary 4.6. Let g,z∈Gbe geodesic and let gbe a cyclically reduced block. Let Dbe a geodesic van Kampen diagram for gz. If there exists an occurrence ain gthat does not cancel, then gcdim(G)+1z=g◦z0, i.e. no occurrence in g(1) cancels. Proof. Let abe an occurrence of gthat does not cancel in gz. Since gcdim(G)+1 is geodesic, the occurrence a(cdim(G)+1) in g(cdim(G)+1) does not cancel. Since gis a block, by definition, the graph ∆(α(g)) is connected, i.e. the subgroup generated by α(g) is a directly indecomposable partially commutative group. Thus, applying Lemma 4.3 to this subgroup and using the fact that the centraliser dimension of hα(g)iis less or equals the centraliser dimension of G(see [12]) we get that adj(a)cdim(G) ∆(α(g)) =α(g). Recursively applying Lemma 4.4, we get that no occurrence in g(i)that belongs to adj((cdim(G)+1)−i) ∆(α(g)) (a) cancels. Therefore, no occurrence from g(1) cancels in gcdim(G)+1z.¤ ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 17 Corollary 4.7. Let g,z∈Gbe geodesic and let gbe a cyclically reduced block. Let Dbe a geodesic van Kampen diagram for zg=gzg−1. If there exists an occurrence ain g, such that aand the corresponding occurrence a−1in g−1do not cancel, then z(gcdim(G)+1)=g◦z0◦g−1. Proof. The proof is analogous to the one of Corollary 4.6 ¤ Definition 4.8. Let z∈Gbe a cyclically reduced word and g∈Gbe so that z=g−1◦z1(in the terminology of [15], g−1is called a left-divisor of z). We say that the word gzg−1=z1g−1is a cyclic permutation of z. Conjugating a cyclically reduced word zone gets a conjugation of a cyclic permutation of z. In particular, all letters of zappear in a geodesic zgfor any g∈G. A more precise description is given in the following lemma. Lemma 4.9. Let z, g ∈Gand let zbe cyclically reduced. Then there exist decompositions: g=g0z2z1−1, z =z1z3z2,where [z1, z2] = 1, such that zg=h◦z2z3z1◦h−1,his a left-divisor of g0(perhaps trivial)and z2z3z1is a cyclic permutation of z. Proof. Let z1be the maximal (where maximum is taken over all geodesic words representing gand z) common initial subword of zand g−1, i.e. z=z1z0 1,g=g1z−1 1. Note that such z1exists and is well-defined, in [15] the authors call it the left greatest common divisor of zand g−1. Similarly, let z2be the right greatest common divisor of zand g, i.e. z=z0 2z2, g=g2z2. Then z−1 1and z2are both right divisors of g. Let dbe the right greatest common divisor of z−1 1and z2. By Proposition 3.18 of [15], z−1 1=d1d,z2=d2dand g=g0d2d1−1d, where α(d1)∩α(d2) = ∅and [α(d1),α(d2)] = 1. Since zis cyclically reduced, it follows that d= 1. Hence, z−1 1=d1,z−1 2=d2and the lemma follows. ¤ In general, let z=w1w2w−1 1be the cyclic decomposition of z∈G. Then all the letters from w2appear in the geodesic zgfor any g∈G. Indeed, we think of zgas conjugating a cyclically reduced element w2by an element g00 ∈G. Lemma 4.10. Let z, g ∈G, let zbe cyclically reduced, gbe a block and let [z, g]6= 1. Furthermore, suppose that g−1does not left-divide zand z−1. Then zg=gzg−1=g1◦z0◦g−1 1, where g16= 1 is a left-divisor of g, i. e. there exist occurrences lin gand, correspondingly, l−1in g−1that do not cancel. 18 M. CASALS-RUIZ AND I. KAZACHKOV Proof. Assume the contrary, then, in the notation of Lemma 4.9, z1z3z2g= z2z3z1. By and in the notation of Corollary 3.3, we can write g,zand g−1 as follows: g=v1w3 1w2 1,z=w1 2v2w3 2,g−1=w2 3w1 3v3. By construction of z1,z2,z3and g1(see proof of Lemma 4.9) it follows that z2=w1 2,z3=v2, z1=w3 2and g=z2g1z−1 1,z=z1z3z2,g−1=z−1 2g−1 1z1. If g1= 1, then g=z1z2is not a block element by Lemma 4.9. We now assume that g16= 1. Equating the two expressions for gwe get z2g1z−1 1= (z−1 2g−1 1z1)−1=z−1 1g1z2, hence [g1, z1z2] = 1. Since z1z2=z1◦z2and [z1, z2] = 1, by Theorem 2.3 we get [g1, z1] = [g1, z2] = 1. Then gis not a block element – a contradiction. ¤ We now record some basic properties of A(w) which we shall use later. Given x, y ∈Gthe following hold: (A) x∈A(y) if and only if y∈A(x); (B) if α(x)⊂α(y) then A(y)<A(x); (C) if the centraliser of xis cyclic then A(x) = 1. Lemma 4.11. Let g∈Gbe a cyclically reduced block and let z=z1z2z−1 1 be the cyclic decomposition of an element z∈G. Suppose that g−1does not left-divide z,z−1,z2and z−1 2, and [g, z]6= 1. Then one has zg2 cdim(G)+2 = g◦zg2 cdim(G)+1 ◦g−1. Proof. Consider the product g(cdim(G)+1)z1, then no occurrence in g(1) cancels. Indeed, since gdoes not left-divide z−1, there is an occurrence in gthat does not cancel in gz1. Applying Corollary 4.6, we get that no occurrence in g(1) cancels in g(cdim(G)+1)z1. We thereby get g(cdim(G)+1)z1=g◦g0◦z0 1, where z0 1is a right-divisor (may be trivial) of z1and g0is a left-divisor of gcdim(G). Notice that since α(g0)⊂α(g) and gis a block, we get on the one hand that gg0is a block and on the other that for any occurrence ain g0there exists an occurrence bin gsuch that b∈adj(a). If [z0 1, g]6= 1 (or [z0 1, g0]6= 1) then there exists an occurrence ain g(or in g0) that belongs to adj(α(z0 1)). Since no occurrence in z0 1and in z0 1 −1 cancels in zgg0z0 1 2, by Corollary 4.5 neither does the occurrence ain g(or in g0), and, correspondingly a−1in g−1(or in g0−1). If ais an occurrence in g0, then there exists an occurrence bin gthat belongs to adj(a), and so by Corollary 4.5 this occurrence bin gand the corresponding occurrence b−1 in g−1do not cancel. Hence, in any case, there exists an occurrence in g ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 19 that does not cancel in ³(z2)g0z0 1´g. Therefore, by Corollary 4.7 we get that ³(z2)g0z0 1´(gcdim(G)+1)=g◦z0 2◦g−1 and thus zg(2 cdim(G)+1) =³(z2)g(cdim(G)+1)z1´(gcdim(G)) =g◦zg2 cdim(G)◦g−1. Assume now that [z0 1, g] = 1 and [z0 1, g0] = 1. If [gg0, z2]6= 1 or [g2g0, z2]6= 1, since gg0(correspondingly, g2g0) is a block, by Lemma 4.10, there exists an occurrence ain gg0(in g2g0, correspondingly), such that a and the occurrence a−1in (gg0)−1(in (g2g0)−1) do not cancel in zgg0 2(in z(g2g0) 2). If ais an occurrence in g0, then there exists an occurrence bin g (in g2) that belongs to adj(a), and thus by Corollary 4.5 this occurrence b in g(in g2) and the corresponding occurrence b−1in g−1(in g−2) do not cancel. Now, by Corollary 4.7 we get ³zg0 2´g(cdim(G)+2) =g◦z0 2◦g−1 and thus zg(2 cdim(G)+2) =³(z2)g(cdim(G)+2)z1´(gcdim(G)) =³(z2)g2g0z0 1´(gcdim(G))= =µ³(z2)g0´(gcdim(G)+2)¶z0 1 =g◦zg2 cdim(G)+1 ◦g−1. Finally, suppose that [z0 1, g] = 1, [z0 1, g0] = 1, [gg0, z2] = 1 and [g2g0, z2] = 1. We have gcdim(G)+2 =g2◦g0◦d,z1=d−1◦z0 1. If g0∈ h√gi, then d∈ h√giand so [d, z0 1] = [d, z2] = 1. This derives a contradiction with the assumption that z=zd−1z0 1 2is geodesic. Thus, we may assume that g0/∈ h√gi. In this case since α(g0)⊆α(g), [g, g0]6= 1 and gis a block, by Theorem 2.3, from [g, z0 1]=[g0, z0 1] = 1 follows that α(g)⊂A(z0 1) and from [gg0, z2] = [g2g0, z2] = 1 follows that α(g)⊂A(z2). Since α(d)⊆α(g), we have [d, z0 1]=[d, z2] = 1 – a contradiction with the assumption that z=zd−1z0 1 2is geodesic. ¤ Remark 3.A more subtle argument shows that the exponent 2 cdim(G) +2 in Lemma 4.11 can be replaced by cdim(G). Corollary 4.12. Let g∈Ghave cyclic centraliser. Then for any element z∈Gsuch that g−1does not left-divide z,z−1,z2and z−1 2, one has A(z(g2 cdim(G)+2)) = 1. 20 M. CASALS-RUIZ AND I. KAZACHKOV Proof. Let g=g1g2g−1 1be the cyclic decomposition of g. We prove that no occurrence of g(1) 2cancels in z(g2 cdim(G)+2), therefore, by properties (B) and (C) of A, we get A(z(g2 cdim(G)+2))⊆A(g2) = 1. By Lemma 4.11, no occurrence in g(1) 2cancels in (zg1 −1)  g2 cdim(G)+2 2  . Then, since z(g2 cdim(G)+2)=ózg1 −1´g2 cdim(G)+2 2!g1 , no occurrence in g(1) 2cancels. ¤ Corollary 4.13. Let g∈Ghave cyclic centraliser. Then for any element z∈Gsuch that A(z)6= 1 one has A(z(g2 cdim(G)+2)) = 1. Proof. If g−1left-divides z±1or z±1 2, by property (B) of A, we get that A(z)⊂A(g) = 1. ¤ Remark 4.In Lemma 4.11, Corollary 4.12 and Corollary 4.13 we impose the condition that g−1does not left-divide z,z−1,z2and z−1 2, because we seek the bound 2 cdim(G) + 2 on the number of times one has to conjugate zby g. The reason for this is that the notion of centraliser dimension is axiomatisable using (existential) first-order formulas, [12] (we refer the reader to Section 6 for consequences of this result). If one does not impose this condition, Lemma 4.11 could be rephrased as follows. Lemma. Let g∈Gbe a cyclically reduced block, then for any element z∈G there exists N∈Nsuch that z(gN)=g◦z(gN−1)◦g−1. 4.2. Criterion to be a Domain. Proposition 4.14. Let Gbe a non-abelian directly indecomposable partially commutative group. Let g∈Ghave cyclic centraliser, x, y ∈G,x, y 6= 1 be such that [x, y] = 1 and [x, y(g2 cdim(G)+2)] = 1. Then C(x) = C(y) = C(g). Proof. Let x=wxr1 1. . . xrk kw−1, where x1, . . . , xkare cyclically reduced root elements such that xr1 1, . . . , xrk kare the blocks of xw−1and r1, . . . , rk∈Z. Since [x, y] = 1, by Theorem 2.3, after a certain re-enumeration of indices, we may assume (3) y=wxs1 1. . . xsl lzw−1, where z∈A(x1. . . xk), 0 ≤l≤kand s1, . . . , sl∈Z. Thus, (4) y(g2 cdim(G)+2)=g2 cdim(G)+2wxs1 1. . . xsl lzw−1g−(2 cdim(G)+2). ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 21 Since [x, y(g2 cdim(G)+2)] = 1 applying Theorem 2.3 once again, we get (5) y(g2 cdim(G)+2)=wxt1 i1. . . xtm imz0w−1, where z0∈A(x1. . . xk), 0 ≤m≤kand t1, . . . , tm∈Z. Equating (4) and (5), we get (6) (xs1 1. . . xsl lz)w−1g2 cdim(G)+2w=xt1 i1. . . xtm imz0. Suppose that l≥1. Then by Corollary 2.2, l=mand for any q∈ {1, . . . , l} there exists j∈ {1, . . . , m}such that α(xq) = α(xij), sq=tjand xqis conjugated to xijby w−1g2 cdim(G)+2w. Since α(xq) = α(xij), and since xqand xijare cyclically reduced root elements whose powers xsq qand xtj ijare blocks of the same word x(w−1), we get that xq=xijfor all 1 ≤q≤l, i.e. yw−1and (y(g2 cdim(G)+2))w−1 have the same blocks. From the above it follows that xw−1g2 cdim(G)+2w q=xij=xq, i. e. xqcommutes with w−1g2 cdim(G)+2w. Since the centraliser of gis cyclic, so is the centraliser of w−1g2 cdim(G)+2wand thus, so is the centraliser of xq. More precisely, C(xq) = C(g2 cdim(G)+2)w−1 =C(g)w−1. Since xqhas cyclic centraliser, xw−1and yw−1both have a unique block; furthermore, since z∈A(xq) by property (A) of A,zis trivial. Therefore, x=y= (xrq q)wand so C(x) = C(y) = C(xq)w=C(g). Suppose next that l= 0. We prove then that xis trivial contradicting the assumption. Equations (3) and (6) rewrite as follows y=wzw−1and z0=zw−1g2 cdim(G)+2w. Notice that since z, z0∈A(x1. . . xk) by property (C) of Awe get that x1, . . . , xk∈A(z)∩A(z0). Therefore, if either A(z) or A(z0) is trivial, so is x. Assume A(z) is non-trivial. Since the centraliser of w−1gw is cyclic, Corollary 4.13 applies to z0=z((w−1gw)2 cdim(G)+2), thus A(z0) = 1 and so x= 1. ¤ Corollary 4.15. Let Gbe a non-abelian directly indecomposable partially commutative group. Let a, b ∈Gbe elements with cyclic centralisers and such that C(a)∩C(b) = 1. Then for any solution x, y ∈Gof the system [x, y] = 1,[x, y(a2 cdim(G)+2)] = 1,[x, y(b2 cdim(G)+2)] = 1, either x= 1 or y= 1. 22 M. CASALS-RUIZ AND I. KAZACHKOV Proof. Applying Proposition 4.14 for the triples x, y, a and x, y, b we get that if x6= 1 and y6= 1, then C(x) = C(y) = C(a) and C(x) = C(y) = C(b) – a contradiction with C(a)∩C(b) = 1. Note, that the elements aand bsatisfying the assumption of the corollary exist (it suffices to take two distinct block elements such that [a, b]6= 1 and α(a),α(b) = A). ¤ Theorem 4.16 (Criterion for a partially commutative group to be a domain). A partially commutative group Gis a domain if and if Gis non-abelian and directly indecomposable. Proof. Since the direct product of two non-abelian groups is never a domain, see [1, 18], the result follows immediately from Corollary 4.15. ¤ Note that Corollary 4.15 shows in fact that any non-abelian directly indecomposable partially commutative group is a domain with respect to only two elements a2 cdim(G)+2 and b2 cdim(G)+2 which are independent of the choice of xand y(in the notation of the definition of domain). Theorem 4.17. Let Gbe a non-abelian directly indecomposable partially commutative group. Then G[X]is G-discriminated by G. Proof. The group G[X] is a non-abelian directly indecomposable partially commutative G-group, thus by Theorem 4.16, G[X] is a domain. By Theorem C1 from [2], it suffices to prove that G[X] is G-separated by G. Without loss of generality, we may assume that X={x}. Take an element w∈G[X], w=g1xk1g2···glxklgl+1, where gi∈G,g2, . . . , gl6= 1. Take a∈Gsuch that asatisfies the assumptions of Lemma 4.11. Consider the homomorphism ϕa:G[X]→G, defined by x7→ a4 cdim(G)+5. By Lemma 4.11, ϕa(xkigi+1xki+1 ) = aki·(2 cdim(G)+3) ◦g0 i+1 ◦aki+1·(2 cdim(G)+3). Therefore it follows (by induction on the length of w) that ϕa(w)6= 1. ¤ Corollary 4.18. Let Gbe a non-abelian directly indecomposable partially commutative group. Then the group G[X]is universally equivalent to G (both in the language of groups and in the language LGenriched by constants from G). Proof. Follows from Theorem C2 in [1]. ¤ Corollary 4.19. Let Gbe a non-abelian directly indecomposable partially commutative group. Then G|=∀X(U(X) = 1) ⇔G[X]|=U(X) = 1, i.e. only the trivial equation has the whole set Gnas its solution. ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 23 Proof. Since G[X] is G-discriminated by G, if the word U(X) is a non-trivial element of G[X], then there exists a G-homomorphism φ:G[X]→Gsuch that Uφ6= 1. Then U(Xφ)6= 1 in G– a contradiction. ¤ 5. Applications to Algebraic Geometry The results and exposition of this section rely on paper [18]. We recall here some necessary definitions and restate some results in the case of partially commutative groups. We refer the reader to [18] for details and omitted proofs. Agroup code Cis a set of formulas (7) C={U(X, P), E(X, Y, P),Mult(X, Y, Z, P),Inv(X, Y, P)} where X, Y, Z, P are tuples of variables with |X|=|Y|=|Z|. If P=∅then Cis called an absolute code or 0-code. Let Cbe a group code, Hbe a group, and Bbe an |P|-tuple of elements in H. We say that C(with parameters B)interprets a group C(H, B) in Hif the following conditions hold: 1) the truth set U(H, B) in Hof the formula U(X, B) (with parameters B) is non-empty; 2) the truth set of the formula E(X, Y, B) (with parameters B) defines an equivalence relation ∼Bon U(H, B); 3) the formulas Mult(X, Y, Z, B) and Inv(X, Y, B) define, correspondingly, a binary operation (Z=Z(X, Y )) and a unary operation (Y=Y(X)) on the set U(H, B) compatible with the equivalence relation ∼B; 4) the set of equivalence classes U(H, B) / ∼Bforms a group with respect to the operations defined by Mult(X, Y, Z, B) and Inv(X, Y, B). We denote this group by C(H, B). We say that a group Gis interpretable (or definable) in a group Hif there exists a group code Cand a set of parameters B⊂Hsuch that G≃C(H, B). If Cis 0-code then Gis absolutely or 0-interpretable in H. The following two types of interpretations are crucial. Let Gbe a definable subgroup of a group H, i.e., there exists a formula U(x, P ) and a set of parameters B⊂Hsuch that G={g∈H|H|=U(g, B)}. Then Gis interpretable in Hby the code CG={U(x, P), x =y, xy =z, y =x−1} 24 M. CASALS-RUIZ AND I. KAZACHKOV with parameters B. If in addition Gis a normal subgroup of Hthen the code CH/G ={x=x, ∃v(x=yv ∧U(v, P)), z =xy, y =x−1} interprets the factor-group H/ Gin Hwith parameters B. Every group code (7) determines a translation TCwhich is a map from the set of all formulas FLin the language Linto itself. We define TCby induction as follows: 1) TC(x=y) = E(X, Y, P); 2) TC(xy =z) = Mult(X, Y, Z, P) and TC(x−1=y) = Inv(X, Y, P); 3) if φ, ψ ∈ FLand ◦ ∈ {∧,∨,→} then TC(φ◦ψ) = TC(φ)◦Tc(ψ)and TC(¬φ) = ¬TC(φ); 4) if φ∈ FLthen TC(∃xφ(x)) = ∃X(U(X, P)∧TC(φ)), TC(∀xφ(x)) = ∀X(U(X, P)→TC(φ)). Observe, that the formula TC(φ) can be constructed effectively from φ. Any partially commutative group is a direct product of finitely many non-abelian directly indecomposable partially commutative groups and its centre Z(G), Z(G)≃Zk,k∈N. This decomposition is unique up to a permutation of factors. We refer to them as (direct) components of G. The centre Z(G) is a normal subgroup and a definable subset of G. It is the truth set of the following formula ΦZ(x) : ∀y[x, y] = 1, thus Z(G) is 0-interpretable in G. Consequently, as shown above, the quotient G / Z(G)is interpretable in G. Therefore, to work with partially commutative groups from modeltheoretic viewpoint, it suffices to consider free partially commutative groups with the trivial centre. Let Gbe a partially commutative group without centre. As mentioned above, in this event Gis a direct product of directly indecomposable partially-commutative groups, which, in turn are domains by Theorem 4.16. Thus Theorem A and Corollary A of [18] apply and can be restated as follows. Theorem A (cf. [18]).Let Gbe a partially commutative group with trivial centre. Then for each component Giof Gits elementary theory Th(Gi)is interpretable in the group G. Corollary A (cf. [18]).Let Gbe a partially commutative group and let G=G1×···×Gn×Zr, where Giis a non-abelian directly indecomposable partially commutative group, i= 1, . . . , n. Then the following hold: ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 25 1) If G≡Hthen His also a finite direct product of domains and the centre Z(H), and if G=G1×. . . ×Gn×Zr, H =H1×. . . ×Hm×Z(H); are the corresponding decompositions for Gand H, then n=m, Z(H)≡Zrand Gi≡Hi(after suitable re-ordering of the factors); 2) Th(G)is decidable if and only if Th(Gi)is decidable for every i= 1, . . . , n. Theorem B ([18]).Let Hbe a minimal subdirect product of domains. Then the elementary theory of each component of His interpretable in the group H. Corollary B ([18]).Let Hbe a minimal subdirect product of kdomains and H ,→G1×...×Gk be its minimal component decomposition. Then the following hold: 1) if Th(H)is decidable then Th(Gi)is decidable for every i= 1, . . . , k; 2) if Th(H)is λ-stable then Th(Gi)is λ-stable for every i= 1, . . . , k. Theorem 5.1. Let Gbe a directly indecomposable partially commutative group, and Ybe an algebraic set over G. Then the following conditions hold: 1) the coordinate group Γ(Yi)of each irreducible component Yiof Y is interpretable in the group Γ(Y); 2) the elementary theory Th(Γ(Yi)) of each irreducible component Yi of Yis interpretable in the group Γ(Y). Proof. Partially commutative groups are linear (see [20, 19]), thus equationally Noetherian (see [1]). We, therefore, can decompose Yas a finite union of irreducible algebraic sets, Y=Y1∪···∪Yk, see Corollary 12 in [1]. By Proposition 12, [1] the coordinate group Γ(Y) is a minimal subdirect product of the coordinate groups Γ(Y1),...,Γ(Yk). Every group Γ(Yi), being a coordinate group of an irreducible algebraic set over a domain is again a domain by Theorem D2 in [1]. Now 1), 2) follow from Theorem B. ¤ Corollary 5.2. Let Gbe a directly indecomposable partially commutative group. (i) If Y=Y1∪ ··· ∪ Ykis an algebraic set over G, where Y1, . . . , Yk are the irreducible components of Y, then the elementary theory of Γ(Y)is decidable if and only if the elementary theory of Γ(Yi)is decidable for all i= 1, . . . , k. 32 M. CASALS-RUIZ AND I. KAZACHKOV (i) If a generalised equation Ωhas a solution then Ωis formally consistent; (ii) There is an algorithm to verify whether a given generalised equation is formally consistent or not. Remark 8.We further consider only formally consistent generalised equations. 7.2. Reduction to generalised equations. Similarly to the case of free groups, we now show how for a given finite system of equations S(X, A) = 1 over a partially commutative group Gone can associate a finite collection of generalised equations GE(S) with constants from A±1. The collection GE(S) to some extent describes all solutions of the system S(X, A) = 1. Write {S(X, A) = 1}={S1= 1, . . . , Sm= 1}in the form (11) r11r12 . . . r1l1= 1, r21r22 . . . r2l2= 1, . . . rm1rm2. . . rmlm= 1, where rij are letters of the alphabet X±1∪A±1. Apartition table T= (V, Γ) of the system above is a pair (a set of geodesic words, a partially commutative group) V={Vij(z1, . . . , zp)}(1 ≤i≤m, 1≤j≤li),Γ = G(A∪Z), where Vij ∈G∗F(Z) = G[Z], in Γ = G(A∪Z) some of the letters in Z={z1, . . . , zp}commute, and the following conditions are satisfied: 1) The equality Vi1Vi2. . . Vili= 1,1≤i≤m, holds in Γ; 2) |Vij| ≤ li−1; 3) if rij =a∈A±1, then Vij =a. Since |Vij| ≤ li−1 then at most |S|=Pm i=1(li−1)lidifferent letters zican occur in a partition table of S(X, A) = 1. Therefore we will always assume that p≤ |S|. Each partition table encodes a particular type of cancelation that happens when one substitutes a particular solution W(A)∈G(A) into S(X, A) = 1 and then reduces (in a certain way) the words in S(W(A), A) into the empty word. Lemma 7.5. Let S(X, A)=1be a finite system of equations over F(A). Then (i) the set PT (S)of all partition tables of S(X, A)=1is finite, and its cardinality is bounded by a number which depends only on |S(X, A)|; (ii) one can effectively enumerate the set PT(S). ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 33 Proof. Since the words Vij have bounded length, one can effectively enumerate the finite set of all collections of words {Vij}in G[Z] which satisfy the conditions 2), 3) above. Now for each such collection {Vij}, one can effectively check whether the equalities Vi1Vi2. . . Vili= 1,1≤i≤mhold in one of the finitely many (since |Z|<∞) partially commutative groups Γ or not. This allows one to list effectively all partition tables for S(X, A) = 1. ¤ To each partition table T={Vij}one can assign a generalised equation ΩTin the following way (below we use ‘ . =’ for graphical equality). Consider the following word Vin M(A±1∪Z±1): V. =V11V12 . . . V1l1. . . Vm1Vm2. . . Vmlm=y1. . . yρ, where yi∈A±1∪Z±1and ρ=l(V) is the length of V. Then the generalised equation ΩT= ΩT(h) has ρ+1 boundaries and ρvariables h1, . . . , hρwhich are denoted by h= (h1, . . . , hρ). Now we define bases of ΩTand the functions α, β, ε. Let z∈Z. For any two distinct occurrences of zin V: yi=zεi, yj=zεj(εi, εj∈ {1,−1}) we introduce a pair of dual variable bases µz,i, µz,j such that ∆(µz,i) = µz,j (say, if i < j). Put α(µz,i) = i, β(µz,i) = i+ 1, ²(µz,i) = εi. The basic equation that corresponds to this pair of dual bases is hεi i . =hεj j. Let x∈X. For any two distinct occurrences of xin S(X, A) = 1: ri,j =xεij , rs,t =xεst (εij, εst ∈ {1,−1}) we introduce a pair of dual bases µx,i,j and µx,s,t such that ∆(µx,i,j) = µx,s,t (say, if (i, j)<(s, t) in the left lexicographic order). Now let Vij occurs in the word Vas a subword Vij =yc. . . yd. Then we put α(µx,i,j) = c, β(µx,i,j) = d+ 1, ²(µx,i,j) = εij . The basic equation which corresponds to these dual bases can be written in the form [hα(µx,i,j ). . . hβ(µx,i,j )−1]εij =G[hα(µx,s,t). . . hβ(µx,s,t)−1]εst . Let rij =a∈A±1. In this case we introduce a constant base µij with the label a. If Vij occurs in Vas Vij =yc, then we put α(µij) = c, β(µij) = c+ 1. The corresponding coefficient equation is written as hc=a. 34 M. CASALS-RUIZ AND I. KAZACHKOV This defines the generalised equation ΩT. Put GE(S) = {ΩT|Tis a partition table for S(X, A) = 1}. Then GE(S) is a finite collection of generalised equations which can be effectively constructed for a given S(X, A) = 1. For a generalised equation Ω we can also consider the same system of equations in a partially commutative group (not in the monoid). We denote this system by Ω∗. By GR(Ω) we denote the coordinate group of Ω∗. Now we explain relations between the coordinate groups of S(X, A) = 1 and of Ω∗ T. For a letter xin Xwe choose an arbitrary occurrence of xin S(X, A) = 1 as rij =xεij . Let µ=µx,i,j be the base that corresponds to this occurrence of x. Then Vij occurs in Vas the subword Vij =yα(µ). . . yβ(µ)−1. Define a word Px(h)∈G[h] (where h={h1, . . . , hρ}) as follows Px(h, A) = hα(µ). . . hεij β(µ)−1, and put P(h) = (Px1, . . . , Pxn). The tuple of words P(h) depends on the choice of occurrences of letters from Xin V. It follows from the construction above that the map X→G[h] defined by x→Px(h, A) gives rise to a G-homomorphism π:GR(S)→GR(ΩT). Observe that the image π(x) in GR(ΩT)does not depend on a particular choice of the occurrence of xin S(X, A) (the basic equations of ΩTmake these images equal). Hence πdepends only on ΩT. Thus, every solution of a generalised equation gives rise to a solution of Ω∗. To relate solutions of S(X, A) = 1 to solutions of generalised equations from GE(S) we need the technique developed in Section 3.2. Let W(A) be a solution of S(X, A) = 1 in G(A). If in the system (11) we make the substitution σ:X→W(A), then (ri1ri2. . . rili)σ=rσ i1rσ i2. . . rσ ili= 1 in G(A) for every i= 1, . . . , m. Since every product Ri=rσ i1rσ i2. . . rσ iliis trivial, we can choose a van Kampen diagram DRifor Ri. Denote by ˜z1, . . . , ˜zpthe subwords wk j, 1 ≤ ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 35 j < k ≤liof rσ ij, where here wk jare defined as in Lemma 3.2. Since, by Lemma 3.2 wk j=wj k −1, the word rij can be written as a word in ˜z1, . . . , ˜zp: rσ ij =Vij(˜z1, . . . , ˜zp) for some freely reduced words Vij(Z) in variables Z={z1, . . . , zp}. Observe that if rij =a∈A±1then rσ ij =aand we have Vij =a. By Lemma 3.2, rσ ij is a product of at most li−1 words wk j, we have l(Vij)≤li−1. Take a partially commutative group Γ = G(A∪Z) whose underlying commutation graph is defined as follows: •two elements ai, ajin A±1commute whenever they commute in G; •an element a∈A±1commutes with ziif and only if acommutes with the word wk jcorresponding to zi; •two elements zi, zj∈Zcommute whenever the corresponding words wk jdo. In the above notation, the set T={Vij}along with the group Γ is a partition table for S(X, A) = 1. Obviously, U(A) = (˜z1, . . . , ˜zp) is the solution of the generalised equation ΩT, which is induced by W(A). From the construction of the map P(h) we deduce that W(A) = P(U(A)). The converse is also true: if U(A) is an arbitrary solution of the generalised equation ΩT, then P(U(A)) is a solution of S(X, A) = 1. We summarize the discussion above in the following lemma. Lemma 7.6. For a given system of equations S(X, A) = 1 over G, one can effectively construct a finite set GE(S) = {ΩT|Tis a partition table for S(X, A) = 1} of generalised equations such that (i) if the set GE(S)is empty, then S(X, A) = 1 has no solutions in G; (ii) for each Ω(h)∈ GE(S)and for each x∈Xone can effectively find a word Px(h, A)∈G[h]of length at most |h|such that the map x:→Px(h, A) (x∈X)gives rise to a G-homomorphism πΩ:GR(S)→GR(Ω); (iii) for any solution W(A)∈Gnof the system S(X, A)=1there exists Ω(h)∈ GE(S)and a solution U(A)of Ω(h)such that W(A) = P(U(A)), where P(h) = (Px1, . . . , Pxn), and this equality holds in the partially commutative monoid T(A±1); (iv) for any G-group ˜ G, if a generalised equation Ω(h)∈ GE(S)has a solution ˜ Uin ˜ G, then P(˜ U)is a solution of S(X, A) = 1 in ˜ G. 36 M. CASALS-RUIZ AND I. KAZACHKOV Corollary 7.7. In the notation of Lemma 7.6 for any solution W(A)∈ Gn=G(A)nof the system S(X, A)=1there exists Ω(h)∈ GE(S)and a solution U(A)of Ω(h)such that the following diagram commutes GR(S)GR(Ω) G - ? © © © © © © © ©¼ πWπU π 7.3. Positive theory of partially commutative groups and direct product of groups. In this section we first prove a result on elimination of quantifiers for positive sentences over a non-abelian directly indecomposable partially commutative group G=G(A). This proof is based on the notion of a generalised equation. Combining this result with a theorem of V. Diekert and A. Muscholl on decidability of equations over partially commutative groups, see [9], we get that the positive theory of free partially commutative groups in the language of group theory Land the language LGenriched by constants is decidable. Note that V. Diekert and M. Lohrey, using a different method, prove a similar result in [7]. Furthermore, we apply the techniques developed for the proof of quantifier elimination to obtain a result on lifting arbitrary formulas from Gto G∗F, where Fis a free group of finite rank (see Theorem 7.12). In order to prove that the positive theory of any partially commutative group is decidable, we need to study the positive theory of the direct product of groups. In the appendix of the paper we prove that if G=H1×···×Hk, then the positive theory of Gin both languages Land LGis decidable if the positive theories of H1, . . . , Hkare decidable. Recall that every positive formula Ψ(Z) in the language LAis equivalent modulo ATto a formula of the type ∀x1∃y1. . . ∀xk∃yk(S(X, Y, Z, A) = 1), where S(X, Y, Z, A) = 1 is an equation with constants from A±1,X= (x1, . . . , xk), Y= (y1, . . . , yk), Z= (z1, . . . , zm). Indeed, one can insert auxiliary quantifiers to ensure the direct alteration of quantifiers in the prefix. In particular, every positive sentence in LAis equivalent moduloAT to a formula of the type ∀x1∃y1...∀xk∃yk(S(X, Y, A) = 1). Theorem 7.8 (Elimination of Quantifiers).If G|=∀x1∃y1. . . ∀xk∃yk(S(X, Y, A) = 1), then there exist words (with constants from G)q1(x1), . . . , qk(x1, . . . , xk)∈ G[X],such that G[X]|=S(x1, q1(x1), . . . , xk, qk(x1, . . . , xk, A)) = 1, ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 37 i.e. the equation S(x1, y1, . . . , xk, yk, A) = 1 (in variables Y)has a solution in the group G[X]. Proof. Let GE(u) = {Ω1(Z1), . . . , Ωr(Zr)}be generalised equations associated with the equation S(X, Y, A) = 1 in Lemma 7.6. Denote by ρi=|Zi| the number of variables in Ωi. Since the group Gis directly indecomposable, there exists a path pin the non-commutation graph ∆ of Gbeginning in a vertex b1which goes through every vertex of ∆ at least once. Denote by b1···bnthe label of the path p. Set b=b1b2···bn−1bnbn−1···b1, a =b2bb2=b2b1b2···bn−1bnbn−1···b2b1b2, and g1=bmam1,1bmam1,2b . . . am1,n1bm, where 0 < m1,1< m1,2< . . . < m1,n1, max{ρ1, . . . , ρr}|S(X, A)|< n1and m∈Nis a constant which depends only on the generalised equation. Then there exists h1such that G|=∀x2∃y2...∀xk∃yk(S(g1, h1, x2, y2, . . . , xk, yk) = 1). Suppose now that elements g1, h1, . . . gi−1, hi−1∈Gare given. We define (12) gi=bmami1bmami2bm. . . aminibm such that 1) 0< mi1< mi2< . . . mini; 2) max{ρ1, . . . , ρr}|S(X, A)|< ni; 3) no subword of the type bmamij bmoccurs in any of the words gl, l < i and in any of the (finitely many) words h0 lsuch that h0 l=hl in the partially commutative monoid, l < i. Then there exists an element hi∈Gsuch that G|=∀xi+1∃yi+1 ...∀xk∃yk(S(g1, h1, . . . , gi, hi, xi+1, yi+1, . . . , xk, yk) = 1). By induction we have constructed elements g1, h1, . . . , gk, hk∈Gsuch that S(g1, h1, . . . , gk, hk) = 1 and each gihas the form (12) and satisfies conditions 1), 2), 3). By Lemma 7.6 there exists a generalised equation Ω(Z)∈ GE(S), words Pi(Z, A), Qi(Z, A)∈G[Z] (i= 1, . . . , k) of length lower than ρ=|Z|, and a solution U= (u1, . . . , uρ) of Ω(Z) in Gsuch that the following words are equal in the partially commutative monoid: gi=Pi(U), hi=Qi(U) (i= 1, . . . , k). 38 M. CASALS-RUIZ AND I. KAZACHKOV Notice that from the definition of aand bit follows that no two consecutive letters in aand b, and thus in gicommute. Therefore, the equality gi= Pi(U) is graphical. Since ni> ρ|S(X, A)|(by condition 2)) and Pi(U) = y1. . . yqwith yi∈ U±1, q ≤ρ, the graphical equalities (13) gi=bami1bami2b . . . aminib=Pi(U) (i= 1, . . . , k) show that there exists a subword vi=bmamij bmof gisuch that every occurrence of this subword in (13) is an occurrence inside some u±1 j. For each ifix such a subword vi=bmamij bmin gi. In view of condition 3) the word vidoes not occur in any of the words gj(j6=i), hs(s < i), moreover, in giit occurs precisely once. Denote by j(i) the unique index such that vi occurs inside u±1 j(i)in Pi(U) from (13) (and vioccurs in it precisely once). The argument above shows that the variable zj(i)does not occur in words Pt(Z, A) (t6=i), Qs(Z, A) (s < i). Moreover, in Pi(Z) it occurs precisely once. It follows that the variable zj(i)in the generalised equation Ω(Z) does not occur neither in coefficient equations nor in basic equations corresponding to the dual bases related to xt(t6=i), ys(s < i). We “mark” (or select) the unique occurrence of vi(as v±1 i) in uj(i)i= 1, . . . , k. Now we are going to mark some other occurrences of viin the words u1, . . . , uρas follows. Suppose that some udhas a marked occurrence of some vi. If Ω contains an equation of the type zε d=zδ r, then uε d=uδ rgraphically. Hence urhas an occurrence of the subword v±1 iwhich corresponds to the marked occurrence of v±1 iin ud. We mark this occurrence of v±1 iin ur. Suppose Ω contains an equation of the type [hα1. . . hβ1−1]ε1= [hα2. . . hβ2−1]ε2 such that zdoccurs in it, say in the left-hand side of the equality. Then [uα1. . . uβ1−1]ε1= [uα2. . . uβ2−1]ε2 in the partially commutative monoid T(A±1). Since v±1 iis a subword of ud, a subword vi,1=bm−1ami,j bm−1occurs also in the right-hand side of the above equality, say in ur. Indeed, let w1bmami,j bmw2=win the monoid T(A±1). Since for any letter lin wk,k= 1,2 there exists a letter l0in bsuch that [l, l0]6= 1 and since, by the definition of aand b, no two consecutive occurrences in bm−1ami,j bm−1commute, the statement follows. We mark this occurrence of v±1 i,1in urand in all the previously marked occurrences of v±1 i=bvi,1b. We continue the marking process, but now, instead of viwe mark the occurrences of vi,1. The marking process stops in finitely many steps and all the occurrences of the subword vi,k =bm−kami,j bm−k ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 39 are marked. For the above argument, it suffices to choose m>k, which depends on the generalised equation only. Now in all words u1, . . . , uρwe replace every marked occurrence of vi,k =bm−kamij bm−kwith a new word bm−kamij xibm−kfrom the group G[X]. Denote the resulting words from G[X] by ˜u1, . . . , ˜uρ. It follows from description of the marking process that the tuple ˜ U= (˜u1, . . . , ˜uρ) is a solution of the generalised equation Ω in G[X]. Indeed, all the equations in Ω hold in the partially commutative monoid if we substitute ziby ui. Hence the substitution ui→˜uistill makes them equal. Now by Lemma 7.6, X=P(˜ U), Y =Q(˜ U) is a solution of the equation S(X, A) = 1 over G[X] as desired. ¤ Corollary 7.9. There is an algorithm which for a given positive sentence ∀x1∃y1. . . ∀xk∃yk(S(X, Y, A) = 1) in LAdetermines whether or not this formula holds in G, and if it does, the algorithm finds words q1(x1), . . . , qk(x1, . . . , xk)∈G[X] such that G[X]|=u(x1, q1(x1), . . . , xk, qk(x1, . . . , xk)) = 1, i.e. the positive theory of any directly-indecomposable partially commutative group is decidable. Proof. The proof follows from Theorem 7.8 and decidability of equations over free partially commutative groups. Indeed, since the compatibility problem for a system of equations over a partially commutative group G reduces to the compatibility of a system of equations S0over a free group with rational constraints C, see [9]. In order to prove the Corollary it suffices to check the compatibility of S0over a free group with constraints C∪{yi∈F[Xi]}, where Xi={x1, . . . , xi}.¤ The next result follows directly from Corollary 8.14. Corollary 7.10. Let Gbe an arbitrary partially commutative group. Then the positive theory of Gis decidable. Definition 7.11. Let φbe a sentence in the language LAwritten in the standard form φ=∀x1∃y1. . . ∀xk∃ykφ0(x1, y1, . . . , xk, yk), where φ0is a quantifier-free formula in LA. We say that Gfreely lifts φif there exist words (with constants from G)q1(x1), . . . , qk(x1, . . . , xk)∈G[X], 40 M. CASALS-RUIZ AND I. KAZACHKOV such that G[X]|=φ0(x1, q1(x1), . . . , xk, qk(x1, . . . , xk, A)) = 1. Theorem 7.12. Let Gbe a non-abelian directly indecomposable partially commutative group. Then Gfreely lifts every sentence in LAthat is true in G. Proof. Suppose a sentence (14) φ=∀x1∃y1. . . ∀xk∃yk(U(x1, y1, . . . , xk, yk) = 1∧V(x1, y1, . . . , xk, yk)6= 1), is true in G. We choose x1=g1, y1=h1, . . . , xk=gk, yk=hkprecisely as in Theorem 7.8. Then the formula U(g1, h1, . . . , gk, hk) = 1 ∧V(g1, h1, . . . , gk, hk)6= 1 holds in G. In particular, U(g1, h1, . . . , gk, hk) = 1 in G. It follows from Corollary 7.9 that there are words q1(x1)∈G[x1], . . . , qk(x1, . . . , xk)∈ G[x1, . . . , xk] such that G[X]|=U(x1, q1(x1, . . . , xk), . . . , xk, qk(x1, . . . , xk)) = 1. Moreover, it follows from the construction that h1=q1(g1), . . . , hk= qk(g1, . . . , gk). We claim that G[X]|=V(x1, q1(x1, . . . , xk), . . . , xk, qk(x1, . . . , xk)) 6= 1. Indeed, if V(x1, q1(x1, . . . , xk), . . . , xk, qk(x1, . . . , xk)) = 1 in G[X], then its image in Gunder any specialization X→Gis also trivial, but this is not the case for the specialization x1→g1, . . . , xk→gk— a contradiction. This proves the theorem for sentences φof the form (14). A similar argument works for formulas of the type φ=∀x1∃y1. . . ∀xk∃yk n _ i=1 (Ui(x1, y1, . . . , xk, yk)=1∧Vi(x1, y1, . . . , xk, yk)6=1), which is, actually, the general case by Corollary 6.11. ¤ Appendix: Positive theory of the direct product of groups In this section we prove that if G=H1×···×Hk, then the positive theory of Gin the language LG(and in L) is decidable if the positive theories of H1, . . . , Hkare decidable. Perhaps, this result is known, nevertheless, we were not able to find a reference. The following theorem is due to Feferman and Vaught, see [16]. ALGEBRAIC GEOMETRY AND PARTIALLY COMMUTATIVE GROUPS 41 Theorem 8.13. Let G=H1×···×Hk. Then the elementary theory of G in the language LGis decidable, provided that the elementary theory of Hi is decidable, i= 1, . . . , k. Proof. Without loss of generality we may assume that G=A×B. We use induction on the complexity of the formula to prove the following statement. Given a formula ϕ(x1, . . . , xn) in the language LG, one can effectively construct a finite family of formulas hφi={(ψi(y1, . . . , yn), ψ0 i(z1, . . . , zn)) |i∈I}such that for all a1, . . . , an, b1, . . . , bnwe have A×B|=ϕ((a1, b1), . . . , (an, bn)) if and only if there exists i∈Isuch that A|=ψi(a1, . . . , an) and B|=ψ0 i(b1, . . . , bn). •Let ϕ= (xi=xj), set hϕi={(yi=yj, zi=zj)}. •Let ϕ= (xi=c), where c∈G,c= (c1, c2), set hϕi={(yi= c1, zi=c2)}. •Let ϕ=P(x1, . . . , xn), where Pis a predicate. Set hϕi= {(P(y1, . . . , yn), P(z1, . . . , zn))}. •Let ϕ=ϕ1∨ϕ2and set hϕi=hϕ1i∪hϕ2i. •Let ϕ=¬ϕ0and set hϕi=   ^ j∈J¬ψj,^ i∈I\J¬ψ0 i ¯¯¯¯¯¯ J∈ P(I)   , where P(I) is the power set of Iand hφ0i={(ψi, ψ0 i)|i∈I}. •Let ϕ=∃x0ϕ0(x0, x1, . . . , xn) and set hϕi={(∃y0ψi(y0, y1, . . . , yn),∃z0ψ0 i(z0, z1, . . . , zn)) |i∈I}, where hφ0i={(ψi, ψ0 i)|i∈I}. ¤ Corollary 8.14. Let G=H1×···×Hk. Then the positive theory of Gin the language LG(in the language L)is decidable, provided that the positive theories of H1, . . . , Hkare decidable. Proof. In the notation of Theorem 8.13, we are left to show that if ϕis a positive formula in LGthen for all i∈Ithe formulas ψiand ψ0 iare also positive. By construction of hϕiit follows that ψiand ψ0 iare positive when ϕ= (xi=xj), ϕ= (xi=c), ϕ=P(x1, . . . , xn), ϕ=ϕ1∨ϕ2, and ϕ= ∃x0ϕ0(x0, x1, . . . , xn). We are left to consider the two following cases: ϕ= ϕ1∧ϕ2and ϕ=∀x0ϕ0(x0, x1, . . . , xn).