The areas / V12. Number theory
Mathlib.NumberTheory.Height.NumberField
36 declarations and 4 deprecated aliases. Mathlib docs · Source
Heights over number fields
We provide an instance of Height.AdmissibleAbsValues for algebraic number fields
and set up some API.
Main results
- Heights on number fields satisfy the Northcott property: If
Kis a number field, then the set of elements ofKof bounded (multiplicative or logarithmic) height is finite; seeNumberField.finite_setOfPred_mulHeight₁_leandNumberField.finite_setOfPred_logHeight₁_le. We also provide instances forNorthcott (mulHeight₁ (K := K))(which automatically leads also toNorthcott (logHeight₁ (K := K))).
TODO
When this file gets long, split the material on heights over ℚ off into a file Rat.lean.
Instance for number fields
The Northcott property for heights on number fields
We show that a number field K has the Northcott property with respect to the multiplicative
and with respect to the logarithmic height, i.e., for any B : ℝ the set of elements x : K
such that mulHeight₁ x ≤ B (resp., logHeight₁ x ≤ B) is finite.
See NumberField.finite_setOfPred_mulHeight₁_le and NumberField.finite_setOfPred_logHeight₁_le.
The main idea of the proof is as follows. We show that for every x : K there is n : ℕ such that
n * x is an algebraic integer and n ≤ mulHeight₁ x; see NumberField.exists_nat_le_mulHeight₁.
We also show that the set of a : 𝓞 K such that mulHeight₁ (a / n) is bounded is finite;
see NumberField.finite_setOfPred_prod_infinitePlace_iSup_le. The result for the multiplicative
height follows by combining these two ingredients, and the result for the logarithmic height follows
from that for any field with a family of admissible absolute values
(see Mathlib.NumberTheory.Height.Northcott).
Positivity extension for totalWeight on number fields
Heights over the rational numbers
We show that the Height.mulHeight of a tuple of coprime integers (considered as rational numbers)
equals the maximum of their absolute values and that the Height.mulHeight₁ of a rational
number is the maximum of the absolute value of the numerator and the denominator.
We add the corresponding results for logarithmic heights.
theorem NumberField.multisetInfinitePlace.congr_simp E1 #
∀ (K : Type u_1) [inst : Field K] [inst_1 : NumberField K],
NumberField.multisetInfinitePlace K = NumberField.multisetInfinitePlace K
theorem NumberField.IsFinitePlace.congr_simp E1 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] (w w_1 : AbsoluteValue K ℝ),
w = w_1 → NumberField.IsFinitePlace w = NumberField.IsFinitePlace w_1
def NumberField.multisetInfinitePlace E1 #
(K : Type u_1) → [inst : Field K] → [NumberField K] → Multiset (AbsoluteValue K ℝ)
The infinite places of a number field K as a Multiset of absolute values on K,
with multiplicity given by InfinitePlace.mult.
theorem NumberField.mem_multisetInfinitePlace E0 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] {v : AbsoluteValue K ℝ},
v ∈ NumberField.multisetInfinitePlace K ↔ NumberField.IsInfinitePlace v
theorem NumberField.count_multisetInfinitePlace_eq_mult E1 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] [inst_2 : DecidableEq (AbsoluteValue K ℝ)]
(v : NumberField.InfinitePlace K), Multiset.count (↑v) (NumberField.multisetInfinitePlace K) = v.mult
instance NumberField.instAdmissibleAbsValues E0 #
{K : Type u_1} → [inst : Field K] → [NumberField K] → Height.AdmissibleAbsValues K
theorem NumberField.prod_archAbsVal_eq E0 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] {M : Type u_2} [inst_2 : CommMonoid M]
(f : AbsoluteValue K ℝ → M), (Multiset.map f Height.AdmissibleAbsValues.archAbsVal).prod = ∏ v, f ↑v ^ v.mult
theorem NumberField.prod_nonarchAbsVal_eq E0 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] {M : Type u_2} [inst_2 : CommMonoid M]
(f : AbsoluteValue K ℝ → M),
∏ᶠ (v : ↑Height.AdmissibleAbsValues.nonarchAbsVal), f ↑v = ∏ᶠ (v : NumberField.FinitePlace K), f ↑v
theorem NumberField.sum_archAbsVal_eq E0 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] {M : Type u_2} [inst_2 : AddCommMonoid M]
(f : AbsoluteValue K ℝ → M), (Multiset.map f Height.AdmissibleAbsValues.archAbsVal).sum = ∑ v, v.mult • f ↑v
theorem NumberField.sum_nonarchAbsVal_eq E0 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] {M : Type u_2} [inst_2 : AddCommMonoid M]
(f : AbsoluteValue K ℝ → M),
∑ᶠ (v : ↑Height.AdmissibleAbsValues.nonarchAbsVal), f ↑v = ∑ᶠ (v : NumberField.FinitePlace K), f ↑v
theorem NumberField.mulHeight₁_eq E0 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] (x : K),
Height.mulHeight₁ x = (∏ v, max (v x) 1 ^ v.mult) * ∏ᶠ (v : NumberField.FinitePlace K), max (v x) 1
This is the familiar definition of the multiplicative height on a number field.
theorem NumberField.logHeight₁_eq E0 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] (x : K),
Height.logHeight₁ x = ∑ v, ↑v.mult * (v x).posLog + ∑ᶠ (v : NumberField.FinitePlace K), (v x).posLog
This is the familiar definition of the logarithmic height on a number field.
theorem NumberField.mulHeight_eq E0 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] {ι : Type u_2} {x : ι → K},
x ≠ 0 → Height.mulHeight x = (∏ v, (⨆ i, v (x i)) ^ v.mult) * ∏ᶠ (v : NumberField.FinitePlace K), ⨆ i, v (x i)
This is the familiar definition of the multiplicative height on (nonzero) tuples of number field elements.
def NumberField.absMulHeight₁ E1 #
{K : Type u_2} → [inst : Field K] → [CharZero K] → K → ℝ
The absolute multiplicative height of an algebraic number. This is defined for elements of any
field of characteristic zero, with a junk value of 0 if the element is not algebraic.
def NumberField.absLogHeight₁ E1 #
{K : Type u_2} → [inst : Field K] → [CharZero K] → K → ℝ
The absolute logarithmic height of an algebraic number. This is defined for elements of any
field of characteristic zero, with a junk value of 0 if the element is not algebraic.
theorem NumberField.totalWeight_eq_sum_mult E1 #
∀ (K : Type u_1) [inst : Field K] [inst_1 : NumberField K], Height.totalWeight K = ∑ v, v.mult
theorem NumberField.totalWeight_eq_finrank E1 #
∀ (K : Type u_1) [inst : Field K] [inst_1 : NumberField K], Height.totalWeight K = Module.finrank ℚ K
theorem NumberField.totalWeight_pos E1 #
∀ (K : Type u_1) [inst : Field K] [inst_1 : NumberField K], 0 < Height.totalWeight K
theorem NumberField.absNorm_mul_finprod_finitePlace_eq_one E1 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] {ι : Type u_2} [Finite ι]
{x : ι → NumberField.RingOfIntegers K},
x ≠ 0 → ↑(Ideal.absNorm (Ideal.span (Set.range x))) * ∏ᶠ (v : NumberField.FinitePlace K), ⨆ i, v ↑(x i) = 1
This statement is equivalent to the fact that the "finite part" of the multiplicative
height of a (non-zero) tuple x is the inverse of the absolute norm of the ideal generated
by the values of x. We state it in a way that avoids taking an inverse.
theorem NumberField.exists_nat_ne_zero_exists_integer_mul_eq_and_absNorm_span_eq_pow E1 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] (x : K),
∃ n, n ≠ 0 ∧ ∃ a, ↑n * x = ↑a ∧ Ideal.absNorm (Ideal.span {↑n, a}) = n ^ (Module.finrank ℚ K - 1)
theorem NumberField.exists_nat_le_mulHeight₁ E1 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] (x : K),
∃ n, n ≠ 0 ∧ ↑n ≤ Height.mulHeight₁ x ∧ IsIntegral ℤ (↑n * x)
If x : K (for a number field K), then we can find a nonzero n : ℕ such that
n ≤ mulHeight₁ x and n * x is integral. I.e., the denominator of x can be bounded by
its multiplicative height.
theorem NumberField.natDenominator_le_mulHeight₁ E1 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] (x : K), ↑(Algebra.natDenominator x) ≤ Height.mulHeight₁ x
The natural-number denominator of an element of a number field is bounded by its multiplicative height.
theorem NumberField.finite_setOfPred_prod_infinitePlace_iSup_le E1 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] {n : ℕ},
n ≠ 0 → ∀ (B : ℝ), {x | ∏ v, (⨆ i, v (![↑x, ↑n] i)) ^ v.mult ≤ B}.Finite
theorem NumberField.finite_setOfPred_mulHeight_nat_le E1 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K] {n : ℕ},
n ≠ 0 → ∀ (B : ℝ), {a | Height.mulHeight ![↑a, ↑n] ≤ B}.Finite
The set of a : 𝓞 K such that mulHeight₁ (a / n) = mulHeight ![a, n] is bounded
(for some given nonzero n : ℕ) is finite.
theorem NumberField.finite_setOfPred_mulHeight₁_le E3 #
∀ (K : Type u_1) [inst : Field K] [inst_1 : NumberField K] (B : ℝ), {x | Height.mulHeight₁ x ≤ B}.Finite
A number field K satisfies the Northcott property:
The set of elements of bounded multiplicative height is finite.
instance NumberField.instNorthcottRealMulHeight₁ E0 #
∀ {K : Type u_1} [inst : Field K] [inst_1 : NumberField K], Northcott Height.mulHeight₁
theorem NumberField.finite_setOfPred_logHeight₁_le E3 #
∀ (K : Type u_1) [inst : Field K] [inst_1 : NumberField K] (B : ℝ), {x | Height.logHeight₁ x ≤ B}.Finite
A number field K satisfies the Northcott property:
The set of elements of bounded logarithmic height is finite.
def Mathlib.Meta.Positivity.evalHeightTotalWeight E1 #
Mathlib.Meta.Positivity.PositivityExt
Extension for the positivity tactic: Height.totalWeight is positive for number fields.
theorem Rat.iSup_finitePlace_apply_eq_one_of_gcd_eq_one E1 #
∀ {ι : Type u_1} [inst : Fintype ι] [Nonempty ι] {x : ι → ℤ} (v : NumberField.FinitePlace ℚ),
Finset.univ.gcd x = 1 → ⨆ i, v ↑(x i) = 1
The term corresponding to a finite place in the definition of the multiplicative height
of a tuple of rational numbers equals 1 if the tuple consists of coprime integers.
theorem Rat.mulHeight_eq_max_abs_of_gcd_eq_one E1 #
∀ {ι : Type u_1} [inst : Fintype ι] [Nonempty ι] {x : ι → ℤ},
Finset.univ.gcd x = 1 → Height.mulHeight (Int.cast ∘ x) = ↑(⨆ i, |x i|)
The multiplicative height of a tuple of rational numbers that consists of coprime integers is the maximum of the absolute values of the entries.
theorem Rat.logHeight_eq_max_abs_of_gcd_eq_one E1 #
∀ {ι : Type u_1} [inst : Fintype ι] [Nonempty ι] {x : ι → ℤ},
Finset.univ.gcd x = 1 → Height.logHeight (Int.cast ∘ x) = Real.log ↑(⨆ i, |x i|)
The logarithmic height of a tuple of rational numbers that consists of coprime integers is the logarithm of the maximum of the absolute values of the entries.
theorem Rat.mulHeight_self_one_eq_mulHeight_num_den E1 #
∀ (q : ℚ), Height.mulHeight ![q, 1] = Height.mulHeight ![↑q.num, ↑q.den]
theorem Rat.mulHeight₁_eq_max E1 #
∀ (q : ℚ), Height.mulHeight₁ q = ↑(max q.num.natAbs q.den)
The multiplicative height of a rational number is the maximum of the absolute value of its numerator and its denominator.
theorem Rat.logHeight₁_eq_log_max E1 #
∀ (q : ℚ), Height.logHeight₁ q = Real.log ↑(max q.num.natAbs q.den)
The logarithmic height of a rational number is the logarithm of the maximum of the absolute value of its numerator and its denominator.
theorem Rat.mulHeight₁_natCast E1 #
∀ (n : ℕ) [NeZero n], Height.mulHeight₁ ↑n = ↑n
The multiplicative height of a positive natural number n cast to ℚ equals n.
theorem Rat.logHeight₁_natCast E1 #
∀ (n : ℕ) [NeZero n], Height.logHeight₁ ↑n = Real.log ↑n
The logarithmic height of a positive natural number n cast to ℚ equals log n.
Deprecated aliases
| Name | New name | Since |
|---|---|---|
NumberField.finite_setOf_logHeight₁_le | NumberField.finite_setOfPred_logHeight₁_le | 2026-07-09 |
NumberField.finite_setOf_mulHeight_nat_le | NumberField.finite_setOfPred_mulHeight_nat_le | 2026-07-09 |
NumberField.finite_setOf_mulHeight₁_le | NumberField.finite_setOfPred_mulHeight₁_le | 2026-07-09 |
NumberField.finite_setOf_prod_infinitePlace_iSup_le | NumberField.finite_setOfPred_prod_infinitePlace_iSup_le | 2026-07-09 |