---
title: "${\\mathbb{Z}}$ as a Number Field Order"
canonical: "https://docs.magma-maths.org/v2.30-1/BasicRings/ResidueClassRings/number-field-like.html"
source: "https://docs.magma-maths.org/v2.30-1/BasicRings/ResidueClassRings/number-field-like.md"
part: "Basic Rings"
chapter: "Integer Residue Class Rings"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Basic Rings", "source": "https://docs.magma-maths.org/v2.30-1/BasicRings/index-basic-rings.md"}
  - {"title": "Integer Residue Class Rings", "source": "https://docs.magma-maths.org/v2.30-1/BasicRings/ResidueClassRings/index-residue-class-rings.md"}
prev: {"title": "Ideals of ${\\mathbb{Z}}$", "source": "https://docs.magma-maths.org/v2.30-1/BasicRings/ResidueClassRings/integer-ideals.md"}
next: {"title": "Residue Class Rings", "source": "https://docs.magma-maths.org/v2.30-1/BasicRings/ResidueClassRings/residue-class-rings.md"}
intrinsics:
  - {"name": "Decomposition", "signature": "Decomposition(R, p): RngInt, RngIntElt -> SeqEnum"}
  - {"name": "Generator", "signature": "Generator(I): RngInt -> RngIntElt"}
  - {"name": "RamificationIndex", "signature": "RamificationIndex(I, p): RngInt, RngIntElt -> RngIntElt"}
  - {"name": "RamificationIndex", "signature": "RamificationIndex(I): RngInt -> RngIntElt"}
  - {"name": "Degree", "signature": "Degree(I): RngInt -> RngIntElt"}
  - {"name": "TwoElementNormal", "signature": "TwoElementNormal(I): RngInt -> RngIntElt, RngIntElt"}
  - {"name": "ChineseRemainderTheorem", "signature": "ChineseRemainderTheorem(I, J, a, b): RngInt, RngInt, RngIntElt, RngIntElt -> RngIntElt"}
  - {"name": "Valuation", "signature": "Valuation(x, I): RngIntElt, RngInt -> RngIntElt"}
  - {"name": "ClassRepresentative", "signature": "ClassRepresentative(I): RngInt -> RngInt"}
---

<a id="mathbb-z-as-a-number-field-order"></a>
<a id="number-field-like"></a>
<a id="rngintres-zasnford"></a>
# ${\mathbb{Z}}$ as a Number Field Order

A collection of functions are provided that make ${\mathbb{Z}}$ behave like an order of a number field. Note however, that ${\mathbb{Z}}$ is not of type `RngOrd`. If complete compatibility is necessary, the user should create the maximal order of a degree $1$ extension of ${\mathbb{Q}}$.

<a id="function-decomposition-rngint-rngintelt"></a>
## `Decomposition(R, p): RngInt, RngIntElt -> SeqEnum`

Returns the ideal decomposition of the prime $p$, i.e. a list `[ < ideal<Z|p>, 1> ]` as in the number field case.

<a id="function-generator-rngint"></a>
## `Generator(I): RngInt -> RngIntElt`

A generator for the given ideal.

<a id="function-ramificationindex-rngint-rngintelt"></a>
## `RamificationIndex(I, p): RngInt, RngIntElt -> RngIntElt`

<a id="function-ramificationindex-rngint"></a>
## `RamificationIndex(I): RngInt -> RngIntElt`

The ramification index of $I$ over ${\mathbb{Z}}$ which is always $1$.

<a id="function-degree-rngint"></a>
## `Degree(I): RngInt -> RngIntElt`

The inertia degree of the ideal $I$, which is always $1$.

<a id="function-twoelementnormal-rngint"></a>
## `TwoElementNormal(I): RngInt -> RngIntElt, RngIntElt`

Two integers that generate the ideal $I$. In this case the generator is returned twice.

<a id="function-chineseremaindertheorem-rngint-rngint-rngintelt-rngintelt"></a>
## `ChineseRemainderTheorem(I, J, a, b): RngInt, RngInt, RngIntElt, RngIntElt -> RngIntElt`

The Chinese remainder theorem for ideals. Given ideals $I$ and $J$ of ${\mathbb{Z}}$ together with integers $a$ and $b$, an integer $x$ such that $x-a \in I$ and $x-b \in J$ is returned.

<a id="function-valuation-rngintelt-rngint"></a>
## `Valuation(x, I): RngIntElt, RngInt -> RngIntElt`

The valuation of the integer $x$ at the prime ideal $I$.

<a id="function-classrepresentative-rngint"></a>
## `ClassRepresentative(I): RngInt -> RngInt`

The representative of the ideal $I$ of ${\mathbb{Z}}$ in the basis of the class group.
