1 Introduction

The study of the anchored configuration spaces was initiated in Kozlov (2021) and continued in Hoekstra-Mendoza (2022), Kozlov (2022). These spaces are motivated by certain considerations in logistics and differ from classical configuration spaces in a crucial way. The formal definition is as follows.

Definition 1.1

Let X be a non-empty topological space, let K be a set of distinct points in X, and let n be an arbitrary positive integer. An anchored configuration space, denoted \(\Sigma (X,K,n)\), is defined as the subspace of the direct product \(X^n\), consisting of all tuples \((x_1,\dots ,x_n)\), such that \(K\subseteq \{x_1,\dots ,x_n\}\).

In this paper we continue with this line of research and generalize Definition 1.1, by relaxing the conditions on the allowed n-tuples \((x_1,\dots ,x_n)\).

Definition 1.2

As above, let X be a non-empty topological space, let K be a set of k distinct points in X, \(k\geqslant 0\), and let n be an arbitrary positive integer. Furthermore, let q be an arbitrary integer, such that \(k\geqslant q\geqslant 0\). A generalized anchored configuration space, denoted \(\Sigma (X,K,n,q)\), is defined as the subspace of the direct product \(X^n\), consisting of all tuples \((x_1,\dots ,x_n)\), such that \(|K\cap \{x_1,\dots ,x_n\}|\geqslant q\).

Clearly, the case \(k=q\) in Definition 1.2 corresponds to Definition 1.1.

So far, the anchored configuration spaces have been studied in the situation when X is a geometric realization of a graph G, and K is a subset of the set of the vertices of G. These spaces are of particular interest for the logistics, since they formalize networks with moving goods, with the extra condition that at each point in time a certain set of nodes is securely supplied with the goods. Accordingly, the generalized anchored configuration spaces relax this condition and only require that at each point in time at least q nodes out of some previously fixed set K are supplied.

The case of the anchored spaces, where the graph G is a tree has been settled in Kozlov (2021), where the homotopy type of \(\Sigma (X,K,n)\) has been completely determined. Accordingly, in this paper, we consider the case when G is not a tree.

As a first result we provide a non-recursive formula for the Euler characteristic of \(\Sigma (G,K,n,q)\), expressed as a sum of positive terms (rather than a sign-alternating sum). After that we turn to study the topology of these spaces.

We consider the case when G is a circle graph, which appears to be the most natural next step, after the case of G being a tree. This is the same as to consider the case when the topological space X is homeomorphic to a circle, since changing the positions of the points in K will produce homeomorphic anchored configuration spaces. Since all we need to record is the cardinality of K, we let \(\Omega (k,n)\) denote \(\Sigma (G,K,n)\), where G is a cycle graph with k vertices, and K is the set of vertices of G. Passing on to the generalized anchored configuration spaces, we let \(\Omega (k,n,q)\) denote \(\Sigma (G,K,n,q)\) in this case.

The spaces \(\Omega (2,n)\) were the focus of investigations in Kozlov (2022) and in [HM]. More specifically, the homology of these spaces was calculated in Kozlov (2022) using discrete Morse theory. This work was continued in [HM], where the cup product structure was completely described, and connection to the topological complexity was established.

In this paper we study the spaces \(\Omega (k,n)\) of an arbitrary k, and more generally \(\Omega (k,n,q)\), for an arbitrary \(q\leqslant k\), and calculate their homology groups in all dimensions. Rather than using discrete Morse theory, our method is to consider classical long sequences for the corresponding combinatorially given chain complexes. For the standard concepts of Algebraic Topology we refer to (Fulton 1995; Greenberg and Harper 1981; Hatcher 2002; Munkres 1984). Our study lies within the field of Applied Topology, see (Carlsson 2009; Edelsbrunner and Harer 2010; Kozlov 2008, 2020) for more information.

2 The Euler characteristic of the generalized anchored configuration spaces

Let G be a non-empty connected graph,Footnote 1 which is not a tree, and let V and E denote its sets of vertices and edges, respectively. Let K be an arbitrary subset of V, and let \(q\leqslant |K|\). In this section we give a theorem which provides a complete non-recursive and non-alternating formula for the Euler characteristic of the spaces \(\Sigma (G,K,n,q)\). Before we proceed with its formulation and its proof, let recall the following concepts.

First, for arbitrary positive integers \(a\geqslant b\) the Stirling numbers of the second kind, denoted , count the number of ways to partition a set of a labelled objects into b nonempty unlabelled subsets. Clearly, then is the number of ways to partition a set of a labelled objects into b nonempty labelled subsets.

Second, if we have a set U, a subset \(S\subseteq U\) and an element \(x\in U\), we let \(S\,\text {XOR}\,x\) denote the subset of U obtained from S by the exclusive or operation with respect to x. Formally, we set

$$\begin{aligned} S\,\text {XOR}\,x:={\left\{ \begin{array}{ll} S\setminus x,&{} \text { if }x\in S; \\ S\cup x,&{} \text { if }x\not \in S. \end{array}\right. } \end{aligned}$$

We can now formulate the main result of this section.

Theorem 2.1

Let G be an arbitrary non-empty connected graph, whose set of vertices is V, and whose set of edges is E. Let K be an arbitrary non-empty subset of V, and let q be a positive integer, such that \(q\leqslant |K|\). Finally, let n be a natural number, such that \(n\geqslant q\).

Assume the graph G is not a tree. Then, the Euler characteristic of the cell complex \(\Sigma (G,K,n,q)\) is given by the formulaFootnote 2

(2.1)

where \(k:=|K|\) and \(\varepsilon :=|E|-|V|\).

Before proceeding with the proof of Theorem 2.1, we would like to make a couple of remarks. First of all note that, since G is a non-empty connected and not a tree, it must have some vertices and some edges, and \(\varepsilon =|E|-|V|\geqslant 0\).

Consider the simplest case where G has one vertex and one loop edge. We then have \(\varepsilon =0\) and \(k=q=1\). The right hand side of (2.1) then reads \(\sum _{t=0}^{n-1}\left( {\begin{array}{c}n\\ t\end{array}}\right) 0^t=1\), where we use the convention for \(0^t\) from Footnote 2. On the other hand, the cell complex \(\Sigma (G,K,n,q)\) in this case is obtained from an n-torus by removing an n-cell, so the Euler characteristic of it is equal to \((-1)^{n-1}\).

For a slightly more involved situation, assume G has a single vertex and d loops, \(d\geqslant 2\). In that case, the right hand side of (2.1) becomes

$$\begin{aligned} \sum _{t=0}^{n-1}\left( {\begin{array}{c}n\\ t\end{array}}\right) (d-1)^t=d^n-(d-1)^n. \end{aligned}$$

The cell complex \(\Sigma (G,K,n,q)\) is the \((n-1)\)-skeleton of the cubical complex \(G^n\). The Euler characteristic is multiplicative, so \(\chi (G^n)=\chi (G)^n=(-1)^n(d-1)^n\). The cell complex \(\Sigma (G,K,n,q)\) is obtained from \(G^n\) by removing \(d^n\) n-cells, so we get

$$\begin{aligned} \chi (\Sigma (G,K,n,q))=\chi (G^n)-(-1)^n d^n=(-1)^{n-1}(d^n-(d-1)^n), \end{aligned}$$

which agrees with the right hand side of (2.1).

In general, the cubical complex \(\Sigma (G,K,n,q)\) has dimension \(n-q\). So, it makes sense to mention the lowest dimensional case, which is \(n=q\). Clearly, the complex \(\Sigma (G,K,q,q)\) is a disjoint union of \(q!\left( {\begin{array}{c}k\\ q\end{array}}\right) \) points, because we just need to choose which q of the k points in K will be covered by the n points, and after that permute arbitrarily these n points. On the other hand, in the right hand side of (2.1) we must have \(t=0\), so it becomes

which agrees with our computation.

Proof of Theorem 2.1

Set \(\alpha :=|V|\), \(\beta :=|E|\), and let us write \(V=\{v_1,\dots ,v_\alpha \}\), \(E=\{e_1,\dots ,e_\beta \}\). Since G is a connected graph which is not a tree, we have \(\beta \geqslant \alpha \), or, using our notation \(\varepsilon =\beta -\alpha \geqslant 0\). Without the loss of generality we can assume that \(K=\{v_1,\dots ,v_k\}\).

We can think about the Euler characteristic \(\chi (\Sigma (G,K,n,q))\) as a sum of \(\pm 1\), more precisely \((-1)^{\dim \sigma }\), ranging over the set of all cells \(\sigma \) in \(\Sigma (G,K,n,q)\). By definition of \(\Sigma (G,K,n,q)\), each such cell is indexed by a function \(\varphi :V\cup E\rightarrow 2^{[n]}\), which satisfies two conditions:

  1. (1)

    The number of vertices \(v\in K\), for which \(\varphi (v)\ne \emptyset \) is at least q;

  2. (2)

    The set of images \(\{\varphi (x)\,|\,x\in V\cup E\}\) is a partition of \([n]=\{1,\dots ,n\}\) into disjoint sets.

Let us now introduce some further notation. Consider the following collection of sets:

$$\begin{aligned} A_i:=&\,\varphi (v_i)\cup \varphi (e_i),\text { for }1\leqslant i\leqslant \alpha , \\ U:=&\,\bigcup _{i=\alpha +1}^\beta \varphi (e_i). \end{aligned}$$

Set \(P_\sigma :=(A_1,\dots ,A_\alpha ,U)\). Clearly, the tuple \(P_\sigma \) is an ordered set partition of [n], in which we allow empty sets. We shall now group all the cells \(\sigma \in \Sigma (G,K,n,q)\) according to their tuple \(P_\sigma \), and calculate the contribution to the Euler characteristic separately in each group.

Consider first an arbitrary tuple \(P_\sigma \), such that \(\cup _{i=k+1}^\alpha A_i\ne \emptyset \). Let M be the set of all cells with this tuple. Let l be the minimal element of \(\cup _{i=k+1}^\alpha A_i\), and let t denote the index \(k+1\leqslant t\leqslant \alpha \), for which \(l\in A_t=\varphi (v_t)\cup \varphi (e_t)\). We can then define an involution \(\mu :M\rightarrow M\), by moving the element l from \(\varphi (v_t)\) to \(\varphi (e_t)\), and vice versa. Formally, we set

$$\begin{aligned} \mu (\varphi )(u):= {\left\{ \begin{array}{ll} \varphi (u)\,\text {XOR}\,l,&{}\text { if } u=v_t, \text { or } u=e_t;\\ \varphi (u), &{} \text { otherwise}. \end{array}\right. } \end{aligned}$$

Since \(k+1\leqslant t\leqslant \alpha \), there are no conditions on \(\varphi (v_t)\), so the involution \(\mu \) is well-defined. It produces a perfect matching on the set M. The difference of dimensions of any two matched cells is 1, so their contributions to the Euler characteristic of \(\Sigma (G,K,n,q)\) have opposite signs. It follows that the contribution of each matched pair is 0, and hence also the total contribution of all the cells in M is 0.

This means, that when computing the Euler characteristic of \(\Sigma (G,K,n,q)\) we can limit ourselves to considering the tuples \(P_\sigma \), for which \(A_{k+1}=\dots =A_{\alpha }=\emptyset \), which we do for the rest of the argument.

Assume now \(\sigma \) is one of the remaining cells. Set

$$\begin{aligned} \{i_1,\dots ,i_m\}:=\{1\leqslant i\leqslant k\,|\,\varphi (v_i)\ne \emptyset \},\text { where }i_1<\dots <i_m, \end{aligned}$$

and set \(r(\sigma ):=i_q\). This is well-defined since by condition (1) above, we know that \(m\geqslant q\).

Let us now fix the following data \(\Omega \):

  • The index set \(\{i_1,\dots ,i_q\}\), where \(i_1<\dots <i_q\),

  • The non-empty sets \(A_{i_1}\), \(\dots \), \(A_{i_q}\).

Let M denote the set of all cells with this data \(\Omega \) (and with \(A_{k+1}=\dots =A_\alpha =\emptyset \)). Note, that for each cell \(\sigma \in M\), we have \(r(\sigma )=i_q\). Let us calculate the total contribution of the cells in M to the Euler characteristic of \(\Sigma (G,K,n,q)\).

Let \(\widetilde{M}\) denote the subset of M consisting of all cells \(\sigma \) for which the union \(\bigcup _{j=r(\sigma )+1}^s A_j\) is not empty. For \(\sigma \in \widetilde{M}\), set \(\rho (\sigma ):=\min \bigcup _{j={r(\sigma )+1}}^s A_j\). Let \(s\geqslant t>r(\sigma )\) be the index, for which \(\rho (\sigma )\in A_t\). In a complete analogy to the above, we define a matching \(\mu :\widetilde{M}\rightarrow \widetilde{M}\) by moving the element \(\rho (\sigma )\) from \(\varphi (v_t)\) to \(\varphi (e_t)\) and vice versa. This is a perfect matching on \(\widetilde{M}\), since \(t\geqslant i_q+1\), so there is no restriction \(\varphi (v_t)\) being non-empty. The difference of the dimensions of the matched cells is equal to 1. This implies that the total contribution to the Euler characteristic by the cells from \(\widetilde{M}\) is 0. We can therefore from now on concentrate on the cells from \(M\setminus \widetilde{M}\).

For \(1\leqslant j\leqslant q\), we set \(l_j\) to be the minimum of \(A_{i_j}\). Since \(A_{i_j}\ne \emptyset \), the element \(l_j\) is well-defined.

We now partition the set \(M\setminus \widetilde{M}\) into the sets \(M_1,M_2,\dots ,M_{q+1}\) as follows. For each cell \(\sigma \in M\setminus \widetilde{M}\) we define \(h(\sigma )\) to be the index z, uniquely determined by the following condition:

$$\begin{aligned} \varphi (v_{i_z})\ne l_z,\text { and }\varphi (v_{i_j})=l_j,\text { for all }j<z. \end{aligned}$$

Here, if \(\varphi (v_{i_j})=l_j\), for all \(1\leqslant j\leqslant k\), we set \(h(\sigma )=q+1\). Clearly \(1\leqslant h(\sigma )\leqslant q+1\), and we define the above partition of \(M\setminus \widetilde{M}\) by saying that \(\sigma \in M_i\) if and only if \(h(\sigma )=i\).

Next, fix an index \(1\leqslant d\leqslant q\), and calculate the contribution of the cells in \(M_d\). Same way as earlier in the proof, we can define an involution \(\mu :M_d\rightarrow M_d\). This time it is shifting \(l_d\) from \(\varphi (v_{i_d})\) to \(\varphi (e_{i_d})\) and back. Formally,

$$\begin{aligned} \mu (\varphi )(u):= {\left\{ \begin{array}{ll} \varphi (u)\,\text {XOR}\,l_d,&{}\text { if } u=v_{i_d}, \text { or } u=e_{i_d};\\ \varphi (u), &{} \text { otherwise}. \end{array}\right. } \end{aligned}$$

Since \(\varphi (v_{i_d})\ne l_d\), the involution \(\mu \) is well-defined. As before, it matches cells with dimension difference 1, so the contribution of these two cells, and hence also the contribution of the total set \(M_d\) to the Euler characteristic of \(\Sigma (G,K,n,q)\) is 0.

The only interesting contribution occurs in \(M_{q+1}\). Note, that all cells in \(M_{q+1}\) have dimension \(n-q\). Indeed, if \(\sigma \in M_{q+1}\), we have \(\varphi (v_{i_j})=l_j\), for all \(1\leqslant j\leqslant q\), and \(\varphi (v_t)=\emptyset \), for \(t\notin \{i_1,\dots ,i_q\}\). It follows that \(\sum _{v\in V}|\varphi (v)|=q\), hence \(\sum _{e\in E}|\varphi (e)|=n-q\).

This means that each \(\sigma \in M_{q+1}\) gives the contribution \((-1)^{n-q}\), and we need to compute the cardinality \(|M_{q+1}|\). Set \(W:=[n]\setminus \bigcup _{j=1}^q A_{i_j}\). The cells \(\sigma \in M_{q+1}\) are obtained by arbitrarily distributing the elements of W among the sets \(\varphi (e_j)\), for

  • Either \(j\in \{1,\dots ,r(\sigma )\}\setminus \{i_1,\dots ,i_q\}\),

  • Or \(\alpha +1\leqslant j\leqslant \beta \).

In total, there are \(\beta -\alpha +r(\sigma )-q=\varepsilon +r(\sigma )-q\) such sets, so we have \(|M_{q+1}|=(\varepsilon +r(\sigma )-q)^{|W|}\).

At this point, let us specifically consider what happens when \(\varepsilon +r(\sigma )-q=0\), which of course is equivalent to saying that \(\varepsilon =0\) and \(r(\sigma )=q\). In this case, there are no sets to distribute the elements of W to. Therefore, the number of ways to distribute the elements of W, and hence also the cardinality of \(M_{q+1}\), is equal to 0, unless, of course, the set W itself is empty, in which case the cardinality of \(M_{q+1}\) is equal to 1. Note, how this is compatible with our convention for \(0^t\), cf. the footnote on page 3.

Summing over all choices of \(\Omega \), we have

$$\begin{aligned} \chi (\Sigma (G,K,n,q))=\sum _{\Omega }(-1)^{n-q}(\varepsilon +i_q-q)^{|W|}. \end{aligned}$$
(2.2)

To further evaluate (2.2) we can choose the data \(\Omega \) in the following order. First, pick r, such that \(q\leqslant r\leqslant k\). Set \(i_q:=r\) and choose the remaining elements \(i_1,\dots ,i_{q-1}\), such that \(i_1<\dots<i_{q-1}<i_q\), in \(\left( {\begin{array}{c}r-1\\ q-1\end{array}}\right) \) ways. After that, choose the cardinality \(t:=|W|\), we have \(0\leqslant t\leqslant n-q\). Proceed by choosing W itself, there are \(\left( {\begin{array}{c}n\\ t\end{array}}\right) \) possibilities. Finally, distribute the elements of \([n]\setminus W\) into the sets \(A_{i_1},\dots ,A_{i_q}\), so that they are non-empty. The number of ways to do that is .

Summarizing, we obtain

Now, set \(\lambda :=\varepsilon +r-q\). Then \(r=q,\dots ,k\) translates to \(\lambda =\varepsilon ,\dots ,\varepsilon +k-q\), and \(r-1=\lambda -\varepsilon +q-1\), so we obtain (2.1). \(\square \)

We can now specialize Theorem 2.1 to the case of the regular anchored configuration spaces.

Corollary 2.2

The Euler characteristic of \(\Sigma (G,K,n)\) is given by the formula

(2.3)

Proof

Substitute \(q:=k\) into (2.1). We then have \(\lambda =\varepsilon \), so the first summation is trivial, and the \(\left( {\begin{array}{c}\lambda -\varepsilon +q-1\\ q-1\end{array}}\right) =\left( {\begin{array}{c}q-1\\ q-1\end{array}}\right) =1\). This yields (2.3). \(\square \)

3 The chain complexes for the generalized anchored configuration spaces on circle graphs

Let us fix positive integers k and n, such that \(n\geqslant k\geqslant 2\). Let \(C_k\) be a cycle graph with k vertices and k edges. Let E denote its set of edges, and let V denote its set of vertices. We can choose the index set to be \(\mathbb {Z}_k\), and write \(E=\{e_1,\dots ,e_k\}\) and \(V=\{v_1,\dots ,v_k\}\), in such a way that the adjacency map \(\partial :E\rightarrow 2^V\) is given by \(\partial (e_i)=\{v_i,v_{i+1}\}\).Footnote 3

Definition 3.1

Given n, a vertex-edge n -tuple is an n-tuple \(\sigma =(\sigma _1,\dots ,\sigma _n)\), such that \(\sigma _i\in V\cup E\), for all i.

For a vertex-edge n-tuple \(\sigma =(\sigma _1,\dots ,\sigma _n)\) we define two subsets of \(\mathbb {Z}_k\), which we call vertex and edge support sets, and which we denote \(\textrm{supp}_V(\sigma )\) and \(\textrm{supp}_E(\sigma )\), as follows:

$$\begin{aligned} \textrm{supp}_V(\sigma ):=\{i\in \mathbb {Z}_k\,|\,v_i\in \{\sigma _1,\dots ,\sigma _n\}\}, \end{aligned}$$

and

$$\begin{aligned} \textrm{supp}_E(\sigma ):=\{j\in \mathbb {Z}_k\,|\,e_j\in \{\sigma _1,\dots ,\sigma _n\}\}. \end{aligned}$$

Finally, the dimension of \(\sigma \) is defined to be \(\dim \sigma :=|\{i\,|\,\sigma _i\in E\}|\). So, in particular, we have \(0\leqslant \dim \sigma \leqslant n\). \(\square \)

Clearly, for any vertex-set n-tuple \(\sigma =(\sigma _1,\dots ,\sigma _n)\), the set \(\{\sigma _1,\dots ,\sigma _n\}\) is a disjoint union of the sets \(\{v_i\,|\,i\in \textrm{supp}_V(\sigma )\}\) and \(\{e_j\,|\,j\in \textrm{supp}_E(\sigma )\}\).

The direct product \(\underbrace{C_k\times \dots \times C_k}_n\) has a natural structure of the cubical complex, whose geometric realization is an n-torus. Its cells are indexed by the vertex-edge n-tuples, whose dimensions, as described in Definition 3.1, coincide with the geometric dimension of the corresponding cells. Therefore, the chain complex whose chain groups are generated by the vertex-edge n-tuples, with appropriately defined boundary operators, will calculate the homology of an n-torus.

We shall now consider the chain complexes whose chain groups are generated by the vertex-edge n-tuples, satisfying additional conditions on the vertex support set \(\textrm{supp}_V(\sigma )\).

Definition 3.2

Assume we are given an arbitrary subset \(P\subseteq \mathbb {Z}_k\), and a nonnegative integer q, such that \(q\leqslant |P|\). We define a chain complex \(\mathcal {C}^{P,q}=(C^{P,q}_*,\partial _*)\), where \(C^{P,q}_*\) are free abelian groups, as follows.

  1. (1)

    For each d, the free abelian group \(C^{P,q}_d\) is generated by the vertex-edge n-tuples \(\sigma =(\sigma _1,\dots ,\sigma _n)\), with \(\dim \sigma =d\), satisfying the following two conditions:

    • \(\textrm{supp}_V(\sigma )\subseteq P\);

    • \(|\textrm{supp}_V(\sigma )|\geqslant q\).

  2. (2)

    The boundary operator takes the vertex-edge n-tuple \(\sigma \), and replaces, with an appropriate sign, any of the edges \(\sigma _i\in E\) by any of its boundary vertices, subject to the condition that the index of that vertex lies in P. Formally we have

    $$\begin{aligned} \partial \sigma =\sum _{i\in \textrm{supp}_E(\sigma )}\sum _{\tilde{\sigma }_i\in \partial \sigma _i\cap V_P} (-1)^{\rho (\sigma ,i)} (\sigma _1,\dots ,\sigma _{i-1},\tilde{\sigma }_i,\sigma _{i+1},\dots ,\sigma _n), \end{aligned}$$
    (3.1)

    where \(V_P:=\{v_j\,|\,j\in P\}\), and \(\rho (\sigma ,i):=|\textrm{supp}_E(\sigma )\cap \{1,\dots ,i-1\}|\).

Note the special case when \(|P|=q\), when the chain groups \(C_d^{P,q}\) are generated by all \(\sigma \), satisfying \(\dim \sigma =d\) and \(\textrm{supp}_V(\sigma )=P\).

For convenience, we introduce additional notation for the complement set \(H:=\mathbb {Z}_k\setminus P\), and \(h:=|H|=n-|P|\).

Remark 3.3

Obviously, \(C_i^{P,q}=0\), for \(i<0\). Furthermore, if a vertex-edge n-tuple \(\sigma =(\sigma _1,\dots ,\sigma _n)\) satisfies \(|\textrm{supp}_V(\sigma )|\geqslant q\), then \(\dim \sigma \leqslant n-q\), so \(C_i^{P,q}=0\) also for all \(i>n-q\).

In what follows, we shall compute the homology groups of the chain complexes \(\mathcal {C}^{P,q}\). When P is a proper subset of \(\mathbb {Z}_k\), the complexes \(\mathcal {C}^{P,q}\) do not correspond to topological spaces, and play here an auxilliary role. Accordingly, the case which interests us most is when \(P=\mathbb {Z}_k\), since it gives us the homology of the generalized anchored configuration spaces \(\Omega (k,n,q)\). We stress this observation for a later reference.

Fact 3.4

The chain complex \(\mathcal {C}^{\mathbb {Z}_k,q}\) is isomorphic to the cubical chain complex of the generalized anchored configuration space \(\Omega (k,n,q)\). In particular, the chain complex \(\mathcal {C}^{\mathbb {Z}_k,k}\) is isomorphic to the cubical chain complex of the anchored configuration space \(\Omega (k,n)\).

Our calculation will proceed by induction, and we shall compute the homology groups for all values of P and q.

4 Calculation of the homology groups of \(\mathcal {C}^{P,q}\)

4.1 The case \(q=0\)

Let us start with the case \(q=0\). When \(q=0\) the condition \(|\textrm{supp}_V(\sigma )|\geqslant q\) is void, which radically simplifies the situation. The homology is then given by the following proposition.

Proposition 4.1

  1. (1)

    The chain complex \(\mathcal {C}^{\mathbb {Z}_k,0}\) calculates the homology of an n-torus. In fact, it is a chain complex of the cubical complex obtained as an n-fold direct product of the k-cycle.

  2. (2)

    When P is a proper subset of \(\mathbb {Z}_k\), we have \(H_n(\mathcal {C}^{P,0})\approx \mathbb {Z}^{h^n}\), and all other homology groups are trivial.

Proof

Statement (1) is trivial and simply formalizes our earlier observation, so we proceed to proving the statement (2).

Let \(\widetilde{C}_k\) be the graph which is in a sense dual to \(C_k\). It is also a cycle graph with k vertices and k edges, but with a different indexing. Let \(\widetilde{E}\) denote its set of edges, and let \(\widetilde{V}\) denote its set of vertices. Both again are indexed by \(\mathbb {Z}_k\), \(\widetilde{E}=\{\tilde{e}_1,\dots ,\tilde{e}_k\}\) and \(\widetilde{V}=\{\tilde{v}_1,\dots ,\tilde{v}_k\}\), but now in such a way, that the boundary map \(\partial :\widetilde{E}\rightarrow 2^{\widetilde{V}}\) is given by \(\partial (\tilde{e}_i)=\{\tilde{v}_{i-1},\tilde{v}_i\}\). So, compared to \(C_k\), the relative indexing is shifted by 1.

Let G denote the subgraph of the cycle graph \(\widetilde{C}_k\), obtained by deleting all edges indexed by H. Consider the cubical complex \(G^n=\underbrace{G\times \dots \times G}_{n}\), and consider the cochain complex of \(G^n\), let us call it \(\tilde{\mathcal {C}}^*\). It is easy to see that \(\mathcal {C}^{P,0}\) is isomorphic to this cochain complex, with the isomorphism \(\varphi \) given by \(\varphi (v_i):=\tilde{e}_i\), and \(\varphi (e_i):=\tilde{v}_i\), for all \(i\in \mathbb {Z}_k\). In particular, we have \(H_i(\mathcal {C}^{P,0})\approx H^{n-i}(\tilde{\mathcal {C}}^*)\), for all i.

On the other hand, we assumed that \(h\geqslant 1\), so topologically, the graph G consists of h disjoint intervals. In particular, the direct product \(G^n\) is homotopy equivalent to the discrete space with \(h^n\) points. Therefore, we have

$$\begin{aligned} H^i(\tilde{\mathcal {C}}^*)={\left\{ \begin{array}{ll} \mathbb {Z}^{h^n},&{}\text { if } i=0;\\ 0, &{}\text { otherwise,} \end{array}\right. } \end{aligned}$$

and it follows that

$$\begin{aligned} H_i(\mathcal {C}^{P,0})={\left\{ \begin{array}{ll} \mathbb {Z}^{h^n},&{}\text { if } i=n;\\ 0, &{}\text { otherwise.} \end{array}\right. } \end{aligned}$$

\(\square \)

4.2 Structure of the relative chain complexes

Assume now \(q\geqslant 1\), and consider the chain complex \(\mathcal {C}^{P,q-1}\). The condition as to which vertex-edge n-tuples are allowed to be taken as generators of the chain groups is weaker for \(\mathcal {C}^{P,q-1}\), than it is for \(\mathcal {C}^{P,q}\), so the latter is its chain subcomplex. The following lemma states that their quotient can be decomposed as a direct sum of chain complexes of the same type.

Lemma 4.2

For any \(P\subseteq \mathbb {Z}_k\), and any \(q\geqslant 1\), we have the following chain complex isomorphism:

$$\begin{aligned} \mathcal {C}^{P,q-1}/\mathcal {C}^{P,q}\approx \bigoplus _S\mathcal {C}^{S,q-1}, \end{aligned}$$
(4.1)

where the sum is taken over all subsets of P of cardinality \(q-1\).

Proof

For each d, the relative chain group \(C_d(\mathcal {C}^{P,q-1}/\mathcal {C}^{P,q})=C_d^{P,q-1}/C_d^{P,q}\) is generated by the cosets of \(C_d^{P,q}\), whose representatives are the vertex-edge n-tuples \(\sigma =(\sigma _1,\dots ,\sigma _n)\), satisfying \(|\textrm{supp}_V(\sigma )|=q-1\).

Call such a coset \(\bar{\sigma }\). The relative boundary operator in \(\mathcal {C}^{P,q-1}/\mathcal {C}^{P,q}\) is then given by the following formula, cf. (3.1),

$$\begin{aligned} \partial \bar{\sigma }=\sum _{i\in \textrm{supp}_E(\sigma )}\sum _{\tilde{\sigma }_i\in \partial \sigma _i\cap \bar{V}} (-1)^{\rho (\sigma ,i)} (\sigma _1,\dots ,\sigma _{i-1},\tilde{\sigma }_i,\sigma _{i+1},\dots ,\sigma _n), \end{aligned}$$
(4.2)

where \(\bar{V}=\{v_j\,|\,j\in \textrm{supp}_V(\sigma )\}\), and \(\rho (\sigma ,i)\) is the same as in (3.1).

In other words, when taking the boundary, we are allowed to replace an edge with any of its boundary vertices, subject to the condition, that this does not change the vertex support set.

Since the boundary operator preserves the vertex support set, the chain complex \(\mathcal {C}^{P,q-1}/\mathcal {C}^{P,q}\) decomposes as a direct sum, with direct summands indexed by all possible choices of \(\textrm{supp}_V(\sigma )\), which is the same as to say all possible choices of \((q-1)\)-subsets of P. This proves (4.1). \(\square \)

4.3 The case \(P\ne \mathbb {Z}_k\)

When P is a proper subset of \(\mathbb {Z}_k\), it turns out that all the homology of the chain complex \(\mathcal {C}^{P,q}\) is concentrated in its top dimension.

Theorem 4.3

Assume P is a proper subset of \(\mathbb {Z}_k\). Then, the homology of \(\mathcal {C}^{P,q}\) is concentrated in dimension \(n-q\), in other words, \(H_i(\mathcal {C}^{P,q})=0\), for \(i\ne n-q\).

Proof

The proof proceeds by induction on q. For the base case \(q=0\), this has been proved in Proposition 4.1(2).

Assume now \(q\geqslant 1\). Since the chain complex \(\mathcal {C}^{P,q}\) is a subcomplex of \(\mathcal {C}^{P,q-1}\), we have the following long exact sequence:

$$\begin{aligned} \dots \rightarrow H_*(\mathcal {C}^{P,q})\rightarrow H_*(\mathcal {C}^{P,q-1})\rightarrow H_*(\mathcal {C}^{P,q-1}/\mathcal {C}^{P,q}) {\mathop {\rightarrow }\limits ^{\partial }} H_{*-1}(\mathcal {C}^{P,q})\rightarrow \dots \end{aligned}$$
(4.3)

Note, that by induction assumption, the homology of the complex \(\mathcal {C}^{P,q-1}\) is concentrated in dimension \(n-(q-1)=n-q+1\). Furthermore, due to dimensional reasons, see Remark 3.3, the homology of \(\mathcal {C}^{P,q}\) must be 0 in dimension \(n-q+1\) and above.

By Lemma 4.2 we have \(\mathcal {C}^{P,q-1}/\mathcal {C}^{P,q}\approx \oplus _S\mathcal {C}^{S,q-1}\), where the sum is taken over all subsets of P of cardinality \(q-1\). Since each S is a proper subset of \(\mathbb {Z}_k\), by induction assumption, the homology of \(\mathcal {C}^{S,q-1}\) is also concentrated in dimension \(n-q+1\). It follows that the only nontrivial part of the long exact sequence (4.3) is

$$\begin{aligned} 0\rightarrow H_{n-q+1}(\mathcal {C}^{P,q-1})\rightarrow H_{n-q+1}(\mathcal {C}^{P,q-1}/\mathcal {C}^{P,q})\rightarrow H_{n-q}(\mathcal {C}^{P,q})\rightarrow 0, \end{aligned}$$

so it follows that \(H_i(\mathcal {C}^{P,q})=0\), for \(i\ne n-q\). \(\square \)

4.4 The case \(P=\mathbb {Z}_k\)

We are now ready to deal with the main case.

Theorem 4.4

The homology of the chain complex \(\mathcal {C}^{\mathbb {Z}_k,q}\) is given by the following formula:

$$\begin{aligned} H_i(\mathcal {C}^{\mathbb {Z}_k,q})\cong {\left\{ \begin{array}{ll} \mathbb {Z}^{\left( {\begin{array}{c}n\\ i\end{array}}\right) },&{} \text { if } 0\leqslant i\leqslant n-q-1, \\ 0,&{} \text { if } i<0\text { or }i>n-q. \end{array}\right. } \end{aligned}$$
(4.4)

Proof

Once again, we proceed by induction on q. When \(q=0\), we simply have the homology of the n-torus, see Proposition 4.1(1).

Assume now \(q\geqslant 1\). Consider again the long exact sequence:

$$\begin{aligned} \dots \rightarrow H_*(\mathcal {C}^{\mathbb {Z}_k,q})\rightarrow H_*(\mathcal {C}^{\mathbb {Z}_k,q-1})\rightarrow H_*(\mathcal {C}^{\mathbb {Z}_k,q-1}/\mathcal {C}^{\mathbb {Z}_k,q}) {\mathop {\rightarrow }\limits ^{\partial }} H_{*-1}(\mathcal {C}^{\mathbb {Z}_k,q})\rightarrow \dots \end{aligned}$$
(4.5)

Lemma 4.2 together with Theorem 4.3 imply that \(H_i(\mathcal {C}^{\mathbb {Z}_k,q-1}/\mathcal {C}^{\mathbb {Z}_k,q})=0\), for all \(i\ne n-q+1\). Furthermore, for dimensional reasons, we have \(C_i^{\mathbb {Z}_k,q}=0\), whenever \(i<0\), or \(i>n-q\), see Remark 3.3, so we know that we must have \(H_i(\mathcal {C}^{\mathbb {Z}_k,q})=0\), unless \(0\leqslant i\leqslant n-q\).

It follows that the long exact sequence (4.5) falls into several short pieces \(H_i(\mathcal {C}^{\mathbb {Z}_k,q})\approx H_i(\mathcal {C}^{\mathbb {Z}_k,q-1})\), for \(0\leqslant i\leqslant n-q-1\), and one longer piece

$$\begin{aligned}{} & {} 0\rightarrow H_{n-q+1}(\mathcal {C}^{\mathbb {Z}_k,q-1})\rightarrow H_{n-q+1}(\mathcal {C}^{\mathbb {Z}_k,q-1}/\mathcal {C}^{\mathbb {Z}_k,q})\rightarrow \nonumber \\{} & {} \quad H_{n-q}(\mathcal {C}^{\mathbb {Z}_k,q}) \rightarrow H_{n-q}(\mathcal {C}^{\mathbb {Z}_k,q-1})\rightarrow 0. \end{aligned}$$
(4.6)

This implies the statement of the theorem. \(\square \)

Note, that for dimensional reasons, see Remark 3.3, the top-dimensional homology group \(H_{n-q}(\mathcal {C}^{\mathbb {Z}_k,q})\) must be free. The Betti number \(\beta _{n-q}(\mathcal {C}^{\mathbb {Z}_k,q})\) can then be computed using the Euler-Poincaré formula.

When G is a cycle, we have \(|V|=|E|\). This means that \(\varepsilon =0\), so in (2.3) all the terms except for the first one vanish, and we have the following formula.

Corollary 4.5

We have .

Together with Theorem 4.4 this finishes the calculation of the Betti numbers of \(\Omega (n,k)\).

For the generalized anchored configuration spaces, we need to substitute \(\varepsilon =0\) in (2.1), and obtain the following corollary.

Corollary 4.6

Assume \(1\leqslant q\leqslant k\), we have

Again, together with Theorem 4.4 this gives us the Betti numbers of \(\Omega (n,k,q)\).