Number fields #
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
The ring of integers (or number ring) corresponding to a number field is the integral closure of ℤ in the number field.
Equations
- 𝓞 K = integral_closure ℤ K
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 : ↥(𝓞 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.
The ring of integers of ℚ
as a number field is just ℤ
.