/-
Copyright (c) 2024 Michail Karatarakis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michail Karatarakis
-/
module
public import Mathlib.NumberTheory.NumberField.CanonicalEmbedding.Basic
/-!
# Reindexed basis
This file introduces an equivalence between the set of embeddings of `K` into `ℂ` and the
index set of the chosen basis of the ring of integers of `K`.
## Tags
house, number field, algebraic number
-/
public section
variable (K : Type*) [Field K] [NumberField K]
namespace NumberField
noncomputable section
open Module.Free Module canonicalEmbedding Matrix Finset
/-- An equivalence between the set of embeddings of `K` into `ℂ` and the
index set of the chosen basis of the ring of integers of `K`. -/
abbrev equivReindex : (K →+* ℂ) ≃ ChooseBasisIndex ℤ ( K) :=
Fintype.equivOfCardEq <| by
rw [Embeddings.card, ← finrank_eq_card_chooseBasisIndex, RingOfIntegers.rank]
/-- The basis matrix for the embeddings of `K` into `ℂ`. This matrix is formed by
taking the lattice basis vectors of `K` and reindexing them according to the
equivalence `equivReindex`, then transposing the resulting matrix. -/
abbrev basisMatrix : Matrix (K →+* ℂ) (K →+* ℂ) ℂ :=
(Matrix.of fun i ↦ latticeBasis K (equivReindex K i))
theorem basisMatrix_eq_embeddingsMatrixReindex :
basisMatrix K = Algebra.embeddingsMatrixReindex ℚ ℂ
(integralBasis K ∘ (equivReindex K)) (RingHom.equivRatAlgHom K ℂ) := by
ext; simp [Algebra.embeddingsMatrixReindex]
open ComplexConjugate in
theorem conj_basisMatrix :
(basisMatrix K).map conj = (basisMatrix K).reindex (Equiv.refl _)
(ComplexEmbedding.involutive_conjugate K).toPerm := by
ext; simp
theorem det_of_basisMatrix_non_zero [DecidableEq (K →+* ℂ)] : (basisMatrix K).det ≠ 0 := by
rw [basisMatrix_eq_embeddingsMatrixReindex, ← pow_ne_zero_iff two_ne_zero]
convert
(map_ne_zero_iff _ (algebraMap ℚ ℂ).injective).mpr
(Algebra.discr_not_zero_of_basis ℚ (integralBasis K))
rw [← Algebra.discr_reindex ℚ (integralBasis K) (equivReindex K).symm]
exact (Algebra.discr_eq_det_embeddingsMatrixReindex_pow_two ℚ ℂ
(integralBasis K ∘ (equivReindex K)) (RingHom.equivRatAlgHom K ℂ)).symm
instance [DecidableEq (K →+* ℂ)] : Invertible (basisMatrix K) := invertibleOfIsUnitDet _
(Ne.isUnit (det_of_basisMatrix_non_zero K))
variable {K}
theorem canonicalEmbedding_eq_basisMatrix_mulVec (α : K) :
canonicalEmbedding K α = (basisMatrix K).transpose.mulVec
(fun i ↦ (((integralBasis K).reindex (equivReindex K).symm).repr α i : ℂ)) := by
ext i
rw [← (latticeBasis K).sum_repr (canonicalEmbedding K α), ← Equiv.sum_comp (equivReindex K)]
simp [canonicalEmbedding.integralBasis_repr_apply, mulVec, dotProduct, mul_comm]
theorem inverse_basisMatrix_mulVec_eq_repr [DecidableEq (K →+* ℂ)] (α : K) :
∀ i, ((basisMatrix K).transpose)⁻¹.mulVec (fun j =>
canonicalEmbedding K (algebraMap ( K) K α) j) i =
((integralBasis K).reindex (equivReindex K).symm).repr α i := fun i => by
rw [inv_mulVec_eq_vec (canonicalEmbedding_eq_basisMatrix_mulVec ((algebraMap ( K) K) α))]
end
end NumberField
¤ Dauer der Verarbeitung: 0.3 Sekunden
¤
*© Formatika GbR, Deutschland