Module

FiniteFamily.lean

Nyll.EtaleCohomology.Trace.FiniteFamily
6 declarations indexed from sourceView source ↗

Traces on finite families of vector spaces

The trace of an operator on a finite product is the sum of its diagonal blocks. For an operator carrying one component to another, only fixed components contribute. The components may have different dimensions; no choice of bases or equivariant trivializations is an input.

Imports4
  • Mathlib.LinearAlgebra.Trace
  • Mathlib.LinearAlgebra.Pi
  • Mathlib.LinearAlgebra.FiniteDimensional.Basic
  • Mathlib.Algebra.BigOperators.Finprod
Imported by4

Declarations

EtaleCohomology.finiteFamilyDiagonal

The diagonal block of an operator carrying coordinate σ i to coordinate i. The family structures are shared by projection, inclusion, and composition.

Source context 6 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
universe u v w v'
namespace EtaleCohomology
section Diagonal
variable {K : Type u} [Semiring K] {ι : Type w} [DecidableEq ι]
  (V : ι → Type v) [∀ i, AddCommMonoid (V i)] [∀ i, Module K (V i)]
def finiteFamilyDiagonal (σ : ι → ι) (a : ∀ i, V (σ i) →ₗ[K] V i) (i : ι) :
    Module.End K (V i)
EtaleCohomology.finiteFamilyDiagonal_eq_zero

A coordinate which is not fixed has zero diagonal block.

Source context 6 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
universe u v w v'
namespace EtaleCohomology
section Diagonal
variable {K : Type u} [Semiring K] {ι : Type w} [DecidableEq ι]
  (V : ι → Type v) [∀ i, AddCommMonoid (V i)] [∀ i, Module K (V i)]
theorem finiteFamilyDiagonal_eq_zero (σ : ι → ι)
    (a : ∀ i, V (σ i) →ₗ[K] V i) (i : ι) (hi : σ i ≠ i) :
    finiteFamilyDiagonal V σ a i = 0
EtaleCohomology.trace_finiteFamily

Trace on a finite family is the sum of the traces of its actual diagonal blocks, without a choice of bases.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
universe u v w v'
namespace EtaleCohomology
variable {K : Type u} [Field K] {ι : Type w} [Fintype ι] [DecidableEq ι]
  (V : ι → Type v) [∀ i, AddCommGroup (V i)] [∀ i, Module K (V i)]
  [∀ i, FiniteDimensional K (V i)]
theorem trace_finiteFamily (f : (∀ i, V i) →ₗ[K] (∀ i, V i)) :
    LinearMap.trace K (∀ i, V i) f =
      ∑ i, LinearMap.trace K (V i)
        ((LinearMap.proj i).comp (f.comp (LinearMap.single K V i)))
EtaleCohomology.trace_finiteFamily_eq_sum_fixed

An operator between components has trace supported on the fixed components of its index map. The displayed diagonal block includes the canonical transport when the source and target indices agree.

Source context 5 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
universe u v w v'
namespace EtaleCohomology
variable {K : Type u} [Field K] {ι : Type w} [Fintype ι] [DecidableEq ι]
  (V : ι → Type v) [∀ i, AddCommGroup (V i)] [∀ i, Module K (V i)]
  [∀ i, FiniteDimensional K (V i)]
theorem trace_finiteFamily_eq_sum_fixed (σ : ι → ι)
    (a : ∀ i, V (σ i) →ₗ[K] V i) :
    LinearMap.trace K (∀ i, V i)
        (LinearMap.pi (fun i => (a i).comp (LinearMap.proj (σ i)))) =
      ∑ i ∈ Finset.univ.filter (fun i => σ i = i),
        LinearMap.trace K (V i)
          ((a i).comp ((LinearMap.proj (σ i)).comp (LinearMap.single K V i))) := by
  rw [trace_finiteFamily, Finset.sum_filter]
  apply Finset.sum_congr rfl
  intro i _
  rw [← LinearMap.comp_assoc, LinearMap.proj_pi, LinearMap.comp_assoc]
  by_cases hi : σ i = i
  · rw [ite_eq_left hi]
  · rw [ite_eq_right hi, LinearMap.proj_comp_single_ne K V (σ i) i hi,
      LinearMap.comp_zero, map_zero]
EtaleCohomology.trace_finiteFamily_conj_eq_finsum_fixed

Conjugating an operator to its actual finite-family action expresses its trace as the finite sum of the diagonal blocks at the fixed indices.

Source context 6 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
universe u v w v'
namespace EtaleCohomology
variable {K : Type u} [Field K] {ι : Type w} [Fintype ι] [DecidableEq ι]
  (V : ι → Type v) [∀ i, AddCommGroup (V i)] [∀ i, Module K (V i)]
  [∀ i, FiniteDimensional K (V i)]
omit [Fintype ι] in
theorem trace_finiteFamily_conj_eq_finsum_fixed
    [Finite ι] {W : Type v'} [AddCommGroup W] [Module K W]
    (E : W ≃ₗ[K] (∀ i, V i)) (T : W →ₗ[K] W)
    (σ : ι → ι) (a : ∀ i, V (σ i) →ₗ[K] V i)
    (hconj : E.conj T =
      LinearMap.pi (fun i => (a i).comp (LinearMap.proj (σ i)))) :
    LinearMap.trace K W T =
      ∑ᶠ z : {i : ι // σ i = i},
        LinearMap.trace K (V z.val)
          ((a z.val).comp
            ((LinearMap.proj (σ z.val)).comp (LinearMap.single K V z.val))) := by
  let _ : Fintype ι := Fintype.ofFinite ι
  let d : ι → K := fun i =>
    LinearMap.trace K (V i)
      ((a i).comp ((LinearMap.proj (σ i)).comp (LinearMap.single K V i)))
  calc
    LinearMap.trace K W T =
        LinearMap.trace K (∀ i, V i) (E.conj T) :=
      (LinearMap.trace_conj' T E).symm
    _ = LinearMap.trace K (∀ i, V i)
        (LinearMap.pi (fun i => (a i).comp (LinearMap.proj (σ i)))) :=
      congrArg (LinearMap.trace K (∀ i, V i)) hconj
    _ = ∑ i ∈ Finset.univ.filter (fun i => σ i = i), d i :=
      trace_finiteFamily_eq_sum_fixed V σ a
    _ = ∑ z : {i : ι // σ i = i}, d z.val :=
      Finset.sum_subtype _ (fun z => by
        simp only [Finset.mem_filter, Finset.mem_univ, true_and]) d
    _ = ∑ᶠ z : {i : ι // σ i = i}, d z.val :=
      (finsum_eq_sum_of_fintype _).symm
EtaleCohomology.trace_finiteFamily_conj_eq_finsum_diagonal

The fixed-component trace formula expressed through the abstract diagonal operation, so specialization preserves the shared family structures.

Source context 6 commands

Surrounding namespaces, section variables, and local commands at this declaration.

@[expose] public section
noncomputable section
universe u v w v'
namespace EtaleCohomology
variable {K : Type u} [Field K] {ι : Type w} [Fintype ι] [DecidableEq ι]
  (V : ι → Type v) [∀ i, AddCommGroup (V i)] [∀ i, Module K (V i)]
  [∀ i, FiniteDimensional K (V i)]
omit [Fintype ι] in
theorem trace_finiteFamily_conj_eq_finsum_diagonal
    [Finite ι] {W : Type v'} [AddCommGroup W] [Module K W]
    (E : W ≃ₗ[K] (∀ i, V i)) (T : W →ₗ[K] W)
    (σ : ι → ι) (a : ∀ i, V (σ i) →ₗ[K] V i)
    (hconj : E.conj T =
      LinearMap.pi (fun i => (a i).comp (LinearMap.proj (σ i)))) :
    LinearMap.trace K W T =
      ∑ᶠ z : {i : ι // σ i = i},
        LinearMap.trace K (V z.val) (finiteFamilyDiagonal V σ a z.val) :=
  trace_finiteFamily_conj_eq_finsum_fixed V E T σ a hconj