The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V11. Fields and Galois theory

Mathlib.RingTheory.Trace.Defs

18 declarations. Mathlib docs · Source

Trace for (finite) ring extensions.

Suppose we have an R-algebra S with a finite basis. For each s : S, the trace of the linear map given by multiplying by s gives information about the roots of the minimal polynomial of s over R.

Main definitions

  • Algebra.trace R S x: the trace of an element s of an R-algebra S
  • Algebra.traceForm R S: bilinear form sending x, y to the trace of x * y
  • Algebra.traceMatrix R b: the matrix whose (i j)-th element is the trace of b i * b j.

Main results

  • trace_algebraMap_of_basis, trace_algebraMap: if x : K, then Tr_{L/K} x = [L : K] x
  • trace_trace_of_basis, trace_trace: Tr_{L/K} (Tr_{F/L} x) = Tr_{F/K} x

Implementation notes

Typically, the trace is defined specifically for finite field extensions. The definition is as general as possible and the assumption that the extension is finite is added to the lemmas as needed.

We only define the trace for left multiplication (Algebra.leftMulMatrix, i.e. LinearMap.mulLeft). For now, the definitions assume S is commutative, so the choice doesn't matter anyway.

References

  • https://en.wikipedia.org/wiki/Field_trace

def Algebra.trace E1 #

(R : Type u_1) → (S : Type u_2) → [inst : CommRing R] → [inst_1 : CommRing S] → [inst_2 : Algebra R S] → S →ₗ[R] R

The trace of an element s of an R-algebra is the trace of (s * ·), as an R-linear map.

theorem Algebra.trace_apply E0 #

∀ (R : Type u_1) {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (x : S),
  (Algebra.trace R S) x = (LinearMap.trace R S) ((Algebra.lmul R S) x)

theorem Algebra.trace_eq_zero_of_not_exists_basis E1 #

∀ (R : Type u_1) {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S],
  (¬∃ s, Nonempty (Module.Basis (↥s) R S)) → Algebra.trace R S = 0

theorem Algebra.trace_eq_matrix_trace E1 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {ι : Type w}
  [inst_3 : Fintype ι] [inst_4 : DecidableEq ι] (b : Module.Basis ι R S) (s : S),
  (Algebra.trace R S) s = ((Algebra.leftMulMatrix b) s).trace

theorem Algebra.trace_algebraMap_of_basis E3 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {ι : Type w}
  [inst_3 : Fintype ι] (b : Module.Basis ι R S) (x : R), (Algebra.trace R S) ((algebraMap R S) x) = Fintype.card ι • x

If x is in the base field K, then the trace is [L : K] * x.

theorem Algebra.trace_self E0 #

∀ {R : Type u_1} [inst : CommRing R], Algebra.trace R R = LinearMap.id

The trace map from R to itself is the identity map.

theorem Algebra.trace_self_apply E0 #

∀ {R : Type u_1} [inst : CommRing R] (a : R), (Algebra.trace R R) a = a

theorem Algebra.trace_algebraMap E3 #

∀ {R : Type u_1} {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] [StrongRankCondition R]
  [Module.Free R S] (x : R), (Algebra.trace R S) ((algebraMap R S) x) = Module.finrank R S • x

If x is in the base field K, then the trace is [L : K] * x.

(If L is not finite-dimensional over K, then trace and finrank return 0.)

theorem Algebra.trace_trace_of_basis E3 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  [inst_3 : Algebra R S] [inst_4 : Algebra R T] [inst_5 : Algebra S T] [IsScalarTower R S T] {ι : Type u_4}
  {κ : Type u_5} [Finite ι] [Finite κ] (b : Module.Basis ι R S) (c : Module.Basis κ S T) (x : T),
  (Algebra.trace R S) ((Algebra.trace S T) x) = (Algebra.trace R T) x

theorem Algebra.trace_comp_trace_of_basis E1 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  [inst_3 : Algebra R S] [inst_4 : Algebra R T] [inst_5 : Algebra S T] [inst_6 : IsScalarTower R S T] {ι : Type u_4}
  {κ : Type u_5} [Finite ι] [Finite κ] (b : Module.Basis ι R S) (c : Module.Basis κ S T),
  Algebra.trace R S ∘ₗ ↑R (Algebra.trace S T) = Algebra.trace R T

theorem Algebra.trace_trace E3 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  [inst_3 : Algebra R S] [inst_4 : Algebra R T] [inst_5 : Algebra S T] [IsScalarTower R S T] [Module.Free R S]
  [Module.Finite R S] [Module.Free S T] [Module.Finite S T] (x : T),
  (Algebra.trace R S) ((Algebra.trace S T) x) = (Algebra.trace R T) x

theorem Algebra.trace_comp_trace E0 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  [inst_3 : Algebra R S] [inst_4 : Algebra R T] [inst_5 : Algebra S T] [inst_6 : IsScalarTower R S T] [Module.Free R S]
  [Module.Finite R S] [Module.Free S T] [Module.Finite S T],
  Algebra.trace R S ∘ₗ ↑R (Algebra.trace S T) = Algebra.trace R T

Let T / S / R be a tower of finite extensions of fields. Then $\text{Trace}{T/R} = \text{Trace}{S/R} \circ \text{Trace}_{T/S}$.

theorem Algebra.trace_prod_apply E0 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  [inst_3 : Algebra R S] [inst_4 : Algebra R T] [Module.Free R S] [Module.Free R T] [Module.Finite R S]
  [Module.Finite R T] (x : S × T), (Algebra.trace R (S × T)) x = (Algebra.trace R S) x.1 + (Algebra.trace R T) x.2

theorem Algebra.trace_prod E1 #

∀ {R : Type u_1} {S : Type u_2} {T : Type u_3} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing T]
  [inst_3 : Algebra R S] [inst_4 : Algebra R T] [Module.Free R S] [Module.Free R T] [Module.Finite R S]
  [Module.Finite R T], Algebra.trace R (S × T) = (Algebra.trace R S).coprod (Algebra.trace R T)

def Algebra.traceForm E1 #

(R : Type u_1) →
  (S : Type u_2) → [inst : CommRing R] → [inst_1 : CommRing S] → [inst_2 : Algebra R S] → LinearMap.BilinForm R S

The traceForm maps x y : S to the trace of x * y. It is a symmetric bilinear form and is nondegenerate if the extension is separable.

theorem Algebra.traceForm_apply E0 #

∀ (R : Type u_1) {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] (x y : S),
  ((Algebra.traceForm R S) x) y = (Algebra.trace R S) (x * y)

theorem Algebra.traceForm_isSymm E1 #

∀ (R : Type u_1) {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S],
  (Algebra.traceForm R S).IsSymm

theorem Algebra.traceForm_toMatrix E1 #

∀ (R : Type u_1) {S : Type u_2} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Algebra R S] {ι : Type w}
  [inst_3 : Fintype ι] [inst_4 : DecidableEq ι] (b : Module.Basis ι R S) (i j : ι),
  (LinearMap.BilinForm.toMatrix b) (Algebra.traceForm R S) i j = (Algebra.trace R S) (b i * b j)