---
title: "Roots, Coroots, and Weights"
canonical: "https://docs.magma-maths.org/v2.30-1/LieTheory/ChevalleyGroups/roots-coroots-weights.html"
source: "https://docs.magma-maths.org/v2.30-1/LieTheory/ChevalleyGroups/roots-coroots-weights.md"
part: "Lie Theory"
chapter: "Groups of Lie Type"
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": "Groups of Lie Type", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/ChevalleyGroups/index-chevalley-groups.md"}
prev: {"title": "Properties of Elements", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/ChevalleyGroups/more-element-operators.md"}
next: {"title": "Building Groups of Lie Type", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/ChevalleyGroups/create-new-root-datum.md"}
intrinsics:
  - {"name": "RootSpace", "signature": "RootSpace(G): GrpLie -> Lat"}
  - {"name": "CorootSpace", "signature": "CorootSpace(G): GrpLie -> Lat"}
  - {"name": "SimpleRoots", "signature": "SimpleRoots(G): GrpLie -> Mtrx"}
  - {"name": "SimpleCoroots", "signature": "SimpleCoroots(G): GrpLie -> Mtrx"}
  - {"name": "NumberOfPositiveRoots", "signature": "NumberOfPositiveRoots(G): GrpLie -> RngIntElt"}
  - {"name": "NumPosRoots", "signature": "NumPosRoots(G): GrpLie -> RngIntElt"}
  - {"name": "Roots", "signature": "Roots(G): GrpLie -> SetIndx"}
  - {"name": "Coroots", "signature": "Coroots(G): GrpLie -> SetIndx"}
  - {"name": "PositiveRoots", "signature": "PositiveRoots(G): GrpLie -> SetIndx"}
  - {"name": "PositiveCoroots", "signature": "PositiveCoroots(G): GrpLie -> SetIndx"}
  - {"name": "Root", "signature": "Root(G, r): GrpLie, RngIntElt -> SetIndx"}
  - {"name": "Coroot", "signature": "Coroot(G, r): GrpLie, RngIntElt -> SetIndx"}
  - {"name": "RootPosition", "signature": "RootPosition(G, v): GrpLie, . -> SetIndx"}
  - {"name": "CorootPosition", "signature": "CorootPosition(G, v): GrpLie, . -> SetIndx"}
  - {"name": "HighestRoot", "signature": "HighestRoot(G): GrpLie -> LatElt"}
  - {"name": "HighestLongRoot", "signature": "HighestLongRoot(G): GrpLie -> LatElt"}
  - {"name": "HighestShortRoot", "signature": "HighestShortRoot(G): GrpLie -> LatElt"}
  - {"name": "Reflections", "signature": "Reflections(G): GrpLie -> GrpLieElt"}
  - {"name": "Reflection", "signature": "Reflection(G, r): GrpLie, RngIntElt -> GrpLieElt"}
  - {"name": "RootHeight", "signature": "RootHeight(G, r): GrpLie, RngIntElt -> RngIntElt"}
  - {"name": "CorootHeight", "signature": "CorootHeight(G, r): GrpLie, RngIntElt -> RngIntElt"}
  - {"name": "RootNorms", "signature": "RootNorms(G): GrpLie -> [RngIntElt]"}
  - {"name": "CorootNorms", "signature": "CorootNorms(G): GrpLie -> [RngIntElt]"}
  - {"name": "RootNorm", "signature": "RootNorm(G, r): GrpLie, RngIntElt -> RngIntElt"}
  - {"name": "CorootNorm", "signature": "CorootNorm(G, r): GrpLie, RngIntElt -> RngIntElt"}
  - {"name": "IsLongRoot", "signature": "IsLongRoot(G, r): GrpLie, RngIntElt -> BoolElt"}
  - {"name": "IsShortRoot", "signature": "IsShortRoot(G, r): GrpLie, RngIntElt -> BoolElt"}
  - {"name": "AdditiveOrder", "signature": "AdditiveOrder(G): GrpLie -> SeqEnum"}
  - {"name": "WeightLattice", "signature": "WeightLattice(G): GrpLie -> Lat"}
  - {"name": "CoweightLattice", "signature": "CoweightLattice(G): GrpLie -> Lat"}
  - {"name": "FundamentalWeights", "signature": "FundamentalWeights(G): GrpLie -> Mtrx"}
  - {"name": "FundamentalCoweights", "signature": "FundamentalCoweights(G): GrpLie -> Mtrx"}
  - {"name": "DominantWeight", "signature": "DominantWeight(G, v): GrpLie, . -> ModTupFldElt, GrpFPCoxElt"}
examples:
  - "ex-ac3db4"
  - "ex-69e0c7"
  - "ex-ff84ed"
  - "ex-dabc7d"
---

<a id="roots-coroots-weights"></a>
<a id="sectgrplieroot"></a>
# Roots, Coroots, and Weights

The roots are stored as an indexed set

$$
\{@\; \alpha_1,\dots,\alpha_N,\alpha_{N+1},\dots,\alpha_{2N} \; @\},
$$

where $\alpha_1,\dots,\alpha_N$ are the positive roots in an order compatible with height; and $\alpha_{N+1},\dots,\alpha_{2N}$ are the corresponding negative roots (i.e. $\alpha_{i+N}=-\alpha_i$). The simple roots are $\alpha_1,\dots,\alpha_n$ where $n$ is the rank.

Many of these functions have an optional argument `Basis` which may take one of the following values

1. `"Standard"`: the standard basis for the (co)root space. This is the default.
2. `"Root"`: the basis of simple (co)roots.
3. `"Weight"`: the basis of fundamental (co)weights (see Subsection [Weights](https://docs.magma-maths.org/v2.30-1/LieTheory/ChevalleyGroups/roots-coroots-weights.md#subsectgrplierootweight) below).

<a id="access"></a>
<a id="subsectgrplierootaccess"></a>
## Accessing Roots and Coroots

<a id="function-rootspace-grplie"></a>
### `RootSpace(G): GrpLie -> Lat`

<a id="function-corootspace-grplie"></a>
### `CorootSpace(G): GrpLie -> Lat`

The lattice containing the (co)roots of the group of Lie type $G$.

<a id="function-simpleroots-grplie"></a>
### `SimpleRoots(G): GrpLie -> Mtrx`

<a id="function-simplecoroots-grplie"></a>
### `SimpleCoroots(G): GrpLie -> Mtrx`

The simple (co)roots of the group of Lie type $G$ as the rows of a matrix.

<a id="function-numberofpositiveroots-grplie"></a>
### `NumberOfPositiveRoots(G): GrpLie -> RngIntElt`

<a id="function-numposroots-grplie"></a>
### `NumPosRoots(G): GrpLie -> RngIntElt`

The number of positive roots of the group of Lie type $G$.

<a id="function-roots-grplie"></a>
### `Roots(G): GrpLie -> SetIndx`

<a id="function-coroots-grplie"></a>
### `Coroots(G): GrpLie -> SetIndx`

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

An indexed set containing the (co)roots of the group of Lie type $G$.

<a id="function-positiveroots-grplie"></a>
### `PositiveRoots(G): GrpLie -> SetIndx`

<a id="function-positivecoroots-grplie"></a>
### `PositiveCoroots(G): GrpLie -> SetIndx`

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

An indexed set containing the positive (co)roots of the group of Lie type $G$.

<a id="function-root-grplie-rngintelt"></a>
### `Root(G, r): GrpLie, RngIntElt -> SetIndx`

<a id="function-coroot-grplie-rngintelt"></a>
### `Coroot(G, r): GrpLie, RngIntElt -> SetIndx`

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

The $r$th (co)root of the group of Lie type $G$.

<a id="function-rootposition-grplie"></a>
### `RootPosition(G, v): GrpLie, . -> SetIndx`

<a id="function-corootposition-grplie"></a>
### `CorootPosition(G, v): GrpLie, . -> SetIndx`

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

If $v$ is a (co)root of the group of Lie type $G$, this returns its position; otherwise it returns 0.

<a id="example-ex-ac3db4"></a>
### `Example: Roots and Coroots of an Isogenous A3 (ex-ac3db4)`

```magma
> G := GroupOfLieType("A3", 25 : Isogeny := 2);
> Roots(G);
{@
    (1 0 0),
    (0 1 0),
    (1 0 2),
    (1 1 0),
    (1 1 2),
    (2 1 2),
    (-1  0  0),
    (0 -1  0),
    (-1  0 -2),
    (-1 -1  0),
    (-1 -1 -2),
    (-2 -1 -2)
@}
> PositiveCoroots(G);
{@
    (2 -1 -1),
    (-1  2  0),
    (0 -1  1),
    (1  1 -1),
    (-1  1  1),
    (1 0 0)
@}
> #Roots(G) eq 2*NumPosRoots(G);
true
> Coroot(G, 4);
(1  1 -1)
> Coroot(G, 4 : Basis := "Root");
(1 1 0)
> CorootPosition(G, [1,1,-1]);
4
> CorootPosition(G, [1,1,0] : Basis := "Root");
4
```

<a id="function-highestroot-grplie"></a>
### `HighestRoot(G): GrpLie -> LatElt`

<a id="function-highestlongroot-grplie"></a>
### `HighestLongRoot(G): GrpLie -> LatElt`

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

The unique (long) root of greatest height in the root datum of the group of Lie type $G$.

<a id="function-highestshortroot-grplie"></a>
### `HighestShortRoot(G): GrpLie -> LatElt`

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

The unique short root of greatest height in the root datum of the group of Lie type $G$.

<a id="example-ex-69e0c7"></a>
### `Example: Highest Roots of G2 (ex-69e0c7)`

```magma
> G := GroupOfLieType("G2", RealField());
> HighestRoot(G);
(3 2)
> HighestLongRoot(G);
(3 2)
> HighestShortRoot(G);
(2 1)
```

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

The reflections in the Weyl group have representatives in the group of Lie type.

<a id="function-reflections-grplie"></a>
### `Reflections(G): GrpLie -> GrpLieElt`

The sequence of representatives of reflections in the group of Lie type $G$.

<a id="function-reflection-grplie-rngintelt"></a>
### `Reflection(G, r): GrpLie, RngIntElt -> GrpLieElt`

The representative of the reflections in the $r$th root in the group of Lie type $G$.

<a id="example-ex-ff84ed"></a>
### `Example: Reflections of a Group of Lie Type (ex-ff84ed)`

```magma
> G := GroupOfLieType("A2", Rationals());
> Reflections(G);
[ n1 , n2 , n1 n2 n1  ]
```

## Operations and Properties for Root and Coroot Indices

<a id="function-rootheight-grplie-rngintelt"></a>
### `RootHeight(G, r): GrpLie, RngIntElt -> RngIntElt`

<a id="function-corootheight-grplie-rngintelt"></a>
### `CorootHeight(G, r): GrpLie, RngIntElt -> RngIntElt`

The height of the $r$th (co)root of the group of Lie type $G$, i.e. the sum of the coefficients of $\alpha_r$ (resp. $\alpha_r^\star$) with respect to the simple (co)roots.

<a id="function-rootnorms-grplie"></a>
### `RootNorms(G): GrpLie -> [RngIntElt]`

<a id="function-corootnorms-grplie"></a>
### `CorootNorms(G): GrpLie -> [RngIntElt]`

The sequence of squares of the lengths of the (co)roots of the group of Lie type $G$.

<a id="function-rootnorm-grplie-rngintelt"></a>
### `RootNorm(G, r): GrpLie, RngIntElt -> RngIntElt`

<a id="function-corootnorm-grplie-rngintelt"></a>
### `CorootNorm(G, r): GrpLie, RngIntElt -> RngIntElt`

The square of the length of the $r$th (co)root of the group of Lie type $G$.

<a id="function-islongroot-grplie-rngintelt"></a>
### `IsLongRoot(G, r): GrpLie, RngIntElt -> BoolElt`

Returns `true` if, and only if, the $r$th root of the group of Lie type $G$ is long, i.e. the $r$th coroot is short.

<a id="function-isshortroot-grplie-rngintelt"></a>
### `IsShortRoot(G, r): GrpLie, RngIntElt -> BoolElt`

Returns `true` if, and only if, the $r$th root of the group of Lie type $G$ is short, i.e. the $r$th coroot is long.

<a id="function-additiveorder-grplie"></a>
### `AdditiveOrder(G): GrpLie -> SeqEnum`

The additive order on the positive roots of the group of Lie type $G$ equal to the Papi order of the longest word $w_0$ of the Weyl group of $G$; it corresponds to the order of roots in a reduced expression for $w_0$. If $\alpha_r$, $\alpha_s$ and $\alpha_t$ are positive roots and $\alpha_r+\alpha_s=\alpha_t$, then $t$ lies between $r$ and $s$. It is computed using the techniques of [[Pap94](https://docs.magma-maths.org/v2.30-1/references.md#cite-papi)].

<a id="example-ex-dabc7d"></a>
### `Example: Additive Order of Positive Roots (ex-dabc7d)`

```magma
> G := GroupOfLieType("A5", GF(3));
> a := AdditiveOrder(G);
> Position(a, 2);
6
> Position(a, 3);
10
```

<a id="subsectgrplierootweight"></a>
<a id="id2"></a>
## Weights

<a id="function-weightlattice-grplie"></a>
### `WeightLattice(G): GrpLie -> Lat`

<a id="function-coweightlattice-grplie"></a>
### `CoweightLattice(G): GrpLie -> Lat`

The (co)weight lattice of the group of Lie type $G$.

<a id="function-fundamentalweights-grplie"></a>
### `FundamentalWeights(G): GrpLie -> Mtrx`

<a id="function-fundamentalcoweights-grplie"></a>
### `FundamentalCoweights(G): GrpLie -> Mtrx`

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

The fundamental (co)weights of the group of Lie type $G$ as the rows of a matrix.

<a id="function-dominantweight-grplie"></a>
### `DominantWeight(G, v): GrpLie, . -> ModTupFldElt, GrpFPCoxElt`

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

The unique dominant weight in the same $W$-orbit as $v$, where $W$ is the Weyl group of $G$ and $v$ is a weight given as a vector or a sequence representing a vector. The second value returned is a Weyl group element taking $v$ to the dominant weight.
