The areas / V10. Commutative algebra II: valuations, Dedekind domains, local algebra
Mathlib.RingTheory.Discriminant
18 declarations. Mathlib docs · Source
Discriminant of a family of vectors
Given an A-algebra B and b, an ι-indexed family of elements of B, we define the
discriminant of b as the determinant of the matrix whose (i j)-th element is the trace of
b i * b j.
Main definition
Algebra.discr A b: the discriminant ofb : ι → B.
Main results
Algebra.discr_zero_of_not_linearIndependent: ifbis not linear independent, thenAlgebra.discr A b = 0.Algebra.discr_of_matrix_vecMulandAlgebra.discr_of_matrix_mulVec: formulas relatingAlgebra.discr A ι bwithAlgebra.discr A (b ᵥ* P.map (algebraMap A B))andAlgebra.discr A (P.map (algebraMap A B) *ᵥ b).Algebra.discr_not_zero_of_basis: over a field, ifbis a basis, thenAlgebra.discr K b ≠ 0.Algebra.discr_eq_det_embeddingsMatrixReindex_pow_two: ifL/Kis a field extension andb : ι → L, thendiscr K bis the square of the determinant of the matrix whose(i, j)coefficient isσⱼ (b i), whereσⱼ : L →ₐ[K] Eis the embedding in an algebraically closed fieldEcorresponding toj : ιvia a bijectione : ι ≃ (L →ₐ[K] E).Algebra.discr_powerBasis_eq_prod: the discriminant of a power basis.Algebra.discr_isIntegral: ifKandLare fields andIsScalarTower R K L, ifb : ι → Lsatisfies∀ i, IsIntegral R (b i), thenIsIntegral R (discr K b).Algebra.discr_mul_isIntegral_mem_adjoin: letKbe the fraction field of an integrally closed domainRand letLbe a finite separable extension ofK. LetB : PowerBasis K Lbe such thatIsIntegral R B.gen. Then for all,z : Lwe have(discr K B.basis) • z ∈ adjoin R ({B.gen} : Set L).
Implementation notes
Our definition works for any A-algebra B, but note that if B is not free as an A-module,
then trace A B = 0 by definition, so discr A b = 0 for any b.
theorem Algebra.discr.congr_simp E1 #
∀ {ι : Type w} {inst : DecidableEq ι} [inst_1 : DecidableEq ι] (A : Type u) {B : Type v} [inst_2 : CommRing A]
[inst_3 : CommRing B] [inst_4 : Algebra A B] [inst_5 : Fintype ι] (b b_1 : ι → B),
b = b_1 → Algebra.discr A b = Algebra.discr A b_1
def Algebra.discr E1 #
{ι : Type w} →
[DecidableEq ι] →
(A : Type u) →
{B : Type v} → [inst : CommRing A] → [inst_1 : CommRing B] → [Algebra A B] → [Fintype ι] → (ι → B) → A
Given an A-algebra B and b, an ι-indexed family of elements of B, we define
discr A ι b as the determinant of traceMatrix A ι b.
theorem Algebra.discr_def E0 #
∀ (A : Type u) {B : Type v} {ι : Type w} [inst : DecidableEq ι] [inst_1 : CommRing A] [inst_2 : CommRing B]
[inst_3 : Algebra A B] [inst_4 : Fintype ι] (b : ι → B), Algebra.discr A b = (Algebra.traceMatrix A b).det
theorem Algebra.discr_eq_discr_of_algEquiv E1 #
∀ {A : Type u} {B : Type v} {C : Type z} {ι : Type w} [inst : DecidableEq ι] [inst_1 : CommRing A] [inst_2 : CommRing B]
[inst_3 : Algebra A B] [inst_4 : CommRing C] [inst_5 : Algebra A C] [inst_6 : Fintype ι] (b : ι → B) (f : B ≃ₐ[A] C),
Algebra.discr A b = Algebra.discr A (⇑f ∘ b)
Mapping a family of vectors along an AlgEquiv preserves the discriminant.
theorem Algebra.discr_reindex E0 #
∀ (A : Type u) {B : Type v} {ι : Type w} [inst : DecidableEq ι] [inst_1 : CommRing A] [inst_2 : CommRing B]
[inst_3 : Algebra A B] {ι' : Type u_1} [inst_4 : Fintype ι'] [inst_5 : Fintype ι] [inst_6 : DecidableEq ι']
(b : Module.Basis ι A B) (f : ι ≃ ι'), Algebra.discr A (⇑b ∘ ⇑f.symm) = Algebra.discr A ⇑b
theorem Algebra.discr_zero_of_not_linearIndependent E3 #
∀ (A : Type u) {B : Type v} {ι : Type w} [inst : DecidableEq ι] [inst_1 : CommRing A] [inst_2 : CommRing B]
[inst_3 : Algebra A B] [inst_4 : Fintype ι] [IsDomain A] {b : ι → B}, ¬LinearIndependent A b → Algebra.discr A b = 0
If b is not linear independent, then Algebra.discr A b = 0.
theorem Algebra.discr_of_matrix_vecMul E3 #
∀ {A : Type u} {B : Type v} {ι : Type w} [inst : DecidableEq ι] [inst_1 : CommRing A] [inst_2 : CommRing B]
[inst_3 : Algebra A B] [inst_4 : Fintype ι] (b : ι → B) (P : Matrix ι ι A),
Algebra.discr A (Matrix.vecMul b (P.map ⇑(algebraMap A B))) = P.det ^ 2 * Algebra.discr A b
Relation between Algebra.discr A ι b and
Algebra.discr A (b ᵥ* P.map (algebraMap A B)).
theorem Algebra.discr_of_matrix_mulVec E3 #
∀ {A : Type u} {B : Type v} {ι : Type w} [inst : DecidableEq ι] [inst_1 : CommRing A] [inst_2 : CommRing B]
[inst_3 : Algebra A B] [inst_4 : Fintype ι] (b : ι → B) (P : Matrix ι ι A),
Algebra.discr A ((P.map ⇑(algebraMap A B)).mulVec b) = P.det ^ 2 * Algebra.discr A b
Relation between Algebra.discr A ι b and
Algebra.discr A ((P.map (algebraMap A B)) *ᵥ b).
theorem Algebra.discr_not_zero_of_basis E3 #
∀ {ι : Type w} [inst : DecidableEq ι] [inst_1 : Fintype ι] (K : Type u) {L : Type v} [inst_2 : Field K]
[inst_3 : Field L] [inst_4 : Algebra K L] [Module.Finite K L] [Algebra.IsSeparable K L] (b : Module.Basis ι K L),
Algebra.discr K ⇑b ≠ 0
If b is a basis of a finite separable field extension L/K, then Algebra.discr K b ≠ 0.
theorem Algebra.discr_isUnit_of_basis E1 #
∀ {ι : Type w} [inst : DecidableEq ι] [inst_1 : Fintype ι] (K : Type u) {L : Type v} [inst_2 : Field K]
[inst_3 : Field L] [inst_4 : Algebra K L] [Module.Finite K L] [Algebra.IsSeparable K L] (b : Module.Basis ι K L),
IsUnit (Algebra.discr K ⇑b)
If b is a basis of a finite separable field extension L/K,
then Algebra.discr K b is a unit.
theorem Algebra.discr_eq_det_embeddingsMatrixReindex_pow_two E3 #
∀ {ι : Type w} [inst : DecidableEq ι] [inst_1 : Fintype ι] (K : Type u) {L : Type v} (E : Type z) [inst_2 : Field K]
[inst_3 : Field L] [inst_4 : Field E] [inst_5 : Algebra K L] [inst_6 : Algebra K E] [Module.Finite K L]
[IsAlgClosed E] (b : ι → L) [Algebra.IsSeparable K L] (e : ι ≃ (L →ₐ[K] E)),
(algebraMap K E) (Algebra.discr K b) = (Algebra.embeddingsMatrixReindex K E b e).det ^ 2
If L/K is a field extension and b : ι → L, then discr K b is the square of the
determinant of the matrix whose (i, j) coefficient is σⱼ (b i), where σⱼ : L →ₐ[K] E is the
embedding in an algebraically closed field E corresponding to j : ι via a bijection
e : ι ≃ (L →ₐ[K] E).
theorem Algebra.discr_powerBasis_eq_prod E3 #
∀ (K : Type u) {L : Type v} (E : Type z) [inst : Field K] [inst_1 : Field L] [inst_2 : Field E] [inst_3 : Algebra K L]
[inst_4 : Algebra K E] [Module.Finite K L] [IsAlgClosed E] (pb : PowerBasis K L) (e : Fin pb.dim ≃ (L →ₐ[K] E))
[Algebra.IsSeparable K L],
(algebraMap K E) (Algebra.discr K ⇑pb.basis) = ∏ i, ∏ j > i, ((e j) pb.gen - (e i) pb.gen) ^ 2
The discriminant of a power basis.
theorem Algebra.discr_powerBasis_eq_prod' E1 #
∀ (K : Type u) {L : Type v} (E : Type z) [inst : Field K] [inst_1 : Field L] [inst_2 : Field E] [inst_3 : Algebra K L]
[inst_4 : Algebra K E] [Module.Finite K L] [IsAlgClosed E] (pb : PowerBasis K L) [Algebra.IsSeparable K L]
(e : Fin pb.dim ≃ (L →ₐ[K] E)),
(algebraMap K E) (Algebra.discr K ⇑pb.basis) =
∏ i, ∏ j > i, -(((e j) pb.gen - (e i) pb.gen) * ((e i) pb.gen - (e j) pb.gen))
A variation of Algebra.discr_powerBasis_eq_prod.
theorem Algebra.discr_powerBasis_eq_prod'' E1 #
∀ (K : Type u) {L : Type v} (E : Type z) [inst : Field K] [inst_1 : Field L] [inst_2 : Field E] [inst_3 : Algebra K L]
[inst_4 : Algebra K E] [Module.Finite K L] [IsAlgClosed E] (pb : PowerBasis K L) [Algebra.IsSeparable K L]
(e : Fin pb.dim ≃ (L →ₐ[K] E)),
(algebraMap K E) (Algebra.discr K ⇑pb.basis) =
(-1) ^ (Module.finrank K L * (Module.finrank K L - 1) / 2) *
∏ i, ∏ j > i, ((e j) pb.gen - (e i) pb.gen) * ((e i) pb.gen - (e j) pb.gen)
A variation of Algebra.discr_powerBasis_eq_prod.
theorem Algebra.discr_powerBasis_eq_norm E1 #
∀ (K : Type u) {L : Type v} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] [Module.Finite K L]
(pb : PowerBasis K L) [Algebra.IsSeparable K L],
Algebra.discr K ⇑pb.basis =
(-1) ^ (Module.finrank K L * (Module.finrank K L - 1) / 2) *
(Algebra.norm K) ((Polynomial.aeval pb.gen) (Polynomial.derivative (minpoly K pb.gen)))
Formula for the discriminant of a power basis using the norm of the field extension.
theorem Algebra.discr_isIntegral E3 #
∀ {ι : Type w} [inst : DecidableEq ι] [inst_1 : Fintype ι] (K : Type u) {L : Type v} [inst_2 : Field K]
[inst_3 : Field L] [inst_4 : Algebra K L] [Module.Finite K L] {R : Type z} [inst_6 : CommRing R]
[inst_7 : Algebra R K] [inst_8 : Algebra R L] [IsScalarTower R K L] {b : ι → L},
(∀ (i : ι), IsIntegral R (b i)) → IsIntegral R (Algebra.discr K b)
If K and L are fields and IsScalarTower R K L, and b : ι → L satisfies
∀ i, IsIntegral R (b i), then IsIntegral R (discr K b).
theorem Algebra.discr_mul_isIntegral_mem_adjoin E3 #
∀ (K : Type u) {L : Type v} [inst : Field K] [inst_1 : Field L] [inst_2 : Algebra K L] [Module.Finite K L] {R : Type z}
[inst_4 : CommRing R] [inst_5 : Algebra R K] [inst_6 : Algebra R L] [IsScalarTower R K L] [Algebra.IsSeparable K L]
[IsIntegrallyClosed R] [IsFractionRing R K] {B : PowerBasis K L},
IsIntegral R B.gen → ∀ {z : L}, IsIntegral R z → Algebra.discr K ⇑B.basis • z ∈ R[B.gen]
Let K be the fraction field of an integrally closed domain R and let L be a finite
separable extension of K. Let B : PowerBasis K L be such that IsIntegral R B.gen.
Then for all, z : L that are integral over R, we have
(discr K B.basis) • z ∈ adjoin R ({B.gen} : Set L).
theorem Algebra.discr_eq_discr E1 #
∀ (A : Type u) {ι : Type w} [inst : DecidableEq ι] [inst_1 : CommRing A] [inst_2 : Fintype ι]
(b b' : Module.Basis ι ℤ A), Algebra.discr ℤ ⇑b = Algebra.discr ℤ ⇑b'
Two (finite) ℤ-bases have the same discriminant.