Chain complex, homology and cohomology over a field
A sequence of vector spaces and linear boundary maps whose consecutive composites vanish. Cycles modulo boundaries form the homology groups, the transposed maps give cohomology, and the dimensions are the Betti numbers. Over the binary field a three-term complex is the same data as a CSS code.
Established definitionMachine-checkedUpdated 2026-12-01 · last verified 2026-12-01
AI-assisted text, machine-checked, not yet reviewed by a person. Citations resolve and an automated pass compared the statements with the cited sources. That is not peer review; check the sources for anything you depend on.
Let F be a field. A (bounded, finite-dimensional) chain complex over F is a
sequence of finite-dimensional F-vector spaces and linear maps
0→Cm∂mCm−1∂m−1⋯∂1C0→0,∂i∂i+1=0 for all i.
Elements of Ci are i-chains and ∂i is the boundary map. Put
∂0=0 and ∂m+1=0.
Zi=ker∂i are the i-cycles and Bi=im∂i+1 the
i-boundaries; ∂i∂i+1=0 says exactly Bi⊆Zi.
The i-th homology is the quotient Hi=Zi/Bi, and the Betti number is
bi=dimHi=dimker∂i−rank∂i+1.
Fix a basis of each Ci (the cells), identify Ci≅Fni and write
∂i as a matrix. The cochain complex uses the transposed maps
δi=∂i+1T:Ci→Ci+1 with Ci=Fni, which also satisfy
δi+1δi=0. Its cocyclesZi=kerδi, coboundariesBi=imδi−1 and cohomologyHi=Zi/Bi are defined in
the same way. (Basis-free, Ci is the dual space of Ci and δi is the dual map
of ∂i+1.)
A chain mapf:C∙→C∙′ is a family of linear maps fi:Ci→Ci′
with ∂i′fi=fi−1∂i; it sends cycles to cycles and boundaries to
boundaries and so induces linear maps Hi→Hi′.
Over F=F2 a chain is a subset of cells (its support) and its weight∣c∣ is
the number of cells in it. The systole of Hi is
min{∣c∣:c∈Zi∖Bi} and the cosystole of Hi is
min{∣c∣:c∈Zi∖Bi}.
For a three-term complex C2→C1→C0 over F2, with qubits on the cells of
C1, one choice of the two check matrices of a CSS code is
HX=∂1 and HZ=∂2T; the commutation condition
HXHZT=0 is ∂1∂2=0, the number of logical qubits is b1, and the
distance is the smaller of the systole and the cosystole in degree 1 (see the
homological code). The other assignment, with X and
Z exchanged, is equally common. The general theory is in
Munkres; the coding dictionary is surveyed by
Breuckmann and Eberhardt.
Claude (AI drafting assistant)Writing, original draft (CRediT roles)
Review history
Automated source check · Pass · 2026-12-01 · Independent automated verification pass (AI, not the drafting session)
Definitions (cycles, boundaries, homology, Betti numbers, transposed cochain complex, chain maps, systole and cosystole) checked for consistency; CSS dictionary re-derived: with H_X = d1 and H_Z = d2^T the commutation is d1 d2 = 0, k = n - rank d1 - rank d2 = b_1, Z-logicals are Z_1 minus B_1 (systole) and X-logicals Z^1 minus B^1 (cosystole). Compared with Breuckmann-Eberhardt, arXiv:2103.06309, section on chain complexes and CSS codes (d1 = H_X, H_1 = ker d1/im d2, H^1 = ker d2^T/im d1^T). Munkres (not openly readable) is cited only as general background; Crossref metadata of both references match.
Revision history
2026-12-01Content release 2.1.0: 35 more topics, an independent source check of every record, intake hardening (#17)80537b7e
Current revision 562f6b2f4d48c4b0. Source file knowledge/records/definition/chain-complex.md in the content repository (readable there once it is public).