---
title: "Accessing Properties of the Cohomology Module"
canonical: "https://docs.magma-maths.org/v2.30-1/FiniteGroups/CohomologyAndExtensions/structure-invar.html"
source: "https://docs.magma-maths.org/v2.30-1/FiniteGroups/CohomologyAndExtensions/structure-invar.md"
part: "Finite Groups"
chapter: "Cohomology and Extensions"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Finite Groups", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/index-finite-groups.md"}
  - {"title": "Cohomology and Extensions", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/CohomologyAndExtensions/index-cohomology-and-extensions.md"}
prev: {"title": "Creation of a Cohomology Module", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/CohomologyAndExtensions/creation.md"}
next: {"title": "Calculating Cohomology", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/CohomologyAndExtensions/cohomology-groups.md"}
intrinsics:
  - {"name": "Module", "signature": "Module(CM): ModCoho -> ModGrp"}
  - {"name": "Invariants", "signature": "Invariants(CM): ModCoho -> SeqEnum"}
  - {"name": "Dimension", "signature": "Dimension(CM): ModCoho -> RngIntElt"}
  - {"name": "Ring", "signature": "Ring(CM): ModCoho -> ModGrp"}
  - {"name": "Group", "signature": "Group(CM): ModCoho -> Grp"}
  - {"name": "FPGroup", "signature": "FPGroup(CM): ModCoho -> Grp, HomGrp"}
  - {"name": "MatrixOfElement", "signature": "MatrixOfElement(CM, g): ModCoho, GrpElt -> AlgMatElt"}
examples:
  - "ex-fdbfad"
---

# Accessing Properties of the Cohomology Module

The functions described in this section merely return data used to define the cohomology module. In each case, the argument ${\rm CM}$ must be a cohomology module returned by a call to `CohomologyModule`.

<a id="function-module-modcoho"></a>
## `Module(CM): ModCoho -> ModGrp`

The $K[G]$-module used to define the cohomology module ${\rm CM}$. An error occurs if ${\rm CM}$ was defined by an action on a finitely generated abelian group.

<a id="function-invariants-modcoho"></a>
## `Invariants(CM): ModCoho -> SeqEnum`

Given a cohomology module ${\rm CM}$ that was defined by an action on a finitely generated abelian group $A$, return the invariants of $A$. If ${\rm CM}$ was not defined by an action on an abelian group, an error results.

<a id="function-dimension-modcoho"></a>
## `Dimension(CM): ModCoho -> RngIntElt`

Let ${\rm CM}$ be a cohomology module. If ${\rm CM}$ was defined by the action of a group on an $R$-module $M$, return the dimension of $M$. In the case in which ${\rm CM}$ was defined by the action of a group on a finitely generated abelian group $A$, the rank of $A$ is returned.

<a id="function-ring-modcoho"></a>
## `Ring(CM): ModCoho -> ModGrp`

The ring over which the module used to define the cohomology module ${\rm CM}$ is defined. If ${\rm CM}$ is defined in terms of an action on a finitely generated abelian group $A$, then the ring will be the integers if $A$ is infinite, and the integers modulo the exponent of $A$ if $A$ is finite.

<a id="function-group-modcoho"></a>
## `Group(CM): ModCoho -> Grp`

The group used to define action on the cohomology module ${\rm CM}$.

<a id="function-fpgroup-modcoho"></a>
## `FPGroup(CM): ModCoho -> Grp, HomGrp`

Given a cohomology module ${\rm CM}$ with associated group $G$, return a finitely presented group $F$ isomorphic to $G$ and the isomorphism from $F$ to $G$. This presentation is on a strong generating set if $G$ is a permutation or matrix group. It is used in the construction of presentations of extensions returned by the function [`Extension`](https://docs.magma-maths.org/v2.30-1/FiniteGroups/CohomologyAndExtensions/extensions.md#function-grpcoh-extension).

<a id="function-matrixofelement-modcoho-grpelt"></a>
## `MatrixOfElement(CM, g): ModCoho, GrpElt -> AlgMatElt`

The matrix representing the action of the element $g$ in the group of ${\rm CM}$ on the module of ${\rm CM}$.

<a id="example-ex-fdbfad"></a>
## `Example: Properties of a Cohomology Module (ex-fdbfad)`

Following on from example [Cohomology Module for a Cyclic Group](https://docs.magma-maths.org/v2.30-1/FiniteGroups/CohomologyAndExtensions/creation.md#example-ex-0c0fe6) above:

```magma
> G:=CyclicGroup(4);
> mats := [ Matrix(Integers(),2,2,[1,2,1,3]) ];
> invar := [2,4];
> CM := CohomologyModule(G,invar,mats);
> Invariants(CM);
[ 2, 4 ]
> FPGroup(CM);
Finitely presented group on 1 generator
Relations
    $.1^4 = Id($)
Mapping from: GrpFP to GrpPerm: G
> MatrixOfElement(CM, G.1^2);
[1 0]
[0 3]
```
