Algorithm or theory of diagram chasing - MathOverflow most recent 30 from http://mathoverflow.net 2013-05-23T22:57:32Z http://mathoverflow.net/feeds/question/9930 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://mathoverflow.net/questions/9930/algorithm-or-theory-of-diagram-chasing Algorithm or theory of diagram chasing Greg Kuperberg 2009-12-28T02:34:26Z 2010-06-24T15:01:35Z <p>One of the standard parts of homological algebra is "diagram chasing", or equivalent arguments with universal properties in abelian categories. Is there a rigorous theory of diagram chasing, and ideally also an algorithm?</p> <p>To be precise about what I mean, a diagram is a directed graph $D$ whose vertices are labeled by objects in an abelian category, and whose arrows are labeled by morphisms. The diagram might have various triangles, and we can require that certain triangles commute or anticommute. We can require that certain arrows vanish, which can be used to ask that certain compositions vanish. We can require that certain compositions are exact. Maybe some of the arrows are sums or direct sums of other arrows, and maybe some of the vertices are projective or injective objects. Then a diagram "lemma" is a construction of another diagram $D'$, with some new objects and arrows constructed from those of $D$, or at least some new restrictions.</p> <p>As described so far, the diagram $D$ can express a functor from any category $\mathcal{C}$ to the abelian category $\mathcal{A}$. This looks too general for a reasonable algorithm. So let's take the case that $D$ is acyclic and finite. This is still too general to yield a complete classification of diagram structures, since acyclic diagrams include all acyclic quivers, and some of these have a "wild" representation theory. (For example, three arrows from $A$ to $B$ are a wild quiver. The representations of this quiver are not tractable, even working over a field.) In this case, I'm not asking for a full classification, only in a restricted algebraic theory that captures what is taught as diagram chasing.</p> <p>Maybe the properties of a diagram that I listed in the second paragraph already yield a wild theory. It's fine to ditch some of them as necessary to have a tractable answer. Or to restrict to the category $\textbf{Vect}(k)$ if necessary, although I am interested in greater generality than that.</p> <p>To make an analogy, there is a theory of Lie bracket words. There is an algorithm related to <a href="http://en.wikipedia.org/wiki/Lyndon%5Fword" rel="nofollow">Lyndon words</a> that tells you when two sums of Lie bracket words are formally equal via the Jacobi identity. This is a satisfactory answer, even though it is not a classification of actual Lie algebras. In the case of commutative diagrams, I don't know a reasonable set of axioms &mdash; maybe they are related to triangulated categories &mdash; much less an algorithm to characterize their formal implications.</p> <p>(This question was inspired by a mathoverflow question about <a href="http://mathoverflow.net/questions/6749/" rel="nofollow">George Bergman's salamander lemma</a>.)</p> <p><hr /></p> <p>David's reference is interesting and it could be a part of what I had in mind with my question, but it is not the main part. My thinking is that diagram chasing is boring, and that ideally there would be an algorithm to obtain all finite diagram chasing arguments, at least in the acyclic case. Here is a simplification of the question that is entirely rigorous.</p> <p>Suppose that the diagram $D$ is finite and acyclic and that all pairs of paths commute, so that it is equivalent to a functor from a finite <a href="http://en.wikipedia.org/wiki/Partially%5Fordered%5Fset#In%5Fcategory%5Ftheory" rel="nofollow">poset category</a> $\mathcal{P}$ to the abelian category $\mathcal{A}$. Suppose that the only other decorations of $D$ are that: (1) certain arrows are the zero morphism, (2) certain vertices are the zero object, and (3) certain composable pairs of arrows are exact. (Actually condition 2 can be forced by conditions 1 and 3.) Then is there an algorithm to determine all pairs of arrows that are forced to be exact? Can it be done in polynomial time?</p> <p>This rigorous simplification does not consider many of the possible features of lemmas in homological algebra. Nothing is said about projective or injective objects, taking kernels and cokernels, taking direct sums of objects and morphisms (or more generally finite limits and colimits), or making connecting morphisms. For example, it does not include the <a href="http://en.wikipedia.org/wiki/Snake%5Flemma" rel="nofollow">snake lemma</a>. It also does not include diagrams in which only some pairs of paths commute. But it is enough to express the monomorphism and epimorphism conditions, so it includes for instance the <a href="http://en.wikipedia.org/wiki/Five%5Flemma" rel="nofollow">five lemma</a>.</p> http://mathoverflow.net/questions/9930/algorithm-or-theory-of-diagram-chasing/10057#10057 Answer by David Speyer for Algorithm or theory of diagram chasing David Speyer 2009-12-29T19:40:17Z 2009-12-29T19:40:17Z <p>I'm not sure this is what you are looking for, but if you look at Gelfand and Manin's <em>Methods of Homological Algebra</em>, the end of Section II.5, they make the following definition:</p> <p>Let $Y$ be an object of an abelian category. An <em>element</em> of $Y$ is a pair $(X,h)$, with $h: X \to Y$, modulo the equivalence relation that $(X,h) \sim (X',h')$ if we can complete the square</p> <p><code>$$\begin{matrix} Z &amp; \to &amp; X' \\ \downarrow &amp; &amp; \downarrow \\ X &amp; \to &amp; Y \end{matrix}$$</code></p> <p>so that the maps $Z \to X$ and $Z \to X'$ are surjective.</p> <p>The map sending an object $Y$ to its elements, $E(Y)$, is clearly a functor from our Abelian category to PointedSetsWithAnInvolution, where the labelled point of $E(Y)$ is the zero map $0 \to Y$ and the involution is $(X,h) \mapsto (X,-h)$. (It seems to me that $(X,h)$ and $(X,-h)$ are always equivalent, but G+M sometimes use notation which seems to distinguish the elements $e$ and $-e$, so I am following them.) Gelfand and Manin state as exercises:</p> <ul> <li>A map $f: Y_1 \to Y_2$ is a monomorphism iff $E(f)^{-1}(0) =0$ iff $E(f)$ is injective.</li> <li>A map $f: Y_1 \to Y_2$ is a epimorphism iff $E(f)$ is surjective.</li> <li>A map $f: Y_1 \to Y_2$ is zero iff $E(f)$ is zero.</li> <li>A sequence $Y_1 \to Y_2 \to Y_3$ is exact iff, for $e \in E(Y_2)$, the element $e$ is taken to the element $0 \in E(Y_3)$ if and only if it is in the image of $E(Y_1)$.</li> <li>If $y_1$ and $y_2 \in E(Y)$ then there is an element $z \in E(Y)$ such that, for any $f: Y \to Y'$ with $f(y_i)=0$, we have $f(z)=(-1)^i f(y_{1-i})$. Moreover, if $g: Y \to X$ is any map such that $g(y_1) = g(y_{2})$, we can take $z$ such that $g(z)=0$. (So $z$ acts like $y-y'$. Note that there is not claimed to be a unique $z$ which works.)</li> </ul> <p>G and M then give several examples to demonstrate that most diagram chasing arguments can be rewrittten using the $E$ construction.</p> http://mathoverflow.net/questions/9930/algorithm-or-theory-of-diagram-chasing/10109#10109 Answer by Harrison Brown for Algorithm or theory of diagram chasing Harrison Brown 2009-12-30T08:13:45Z 2009-12-30T08:13:45Z <p>This was originally going to be a rather different post, but I realized that my argument could perhaps be adapted into an (ineffective) algorithm, if it's possible to patch up the hole. At the very least, I should say some things which might be obvious but wasn't to me until I saw it, and so might not be obvious to someone else either.</p> <p>Let's fix the abelian category to be the category of finite-dimensional vector spaces over GF(2). We have a decorated diagram of the type Greg describes. Then it's easy to see that the <em>non</em>-exactness of two composable arrows is in RE -- we can have a prover just give us a counterexample, and since everything's finite-dimensional, we're good. So the "diagram chasing decision problem" is in coRE.</p> <p>If we could effectively bound the dimensions of the vector spaces in a counterexample, of course, we'd have that the problem was recursive. At least for finite-dimensional vector spaces over a finite field. But I don't know how this is possible. My question, though: is it possible to get around the need for an effective bound somehow? I think you can get a complexity-theoretic improvement by letting the prover compute everything as a black box and "checking for honesty" on logarithmic-sized subspaces, but I might be misremembering. Is there some extraordinarily clever way to do something like this for computability? (I'm thinking about results like the necklace reconstruction problem, or problem B6 on this year's Putnam exam, although in both of those cases the "uniform bound" hides a lot of information that doesn't seem to have anyplace to go in this scenario...)</p> <p>Actually, I guess really the only scenario to worry about would be if the dimensions in the smallest counterexample to exactness of some pair grew faster than any computable function of the size of the diagram, right? Otherwise we have that the problem is in co-NSPACE(BigFunction(n)), and so it's in NSPACE(BigFunction(n)). That kind of growth rate seems implausible, but again I have no idea how to prove it's impossible.</p> http://mathoverflow.net/questions/9930/algorithm-or-theory-of-diagram-chasing/28956#28956 Answer by Daniel Litt for Algorithm or theory of diagram chasing Daniel Litt 2010-06-21T14:03:43Z 2010-06-24T13:33:38Z <p>Here's an attempt, assuming the target category is finite dimensional vector spaces and the diagram is finite acyclic.</p> <p>1) Fill in the diagram so it's triangulated (that is, add the compositions of all arrows). Add kernels and cokernels to every arrow in the diagram. Add the natural arrows between these new objects (e.g. the kernel of $f$ maps into the kernel of $g\circ f$). Iterate this process until it terminates (which it does, as there are finitely many arrows, and thus only finitely many subquotients of objects they induce).</p> <p>2) In this new diagram, tabulate all exact paths. (This step seems to me to have high time and space complexity, unfortunately.) By exact path, I mean an infinite long exact sequence, for which all but finitely many objects are zero.</p> <p>3) Given an exact path $$0\to A_1\to \cdots \to A_i\to \cdots \to A_n\to 0$$ write the equation $$\sum_{i=1}^n (-1)^i \dim~ A_i=0.$$</p> <p>4) Solve the resulting linear system for the $\dim~ A_i$'s.</p> <p>Since we've added kernels and cokernels, solving the system tells us about injectivity and surjectivity of all the arrows. Furthermore, as far as I can tell any (non-negative) solution to this linear system is realizable as a diagram, so this algorithm gives us any information we could get by diagram chasing.</p> <hr> <p>Greg has given a good summary of this method in his answer below--he takes me to task about my assertion that any non-negative integer solution to this linear system is realizable, so I will sketch an argument (again requiring the diagram to be finite acyclic). We also assume the diagram is "complete" in the sense that step 1) has been completed.</p> <p>Partially order the objects in the diagram by saying $A\leq B$ iff $A$ is a subquotient of $B$; inductively, this is the same as saying that $B\leq B$ and $A\leq B$ if there exists $C\leq B$ such that $A$ injects into $C$ or $C$ surjects onto $A$ in this diagram. We identify isomorphic objects; this is a poset by acyclicity. We proceed by induction on the number of objects in the diagram. The one-object diagram is easy, so we do the induction step.</p> <p>By finiteness the diagram contains a longest chain; choose such a chain and consider its minimal element $X$. All maps into or out of $X$ are surjections or injections, respectively, so split $X$ off of every object that maps onto it or that it maps into as a direct summand. The diagram with $X$ removed gives the induction step.</p> http://mathoverflow.net/questions/9930/algorithm-or-theory-of-diagram-chasing/29291#29291 Answer by Greg Kuperberg for Algorithm or theory of diagram chasing Greg Kuperberg 2010-06-23T22:48:24Z 2010-06-24T15:01:35Z <p>This answer is a response to Daniel Litt's answer above. First, let me distill his point. Given a diagram of finite-dimensional vector spaces, every term $A$ has a dimension which is a non-negative integer. In addition, every morphism $f:A \to B$ has a non-negative rank which is at most $\min(\dim A,\dim B)$. If a pair of morphisms $$A \stackrel{f}{\longrightarrow} B \stackrel{g}{\longrightarrow} C,$$ then you get a linear relation $$\mathrm{rank}\ f + \mathrm{rank}\ g = \dim B.$$ Thus, there is an integer programming problem to express whether the dimensions and ranks are feasible. Since such an integer programming problem is homogeneous, you can instead treat it as a rational linear programming problem and later clear denominators. There is an algorithm to determine feasibility, even a polynomial time algorithm. As Daniel points out, this is enough to establish the <a href="http://en.wikipedia.org/wiki/Nine_lemma" rel="nofollow">nine lemma</a> in the special case of finite-dimensional vector spaces. The argument/algorithm even works in many categories other than finite-dimensional vector spaces. For instance it works for finite abelian groups. On the other hand, the algorithm doesn't use the fact that any polygons in the diagram commute (see below), other than perhaps a preprocessing stage in which commutative polygons are filled in by commutative triangles.</p> <p>Like me, Daniel asked to restrict to acyclic diagrams. However, I realized that this restriction is ineffectual for my entire question. (Thus, his algorithm can't need it.) You can convert any diagram into an acyclic one using the fact that $$0 \longrightarrow A \stackrel{\phi}{\longrightarrow} A' \longrightarrow 0$$ makes $\phi$ into an isomorphism. If $\mathcal{D}$ is a diagram, you should first triangulate all commutative polygons in to make commutative triangles. Then make three copies $A, A', A''$ of each object $A \in \mathcal{D}$ together with isomorphisms $$A \stackrel{\phi}{\longrightarrow} A' \stackrel{\phi'}{\longrightarrow} A'.$$ Then a homomorphism $f:A \to B$ in $\mathcal{D}$ can be expressed acyclically as this commutative square: <code>$$\begin{matrix} A &amp; \stackrel{f}{\longrightarrow} &amp; B' \\ \downarrow &amp;&amp; \downarrow \\ A' &amp; \stackrel{f'}{\longrightarrow} &amp; B'' \end{matrix}$$</code> Finally, a commutative triangle $h = f \circ g$ can be expressed as a commutative square $h' \circ \phi = f' \circ g$. Or if $f$ and $g$ are an exact pair, you can require that $f'$ and $g$ make an exact pair.</p> <p>Daniel also says without explanation that if there is a solution to the dimension and rank equations, then there are ways to fill in all of the maps. But without a lot more work, I don't think that this inference is reasonable. The hard part is satisfying commutative triangles. It is certainly not true that there is simply a canonical choice for each map using a skeleton <code>$\{k^n\}$</code> of the category of finite-dimensional vector spaces. Because, if $f$ and $g$ each have some rank, then their composition $f \circ g$ might also have some desired rank, and that rank depends on the choices of $f$ and $g$. One interesting remark here is that $$\mathrm{rank}\ f \circ g \le \min(\mathrm{rank}\ f,\mathrm{rank}\ g),$$ and there is a similar inequality on the other side. However, I think that there is more going on than that.</p> <p>Finally, it is worth giving a simple example to show that feasibility in finite-dimensional vector spaces is not the same as feasibility in vector spaces. Given the exact sequence $$0 \longrightarrow A \longrightarrow A \longrightarrow A \longrightarrow 0,$$ you can conclude (using the dimension equations that Daniel suggests) that $A = 0$ if it is finite-dimensional. But if it is infinite-dimensional, then there are non-trivial solutions.</p>