A popular way to visualise relationships between some finite number of sets is via Venn diagrams, or more generally Euler diagrams. In these diagrams, a set is depicted as a two-dimensional shape such as a disk or a rectangle, and the various Boolean relationships between these sets (e.g., that one set is contained in another, or that the intersection of two of the sets is equal to a third) is represented by the Boolean algebra of these shapes; Venn diagrams correspond to the case where the sets are in “general position” in the sense that all non-trivial Boolean combinations of the sets are non-empty. For instance to depict the general situation of two sets together with their intersection
and
one might use a Venn diagram such as
(where we have given each region depicted a different color, and moved the edges of each region a little away from each other in order to make them all visible separately), but if one wanted to instead depict a situation in which the intersection was empty, one could use an Euler diagram such as
One can use the area of various regions in a Venn or Euler diagram as a heuristic proxy for the cardinality (or measure
) of the set
corresponding to such a region. For instance, the above Venn diagram can be used to intuitively justify the inclusion-exclusion formula
While Venn and Euler diagrams are traditionally two-dimensional in nature, there is nothing preventing one from using one-dimensional diagrams such as
or even three-dimensional diagrams such as this one from Wikipedia:
Of course, in such cases one would use length or volume as a heuristic proxy for cardinality or measure, rather than area.
With the addition of arrows, Venn and Euler diagrams can also accommodate (to some extent) functions between sets. Here for instance is a depiction of a function , the image
of that function, and the image
of some subset
of
:
Here one can illustrate surjectivity of by having
fill out all of
; one can similarly illustrate injectivity of
by giving
exactly the same shape (or at least the same area) as
. So here for instance might be how one would illustrate an injective function
:
Cartesian product operations can be incorporated into these diagrams by appropriate combinations of one-dimensional and two-dimensional diagrams. Here for instance is a diagram that illustrates the identity :
In this blog post I would like to propose a similar family of diagrams to illustrate relationships between vector spaces (over a fixed base field , such as the reals) or abelian groups, rather than sets. The categories of (
-)vector spaces and abelian groups are quite similar in many ways; the former consists of modules over a base field
, while the latter consists of modules over the integers
; also, both categories are basic examples of abelian categories. The notion of a dimension in a vector space is analogous in many ways to that of cardinality of a set; see this previous post for an instance of this analogy (in the context of Shannon entropy). (UPDATE: I have learned that an essentially identical notation has also been proposed in an unpublished manuscript of Ravi Vakil.)
As with Venn and Euler diagrams, the diagrams I propose for vector spaces (or abelian groups) can be set up in any dimension. For simplicity, let’s begin with one dimension, and restrict attention to vector spaces (the situation for abelian groups is basically identical). In this one-dimensional model we will be able to depict the following relations and operations between vector spaces:
- The inclusion
of one vector space
in another
(here I prefer to use the group notation
for inclusion rather than the set notation
).
- The quotient
of a vector space
by a subspace
.
- A linear transformation
between vector spaces, as well as the kernel
, image
, cokernel
, and the coimage
.
- A single short or long exact sequence between vector spaces.
- (A heuristic proxy for) the dimension of a vector space.
- Direct sum
of two spaces.
The idea is to use half-open intervals in the real line for any
to model vector spaces. In fact we can make an explicit correspondence: let us identify each half-open interval
with the (infinite-dimensional) vector space
Note that if then the vector space
is a subspace of
, if we extend the functions in both spaces by zero to the half-line
; furthermore, the quotient of
by
is naturally identifiable with
. Thus, an inclusion
, as well as the quotient space
, can be modeled here as follows:
In contrast, if , it is significantly less “natural” to view
as a subspace of
; one could do it by extending functions in
to the right by zero and to the left by constants, but in this notational convention one should view such an identification as “artificial” and to be avoided.
All of the spaces are infinite dimensional, but morally speaking the dimension of the vector space
is “proportional” to the length
of the corresponding interval. Intuitively, if we try to discretise this vector space by sampling at some mesh of spacing
, one gets a finite-dimensional vector space of dimension roughly
. Already the above diagram now depicts the basic identity
Note that if , then there is a linear transformation
from the vector space
to the vector space
which takes a function
in
, restricts it to
, then extends it by zero to
. The kernel of this transformation is
, the image is (isomorphic to)
, the cokernel is (isomorphic to)
, and the coimage is (isomorphic to)
. With this in mind, we can now depict a general linear transformation
and its associated spaces by the following diagram:
Note how the first isomorphism theorem and the rank-nullity theorem are heuristically illustrated by this diagram. One can specialise to the case of injective, surjective, or bijective transformations by degenerating one or more of the half-open intervals in the above diagram to the empty interval. A left shift on
gives rise to a nilpotent linear transformation
from
to itself:
In a similar spirit, a short exact sequence of vector spaces (or abelian groups) can now be depicted by the diagram
and a long exact sequence can similarly be depicted by the diagram
UPDATE: As I have learned from an unpublished manuscript of Ravi Vakil, this notation can also easily depict the cohomology groups of a cochain complex
by the diagram
and similarly depict the homology groups of a chain complex
by the diagram
One can associate the disjoint union of half-open intervals to the direct sum of the associated vector spaces, giving a way to depict direct sums via this notation:
To increase the expressiveness of this notation we now move to two dimensions, where we can also depict the following additional relations and operations:
- The intersection
and sum
of two subspaces
of an ambient space
;
- Multiple short or long exact sequences;
- The tensor product
of two vector spaces
.
Here, we replace half-open intervals by half-open sets: geometric shapes , such as polygons or disks, which contain some portion of the boundary (drawn using solid lines) but omit some other portion of the boundary (drawn with dashed lines). Each such shape can be associated with a vector space, namely the continuous functions on
that vanish on the omitted portion of the boundary. All of the relations that were previously depicted using one-dimensional diagrams can now be similarly depicted using two-dimensional diagrams. For instance, here is a two-dimensional depiction of a vector space
, a subspace
, and its quotient
:
(In this post I will try to consistently make the lower and left boundaries of these regions closed, and the upper and right boundaries open, although this is not essential for this notation to be applicable.)
But now we can depict some additional relations. Here for instance is one way to depict the intersection and sum
of two subspaces
:
Note how this illustrates the identity
Two finite subgroups of an abelian group
are said to be commensurable if
is a finite index subgroup of
. One can depict this by making the area of the region between
and
small and/or colored with some specific color:
Here the commensurability of is equivalent to the finiteness of the groups
and
, which correspond to the gray triangles in the above diagram. Now for instance it becomes intuitively clear why commensurability should be an equivalence relation.
To illustrate how this notation can support multiple short exact sequences, I gave myself the exercise of using this notation to depict the snake lemma, as labeled by this following diagram taken from the just linked Wikipedia page:
This turned out to be remarkably tricky to accomplish without introducing degeneracies (e.g., one of the kernels or cokernels vanishing). Here is one solution I came up with; perhaps there are more elegant ones. In particular, there should be a depiction that more explicitly captures the duality symmetry of the snake diagram.
Here, the maps between the six spaces are the obvious restriction maps (and one can visually verify that the two squares in the snake diagram actually commute). Each of the kernel and cokernel spaces of the three vertical restriction maps
are then associated to the union of two of the subregions as indicated in the diagram. Note how the overlaps between these kernels and cokernels generate the long exact “snake”.
UPDATE: by modifying a similar diagram in an unpublished manuscript of Ravi Vakil, I can now produce a more symmetric version of the above diagram, again with a very visible “snake”:
With our notation, the (algebraic) tensor product of an interval and another interval
is not quite
, but this becomes true if one uses the
-algebra version of the tensor product, thanks to the Stone-Weierstrass theorem. So one can plausibly use Cartesian products as a proxy for the vector space tensor product. For instance, here is a depiction of the relation
when
is a subspace of
:
There are unfortunately some limitations to this notation: for instance, no matter how many dimensions one uses for one’s diagrams, these diagrams would suggest the incorrect identity
(which incidentally is, at this time of writing, the highest-voted answer to the MathOverflow question “Examples of common false beliefs in mathematics“). (See also this previous blog post for a similar phenomenon when using sets or vector spaces to model entropy of information variables.) Nevertheless it seems accurate enough to be of use in illustrating many common relations between vector spaces and abelian groups. With appropriate grains of salt it might also be usable for further categories beyond these two, though for non-abelian categories one should proceed with caution, as the diagram may suggest relations that are not actually true in this category. For instance, in the category of topological groups one might use the diagram
to describe the fact that an arbitrary topological group splits into a connected subgroup and a totally disconnected quotient, or in the category of finite-dimensional Lie algebras over the reals one might use the diagram
to describe the fact that such algebras split into the solvable radical and a semisimple quotient.
27 comments
Comments feed for this article
7 November, 2021 at 8:26 pm
Yitzi Litt
Your use of that 3-dimensional diagram from Wikipedia got me thinking—I don’t know if it would be the most effective use of your time, but do you ever contribute to math articles on Wikipedia? They tend to be the first results people find when doing online research, and a lot of work could be done in improving the quality of higher-level math articles there.
8 November, 2021 at 5:39 pm
Anonymous
Ask you students to do it. It is a good way to learn to communicate math.
3 December, 2021 at 7:26 pm
Anonymous
I’ll tell my students to work on that!
7 November, 2021 at 9:26 pm
Rex
It seems the image just after “Thus, an inclusion {W \leq V}, as well as the quotient space {V/W}, can be modeled here as follows:” is not visible.
[Corrected, thanks – T.]
7 November, 2021 at 11:15 pm
saber abdsamad
Thank you a million
8 November, 2021 at 3:43 am
Rex
It seems the key point here is that sums and quotients in an abelian category share certain similarities with Boolean operations, which is why these Booleon visual representations can capture some aspects of their behavior.
But the visualizations go wrong when these similarities end. Indeed, the reason why

, as pointed out on MathOverflow. Here the analogy between sums and unions breaks down, as the identity
does hold.
fails is because
8 November, 2021 at 4:16 am
Rex
(I meant to say that quotients are analogous to taking complements, not intersections)
8 November, 2021 at 6:09 am
Anonymous
This is the distributive law (where union is interpreted as addition and intersection is interpreted as multiplication) – this is illustrated also by a probability measure over its measurable sets.
8 November, 2021 at 4:17 am
Mµvh 773
Thanks for this article. I think it’s a good thing to take some time to think about the elementary concepts to better understand them. Notations, terminology and visual representations are really important for this purpose.
Furthermore, at the end of the list of what the one-dimensional model can represent, there is a tensor product symbol instead of a direct sum.
Moreover, there seem to be two missing images, replaced by textual placeholders. (Maybe it’s a bug from my browser.)
– Right after “For instance, here is a two-dimensional depiction of a vector space…”, there is a placeholder “coker-2D”.
– In place of the snake lemma diagram from Wikipedia, there is a placeholder “snake”.
[Corrected, thanks – T.]
8 November, 2021 at 4:33 am
Anonymous
is it suitable to the structure of ORF?
8 November, 2021 at 5:13 am
Rajan Anantharaman
Thanks
8 November, 2021 at 7:11 am
allenknutson
The limitations/false belief you mention made me think of a basic problem in algebraic geometry. In algebra (say, of ideals in rings) one faces a lattice of linear subspaces whereas in geometry (say, of algebraic subsets of C^n) one faces a lattice of subsets. It’s impossible on the face of things to set up a genuine correspondence between these concepts because the latter is a distributive lattice, whereas the former is only a modular lattice.
One can fix this by restricting from all ideals to radical ideals, which is a subposet that isn’t a sublattice (the join operation is different — I join J is not I+J but sqrt{I+J}), and then things work out thanks to the Nullstellensatz.
Anyway I think you have the same issue here, that it’s hard to model the non-distributive lattice of linear subspaces using the distributive lattice of subsets of the plane (your pictures).
8 November, 2021 at 7:12 am
allenknutson
Oops, not too different from what Rex points out.
8 November, 2021 at 8:35 am
Daniel Herkes
Thank you so much for this article. I found it illuminating, indeed.
8 November, 2021 at 11:28 am
Anonymous
Both cardinality and dimension can be interpreted as quantitative complexity measures for their corresponding mathematical structures.
8 November, 2021 at 5:16 pm
Edgawliet
Such a good and well-written article, this make me re-consider basic concepts. Thanks for sharing.
8 November, 2021 at 11:16 pm
Terrence Tao: Venne & Euler Type Diagrams for Vector Spaces and Abelian Groups | Math Online Tom Circle
[…] https://terrytao.wordpress.com/2021/11/07/venn-and-euler-type-diagrams-for-vector-spaces-and-abelian… […]
9 November, 2021 at 2:00 am
Aditya Guha Roy
Reblogged this on Aditya Guha Roy's weblog.
9 November, 2021 at 8:54 am
DT
You could formalize some aspect of your diagrams with sheaf theory. To each domain U in R^n, with some dashed parts on the boundary, you can consider the sheaf of continuous functions on U-closure that vanish on the dashed parts. Similar to your story, there’s an interesting homomorphism (sheaf of [a,b)) –> (sheaf of [c,d)) exactly when a < c < b < d.
New sheaves can be built from old ones by taking direct sums, kernels and cokernels. The more complicated diagrams in the post might match sheaves of this form. If at the start "continuous functions" are replaced by "locally constant functions," the things built this way are called "constructible sheaves."
10 November, 2021 at 1:36 am
Venn Vectors? – The nth Root
[…] A popular way to visualise relationships between some finite number of sets is via Venn diagrams, or more generally Euler diagrams. In these diagrams, a set is depicted as a two-dimensional shape such as a disk or a rectangle, and the various Boolean relationships between these sets (e.g., that one set is contained in another, or that the intersection of two of the sets is equal to a third) is represented by the Boolean algebra of these shapes; Venn diagrams correspond to the case where the sets are in “general position” in the sense that all non-trivial Boolean combinations of the sets are non-empty. For instance to depict the general situation of two sets together with their intersection and one might use a Venn diagram such as … (What’s new / Terry Tao) […]
10 November, 2021 at 8:43 am
Daniel Grieser
This kind of representation is also useful in the theory of Fredholm operators. I have used it in an index theory class to give a direct (and still intelligible) proof that the composition of Fredholm operators is Fredholm, and that the indices add up.
(To make it more analogous to the standard way or representing maps I drew the intervals vertically, not horizontally.)
10 November, 2021 at 9:06 am
Anonymous
Such concise representation may help also (perhaps after some generalization) to discover new structural patterns and relations among general mathematical structures.
14 November, 2021 at 5:52 pm
Terence Tao
Update: the unpublished manuscript of Ravi Vakil mentioned in the post is now available online at https://www.3blue1brown.com/blog/exact-sequence-picturebook
15 November, 2021 at 12:12 am
Just curious
Great minds think perhaps alike.
24 November, 2021 at 11:04 am
Francyelle Almeida
Follow the Flow: sets, relations, and categories as
special cases of functions with no domain. https://arxiv.org/pdf/1912.00801.pdf
9 December, 2021 at 7:33 am
Francesco Minnocci
Just a note: it looks like you switched `H_3` and `H_2` in the example diagram depicting the Homology groups of a chain complex.
[Corrected, thanks – T.]
2 January, 2022 at 6:40 am
Xinwen Liu
In his 1935 textbook LOGIC (in Chinese) Jin Yuelin (1895-1984) uses a kind of dashed Venn type diagrams to formulate the distribution laws in calculus of classes. https://link.springer.com/chapter/10.1007/978-3-030-86062-2_26