← LibraryDecomposition of Prime Numbers in Number FieldsEngineering · MathematicsLesson 6/7← PrevNext →
GuidePublished 6 Aug 20265 min readBy Kevin JoginComputational Number TheoryNumber Fields IPrime DecompositionRamification Index
Skip to the main content

MathematicsNumber Fields I

Decomposition of Prime Numbers in Number Fields

How a rational prime splits into prime ideals, the fundamental identity that constrains it, and the algorithm that computes it.

Executive summary

Factor the defining polynomial modulo p — usually that is the whole answer

A rational prime generates an ideal that factors into primes of ℤK with exponents ei and residue degrees fi satisfying ∑eifi = n. When p does not divide the index, Dedekind's theorem says the decomposition is read directly off the factorisation of the defining polynomial modulo p. The hard case is the finitely many primes dividing the index, which need the Buchmann–Lenstra machinery.

Learning objectives

  • State the fundamental identity and interpret e and f.
  • Apply Dedekind's theorem to decompose a prime.
  • Identify split, inert and ramified primes.
  • Compute the valuation of an element or ideal at a prime.
  • Recognise when the simple algorithm does not apply.

Section 01The fundamental identity

pK = ∏i=1g 𝔽iei,    ∑i ei fi = n

Here ei is the ramification index and fi the residue degree, the degree of ℤK/𝔽i over Fp. The norm of 𝔽i is pfi.

Decomposition types in a degree-n field
TypePatternMeaning
Totally splitg = n, all e = f = 1n distinct primes of norm p
Inertg = 1, e = 1, f = np remains prime; one prime of norm pn
Totally ramifiedg = 1, e = n, f = 1pℤK = 𝔽n
Partially split1 < g < nThe general unramified case
Ramifiedsome ei > 1Occurs only for p dividing dK — finitely many primes
Galois extensions are uniform

In a Galois extension the Galois group permutes the primes above p transitively, so all ei are equal and all fi are equal: efg = n. This rigidity is what makes decomposition in cyclotomic and other Galois fields predictable from congruence conditions alone.

Section 02Dedekind's theorem and the simple algorithm

If p does not divide the index [ℤK : ℤ[θ]], the decomposition mirrors the factorisation of the defining polynomial:

AlgorithmPrime decomposition for p not dividing the indexin: T, prime p not dividing the index  →  out: the primes above p
  1. Factor T modulo p as ∏ g̅i(x)ei with each g̅i irreducible.
  2. For each i, lift g̅i arbitrarily to gi ∈ ℤ[x].
  3. Set 𝔽i ← (p, gi(θ)) — a two-element representation. The lift does not matter; different lifts give the same ideal.
  4. Then ei is the multiplicity and fi = deg g̅i.
  5. Verify ∑ eifi = n as a consistency check.
Cost is one factorisation modulo p, which is polynomial time. This covers all but finitely many primes and is the algorithm that runs in practice.
Check the index condition

Applying this to a prime dividing the index produces ideals that are not prime, or misses primes entirely, with no internal signal of failure. Since only primes whose square divides disc(T) can divide the index, the check is cheap — but it must be made.

Section 03Valuations

The valuation v𝔽(α) is the exponent of 𝔽 in the factorisation of (α). It is computed without factoring the norm by using an element π that is a uniformiser at 𝔽 and a unit at the other primes above p.

AlgorithmValuation at a prime idealin: α ∈ ℤK, prime 𝔽  →  out: v𝔽(α)
  1. Precompute π ∈ 𝔽 \ 𝔽2 with π ∉ 𝔽j for j ≠ i. Constructed once per prime by the Chinese remainder theorem.
  2. Set v ← 0 and β ← α.
  3. While β ∈ 𝔽: set β ← βπ−1 · p (kept integral), and increment v.
  4. Return v.
A faster route bounds the valuation using vp(N(α)) and the residue degree, which limits the number of iterations before the loop starts.
Where valuations are needed

Relation collection in class group algorithms produces elements whose ideals must be expressed as exponent vectors over the factor base. Each entry of such a vector is a valuation, so this routine runs enormously often and is worth optimising.

Section 04The hard primes

For p dividing the index, Dedekind's theorem does not apply. Two approaches exist, and both are covered in the Number Fields II stream.

Approach

Compute the maximal order first

Run the Round 2 algorithm to obtain ℤK, then decompose using the structure of ℤK/pℤK directly.

Approach

Buchmann–Lenstra

Decompose the separable algebra ℤK/pℤK into local factors without first computing a full integral basis.

Approach

Newton polygons

Read ramification data off the Newton polygon of T at p. Often gives the answer immediately when the polygon has distinct slopes.

ReferenceFrequently asked questions

How do I know in advance whether p ramifies?

p ramifies exactly when it divides the field discriminant dK. Since only finitely many primes divide it, all but finitely many primes are unramified and fall under the simple algorithm.

Do the exponents in the fundamental identity depend on the defining polynomial?

No. The e and f are invariants of the field and the prime. Different defining polynomials give different intermediate factorisations but the same decomposition type, which makes the identity a useful cross-check between representations.

What is the residue field used for?

It is the finite field ℤK/𝔽, of size p^f. Reduction into it converts questions about algebraic integers into finite field computations — the basis of point counting on curves and of modular methods over number fields.

NavigateContinue in this stream

Curated next steps from this page. The site also surfaces algorithmically related reading below.

ProvenanceSources and further reading

This page is an original KEVOS explanatory article. It presents the underlying mathematics — definitions, algorithms, complexity results and selection criteria — in KEVOS editorial voice. No text is reproduced from any copyrighted source. Where numerical tables are relevant, KEVOS links to live authoritative databases rather than republishing static values.

Page ID
KV-MATH-0029
Taxonomy
ENG-MATH — Engineering / Mathematics
Collection
COL-CANT-001
Topic stream
CANT-NUMBER-FIELDS
Version
1.1.0 / content 2026.08
Last reviewed
2026-08-06

Continue learning

Orders and Ideals in Number FieldsGuide · MathematicsNEXT LESSON →Class Groups, Units and the RegulatorGuide · MathematicsDiscriminants and Integral BasesGuide · MathematicsTrace, Norm and the Characteristic PolynomialGuide · Mathematics