Abstract
Let be a finitely generated group, a finite set of generators and a subgroup of . We define what it means for to be a context-free pair; when is trivial, this specializes to the standard definition of to be a context-free group.
We derive some basic properties of such group pairs. Context-freeness is independent of the choice of the generating set. It is preserved under finite index modifications of and finite index enlargements of . If is virtually free and is finitely generated then is context-free. A basic tool is the following: is context-free if and only if the Schreier graph of with respect to is a context-free graph.
1. Introduction
Let be a finitely generated group and a (not necessarily finitely generated) subgroup of . We can choose a finite set of generators such that every element of is of the form , where and . Thus, generates as a semigroup. We shall say that is context-free, if–loosely spoken–the language of all words over that represent an element of is context-free.
The precise definition needs some preparation. Let be a finite alphabet and be a (not necessarily injective) mapping such that satisfies the above finite generation property for . Then has a unique extension, also denoted , as a monoid homomorphism . Recall that consists of all words , where and (repetitions allowed). The number is the length of . If this means that , the empty word. This is the neutral element of , and is a free monoid with the binary operation of concatenation of words. The extension of is of course given by
where the product on the right hand side is taken in . Given these ingredients, we shall say that is a semigroup presentation of , referring to the fact that generates as a semigroup. A language over is a non-empty subset of .
Definition 1.1
The word problem of with respect to is the language
We say that the triple is context-free, if is a context-free language.
A context-free grammar is a quadruple , where is a finite set of variables, disjoint from the finite alphabet (the terminal symbols), the variable is the start symbol, and is a finite set of production rules. We write or if . For , we write if and , where and . This is a single derivation step, and it is called rightmost, if . A derivation is a sequence such that ; we then write . A rightmost derivation is one where each step is rightmost. The succession of steps of any derivation can be reordered so that it becomes a rightmost derivation. For , we consider the language . The language generated by is .
A context-free language is a language generated by a context-free grammar. As a basic reference for Language and Automata Theory, we refer to the magnificent monograph of Harrison[6].
The above definition of a context-free pair, or rather triple, makes sense when is a finitely generated monoid and is a sub-monoid, but here we are interested in groups. When in addition , this leads to the notion of being a context-free group. In two celebrated papers, Muller and Schupp[11], [12] have carried out a detailed study of context-free groups and more generally, context-free graphs. In particular, context-freeness of a group is independent of the particular choice of the generating set of . The main result of [11], in combination with a fundamental theorem of Dunwoody [4], is that a finitely generated group is context-free if and only if it is virtually free, that is, it contains a free subgroup of finite index. (In [11], it is assumed that and that is one-to-one, but the results carry over immediately to the more general setting where those two properties are not required.)
Previously, Anisimov [1] had shown that the groups whose word problem is regular (see Section 2 for the definition) are precisely the finite groups.
The above mentioned context-free graphs are labelled, rooted graphs with finitely many isomorphism classes of cones. The latter are the connected components of the graph that remain after removing a ball around the root with arbitrary radius. See Section 4 for more precise details. As shown in [12], there is a natural correspondence between such graphs and pushdown automata, which are another tool for generating context-free languages; see Section 3.
Among subsequent work, we mention Pélecq [13] and Sénizergues [16], who studied actions on, resp. quotients of context-free graphs. Group-related examples occur also in Ceccherini-Silberstein and Woess [3].
More recently, Holt et al. [7] have introduced and studied co-context-free groups, which are such that the complement of is context-free, see also Lehnert and Schweitzer [9]. This concept has an obvious extension to co-context-free pairs of groups, resp. graphs, on whose examination we do not (yet) embark.
In the present notes, we collect properties and examples of context-free pairs of groups .
-
•
The language is regular if and only if the index of in is finite (Proposition 2.4).
-
•
The property that is context-free does not depend on the specific choice of the semigroup presentation , so that context-freeness is just a property of the pair , a consequence of Lemma 3.1.
-
•
If is context-free then is a deterministic context-free language (see Section 3 for the definition) for any semigroup presentation (Corollary 4.8.a).
-
•
If is context-free and is a finitely generated subgroup of , then the pair is context-free (Lemma 3.1).
-
•
If then is context-free if and only if is context-free (Proposition 3.3 & Lemma 4.9).
-
•
If is context-free and is a subgroup of with and then is context-free (Lemma 4.9).
-
•
If is finite then is context-free if and only if is context-free (Lemma 4.11).
-
•
If is context-free then is context-free for every (Corollary 4.8.b).
-
•
If is virtually free and is a finitely generated subgroup of then is context-free (Corollary 5.3).
Several of these properties rely on the following.
-
•
A fully deterministic, symmetric labelled graph (see Section 2 for definitions) is context-free in the sense of Muller and Schupp if and only if the language of all words which are labels of a path that starts and ends at a given root vertex is context-free (Theorem 4.2, Theorem 4.6).
The (harder) “if” part is not contained in previous work. It implies the following.
-
•
The pair is context-free if and only if for some ( any) symmetric semigroup presentation , the Schreier graph of with respect to is a context-free graph. (See again Section 2 for precise definitions).
In a second paper [20], a slightly more general approach to context-freeness of graphs via cuts and tree-sets is given. It allows to show that certain structural properties (“irreducibility”) are preserved under finite-index-modifications of the underlying pair of groups. This is then applied to random walks, leading in particular to results on the asymptotic behaviour of transition probabilities.
In concluding the Introduction, we remark that with the exception of some “elementary” cases, context-free pairs of groups are always pairs with more than one end. Ends of pairs of groups were studied, e.g., by Scott [15], Swarup [18] and Sageev [14]. This leads directly to asking about the interplay between context-freeness of pairs and decomposition as amalgamated products or HNN-extensions. An example at the end of Section 5 shows that there is no immediate answer.
2. Schreier graphs and the regular case
Let be a finite alphabet. A directed graph labelled by is a triple , where is the (finite or countable) set of vertices, is the set of oriented, labelled edges and is the labelling map.
For an edge , its initial vertex is and its terminal vertex is , and we say that is outgoing from and ingoing into . If then is a loop, which is considered both as an outgoing and as an ingoing edge. We allow multiple edges, i.e., edges of the form and with , but here we exclude multiple edges where also the labels coincide. The graph is always assumed to be locally finite, that is, every vertex is an initial or terminal vertex of only finitely many edges. We also choose a fixed vertex , the root or origin. We shall often just speak of the graph , keeping in mind the presence of and .
We call fully labelled if at every vertex, each occurs as the label of at least one outgoing edge. We say that is deterministic if at every vertex all outgoing edges have distinct labels, and fully deterministic if it is fully labelled and deterministic. Finally, we say that is symmetric or undirected if there is a fixed point free involution of (i.e., , excluding the possibility that ) such that for each edge , also the reversed edge belongs to .
A path in is a sequence of edges such that for . The vertices and are the initial and the terminal vertex of . The number is the length of the path. The label of is . We also admit the empty path starting and ending at a vertex , whose label is . Denote by the set of all paths in with initial vertex and terminal vertex . The following needs no proof.
Lemma/Definition 2.1
Let be a labelled graph, and . We define , the set of all paths that start at and have label . The set of all terminal vertices of those paths is denoted .
Analogously, we define , the set of all paths that terminate at and have label , and write .
If is fully labelled, then is always non-empty.
If is deterministic, then has at most one element, and if that element exists, it is denoted , while just denotes its endpoint.
If is fully deterministic, then is a unique vertex of for every , .
Finally, if is symmetric (not necessarily deterministic), then , where for , one defines .
With a labelled, directed graph as above, we can associate various languages. We can, e.g., consider the language
| (1) |
Definition 2.2
Let be a finitely generated group, a subgroup and a semigroup presentation of . The Schreier graph has vertex set
(the set of all right -cosets in ), and the set of labelled, directed edges
is a rooted graph with origin , the right coset corresponding to the neutral element of the group . The Schreier graph is fully deterministic. It is also strongly connected: for every pair , there is a path from to . (This follows from the fact that generates as a semigroup.) When then we write . This is the Cayley graph of with respect to , or more loosely speaking, with respect to the set of generators.
Note that can have the loop with . This holds if and only if . It can also have the multiple edges and with and . This occurs if and only if . In particular, there might be multiple loops. The following is obvious.
Lemma 2.3
Let be a subgroup of and be a semigroup presentation of . Then
is the language of all labels of closed paths starting and ending at in the Schreier graph .
A context-free grammar and the language are called linear, if every production rule in is of the form or , where and . If furthermore in this situation one always has (the empty word), then grammar and language are called right linear or regular.
A finite automaton consists of a finite directed graph with label set and labelling map , together with a root vertex and a non-empty set . The vertices of are called the states of , the root is the initial state, and the elements of are the final states. The automaton is called (fully) deterministic provided the labelled graph is (fully) deterministic. The language accepted by is
If is deterministic, then for each there is a unique path such that . A state is called useful if there is some word such that the vertex lies on a path in with label . It is clear that we can remove all useless states and their ingoing and outgoing edges to obtain an automaton which accepts the same language and is reduced: it has only useful states.
It is well known [6, Chapter 2] that a language is regular if and only if is accepted by some deterministic finite automaton.
The following, which corresponds to Theorem 1 in [5], generalizes Anisimov’s [1] characterization of groups with regular word problem, and also simplifies its proof, as well as the simpler one of [11, Lemma 1].
Proposition 2.4
Let be a finitely generated group, a subgroup and a semigroup presentation of . Then has regular word problem with respect to if and only if has finite index in .
Proof
Suppose first that the index of in is finite. Consider the finite automaton where is the Schreier graph , and the initial and unique final state is (as a vertex of ). Then : indeed, belongs to , i.e. , if and only if . This shows that is regular.
Conversely, suppose that is regular and accepted by the reduced, deterministic finite automaton . For there is some word such that the vertex lies on the unique path from to with label . We choose one such and let be the label of the final piece of the path, starting at and ending at . We set .
Let . There are with and . Thus, , and there is a (unique) path with label from to some final state. Now consider the initial piece of , that is, the path starting at whose label is our that we started with. [Thus, we have proved that such a path must exist in !] Let be the final state (vertex) of . Then clearly , which means that . Since , it follows that
and has finitely many cosets in . □
Corollary 2.5
Let be finitely generated and a subgroup. Then the property of the pair to have a regular word problem is independent of the semigroup presentation of .
We shall see that the same also holds in the context-free case. Another corollary that we see from the proof of Proposition 2.4 is the following.
Corollary 2.6
Let be finitely generated and a subgroup of finite index. Then for any semigroup presentation , any reduced deterministic automaton that accepts has a surjective homomorphism (as a labelled oriented graph with root ) onto the Schreier graph . Also, the labelled graph is fully deterministic.
Proof
Let be deterministic and reduced, as in part 2 of the proof of Proposition 2.4.
Let , and recall the construction of the label of a path from to , and . If is another path from to , and , then we can take (which we know to be non-empty) and find that , so that . Thus , and the map is well defined. It has the property that when , then . The map is clearly surjective, and by construction.
Now let and . Take and consider the word . Again by part 2 of the proof of Proposition 2.4, there is a unique path in starting at with label . If is its final vertex, then there is the edge in . In this situation, . This means that in the Schreier graph, there is the edge with label from to . Therefore is a homomorphism of labelled graphs. □
The following simple example shows that, in general, the map constructed in the proof of the previous corollary is not injective.
Example 2.7
Let be the group of order two and the trivial subgroup. Let and consider the presentation such that . Then .
In Fig. 1 we have represented, from left to right, the Schreier graph (which is nothing but the Cayley graph of w.r. to ), and two automata and . As usual, denotes the origin, while the sets of final states are and , respectively. We have .
Fig. 1.
(From left to right) the Schreier graph described in Example 2.7 and two automata and such that .
3. Pushdown automata
Besides grammars, we shall need another instrument for generating context-free languages. A pushdown automaton is a 7-tuple , where is a finite set of states, the input alphabet as above, a finite set of stack symbols, the initial state, the set of final states, and is the start symbol. Finally, the function is the transition function. Here, stands for the collection of all finite subsets of .
The automaton works in the following way. At any time, it is in some state , and the stack contains a word . The automaton reads a word from the “input tape” letter by letter from left to right. If the current letter of is , the state is and the top (=rightmost) symbol of the stack word is , then it performs one of the following transitions.
-
(i)
selects some , changes into state , moves to the next position on the input tape (it may be empty if was the last letter of ), and replaces the rightmost symbol of by , or
-
(ii)
selects some , changes into state , remains at the current position on the input tape (so that has to be treated later), and replaces the rightmost symbol of by .
If both and are empty then halts.
The automaton is also allowed to continue to work when the stack is empty, i.e., when . Then the automaton acts in the same way, by putting on the stack when it has selected in case (i), resp. in case (ii).
We say that accepts a word if starting in the state with only on the stack and with on the input tape, after finitely many transitions the automaton can reach a final state with empty stack and empty input tape. The language accepted by is denoted .
The pushdown automaton is called deterministic if for any , and , it has at most one option what to do next, that is,
(Here, denotes cardinality.)
It is well known [6] that a language is context-free if and only if it is accepted by some pushdown automaton. A context-free language is called deterministic if it is accepted by a deterministic pushdown automaton. We also remark here that a deterministic context-free language is un-ambiguous, which means that it is generated by some context-free grammar in which every word of has precisely one rightmost derivation.
The following lemma is modelled after the indications of [11, Lemma 2]. For the sake of completeness, we include the full proof.
Lemma 3.1
Suppose that and are as above. Let be a finitely generated subgroup of , and let be another alphabet and be such that generates as a semigroup.
Then, if is context-free, also is context-free, and if in addition is deterministic, then so is .
Proof
We start with a pushdown automaton that accepts .
For each , there is such that , and we may choose to have length . Thus,
With this in mind, we modify in order to obtain a pushdown automaton that accepts . Our has to translate any into and to use in order to check whether .
Let . If then the only modification of needed is to replace by its subset and to use the resulting restriction of the transition function.
Otherwise, we set . For , we denote by its subword obtained by deleting the first letter. We define and with the transition function as follows. For each and ,
Thus, the new states of the form with serve to remember the terminal parts of the words , . This automaton accepts , and it is deterministic, if has this property. □
Corollary 3.2
Being context-free is a property of the pair that does not depend on the specific choice of the alphabet and the map for which generates as a semigroup.
Therefore, it is justified to refer to the context-free pair rather than to the triple . Furthermore, whenever this is useful, we may restrict attention to the case when the graph is symmetric: we say that is symmetric, if there is a proper involution of such that in . (Again, it is not necessary to assume that is one-to-one, so that we have that even when .)
Proposition 3.3
Let be finitely generated, be a subgroup with . If is a subgroup of then is context-free if and only if is context-free.
Proof
The “only if” is contained in Lemma 3.1. (Observe that inherits finite generation from , since .)
For the converse, we assume that is context-free and let and be semigroup presentations of and , respectively. There is a pushdown automaton that accepts .
Let be a set of representatives of the right cosets of in , with . Thus, , and
For every and there is a unique such that . Therefore there is a word such that
An input word is transformed recursively into , along with the sequence of elements of that indicate the current -coset at each step:
Then if and only if and .
Thus, our new automaton recalls at each step the current coset , which is multiplied on the right by , where is the next input letter. Then the new coset is , and simulates what does next upon reading . Then is accepted when at the end the coset is and is in a final state.
The simple task to write down this automaton in detail is left to the reader. □
4. Context-free graphs
In this section, we assume that is symmetric. We may think of each pair of oppositely oriented edges and as one non-oriented edge, so that becomes an ordinary graph with symmetric neighbourhood relation, but possibly multiple edges and loops. If it is in addition fully deterministic, then is a regular graph, that is, the number of outgoing edges (which coincides with the number of ingoing edges) at each vertex is . Attention: if we consider non-oriented edges, then each loop at has to be counted twice, since it corresponds to two oriented edges of the form and . For all our purposes it is natural to require that is connected: for any pair of vertices there is a path from to . The distance is the minimum length (number of edges) of a path from to , which defines the integer-valued graph metric. A geodesic path is one whose length is the distance between its endpoints.
We select a finite, non-empty subset of and consider the balls (where ). If we delete then the induced graph will fall apart into a finite number of connected components, called cones with respect to . Each cone is a labelled, symmetric graph with the boundary consisting of all vertices in having a neighbour outside (i.e., in ).
The following notion was introduced in [12] for symmetric, labelled graphs and .
Definition 4.1
The graph is called context-free with respect to if there is only a finite number of isomorphism types of the cones with respect to as labelled graphs with boundary.
This means that there are finitely many cones (generally with respect to different radii ) such that for each cone , we can fix a bijection from (the vertex set of) to precisely one of the , this bijection sends to , and is an edge with both endpoints in if and only if its image is an edge of . In this case, we say that is a cone of type .
Generally, as in [12], we are interested in the case when (or any other singleton), but there is at least one point where it will be useful to admit arbitrary finite, non-empty .
Another natural notion of context-freeness of with respect to is to require that the language is context-free. We shall see that for deterministic, symmetric graphs this is equivalent with context-freeness with respect to in the sense of Definition 4.1. One direction of this equivalence is practically contained in [12], but not stated explicitly except for the case of Cayley graphs of groups. The other direction (that context-freeness of implies that of the graph) is shown in [12] only for Cayley graphs of groups, which is substantially simpler than the general case treated below in Theorem 4.6.
Theorem 4.2
If the symmetric, labelled graph with label alphabet is context-free with respect to the finite, non-empty set , then is a context-free language for all . Furthermore, if the graph is deterministic, then so is the context-free language .
Proof
Just for the purpose of this proof, we write instead of for the vertices for which will be shown to be context-free. We may assume without loss of generality that in . Indeed, if this is not the case, then we can replace by , which contains and when is sufficiently large. The cones with respect to are also cones with respect to , so that is also context-free with respect to .
Similarly to [12, Lemma 2.3], we construct a deterministic pushdown automaton that accepts .
We consider also the whole graph as a cone with boundary , which we keep apart from the other representatives of cones.
If is a cone, then as a component of for some it must be a successor of another cone . The latter is the unique component of that contains , when , while it is when . We also call the predecessor of .
Different cones of type may have predecessors of different types. Conversely, a cone of type may have none, one or more than one successors of type , and the number of those successors depends only on and . In the representative cone , we choose and fix a numbering of the distinct successors of type as , . If is any cone with type then we use the isomorphism to transport this numbering to the successors of that have type , which allows us to identify the -th successor of with type .
One can visualize the cone structure by a finite, oriented graph with multiple edges and root 0: the vertex set is the set of cone types , and there are oriented edges, which we denote by () from vertex to vertex (, ).
Every vertex of belongs to the boundary of precisely one cone with respect to . We define the type of as the type of . Under the mapping , our corresponds to precisely one element of . We write for that element, without subscript , so that maps onto . In particular, for every .
Let with type . Then there is (depending on ) such that every neighbour of with has type , and there is precisely one successor cone of that contains . In this case, we write , the second order type of . Compare with [12]. If is such that then .
We now finally construct the required pushdown automaton . (Comparing with [12], we use more states and stack symbols, which facilitates the description.) The set of states and stack symbols are
(When then there is no .) Note that both sets contain . In order to generate the language , where , then we use as the initial state and as the (only) final state. We describe the transition function, which–like and –does not depend on .
We want to read an input word, which has to correspond to the label starting in . Inside the subgraph of induced by , our behaves just like that subgraph, seen as a finite automaton.
Outside of , it works as follows. At the -th step, the automaton will be in a state that describes the -th vertex, say , of that path, by identifying as above with the element of , where is the type of . The current stack symbol is of the form and serves to recall that lies in the -th successor cone of type of a cone with type . If the next vertex along the path, say , satisfies , and has type then the state is changed to , and the symbol is added to the stack. If , then only the state is changed from to . Finally, if then the new state is again , while the top symbol on the stack is deleted. Formally, we get the following list of transition rules. If :
If :
This is a finite collection of transitions, since and can take only finitely many different values.
In view of the above explanations, accepts . Also, when the graph is deterministic, then so is . □
Before proving a converse of Theorem 4.2, we first need some preliminaries, and start by recalling a fact proved in [11], [12], see also Woess [21] and Berstel and Boasson [2].
Lemma 4.3
Ifis context-free then there is a constantsuch that for each conewith respect to, one has.
(The diameter is of course taken with respect to the graph metric.) We shall see below how to deduce this, but it is good to know it in advance.
A context-free grammar is said to have Chomsky normal form (CNF), if (i) every production rule is of the form or , where (not necessarily distinct), resp. , and (ii) if , then there is the rule , and is not contained in the right hand side of any production rule.
With a slight deviation from [11], we associate with each , a labelled (closed) polygon with length . As a directed graph, it has distinct vertices and labelled edges , , plus the edge . A (diagonal) triangulation of is a plane triangulation of obtained by inserting only diagonals. Here, we specify those diagonals as oriented, labelled edges , where are not neighbours in and . Furthermore, we will never have two diagonals between the same pair of vertices of . (If we consider itself triangulated.) The proof of the following Lemma may help to make the construction of [11] (used for Cayley graphs of groups) more transparent.
Lemma 4.4
If is in CNF and with then there is a diagonal triangulation of with the property that whenever is a diagonal edge, then occurs in a derivation , and .
Proof
We start with a fixed derivation , and explain how to build up the triangles step by step. Suppose that occurs in our derivation, and that we have a “sub-derivation” , where . Then there is such that and . In this case, we draw a triangle with three oriented, labelled edges, namely the ‘old’ edge and the two ‘new’ edges and .
If we have the derivation , then it uses successive steps of the form with as above. We work through these steps one after the other, starting with , where and . The first triangle has the ‘old’ edge and the ‘new’ edges and .
At any successive step, we take one of the ‘new’ edges , where and proceed as explained at the beginning, so that we add two ‘new’ edges that make up a triangle together with , which is then declared ‘old’. We continue until all derivation steps of the form in our derivation are exhausted. At this point, we have obtained a tiling of triangles that constitute a diagonal triangulation of its outer polygon, whose edges have the form and with , . The only steps of our derivation that we have not yet considered are the terminal ones . Thus, we conclude by replacing the label of by . □
The construction is best understood by considering an example: suppose our rightmost derivation is
(We have inserted the parentheses to make the rules that we used in each step more visible.) The associated triangulation is as in Fig. 2.
Fig. 2.

The polygon , with , and its (diagonal) triangulation associated with the rightmost derivation .
The variables of the terminal rules , , , , and are not visible in this figure (but we might add them to the boundary edges). Apart from this, one can read the derivation from the diagonalization in a similar way as it can be read from the so-called derivation tree (see e.g. [6, Section 1.6] for the latter).
The following goes back to [11] in the case of (Cayley graphs of) finitely generated groups (recall from Lemma/Definition 2.1 that in case is deterministic and symmetric, if and , then denotes the initial vertex of the path in terminating at with label ).
Lemma 4.5
Letbe in CNF and, whereis a deterministic, symmetric graph. Ifandis a diagonal edge in a triangulation ofas in Lemma 4.4, then the verticesandofsatisfy, where
(2)
Proof
Since is deterministic, Lemma 2.3 implies that exists as the unique path with initial vertex and label . In particular, and lie on that path. Furthermore, we have .
Now let with . Then by Lemma 4.4, arises in a derivation . But then we also have , a word in . By Lemma 2.3, again using that is symmetric and deterministic, . Therefore, and are connected by a path with label . Its length is . □
Theorem 4.6
Let be a fully deterministic, symmetric graph with label alphabet and root . If is a context-free language, then is a context-free graph with respect to , and in particular, is deterministic.
Proof
There is a reduced grammar in CNF that generates . Each of the languages , , is non-empty, only contains , and we define
(3) where is as in (2).
Let be a cone with respect to such that .
Construction of. We define as the subgraph of induced by all vertices with
In particular, lies on some geodesic path from to .
Now let , and consider some path (i.e., it lies in ). Choose a geodesic path from to and a geodesic path from to . Then we can concatenate the three paths to a single path . Its label is the word . Set and write
where the 3 pieces in the parentheses are (in order) , and . The words , and are the labels of three consecutive arcs that fill the boundary of the polygon . (To be precise, along the last edge of the arc, we are reading the label in the reversed direction.) By [11, Lemma 5], its triangulation has a triangle which meets each of those arcs. (It may also occur that one corner of the triangle meets two arcs.) Thus, there are and such that the vertices and of lie on that triangle. They correspond to the vertices and of . We either have , or else a diagonal is a side of our triangle. By Lemma 4.5, we get . Thus , that is, . In particular, does not lie on the third arc. In the same way, there is (and not larger) such that is a corner of our triangle. This yields that there must be a “true” diagonal of . We set and , so that , and let . The points and are in , and by Lemma 4.4, .
[It is here that we can see Lemma 4.3, since we deduced that for all .]
By Lemma 4.4, we also have
so that implies and consequently , that is, .
We now insert into the additional labelled edge , whose label is the word . We insert all diagonals of the same type that can be obtained in the same way, and write for the resulting “edge-enrichment” of .
Subsuming, we have an edge in if and only if the following properties hold.
- •
() and ,
- •
the path with label starting at and ending at is part of a geodesic from to ,
- •
the path with label starting at and ending at is part of a geodesic from to , and
- •
there is a path in from to such that ,
- •
if then is the label of a path in .
Now, there are only finitely many cones with respect to with . On the other hand, for all cones with , there is a bound on the number of vertices of , as well as on the number of possible labels on its edges. In particular, there are only finitely many possible isomorphism types of the labelled graphs with “marked” boundary .
We now suppose that and are two cones at distance from , such that and are isomorphic. We claim that and are isomorphic, and this will conclude the proof that there are only finitely many isomorphism types of cones with respect to .
Let be an isomorphism with , and its inverse mapping. We extend to a mapping from to , also denoted .
Claim 1
Letandsuch that the pathlies inand meetsonly in its initial point. Then the pathlies inand meetsonly in its initial point.
Proof
If is the initial letter of then (always using the notation of Definition 1.1) the first edge of is . We now consider the path with label starting at . We first claim that the latter lies in and only its initial point is in . Let be the first edge of the path. Then cannot lie in , since otherwise would be an edge in , a contradiction. Thus, the path goes at least initially into .
So now suppose that ever returns to , and let be its initial part up to the first return. Then is an initial part of with , and is a path within from to . But then, by construction, must contain an edge such that , , and . Using the isomorphism , we set , , and . We have of course . Now we must have the edge in . But then , and consequently , that is, . But this contradicts the fact that meets only in its initial point. We conclude that also the path lies in and meets only in its initial point, and Claim 1 is verified. □
Now let . Then there are and such that and the path from to meets only in its initial point . By Claim 1, the analogous statement holds for the path in , where . The only choice is to define , which lies in as required. We have to show that is well-defined. This will follow from the next claim.
Claim 2
Let,such that the pathsandlie in, meetonly in their initial points and end at the same point of. Then, setting, alsoandend at the same point of.
Proof
Let be the “inverse” of , as defined in Definition 1.1. Then , and is the label of the path from to that we obtain by first following and then the “inverse” of . It lies entirely in , and only its endpoints are in . By construction, has an edge such that , and . We set , . Then is an edge of . Therefore . But this implies that is the label of a path from to , and we know from Claim 1 that it lies in and has only its endpoints in . Thus , and Claim 2 is true. □
Thus, is well defined, and the same works of course also for by exchanging the roles of and .
Claim 3
The mapis bijective.
Proof
We know that is bijective and that . Let , and let , such that is a path from to that intersects only at the initial point. Setting , , we know from the construction of and Claim 1 that is a path in from to that meets only in its initial point. Now the way how is constructed yields that . Therefore is the identity on . Exchanging roles, we also get the is the identity on . This proves Claim 3. □
It is now immediate from the construction that also preserves the edges and their labels, so that it is indeed an isomorphism between the labelled graphs and that sends to . This concludes the proof of Theorem 4.6. □
[12, Cor. 2.7] says that if a symmetric labelled graph is context-free with respect to one root , then it is context-free with respect to any other vertex chosen as the root . In view of Theorem 4.2, Theorem 4.6, this is also obtained from the following, when the graph is fully deterministic.
Corollary 4.7
Let be a fully deterministic, strongly connected graph with label alphabet . If is context-free then is deterministic context-free for all .
Theorem 4.2, Theorem 4.6, together with Lemma 3.1 also imply the following.
Corollary 4.8
Let be a finitely generated group and a subgroup.
- (a)
The pair is context-free if and only if for any symmetric , the Schreier graph is a context-free graph. In this case, the language is deterministic for every (not necessarily symmetric) semigroup presentation .
- (b)
If is context-free, then also is context-free for every .
Proof
(a) is clear. Regarding (b), for the Schreier graph , we have and with , . Thus, the statement follows from Corollary 4.7. □
Lemma 4.9
Let be a finitely generated group and be subgroups with and .
If is context-free then also is context-free.
Proof
In the context-free graph , consider the finite set of vertices , containing the root vertex . Then is a finite (disjoint) union of context-free languages. Therefore it is context-free by standard facts. □
Remark 4.10
In terms of Schreier graphs, we have the mapping which is a homomorphism of labelled graphs from onto which is finite-to-one. The lemma says that in this situation, if is a context-free graph then so is . We do not see an easy direct proof of this fact in terms of graphs, the main problem being how the homomorphism interacts with the isomorphisms between the cones of with respect to the set . On the other hand, reformulating this in terms of the associated “path languages” with the help of Theorem 4.2, Theorem 4.6, it has become straightforward.
The converse of Lemma 4.9 is not true, that is, when is context-free and then is not necessarily context-free. See Example 5.6 in the last section. However, we have the following.
Lemma 4.11
If is a finite subgroup of then is context-free if and only if is a context-free (i.e. virtually free) group.
Proof
Fix and . Let be the associated Cayley graph of , and . We let be the root of , that is, as an element of (a coset). The group acts on by automorphisms of that labelled graph. It leaves the set (now as a set of vertices of ) invariant. The factor graph of by this action is . Write for the factor mapping. It is -to-one. Each cone of with respect to is mapped onto a cone of with respect to , and this mapping sends boundaries of cones of to boundaries of cones of . By assumption, is a context-free graph. By Lemma 4.3, there is an upper bound on the number of elements in the latter boundaries. Therefore there also is an upper bound on the number of elements of any of the boundaries of the cones of with respect to .
Without going here into the details of the definition of the space of ends of , we refer to the terminology of Thomassen and Woess [19] and note that the above implies that all ends of are thin. But then, as proved in [19], must be a virtually free group. □
One should not tend to believe that in the situation of the last lemma, the Cayley graphs of are quasi-isometric with the Schreier graphs of . As a simple counter-example, take for the infinite dihedral group and for the 2-element subgroup generated by .
5. Covers and Schreier graphs
We assume again that is symmetric and fully deterministic. Recall the involution of . A word in is called reduced if it contains no subword of the form , where . We write for the set of all reduced words in . We can equip with the structure of a labelled graph, whose edges are of the form
| (4) |
Thus, the terminal letter of must be different from . Then is fully deterministic, and it is a tree, that is, it has no closed path whose label is a (non-empty) reduced word. As the root of , we choose the empty word . Then is the universal cover of . Namely, if we choose (and fix) any vertex as the root, then the mapping
| (5) |
is a covering map: it is a surjective homomorphism between labelled graphs which is a local isomorphism, that is, it is one-to-one between the sets of outgoing (resp. ingoing) edges of any element and its image . (Note that this allows the image of an edge to be a loop.) “Universal” means that it covers every other cover of , but this is not very important for us. The property of to be reduced is equivalent with the fact that the path in is non-backtracking, that is, it does not contain two consecutive edges which are the reversal of each other.
We now realize that is the standard Cayley graph of the free group , where is the set of free generators together with their inverses. The group product is the following: if , then is obtained from the concatenated word by step after step deleting possible subwords of the form that can arise from that concatenation. The group identity is , and the inverse of is as at the end of Definition 1.1. With as in (5), let
| (6) |
Then, under the indentification , we clearly have that is a subgroup of . The following is known, see e.g. Lyndon and Schupp [10, Ch. III] or (our personal source) Imrich [8].
Proposition 5.1
The graphis the Schreier graph of the pair of groupswith respect to the semigroup presentationgiven by,.
In , we interpret simultaneously as a letter from the alphabet and as a generator of the free group.
Thus, in reality the study of context-free pairs of groups is the same as the study of fully deterministic, symmetric context-free graphs under a different viewpoint.
The same is not true without assuming symmetry. Indeed, given a semigroup presentation of , for every there must be such , the inverse in . But then in the Schreier Graph , for any subgroup of , we have the following: if then , that is, there is the oriented path from to with label . In a general fully deterministic graph this property does not necessarily hold, even if it has the additional property that for each , there is precisely one incoming edge with label at every vertex. As an example, consider , and labelled edges .
We return to the situation of Proposition 5.1. As a subgroup of the free group, the group is itself free. There is a method for finding a set of free generators. First recall the notion of a spanning tree of . This is a tree , which as subgraph of is obtained by deleting edges (but no vertices) of . Every connected (non-oriented) graph has a spanning tree, for locally finite graphs it can be constructed inductively. Now let be a spanning tree of , and consider all edges of that are not edges of . They must come in pairs . For each pair, we choose one of the two partner edges, and we write for the chosen (oriented) edges. For each , we choose non-backtracking paths in from to and from to . Together with (in the middle), they give rise to a non-backtracking path in that starts and ends at . Let be the label on that path. Then the following holds [10], [8].
Proposition 5.2
As elements of , the , , are free generators of .
Corollary 5.3
Let be a virtually free group and a finitely generated subgroup. Then is context-free.
Proof
Let be a free subgroup of of finite index. Then is a free subgroup of with . Since is finitely generated, also is finitely generated. In the Schreier graph of with respect to the standard labelling by , choose a spanning tree and remaining set of edges, as described above. Since all sets of free generators of must have the same cardinality, is finite. Thus, is obtained by adding finitely many edges to a tree. If is the root vertex of and is the largest distance between and an endpoint of some edge in , then every cone of with is a rooted, labelled tree that is isomorphic to one of the cones of . Thus, the Schreier graph, resp. are context-free. It now follows from Proposition 3.3 and Lemma 4.9 that also is context-free. □
We remark here that one can always reduce the study of context-free pairs to free groups and their subgroups. Given , let be a finitely generated free group that maps by a homomorphism onto . Let be the preimage of under that homomorphism. Then clearly is context-free if and only has this property. (This reduction, however, is not very instructive.)
Of course, there are context-free pairs with free beyond the situation of Corollary 5.3.
Example 5.4
Consider the free group and the subgroup with the infinite set of free generators . The associated Schreier graph with respect to is the comb lattice.
Its vertex set is the set of integer points in the plane. The edges labelled by are along the -axis, from to , and there is a loop with label at each point with . The edges labelled by are all the upward edges of the grid, that is, all edges from to , where . To these, we have to add the oppositely oriented edges whose labels are the respective inverses (in Fig. 3, the oppositely oriented edges together with the corresponding labels are omitted for simplicity). The comb lattice is clearly a context-free graph (tree).
Fig. 3.
The comb lattice described in Example 5.4.
We proceed giving some simple examples. It is very easy to see that context-freeness is not “transitive” in the following sense: if and are context-free (with finitely generated and ) then in general will not be context-free.
Example 5.5
Let , and . Then (i.e., ) is context-free. Of course, this also holds for , whose Schreier graphs are just the Cayley graphs of . But (i.e., ) is not context-free.
This also shows that the converse of Lemma 3.1 does not hold in general (while we know that it does hold when ). Finally, we construct examples of three groups , where is context-free, , and is not context-free.
Example 5.6
We construct a family of fully deterministic, symmetric labelled graphs , (non-empty), and one such graph , so that is the factor graph with respect to the action of a 2-element group of automorphisms of each of the labelled graphs . While will be a context-free graph, many of the graphs in our family are not context-free. We then translate this back into the setting of pairs of groups.
The vertex set of is . The set of labels is . The edges are as follows:
The reversed edges carry the respective inverse labels (in Fig. 4, these reversed edges together with the corresponding labels are omitted for simplicity). Since , there is at least one of the “crosses” (pair of the third type of edges). Therefore is connected. In general, it does not have finitely many cone types, i.e., it is not context-free. For example, it is not context-free when
For arbitrary , the two-element group that exchanges each with acts on by label preserving graph automorphisms. The factor graph (see Fig. 5) has vertex set and edges
plus the associated reversed edges (in Fig. 5, these edges together with the corresponding labels are omitted for simplicity). It is clearly a context-free graph.
Now let be the free group (universal cover of and ), and for given , let be the fundamental group of at the vertex . Furthermore, let be the fundamental group of at the vertex 0. Then it is straightforward that has index 2 in . The mapping is the embedding of into , as above. We then have and , providing the required example.
Fig. 4.
The fully deterministic, symmetric labelled graph , with described in Example 5.6 (here ). The reverse edges, together with the corresponding labels, are omitted for simplicity.
Fig. 5.
The factor graph of the graph from Fig. 4 (cf. Example 5.6). The reverse edges, together with the corresponding labels, are omitted for simplicity.
Example 5.7
At the end of the Introduction, we mentioned the possible interplay with ends. The number of ends of a symmetric, connected graph is the supremum of the number of connected components of the complement of any finite subgraph. Via Stallings’ [17] celebrated structure theorem, ends of groups (i.e., ends of Cayley graphs) are closely related with amalgamated free products and HNN-extensions. Thus, it is natural to ask the following question.
Let and be two context-free pairs of groups sharing the same subgroup . Let be the amalgamated free product of and over the group . Is it then true that is context-free ? When is finite, the answer is of course “yes”, because then and are virtually free. When is infinite, we have a counter-example. Here is a brief outline.
Let be the fundamental group of an orientable surface of genus 2. Let be the infinite cyclic subgroup generated by the commutator , and for , let be the free group with free generators and . Then is the amalgamated free product of and over .
By Corollary 5.3, the pairs and are context-free. But is not context-free. Indeed, let be the Schreier graph of with respect to the above generators and their inverses. It has two ends, see e.g. the outline in the Introduction of [14]. Thus, there is a finite subgraph of such that has exactly two infinite cones for any . If were context-free, then the finite upper bound on the number of boundary elements of any cone would yield that has linear growth, that is for all . This contradicts the fact that , as well as the Schreier graphs of and , have exponential growth.
Acknowledgements
The authors are grateful to Wilfried Imrich, Rögnvaldur G. Möller and Michah Sageev for useful hints and discussions.
The first author was partially supported by a visiting professorship at TU Graz. The second author was partially supported by a visiting professorship at Università di Roma - La Sapienza and the Austrian Science Fund project FWF-P19115-N18.
Contributor Information
Tullio Ceccherini-Silberstein, Email: tceccher@mat.uniroma3.it.
Wolfgang Woess, Email: woess@TUGraz.at.
References
- 1.Anisimov A.V. Group languages. Kibernetika. 1971;4:18–24. [Google Scholar]
- 2.Berstel J., Boasson L. vol. B. Elsevier; Amsterdam: 1990. Context-free languages; pp. 59–102. (Handbook of Theoretical Computer Science). [Google Scholar]
- 3.Ceccherini-Silberstein T., Woess W. Growth and ergodicity of context-free languages. Trans. Amer. Math. Soc. 2002;354:4597–4625. [Google Scholar]
- 4.Dunwoody M.J. The accessibility of finitely presented groups. Invent. Math. 1985;81:449–457. [Google Scholar]
- 5.Frougny Ch., Sakarovitch J., Schupp P. Finiteness conditions on subgroups and formal language theory. Proc. London Math. Soc. 1989;58:74–88. [Google Scholar]
- 6.Harrison M.A. Addison-Wesley; Reading, MA: 1978. Introduction to Formal Language Theory. [Google Scholar]
- 7.Holt D., Rees S., Röver C., Thomas R. Groups with context-free co-word problem. J. London Math. Soc. 2005;71:643–657. [Google Scholar]
- 8.Imrich W. Combinatorial Mathematics V. Vol. 622. Springer; Berlin: 1977. Subgroup theorems and graphs. (Lecture Notes in Mathematics). [Google Scholar]
- 9.Lehnert J., Schweitzer P. The co-word problem for the Higman–Thompson group is context-free. Bull. Lond. Math. Soc. 2007;39:235–241. [Google Scholar]
- 10.Lyndon R.C., Schupp P.E. Vol. 89. Springer; Berlin: 1977. Combinatorial group theory. (Ergebnisse der Mathematik und ihrer Grenzgebiete). [Google Scholar]
- 11.Muller D.E., Schupp P.E. Groups, the theory of ends and context-free languages. J. Comput. System Sc. 1983;26:295–310. [Google Scholar]
- 12.Muller D.E., Schupp P.E. The theory of ends, pushdown automata, and second-order logic. Theoret. Comput. Sci. 1985;37:51–75. [Google Scholar]
- 13.Pélecq L. Automorphism groups of context-free graphs. Theoret. Comput. Sci. 1996;165:275–293. [Google Scholar]
- 14.Sageev M. Ends of group pairs and non-positively curved cube complexes. Proc. London Math. Soc. 1995;71:585–617. [Google Scholar]
- 15.Scott P. Ends of pairs of groups. J. Pure Appl. Algebra. 1977/78;11:179–198. [Google Scholar]
- 16.Sénizergues G. Automata, languages and programming. vol. 1099. Springer; Berlin: 1996. Semi-groups acting on context-free graphs. pp. 206–218. (Lecture Notes in Comput. Sci.). Paderborn, 1996. [Google Scholar]
- 17.Stallings J.R. On torsion-free groups with infinitely many ends. Ann. Math. 1968;88:312–334. [Google Scholar]
- 18.Swarup G.A. On the ends of pairs of groups. J. Pure Appl. Algebra. 1993;87:93–96. [Google Scholar]
- 19.Thomassen C., Woess W. Vertex-transitive graphs and accessibility. J. Combin. Theory Ser. B. 1993;58:248–268. [Google Scholar]
- 20.Woess W. Context-free pairs of groups. II - Cuts, tree sets, and random walks. Discrete Math. 2012;312:157–173. doi: 10.1016/j.disc.2011.07.026. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Woess W. Graphs and groups with tree-like properties. J. Combin. Theory, Ser. B. 1989;47:361–371. [Google Scholar]




