---
title: "Operations on Groups of Lie Type"
canonical: "https://docs.magma-maths.org/v2.30-1/LieTheory/ChevalleyGroups/operations.html"
source: "https://docs.magma-maths.org/v2.30-1/LieTheory/ChevalleyGroups/operations.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": "Constructing Groups of Lie Type", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/ChevalleyGroups/construction.md"}
next: {"title": "Properties of Groups of Lie Type", "source": "https://docs.magma-maths.org/v2.30-1/LieTheory/ChevalleyGroups/element-properties.md"}
intrinsics:
  - {"name": "eq", "signature": "G eq H: GrpLie, GrpLie -> BoolElt"}
  - {"name": "subset", "signature": "G subset H: GrpLie, GrpLie -> BoolElt"}
  - {"name": "IsAlgebraicallyIsomorphic", "signature": "IsAlgebraicallyIsomorphic(G, H): GrpLie, GrpLie -> BoolElt, Map"}
  - {"name": "IsIsogenous", "signature": "IsIsogenous(G, H): GrpLie, GrpLie -> BoolElt"}
  - {"name": "IsCartanEquivalent", "signature": "IsCartanEquivalent(G, H): GrpLie, GrpLie -> BoolElt"}
  - {"name": "BaseRing", "signature": "BaseRing(G): GrpLie -> Rng"}
  - {"name": "CoefficientRing", "signature": "CoefficientRing(G): GrpLie -> Rng"}
  - {"name": "BaseExtend", "signature": "BaseExtend(G, K): GrpLie, Rng -> GrpLie, Map"}
  - {"name": "ChangeRing", "signature": "ChangeRing(G, K): GrpLie, Rng -> GrpLie"}
  - {"name": "Generators", "signature": "Generators(G): GrpLie -> {}"}
  - {"name": "NumberOfGenerators", "signature": "NumberOfGenerators(G): GrpLie -> RngIntElt"}
  - {"name": "Ngens", "signature": "Ngens(G): GrpLie -> RngIntElt"}
  - {"name": "AlgebraicGenerators", "signature": "AlgebraicGenerators(G): GrpLie -> {}"}
  - {"name": "NumberOfAlgebraicGenerators", "signature": "NumberOfAlgebraicGenerators(G): GrpLie -> RngIntElt"}
  - {"name": "Nalggens", "signature": "Nalggens(G): GrpLie -> RngIntElt"}
  - {"name": "Order", "signature": "Order(G): GrpLie -> RngIntElt"}
  - {"name": "#", "signature": "# G: GrpLie -> RngIntElt"}
  - {"name": "FactoredOrder", "signature": "FactoredOrder(G): GrpLie -> RngIntElt"}
  - {"name": "Dimension", "signature": "Dimension(G): GrpLie -> RngIntElt"}
  - {"name": "CartanName", "signature": "CartanName(G): GrpLie -> Mtrx"}
  - {"name": "RootDatum", "signature": "RootDatum(G): GrpLie -> RootDtm"}
  - {"name": "DynkinDiagram", "signature": "DynkinDiagram(G): GrpLie"}
  - {"name": "CoxeterDiagram", "signature": "CoxeterDiagram(G): GrpLie"}
  - {"name": "CoxeterMatrix", "signature": "CoxeterMatrix(G): GrpLie -> AlgMatElt"}
  - {"name": "CoxeterGraph", "signature": "CoxeterGraph(G): GrpLie -> GrphUnd"}
  - {"name": "CartanMatrix", "signature": "CartanMatrix(G): GrpLie -> GrphUnd"}
  - {"name": "DynkinDigraph", "signature": "DynkinDigraph(G): GrpLie -> GrphUnd"}
  - {"name": "Rank", "signature": "Rank(G): GrpLie -> RngIntElt"}
  - {"name": "ReductiveRank", "signature": "ReductiveRank(G): GrpLie -> RngIntElt"}
  - {"name": "SemisimpleRank", "signature": "SemisimpleRank(G): GrpLie -> RngIntElt"}
  - {"name": "CoxeterNumber", "signature": "CoxeterNumber(G): GrpLie -> RngIntElt"}
  - {"name": "WeylGroup", "signature": "WeylGroup(G): GrpLie -> GrpPermCox"}
  - {"name": "WeylGroup", "signature": "WeylGroup(GrpPermCox, G): Cat, GrpLie -> GrpPermCox"}
  - {"name": "WeylGroup", "signature": "WeylGroup(GrpFPCox, G): Cat, GrpLie -> GrpFPCox"}
  - {"name": "WeylGroup", "signature": "WeylGroup(GrpMat, G): Cat, GrpLie -> GrpMat"}
  - {"name": "FundamentalGroup", "signature": "FundamentalGroup(G): GrpLie -> GrpAb, Map"}
  - {"name": "IsogenyGroup", "signature": "IsogenyGroup(G): GrpLie -> GrpAb, Map"}
  - {"name": "CoisogenyGroup", "signature": "CoisogenyGroup(G): GrpLie -> GrpAb, Map"}
examples:
  - "ex-a929c8"
  - "ex-1128fd"
---

<a id="operations"></a>
<a id="sectgrplieops"></a>
# Operations on Groups of Lie Type

Many of the basic operations for Coxeter groups are shortcuts for obtaining information about the underlying root datum (Chapter [Root Data](https://docs.magma-maths.org/v2.30-1/LieTheory/RootData/index-root-data.md#chaprootdtm)). Such functions are listed here; see Sections [Operations on Root Data](https://docs.magma-maths.org/v2.30-1/LieTheory/RootData/operators-root-dtm.md#sectrdop), [Properties of Root Data](https://docs.magma-maths.org/v2.30-1/LieTheory/RootData/properties-root-datum.md#sectrdprop), [Roots, Coroots, and Weights](https://docs.magma-maths.org/v2.30-1/LieTheory/RootData/roots-coroots-weights.md#sectrdroot), and [Operations on Coxeter Groups](https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterGroups/group-op.md#sectgrppermcoxop) for more details and examples of their use.

<a id="operation-op-eq-grplie-grplie"></a>
## `G eq H: GrpLie, GrpLie -> BoolElt`

Returns `true` iff the groups of Lie type $G$ and $H$ are equal.

<a id="operation-op-subset-grplie-grplie"></a>
## `G subset H: GrpLie, GrpLie -> BoolElt`

Returns `true` iff the group of Lie type $G$ is a subset of $H$.

<a id="function-isalgebraicallyisomorphic-grplie-grplie"></a>
## `IsAlgebraicallyIsomorphic(G, H): GrpLie, GrpLie -> BoolElt, Map`

Returns `true` if the semisimple groups $G$ and $H$ are isomorphic as algebraic groups (i.e. they have the same base rings and isomorphic root data). If `true`, then the second value returned is an isomorphism.

<a id="function-isisogenous-grplie-grplie"></a>
## `IsIsogenous(G, H): GrpLie, GrpLie -> BoolElt`

Returns `true` if $G$ and $H$ are isogenous. The groups must be semisimple and defined over the same field. If `true`, the subsequent values returned are: the corresponding adjoint group $G_{ad}$, the homomorphisms $G_{ad}\to G$ and $G_{ad}\to H$, the corresponding simply connected root datum $G_{sc}$, and the homomorphisms $G\to G_{sc}$ and $H\to G_{sc}$.

<a id="function-iscartanequivalent-grplie-grplie"></a>
## `IsCartanEquivalent(G, H): GrpLie, GrpLie -> BoolElt`

Returns `true` if, and only if, the groups of Lie type $G$ and $H$ are Cartan equivalent, i.e. they have isomorphic Dynkin diagrams and defined over the same ring.

<a id="function-basering-grplie-2"></a>
## `BaseRing(G): GrpLie -> Rng`

<a id="function-coefficientring-grplie-2"></a>
## `CoefficientRing(G): GrpLie -> Rng`

The base ring $k$ of the group of Lie type $G$.

<a id="function-baseextend-grplie-rng"></a>
## `BaseExtend(G, K): GrpLie, Rng -> GrpLie, Map`

Given a group of Lie type $G$ with base ring $k$ and a larger ring $K$, return the group $G(K)$ gotten by extending the base ring and the injection $G\to G(K)$.

<a id="function-changering-grplie-rng"></a>
## `ChangeRing(G, K): GrpLie, Rng -> GrpLie`

Given a group of Lie type $G$ and a ring $K$, return the group with the same root datum, but defined over a different ring.

<a id="function-generators-grplie"></a>
## `Generators(G): GrpLie -> {}`

Generators for the group of Lie type $G$ as an abstract group. This is currently only implemented when the base ring is a finite field.

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

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

The number of generators for the group of Lie type $G$ as an abstract group. This is currently only implemented when the base ring is a finite field.

<a id="function-algebraicgenerators-grplie"></a>
## `AlgebraicGenerators(G): GrpLie -> {}`

A set of generators for the group of Lie type $G$ as an algebraic group.

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

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

The number of generators for the group of Lie type $G$ as an algebraic group.

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

```magma
> k<z> := GF(4);
> G := GroupOfLieType("A2", k : Normalising:=false);
> Generators(G);
[ x1(1) , x4(1) , x1(z) , x4(z) , x2(1) , x5(1) , x2(z) , x5(z) , ( z   1) ,
(1   z)  ]
> AlgebraicGenerators(G);
[ x1(1) , x2(1) , x4(1) , x5(1) , ( z   1) , ( 1   z)  ]
```

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

<a id="operation-operation-grplie-rngintelt"></a>
## `# G: GrpLie -> RngIntElt`

The order of the group of Lie type $G$.

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

The factored order of the group of Lie type $G$.

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

The dimension of the group of Lie type $G$, considered as an algebraic variety.

<a id="example-ex-1128fd"></a>
## `Example: Orders of Groups of Lie Type (ex-1128fd)`

```magma
> G := GroupOfLieType("G2", 3);
> Order(G);
4245696
> FactoredOrder(G);
[ <2, 8>, <13, 1>, <3, 6>, <7, 1> ]
> G := GroupOfLieType("G2", Rationals());
> Order(G);
Infinity
> Dimension(G);
14
```

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

The Cartan name of the group of Lie type $G$.

<a id="function-rootdatum-grplie"></a>
## `RootDatum(G): GrpLie -> RootDtm`

The root datum of the group of Lie type $G$.

<a id="procedure-dynkindiagram-grplie"></a>
## `DynkinDiagram(G): GrpLie`

Print the Dynkin diagram of the group of Lie type $G$.

<a id="procedure-coxeterdiagram-grplie"></a>
## `CoxeterDiagram(G): GrpLie`

Print the Coxeter diagram of the group of Lie type $G$.

<a id="function-coxetermatrix-grplie"></a>
## `CoxeterMatrix(G): GrpLie -> AlgMatElt`

The Coxeter matrix of the group of Lie type $G$.

<a id="function-coxetergraph-grplie"></a>
## `CoxeterGraph(G): GrpLie -> GrphUnd`

The Coxeter graph of the group of Lie type $G$.

<a id="function-cartanmatrix-grplie"></a>
## `CartanMatrix(G): GrpLie -> GrphUnd`

The Cartan matrix of the group of Lie type $G$.

<a id="function-dynkindigraph-grplie"></a>
## `DynkinDigraph(G): GrpLie -> GrphUnd`

The Dynkin digraph of the group of Lie type $G$.

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

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

The reductive rank of the group of Lie type $G$, i.e. the dimension of the underlying root datum.

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

The semisimple rank of the group of Lie type $G$, i.e. the rank of the underlying root datum.

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

The Coxeter number of the group of Lie type $G$, i.e. the order of the Coxeter element in the Weyl group of $G$.

<a id="function-weylgroup-grplie"></a>
## `WeylGroup(G): GrpLie -> GrpPermCox`

<a id="function-weylgroup-cat-grplie"></a>
## `WeylGroup(GrpPermCox, G): Cat, GrpLie -> GrpPermCox`

The Weyl group of the group of Lie type $G$ as a permutation Coxeter group. This is a crystallographic Coxeter group, see Chapter [Coxeter Groups](https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterGroups/index-coxeter-groups.md#chapgrppermcox).

<a id="function-weylgroup-cat-grplie-2"></a>
## `WeylGroup(GrpFPCox, G): Cat, GrpLie -> GrpFPCox`

The Weyl group of the group of Lie type $G$ as a finitely presented Coxeter group. This is a crystallographic Coxeter group, see Chapter [Coxeter Groups](https://docs.magma-maths.org/v2.30-1/LieTheory/CoxeterGroups/index-coxeter-groups.md#chapgrpfpcox).

<a id="function-weylgroup-cat-grplie-3"></a>
## `WeylGroup(GrpMat, G): Cat, GrpLie -> GrpMat`

The Weyl group of the group of Lie type $G$ as a reflection group. This is a crystallographic Coxeter group, see Chapter [Reflection Groups](https://docs.magma-maths.org/v2.30-1/LieTheory/ReflectionGroups/index-reflection-groups.md#chapgrprfl).

<a id="function-fundamentalgroup-grplie"></a>
## `FundamentalGroup(G): GrpLie -> GrpAb, Map`

The fundamental group of the group of Lie type $G$, together with the projection of the weight lattice onto the fundamental group.

<a id="function-isogenygroup-grplie"></a>
## `IsogenyGroup(G): GrpLie -> GrpAb, Map`

The isogeny group of the group of Lie type $G$, together with its injection into the fundamental group.

<a id="function-coisogenygroup-grplie"></a>
## `CoisogenyGroup(G): GrpLie -> GrpAb, Map`

The coisogeny group of the group of Lie type $G$, together with its projection onto the fundamental group.
