MerLean-example

5 Def 2: Cochains and Cohomology

Definition 27 Coboundary Map

Let \(C = (C_\bullet , \partial )\) be a chain complex over \(\mathbb {F}_2\). For each \(i \in \mathbb {Z}\), the coboundary map \(\delta ^i : \operatorname {Dual}(C_i) \to \operatorname {Dual}(C_{i+1})\) is defined as the dual (transpose) of the incoming differential \(\partial _{i+1} : C_{i+1} \to C_i\):

\[ \delta ^i \; =\; (\partial _{i+1})^{\mathrm{tr}} \; :=\; \operatorname {dualMap}(C.\operatorname {incomingDifferential}(i)). \]
Definition 28 Incoming Coboundary Map

Let \(C = (C_\bullet , \partial )\) be a chain complex over \(\mathbb {F}_2\). For each \(i \in \mathbb {Z}\), the incoming coboundary map \(\delta ^{i-1} : \operatorname {Dual}(C_{i-1}) \to \operatorname {Dual}(C_i)\) is defined as the dual (transpose) of the differential \(\partial _i : C_i \to C_{i-1}\):

\[ \delta ^{i-1} \; =\; (\partial _i)^{\mathrm{tr}} \; :=\; \operatorname {dualMap}(C.\operatorname {differential}(i)). \]

This formulation avoids index-arithmetic issues by using \(C.\operatorname {differential}(i)\) directly.

Definition 29 Cocycles
#

Let \(C\) be a chain complex over \(\mathbb {F}_2\). The cocycles in degree \(i\) are the kernel of the coboundary map \(\delta ^i\):

\[ Z^i(C) \; =\; \ker \delta ^i \; \subseteq \; \operatorname {Dual}(C_i), \]

viewed as a submodule of \(\operatorname {Dual}(C_i)\) over \(\mathbb {F}_2\).

Definition 30 Coboundaries
#

Let \(C\) be a chain complex over \(\mathbb {F}_2\). The coboundaries in degree \(i\) are the image (range) of the incoming coboundary map \(\delta ^{i-1}\):

\[ B^i(C) \; =\; \operatorname {im}\, \delta ^{i-1} \; \subseteq \; \operatorname {Dual}(C_i), \]

viewed as a submodule of \(\operatorname {Dual}(C_i)\) over \(\mathbb {F}_2\).

Let \(C\) be a chain complex over \(\mathbb {F}_2\). For each \(i \in \mathbb {Z}\), the composition of coboundary maps satisfies:

\[ \delta ^i \circ \delta ^{i-1} \; =\; 0 \; :\; \operatorname {Dual}(C_{i-1}) \; \to \; \operatorname {Dual}(C_{i+1}). \]
Proof

Unfolding the definitions of \(\delta ^i = \operatorname {dualMap}(\partial _{i+1})\) and \(\delta ^{i-1} = \operatorname {dualMap}(\partial _i)\), we apply the identity \(\operatorname {dualMap}(f) \circ \operatorname {dualMap}(g) = \operatorname {dualMap}(g \circ f)\) (i.e., \(\operatorname {dualMap}\) is contravariant). Thus

\[ \delta ^i \circ \delta ^{i-1} \; =\; \operatorname {dualMap}(\partial _i \circ \partial _{i+1}). \]

Rewriting using the chain complex relation \(\partial _i \circ \partial _{i+1} = 0\) (which holds by differential_comp_incomingDifferential), we obtain \(\operatorname {dualMap}(0) = 0\), which follows from the fact that any linear map sends zero to zero.

Theorem 32 Coboundaries are Contained in Cocycles

Let \(C\) be a chain complex over \(\mathbb {F}_2\). For each \(i \in \mathbb {Z}\):

\[ B^i(C) \; \subseteq \; Z^i(C). \]

Every coboundary is a cocycle.

Proof

Unfolding the definitions of \(B^i(C) = \operatorname {im}\, \delta ^{i-1}\) and \(Z^i(C) = \ker \delta ^i\), we apply the standard criterion: \(\operatorname {im}(f) \subseteq \ker (g)\) if and only if \(g \circ f = 0\). Rewriting using the range–kernel inclusion lemma, it suffices to show \(\delta ^i \circ \delta ^{i-1} = 0\), which is exactly the content of coboundaryMap_comp_incomingCoboundaryMap.

Definition 33 Coboundaries as Submodule of Cocycles

Since \(B^i(C) \subseteq Z^i(C)\), we define \(B^i(C)\) as a submodule of \(Z^i(C)\) by taking the preimage of \(B^i(C)\) under the subtype embedding \(Z^i(C) \hookrightarrow \operatorname {Dual}(C_i)\):

\[ B^i(C)|_{Z^i} \; :=\; \operatorname {comap}\bigl(\iota _{Z^i}\bigr)\bigl(B^i(C)\bigr) \; \subseteq \; Z^i(C), \]

where \(\iota _{Z^i} : Z^i(C) \to \operatorname {Dual}(C_i)\) is the canonical inclusion.

Definition 34 Cohomology

Let \(C\) be a chain complex over \(\mathbb {F}_2\). The \(i\)-th cohomology of \(C\) is the quotient \(\mathbb {F}_2\)-vector space:

\[ H^i(C) \; =\; Z^i(C) \, /\, B^i(C). \]

More precisely, it is the quotient of \(Z^i(C)\) by the submodule \(B^i(C)|_{Z^i}\) of \(Z^i(C)\).

Theorem 35 Cocycles are the Dual Annihilator of Boundaries

Let \(C\) be a chain complex over \(\mathbb {F}_2\). For each \(i \in \mathbb {Z}\):

\[ Z^i(C) \; =\; B_i(C)^{\mathrm{ann}}, \]

where \(B_i(C)^{\mathrm{ann}} \subseteq \operatorname {Dual}(C_i)\) denotes the dual annihilator of the homological boundaries \(B_i(C) = \operatorname {im}\, \partial _{i+1}\).

Proof

Unfolding the definitions \(Z^i(C) = \ker \delta ^i = \ker \bigl(\operatorname {dualMap}(\partial _{i+1})\bigr)\) and \(B_i(C) = \operatorname {im}\, \partial _{i+1}\), the result follows directly from the identity \(\ker (f^{\mathrm{tr}}) = (\operatorname {im}\, f)^{\mathrm{ann}}\), which holds over any commutative ring. Specifically, we apply LinearMap.ker_dualMap_eq_dualAnnihilator_range to the incoming differential \(\partial _{i+1} = C.\operatorname {incomingDifferential}(i)\).

Theorem 36 Coboundaries are the Dual Annihilator of Cycles

Let \(C\) be a chain complex over \(\mathbb {F}_2\), and assume \(C_i\) and \(C_{i-1}\) are finite-dimensional over \(\mathbb {F}_2\). For each \(i \in \mathbb {Z}\):

\[ B^i(C) \; =\; Z_i(C)^{\mathrm{ann}}, \]

where \(Z_i(C)^{\mathrm{ann}} \subseteq \operatorname {Dual}(C_i)\) is the dual annihilator of the homological cycles \(Z_i(C) = \ker \, \partial _i\).

Proof

Unfolding the definitions \(B^i(C) = \operatorname {im}\, \delta ^{i-1} = \operatorname {im}\bigl(\operatorname {dualMap}(\partial _i)\bigr)\) and \(Z_i(C) = \ker \, \partial _i\), the result follows from the identity \(\operatorname {im}(f^{\mathrm{tr}}) = (\ker f)^{\mathrm{ann}}\) for linear maps between finite-dimensional vector spaces over a field. Specifically, we apply LinearMap.range_dualMap_eq_dualAnnihilator_ker to the differential \(\partial _i = C.\operatorname {differential}(i)\). Finite-dimensionality of \(C_i\) and \(C_{i-1}\) is used to ensure the field-theoretic transpose identity holds.

Lemma 37 Finrank of Boundaries Sub-Cycles Equals Finrank of Boundaries

Let \(C\) be a chain complex over \(\mathbb {F}_2\) with \(C_i\) and \(C_{i+1}\) finite-dimensional. Then:

\[ \operatorname {finrank}_{\mathbb {F}_2}\bigl(B_i(C)|_{Z_i}\bigr) \; =\; \operatorname {finrank}_{\mathbb {F}_2}\bigl(B_i(C)\bigr). \]
Proof

Let \(h_{\le }\) denote the inclusion \(B_i(C) \subseteq Z_i(C)\) from boundaries_le_cycles. Unfolding \(B_i(C)|_{Z_i} = \operatorname {comap}(\iota _{Z_i})(B_i(C))\), we apply the identity

\[ \operatorname {finrank}\bigl(\operatorname {comap}(\iota _{Z_i})(B_i)\bigr) \; =\; \operatorname {finrank}\bigl(\operatorname {map}(\iota _{Z_i})\bigl(\operatorname {comap}(\iota _{Z_i})(B_i)\bigr)\bigr) \]

using Submodule.finrank_map_subtype_eq. Next, we apply Submodule.map_comap_subtype to obtain \(\operatorname {map}(\iota _{Z_i})(\operatorname {comap}(\iota _{Z_i})(B_i)) = Z_i \sqcap B_i\). Since \(B_i \subseteq Z_i\) (i.e., \(h_{\le }\) holds), we conclude \(Z_i \sqcap B_i = B_i\) by inf_eq_right, completing the proof.

Lemma 38 Finrank of Coboundaries Sub-Cocycles Equals Finrank of Coboundaries

Let \(C\) be a chain complex over \(\mathbb {F}_2\) with \(C_i\), \(C_{i-1}\), and \(C_{i+1}\) finite-dimensional. Then:

\[ \operatorname {finrank}_{\mathbb {F}_2}\bigl(B^i(C)|_{Z^i}\bigr) \; =\; \operatorname {finrank}_{\mathbb {F}_2}\bigl(B^i(C)\bigr). \]
Proof

Let \(h_{\le }\) denote the inclusion \(B^i(C) \subseteq Z^i(C)\) from coboundaries_le_cocycles. Unfolding \(B^i(C)|_{Z^i} = \operatorname {comap}(\iota _{Z^i})(B^i(C))\), we apply Submodule.finrank_map_subtype_eq to obtain

\[ \operatorname {finrank}\bigl(\operatorname {comap}(\iota _{Z^i})(B^i)\bigr) \; =\; \operatorname {finrank}\bigl(\operatorname {map}(\iota _{Z^i})(\operatorname {comap}(\iota _{Z^i})(B^i))\bigr). \]

By Submodule.map_comap_subtype, this equals \(\operatorname {finrank}(Z^i \sqcap B^i)\). Since \(B^i \subseteq Z^i\), we have \(Z^i \sqcap B^i = B^i\) by inf_eq_right, completing the proof.

Let \(C\) be a chain complex over \(\mathbb {F}_2\) with \(C_i\), \(C_{i-1}\), and \(C_{i+1}\) finite-dimensional. Then:

\[ \operatorname {finrank}_{\mathbb {F}_2}\bigl(H_i(C)\bigr) \; =\; \operatorname {finrank}_{\mathbb {F}_2}\bigl(H^i(C)\bigr), \]

where \(H_i(C) = Z_i(C)/B_i(C)\) is homology and \(H^i(C) = Z^i(C)/B^i(C)\) is cohomology.

Proof

We apply the dimension formula \(\operatorname {finrank}(M/N) + \operatorname {finrank}(N) = \operatorname {finrank}(M)\) twice:

\begin{align*} \operatorname {finrank}(H_i) + \operatorname {finrank}(B_i|_{Z_i}) & = \operatorname {finrank}(Z_i), \\ \operatorname {finrank}(H^i) + \operatorname {finrank}(B^i|_{Z^i}) & = \operatorname {finrank}(Z^i). \end{align*}

By finrank_boundariesSubCycles_eq, \(\operatorname {finrank}(B_i|_{Z_i}) = \operatorname {finrank}(B_i)\). By finrank_coboundariesSubCocycles_eq, \(\operatorname {finrank}(B^i|_{Z^i}) = \operatorname {finrank}(B^i)\).

We then apply the dual annihilator dimension formula \(\operatorname {finrank}(W) + \operatorname {finrank}(W^{\mathrm{ann}}) = \operatorname {finrank}(V)\) (for \(W \subseteq V\) finite-dimensional) to both \(B_i(C)\) and \(Z_i(C)\):

\begin{align*} \operatorname {finrank}(B_i) + \operatorname {finrank}(B_i^{\mathrm{ann}}) & = \operatorname {finrank}(C_i), \\ \operatorname {finrank}(Z_i) + \operatorname {finrank}(Z_i^{\mathrm{ann}}) & = \operatorname {finrank}(C_i). \end{align*}

By cocycles_eq_dualAnnihilator_boundaries, \(\operatorname {finrank}(Z^i) = \operatorname {finrank}(B_i^{\mathrm{ann}})\). By coboundaries_eq_dualAnnihilator_cycles, \(\operatorname {finrank}(B^i) = \operatorname {finrank}(Z_i^{\mathrm{ann}})\). Combining all four equations, the equality \(\operatorname {finrank}(H_i) = \operatorname {finrank}(H^i)\) follows by integer arithmetic (omega).

Definition 40 Homology–Cohomology Isomorphism
#

Let \(C\) be a chain complex over \(\mathbb {F}_2\) with \(C_i\), \(C_{i-1}\), and \(C_{i+1}\) finite-dimensional. There is a linear isomorphism of \(\mathbb {F}_2\)-vector spaces:

\[ H_i(C) \; \simeq _{\mathbb {F}_2}\; H^i(C). \]

This isomorphism is constructed via LinearEquiv.ofFinrankEq, using the fact that both spaces are finite-dimensional \(\mathbb {F}_2\)-vector spaces of equal dimension, as established by finrank_homology_eq_finrank_cohomology.