---
title: "Double Covers of the Alternating and Symmetric Groups"
canonical: "https://docs.magma-maths.org/v2.30-1/FiniteGroups/AlmostSimpleGroups/double-covers-alt-sym.html"
source: "https://docs.magma-maths.org/v2.30-1/FiniteGroups/AlmostSimpleGroups/double-covers-alt-sym.md"
part: "Finite Groups"
chapter: "Almost Simple Groups"
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": "Almost Simple Groups", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/AlmostSimpleGroups/index-almost-simple-groups.md"}
prev: {"title": "Introduction", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/AlmostSimpleGroups/introduction.md"}
next: {"title": "Creating Finite Groups of Lie Type", "source": "https://docs.magma-maths.org/v2.30-1/FiniteGroups/AlmostSimpleGroups/standard.md"}
intrinsics:
  - {"name": "DoubleCoverSymmetricGroup", "signature": "DoubleCoverSymmetricGroup(n: parameters): RngIntElt -> GrpMat"}
  - {"name": "DoubleCoverAlternatingGroup", "signature": "DoubleCoverAlternatingGroup(n: parameters): RngIntElt -> GrpMat"}
---

# Double Covers of the Alternating and Symmetric Groups

These functions construct representations of the groups $2A_n$ and $2S_n$ as matrix groups over a field ${\bf F}_{p}$ or (usually) ${\bf F}_{p^2}$ for an odd prime $p$. Their dimension is $2^d$ with $d = (n-1)/2,\, (n-2)/2$, or $(n-3)/2$ depending on $n \bmod 6$. The method used is described in [[Maa09](https://docs.magma-maths.org/v2.30-1/references.md#cite-maas)].

<a id="function-doublecoversymmetricgroup-rngintelt"></a>
## `DoubleCoverSymmetricGroup(n: parameters): RngIntElt -> GrpMat`

```magma
Sign          : MonStgElt                    Default: "-"
Characteristic: RngIntElt                    Default: 3
```

The double cover $2S_n$ of the symmetric groups $S_n$ of degree $n$ for $n \ge 4$ represented as a matrix group over the field ${\bf F}_{p}$ or (usually) ${\bf F}_{p^2}$, where $p$, which defaults to $3$, can be specified as `Characteristic`.

There are two isomorphism classes of groups with this structure, which are distinguished by the optional parameter `Sign`, which can be positive, (`Sign` = “+” or “plus”), or (default) negative (`Sign` = “-” or “minus”). The inverse images of the Coxeter generators of $S_n$ have order $2$ when `Sign` is “+” and $4$ when `Sign` is “-“.

<a id="function-doublecoveralternatinggroup-rngintelt"></a>
## `DoubleCoverAlternatingGroup(n: parameters): RngIntElt -> GrpMat`

```magma
Characteristic: RngIntElt                    Default: 3
```

The double cover $2A_n$ of the symmetric groups $A_n$ of degree $n$ for $n \ge 4$ represented as a matrix group over the field ${\bf F}_{p}$ or (usually) ${\bf F}_{p^2}$, where $p$, which defaults to $3$, can be specified as `Characteristic`.
