Mathematics · Article
Categorical connections across mathematics
Follow maps of graphs, spaces and chain complexes to see how functors, gluing and natural comparisons connect concrete mathematical constructions.
Back to MathematicsAfter reading, you can
- Encode directed graphs by endpoint maps, extend their paths to a category and construct a fundamental groupoid.
- Compute graph incidence kernels, component quotients and the maps between them.
- Prove how chain maps, homotopies and connecting homomorphisms act on homology.
- Compare cohomology over a field with the explicitly computed integral case.
- Use restrictions, compatible local sections, direct images and germs to check sheaf properties.
- Apply the Yoneda correspondence and analyze the arrow maps in a small filtration.
What a construction does to the maps
A graph map sends vertices and edges to their images and preserves the endpoints of each edge. Once the graph is turned into a chain complex, the same data determine maps on cycles and connected components. The maps record which classes survive a comparison between graphs.
The lesson follows similar comparisons across topology, homology and sheaves. A homotopy gives a family of paths with a naturality equation. A boundary changes a representative without changing its class. Local sections must agree where their domains overlap before they glue.
Representable presheaves make a natural comparison testable at one identity arrow. Filtrations show why the arrow maps are essential even when the dimensions at individual stages already agree.
Encode directed multigraphs as presheaves
Let J have objects v and e and arrows a,b:v→e in addition to its two identities. There are no pairs of composable nonidentity arrows. In Jᵒᵖ the two named arrows have domain e and codomain v. For F:Jᵒᵖ→Set put V=F(v), E=F(e), s=F(aᵒᵖ) and t=F(bᵒᵖ). This gives two functions with the common domain E.
Conversely, given the sets V,E and source and target functions, put those exact data on the objects and named arrows of Jᵒᵖ. Assign identity maps at v and e. Every composition in Jᵒᵖ includes an identity, so these assignments obey both identity and composition laws with no relation forcing s=t or assuming the endpoints are distinct.
For a transformation α:F⇒G, its two components have types α_v:V_F→V_G and α_e:E_F→E_G. Naturality at aᵒᵖ is G(aᵒᵖ)∘α_e=α_v∘F(aᵒᵖ). At bᵒᵖ the corresponding equation uses the targets. These are exactly preservation of the two endpoints for each edge. Naturality at an identity adds an identity equation.
The two component maps of any graph map satisfy these equations and define a unique transformation. Their identities and composites are computed on the same two sets in both descriptions. The two constructions therefore recover the given objects and maps in both directions. Empty edge sets, loops and parallel edges are all allowed because the sets and two endpoint functions are unrestricted. Related reading: [Graphs as diagrams of vertices, edges and endpoints](https://arxiv.org/pdf/1803.05316), [Typed naturality and invertible components](https://emilyriehl.github.io/files/context.pdf). The two nonidentity arrows in the opposite category go from edges to vertices. Naturality tests both maps at every edge.
Build a path category from a directed graph
For vertices x,y put in Hom(x,y) every finite list (e₁,…,e_m) of edges with s(e₁)=x, t(e_m)=y and t(e_j)=s(e_{j+1}) for each adjacent pair. For m=0 there is one empty path at each specified x, with both endpoints x. The empty path at x belongs to Hom(x,x).
For p:x→y and q:y→z append the list of q to that of p. The matching vertex y makes the new adjacency condition true at the join. If either list is empty the join has no extra adjacency to check. The resulting path has source x and target z, and defines q∘p in the path category.
With r:z→w the two triple composites list first all edges of p, then all edges of q, then all edges of r, in that order. Their endpoints are the same. They coincide as ordered finite lists. Composing with the empty path at the domain or codomain preserves the list at the corresponding end, so it gives the two identity laws.
The categorical identity at a vertex is a length-zero path; it is not an actual length-one loop edge. Concatenation attaches the second path after the first.
| Quantity | Exact result |
|---|---|
| Path p vertices | (0, 1, 2) |
| Path q vertices | (2, 0) |
| Composite available | True |
| Composite edge word | (0, 1, 2) |
| Composite vertices | (0, 1, 2, 0) |
| Length contrast | The closed path has length 3; id₀ has length 0. |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| edges | [[0,1],[1,2],[2,0]] |
| s | 0 |
| p | [0,1] |
| t | 2 |
| q | [2] |
A graph loop e:x→x produces a list with one edge, while the category identity at x is the length-zero list. Even a pair of oppositely oriented edges yields a length-two path, with no cancellation relation imposed. Thus the construction contains precisely the concatenations forced by the graph and the formal identity paths. Related reading: [Free path categories and their universal property](https://emilyriehl.github.io/files/context.pdf). The source and target of an empty path are the same specified vertex. Nonempty compositions preserve the chronological edge order.
Prove the universal property of a path category
A graph map g:G→U(C) gives a C-object g(x) at each vertex and a C-arrow g(e):g(s(e))→g(t(e)) at each edge. The graph U(C) uses the objects and arrows of C and their endpoints, including identity arrows. The fixed size convention makes each of these assignments legitimate graph data.
Send the empty path at x to id_{g(x)}. Send the path (e₁,…,e_m) to g(e_m)∘⋯∘g(e₁). Each intermediate codomain agrees with the next domain by the graph-map equations. Associativity in C identifies the image of a concatenation with composition of the images, including the cases in which one list is empty.
A functor that extends g must send empty paths to the designated identities. A nonempty path is the categorical composite of the single-edge paths in its listed order, so preservation of composition forces the formula on that path. This proves uniqueness and shows that restricting the extension to length-one paths and objects returns exactly g.
For a graph map v:G′→G, its induced path functor applies v edge by edge, following v on vertices. Composing with this functor extends the graph composite g∘v by the same formula on each generator. For a functor H:C→D, composing the extension with H has the restricted data U(H)∘g. The uniqueness just proved gives both naturality equations and hence the free-path adjunction. Related reading: [Free path categories and their universal property](https://emilyriehl.github.io/files/context.pdf). The universal extension takes generators and vertices to their specified data. Uniqueness proves both naturality directions.
Recover the largest subgroupoid of a category
The core Core(C) has every object of C and only those arrows that have inverses in C. Identities have inverses. The composite g∘f of isomorphisms has inverse f⁻¹∘g⁻¹, verified by associativity and the identity equations. The inverse arrows themselves lie in the core, so Core(C) is a groupoid.
For a functor H:C→D and inverse arrows f,f⁻¹, the arrows H(f),H(f⁻¹) have the two identity products by the functor laws. Restricting H to the core is therefore well-defined. Identity functors and composition restrict with their given object and arrow maps, making Core a functor to groupoids.
Let J be a groupoid and F:J→C a functor. Each arrow of J is invertible, so the same argument puts every F-arrow in Core(C). Use the same object maps and arrows to define F′:J→Core(C). The inclusion sends F′ to F. Any factorization over the inclusion has exactly this object and arrow data, which proves uniqueness.
Composition with the core inclusion thus gives a bijection Hom_Gpd(J,Core(C))→Hom_Cat(IJ,C). Precomposing in J changes the same factor data on source objects and arrows. Postcomposing in C changes the factor through the functor on cores, because the new images are still invertible. This proves naturality and the right adjunction Core to inclusion I. Related reading: [Groupoids and the invertible part of a category](https://emilyriehl.github.io/files/context.pdf). The core contains all objects and only invertible arrows. A functor with groupoid source preserves those inverses.
Construct the fundamental groupoid
Fix points x,y of a space X. A path from x to y is a continuous γ:[0,1]→X with the specified endpoint values. Relate two such paths by a continuous homotopy whose restrictions at t=0 and t=1 remain x and y. A constant homotopy gives reflexivity, reversing homotopy time gives symmetry, and pasting two homotopies at their shared middle path gives transitivity.
For γ:x→y and λ:y→z, traverse γ at parameter 2t on 0≤t≤1/2 and λ at parameter 2t−1 on 1/2≤t≤1. The formulas agree at t=1/2. Given endpoint-fixed homotopies for both inputs, use the same two-scale paste at each homotopy time. Agreement along the fixed middle point y proves that the composite class is independent of representatives.
For three paths, either bracketing traverses all three in their listed order with different positive lengths for their three subintervals. A piecewise linear increasing homeomorphism between their breakpoints gives the reparameterisation. Its linear interpolation with the identity is an endpoint-fixing family. Composing that family with the traversed path supplies a homotopy between the bracketings. For identity paths, deform the monotone parameter with a constant initial or final half to the identity in the same manner.
The reversed path γ̄(t)=γ(1−t) goes from y to x. The traverse of γ followed by γ̄ has form γ(min(2t,2−2t)). Replacing the inner parameter by (1−u)min(2t,2−2t) at homotopy time u contracts it to the constant path at x while holding endpoints fixed. Applying the same contraction to γ̄ gives the opposite identity at y. The quotient category is a groupoid. Related reading: [Paths modulo endpoint-fixed homotopy](https://pi.math.cornell.edu/~hatcher/AT/ATch1.pdf), [Natural comparison of functors by invertible point components](https://www.sas.rochester.edu/mth/sites/doug-ravenel/otherpapers/rbrown-topgrpds-e.pdf). Path homotopies fix both endpoints. Concatenation is well-defined on classes and reversal gives the two typed identity paths.
Read a homotopy of maps as a natural isomorphism
A continuous f:X→Y sends x to f(x) and sends a path class [γ] to [f∘γ]. Composing an endpoint-fixed homotopy with f preserves its two fixed ends. Since f acts on values, it commutes with the piecewise formulas for concatenation and sends a constant path to the appropriate constant path. This is the functor Π₁(f) on fundamental groupoids.
The identity continuous map acts identically on points and paths, and (g∘f)∘γ=g∘(f∘γ) for any composable g. Thus X↦Π₁(X) is functorial. Suppose a homotopy H:X×[0,1]→Y goes from f₀ to f₁. Its point path η_x(u)=H(x,u) goes from f₀(x) to f₁(x).
For γ:x→y, evaluate the square (t,u)↦H(γ(t),u). Its lower and right sides are f₀∘γ then η_y. Its left and upper sides are η_x then f₁∘γ. The two boundary walks in the parameter square both connect (0,0) to (1,1). Interpolating their two piecewise linear parametrisations as points of the convex square fixes these two corners.
Compose that interpolation with the square map to get endpoint-fixed homotopy of the two composite paths. Therefore [η_y]∘Π₁(f₀)[γ]=Π₁(f₁)[γ]∘[η_x]. This is the naturality equation of the point-path components. Each component is invertible by path reversal, so the transformation is a natural isomorphism. Related reading: [Paths modulo endpoint-fixed homotopy](https://pi.math.cornell.edu/~hatcher/AT/ATch1.pdf), [Change of basepoint and the effect of a homotopy](https://pi.math.cornell.edu/~hatcher/AT/ATch1.pdf), [Natural comparison of functors by invertible point components](https://www.sas.rochester.edu/mth/sites/doug-ravenel/otherpapers/rbrown-topgrpds-e.pdf), [Typed naturality and invertible components](https://emilyriehl.github.io/files/context.pdf). The homotopy square compares two walks with the same opposite corners. Its point paths give invertible components.
Transport fundamental groups along a path
An arrow from x to y in Π₁(X) exists exactly when there is a path between them. Path concatenation and reversal make this relation an equivalence relation, so the groupoid components are the path components. At a point x the arrows x→x are endpoint-fixed loop classes, and their composition is the fundamental group operation with the chosen convention.
Fix γ:x→y and write g=[γ]. A loop class b:x→x can be transported to y via g∘b∘g⁻¹, which applies the inverse path from y to x first. For b and c at x, the composite of their transported loops equals g∘b∘(g⁻¹∘g)∘c∘g⁻¹. Cancelling g⁻¹∘g proves the homomorphism law.
Transport back uses g⁻¹ and produces g⁻¹∘(g∘b∘g⁻¹)∘g=b by the two inverse equations. The same argument at y gives the other unchanged loop. Transport by g is therefore a group isomorphism, with precise inverse determined by the choice of γ.
If γ′ is another path and g′=[γ′], then k=g′∘g⁻¹:y→y is a loop at y. Since g′=k∘g, the transport by g′ of b equals k∘(g∘b∘g⁻¹)∘k⁻¹. Changing the chosen path therefore introduces an inner automorphism at the target. In a path component the isomorphism type of the group is independent of that choice. Related reading: [Groupoids and the invertible part of a category](https://emilyriehl.github.io/files/context.pdf), [Paths modulo endpoint-fixed homotopy](https://pi.math.cornell.edu/~hatcher/AT/ATch1.pdf), [Change of basepoint and the effect of a homotopy](https://pi.math.cornell.edu/~hatcher/AT/ATch1.pdf), [Natural comparison of functors by invertible point components](https://www.sas.rochester.edu/mth/sites/doug-ravenel/otherpapers/rbrown-topgrpds-e.pdf). Transport by a path class has source and target based loop groups. The loop measuring path change is based at the target.
Prove a deformation retract gives equivalent path groupoids
Let i:A→X be the inclusion of a subspace and r:X→A a retraction with r∘i=id_A. For a deformation retraction use a homotopy H from id_X to i∘r that fixes every point of A throughout. Applying the fundamental groupoid functor gives R∘I=id_{Π₁(A)}, where I=Π₁(i) and R=Π₁(r).
The point paths of H form a natural isomorphism η:id_{Π₁(X)}⇒I∘R. In particular, each point x is isomorphic to I(r(x)), proving essential surjectivity of I. Since H is fixed on A, the component η_a at any a∈A is the identity loop in Π₁(X).
For a path class α:I(a)→I(a′), naturality gives η_{a′}∘α=I(R(α))∘η_a. Both components are identities, so α=I(R(α)). Thus every such class comes from a class in A, with exact endpoints a and a′.
Applying R to a pair of I-images recovers the pair itself by R∘I=id. This gives injectivity on every hom-set, while the previous equation gives surjectivity. The functors are inverse up to the stated natural isomorphism and form an equivalence. The argument uses no connectedness assumption about X or A. Related reading: [Change of basepoint and the effect of a homotopy](https://pi.math.cornell.edu/~hatcher/AT/ATch1.pdf), [Natural comparison of functors by invertible point components](https://www.sas.rochester.edu/mth/sites/doug-ravenel/otherpapers/rbrown-topgrpds-e.pdf). The homotopy fixes the retract pointwise. This makes the components on the retract identities and proves the exact hom-set comparison.
Find H₀ of a finite graph using the incidence map
For a finite graph write k[V] and k[E] for the vector spaces freely spanned by vertices and edges. The signed incidence map d:k[E]→k[V] is d(e)=t(e)−s(e). Let C be the set of components of the underlying undirected graph and ε:k[V]→k[C] send each vertex to its component basis vector.
Both endpoints of an edge lie in one component, so εd(e)=0. If the edge is a loop then d(e)=0 already. It follows that im d⊆ker ε. For each nonempty component c choose a vertex r_c. For any v in it, follow an undirected walk from r_c to v and attach a plus or minus sign to each traversed edge according to whether its direction agrees with the walk.
The signed sum of incidences telescopes to v−r_c, which therefore lies in im d. For a vector x=Σ_v x_v v with ε(x)=0, the coefficients in each component sum to zero. Thus x=Σ_v x_v(v−r_{c(v)}), because the subtracted representative terms sum to zero. All terms lie in im d, including zero differences at representatives.
This proves ker ε=im d. Every component basis vector has a vertex preimage and the empty graph has the unique map between zero spaces, so ε is surjective. It induces an isomorphism H₀=k[V]/im d→k[C]. An isolated vertex contributes one component dimension, while adding a loop leaves the augmentation argument intact. Related reading: [Degree-zero homology and component augmentation](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Oriented chain groups and the homology quotient](https://graphics.stanford.edu/courses/cs233-22-spring/ReferencedPapers/Computing%20Persistent%20Homology%20zc-cph-05.pdf), [Integral cycles and the signed incidence kernel](https://arxiv.org/pdf/2006.13397). A signed walk telescopes to the difference of its endpoints. Those differences generate the full augmentation kernel.
Find the cycle-space dimension
Let v,e,c be the numbers of vertices, edges and undirected components of a finite graph. Its incidence map d has image equal to the kernel of the component augmentation ε from k[V] onto k[C]. By surjectivity of ε, dim ker ε=v−c. Hence rank d=v−c, independent of any chosen basis order.
Applying rank-nullity to the edge space gives dim ker d=e−v+c. The graph chain complex has zero terms in degrees two and higher. In degree one there are no face boundaries to divide out, so H₁ is ker d itself. A loop always contributes a vector in the kernel because its incidence is zero.
Changing an orientation replaces the corresponding column by its negative and gives an invertible coordinate change on the edge space, even in characteristic two where the negative coincides. Parallel edges stay separate basis elements. The formula applies also to the empty graph, where all three counts vanish.
With no two-dimensional cells, H₁ is the kernel of the incidence map. A spanning forest supplies E−(V−β₀) independent cycle generators.
| Quantity | Exact result |
|---|---|
| Connected components | {0, 1, 2, 3} |
| Forest edge indices | (0, 1, 3) |
| Nonforest edge indices | (2) |
| β₀ | 1 |
| β₁ | 1 |
| Explicit cycle basis over F₂ | e₀+e₁+e₂ |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| n | 4 |
| edges | [[0,1],[1,2],[2,0],[2,3]] |
If a two-dimensional complex uses this same one-skeleton, the first boundary d₁ stays fixed and d₂ can contribute a nonzero subspace to ker d₁. Then H₁=ker d₁/im d₂ has dimension e−v+c−rank d₂. A single triangular face contributes its signed cycle as a boundary, which explains why the bare graph count alone does not determine the homology after filling. Related reading: [Degree-zero homology and component augmentation](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Oriented chain groups and the homology quotient](https://graphics.stanford.edu/courses/cs233-22-spring/ReferencedPapers/Computing%20Persistent%20Homology%20zc-cph-05.pdf), [Integral cycles and the signed incidence kernel](https://arxiv.org/pdf/2006.13397). There are no degree-two boundaries in the graph complex. A fixed graph can contribute differently after adding faces.
Construct homology as a functor
In a chain complex C, write Z_n(C)=ker(d_n:C_n→C_{n−1}) and B_n(C)=im(d_{n+1}:C_{n+1}→C_n). The condition d_n d_{n+1}=0 places B_n inside Z_n, so H_n(C)=Z_n(C)/B_n(C) is defined. A chain map f:C→D has maps f_n in the same grades and satisfies d^D_n f_n=f_{n−1}d^C_n.
If z lies in Z_n(C), then d^D_n f_n(z)=f_{n−1}(0)=0. If x=d^C_{n+1}u lies in B_n(C), the chain identity in degree n+1 gives f_n(x)=d^D_{n+1}f_{n+1}(u), which lies in B_n(D). Thus the quotient assignment H_n(f)[z]=[f_n(z)] has the claimed codomain and is well-defined on cosets.
The induced map is additive because f_n preserves sums and the quotient addition is defined on representatives. For vector-space complexes it is also linear, since the representative image of a scalar multiple is the same scalar multiple of the image. In either coefficient category the map is fixed by its values on the cycle classes.
For g:D→E, the representative of H_n(g∘f)[z] is g_n(f_n(z)). This is also the representative of H_n(g)(H_n(f)[z]). The identity map gives the same representative z at every class. These two equalities establish the functor laws. Related reading: [Oriented chain groups and the homology quotient](https://graphics.stanford.edu/courses/cs233-22-spring/ReferencedPapers/Computing%20Persistent%20Homology%20zc-cph-05.pdf), [Chain maps and the maps they induce](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf). A chain map respects each degree and commutes with both relevant differential components. Its induced map uses actual cycle classes.
Show chain-homotopic maps agree on homology
For maps f,g:C→D let h_n:C_n→D_{n+1} satisfy f_n−g_n=d^D_{n+1}h_n+h_{n−1}d^C_n. The first term raises the degree and then lowers it, while the second lowers and then raises it. Both have domain C_n and codomain D_n.
Take a cycle z∈C_n. Its differential vanishes, so f_n(z)−g_n(z)=d^D_{n+1}h_n(z). Both images are cycles by the chain-map law. Their difference lies in the boundaries of D in degree n and hence gives zero in H_n(D).
This gives H_n(f)[z]=H_n(g)[z] for all cycle representatives. Because both quotient maps are well-defined, the equality is independent of representative and gives equality of the induced homology maps for every degree n.
For an explicit distinction of chain maps, take C=D with k in degrees one and zero and differential the identity. Set f=id and g=0. The map h₀=id from degree zero to degree one, with all other h_n zero, gives the displayed difference in both nonzero degrees. The two chain maps have different components while their induced homology maps agree on the zero homology groups. Related reading: [Chain homotopies and inverse comparisons](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf). On cycles a chain homotopy changes the output by a boundary. The equality holds in each homology degree.
Distinguish exactness and chain contraction
Take C with C₁=C₀=k and d₁=id. Its degree-one cycles are zero and its degree-zero boundaries are all of k. Define h₀:C₀→C₁ to be id and all other h_n zero. In degree zero, d₁h₀=id, and in degree one, h₀d₁=id. Thus d h+h d equals the identity, giving a chain contraction.
Consider instead the complex of abelian groups in degrees two, one and zero with C₂=ℤ, C₁=ℤ, C₀=ℤ/2, maps d₂(n)=2n and d₁(n)=[n]. Their composite vanishes. The map d₂ is injective, ker d₁=2ℤ=im d₂, and d₁ is surjective. Every homology group is zero.
If a contraction existed, the degree-zero equation would be d₁h₀=id on ℤ/2 because d₀=0. It would follow that h₀:ℤ/2→ℤ is a right inverse of the reduction map. The order-two relation forces 2h₀([1])=0 in ℤ, giving h₀([1])=0.
In this two-term complex a contraction exists exactly if D is an isomorphism, because its inverse must satisfy both composites. Checking an invalid S does not invalidate another witness.
| Quantity | Exact result |
|---|---|
| DS | [(1, 0), (0, 1)] |
| SD | [(1, 0), (0, 1)] |
| Degree zero identity | True |
| Degree one identity | True |
| Proposed contraction | True |
| About the complex | Contractible via the supplied S |
| First mismatch in DS | all entries match |
| First mismatch in SD | all entries match |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| D | [[1,1],[0,1]] |
| S | [[1,1],[0,1]] |
This contradicts d₁h₀([1])=[1]. A chain contraction always makes the identity of homology equal to the induced zero map, so it implies exactness. The exact integral complex exhibits the extra condition on the chain maps required for contractibility. Related reading: [Chain homotopies and inverse comparisons](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf). The integral exact example has no section of reduction at degree zero, so exactness does not supply a contraction.
Compare a chain splitting with a splitting in each degree
Suppose 0→A→B→C→0 is an exact sequence of chain complexes with inclusion i and projection p and there is a chain map s:C→B with p∘s=id_C. The maps (a,c)↦i(a)+s(c) form a chain map A⊕C→B, because i and s each commute with the differentials.
In any degree, p sends this element to c. If an arbitrary b has p(b)=c, then b−s(c) lies in ker p=im i and equals i(a) for a unique a. This proves bijectivity in each degree. The inverse degree maps commute with the differentials by rearranging the chain-map equation, so B is isomorphic as a complex to A⊕C.
Cycles and boundaries of A⊕C are the respective direct sums of the cycles and boundaries. The quotient therefore identifies H_n(B) with H_n(A)⊕H_n(C) via the same induced maps. This conclusion uses s as an actual chain section.
For an example take A=k in degree zero, B as the identity complex k→k in degrees one and zero, and C=k in degree one. Insert A in the bottom degree and project B onto C in the top. Each degree splits as vector spaces, but any section is the identity in degree one and zero in degree zero. The chain condition in degree one would force a nonzero identity map to equal zero. The middle homology vanishes while H₀(A)=k and H₁(C)=k. Related reading: [Degree-zero homology and component augmentation](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Chain maps and the maps they induce](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Chain homotopies and inverse comparisons](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Lifted cycles and the long exact sequence](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf). A chain splitting decomposes both cycles and boundaries. The example has vector-space splittings in each degree without a chain section.
Construct the connecting homomorphism by lifting a cycle
For a short exact sequence 0→A→B→C→0 of chain complexes with maps i:A→B and p:B→C, let c∈Z_n(C). Surjectivity of p_n gives b∈B_n with p_n(b)=c. Then p_{n−1}(d^B_n b)=d^C_n c=0, so there is a unique a∈A_{n−1} with i_{n−1}(a)=d^B_n b.
The differential of a maps under i to d^B_{n−1}d^B_n b=0. Injectivity of i in degree n−2 therefore gives d^A_{n−1}a=0. Define the connecting value δ_n[c]=[a]∈H_{n−1}(A). The connecting map decreases the homological degree by one.
If another lift b′ has the same projection, b′−b=i_n(u) for some u∈A_n. Taking differentials gives i_{n−1}(a′−a)=i_{n−1}(d^A_nu), so the two representatives differ by a boundary in A. If c is replaced by c+d^C_{n+1}v, lift v to w∈B_{n+1} and use b+d^B_{n+1}w as the lift. Its differential is still d^B_n b by the squared differential law.
For two cycles, the sum of selected lifts is a lift of the sum, and its boundary is the sum of the two boundaries. Injectivity of i forces the selected preimage in A to be the sum. This proves additivity of δ, and the same reasoning with scalar multiples gives linearity for complexes over a field. Related reading: [Lifted cycles and the long exact sequence](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Naturality of the connecting map](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf). The lift starts one degree above the connecting output. Exactness and the differential give a well-defined cycle class.
Prove the three exactness identities of the long sequence
Use δ_n:H_n(C)→H_{n−1}(A) constructed from d of a lift, and the induced degree-preserving maps i_* and p_*. At H_n(A), any δ_{n+1}[c] maps under i_* to zero because its included cycle is the boundary of the chosen lift in B. Conversely, if a∈Z_n(A) and i(a)=d_B b for a b∈B_{n+1}, then p(b) is a cycle, since p(d_B b)=p(i(a))=0. The connecting image δ_{n+1}[p(b)] is [a].
At H_n(B), p_* i_*=0 by p i=0. If b∈Z_n(B) has p_*[b]=0, choose c′∈C_{n+1} with d_C c′=p(b) and lift it to b′∈B_{n+1}. Then p(b−d_B b′)=0. Write this cycle as i(a). The chain identity and injectivity of i make a a cycle, and [b]=i_*[a].
At H_n(C), if c=p(b) for b∈Z_n(B), use the cycle b as lift. Its boundary is zero, so δ_n p_*[b]=0. Conversely, if δ_n[c]=0, write the connecting representative as a=d_A a′ for a′∈A_n. Adjust the original lift b by subtracting i(a′). This leaves p(b)=c unchanged and makes its boundary i(a)−i(d_A a′)=0.
Thus im δ_{n+1}=ker i_* at H_n(A), im i_*=ker p_* at H_n(B), and im p_*=ker δ_n at H_n(C). The argument holds for every n, including a zero term in a bounded complex. Repeating the exact degree pattern gives the long exact sequence with these maps. Related reading: [Lifted cycles and the long exact sequence](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Naturality of the connecting map](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf). Both inclusions of each image-kernel equality use the correct cycle lift or boundary correction.
Prove naturality of the connecting homomorphism
Take a morphism from the short exact sequence with complexes A,B,C to one with complexes A′,B′,C′. Write α:A→A′, β:B→B′, γ:C→C′ for its chain maps and assume β i=i′ α and p′ β=γ p. These are equalities of chain maps, so they hold in every grade.
For a cycle c∈C_n choose a lift b∈B_n. Write d_B b=i(a) with a∈Z_{n−1}(A). Then β_n(b) is a lift of γ_n(c), because p′_nβ_n(b)=γ_n p_n(b). It is therefore an allowed lift for computing the other connecting map.
Taking its boundary in the new sequence gives d_{B′}β_n(b)=β_{n−1}d_B b=β_{n−1}i_{n−1}(a)=i′_{n−1}α_{n−1}(a). The exactness injection i′ identifies α_{n−1}(a) as the unique connecting representative provided by this lift.
Consequently δ′_n γ_*[c]=[α_{n−1}(a)]=α_* δ_n[c]. The left path applies γ_* at degree n, the right output map α_* acts at degree n−1, and both results lie in H_{n−1}(A′). The well-defined construction of δ shows that no new choice of representative can change this commuting square. Related reading: [Chain maps and the maps they induce](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Lifted cycles and the long exact sequence](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Naturality of the connecting map](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf). Naturality compares one lift and its image in the new sequence. The final map in the target has degree n−1.
Dualize finite-dimensional field-valued homology
For each finite-dimensional k-space C_n define C^n=Hom_k(C_n,k) and d^n:C^n→C^{n+1} by d^n(φ)=φ∘d_{n+1}. The two consecutive cochain differentials multiply to zero by d_{n+1}d_{n+2}=0. A cocycle φ annihilates B_n=im d_{n+1}, so its restriction to Z_n=ker d_n gives a linear functional on Z_n/B_n.
A cochain boundary is ψ∘d_n for a ψ:C_{n−1}→k and annihilates all of Z_n. It follows that the restriction gives a map H^n(C^*)→Hom_k(H_n(C),k). Every functional on H_n(C) pulls back to a functional on Z_n that kills B_n. Extend it to C_n by extending a basis of Z_n to one of C_n. The extension still kills B_n and supplies a cohomology class.
If a cocycle φ yields the zero functional, it vanishes on Z_n. The rule d_n(x)↦φ(x) on im d_n is well-defined because two lifts differ by an element of Z_n. Extend this functional from im d_n to C_{n−1} by choosing a basis extension there. This yields ψ with φ=ψ∘d_n, a cochain boundary. The restriction map is therefore one-to-one and onto.
For a chain map f:C→D, the pullback of a dual cocycle is φ∘f_n. Evaluating its restriction on [z] gives φ(f_n(z)), exactly the value of the restricted D-cocycle on H_n(f)[z]. Thus the isomorphisms are natural with the dual comparison in the contravariant direction, independent of the basis choices used only to prove bijectivity. Related reading: [Field duality and integral cohomology](https://pi.math.cornell.edu/~hatcher/AT/ATch3.pdf). Restriction sends cocycles to functionals on cycles modulo boundaries. Extensions in finite dimensions over a field prove surjectivity and describe the kernel.
Find a difference between field and integral duality
Consider the complex with C₁=C₀=ℤ, d₁(n)=2n, and all other groups zero. The kernel of d₁ is zero, hence H₁(C)=0. The cokernel in degree zero is ℤ/2. This computes the original chain homology directly.
Taking integral duals gives C⁰=C¹=ℤ after identifying a homomorphism with its value at 1. If ψ(1)=a, then (ψ∘d₁)(1)=2a. Hence the cochain differential from zero to one is again times 2. The next cochain differential has zero codomain.
Every 1-cochain is a cocycle and the 1-coboundaries form 2ℤ, so H¹(C^*)=ℤ/2. In contrast Hom_ℤ(H₁(C),ℤ) is zero. The difference concerns the map from degree-one cohomology to the exact dual of degree-one homology.
The field proof uses extension of a functional defined on im d₁. Here define 2ℤ→ℤ by 2m↦m. An extension ψ:ℤ→ℤ would have ψ(2)=1, yet ψ(2)=2ψ(1) is even. This identifies the failed extension step in the integral example. Related reading: [Oriented chain groups and the homology quotient](https://graphics.stanford.edu/courses/cs233-22-spring/ReferencedPapers/Computing%20Persistent%20Homology%20zc-cph-05.pdf), [Field duality and integral cohomology](https://pi.math.cornell.edu/~hatcher/AT/ATch3.pdf). The integral example contains a nonextendable functional, which accounts for its explicit difference from field duality.
Build a sheaf of continuous functions
Fix a topological space T. For each open U⊆X let F(U) be the set of continuous functions U→T. For an inclusion V⊆U send a function to its restriction to V. Restrictions preserve continuity. Restricting twice equals restriction along the composite inclusion, and restriction to U itself is the identity. Thus these data define a presheaf.
Suppose U=⋃_j U_j is covered by opens and f_j:U_j→T have equal restrictions on every intersection U_j∩U_l. For any x∈U define f(x) as f_j(x) using an index j with x∈U_j. The pairwise equalities make this value independent of j, and f restricts to f_j on every cover member.
For an open O⊆T, the preimage f⁻¹(O) is the union over j of f_j⁻¹(O). Each of these preimages is open in U_j and each U_j is open in U, so their union is open in U. This proves continuity of f. A second extension would agree at each x with the chosen f_j and therefore coincide with f everywhere.
For the empty open there is one empty function, continuous for any T. The empty cover has precisely one compatible family, and the existence and uniqueness above select that same empty section. These are the gluing and separation requirements of a sheaf of sets on X. Related reading: [Gluing sections on an open cover](https://stacks.math.columbia.edu/tag/006S). Compatible functions glue pointwise. Continuity is tested on an open cover and the empty open has its unique empty function.
Compare constant sections with locally constant sections
Fix a set S with two distinct values a,b. On any nonempty open U let K(U) consist of the constant functions U→S. On the empty open use its one empty function. Restrictions of a constant function along a nonempty inclusion remain constant, and restrictions to the empty open are unique. These maps compose, giving a presheaf.
In the discrete two-point space let the opens U₁ and U₂ be the two distinct singleton subsets. Choose the section with value a on U₁ and the section with value b on U₂. Their intersection is empty, so their restrictions to it agree.
Any function on U₁∪U₂ extending both sections must take different values at the two points. It falls outside K(U₁∪U₂), whose sections have one common value across the whole union. This compatible family has no gluing in K.
Instead let L(U) consist of locally constant functions, meaning that each point has an open neighbourhood in U on which the function is constant. Compatible local functions glue pointwise. At any point, take a cover member containing it and the open neighbourhood there where the local function is constant. This is also a neighbourhood in U and proves local constancy of the glued function. Pointwise agreement proves uniqueness, including the empty case. Related reading: [Gluing sections on an open cover](https://stacks.math.columbia.edu/tag/006S), [Germs of a section and detection of equality](https://stacks.math.columbia.edu/tag/0078). The constant-only presheaf has no glue for the two distinct point values. Locally constant restrictions glue as functions on the union.
Push forward a sheaf along a continuous map
For a continuous f:X→Y and a sheaf F on X, set (f_*F)(V)=F(f⁻¹(V)) for every open V⊆Y. Continuity ensures its argument is open in X. For W⊆V, the preimage inclusion f⁻¹(W)⊆f⁻¹(V) supplies a restriction in the correct direction.
Preimages respect identities and the inclusions used in successive restrictions. The corresponding maps of F compose by its presheaf law, so the direct image is a presheaf. If a map of sheaves is supplied, its components at the preimage opens give the direct-image map by the same naturality squares.
A cover V=⋃_j V_j pulls back to a cover f⁻¹(V)=⋃_j f⁻¹(V_j). Pullback of each pairwise intersection is the intersection of the pulled-back opens. Thus compatibility of sections of f_*F on the V_j is exactly compatibility for F on those preimage opens. Its unique glue provides the unique glue for the direct image.
For g:Y→Z and an open W⊆Z, (g_*f_*F)(W)=F(f⁻¹(g⁻¹(W)))=F((g∘f)⁻¹(W)). The same equality holds for the preimage inclusions of opens, so the restrictions coincide and the two direct images agree as assignments. Taking the identity map of X leaves every open and restriction unchanged. Related reading: [Direct-image sections on preimage opens](https://stacks.math.columbia.edu/tag/008C). The direct image takes sections over preimage opens, and those opens preserve covers, restrictions and the composition direction.
Prove an equalizer of sheaves is a sheaf
Let α,β:F⇒G be natural transformations of sheaves of sets. For an open U put E(U)={s∈F(U): α_U(s)=β_U(s)}. If V⊆U, the two images of the restricted s in G(V) are the corresponding restrictions of α_U(s) and β_U(s), by naturality. They coincide, so F’s restrictions define the restrictions of E.
Given a cover U=⋃_i U_i and compatible sections s_i∈E(U_i), they are compatible as sections of F as well. Glue them in F to a section s∈F(U). The two sections α_U(s),β_U(s) of G have identical restrictions to each U_i because s_i lies in E(U_i).
Separation for G gives α_U(s)=β_U(s). Thus s lies in E(U), and uniqueness follows from the uniqueness of the gluing in F. For an empty cover the same argument is valid with the unique empty section of each sheaf.
The inclusions E(U)⊆F(U) define a map E→F. For any map t:H→F of sheaves with α∘t=β∘t, its component t_U sends H(U) into E(U). Regard each component as taking values in E(U). These smaller-codomain maps are still natural, since restrictions agree with F’s and the inclusions are injective. This is the unique factorization through E. Related reading: [Gluing sections on an open cover](https://stacks.math.columbia.edu/tag/006S), [Limits in the category of sheaves](https://stacks.math.columbia.edu/tag/00W2). The pointwise equalizer condition descends under restriction, and separation in the target sheaf gives the global equality.
Compare germs with global sections
At a point x, consider pairs (U,s) with U an open neighbourhood of x and s∈F(U). Declare (U,s)∼(V,t) when there is an open neighbourhood W of x contained in U∩V on which s and t have equal restrictions. Such classes are the germs at x for the presheaf F.
Reflexivity uses W=U, and symmetry uses the same equality in reverse. If two equalities of germs are witnessed on W and W′, their intersection is an open neighbourhood of x contained in all three relevant original opens. Restricting both equalities there identifies the first and last sections by transitivity of equality.
If F is a sheaf and s,t∈F(U) have identical germs at each x∈U, choose for every x a neighbourhood W_x⊆U where they agree. These opens cover U. Separation for F gives s=t because their restrictions agree on that cover. The germs detect equality of global sections.
For F the sheaf of real-valued continuous functions on the real line, prescribe the germ of the zero constant at each x≤0 and the germ of the one constant at each x>0. A section realizing every germ would take the prescribed value at every point. At zero its own germ would force it to be zero throughout some neighbourhood, which also contains positive points. This contradiction exhibits a germ assignment with no global section. Related reading: [Gluing sections on an open cover](https://stacks.math.columbia.edu/tag/006S), [Germs of a section and detection of equality](https://stacks.math.columbia.edu/tag/0078). The common neighbourhood intersection witnesses transitivity. For a sheaf, germ data at all points detect equality of sections and still require compatibility for existence.
Derive the presheaf form of the Yoneda lemma
For an object A of a locally small C, let yA(X)=Hom_C(X,A) and let its action on an arrow k:Y→X be precomposition by k. Given F:Cᵒᵖ→Set and a transformation τ:yA⇒F, put u=τ_A(id_A)∈F(A). Here F(k):F(X)→F(Y) denotes the contravariant arrow action.
For f:X→A, naturality of τ at f applied to id_A gives τ_X(f)=F(f)(u), since yA(f) sends id_A to id_A∘f=f. Hence the element u determines every component and every value of the transformation. This supplies injectivity of the evaluation operation.
Conversely, begin with u∈F(A) and put τ^u_X(f)=F(f)(u). For k:Y→X, applying F(k) to this value gives F(k)F(f)(u)=F(f∘k)(u), by contravariant functoriality. The right side is τ^u_Y of the precomposed arrow, which proves naturality.
For each b∈F(1), naturality uniquely determines η on all arrows into 1. Equal restrictions at object 0 do not identify different choices at the identity of 1.
| Quantity | Exact result |
|---|---|
| F(0) cardinality | 3 |
| F(1) cardinality and number of maps | 2 |
| η₁(id₁) | 1 |
| η₀(0→1) | 2 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| n0 | 3 |
| r | [0,2] |
| b | 1 |
At A and its identity, τ^u_A(id_A)=F(id_A)(u)=u. Starting with τ and applying the converse construction gives all the same values by the earlier identity, so the two operations are inverse. In particular the bijection compares natural transformations and a set of elements, with the specified set or universe conventions. Related reading: [Identity evaluation and the Yoneda correspondence](https://emilyriehl.github.io/files/context.pdf), [Universal elements and full faithfulness of Yoneda](https://arxiv.org/pdf/1612.09375). The identity of the represented object determines a transformation, with the contravariant action going to the source of each test arrow.
Recover a category inside its presheaf category
Associate to each arrow h:A→B a transformation y(h):yA⇒yB whose X-component sends f:X→A to h∘f:X→B. For k:Y→X the two compositions give h∘(f∘k) and (h∘f)∘k, equal by associativity. This verifies naturality on the presheaf argument.
The transformation for id_A fixes every arrow into A. For h:A→B and g:B→D the two transformations y(g∘h) and y(g)∘y(h) both send f to g∘h∘f. Hence A↦yA is a covariant functor from C into its presheaf category.
For any τ:yA⇒yB, apply the Yoneda bijection with F=yB. The resulting element of yB(A) is the arrow h=τ_A(id_A):A→B. For f:X→A the same bijection gives τ_X(f)=yB(f)(h)=h∘f.
Thus τ=y(h), and h is recovered from that component at id_A. The map Hom_C(A,B)→Nat(yA,yB) is a bijection with the same identities and composites as the functor. This is full faithfulness and does not require every presheaf to have a representing object. Related reading: [Identity evaluation and the Yoneda correspondence](https://emilyriehl.github.io/files/context.pdf), [Universal elements and full faithfulness of Yoneda](https://arxiv.org/pdf/1612.09375), [Typed naturality and invertible components](https://emilyriehl.github.io/files/context.pdf). Postcomposition in the represented object gives the Yoneda embedding. Evaluation at the identity recovers exactly its original arrow.
Classify uniform changes of tuple indexing
For fixed sets A,B write X^A for maps A→X. An arrow g:X→Y acts by postcomposition on both X^A and X^B. Suppose τ is a natural transformation from the first covariant functor to the second. The element h=τ_A(id_A) of A^B is a function B→A.
For any f:A→X, naturality at f as a Set arrow compares the postcomposition of id_A by f with the postcomposition of h by f. Therefore τ_X(f)=f∘h. Each h gives such a family, with naturality at g:X→Y because (g∘f)∘h=g∘(f∘h).
The operation evaluating at id_A recovers the given h, while the formula reproduces every τ from what it does there. This proves the correspondence with functions B→A and explains why the index map goes from the output index set to the input index set.
If B is empty, the unique h is the empty function, so there is one transformation to the singleton-valued functor for every A. If A is empty and B nonempty, no such h exists. At X=∅ in this case, X^A is a singleton while X^B is empty, so the component cannot even be a function. If both index sets are empty, the singleton components are the unique possible ones. Related reading: [Identity evaluation and the Yoneda correspondence](https://emilyriehl.github.io/files/context.pdf), [Typed naturality and invertible components](https://emilyriehl.github.io/files/context.pdf). A tuple operation changes indices by precomposition with a map from the output indices to the input indices, including empty cases.
Test representability using one universal element
For a presheaf F choose A and u∈F(A). The Yoneda construction gives τ^u:yA⇒F. This is a natural isomorphism exactly when for every X and every w∈F(X), there exists a unique f:X→A satisfying F(f)(u)=w. Indeed the condition is bijectivity at each component. Inverting the component functions in the naturality square shows their inverses form the inverse natural transformation.
Suppose (A,u) and (B,v) both satisfy that property. Applying it to v's representing pair with X=A and element u gives f:A→B with F(f)(v)=u. Applying the other property with X=B and element v gives g:B→A with F(g)(u)=v. Each arrow is unique with its displayed equality.
The composite g∘f:A→A satisfies F(g∘f)(u)=F(f)(F(g)(u))=F(f)(v)=u. The identity of A has the same property, so uniqueness implies g∘f=id_A. The composite f∘g similarly fixes v under the action of F and equals id_B.
These inverse arrows give the comparison of the representing objects along with their chosen elements. The equalities show exactly which inverse direction carries which universal element. Conversely, starting from any natural isomorphism yA⇒F, its value at id_A gives a pair satisfying the property by the same characterization. Related reading: [Identity evaluation and the Yoneda correspondence](https://emilyriehl.github.io/files/context.pdf), [Universal elements and full faithfulness of Yoneda](https://arxiv.org/pdf/1612.09375). The representing element solves every comparison uniquely. The two equations for the universal elements force inverse arrows.
Compare subsets with two-valued functions naturally
For a set X let P(X) be its set of subsets and let a function f:X→Y give P(f):P(Y)→P(X) by inverse image. Inverse image under the identity fixes every subset. For g:Y→Z and C⊆Z, (g∘f)⁻¹(C)=f⁻¹(g⁻¹(C)) by element membership. This verifies the contravariant functor law.
For S⊆X define χ_S:X→{0,1} by membership, with χ_S(x)=1 exactly for x∈S. Conversely a function χ:X→{0,1} picks out its 1-fiber. These operations undo each other, because both possible outputs are specified by membership in that fiber. The statement includes X empty.
For f:X→Y and S⊆Y, χ_{f⁻¹(S)}(x)=1 exactly when f(x)∈S, which is the same condition as (χ_S∘f)(x)=1. The two functions also have equal zero values at all remaining elements. This establishes the naturality equality for every set map.
Thus the characteristic map gives a natural isomorphism P(−)≅Hom_Set(−,{0,1}). In the universal-element form, use the subset {1} in P({0,1}). Its inverse image under each χ_S is S, and the two-valued codomain makes that representing map unique. Related reading: [Representing subsets by their characteristic functions](https://math.jhu.edu/~eriehl/survey.pdf), [Typed naturality and invertible components](https://emilyriehl.github.io/files/context.pdf). Preimage of a subset is equivalent to precomposition of its characteristic function. The relevant characteristic values are 1 and 0.
Pass functorially from graphs to incidence complexes
Let q:G→G′ be a directed graph map with components q_V,q_E preserving the two endpoints of every edge. Fix a field k and use the graph complex with edge space k[E] in degree one and vertex space k[V] in degree zero. Define q₁ on each edge basis element by q_E(e) and q₀ on each vertex by q_V(v), extending linearly.
For every edge e, d′q₁(e)=t′(q_E(e))−s′(q_E(e))=q_V(t(e))−q_V(s(e))=q₀d(e). This also holds if the image is a loop, since the two image endpoints then coincide. The basis equation proves the chain-map relation on all inputs.
Composing two such maps sends each basis vector to the image basis vector under the two successive graph maps, exactly as the composite graph map does. The identity graph map fixes both bases. Thus this is a functor to chain complexes, and the induced maps on homology obey the same laws.
An edge walk connecting two vertices is sent to a walk which connects their image vertices, allowing repeated vertices or loops. Hence q induces a function q_C on undirected components. For a vertex v, its component basis value after q₀ and the new augmentation is the basis value of q_C(c(v)). This equality on basis elements proves commutativity with the component augmentations and identifies the induced H₀ map. Related reading: [Graphs as diagrams of vertices, edges and endpoints](https://arxiv.org/pdf/1803.05316), [Degree-zero homology and component augmentation](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Oriented chain groups and the homology quotient](https://graphics.stanford.edu/courses/cs233-22-spring/ReferencedPapers/Computing%20Persistent%20Homology%20zc-cph-05.pdf), [Chain maps and the maps they induce](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Integral cycles and the signed incidence kernel](https://arxiv.org/pdf/2006.13397). A graph map sends each generator to the basis element named by its image. Endpoint preservation gives the incidence square.
Build a homology diagram from a filtration
Let I be a poset, treated as a category with one arrow i→j when i≤j. Let K_i be simplicial complexes with K_i⊆K_j for i≤j. Use one order on all their vertices to orient each simplex as an increasing list. In each degree let the inclusion map send its oriented simplex basis element to the same element in the larger complex.
On an n-simplex [v₀,…,v_n] for n≥1, the boundary is the alternating sum of its single-vertex deletions, each of which is a face in the smaller complex as well. Applying inclusion to that sum gives exactly the same sum as first including the simplex and then taking its boundary. In degree zero the ordinary boundary is zero in both complexes.
The inclusion is therefore a chain map. For i≤j≤ℓ, its composite along i→j→ℓ sends each oriented basis element to the same element as the direct i→ℓ map. The identity inclusion fixes the basis. These are the chain-level law of composition and the identity law.
Taking homology in degree n sends those maps to linear maps on cycle classes and preserves their compositions. This yields an I-indexed diagram of spaces H_n(K_i), with its actual comparison maps. Equal positive dimensions at two stages alone do not determine the rank of the comparison map. Related reading: [Oriented chain groups and the homology quotient](https://graphics.stanford.edu/courses/cs233-22-spring/ReferencedPapers/Computing%20Persistent%20Homology%20zc-cph-05.pdf), [Chain maps and the maps they induce](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Filtrations and their chain comparison maps](https://graphics.stanford.edu/courses/cs233-22-spring/ReferencedPapers/Computing%20Persistent%20Homology%20zc-cph-05.pdf). Compatible vertex orders make simplicial inclusions chain maps. The ordered-set functor retains all their induced maps.
Follow one cycle until a face fills it
Use vertices 0,1,2 with edges a=[01], b=[12], c=[02] and standard orientation. Let K₀ have only the edges a,b, K₁ all three edges, and K₂ additionally τ=[012]. All three complexes contain a path connecting the three vertices, so H₀ is k via the component sum in each case. The inclusions send each vertex to itself, giving identity maps under those identifications.
In K₀ the two columns of incidence are independent because the coefficient of vertex 0 determines the coefficient of a and the coefficient at 2 determines that of b. Thus H₁(K₀)=0. In K₁ the extra column satisfies d(c)=d(a)+d(b), so the kernel has dimension one with generator z=a+b−c.
There is no degree-two boundary at K₁, so z gives a nonzero homology class. In K₂ the degree-one boundary is unchanged, and d₂τ=[12]−[02]+[01]=z. The new degree-two image therefore spans the entire old cycle subspace, making H₁(K₂)=0.
The first two edges connect the three vertices. The third closes the boundary cycle, which becomes a boundary only after including the filled two-simplex.
| Quantity | Exact result |
|---|---|
| Birth stage | 3 |
| Death stage | 4 |
| Interval | [3, 4) |
| β₀ by stage | (3, 2, 1, 1, 1) |
| β₁ by stage | (0, 0, 0, 1, 0) |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| order | [[0,1],[0,2],[1,2]] |
| face | 4 |
| t | Edges | β₁ | β₀ | All boundary edges? |
|---|---|---|---|---|
| 0 | 0 | 0 | 3 | false |
| 1 | 1 | 0 | 2 | false |
| 2 | 2 | 0 | 1 | false |
| 3 | 3 | 1 | 1 | true |
| 4 | 3 | 0 | 1 | true |
The maps of degree-one homology are consequently 0→k→0, each the unique zero map at its given type. The same chain z remains a cycle after inclusion into K₂, and its class vanishes there because an explicit face bounds it. The face boundary identifies the exact class that maps to zero. Related reading: [Degree-zero homology and component augmentation](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Oriented chain groups and the homology quotient](https://graphics.stanford.edu/courses/cs233-22-spring/ReferencedPapers/Computing%20Persistent%20Homology%20zc-cph-05.pdf), [Filtrations and their chain comparison maps](https://graphics.stanford.edu/courses/cs233-22-spring/ReferencedPapers/Computing%20Persistent%20Homology%20zc-cph-05.pdf). The face contributes the exact signed cycle as a boundary. The homology comparison is calculated on that class.
Use a diagram map to separate identical dimensions
Take the category with objects 0,1 and one nonidentity arrow 0→1. Define a diagram U by U(0)=U(1)=k and U(0→1)=id_k. Define V with the same objects and V(0→1)=0. Both are functors because the only remaining compositions involve identities.
A natural transformation θ:U⇒V must satisfy θ_1∘id_k=0∘θ_0. This requires θ_1=0. A natural isomorphism needs both components to be invertible, which is impossible since k is a nonzero one-dimensional vector space.
For any diagram isomorphism with comparison maps u and v between the respective degree positions, the square has θ_1u=vθ_0. Invertibility of both components rewrites v=θ_1uθ_0⁻¹. The image dimension is preserved by this precomposition and postcomposition with isomorphisms.
Thus rank distinguishes the example diagrams, with ranks one and zero. Their dimension at each object is the same. This example establishes the additional invariant supplied by the arrow and makes no completeness claim for rank data on general indexing categories. Related reading: [Filtrations and their chain comparison maps](https://graphics.stanford.edu/courses/cs233-22-spring/ReferencedPapers/Computing%20Persistent%20Homology%20zc-cph-05.pdf), [Typed naturality and invertible components](https://emilyriehl.github.io/files/context.pdf). Naturality expresses the new arrow map by composing the old arrow map with component isomorphisms, so its rank is preserved.
Rule out a natural choice of nonzero vector
Use the category whose objects are two-dimensional vector spaces over k and whose arrows are all their linear isomorphisms. A natural selection of a nonzero vector would assign v_V∈V with v_V≠0 and require f(v_V)=v_W for each f:V→W. In particular, each automorphism of V would fix v_V.
Fix V and write v for its chosen vector. Choose w∈V linearly independent of v, so (v,w) is a basis. Define the linear map S:V→V by S(v)=v+w, S(w)=w. The assignments S⁻¹(v)=v−w and S⁻¹(w)=w check both inverses on the basis.
However S(v)=v+w differs from v because w is nonzero. The automorphism S contradicts the requirement on the selected v. The proof uses independence of v and w and only the existence of the field operations and their additive inverse.
In characteristic two, v−w=v+w and the same shear is its own inverse. It still moves v, so the counterexample includes the two-element field. The zero vector would be fixed by every linear map, illustrating the significance of the required nonzero choice. Related reading: [Identity evaluation and the Yoneda correspondence](https://emilyriehl.github.io/files/context.pdf), [Typed naturality and invertible components](https://emilyriehl.github.io/files/context.pdf). An automorphism of a chosen two-dimensional space can move any nonzero vector, including over the two-element field.
Compare chains across an elementary triangle collapse
In the filled triangle K write a=[01], b=[12], c=[02] and τ=[012], with d₂τ=a+b−c. Let L be its subcomplex with all vertices and only edges a,b. Let i:C(L)→C(K) be inclusion. Define r:C(K)→C(L) to fix every vertex, a and b, to send c to a+b, and to send τ to zero.
Since d(c)=[2]−[0]=d(a)+d(b), the degree-one relation dr=rd holds for c, where [0] and [2] are vertex generators. It also holds on a,b and vertices. In degree two, r(dτ)=a+b−(a+b)=0=d(rτ). Thus r is a chain map and r i=id on every basis element of C(L).
Define h₁:C₁(K)→C₂(K) by h₁(c)=−τ and h₁(a)=h₁(b)=0, with all other h_n zero. In degree one, d h₁(c)=c−a−b=(id−i r)(c), while both expressions vanish on a,b. In degree two, h₁(dτ)=τ=(id−i r)(τ). In degree zero both sides are zero.
Therefore id−i r=d h+h d. The induced maps of i and r are mutually inverse on homology, since r i is the identity and i r is chain-homotopic to the identity. The path L has one component and no cycles in degree one, hence K has H₀=k and zero positive-degree homology by this explicit comparison. Related reading: [Oriented chain groups and the homology quotient](https://graphics.stanford.edu/courses/cs233-22-spring/ReferencedPapers/Computing%20Persistent%20Homology%20zc-cph-05.pdf), [Chain homotopies and inverse comparisons](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf). The filled triangle retracts onto the two-edge path through explicit chain maps and a signed chain homotopy.
Construct integral graph cycles from a spanning forest
Choose a spanning tree of each undirected component of the finite graph, together forming a forest T. Give every retained edge its original orientation. For an edge e outside T, its endpoints lie in a common component. Follow the unique tree path from t(e) to s(e) as a signed integral edge sum p_e, using negative signs on tree edges traversed against their orientation.
The boundary of p_e is s(e)−t(e) by telescoping, and for a loop the tree path is empty with boundary zero. Thus z_e=e+p_e is an integral cycle. Its coordinate at e is 1 and at every other nonforest edge is zero, proving independence of all these cycles over ℤ.
Let z be any integral cycle and subtract the sum Σ_{e∉T} α_e z_e with α_e the coefficient of e in z. The remainder is a cycle supported on T. At a leaf of any nontrivial tree in the forest, its only incident tree edge has coefficient zero, because the coefficient of the leaf in the boundary is that edge coefficient up to sign.
Remove that edge and leaf and repeat on the remaining finite forest. All the remaining coefficients are zero, including the trivial trees with no edges. So the original cycle is exactly the integer combination of z_e determined by its nonforest coordinates. With no degree-two term these cycles are an integral basis of H₁ of the graph. Related reading: [Integral cycles and the signed incidence kernel](https://arxiv.org/pdf/2006.13397). The coefficients at nonforest edges give exact integer coordinates. The boundary at a leaf forces the residual coefficient to vanish.
Check the effect of subdividing an edge
Subdivide the directed edge e:u→v into a:u→w and b:w→v through a new vertex w. Define a map of the old graph chains into the new ones by sending every old vertex to itself, every other edge to itself, and e to a+b. Since d(a+b)=v−u=d(e), the map commutes with the boundaries.
In a new cycle the coefficient of w in its boundary is the coefficient of a minus the coefficient of b. No other edge touches w. Thus the cycle condition forces these two edge coefficients to be equal, and the assertion holds whether u and v are distinct or coincide.
Replace the common coefficient of a and b by that coefficient of e to get a unique old 1-chain with the given image. It is a cycle because its boundary includes into the new vertex space as the boundary of the new cycle, and that inclusion is injective. Conversely every old cycle maps to a new one. This proves the isomorphism on H₁ because both graph complexes have no 2-boundaries.
Using a new vertex along a chosen edge keeps graph connectivity and adds one vertex and one edge overall. This preserves E−V+β₀, including a subdivision of an undirected loop.
| Quantity | Exact result |
|---|---|
| Old selected edge | (0, 1) |
| New edges | (0, 3) and (3, 1) |
| Vertices before and after | 3 and 4 |
| Edges before and after | 3 and 4 |
| β₀ before and after | 1 and 1 |
| β₁ before and after | 1 and 1 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| n | 3 |
| edges | [[0,1],[1,2],[2,0]] |
| at | 0 |
The old and new components are in bijection: subdividing preserves the connectivity of the endpoints, and the new vertex lies in their component. The inclusion of old vertices commutes with the augmentations under that bijection, so it induces an isomorphism on H₀. All the displayed coefficients also make sense over ℤ, including the loop case. Related reading: [Degree-zero homology and component augmentation](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Oriented chain groups and the homology quotient](https://graphics.stanford.edu/courses/cs233-22-spring/ReferencedPapers/Computing%20Persistent%20Homology%20zc-cph-05.pdf), [Chain homotopies and inverse comparisons](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Integral cycles and the signed incidence kernel](https://arxiv.org/pdf/2006.13397). The inserted vertex forces the two new edge coefficients to be equal in any cycle, giving the inverse on cycle groups.
Compare invariants of a tetrahedral boundary and a point
Use the finite boundary complex of a tetrahedron with vertices 0,1,2,3, all six edges, and faces [012], [013], [023], [123], each in increasing vertex order. There is no tetrahedron in this boundary complex. Its edge graph is connected, so H₀=k and the kernel of the incidence differential d₁ has dimension 6−4+1=3.
The boundaries of [012], [013], and [023] are linearly independent. Among these three boundaries, the edge [12] appears only in the first, [13] only in the second, and [23] only in the third, each with coefficient 1. Every face boundary lies in ker d₁ by the squared differential law, so the image of d₂ has dimension exactly three and equals ker d₁.
It follows that H₁=0. The degree-two space has dimension four and d₂ has rank three, so ker d₂ has dimension one. A nonzero element is [123]−[023]+[013]−[012], whose signed edge terms cancel. Since C₃=0 this element cannot be a degree-two boundary, and H₂ is isomorphic to k.
A point has H₀=k, H₁=0 and H₂=0. The first two tested groups agree with those of the tetrahedral boundary, and the third distinguishes the two. Filling the solid tetrahedron contributes the very displayed degree-two cycle as its oriented boundary. Related reading: [Degree-zero homology and component augmentation](https://pi.math.cornell.edu/~hatcher/AT/ATch2.pdf), [Oriented chain groups and the homology quotient](https://graphics.stanford.edu/courses/cs233-22-spring/ReferencedPapers/Computing%20Persistent%20Homology%20zc-cph-05.pdf). Three face boundaries are independent by nonstar edge coefficients. The fourth supplies a signed face cycle that survives before the solid tetrahedron is added.
Trace concrete paths, incidence and homology calculations, and one finite representability check.
Compose typed edge words with the correct identities
Composable paths form the three-edge circuit
The categorical identity at a vertex is a length-zero path; it is not an actual length-one loop edge. Concatenation attaches the second path after the first.
| Quantity | Exact result |
|---|---|
| Path p vertices | (0, 1, 2) |
| Path q vertices | (2, 0) |
| Composite available | True |
| Composite edge word | (0, 1, 2) |
| Composite vertices | (0, 1, 2, 0) |
| Length contrast | The closed path has length 3; id₀ has length 0. |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| edges | [[0,1],[1,2],[2,0]] |
| s | 0 |
| p | [0,1] |
| t | 2 |
| q | [2] |
Read graph homology from components and independent cycles
One component and one graph cycle
With no two-dimensional cells, H₁ is the kernel of the incidence map. A spanning forest supplies E−(V−β₀) independent cycle generators.
| Quantity | Exact result |
|---|---|
| Connected components | {0, 1, 2, 3} |
| Forest edge indices | (0, 1, 3) |
| Nonforest edge indices | (2) |
| β₀ | 1 |
| β₁ | 1 |
| Explicit cycle basis over F₂ | e₀+e₁+e₂ |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| n | 4 |
| edges | [[0,1],[1,2],[2,0],[2,3]] |
Check a proposed degree-one section over F₂
Both degree identities make a contraction
In this two-term complex a contraction exists exactly if D is an isomorphism, because its inverse must satisfy both composites. Checking an invalid S does not invalidate another witness.
| Quantity | Exact result |
|---|---|
| DS | [(1, 0), (0, 1)] |
| SD | [(1, 0), (0, 1)] |
| Degree zero identity | True |
| Degree one identity | True |
| Proposed contraction | True |
| About the complex | Contractible via the supplied S |
| First mismatch in DS | all entries match |
| First mismatch in SD | all entries match |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| D | [[1,1],[0,1]] |
| S | [[1,1],[0,1]] |
Recover all components from a universal distinguished value
Selected value restricts to a different label
For each b∈F(1), naturality uniquely determines η on all arrows into 1. Equal restrictions at object 0 do not identify different choices at the identity of 1.
| Quantity | Exact result |
|---|---|
| F(0) cardinality | 3 |
| F(1) cardinality and number of maps | 2 |
| η₁(id₁) | 1 |
| η₀(0→1) | 2 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| n0 | 3 |
| r | [0,2] |
| b | 1 |
Separate the birth of a cycle from the addition of a filling
Cycle born at 3, filled at 4
The first two edges connect the three vertices. The third closes the boundary cycle, which becomes a boundary only after including the filled two-simplex.
| Quantity | Exact result |
|---|---|
| Birth stage | 3 |
| Death stage | 4 |
| Interval | [3, 4) |
| β₀ by stage | (3, 2, 1, 1, 1) |
| β₁ by stage | (0, 0, 0, 1, 0) |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| order | [[0,1],[0,2],[1,2]] |
| face | 4 |
| t | Edges | β₁ | β₀ | All boundary edges? |
|---|---|---|---|---|
| 0 | 0 | 0 | 3 | false |
| 1 | 1 | 0 | 2 | false |
| 2 | 2 | 0 | 1 | false |
| 3 | 3 | 1 | 1 | true |
| 4 | 3 | 0 | 1 | true |
Compare components and cycles across exact subdivisions
Subdivide a triangle edge
Using a new vertex along a chosen edge keeps graph connectivity and adds one vertex and one edge overall. This preserves E−V+β₀, including a subdivision of an undirected loop.
| Quantity | Exact result |
|---|---|
| Old selected edge | (0, 1) |
| New edges | (0, 3) and (3, 1) |
| Vertices before and after | 3 and 4 |
| Edges before and after | 3 and 4 |
| β₀ before and after | 1 and 1 |
| β₁ before and after | 1 and 1 |
Exact inputs and supporting calculations
| Parameter | Value |
|---|---|
| n | 3 |
| edges | [[0,1],[1,2],[2,0]] |
| at | 0 |
Worked examples
Compose paths in a graph with a return edge
Use edges a:u→v, b:v→w and c:w→u. Give the path from u to w and the loop at u obtained by following all edges, evaluate an identity composition, and distinguish the resulting arrow from a length-zero path.
- The edge a starts at u and ends at v. The edge b starts at v and ends at w, so the ordered list (a,b) is a path u→w. In the category’s composition notation this is b∘a, with a applied first.
- The edge c ends at u and can be appended to the two-edge path because c starts at w. This gives list (a,b,c) and loop c∘(b∘a):u→u. Its length is three even though its endpoints coincide.
- Write id_u for the empty path at u. Composing the loop with id_u first appends the three edges after an empty list. Composing id_u with the loop appends an empty list after those edges. Both outputs are exactly (a,b,c).
- The loop and the identity have the same endpoints but different lists. The length-zero path contains no edge, while the loop retains all three named generators. They are therefore distinct arrows of the path category.
The path from u to w is (a,b). The loop (a,b,c) is unchanged by composition with id_u and has length three.
Compute a component augmentation with an isolated point
Over ℚ take V={u,v,w,z}, path edges a:u→v and b:v→w, with z isolated. Map 2u−v+w+3z to its component totals. Decompose its component-zero part after choosing u and z as representatives.
- The path with vertices u,v,w is one component and z is another. The augmentation sends each of u,v,w to the first component and z to the second. Thus the totals of 2u−v+w+3z are (2−1+1,3)=(2,3).
- Represent the component totals at u and z by 2u+3z in the vertex space. Subtracting this vector leaves −v+w, which has coefficient sum zero in each component.
- The incidence of b:v→w is w−v, exactly the correction. More explicitly the difference v−u is d(a) and the difference w−u is d(a+b). Hence −(v−u)+(w−u)=−d(a)+d(a+b)=d(b).
- The input vector is the representative 2u+3z plus d(b); the boundary term is zero in H₀. The isolated component survives with its own coordinate 3. The example uses the chosen representative u only to express the boundary correction.
The component totals are (2,3). The input is 2u+3z+d(b), with d(b)=w−v.
Find the triangle cycle in signed incidence coordinates
Orient triangle edges a=01,b=12,c=02. Compute the boundary of xa+yb+zc, find a basis for its kernel, and identify the cycle after adding the oriented face 012.
- The incidence map sends a to [1]−[0], b to [2]−[1], and c to [2]−[0]. Thus the boundary of xa+yb+zc has coefficient −x−z at [0], x−y at [1], and y+z at [2].
- The middle coefficient vanishes exactly when y=x, and the first then forces z=−x. With these values the last coefficient is x−x=0. Every cycle is therefore x(a+b−c).
- The three edges are independent as edges in a basis, so a+b−c is nonzero. Before adding a face, the degree-two group is zero and this vector is a basis of H₁ as well as of the incidence kernel.
- The increasing vertex orientation on [012] gives d₂[012]=[12]−[02]+[01]=a+b−c. Adding the face therefore leaves the same kernel in degree one and puts its spanning vector in the space of boundaries. The new H₁ is zero.
The incidence kernel is k(a+b−c). Adding [012] makes its spanning cycle a boundary.
Compute a connecting map that is the identity
Use A=k at degree zero, B=k→k by the identity from degree one to zero, C=k at degree one. Compute δ on scalar cycles and show which image or kernel vanishes on either side.
- Take A₀=k and C₁=k with all other terms of A and C zero. Put B₁=B₀=k with d₁=id. In the sequence A→B→C, the inclusion is the identity in degree zero and the projection the identity in degree one, giving a short exact sequence in each degree.
- For the cycle x∈C₁, its unique lift in B₁ is x because p₁ is the identity. The boundary of that lift is x∈B₀. It has the preimage x∈A₀ under the inclusion i₀.
- Both H₁(C) and H₀(A) identify with k by their representatives. The connecting map sends [x] to [x], so it is the identity. This computes δ by the lift and boundary definition.
- The adjacent groups H₁(B) and H₀(B) are both zero because d₁ is bijective. On the H₁(C) side, im p_*=0=ker δ. On the H₀(A) side, im δ=k=ker i_*. These are the two exact equalities adjacent to this connecting map.
The connecting map H₁(C)→H₀(A) is id_k. Its kernel is zero and its image is all of k.
Find integral and dual homology in a short example
Use ℤ→ℤ with map times 3. Compute H₀,H₁, H⁰ and H¹ with integer-valued duals, and identify the source of the degree shift in the listed nonzero groups.
- For the chain differential d₁(n)=3n, the kernel in degree one is zero because 3n=0 in ℤ implies n=0. The image is 3ℤ in degree zero, where all chains are cycles. Thus H₁=0 and H₀=ℤ/3.
- Identify each integral dual of ℤ with ℤ by evaluation at 1. Precomposing a homomorphism ψ with d₁ changes its value at 1 from a=ψ(1) to ψ(3)=3a. The dual cochain differential d⁰ from degree zero to one is therefore still multiplication by 3.
- The kernel of d⁰ is zero, so H⁰=0. All 1-cochains are cocycles because the next cochain group is zero. Dividing them by the image 3ℤ gives H¹=ℤ/3.
- The chain quotient comes from the target of d₁ in degree zero. After precomposition the target of the same multiplication becomes the dual group in degree one and gives the displayed cochain quotient there. This explains the two grades in this example.
The chain groups give H₀=ℤ/3 and H₁=0. The dual cochains give H⁰=0 and H¹=ℤ/3.
Glue across overlapping open intervals
Let U=(−2,1), V=(0,3) in ℝ and consider f(x)=x² on each. Check compatibility and give the unique glued function. Replace f on V by x²+1 and determine exactly why no gluing exists.
- The open sets U=(−2,1) and V=(0,3) have overlap (0,1) and union (−2,3). Restricting x↦x² from either side to the overlap gives the same function there because both use the same value at each point.
- Define the glued section on the union by f(x)=x². It is continuous and has the two given restrictions. A second glued section would have the same value as x² at each point since every point lies in U or V.
- If the section on V is replaced by x↦x²+1, then the restrictions disagree throughout the overlap. At x=1/2 the U-section takes 1/4, while the new V-section takes 5/4.
- A single function on the union can only have one value at x=1/2. Therefore there is no function realizing both restrictions, even before imposing continuity. This checks failure at the compatibility step.
The x² sections glue uniquely to x² on (−2,3). The second pair disagrees at every point of (0,1).
Apply a direct-image sheaf to a constant map
Let f:{0,1}→ℝ be constant at 0 with discrete domain. For its real-valued continuous-function sheaf, compute the sections of the direct image on V=(−1,1) and W=(1/2,2), then restrict from V to V∩W.
- Because f has constant value 0, the preimage of V=(−1,1) is all of {0,1}. With the discrete topology every function on these two points is continuous. Thus the section over V is an arbitrary pair (r₀,r₁)∈ℝ².
- The open W=(1/2,2) excludes 0, so f⁻¹(W) is empty. Its section set consists of the unique empty function. We can denote it by the singleton {∅} with ∅ interpreted as the empty function graph.
- The intersection V∩W is (1/2,1), which also excludes 0. Its preimage is empty. The restriction from V to V∩W is the ordinary function restriction from all of {0,1} to the empty domain.
- Every input pair (r₀,r₁) therefore maps to the same empty section on the intersection. The restriction from W to the intersection acts as the unique map between singleton section sets. These are the exact maps arising from preimage inclusions.
The sections over V form ℝ². The sections over W and over V∩W are the unique empty section, and restriction from V sends every pair there.
Read a natural transformation as coordinate repetition
Let A={a,b}, B={0,1,2}, h(0)=a,h(1)=h(2)=b. On X={r,s}, compute precomposition on the tuple f(a)=r,f(b)=s. Verify naturality after a specified map sending both r and s to x.
- For h:B→A we use τ_X(f)=f∘h:B→X. The given f has value r at a and s at b. The three outputs are f(h(0))=r, f(h(1))=s, and f(h(2))=s, so τ_X(f) has tuple (r,s,s).
- Let g:X→{x} send r and s to x. Applying g afterwards gives the tuple (x,x,x). Its entry at every j∈B is g((f∘h)(j)).
- If g acts first, the new map on A is g∘f with tuple (x,x). Applying h then gives ((g∘f)(h(0)),(g∘f)(h(1)),(g∘f)(h(2)))=(x,x,x).
- The two outputs coincide at all three coordinates because (g∘f)∘h=g∘(f∘h). In particular h duplicates the b-coordinate independently of how the values in X are subsequently mapped.
The output tuple is (r,s,s). Mapping both values to x gives (x,x,x) along both routes.
Calculate the subset characteristic-function square
For f:{a,b,c}→{0,1}, f(a)=f(c)=0 and f(b)=1, take subset {0} of the target. Compute its inverse image, all characteristic values and the equality after composition.
- For the target subset S={0}, the inverse image consists of the domain points sent to 0. Because f(a)=f(c)=0 and f(b)=1, we obtain f⁻¹(S)={a,c}.
- The characteristic function χ_S of S on {0,1} takes values χ_S(0)=1 and χ_S(1)=0. Composing with f therefore gives respective outputs 1,0,1 at a,b,c.
- The characteristic function of the inverse-image subset {a,c} also has values 1 at a, 0 at b, and 1 at c. This constructs the other route as a function on the same ordered domain.
- Thus χ_{f⁻¹(S)}=χ_S∘f as functions on {a,b,c}. Membership in the output subset is pulled back along f, and the same direction appears as precomposition of the two-valued function.
The inverse image is {a,c}. Both characteristic functions on the three domain points take the values (1,0,1).
Compute the effect of a graph map on a cycle
Map the graph with two vertices u,v and parallel edges e₁,e₂:u→v to the graph with one vertex w and one loop ℓ, sending both edges to ℓ. Compute the maps on H₀ and H₁ over a field.
- In the source graph both edges have boundary v−u and there is a single connected component. Thus H₀ has a generator [u]=[v], and H₁ is spanned by e₁−e₂ because an edge pair of coefficients x,y is a cycle exactly when x+y=0.
- In the target graph the one loop has zero boundary and no face bounds it. Its H₁ is spanned by ℓ and H₀ by [w]. The vertex map sends both u and v to w, so the H₀ map sends the source generator to the target generator.
- The edge map sends each of e₁,e₂ to ℓ. Hence the source cycle e₁−e₂ maps to ℓ−ℓ=0, which induces the zero map from the one-dimensional source H₁ to the one-dimensional target H₁.
- The chain condition holds on each edge because the vertex image of v−u is w−w=0=d(ℓ). Thus the computed zero is an actual induced map on classes even though both H₁ spaces have dimension one.
The H₀ map sends [u]=[v] to [w]. The H₁ map sends e₁−e₂ to zero in kℓ.
Trace the homology maps across a merge and a filling
Start with only vertices 0,1,2, add edges 01,12, add 02, then add face 012. Compute every H₀ and H₁ dimension and the ranks of consecutive maps.
- With just the three vertices, H₀ is k³ on their classes and H₁ is zero. Adding edges 01 and 12 connects the vertices, giving H₀=k and H₁=0 because the two incidence columns are independent.
- The first H₀ map sends all three vertex generators to the same class in the path, so under the component identification it is (x₀,x₁,x₂)↦x₀+x₁+x₂. Its rank is one over any field. The first H₁ map has rank zero.
- Adding edge 02 preserves the one component and adds the one-dimensional kernel spanned by [01]+[12]−[02], so H₁ becomes k. The next H₀ map is the identity on k. The next H₁ map has zero domain and rank zero.
- Filling the triangle adds a boundary spanning that kernel and keeps one component. The final H₀ map is again the identity with rank one. The final H₁ map is k→0 with rank zero. The H₀ dimensions are 3,1,1,1 and the H₁ dimensions 0,0,1,0.
The H₀ dimensions are (3,1,1,1) with map ranks (1,1,1). The H₁ dimensions are (0,0,1,0) with map ranks (0,0,0).
Restore a subdivided loop cycle
Subdivide a single loop ℓ at v into a:v→w and b:w→v. Compute the two signed boundaries, the coefficient condition for cycles and the image of 2ℓ on integer cycles.
- The old loop ℓ at v has boundary v−v=0. The subdivided edges a:v→w and b:w→v have boundaries w−v and v−w, respectively. The sum a+b has zero boundary.
- For a new integral 1-chain xa+yb its boundary is (x−y)(w−v). Since w and v are independent vertex generators, this boundary vanishes exactly when x=y.
- Every new cycle is therefore an integral multiple of a+b. The chain map induced by subdivision sends ℓ to a+b, giving a bijection between the free cycle groups ℤℓ and ℤ(a+b).
- The specified cycle 2ℓ maps to 2a+2b, with coefficient 2 in each new edge as required. Both complexes have zero degree-two term, so this is also the equality describing the induced H₁ class.
The new integral cycles are ℤ(a+b). The cycle 2ℓ maps to 2a+2b.
Try it yourself
Given components α_v,α_e of a transformation between two Jᵒᵖ diagrams, write both naturality squares and recover their graph-map meaning.
Show the answer and reasoning
The squares are s′α_e=α_v s and t′α_e=α_v t. They say the edge map preserves both endpoints.
Let the two diagrams be F and G with F(v)=V,F(e)=E and G(v)=V′,G(e)=E′. Their two nonidentity arrow values are s,t:E→V and s′,t′:E′→V′. A component family consists of α_v:V→V′ and α_e:E→E′. Naturality at the first arrow e→v is s′∘α_e=α_v∘s. Evaluating at any edge e₀∈E gives s′(α_e(e₀))=α_v(s(e₀)), the preservation of the starting vertex. The second arrow gives t′∘α_e=α_v∘t. Its evaluation yields t′(α_e(e₀))=α_v(t(e₀)), the preservation of the ending vertex. Both squares have the same component functions and distinct endpoint maps. Together the equations are the definition of a map of directed multigraphs. Conversely that map obeys both equations, and identities in the diagrams give automatic naturality at the remaining arrows. Its two component maps determine the transformation.
In the path category of a one-vertex graph with loops a,b, assign a↦2,b↦−1 in the one-object category of the additive group ℤ. Compute the image of a b a a and of the empty path, then check the extension.
Show the answer and reasoning
The extension sends a b a a to 5 and the empty path to 0. Concatenation goes to addition.
The one vertex of the source is sent to the sole object of the integer category. Its arrows are the integers, composed by addition, with identity zero. The loop labels a and b have given images 2 and −1. The path a b a a is a concatenation of four generators with those four ordered images. The extension sends it to 2+(−1)+2+2=5. The addition is in ℤ and produces another endomorphism of the target object. The empty path is the source identity at its vertex and must map to the target identity 0. This also equals the sum of the empty list of integer images. For any two paths, the sum over the concatenated list equals the sum over the first list plus the sum over the second. Hence the assignment preserves composition as well as the identity. An extension must add successive generator images by functoriality, proving uniqueness.
For γ:x→y write its reversal. Give an explicit endpoint-fixed contraction for γ followed by its reversal and say which constant path occurs under the reversed order.
Show the answer and reasoning
For q(t)=min(2t,2−2t), use γ((1−u)q(t)) to contract the first composite at x. The other contracts at y.
The path γ has γ(0)=x and γ(1)=y. Define γ̄(t)=γ(1−t), so γ̄ starts at y and ends at x. The composite γ followed by γ̄ starts and ends at x. In its first half the parameter of γ is 2t. In its second half the parameter is 2−2t. Hence this composite is γ(q(t)) with q(t)=min(2t,2−2t) on [0,1]. The map H(t,u)=γ((1−u)q(t)) is continuous. At u=0 it gives the composite and at u=1 it gives the constant γ(0)=x. Both endpoints have q(t)=0 for all u, so the homotopy fixes them. The reversed order follows γ̄ then γ. Applying the same construction with γ̄ in place of γ contracts that composite to the constant γ̄(0)=y. Thus the two identity loops are at x and y respectively.
For paths γ,γ′ from x to y, write a loop based at y whose conjugation takes the γ-induced transport to the γ′-induced transport. Check its type and simplify the composite.
Show the answer and reasoning
The target loop k=[γ′]∘[γ]⁻¹ relates the two transports by T_{γ′}(b)=k∘T_γ(b)∘k⁻¹.
Write g=[γ]:x→y and g′=[γ′]:x→y. The composite k=g′∘g⁻¹ starts at y, passes through x, and ends at y. It is a loop class at the target y. The two transports on b:x→x are T_g(b)=g∘b∘g⁻¹ and T_{g′}(b)=g′∘b∘(g′)⁻¹. Since k∘g=g′, we have (g′)⁻¹=g⁻¹∘k⁻¹. Substitution gives T_{g′}(b)=(k∘g)∘b∘(g⁻¹∘k⁻¹)=k∘T_g(b)∘k⁻¹ by associativity. All arrows in the outer conjugation are endomorphisms at y. Both inverse equations follow from the groupoid law. In particular k⁻¹=g∘(g′)⁻¹ and the conjugation with k is an inner automorphism of the target fundamental group, giving the precise comparison.
For a graph on n isolated vertices, compute the image and kernel of the incidence map, H₀,H₁ and the relation to the count of connected components.
Show the answer and reasoning
The incidence has image and kernel zero. The n singleton components give H₀=k^n and H₁=0.
If there are n vertices and no edges, the edge space is zero, the vertex space is k^n and the incidence is the unique linear map from zero to k^n. Its image and kernel are both zero subspaces of their respective spaces. Every degree-zero chain is a cycle, since the next differential from degree zero is zero. Quotient by the zero incidence image gives H₀=k^n. In degree one both the cycle space and all its classes are zero, so H₁=0. Each vertex itself is an undirected component. The component count is therefore c=n, and augmentation sends the vertex basis bijectively to the component basis. The formulas v−c=n−n=0 and e−v+c=0−n+n=0 verify the incidence rank and cycle dimension directly. For n=0 all counts and spaces remain zero.
Write the required equations in degrees n and n+1 that carry cycles and boundaries to cycles and boundaries. Show that changing a representative by a boundary has no effect on its image class.
Show the answer and reasoning
The degree-n equation sends cycles to cycles. The degree-(n+1) equation sends boundaries to boundaries, allowing the map on classes.
For a degree-preserving chain map f:C→D, the relation in degree n is d_n^D f_n=f_{n−1}d_n^C. For z in the kernel of d_n^C, this gives d_n^D f_n(z)=0. Thus its image is a cycle of degree n. The relation in degree n+1 is d_{n+1}^D f_{n+1}=f_n d_{n+1}^C. If b=d_{n+1}^C u, then f_n(b)=d_{n+1}^D f_{n+1}(u) is a degree-n boundary. If a representative is changed to z′=z+b, its image changes by f_n(b), since f_n is additive. The previous equation shows that change is a boundary, so both images give the same quotient class. This verifies that [z]↦[f_n(z)] is a well-defined map from H_n(C) to H_n(D). Additivity follows by applying f_n to sums of chosen representatives and then taking their classes.
For C₁=C₀=k and d₁=id, give the map h₀ and set all other h to zero. Evaluate d h+h d in both nonzero degrees.
Show the answer and reasoning
Set h₀=id and all other components zero. In degrees zero and one the sum d h+h d equals the identity.
In the complex with k in degrees one and zero, the only nonzero differential is d₁=id from C₁ to C₀. Define h₀:C₀→C₁ to be the identity and each other h_n to be the zero map. For x in C₀, only the term d₁h₀(x) can be nonzero. It equals x. The term h_{−1}d₀(x) is zero because d₀ maps into the zero group. For y in C₁ the term d₂h₁(y) vanishes because C₂=0. The term h₀d₁(y) is y. Thus the same sum is the identity in degree one. In every other degree the identity is the unique zero map on a zero group and the formula holds there too. We have d h+h d=id throughout the complex, which is the stated contraction.
In a short exact sequence, suppose b′ and b both lift the same C-cycle. Show the difference of their connecting representatives is a boundary in A.
Show the answer and reasoning
Write b′−b=i(u). The connecting representatives differ by d_Au and induce the same class.
If b and b′ both project to the same cycle c∈C_n, then p_n(b′−b)=0. Exactness at B_n gives u∈A_n with b′−b=i_n(u), and injectivity of i_n makes u unique. Write the connecting representatives as a,a′∈A_{n−1} with i_{n−1}(a)=d^B_n b and i_{n−1}(a′)=d^B_n b′. These equations are possible because c is a cycle. Subtracting gives i_{n−1}(a′−a)=d^B_n(b′−b)=d^B_n i_n(u)=i_{n−1}d^A_n(u). By injectivity in degree n−1, a′−a=d^A_n(u). The difference is therefore an A-boundary and [a′]=[a] in H_{n−1}(A). The argument preserves the connecting value when changing a lift of the very same cycle.
For a cycle c in C with δ[c]=0, choose a lift b and adjust it to a cycle. Check the projection and the resulting membership in im p_*.
Show the answer and reasoning
If the representative a of δ[c] equals d_Au, then b−i(u) is a cycle projecting to c.
Let b∈B_n lift c∈Z_n(C), and write d_B b=i(a) with a∈Z_{n−1}(A). The condition δ[c]=0 means that there is u∈A_n with d_Au=a. Define b′=b−i(u). Applying p gives p(b′)=p(b)−p(i(u))=c since exactness implies p i=0. It is still a lift of the given cycle. Its boundary is d_B b−d_B i(u)=i(a)−i(d_Au)=0. Thus b′ is an actual cycle, by the chain-map equation for i. The induced homology map p_* sends [b′] to [c]. This proves [c] belongs to im p_*. Conversely, a cycle lift has zero boundary and hence gives zero connecting value by definition.
Over ℚ let d₁:ℚ²→ℚ be d₁(x,y)=x. Compute H₀,H₁,H⁰,H¹ and identify which original coordinate the dual homology isomorphism reads.
Show the answer and reasoning
Here H₀=H⁰=0 and H₁,H¹ are each one-dimensional. The duality pairs the second coordinate with its coefficient b.
The chain differential d₁:ℚ²→ℚ sends (x,y) to x. This is onto, so H₀=0. The kernel is {(0,y):y∈ℚ}, and there are no degree-two boundaries. Thus H₁ is the second-coordinate line. Use the usual coordinates for a 1-cochain, writing φ(x,y)=a x+b y. Precomposing a 0-cochain z↦c z with d₁ produces (x,y)↦c x. The cochain differential from degree zero to one identifies ℚ with the first-coordinate functional line. Therefore H⁰=0, and H¹ is the two-dimensional space of coefficient pairs (a,b) modulo the pairs (c,0). The quotient is a one-dimensional space with coordinate b. On the homology class represented by (0,y), φ has value b y. Thus the dual homology map reads exactly the second original coordinate, agreeing with the cochain quotient and giving the stated identification.
For the empty open and the empty cover, count compatible families and sections. Show how the same choice makes ordinary restrictions to the empty open agree.
Show the answer and reasoning
There is one empty compatible family, one empty section and one restriction to the empty open from each given section.
For the empty open, the only section of a function sheaf is the function with no domain points and therefore no values. It is continuous since every preimage is empty. The empty cover has no members and so a compatible family on it consists of no chosen sections. There is exactly one such family, the empty indexed family. The unique empty section restricts to that family, since there are no cover-member restrictions to impose. Thus it is the unique glue and the empty-cover axiom holds. Restricting any section on an ordinary nonempty open to the empty open gives the same empty function. Hence restrictions to empty intersections agree, consistent with both uniqueness statements.
Prescribe the constant-zero germ at x≤0 and constant-one germ at x>0 on the real line. Prove no global continuous function realizes the assignment.
Show the answer and reasoning
The germ at zero forces f to vanish in a neighbourhood containing positive points whose assigned value is one.
Realize the prescribed germs hypothetically by a continuous f:ℝ→ℝ. Germ equality at a point forces equality of point values. So f(x)=0 for x≤0 and f(x)=1 for x>0. In fact the prescribed germ at 0 is stronger than the point value: there must be an open neighbourhood U of 0 on which f is identically zero. Every real neighbourhood of 0 contains some positive y. At such a y the prescribed germ is the constant-one germ, so f(y)=1. This conflicts with the value zero forced on the neighbourhood. Consequently there is no section with those germs. The failure comes from incompatibility near 0 even though each individual assigned germ is represented by an actual continuous constant function.
For any arrow h:A→B, evaluate the induced natural transformation Hom(−,A)⇒Hom(−,B) at id_A, then prove that its value at a general f:X→A is determined.
Show the answer and reasoning
The identity component value is h. Naturality forces the X-component at f to be h∘f.
For h:A→B, the induced component at X takes f:X→A to h∘f:X→B. At A, applying the component to id_A gives h∘id_A=h. Suppose τ is any transformation taking that same value at id_A. For f:X→A, precomposition in the first presheaf sends id_A to f. Naturality forces τ_X(f) to equal precomposition of τ_A(id_A)=h by f in the target presheaf. This gives h∘f, with source X and target B. The equation recovers every value and therefore every component. The family defined by h is natural since precomposition along another arrow k:Y→X gives h∘f∘k through both routes.
For A=∅ and B a singleton, test whether a transformation X^A⇒X^B exists. For B=∅ and arbitrary A determine the count, including A=∅.
Show the answer and reasoning
For A empty and B a singleton there are zero transformations. When B is empty there is exactly one for every A.
If A=∅, for every X the set X^A is a singleton. If B has one element, X^B is in bijection with X. In particular at X=∅ it is empty. A transformation from X^A to X^B in that case would have to include a component from a singleton to the empty set. Such a function does not exist, so there are no transformations. If B=∅, each X^B is a singleton and every component X^A→X^B is the unique function to it. For an arrow X→Y both naturality routes are functions from X^A into the same singleton and hence agree. This gives exactly one transformation for arbitrary A when B=∅, including A=∅. These counts also equal the counts of functions B→A in all the stated cases.
Suppose the map from the first k to the second k is zero in one diagram and the identity in another. Show commutativity rules out an isomorphism with either nonzero component choice.
Show the answer and reasoning
The zero-to-identity square forces its first component to vanish. The reverse square forces its second component to vanish.
Call the zero-arrow diagram Z and the identity-arrow diagram I, both with k at positions 0 and 1. A proposed isomorphism Z⇒I has invertible linear components f₀,f₁. The naturality square for the ordering arrow would read f₁∘0=id_k∘f₀. Its left side is zero and its right side is f₀, so it forces f₀=0. For the reverse direction I⇒Z, the square instead reads f₁∘id_k=0∘f₀, forcing f₁=0. In a one-dimensional space over a field a nonzero component is required for invertibility. In either direction the square violates component invertibility. The ranks of the two arrow maps are zero and one, and the equality required by the square would preserve rank.
In 𝔽₂² take a nonzero vector v and choose an independent w. Construct an automorphism moving v and compute its action twice, then apply it to the proposed natural selection.
Show the answer and reasoning
The map S(v)=v+w, S(w)=w satisfies S²=id in characteristic two and moves the chosen v.
Choose w linearly independent of v in 𝔽₂². Define S on the basis by S(v)=v+w and S(w)=w, then extend linearly. Applying S twice to v gives S(v+w)=v+w+w=v since w+w=0 in characteristic two. Applying S twice to w gives w. Thus S²=id and S is invertible. The value v+w is distinct from v because w≠0. Hence S fails to fix the proposed nonzero selected vector v even though it is an automorphism. A natural selection has to be carried to itself by this automorphism of the same space. The computed value violates that condition. The reasoning works for every nonzero v by choosing the independent w accordingly.
Use tree edges a:0→1,b:1→2 and additional edges c:0→2,d:0→1. Compute the two signed fundamental cycles and express 2c−3d+a−2b in this basis.
Show the answer and reasoning
With z_c=c−a−b and z_d=d−a, the input is 2z_c−3z_d.
The tree path from 2 to 0 traverses b and then a against their orientations. Thus z_c=c−b−a is the fundamental cycle for c:0→2. The tree path from 1 to 0 traverses a backwards, so z_d=d−a for the parallel edge d. The boundary equations ∂c=∂a+∂b and ∂d=∂a show that both cycles have zero boundary. Their coefficients on the two extra edges c,d are respectively (1,0) and (0,1). The given chain has extra-edge coefficients 2 and −3. The basis expression with these coefficients is 2z_c−3z_d=2(c−b−a)−3(d−a)=2c−3d+a−2b. This is exactly the input chain, so it is a cycle. Its extra-edge coordinates make the representation unique, and the calculation retains the signs of the traversed tree edges.
For the faces ordered increasingly, evaluate the boundary of [123]−[023]+[013]−[012] and give the reason this cycle survives in H₂ of the boundary but becomes zero after including the solid three-simplex.
Show the answer and reasoning
The signed edge terms cancel. The nonzero face cycle survives until the solid simplex supplies it as a boundary.
By the increasing-vertex boundary signs, the four face boundaries in order [123],[023],[013],[012] are [23]−[13]+[12], [23]−[03]+[02], [13]−[03]+[01], and [12]−[02]+[01]. Forming the signed combination of these boundaries with signs +,−,+,− cancels each edge coefficient with one opposite coefficient. Thus z=[123]−[023]+[013]−[012] has d₂(z)=0. The chain z is nonzero because [123] has coefficient 1 in the face basis. The boundary complex has no degree-three cells, so its boundary space in degree two is zero and the class of z survives. After adding the oriented solid simplex [0123], its degree-three boundary is obtained by deleting one vertex at a time with alternating signs. This is exactly z, which then represents zero in H₂ of the filled complex.
What to carry forward
- A directed graph map is determined by its vertex and edge maps together with endpoint preservation.
- A homotopy of continuous maps gives natural comparison paths between their fundamental groupoid functors.
- A chain map induces a map of cycle classes. A chain homotopy changes cycle images by boundaries.
- The connecting map takes the boundary of a lift and lowers the degree by one.
- Germs determine a global section of a sheaf when it exists. Compatible nearby sections supply existence.
- A transformation from a representable is determined by its value at the represented identity.
- When a face is added, the exact cycle it bounds may become zero in homology.
- Two diagrams with the same object dimensions can have comparing arrows of different ranks.
References
Sources for the concepts and teaching approaches in this article.
- Graphs as diagrams of vertices, edges and endpointsBrendan Fong and David I. SpivakPrimary
- Oriented chain groups and the homology quotientAfra Zomorodian and Gunnar CarlssonPrimary · PDF
The Stacks Project Authors4 sources
- Universal elements and full faithfulness of YonedaTom LeinsterPrimary
- Integral cycles and the signed incidence kernelAnton Dochtermann, Eli Meyers, Raghav Samavedam and Alex YiPrimary
- Natural comparison of functors by invertible point componentsRonald BrownPrimary · PDF