---
title: "Structure Operations"
canonical: "https://docs.magma-maths.org/v2.30-1/LocalFields/GaloisRings/operation.html"
source: "https://docs.magma-maths.org/v2.30-1/LocalFields/GaloisRings/operation.md"
part: "Local Fields"
chapter: "Galois Rings"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Local Fields", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/index-local-fields.md"}
  - {"title": "Galois Rings", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/GaloisRings/index-galois-rings.md"}
prev: {"title": "Creation Functions", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/GaloisRings/creation.md"}
next: {"title": "Element Operations", "source": "https://docs.magma-maths.org/v2.30-1/LocalFields/GaloisRings/operation-element.md"}
intrinsics:
  - {"name": "Category", "signature": "Category(R): RngGal -> Cat"}
  - {"name": "Parent", "signature": "Parent(R): RngGal -> PowerStructure"}
  - {"name": "Centre", "signature": "Centre(R): RngGal -> RngGal"}
  - {"name": "PrimeRing", "signature": "PrimeRing(R): RngGal -> RngGal"}
  - {"name": "PrimeField", "signature": "PrimeField(R): RngGal -> RngGal"}
  - {"name": "FieldOfFractions", "signature": "FieldOfFractions(R): RngGal -> RngGal"}
  - {"name": "Characteristic", "signature": "Characteristic(R): RngGal -> RngIntElt"}
  - {"name": "#", "signature": "# R: RngGal -> RngIntElt"}
  - {"name": "Degree", "signature": "Degree(R): RngGal -> RngIntElt"}
  - {"name": "ResidueField", "signature": "ResidueField(R): RngGal -> FldFin"}
  - {"name": "IsCommutative", "signature": "IsCommutative(R): RngGal -> BoolElt"}
  - {"name": "IsUnitary", "signature": "IsUnitary(R): RngGal -> BoolElt"}
  - {"name": "IsFinite", "signature": "IsFinite(R): RngGal -> BoolElt"}
  - {"name": "IsOrdered", "signature": "IsOrdered(R): RngGal -> BoolElt"}
  - {"name": "IsField", "signature": "IsField(R): RngGal -> BoolElt"}
  - {"name": "IsEuclideanDomain", "signature": "IsEuclideanDomain(R): RngGal -> BoolElt"}
  - {"name": "IsPID", "signature": "IsPID(R): RngGal -> BoolElt"}
  - {"name": "IsUFD", "signature": "IsUFD(R): RngGal -> BoolElt"}
  - {"name": "IsDivisionRing", "signature": "IsDivisionRing(R): RngGal -> BoolElt"}
  - {"name": "IsEuclideanRing", "signature": "IsEuclideanRing(R): RngGal -> BoolElt"}
  - {"name": "IsPrincipalIdealRing", "signature": "IsPrincipalIdealRing(R): RngGal -> BoolElt"}
  - {"name": "IsDomain", "signature": "IsDomain(R): RngGal -> BoolElt"}
  - {"name": "eq", "signature": "R eq G: RngGal, Rng -> BoolElt"}
  - {"name": "ne", "signature": "R ne G: RngGal, Rng -> BoolElt"}
---

# Structure Operations

## Related Structures

<a id="function-category-rnggal"></a>
### `Category(R): RngGal -> Cat`

<a id="function-parent-rnggal"></a>
### `Parent(R): RngGal -> PowerStructure`

<a id="function-centre-rnggal"></a>
### `Centre(R): RngGal -> RngGal`

<a id="function-primering-rnggal"></a>
### `PrimeRing(R): RngGal -> RngGal`

<a id="function-primefield-rnggal"></a>
### `PrimeField(R): RngGal -> RngGal`

<a id="function-fieldoffractions-rnggal"></a>
### `FieldOfFractions(R): RngGal -> RngGal`

## Numerical Invariants

<a id="function-characteristic-rnggal"></a>
### `Characteristic(R): RngGal -> RngIntElt`

The characteristic of $R$, which is $p^a$ where $R$ is considered as ${\mathbb{Z}}_{p^a}[x]/\langle D\rangle$.

<a id="operation-operation-rnggal-rngintelt"></a>
### `# R: RngGal -> RngIntElt`

The cardinality of $R$, which is $p^{ad}$ where $R$ is considered as ${\mathbb{Z}}_{p^a}[x]/\langle D\rangle$ and $d$ is the degree of $D$.

<a id="function-degree-rnggal"></a>
### `Degree(R): RngGal -> RngIntElt`

The degree of $R$, which is the degree of $D$, where $R$ is considered as ${\mathbb{Z}}_{p^a}[x]/\langle D\rangle$.

<a id="function-residuefield-rnggal"></a>
### `ResidueField(R): RngGal -> FldFin`

The residue field of $R$, which is the finite field ${\mathbb{Z}}_p[x]/\langle D\rangle$, where $R$ is considered as ${\mathbb{Z}}_{p^a}[x]/\langle D\rangle$.

## Ring Predicates and Booleans

The following functions are described for rings in general in Section [Predicates and Boolean Operations](https://docs.magma-maths.org/v2.30-1/BasicRings/IntroductionToRings/generic.md#rngintro-predb).

<a id="function-iscommutative-rnggal"></a>
### `IsCommutative(R): RngGal -> BoolElt`

<a id="function-isunitary-rnggal"></a>
### `IsUnitary(R): RngGal -> BoolElt`

<a id="function-isfinite-rnggal"></a>
### `IsFinite(R): RngGal -> BoolElt`

<a id="function-isordered-rnggal"></a>
### `IsOrdered(R): RngGal -> BoolElt`

<a id="function-isfield-rnggal"></a>
### `IsField(R): RngGal -> BoolElt`

<a id="function-iseuclideandomain-rnggal"></a>
### `IsEuclideanDomain(R): RngGal -> BoolElt`

<a id="function-ispid-rnggal"></a>
### `IsPID(R): RngGal -> BoolElt`

<a id="function-isufd-rnggal"></a>
### `IsUFD(R): RngGal -> BoolElt`

<a id="function-isdivisionring-rnggal"></a>
### `IsDivisionRing(R): RngGal -> BoolElt`

<a id="function-iseuclideanring-rnggal"></a>
### `IsEuclideanRing(R): RngGal -> BoolElt`

<a id="function-isprincipalidealring-rnggal"></a>
### `IsPrincipalIdealRing(R): RngGal -> BoolElt`

<a id="function-isdomain-rnggal"></a>
### `IsDomain(R): RngGal -> BoolElt`

<a id="operation-op-eq-rnggal-rng"></a>
### `R eq G: RngGal, Rng -> BoolElt`

<a id="operation-op-ne-rnggal-rng"></a>
### `R ne G: RngGal, Rng -> BoolElt`
