---
title: "Structure Predicates"
canonical: "https://docs.magma-maths.org/v2.30-1/GlobalFields/AlgebraicFunctionFields/structure-predicates.html"
source: "https://docs.magma-maths.org/v2.30-1/GlobalFields/AlgebraicFunctionFields/structure-predicates.md"
part: "Global Fields"
chapter: "Algebraic Function Fields"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Global Fields", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/index-global-fields.md"}
  - {"title": "Algebraic Function Fields", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/AlgebraicFunctionFields/index-algebraic-function-fields.md"}
prev: {"title": "Global Function Fields", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/AlgebraicFunctionFields/global.md"}
next: {"title": "Homomorphisms", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/AlgebraicFunctionFields/hom.md"}
intrinsics:
  - {"name": "IsField", "signature": "IsField(R): FldFun -> BoolElt"}
  - {"name": "IsEuclideanDomain", "signature": "IsEuclideanDomain(R): FldFun -> BoolElt"}
  - {"name": "IsField", "signature": "IsField(O): RngFunOrd -> BoolElt"}
  - {"name": "IsPID", "signature": "IsPID(R): FldFun -> BoolElt"}
  - {"name": "IsUFD", "signature": "IsUFD(R): FldFun -> BoolElt"}
  - {"name": "IsDivisionRing", "signature": "IsDivisionRing(R): FldFun -> BoolElt"}
  - {"name": "IsEuclideanRing", "signature": "IsEuclideanRing(R): FldFun -> BoolElt"}
  - {"name": "IsDivisionRing", "signature": "IsDivisionRing(O): RngFunOrd -> BoolElt"}
  - {"name": "IsPrincipalIdealRing", "signature": "IsPrincipalIdealRing(R): FldFun -> BoolElt"}
  - {"name": "IsDomain", "signature": "IsDomain(R): FldFun -> BoolElt"}
  - {"name": "IsDomain", "signature": "IsDomain(O): RngFunOrd -> BoolElt"}
  - {"name": "eq", "signature": "F eq G: FldFunG, FldFunG -> BoolElt"}
  - {"name": "ne", "signature": "F ne G: FldFunG, FldFunG -> BoolElt"}
  - {"name": "eq", "signature": "O1 eq O2: RngFunOrd, Rng -> BoolElt"}
  - {"name": "ne", "signature": "O1 ne O2: RngFunOrd, Rng -> BoolElt"}
  - {"name": "subset", "signature": "O1 subset O2: RngFunOrd, RngFunOrd -> BoolElt"}
  - {"name": "IsGlobal", "signature": "IsGlobal(F): FldFunG -> BoolElt"}
  - {"name": "IsRationalFunctionField", "signature": "IsRationalFunctionField(F): FldFunG -> BoolElt"}
  - {"name": "IsFiniteOrder", "signature": "IsFiniteOrder(O): RngFunOrd -> BoolElt"}
  - {"name": "IsEquationOrder", "signature": "IsEquationOrder(O): RngFunOrd -> BoolElt"}
  - {"name": "IsAbsoluteOrder", "signature": "IsAbsoluteOrder(O): RngFunOrd -> BoolElt"}
  - {"name": "IsMaximal", "signature": "IsMaximal(O): RngFunOrd -> BoolElt"}
  - {"name": "IsTamelyRamified", "signature": "IsTamelyRamified(O): RngFunOrd -> BoolElt"}
  - {"name": "IsTotallyRamified", "signature": "IsTotallyRamified(O): RngFunOrd -> BoolElt"}
  - {"name": "IsUnramified", "signature": "IsUnramified(O): RngFunOrd -> BoolElt"}
  - {"name": "IsWildlyRamified", "signature": "IsWildlyRamified(O): RngFunOrd -> BoolElt"}
  - {"name": "IsInKummerRepresentation", "signature": "IsInKummerRepresentation(K): FldFun -> BoolElt, FldFunElt"}
  - {"name": "IsInArtinSchreierRepresentation", "signature": "IsInArtinSchreierRepresentation(K): FldFun -> BoolElt, FldFunElt"}
---

# Structure Predicates

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

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

<a id="function-isfield-rngfunord"></a>
## `IsField(O): RngFunOrd -> BoolElt`

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

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

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

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

<a id="function-isdivisionring-rngfunord"></a>
## `IsDivisionRing(O): RngFunOrd -> BoolElt`

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

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

<a id="function-isdomain-rngfunord"></a>
## `IsDomain(O): RngFunOrd -> BoolElt`

<a id="operation-op-eq-fldfung-fldfung"></a>
## `F eq G: FldFunG, FldFunG -> BoolElt`

<a id="operation-op-ne-fldfung-fldfung"></a>
## `F ne G: FldFunG, FldFunG -> BoolElt`

<a id="operation-op-eq-rngfunord-rng"></a>
## `O1 eq O2: RngFunOrd, Rng -> BoolElt`

<a id="operation-op-ne-rngfunord-rng"></a>
## `O1 ne O2: RngFunOrd, Rng -> BoolElt`

<a id="operation-op-subset-rngfunord-rngfunord"></a>
## `O1 subset O2: RngFunOrd, RngFunOrd -> BoolElt`

Return whether $O1$ is a subset of $O2$.

<a id="function-isglobal-fldfung"></a>
## `IsGlobal(F): FldFunG -> BoolElt`

Returns `true` if and only if the algebraic function field $F/k$ is global, i.e. the constant field is a finite field; `false` otherwise.

<a id="function-isrationalfunctionfield-fldfung"></a>
## `IsRationalFunctionField(F): FldFunG -> BoolElt`

Return `true` if the function field $F$ is isomorphic to a rational function field, (i.e. $F$ is only trivially algebraic).

<a id="function-isfiniteorder-rngfunord"></a>
## `IsFiniteOrder(O): RngFunOrd -> BoolElt`

Given an order $O$ of a function field, return `true` if and only if the bottom coefficient ring of $O$ is a polynomial ring.

<a id="function-isequationorder-rngfunord"></a>
## `IsEquationOrder(O): RngFunOrd -> BoolElt`

Given an order $O$ of a function field, return `true` if and only if the order $O$ is an equation order (i.e. it has been defined by a polynomial and so has a power basis).

<a id="function-isabsoluteorder-rngfunord"></a>
## `IsAbsoluteOrder(O): RngFunOrd -> BoolElt`

Return `false` if the order $O$ is an extension of another order, otherwise `true`.

<a id="function-ismaximal-rngfunord"></a>
## `IsMaximal(O): RngFunOrd -> BoolElt`

Given an order $O$ of a function field, return `true` if and only if the order $O$ is maximal in its field of fractions.

<a id="function-istamelyramified-rngfunord"></a>
## `IsTamelyRamified(O): RngFunOrd -> BoolElt`

Return whether the order $O$ is tamely ramified, i.e. no prime ideal of $O$ has residue field with characteristic dividing its ramification index.

<a id="function-istotallyramified-rngfunord"></a>
## `IsTotallyRamified(O): RngFunOrd -> BoolElt`

Return whether there is an ideal of the order $O$ which is totally ramified, i.e. its ramification index is equal to the degree of $O$ over its coefficient ring.

<a id="function-isunramified-rngfunord"></a>
## `IsUnramified(O): RngFunOrd -> BoolElt`

Return whether a finite order $O$ is unramified at the finite places and whether an infinite order $O$ is unramified at the infinite places.

<a id="function-iswildlyramified-rngfunord"></a>
## `IsWildlyRamified(O): RngFunOrd -> BoolElt`

Return whether there is a prime ideal of the order $O$ which is wildly ramified, i.e. its ramification index is divisible by the characteristic of its residue class field.

<a id="function-isinkummerrepresentation-fldfun"></a>
## `IsInKummerRepresentation(K): FldFun -> BoolElt, FldFunElt`

Tests if the global function field $K$ is, in its current representation, a Kummer extension. More specific, this function tests if the defining polynomial is of the form $x^r-a$ for some $r$ coprime to the characteristic and if $r$ divides the order of the multiplicative group of the constant field, ie. if the coefficient ring of $K$ contains a primitive $r$-th root of unity. In case $K$ is in Kummer representation, the element $a$ is returned as a second return value.

<a id="function-isinartinschreierrepresentation-fldfun"></a>
## `IsInArtinSchreierRepresentation(K): FldFun -> BoolElt, FldFunElt`

Tests if a global function field $K$ is, in its current representation, a Artin-Schreier extension, ie. if the defining polynomial of $K$ is of the form $x^p-x-a$ where $p$ is the characteristic of $K$. In this case, the element $a$ is returned as a second return value.
