Formalizing Materials R&Dmodular reference
Home/Math reference/Homological algebra
Math reference · Part 5 of 9

Homological algebra

Chain complexes, exact sequences and homology as the measure of obstruction; Tor and Ext as derived functors — conservation laws and what blocks them.

~11 min read P3RD8

Chain two linear maps so that the second annihilates the output of the first — the image of stage one lands exactly in the “kernel” of stage two. When that containment is tight, nothing is hidden. When it almost holds but not quite, the leftover is real, structural content that no single stage explains: think of the independent current loops a circuit graph admits beyond the obvious branches. Homological algebra is the bookkeeping of that leftover: it turns “what got lost” and “what cannot be undone” into a computable group.

Everything below lives in an additive world — objects and maps add, and the governing equation is linear. So read every invariant here as a first-order accountant, not a constitutive law. It sees superposition and structural (yes/no) obstructions; it is blind to saturation, hysteresis, and bifurcations. That caveat is not a footnote — it is the precise scope of the whole chapter.

Complexes and the law \(d\circ d=0\)

The basic object is a sequence of modules strung together by maps that vanish in pairs. A chain complex \((M_\bullet,d)\) is a list of objects \(M_n\) with differentials \(d_n\colon M_n\to M_{n-1}\) satisfying

\[ d_{n-1}\circ d_n = 0. \]

The map \(d\) is one step of a staged process; a cochain complex is the same idea with the index going up. The law \(d\circ d=0\) looks austere but says something simple: applying two consecutive stages annihilates everything. Equivalently, \(\operatorname{im} d_n \subseteq \ker d_{n-1}\) — whatever stage \(n\) produces is invisible to stage \(n-1\).

Intuition. Think of a multi-stage pipeline of states \(M_n \xrightarrow{d} M_{n-1} \xrightarrow{d} \cdots\). The rule \(d\circ d=0\) is a conservation discipline: anything created by one stage is automatically killed by the next. The whole subject asks one question — is that containment tight, or is there slack?

Homology measures the gap

Inside each \(M_n\) live two subgroups. The cycles \(Z_n=\ker d_n\) are what is conserved at stage \(n\). The boundaries \(B_n=\operatorname{im} d_{n+1}\) are what arrived from the previous stage — already accounted for. The law \(d\circ d=0\) guarantees \(B_n\subseteq Z_n\), so the quotient makes sense:

\[ H_n \;=\; \frac{Z_n}{B_n} \;=\; \frac{\ker d_n}{\operatorname{im} d_{n+1}}. \]

This is homology: the conserved content that the previous stage does not explain. It is exactly the slack in the containment \(\operatorname{im}\subseteq\ker\). If \(H_n=0\) for all \(n\), image equals kernel everywhere and the complex is exact — perfectly transparent, no leftover. If \(H_n\neq 0\), you have found an obstruction.

Homology is the obstruction detector. \(H_n\) is the gap when \(\operatorname{im} d_{n+1}\subsetneq\ker d_n\) — the latent content stranded between two stages.

Example (circuit topology). Take a connected graph (a circuit) with incidence matrix \(\partial\). The chain complex \(C_1\xrightarrow{\partial}C_0\) has \(C_1\) spanned by branches and \(C_0\) by nodes. Then \(Z_1=\ker\partial\) is the space of currents obeying Kirchhoff’s current law at every node, while voltages live in \(\operatorname{im}\partial^\top\), so that Kirchhoff’s voltage law is the dual condition that they sum to zero around every cycle. With no \(C_2\), \(H_1=Z_1=\ker\partial\) is exactly the group of independent current loops — the meshes of mesh analysis, \(E-V+1\) of them. A nonzero \(H_1\) is a cycle that is not a boundary: a topologically genuine loop, the discrete shadow of a curl-free field in electromagnetism that fails to be a gradient.

Two facts make this powerful rather than ad hoc. Homology is a functor — it transports along maps of complexes, so it is the prototypical invariant (this is the functoriality that lets an invariant deploy across systems, P7/P13). And it is robust: it is unchanged by the “same up to correction” relations we meet below.

In the synthesis. Homology is the direct formalization of P3 (a hidden intermediate state) and P2 (irreversibility — what a process discards). A nonzero \(H_n\) certifies that something is mediated by a layer you did not observe and cannot recover by looking at the stages alone.

Pitfall. \(H_n=0\) means “no linear/structural obstruction,” not “no obstruction.” A latch-up mode that appears only once an input crosses a switching threshold is a genuine hidden state that is invisible to homology, because it is nonlinear.

Exact sequences: conservation laws

The cleanest complex is one that is exact. A short exact sequence (SES) is the workhorse:

\[ \begin{CD} 0 @>>> L @>i>> M @>p>> N @>>> 0. \end{CD} \]

Exactness at each spot says precisely three things: \(i\) is injective (\(L\) embeds), \(p\) is surjective (\(N\) is hit), and \(\operatorname{im} i=\ker p\). Read together, \(L\cong\ker p\) and \(N\cong M/L\) — so \(M\) is “\(L\) glued to \(N\).” It is a conservation law: \(M\) is exactly its sub-object \(L\) plus its quotient \(N\), nothing more, nothing less. As the figure shows, homology measures the gap that appears the moment that gluing is not tight.

0LMN0i (mono)p (epi)exactness: im i = ker p → M is “L glued to N”homology measures the gap when image ⊊ kernel: H = ker / im (the obstruction)
A short exact sequence is a conservation law; homology measures the obstruction when image ⊊ kernel (P3, RD8).

Example (rank–nullity). Any linear map \(T\colon V\to W\) yields the SES \(0\to\ker T\to V\xrightarrow{T}\operatorname{im} T\to 0\). Exactness is the statement \(\dim V=\dim\ker T+\dim\operatorname{im} T\) — rank–nullity read as a conservation law. Picking a complement to \(\ker T\) in \(V\) splits it, giving \(V\cong\ker T\oplus\operatorname{im} T\): a decoupled, direct-sum decomposition of the state space into “what \(T\) erases” and “what it carries.”

The decisive question is how \(L\) and \(N\) are glued. The SES splits if there is a section \(s\colon N\to M\) with \(p\circ s=\mathrm{id}_N\) (equivalently a retraction of \(i\)). Then

\[ M \;\cong\; L\oplus N, \]

a direct sum — two decoupled subsystems you can pull apart. If no such section exists the sequence is non-split: \(L\) and \(N\) are fused so that separating them destroys structure. The non-split possibilities are classified by a single group, \(\operatorname{Ext}^1(N,L)\), with the split case sitting at \(0\). (Over a field every SES splits — there is nothing to glue, which is exactly why fields are too simple to carry this phenomenon.)

In the synthesis. Split-vs-non-split is the algebraic signature of emergence (RD8): a split extension is a mixture (just \(L\) beside \(N\)); a non-split extension is a compound — an irreducible interaction. The non-split class is an interaction invariant: a coupling you cannot legislate away by a change of coordinates.

The connecting map: obstructions propagate

Now stack two short exact sequences and join them by vertical maps \(f,g,h\), with exact rows:

\[\begin{CD} 0 @>>> L @>>> M @>>> N @>>> 0 \\ @. @VVfV @VVgV @VVhV @. \\ 0 @>>> L' @>>> M' @>>> N' @>>> 0 \end{CD}\]

The snake lemma asserts a single exact sequence threading the kernels and cokernels of the verticals:

\[ 0\to\ker f\to\ker g\to\ker h\xrightarrow{\;\delta\;}\operatorname{coker} f\to\operatorname{coker} g\to\operatorname{coker} h\to 0. \]

The interesting arrow is the connecting homomorphism \(\delta\), and it is built by a diagram chase that is worth narrating: take \(n\in\ker h\), lift it to the hidden middle \(M\), push it down to \(M'\), observe that it must come from a unique \(l'\in L'\), and set \(\delta(n)=[l']\). The output is forced, but it is only reachable by passing through the unobserved object \(M\).

In the synthesis. \(\delta\) is the sharpest statement of P3 (hidden-state mediation): an effect visible at one layer (a leftover in a cokernel) is caused by — and only computable through — an intermediate you never measured. When a SES of complexes is in play, \(\delta\) assembles the long exact sequence \[\cdots\to H_n(L)\to H_n(M)\to H_n(N)\xrightarrow{\delta}H_{n-1}(L)\to\cdots\] — the formal statement that obstructions propagate across coupled processes.

Derived functors, Tor and Ext: principled loss-accounting

Many natural transformations break exactness, and that break is where information leaks. A functor is left-exact if it preserves \(0\to L\to M\to N\), right-exact if it preserves \(L\to M\to N\to 0\), and exact if both. Two examples carry most of the weight: \(\operatorname{Hom}(A,-)\) and \(\operatorname{Hom}(-,A)\) are left-exact; the tensor product \(-\otimes A\) is right-exact. The end that breaks is exactly where the SES stops being a conservation law — non-exactness is information loss under a transformation (P2, P7).

Derived functors repair the break by keeping a complete record of it. First model the object by simple pieces: a projective resolution \(\cdots\to P_1\to P_0\to A\to 0\) replaces \(A\) by free-like projective modules (a projective is a summand of a free module — maps onto it always lift). Injective resolutions are the dual, built from objects into which maps always extend. Any two resolutions are equivalent up to the correction relations below, so the construction is canonical. Then apply the functor \(F\) to the resolution (not to \(A\)) and take homology: \(L_iF(A)=H_i(F(P_\bullet))\) for right-exact \(F\), and \(R^iF\) dually. You recover \(F\) in degree \(0\) (\(L_0F\cong F\)), and \(F\) is exact precisely when all higher derived functors vanish.

Derived functor Built from Vanishing means Detects
\(\operatorname{Tor}_i(A,B)\) derived \(\otimes\) \(A\) is flat torsion: \(\operatorname{Tor}_1(\mathbb Z/n,\mathbb Z/m)=\mathbb Z/\!\gcd(n,m)\)
\(\operatorname{Ext}^i(A,B)\) derived \(\operatorname{Hom}\) \(A\) projective / \(B\) injective extensions / obstructions

The headline is \(\operatorname{Ext}^1\). It is in bijection with the extensions \(0\to L\to M\to N\to 0\) — the ways to glue \(N\) and \(L\) through a hidden middle — with the split (decoupled) extension being the zero class. So the snake-lemma story and the derived-functor story meet here: \(\operatorname{Ext}^1(N,L)\) is the group of ways things can fail to come apart.

In the synthesis. Derived functors are the framework’s principled, graded loss-accounting for any transformation (P7): a degree-by-degree inventory of what a functor destroyed. And \(\operatorname{Ext}^1\) is the leading candidate for an interaction / emergence invariant (RD8) — it counts the irreducible couplings between two components. Over a field it vanishes, which is the formal reason a field is “too flat” to host emergence.

Bridge. This is where the math meets the lab. The materials R&D system treats a property as something that factors through microstructure, and the microstructure chapter is full of couplings that are not separable mixtures. A non-split \(\operatorname{Ext}^1\) class is the algebra of a compound whose behavior is not the sum of its parts — the obstruction to ever decoupling it.

Sameness up to correction — and a warning for QC

Two maps of complexes are chain homotopic, \(f\simeq g\), when \(f-g=dh+hd\) for some \(h\) — “equal up to a correction term that washes out in homology.” Homotopic maps induce equal maps on \(H_n\). A quasi-isomorphism is a map that induces an isomorphism on all homology: the two complexes carry the same essential information, even though the map itself is generally not invertible. That last clause is the sharpest formal model of P2: irreversibility with information preserved. A resolution \(P_\bullet\to A\) is exactly such a quasi-isomorphism.

The disciplined home for this is the derived category \(D(\mathsf A)\), built by formally inverting the quasi-isomorphisms (the homotopy category \(K(\mathsf A)\) takes the first step, identifying homotopic maps). All of this lives inside an abelian category — the axiomatization of a “well-behaved domain” (zero object, biproducts, every mono a kernel, every epi a cokernel) where kernels, cokernels, exact sequences and homology all make sense. By Freyd–Mitchell, any small abelian category embeds into a module category, so you may legitimately chase elements in a diagram.

Pitfall (the QC trap). Isomorphism in \(D(\mathsf A)\) is strictly finer than equality of homology in every degree. Two complexes can match cohomology in every degree yet not be isomorphic, because the gluing data — the \(\operatorname{Ext}\) classes binding the degrees — differ. A regression test suite is a tuple of coarse, degree-wise invariants. Two systems can pass the entire suite and still be genuinely inequivalent (a P4 degeneracy): passing every check can certify a sameness that isn’t real. To tell them apart you must probe the extension structure — the couplings between components — not pile on more scalar checks.

Note. When two stages run at once with cross-terms, the right object is a double complex (a grid with two anticommuting differentials); its homology is computed by a spectral sequence, a machine of successive approximations \(E_{r+1}=H(E_r,d_r)\) converging to an associated graded of the answer — and leaving behind exactly an extension problem, the same \(\operatorname{Ext}\)-shaped gluing ambiguity. Faithful, but high-cost; reach for it sparingly.

Recap

  • A complex obeys \(d\circ d=0\), i.e. \(\operatorname{im}\subseteq\ker\); homology \(H_n=\ker d_n/\operatorname{im} d_{n+1}\) is the slack in that containment — the obstruction, the latent state (P3, P2).
  • A short exact sequence \(0\to L\to M\to N\to 0\) is a conservation law: \(M\) is \(L\) glued to \(N\). It splits (mixture, \(M\cong L\oplus N\)) or is non-split (compound) — and \(\operatorname{Ext}^1(N,L)\) classifies the gluing.
  • The connecting map \(\delta\) (snake lemma → long exact sequence) computes an observable effect through an unobserved middle — obstructions propagate (P3).
  • Derived functors (\(\operatorname{Tor}\), \(\operatorname{Ext}\)) are graded loss-accounting for functors that break exactness; \(\operatorname{Ext}^1\) counts irreducible couplings — the candidate emergence invariant (RD8).
  • A quasi-isomorphism preserves all homology without being invertible — irreversibility with preserved information (P2); the derived category inverts these formally.
  • Everything is additive: these invariants see linear/structural obstructions only. Over a field \(\operatorname{Ext}^1=0\) and every SES splits — the math itself tells you when a domain is too simple to carry emergence.

Part of a four-document set: the ARiSE draft (problem + AI solution), this modular Mathematics reference, the companion materials reference, and the synthesis. Generated from modular Markdown with a custom static-site builder.

Mathematics is typeset with MathJax (loaded once from a CDN with Subresource Integrity; needs network on first view). Diagrams are inline SVG and follow the light/dark theme. Keyboard: / search · [ ] prev/next · t theme.