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 / V26. Homological algebra

Mathlib.RepresentationTheory.Homological.GroupHomology.Basic

26 declarations. Mathlib docs · Source

The group homology of a k-linear G-representation

Let k be a commutative ring and G a group. This file defines the group homology of A : Rep k G to be the homology of the complex $$\dots \to \bigoplus_{G^2} A \to \bigoplus_{G^1} A \to \bigoplus_{G^0} A$$ with differential $d_n$ sending $a\cdot (g_0, \dots, g_n)$ to $$\rho(g_0^{-1})(a)\cdot (g_1, \dots, g_n)$$ $$+ \sum_{i = 0}^{n - 1}(-1)^{i + 1}a\cdot (g_0, \dots, g_ig_{i + 1}, \dots, g_n)$$ $$+ (-1)^{n + 1}a\cdot (g_0, \dots, g_{n - 1})$$ (where ρ is the representation attached to A).

We have a k-linear isomorphism $\bigoplus_{G^n} A \cong (A \otimes_k \left(\bigoplus_{G^n} k[G]\right))_G$ given by Rep.coinvariantsTensorFreeLEquiv. If we conjugate the $n$th differential in $(A \otimes_k P)_G$ by this isomorphism, where P is the bar resolution of k as a trivial k-linear G-representation, then the resulting map agrees with the differential $d_n$ defined above, a fact we prove.

Hence our $d_n$ squares to zero, and we get $\mathrm{H}_n(G, A) \cong \mathrm{Tor}_n(A, k),$ where $\mathrm{Tor}$ is defined by deriving the second argument of the functor $(A, B) \mapsto (A \otimes_k B)_G.$

To talk about homology in low degree, the file Mathlib/RepresentationTheory/Homological/GroupHomology/LowDegree.lean provides API specialized to H₀, H₁, H₂.

Main definitions

  • Rep.Tor k G n: the left-derived functors given by deriving the second argument of $(A, B) \mapsto (A \otimes_k B)_G$.
  • groupHomology.inhomogeneousChains A: a complex whose objects are $\bigoplus_{G^n} A$ and whose homology is the group homology $\mathrm{H}_n(G, A).$
  • groupHomology.inhomogeneousChainsIso A: an isomorphism between the above two complexes.
  • groupHomology A n: this is $\mathrm{H}_n(G, A),$ defined as the $n$th homology of the second complex, inhomogeneousChains A.
  • groupHomologyIsoTor A n: an isomorphism $\mathrm{H}_n(G, A) \cong \mathrm{Tor}_n(A, k)$ induced by inhomogeneousChainsIso A.

Implementation notes

Group homology is typically stated for G-modules, or equivalently modules over the group ring ℤ[G]. However, ℤ can be generalized to any commutative ring k, which is what we use. Moreover, we express k[G]-module structures on a module k-module A using the Rep definition. We avoid using instances Module k[G] A so that we do not run into possible scalar action diamonds.

Note that the existing definition of Tor in Mathlib.CategoryTheory.Monoidal.Tor is for monoidal categories, and the bifunctor we need to derive here maps to ModuleCat k. Hence we define Rep.Tor k G n by instead left-deriving the second argument of Rep.coinvariantsTensor k G: $(A, B) \mapsto (A \otimes_k B)_G$. The functor Rep.coinvariantsTensor k G is naturally isomorphic to the functor sending A, B to A ⊗[k[G]] B, where we give A the k[G]ᵐᵒᵖ-module structure defined by g • a := A.ρ g⁻¹ a, but currently mathlib's TensorProduct is only defined for commutative rings.

TODO

  • Upgrading groupHomologyIsoTor to an isomorphism of derived functors.

abbrev HomologicalComplex.coinvariantsTensorObj E1 #

{k G : Type u} →
  [inst : CommRing k] →
    [inst_1 : Group G] →
      {α : Type u_1} →
        [inst_2 : AddRightCancelSemigroup α] →
          [inst_3 : One α] → Rep.{u, u, u} k G → ChainComplex (Rep.{u, u, u} k G) α → ChainComplex (ModuleCat k) α

Given A : Rep k G and a chain complex P in Rep k G, this is the chain complex whose nth object is (A ⊗ Pₙ)_G.

def Rep.Tor E1 #

(k G : Type u) →
  [inst : CommRing k] →
    [inst_1 : Group G] →
      ℕ → CategoryTheory.Functor (Rep.{u, u, u} k G) (CategoryTheory.Functor (Rep.{u, u, u} k G) (ModuleCat k))

The left-derived functors given by deriving the second argument of A, B ↦ (A ⊗[k] B)_G.

theorem Rep.Tor_map E0 #

∀ (k G : Type u) [inst : CommRing k] [inst_1 : Group G] (n : ℕ) {X Y : Rep.{u, u, u} k G} (f : X ⟶ Y),
  (Rep.Tor k G n).map f = CategoryTheory.NatTrans.leftDerived ((Rep.coinvariantsTensor k G).map f) n

theorem Rep.Tor_obj E0 #

∀ (k G : Type u) [inst : CommRing k] [inst_1 : Group G] (n : ℕ) (X : Rep.{u, u, u} k G),
  (Rep.Tor k G n).obj X = ((Rep.coinvariantsTensor k G).obj X).leftDerived n

abbrev Rep.torIso E1 #

{k G : Type u} →
  [inst : CommRing k] →
    [inst_1 : Group G] →
      (A : Rep.{u, u, u} k G) →
        {B : Rep.{u, u, u} k G} →
          (P : CategoryTheory.ProjectiveResolution B) →
            (n : ℕ) →
              ((Rep.Tor k G n).obj A).obj B ≅
                HomologicalComplex.homology (HomologicalComplex.coinvariantsTensorObj A P.complex) n

Tor can be computed using a projective resolution.

theorem Rep.isZero_Tor_succ_of_projective E1 #

∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] (X Y : Rep.{u, u, u} k G) [CategoryTheory.Projective Y] (n : ℕ),
  CategoryTheory.Limits.IsZero (((Rep.Tor k G (n + 1)).obj X).obj Y)

The higher Tor groups for X and Y are zero if Y is projective.

def groupHomology.inhomogeneousChains.d E1 #

{k G : Type u} →
  [inst : CommRing k] →
    [inst_1 : Group G] → (A : Rep.{u, u, u} k G) → (n : ℕ) → ↧((Fin (n + 1) → G) →₀ ↑A) ⟶ ↧((Fin n → G) →₀ ↑A)

The differential in the complex of inhomogeneous chains used to calculate group homology.

theorem groupHomology.inhomogeneousChains.d_single E0 #

∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] {A : Rep.{u, u, u} k G} (n : ℕ) (g : Fin (n + 1) → G) (a : ↑A),
  ((CategoryTheory.ConcreteCategory.hom (groupHomology.inhomogeneousChains.d A n)) fun₀ | g => a) =
    (fun₀ | fun i ↦ g i.succ => (A.ρ (g 0)⁻¹) a) +
      ∑ j, (-1) ^ (↑j + 1) • fun₀ | j.contractNth (fun x1 x2 ↦ x1 * x2) g => a

theorem groupHomology.inhomogeneousChains.d_eq E0 #

∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] (A : Rep.{u, u, u} k G) (n : ℕ),
  groupHomology.inhomogeneousChains.d A n =
    CategoryTheory.CategoryStruct.comp (A.coinvariantsTensorFreeLEquiv (Fin (n + 1) → G)).toModuleIso.inv
      (CategoryTheory.CategoryStruct.comp
        ((HomologicalComplex.coinvariantsTensorObj A (Rep.barComplex k G)).d (n + 1) n)
        (A.coinvariantsTensorFreeLEquiv (Fin n → G)).toModuleIso.hom)

abbrev groupHomology.inhomogeneousChains E1 #

{k G : Type u} → [inst : CommRing k] → [inst_1 : Group G] → Rep.{u, u, u} k G → ChainComplex (ModuleCat k) ℕ

Given a k-linear G-representation A, this is the complex of inhomogeneous chains $$\dots \to \bigoplus_{G^1} A \to \bigoplus_{G^0} A \to 0$$ which calculates the group homology of A.

theorem groupHomology.inhomogeneousChains.ext_iff E0 #

∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] {A : Rep.{u, u, u} k G} {n : ℕ} {M : ModuleCat k}
  {x y : (groupHomology.inhomogeneousChains A).X n ⟶ M},
  x = y ↔
    ∀ (g : Fin n → G),
      CategoryTheory.CategoryStruct.comp (ModuleCat.ofHom (Finsupp.lsingle g)) x =
        CategoryTheory.CategoryStruct.comp (ModuleCat.ofHom (Finsupp.lsingle g)) y

theorem groupHomology.inhomogeneousChains.ext E1 #

∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] {A : Rep.{u, u, u} k G} {n : ℕ} {M : ModuleCat k}
  {x y : (groupHomology.inhomogeneousChains A).X n ⟶ M},
  (∀ (g : Fin n → G),
      CategoryTheory.CategoryStruct.comp (ModuleCat.ofHom (Finsupp.lsingle g)) x =
        CategoryTheory.CategoryStruct.comp (ModuleCat.ofHom (Finsupp.lsingle g)) y) →
    x = y

theorem groupHomology.inhomogeneousChains.d_def E0 #

∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] (A : Rep.{u, u, u} k G) (n : ℕ),
  (groupHomology.inhomogeneousChains A).d (n + 1) n = groupHomology.inhomogeneousChains.d A n

theorem groupHomology.inhomogeneousChains.d_comp_d E1 #

∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] (A : Rep.{u, u, u} k G) (n : ℕ),
  CategoryTheory.CategoryStruct.comp (groupHomology.inhomogeneousChains.d A (n + 1))
      (groupHomology.inhomogeneousChains.d A n) =
    0

def groupHomology.inhomogeneousChainsIso E1 #

{k G : Type u} →
  [inst : CommRing k] →
    [inst_1 : Group G] →
      (A : Rep.{u, u, u} k G) →
        groupHomology.inhomogeneousChains A ≅ HomologicalComplex.coinvariantsTensorObj A (Rep.barComplex k G)

Given a k-linear G-representation A, the complex of inhomogeneous chains is isomorphic to (A ⊗[k] P)_G, where P is the bar resolution of k as a trivial G-representation.

abbrev groupHomology.cycles E1 #

{k G : Type u} → [inst : CommRing k] → [inst_1 : Group G] → Rep.{u, u, u} k G → ℕ → ModuleCat k

The n-cycles Zₙ(G, A) of a k-linear G-representation A, i.e. the kernel of the differential Cₙ(G, A) ⟶ Cₙ₋₁(G, A) in the complex of inhomogeneous chains.

abbrev groupHomology.cyclesMk E1 #

{k G : Type u} →
  [inst : CommRing k] →
    [inst_1 : Group G] →
      {A : Rep.{u, u, u} k G} →
        (m n : ℕ) →
          (ComplexShape.down ℕ).next m = n →
            (f : (Fin m → G) →₀ ↑A) →
              (CategoryTheory.ConcreteCategory.hom ((groupHomology.inhomogeneousChains A).d m n)) f = 0 →
                ↑(groupHomology.cycles A m)

When m = 0 this makes a term of cycles A 0 from any element of A (or more precisely any element in the kernel of d₀,₀ = 0). When m is positive, this makes a term of cycles A m from any element of the kernel of dₘ,ₘ₋₁.

abbrev groupHomology.iCycles E1 #

{k G : Type u} →
  [inst : CommRing k] →
    [inst_1 : Group G] →
      (A : Rep.{u, u, u} k G) → (n : ℕ) → groupHomology.cycles A n ⟶ (groupHomology.inhomogeneousChains A).X n

The natural inclusion of the n-cycles Zₙ(G, A) into the n-chains Cₙ(G, A).

theorem groupHomology.iCycles_mk E0 #

∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] {A : Rep.{u, u, u} k G} {m n : ℕ}
  (h : (ComplexShape.down ℕ).next m = n) (f : (Fin m → G) →₀ ↑A)
  (hf : (CategoryTheory.ConcreteCategory.hom ((groupHomology.inhomogeneousChains A).d m n)) f = 0),
  (CategoryTheory.ConcreteCategory.hom (groupHomology.iCycles A m)) (groupHomology.cyclesMk m n h f hf) = f

abbrev groupHomology.toCycles E1 #

{k G : Type u} →
  [inst : CommRing k] →
    [inst_1 : Group G] →
      (A : Rep.{u, u, u} k G) → (i j : ℕ) → (groupHomology.inhomogeneousChains A).X i ⟶ groupHomology.cycles A j

This is the map from i-chains to j-cycles induced by the differential in the complex of inhomogeneous chains.

def groupHomology E1 #

{k G : Type u} → [inst : CommRing k] → [inst_1 : Group G] → Rep.{u, u, u} k G → ℕ → ModuleCat k

The group homology of a k-linear G-representation A, as the homology of its complex of inhomogeneous chains.

abbrev groupHomology.π E1 #

{k G : Type u} →
  [inst : CommRing k] →
    [inst_1 : Group G] → (A : Rep.{u, u, u} k G) → (n : ℕ) → groupHomology.cycles A n ⟶ groupHomology A n

The natural map from n-cycles to nth group homology for a k-linear G-representation A.

theorem groupHomology_induction_on E1 #

∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] {A : Rep.{u, u, u} k G} {n : ℕ}
  {C : ↑(groupHomology A n) → Prop} (x : ↑(groupHomology A n)),
  (∀ (x : ↑(groupHomology.cycles A n)), C ((CategoryTheory.ConcreteCategory.hom (groupHomology.π A n)) x)) → C x

def groupHomologyIsoTor E1 #

{k G : Type u} →
  [inst : CommRing k] →
    [inst_1 : Group G] →
      (A : Rep.{u, u, u} k G) → (n : ℕ) → groupHomology A n ≅ ((Rep.Tor k G n).obj A).obj (Rep.trivial k G k)

The nth group homology of a k-linear G-representation A is isomorphic to Torₙ(A, k) (taken in Rep k G), where k is a trivial k-linear G-representation.

def groupHomologyIso E1 #

{k G : Type u} →
  [inst : CommRing k] →
    [inst_1 : Group G] →
      (A : Rep.{u, u, u} k G) →
        (n : ℕ) →
          (P : CategoryTheory.ProjectiveResolution (Rep.trivial k G k)) →
            groupHomology A n ≅ HomologicalComplex.homology (HomologicalComplex.coinvariantsTensorObj A P.complex) n

The nth group homology of a k-linear G-representation A is isomorphic to Hₙ((A ⊗ P)_G), where P is any projective resolution of k as a trivial k-linear G-representation.

theorem isZero_groupHomology_succ_of_subsingleton E1 #

∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] (A : Rep.{u, u, u} k G) [Subsingleton G] (n : ℕ),
  CategoryTheory.Limits.IsZero (groupHomology A (n + 1))