How to compute group cohomology $H^2_\sigma(\mathbb{Z}\times \mathbb{Z}, \mathbb{Z}_2\times \mathbb{Z}_2)$ with nontrivial group action $\sigma$.
$$\mathbb{Z}\times \mathbb{Z}= \langle a,b| a b =ba\rangle$$ $$\mathbb{Z}_2\times \mathbb{Z}_2= \langle c,d| c^2=1=d^2,c d =dc\rangle$$
If I require the group action is $\sigma(a): c\rightarrow d$, $\sigma(a): d\rightarrow c$, $\sigma(b): c\rightarrow d$, $\sigma(b): d\rightarrow c$
My questions:
how to compute group cohomology $H^2_\sigma(\mathbb{Z}\times \mathbb{Z}, \mathbb{Z}_2\times \mathbb{Z}_2)$?
What's the group $(\mathbb{Z}_2\times \mathbb{Z}_2) \rtimes_\sigma (\mathbb{Z}\times \mathbb{Z} )$ ?
You can resolve these two questions using the
polycyclicpackage, which comes bundled with GAP. There are multiple ways to input the enter the problem into GAP. I'll choose one via matrix modules: The group $G := \mathbb{Z}^2$ with generators $a,b$ is acting here on the vector space $\mathbb{F}_2$ (with basis $c,d$), with both generators of $G$ acting via the matrix $\left(\begin{smallmatrix} 0&1\\1&0\end{smallmatrix}\right)$. So:Unfortunately, $h2$ is not a nice group object; one has to read the documentation of
TwoCohomologyCRto learn how to interpret its output. Here, we are interested inh2.factor, which is:This output means that the second cohomology group has one generator (in
gens), with relative order 2 -- i.e. it is $\mathbb{Z}_2$.To get the corresponding extensions, use $ExtensionClassesCR$: