Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Impressum Basic.lean   Interaktion und
PortierbarkeitLean

 

/-
Copyright (c) 2023 Xavier Roblot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Xavier Roblot
-/

module

public import Mathlib.GroupTheory.Torsion
public import Mathlib.NumberTheory.NumberField.InfinitePlace.Basic
public import Mathlib.RingTheory.RootsOfUnity.Complex

/-!
# Units of a number field

We prove some basic results on the group `(�� K)ˣ` of units of the ring of integers `�� K` of a number
field `K` and its torsion subgroup.

## Main definition

* `NumberField.Units.torsion`: the torsion subgroup of a number field.

## Main results

* `NumberField.isUnit_iff_norm`: an algebraic integer `x : �� K` is a unit if and only if
  `|norm ℚ x| = 1`.

* `NumberField.Units.mem_torsion`: a unit `x : (�� K)ˣ` is torsion iff `w x = 1` for all infinite
  places `w` of `K`.

## Tags
number field, units
-/


@[expose] public section

open scoped NumberField

noncomputable section

open NumberField Units

section Rat

set_option backward.isDefEq.respectTransparency false in
theorem Rat.RingOfIntegers.isUnit_iff {x : �� ℚ} : IsUnit x ↔ (x : ℚ) = 1 ∨ (x : ℚ) = -1 := by
  simp_rw [(isUnit_map_iff (Rat.ringOfIntegersEquiv : �� ℚ →+* ℤ) x).symm, Int.isUnit_iff,
    RingEquiv.coe_toRingHom, RingEquiv.map_eq_one_iff, RingEquiv.map_eq_neg_one_iff, ←
    Subtype.coe_injective.eq_iff]; rfl

end Rat

variable (K : Type*) [Field K]

section IsUnit

variable {K}

theorem NumberField.isUnit_iff_norm [NumberField K] {x : �� K} :
    IsUnit x ↔ |(x.norm ℚ : ℚ)| = 1 := by
  convert (RingOfIntegers.isUnit_norm ℚ (F := K)).symm
  rw [← abs_one, abs_eq_abs, ← Rat.RingOfIntegers.isUnit_iff]

end IsUnit

namespace NumberField.Units

section coe

instance : CoeHTC (�� K)ˣ K :=
  ⟨fun x => algebraMap _ K (Units.val x)⟩

theorem coe_injective : Function.Injective ((↑) : (�� K)ˣ → K) :=
  RingOfIntegers.coe_injective.comp Units.val_injective

variable {K}

theorem coe_coe (u : (�� K)ˣ) : ((u : �� K) : K) = (u : K) := rfl

theorem _root_.IsPrimitiveRoot.coe_coe_iff {ν : (�� K)ˣ} {n : ℕ} :
    IsPrimitiveRoot (ν : K) n ↔ IsPrimitiveRoot ν n :=
  IsPrimitiveRoot.map_iff_of_injective
    (f := (algebraMap (�� K) K).toMonoidHom.comp (Units.coeHom (�� K))) (coe_injective K)

theorem coe_mul (x y : (�� K)ˣ) : ((x * y : (�� K)ˣ) : K) = (x : K) * (y : K) := rfl

theorem coe_pow (x : (�� K)ˣ) (n : ℕ) : ((x ^ n : (�� K)ˣ) : K) = (x : K) ^ n := by
  rw [← map_pow, ← val_pow_eq_pow_val]

theorem coe_zpow (x : (�� K)ˣ) (n : ℤ) : (↑(x ^ n) : K) = (x : K) ^ n := by
  change ((Units.coeHom K).comp (map (algebraMap (�� K) K))) (x ^ n) = _
  exact map_zpow _ x n

theorem coe_one : ((1 : (�� K)ˣ) : K) = (1 : K) := rfl

theorem coe_neg_one : ((-1 : (�� K)ˣ) : K) = (-1 : K) := rfl

theorem coe_ne_zero (x : (�� K)ˣ) : (x : K) ≠ 0 :=
  Subtype.coe_injective.ne_iff.mpr (_root_.Units.ne_zero x)

end coe

variable {K}

/--
The group homomorphism `(�� K)ˣ →* ℂˣ` induced by a complex embedding of `K`.
-/

protected def complexEmbedding (φ : K →+* ℂ) : (�� K)ˣ →* ℂˣ :=
  (map φ).comp (map (algebraMap (�� K) K).toMonoidHom)

@[simp]
protected theorem complexEmbedding_apply (φ : K →+* ℂ) (u : (�� K)ˣ) :
    Units.complexEmbedding φ u = φ u := rfl

protected theorem complexEmbedding_injective (φ : K →+* ℂ) :
    Function.Injective (Units.complexEmbedding φ) :=
  (map_injective φ.injective).comp (map_injective RingOfIntegers.coe_injective)

@[simp]
protected theorem complexEmbedding_inj (φ : K →+* ℂ) (u v : (�� K)ˣ) :
    Units.complexEmbedding φ u = Units.complexEmbedding φ v ↔ u = v :=
  (Units.complexEmbedding_injective φ).eq_iff

open NumberField.InfinitePlace

variable (K)

@[simp]
protected theorem norm [NumberField K] (x : (�� K)ˣ) :
    |Algebra.norm ℚ (x : K)| = 1 := by
  rw [← RingOfIntegers.coe_norm, isUnit_iff_norm.mp x.isUnit]

variable {K} in
theorem pos_at_place (x : (�� K)ˣ) (w : InfinitePlace K) :
    0 < w x := pos_iff.mpr (coe_ne_zero x)

variable {K} in
theorem sum_mult_mul_log [NumberField K] (x : (�� K)ˣ) :
    ∑ w : InfinitePlace K, w.mult * Real.log (w x) = 0 := by
  simpa [Units.norm, Real.log_prod, Real.log_pow] using
    congr(Real.log $(prod_eq_abs_norm (x : K)))

section torsion

/-- The torsion subgroup of the group of units. -/
def torsion : Subgroup (�� K)ˣ := CommGroup.torsion (�� K)ˣ

instance : Nonempty (torsion K) := One.instNonempty

variable [NumberField K]

theorem mem_torsion {x : (�� K)ˣ} :
    x ∈ torsion K ↔ ∀ w : InfinitePlace K, w x = 1 := by
  rw [eq_iff_eq (x : K) 1, torsion, CommGroup.mem_torsion]
  refine ⟨fun hx φ ↦ (((φ.comp <| algebraMap (�� K) K).toMonoidHom.comp <|
    Units.coeHom _).isOfFinOrder hx).norm_eq_one, fun h ↦ isOfFinOrder_iff_pow_eq_one.2 ?_⟩
  obtain ⟨n, hn, hx⟩ := Embeddings.pow_eq_one_of_norm_eq_one K ℂ x.val.isIntegral_coe h
  exact ⟨n, hn, by ext; rw [NumberField.RingOfIntegers.coe_eq_algebraMap, coe_pow, hx,
    NumberField.RingOfIntegers.coe_eq_algebraMap, coe_one]⟩

/-- The torsion subgroup is finite. -/
instance : Finite (torsion K) := by
  refine Set.Finite.of_finite_image ?_ (coe_injective K).injOn
  refine (Embeddings.finite_of_norm_le K ℂ 1).subset
    (fun a ⟨u, ⟨h_tors, h_ua⟩⟩ => ⟨?_, fun φ => ?_⟩)
  · rw [← h_ua]
    exact u.val.prop
  · rw [← h_ua]
    exact le_of_eq ((eq_iff_eq _ 1).mp ((mem_torsion K).mp h_tors) φ)

/-- The torsion subgroup is cyclic. -/
instance : IsCyclic (torsion K) := isCyclic_subgroup_units _

/-- The order of the torsion subgroup. -/
def torsionOrder : ℕ := Nat.card (torsion K)

theorem torsionOrder_pos : 0 < torsionOrder K :=
  Nat.card_pos

theorem torsionOrder_ne_zero : torsionOrder K ≠ 0 :=
  (torsionOrder_pos K).ne'

instance : NeZero (torsionOrder K) :=
  ⟨torsionOrder_ne_zero K⟩

omit [NumberField K] in
theorem pow_torsionOrder_eq_one {ζ : (�� K)ˣ} (hζ : ζ ∈ torsion K) :
    ζ ^ torsionOrder K = 1 :=
  Subtype.ext_iff.mp <| @pow_card_eq_one' (torsion K) _ ⟨ζ, hζ⟩

omit [NumberField K] in
/-- If `k` does not divide `torsionOrder` then there are no nontrivial roots of unity of
  order dividing `k`. -/

theorem rootsOfUnity_eq_one {k : ℕ+} (hc : Nat.Coprime k (torsionOrder K))
    {ζ : (�� K)ˣ} : ζ ∈ rootsOfUnity k (�� K) ↔ ζ = 1 := by
  rw [mem_rootsOfUnity]
  refine ⟨fun h => ?_, fun h => by rw [h, one_pow]⟩
  refine orderOf_eq_one_iff.mp (Nat.eq_one_of_dvd_coprimes hc ?_ ?_)
  · exact orderOf_dvd_of_pow_eq_one h
  · have hζ : ζ ∈ torsion K := by
      rw [torsion, CommGroup.mem_torsion, isOfFinOrder_iff_pow_eq_one]
      exact ⟨k, k.prop, h⟩
    rw [orderOf_submonoid (⟨ζ, hζ⟩ : torsion K)]
    apply orderOf_dvd_natCard

/-- The group of roots of unity of order dividing `torsionOrder` is equal to the torsion
group. -/

theorem rootsOfUnity_eq_torsion :
    rootsOfUnity (torsionOrder K) (�� K) = torsion K := by
  ext ζ
  rw [torsion, mem_rootsOfUnity]
  refine ⟨fun h ↦ ?_, fun h ↦ pow_torsionOrder_eq_one K h⟩
  rw [CommGroup.mem_torsion, isOfFinOrder_iff_pow_eq_one]
  exact ⟨torsionOrder K, torsionOrder_pos K, h⟩

/--
The image of `torsion K` by a complex embedding is the group of complex roots of unity of
order `torsionOrder K`.
-/

theorem map_complexEmbedding_torsion (φ : K →+* ℂ) :
    (torsion K).map (Units.complexEmbedding φ) = rootsOfUnity (torsionOrder K) ℂ := by
  apply Subgroup.eq_of_le_of_card_ge
  · rw [← rootsOfUnity_eq_torsion]
    exact map_rootsOfUnity _ (torsionOrder K)
  · let e := ((torsion K).equivMapOfInjective (Units.complexEmbedding φ)
      (Units.complexEmbedding_injective φ)).symm.toEquiv
    rw [Complex.card_rootsOfUnity, Nat.card_congr e, torsionOrder]

theorem even_torsionOrder :
    Even (torsionOrder K) := by
  suffices orderOf (⟨-1, neg_one_mem_torsion⟩ : torsion K) = 2 by
    rw [even_iff_two_dvd, ← this]
    apply orderOf_dvd_natCard
  simp [← Subgroup.orderOf_coe, ringChar.eq_zero]

section odd

variable {K}

set_option backward.isDefEq.respectTransparency false in
theorem torsion_eq_one_or_neg_one_of_odd_finrank
    (h : Odd (Module.finrank ℚ K)) (x : torsion K) : (x : (�� K)ˣ) = 1 ∨ (x : (�� K)ˣ) = -1 := by
  by_cases! hc : 2 < orderOf (x : (�� K)ˣ)
  · rw [← orderOf_units, ← orderOf_submonoid] at hc
    linarith [IsPrimitiveRoot.nrRealPlaces_eq_zero_of_two_lt hc (IsPrimitiveRoot.orderOf (x.1 : K)),
        NumberField.InfinitePlace.nrRealPlaces_pos_of_odd_finrank h]
  · interval_cases hi : orderOf (x : (�� K)ˣ)
    · linarith [orderOf_pos_iff.2 ((CommGroup.mem_torsion x.1).1 x.2)]
    · exact Or.intro_left _ (orderOf_eq_one_iff.1 hi)
    · rw [← orderOf_units, CharP.orderOf_eq_two_iff 0 (by decide)] at hi
      simp [← Units.val_inj, ← Units.val_inj, Units.val_neg, Units.val_one, hi]

theorem torsionOrder_eq_two_of_odd_finrank (h : Odd (Module.finrank ℚ K)) :
    torsionOrder K = 2 := by
  classical
  let := Fintype.ofFinite (torsion K)
  rw [torsionOrder, Nat.card_eq_fintype_card]
  refine (Finset.card_eq_two.2 ⟨1, ⟨-1, neg_one_mem_torsion⟩,
    by simp [← Subtype.coe_ne_coe], Finset.ext fun x ↦ ⟨fun _ ↦ ?_, fun _ ↦ Finset.mem_univ _⟩⟩)
  rw [Finset.mem_insert, Finset.mem_singleton, ← Subtype.val_inj, ← Subtype.val_inj]
  exact torsion_eq_one_or_neg_one_of_odd_finrank h x

end odd

end torsion

end Units

end NumberField

Messung
CHZG
9210010097

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.2Angebot  (Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-11-24) ¤

*Bot Zugriff







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,119
#Domains=863,726