The areas / V26. Homological algebra
Mathlib.RepresentationTheory.Homological.GroupCohomology.Basic
21 declarations. Mathlib docs · Source
The group cohomology of a k-linear G-representation
Let k be a commutative ring and G a group. This file defines the group cohomology of
A : Rep k G to be the cohomology of the complex
$$0 \to \mathrm{Fun}(G^0, A) \to \mathrm{Fun}(G^1, A) \to \mathrm{Fun}(G^2, A) \to \dots$$
with differential $d^n$ sending $f: G^n \to A$ to the function mapping $(g_0, \dots, g_n)$ to
$$\rho(g_0)(f(g_1, \dots, g_n))$$
$$+ \sum_{i = 0}^{n - 1} (-1)^{i + 1}\cdot f(g_0, \dots, g_ig_{i + 1}, \dots, g_n)$$
$$+ (-1)^{n + 1}\cdot f(g_0, \dots, g_{n - 1})$$ (where ρ is the representation attached to A).
We have a k-linear isomorphism
$\mathrm{Fun}(G^n, A) \cong \mathrm{Hom}(\bigoplus_{G^n} k[G], A)$, where
the right-hand side is morphisms in Rep k G, and $k[G]$ is equipped with the left regular
representation. If we conjugate the $n$th differential in $\mathrm{Hom}(P, A)$ 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.
This gives us for free a proof that our $d^n$ squares to zero. It also gives us an isomorphism
$\mathrm{H}^n(G, A) \cong \mathrm{Ext}^n(k, A),$ where $\mathrm{Ext}$ is taken in the category
Rep k G.
To talk about cohomology in low degree, please see the file
Mathlib/RepresentationTheory/Homological/GroupCohomology/LowDegree.lean, which provides API
specialized to H⁰, H¹, H².
Main definitions
groupCohomology.inhomogeneousCochains A: a complex whose objects are $\mathrm{Fun}(G^n, A)$ and whose cohomology is the group cohomology $\mathrm{H}^n(G, A).$groupCohomology.inhomogeneousCochainsIso A: an isomorphism between the above complex and the complex $\mathrm{Hom}(P, A),$ wherePis the bar resolution ofkas a trivial resolution.groupCohomology A n: this is $\mathrm{H}^n(G, A),$ defined as the $n$th cohomology ofinhomogeneousCochains A.groupCohomologyIsoExt A n: an isomorphism $\mathrm{H}^n(G, A) \cong \mathrm{Ext}^n(k, A)$ (where $\mathrm{Ext}$ is taken in the categoryRep k G) induced byinhomogeneousCochainsIso A.
Implementation notes
Group cohomology 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.
TODO
- Upgrading
groupCohomologyIsoExtto an isomorphism of derived functors. - Profinite cohomology.
Longer term:
- The Hochschild-Serre spectral sequence (this is perhaps a good toy example for the theory of spectral sequences in general).
def inhomogeneousCochains.d E1 #
{k G : Type u} →
[inst : CommRing k] →
[inst_1 : Monoid G] → (A : Rep.{u_1, u, u} k G) → (n : ℕ) → ↧((Fin n → G) → ↑A) ⟶ ↧((Fin (n + 1) → G) → ↑A)
The differential in the complex of inhomogeneous cochains used to calculate group cohomology.
theorem inhomogeneousCochains.d_hom_apply E0 #
∀ {k G : Type u} [inst : CommRing k] [inst_1 : Monoid G] (A : Rep.{u_1, u, u} k G) (n : ℕ) (f : (Fin n → G) → ↑A)
(g : Fin (n + 1) → G),
(ModuleCat.Hom.hom (inhomogeneousCochains.d A n)) f g =
(A.ρ (g 0)) (f fun i ↦ g i.succ) + ∑ j, (-1) ^ (↑j + 1) • f (j.contractNth (fun x1 x2 ↦ x1 * x2) g)
theorem inhomogeneousCochains.d_eq E0 #
∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] (A : Rep.{u, u, u} k G) (n : ℕ),
inhomogeneousCochains.d A n =
CategoryTheory.CategoryStruct.comp (Rep.freeLiftLEquiv k G (Fin n → G) A).toModuleIso.inv
(CategoryTheory.CategoryStruct.comp (((Rep.barComplex k G).linearYonedaObj k A).d n (n + 1))
(Rep.freeLiftLEquiv k G (Fin (n + 1) → G) A).toModuleIso.hom)
abbrev groupCohomology.inhomogeneousCochains E1 #
{k G : Type u} → [inst : CommRing k] → [inst_1 : Group G] → Rep.{u, u, u} k G → CochainComplex (ModuleCat k) ℕ
Given a k-linear G-representation A, this is the complex of inhomogeneous cochains
$$0 \to \mathrm{Fun}(G^0, A) \to \mathrm{Fun}(G^1, A) \to \mathrm{Fun}(G^2, A) \to \dots$$
which calculates the group cohomology of A.
theorem groupCohomology.inhomogeneousCochains.ext E1 #
∀ {k G : Type u} [inst : CommRing k] {n : ℕ} [inst_1 : Group G] {A : Rep.{u, u, u} k G}
{x y : ↑((groupCohomology.inhomogeneousCochains A).X n)}, (∀ (g : Fin n → G), x g = y g) → x = y
theorem groupCohomology.inhomogeneousCochains.ext_iff E0 #
∀ {k G : Type u} [inst : CommRing k] {n : ℕ} [inst_1 : Group G] {A : Rep.{u, u, u} k G}
{x y : ↑((groupCohomology.inhomogeneousCochains A).X n)}, x = y ↔ ∀ (g : Fin n → G), x g = y g
theorem groupCohomology.inhomogeneousCochains.d_def E0 #
∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] (A : Rep.{u, u, u} k G) (n : ℕ),
(groupCohomology.inhomogeneousCochains A).d n (n + 1) = inhomogeneousCochains.d A n
theorem groupCohomology.inhomogeneousCochains.d_comp_d E1 #
∀ {k G : Type u} [inst : CommRing k] (n : ℕ) [inst_1 : Group G] (A : Rep.{u, u, u} k G),
CategoryTheory.CategoryStruct.comp (inhomogeneousCochains.d A n) (inhomogeneousCochains.d A (n + 1)) = 0
def groupCohomology.inhomogeneousCochainsIso E1 #
{k G : Type u} →
[inst : CommRing k] →
[inst_1 : Group G] →
(A : Rep.{u, u, u} k G) → groupCohomology.inhomogeneousCochains A ≅ (Rep.barComplex k G).linearYonedaObj k A
Given a k-linear G-representation A, the complex of inhomogeneous cochains is isomorphic
to Hom(P, A), where P is the bar resolution of k as a trivial G-representation.
abbrev groupCohomology.cocycles E1 #
{k G : Type u} → [inst : CommRing k] → [inst_1 : Group G] → Rep.{u, u, u} k G → ℕ → ModuleCat k
The n-cocycles Zⁿ(G, A) of a k-linear G-representation A, i.e. the kernel of the
nth differential in the complex of inhomogeneous cochains.
abbrev groupCohomology.cocyclesMk E1 #
{k G : Type u} →
[inst : CommRing k] →
[inst_1 : Group G] →
{A : Rep.{u, u, u} k G} →
{n : ℕ} →
(f : (Fin n → G) → ↑A) →
(CategoryTheory.ConcreteCategory.hom (inhomogeneousCochains.d A n)) f = 0 → ↑(groupCohomology.cocycles A n)
Make an n-cocycle out of an element of the kernel of the nth differential.
abbrev groupCohomology.iCocycles E1 #
{k G : Type u} →
[inst : CommRing k] →
[inst_1 : Group G] →
(A : Rep.{u, u, u} k G) → (n : ℕ) → groupCohomology.cocycles A n ⟶ (groupCohomology.inhomogeneousCochains A).X n
The natural inclusion of the n-cocycles Zⁿ(G, A) into the n-cochains Cⁿ(G, A).
abbrev groupCohomology.toCocycles E1 #
{k G : Type u} →
[inst : CommRing k] →
[inst_1 : Group G] →
(A : Rep.{u, u, u} k G) → (i j : ℕ) → (groupCohomology.inhomogeneousCochains A).X i ⟶ groupCohomology.cocycles A j
This is the map from i-cochains to j-cocycles induced by the differential in the complex of
inhomogeneous cochains.
theorem groupCohomology.iCocycles_mk E0 #
∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] {A : Rep.{u, u, u} k G} {n : ℕ} (f : (Fin n → G) → ↑A)
(h : (CategoryTheory.ConcreteCategory.hom (inhomogeneousCochains.d A n)) f = 0),
(CategoryTheory.ConcreteCategory.hom (groupCohomology.iCocycles A n)) (groupCohomology.cocyclesMk f h) = f
def groupCohomology E1 #
{k G : Type u} → [inst : CommRing k] → [inst_1 : Group G] → Rep.{u, u, u} k G → ℕ → ModuleCat k
The group cohomology of a k-linear G-representation A, as the cohomology of its complex
of inhomogeneous cochains.
abbrev groupCohomology.π E1 #
{k G : Type u} →
[inst : CommRing k] →
[inst_1 : Group G] → (A : Rep.{u, u, u} k G) → (n : ℕ) → groupCohomology.cocycles A n ⟶ groupCohomology A n
The natural map from n-cocycles to nth group cohomology for a k-linear
G-representation A.
theorem groupCohomology_induction_on E1 #
∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] {A : Rep.{u, u, u} k G} {n : ℕ}
{C : ↑(groupCohomology A n) → Prop} (x : ↑(groupCohomology A n)),
(∀ (x : ↑(groupCohomology.cocycles A n)), C ((CategoryTheory.ConcreteCategory.hom (groupCohomology.π A n)) x)) → C x
def groupCohomologyIsoExt E1 #
{k G : Type u} →
[inst : CommRing k] →
[inst_1 : Group G] →
(A : Rep.{u, u, u} k G) → (n : ℕ) → groupCohomology A n ≅ ↧(CategoryTheory.Abelian.Ext (Rep.trivial k G k) A n)
The nth group cohomology of a k-linear G-representation A is isomorphic to
Extⁿ(k, A) (taken in Rep k G), where k is a trivial k-linear G-representation.
def groupCohomologyIso 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)) →
groupCohomology A n ≅ HomologicalComplex.homology (P.complex.linearYonedaObj k A) n
The nth group cohomology of a k-linear G-representation A is isomorphic to
Hⁿ(Hom(P, A)), where P is any projective resolution of k as a trivial k-linear
G-representation.
theorem isZero_groupCohomology_succ_of_subsingleton E1 #
∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] [Subsingleton G] (A : Rep.{u, u, u} k G) (n : ℕ),
CategoryTheory.Limits.IsZero (groupCohomology A (n + 1))
theorem isZero_groupCohomology_of_neZero_of_subsingleton E1 #
∀ {k G : Type u} [inst : CommRing k] [inst_1 : Group G] [Subsingleton G] (A : Rep.{u, u, u} k G) (n : ℕ) [NeZero n],
CategoryTheory.Limits.IsZero (groupCohomology A n)