---
title: "Reflections"
canonical: "https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterGroups/rootrefl.html"
source: "https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterGroups/rootrefl.md"
part: "Lie Theory"
chapter: "Coxeter Groups"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Lie Theory", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/index-lie-theory.md"}
  - {"title": "Coxeter Groups", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterGroups/index-coxeter-groups.md"}
prev: {"title": "Roots, Coroots, and Reflections", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterGroups/root-data-roots.md"}
next: {"title": "Reflection Subgroups", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterGroups/subgroups.md"}
intrinsics:
  - {"name": "IsReflection", "signature": "IsReflection(w): GrpFPElt -> BoolElt"}
  - {"name": "IsReflection", "signature": "IsReflection(w): GrpPermElt -> BoolElt, ., ., RngInt"}
  - {"name": "Reflections", "signature": "Reflections(W): GrpFPCox -> [GrpFPCoxElt]"}
  - {"name": "Reflections", "signature": "Reflections(W): GrpPermCox -> [GrpPermElt]"}
  - {"name": "SimpleReflections", "signature": "SimpleReflections(W): GrpFPCox -> [GrpFPCoxElt]"}
  - {"name": "SimpleReflections", "signature": "SimpleReflections(W): GrpPermCox -> [GrpPermElt]"}
  - {"name": "SimpleReflectionPermutations", "signature": "SimpleReflectionPermutations(W): GrpPermCox -> [GrpPermElt]"}
  - {"name": "Reflection", "signature": "Reflection(W, r): GrpPermCox, RngIntElt -> GrpPermElt"}
  - {"name": "ReflectionPermutation", "signature": "ReflectionPermutation(W, r): GrpPermCox, RngIntElt -> GrpPermElt"}
  - {"name": "SimpleReflectionMatrices", "signature": "SimpleReflectionMatrices(W): GrpPermCox -> []"}
  - {"name": "SimpleCoreflectionMatrices", "signature": "SimpleCoreflectionMatrices(W): GrpPermCox -> []"}
  - {"name": "ReflectionMatrices", "signature": "ReflectionMatrices(W): GrpPermCox -> []"}
  - {"name": "CoreflectionMatrices", "signature": "CoreflectionMatrices(W): GrpPermCox -> []"}
  - {"name": "ReflectionMatrix", "signature": "ReflectionMatrix(W, r): GrpPermCox, RngIntElt -> []"}
  - {"name": "CoreflectionMatrix", "signature": "CoreflectionMatrix(W, r): GrpPermCox, RngIntElt -> []"}
  - {"name": "ReflectionWords", "signature": "ReflectionWords(W): GrpPermCox -> []"}
  - {"name": "ReflectionWord", "signature": "ReflectionWord(W, r): GrpPermCox, RngIntElt -> []"}
examples:
  - "ex-7fa1b2"
  - "ex-56c975"
---

<a id="rootrefl"></a>
<a id="sectgrpcoxrootaction"></a>
# Reflections

An element of a Coxeter group is called a *reflection* if it is conjugate to one of the Coxeter generators.

In a permutation Coxeter group, the root $\alpha$ acts on the root space via the reflection $s_\alpha$; the coroot $\alpha^\star$ acts on the coroot space via the coreflection $s_\alpha^\star$.

<a id="function-isreflection-grpfpelt"></a>
## `IsReflection(w): GrpFPElt -> BoolElt`

<a id="function-isreflection-grppermelt"></a>
## `IsReflection(w): GrpPermElt -> BoolElt, ., ., RngInt`

Returns `true` if, and only if, $w$ is a reflection, i.e. $w$ is conjugate to a Coxeter generator. If $w$ is in a permutation Coxeter group, the root, coroot, and root index are also returned.

<a id="function-reflections-grpfpcox"></a>
## `Reflections(W): GrpFPCox -> [GrpFPCoxElt]`

<a id="function-reflections-grppermcox"></a>
## `Reflections(W): GrpPermCox -> [GrpPermElt]`

The sequence of reflections in the finite Coxeter group $W$. If $W$ is a permutation Coxeter group, the $r$th reflection in the sequence corresponds to the $r$th (co)root.

<a id="example-ex-7fa1b2"></a>
## `Example: Reflections in a Coxeter Group (ex-7fa1b2)`

```magma
> W<a,b> := CoxeterGroup(GrpFPCox, "A2");
> Reflections(W);
[ a, b, a * b * a, a, b, a * b * a ]
> IsReflection(a*b);
false
```

<a id="function-simplereflections-grpfpcox"></a>
## `SimpleReflections(W): GrpFPCox -> [GrpFPCoxElt]`

<a id="function-simplereflections-grppermcox"></a>
## `SimpleReflections(W): GrpPermCox -> [GrpPermElt]`

The sequence of simple reflections in the Coxeter group $W$, ie, the generators of $W$.

<a id="function-simplereflectionpermutations-grppermcox"></a>
## `SimpleReflectionPermutations(W): GrpPermCox -> [GrpPermElt]`

The sequence of simple reflections in the permutation Coxeter group $W$, ie, the generators of $W$.

<a id="function-reflection-grppermcox-rngintelt"></a>
## `Reflection(W, r): GrpPermCox, RngIntElt -> GrpPermElt`

<a id="function-reflectionpermutation-grppermcox-rngintelt"></a>
## `ReflectionPermutation(W, r): GrpPermCox, RngIntElt -> GrpPermElt`

The reflection in permutation Coxeter group $W$ corresponding to the $r$th (co)root. If $r=1,\dots,n$, this is a generator of $W$.

<a id="function-simplereflectionmatrices-grppermcox"></a>
## `SimpleReflectionMatrices(W): GrpPermCox -> []`

<a id="function-simplecoreflectionmatrices-grppermcox"></a>
## `SimpleCoreflectionMatrices(W): GrpPermCox -> []`

```magma
Basis: MonStgElt                    Default: "Standard"
```

The matrices giving the action of the simple (co)roots on the (co)root space of the permutation Coxeter group $W$.

<a id="function-reflectionmatrices-grppermcox"></a>
## `ReflectionMatrices(W): GrpPermCox -> []`

<a id="function-coreflectionmatrices-grppermcox"></a>
## `CoreflectionMatrices(W): GrpPermCox -> []`

```magma
Basis: MonStgElt                    Default: "Standard"
```

The matrices giving the action of the (co)roots on the (co)root space of the permutation Coxeter group $W$.

<a id="function-reflectionmatrix-grppermcox-rngintelt"></a>
## `ReflectionMatrix(W, r): GrpPermCox, RngIntElt -> []`

<a id="function-coreflectionmatrix-grppermcox-rngintelt"></a>
## `CoreflectionMatrix(W, r): GrpPermCox, RngIntElt -> []`

```magma
Basis: MonStgElt                    Default: "Standard"
```

The matrix giving the action of the $r$th (co)root on the (co)root space of the permutation Coxeter group $W$.

<a id="function-reflectionwords-grppermcox"></a>
## `ReflectionWords(W): GrpPermCox -> []`

The sequence of words in the simple reflections for all the reflections of the Coxeter group $W$. These words are given as sequences of integers. In other words, if $a = [a_1,\dots,a_l] = \hbox{\tt ReflectionWords(W)[r]}$, then $s_{\alpha_r} = s_{\alpha_{a_1}} \cdots s_{\alpha_{a_l}}$.

<a id="function-reflectionword-grppermcox-rngintelt"></a>
## `ReflectionWord(W, r): GrpPermCox, RngIntElt -> []`

The word in the simple reflections for the $r$th reflection of the Coxeter group $W$. The word is given as a sequence of integers. In other words, if $a = [a_1,\dots,a_l] = \hbox{\tt ReflectionWord(W,r)}$, then $s_{\alpha_r} = s_{\alpha_{a_1}} \cdots s_{\alpha_{a_l}}$.

<a id="example-ex-56c975"></a>
## `Example: Reflection Matrices, Permutations, and Words (ex-56c975)`

```magma
> W := CoxeterGroup("B3");
> IsReflection(W.1*W.2);
false
> mx := ReflectionMatrix(W, 4);
> perm := Reflection(W, 4);
> wd := ReflectionWord(W, 4);
> rt := VectorSpace(Rationals(), 3) ! Root(W,2);
> RootPosition(W, rt * mx) eq 2^perm;
true
> perm eq &*[ Reflection(W, r) : r in wd ];
true
>
> mx := CoreflectionMatrix(W, 4);
> CorootPosition(W, Coroot(W,2) * mx) eq 2^perm;
true
```
