---
title: "Operators on Root Systems"
canonical: "https://docs.magma-maths.org/v2.30-1/LieTheory/RootSystems/operators-root-sys.html"
source: "https://docs.magma-maths.org/v2.30-1/LieTheory/RootSystems/operators-root-sys.md"
part: "Lie Theory"
chapter: "Root Systems"
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": "Root Systems", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/RootSystems/index-root-systems.md"}
prev: {"title": "Constructing Root Systems", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/RootSystems/construct-root-system.md"}
next: {"title": "Properties of Root Systems", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/RootSystems/properties-root-system.md"}
intrinsics:
  - {"name": "eq", "signature": "R1 eq R2: RootSys, RootSys -> BoolElt"}
  - {"name": "IsIsomorphic", "signature": "IsIsomorphic(R1, R2): RootSys, RootSys -> BoolElt"}
  - {"name": "IsCartanEquivalent", "signature": "IsCartanEquivalent(R1, R2): RootSys, RootSys -> BoolElt"}
  - {"name": "CartanName", "signature": "CartanName(R): RootSys -> List"}
  - {"name": "CoxeterDiagram", "signature": "CoxeterDiagram(R): RootSys"}
  - {"name": "DynkinDiagram", "signature": "DynkinDiagram(R): RootSys"}
  - {"name": "CoxeterMatrix", "signature": "CoxeterMatrix(R): RootSys -> AlgMatElt"}
  - {"name": "CoxeterGraph", "signature": "CoxeterGraph(R): RootSys -> GrphUnd"}
  - {"name": "CartanMatrix", "signature": "CartanMatrix(R): RootSys -> AlgMatElt"}
  - {"name": "DynkinDigraph", "signature": "DynkinDigraph(R): RootSys -> GrphDir"}
  - {"name": "BaseField", "signature": "BaseField(R): RootSys -> Fld"}
  - {"name": "BaseRing", "signature": "BaseRing(R): RootSys -> Fld"}
  - {"name": "RealInjection", "signature": "RealInjection(R): RootSys -> ."}
  - {"name": "Rank", "signature": "Rank(R): RootSys -> RngIntElt"}
  - {"name": "Dimension", "signature": "Dimension(R): RootSys -> RngIntElt"}
  - {"name": "CoxeterGroupOrder", "signature": "CoxeterGroupOrder(R): RootSys -> RngIntElt"}
examples:
  - "ex-d4eea1"
  - "ex-f78777"
  - "ex-5eca2e"
---

<a id="operators-root-sys"></a>
<a id="sectrsop"></a>
# Operators on Root Systems

<a id="operation-op-eq-rootsys-rootsys"></a>
## `R1 eq R2: RootSys, RootSys -> BoolElt`

Returns `true` if, and only if, the root systems $R_1$ and $R_2$ are identical.

<a id="function-isisomorphic-rootsys-rootsys"></a>
## `IsIsomorphic(R1, R2): RootSys, RootSys -> BoolElt`

Returns `true` if, and only if, root systems $R_1$ and $R_2$ are isomorphic.

<a id="function-iscartanequivalent-rootsys-rootsys"></a>
## `IsCartanEquivalent(R1, R2): RootSys, RootSys -> BoolElt`

Returns `true` if, and only if, the crystallographic root systems $R_1$ and $R_2$ are Cartan equivalent, i.e. their Cartan matrices are the same modulo a permutation of the underlying basis.

<a id="example-ex-d4eea1"></a>
## `Example: Isomorphism and Cartan Equivalence (ex-d4eea1)`

Note that the root systems $B_n$ and $C_n$ are isomorphic but not Cartan equivalent. Hence Cartan equivalence is *not* an invariant of a root system since it depends on the particular representation of the (co)roots within the (co)root space.

```magma
> R := RootSystem("B4");  S := RootSystem("C4");
> IsIsomorphic(R, S);
true
> IsCartanEquivalent(R, S);
false
```

<a id="function-cartanname-rootsys"></a>
## `CartanName(R): RootSys -> List`

The Cartan name of the root system $R$ (Section [Finite and Affine Coxeter Groups](https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterSystems/finiteaffine.md#sectcartanfinaff)).

<a id="procedure-coxeterdiagram-rootsys"></a>
## `CoxeterDiagram(R): RootSys`

Print the Coxeter diagram of the root system $R$ (Section [Finite and Affine Coxeter Groups](https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterSystems/finiteaffine.md#sectcartanfinaff)).

<a id="procedure-dynkindiagram-rootsys"></a>
## `DynkinDiagram(R): RootSys`

Print the Dynkin diagram of the root system $R$ (Section [Finite and Affine Coxeter Groups](https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterSystems/finiteaffine.md#sectcartanfinaff)). If $R$ is not crystallographic, an error is flagged.

<a id="function-coxetermatrix-rootsys"></a>
## `CoxeterMatrix(R): RootSys -> AlgMatElt`

The Coxeter matrix of the root system $R$ (Section [Coxeter Matrices](https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterSystems/coxetermat.md#sectcartancoxmat)).

<a id="function-coxetergraph-rootsys"></a>
## `CoxeterGraph(R): RootSys -> GrphUnd`

The Coxeter graph of the root system $R$ (Section [Coxeter Graphs](https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterSystems/coxetergraph.md#sectcartancoxgrph)).

<a id="function-cartanmatrix-rootsys"></a>
## `CartanMatrix(R): RootSys -> AlgMatElt`

The Cartan matrix of the root system $R$ (Section [Cartan Matrices](https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterSystems/cartanmat.md#sectcartancarmat)).

<a id="function-dynkindigraph-rootsys"></a>
## `DynkinDigraph(R): RootSys -> GrphDir`

The Dynkin digraph of the root system $R$ (Section [Dynkin Digraphs](https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterSystems/dynkindigraph.md#sectcartandyndigrph)). If $R$ is not crystallographic, an error is flagged.

<a id="example-ex-f78777"></a>
## `Example: Dynkin and Coxeter Diagrams (ex-f78777)`

```magma
> R := RootSystem("F4");
> DynkinDiagram(R);

F4    1 - 2 =>= 3 - 4
> CoxeterDiagram(R);

F4    1 - 2 === 3 - 4
```

<a id="function-basefield-rootsys"></a>
## `BaseField(R): RootSys -> Fld`

<a id="function-basering-rootsys"></a>
## `BaseRing(R): RootSys -> Fld`

The field over which the root system $R$ is defined.

<a id="function-realinjection-rootsys"></a>
## `RealInjection(R): RootSys -> .`

The real injection of the root system $R$ (Section [Constructing Root Systems](https://docs.magma-maths.org/v2.30-1/LieTheory/RootSystems/construct-root-system.md#sectrsconstr)).

<a id="function-rank-rootsys"></a>
## `Rank(R): RootSys -> RngIntElt`

The rank of the root system $R$, i.e. the number of simple (co)roots.

<a id="function-dimension-rootsys"></a>
## `Dimension(R): RootSys -> RngIntElt`

The dimension of the root system $R$, i.e. the dimension of the (co)root space. This is always at least as large as the rank, with equality when $R$ is semisimple.

<a id="function-coxetergrouporder-rootsys"></a>
## `CoxeterGroupOrder(R): RootSys -> RngIntElt`

The order of the Coxeter group of the root system $R$.

<a id="example-ex-5eca2e"></a>
## `Example: Base Field, Rank, and Coxeter Group Order (ex-5eca2e)`

```magma
> R := RootSystem("I2(7)");
> BaseField(R);
Number Field with defining polynomial x^3 - x^2 - 2*x + 1 over the
Rational Field
> Rank(R) eq Dimension(R);
true
> CoxeterGroupOrder(R);
14
```
