Venn and Euler type diagrams for vector spaces and abelian groups
What's new 2021-11-08
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).
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
where we have omitted the arrows for brevity.
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.
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.