Number fields #
THIS FILE IS SYNCHRONIZED WITH MATHLIB4. Any changes to this file require a corresponding PR to mathlib4. This file defines a number field and the ring of integers corresponding to it.
Main definitions #
number_field
defines a number field as a field which has characteristic zero and is finite dimensional over ℚ.ring_of_integers
defines the ring of integers (or number ring) corresponding to a number field as the integral closure of ℤ in the number field.
Implementation notes #
The definitions that involve a field of fractions choose a canonical field of fractions, but are independent of that choice.
References #
- D. Marcus, Number Fields
- J.W.S. Cassels, A. Frölich, Algebraic Number Theory
- [P. Samuel, Algebraic Theory of Numbers][samuel1970algebraic]
Tags #
number field, ring of integers
- to_char_zero : char_zero K
- to_finite_dimensional : finite_dimensional ℚ K
A number field is a field which has characteristic zero and is finite dimensional over ℚ.
Instances of this typeclass
The ring of integers (or number ring) corresponding to a number field is the integral closure of ℤ in the number field.
Equations
Instances for ↥number_field.ring_of_integers
- number_field.ring_of_integers.is_integral_closure
- number_field.ring_of_integers.is_integrally_closed
- number_field.ring_of_integers.char_zero
- number_field.ring_of_integers.is_noetherian
- number_field.ring_of_integers.is_dedekind_domain
- number_field.ring_of_integers.module.free
- is_cyclotomic_extension.ring_of_integers
- is_cyclotomic_extension.ring_of_integers'
Given an algebra between two fields, create an algebra between their two rings of integers.
For now, this is not an instance by default as it creates an equal-but-not-defeq diamond with
algebra.id
when K = L
. This is caused by x = ⟨x, x.prop⟩
not being defeq on subtypes. This
will likely change in Lean 4.
Equations
- number_field.ring_of_integers_algebra K L = {to_fun := λ (k : ↥(number_field.ring_of_integers K)), ⟨⇑(algebra_map K L) ↑k, _⟩, map_one' := _, map_mul' := _, map_zero' := _, map_add' := _}.to_algebra
The ring of integers of K
are equivalent to any integral closure of ℤ
in K
Equations
The ring of integers of a number field is not a field.
A ℤ-basis of the ring of integers of K
.
A basis of K
over ℚ
that is also a basis of 𝓞 K
over ℤ
.
The ring of integers of ℚ
as a number field is just ℤ
.
The quotient of ℚ[X]
by the ideal generated by an irreducible polynomial of ℚ[X]
is a number field.