You're reading the public-facing archive of the Category Theory Zulip server.
To join the server you need an invite. Anybody can get an invite by contacting Matteo Capucci at name dot surname at gmail dot com.
For all things related to this archive refer to the same person.
Hi, for some project (unrelated to CT), I am studying real matrices which satisfy
They look like laplacian matrices, the difference being that the third condition is an inequality instead of an equality. So I'm calling them super-laplacian matrices.
A laplacian matrix is the matrix representation of the laplacian operator associated with a weighted graph. The vertices of the graph index the rows (and columns) of , and there is an edge between two distinct vertices whenever , the weight of this edge being . The quantity is equal to the sum of weights of all edges incident to .
I think we can also interpret a super-laplacian matrix as a laplacian operator associated with some "open graph". Roughly speaking, such an open graph is a graph where some vertices are marked as "exterior" (the remaining vertices being "interior"). The interior vertices index the rows (and columns) of . The difference , where runs over interior vertices, accounts for the sum of weights of "boundary edges" connecting to exterior vertices.
I came up with a more formal definition, but, given the ACT literature about open systems, I wonder if this has been studied already.
I don't understand one key sentence in your description. I'd hope that we have
for all interior vertices .
Anyway, I haven't seen this idea. It - or something similar, I haven't thought about it enough yet - looks very interesting. The spectral analysis of open graph Laplacians should be very cool if done right.
The fact that I haven't seen it doesn't mean very much, though! If it appeared in the structured cospan literature I should have seen it, but if it appeared in the graph theory literature I would never have seen it.
I think by "interior vertices" was meant all the vertices corresponding to rows and columns of the matrix and "exterior vertices" was meant to refer to the notional vertices connected to the "unattached" edges.
I think a "super-laplacian" matrix is indeed a matrix that's an on-diagonal block of a laplacian matrix, and you can always realize it this way by adding one row and column. You add and .
James Deikun said:
I think by "interior vertices" was meant all the vertices corresponding to rows and columns of the matrix and "exterior vertices" was meant to refer to the notional vertices connected to the "unattached" edges.
I think a "super-laplacian" matrix is indeed a matrix that's an on-diagonal block of a laplacian matrix, and you can always realize it this way by adding one row and column. You add and .
Yes that's right.
Here is an example
image.png
The usual laplacian of the whole graph is the matrix
And if I "discard" the exterior vertices and , I obtain the submatrix
which is "super-laplacian".
John Baez said:
Anyway, I haven't seen this idea. It - or something similar, I haven't thought about it enough yet - looks very interesting. The spectral analysis of open graph Laplacians should be very cool if done right.
Oh thanks. Well, if this is new, I might give it a try. I have some preliminary results about a (baby) co/homology. But my current formal definition of open graphs feel clumsy. I'll have a look at structured (or decorated?) cospans.
Open graphs are one of the basic examples in structured cospan theory, so they appear in all introductions to structured cospans.
I explained a bit more the motivation behind my question in this topic
If this works it ought to (IMO) inform surgery on Riemannian manifolds. And vice versa. Like say (this is probably not the ideal reference) https://doi.org/10.1215/S0012-7094-06-13323-9
If anyone doesn't mind, I'll do like David Egolf, and use this thread to think out loud.
So, I reread the definition of a structured cospan. And before even using them, I need to figure out which category of graphs I want to use. I will need this category to be closed under finite colimit, and I'll probably need a left adjoint .
I'll start with informally stated requirements for the kind of graphs I need, and then I'll choose the most appropriate category . My problem is about heat propagation. Equivalently, I'm picturing random walks on graphs.
So, in my situation, I think a graph is a diagram of sets
image.png
where denote the source and target map, is the involution that reverse edges, and is the weight function.
The part that troubles me is the involution. It has to satisfy some conditions
This last condition is a bit weird, as it refers to elements of .
The other part that troubles me is the weight , because it refers directly to . I remember that attributes were handled a specific way in ACSets.
Ok, I re-read this blog post. I could present my schema as a profunctor between the category consisting of and , and the singleton category, with single object . And then a graph would be an attributed c-set on this schema, i.e. some -cell etc. I guess this framework is useful to obtain general results about ac-sets, e.g., closure under colimits.
Anyway, I'll stay low-brow, and define my category explicitly.
An object of is specified by
That inequality will tend to prevent your category from having nice coequalizers.... I'd avoid that if I were you. (Equations are preserved by "quotient maps", inequalities not.)
Oh thanks. I'll follow your advice. So an object of is specified by
For morphisms, I see two options.
The most obvious one. A morphism from to is specified by functions and such that source and target functions are compatible (, ), involutions are compatible (), and weights are preserved ().
Weights are accumulated. A morphism from to is specified by functions as above, except for the preservation of weight. Instead,
I may need to think a bit more about my use case to decide which one is the best.
At the end, I would like to relate my graphs with laplacian matrices. From my small experience with computing graph laplacians, I noticed the following behaviour. Given a graph , possibly with multiple edges with the same endpoints, it has laplacian matrix . The off-diagonal entries of aggregate the weights. Also, I can almost go the other way around: given a laplacian matrix , I can build a graph (with at most one edge between any two distinct vertices) which has as laplacian matrix.This situation feels like an adjunction.
So I'll stick with option 2 for my morphisms.
Now, to use the structured cospan machinery, it suffices that I
I believe 1 is true. For (finite) coproducts, I can do pointwise (finite) coproducts. This really amounts to putting a bunch of graphs next to each other. For coequalizers, consider two parallel morphisms from to . I want to build a coequalizer graph . Let's define
where is a short-hand notation for the equivalence relation on generated by iff there exists such that and . And similarly for . The source and target maps can be defined consistenly on , the involution as well (thanks to John's advice).
The weight function is not so obvious, because of my choice of morphism
Actually, we have no choice. An edge is an equivalence class (subset of edges in ). I define its weight as the sum of weights of its members, . This is the only way to define it if I want the quotient map to satisfy the weight aggregation rule.
I'll skip the details on checking that , so defined, is indeed a coequalizer.
Alright, now, the functor . It maps a finite set to the the graph with as set of vertices, and empty set of edges. The right adjoint is the functor that maps a graph to its set of vertices. Again, I'll skip checking the details (that they are functors, and adjoint to each other).
Finally, I obtain a symmetric monoidal double category of open graphs.
Ok, now the fun part, defining the laplacian. In algebraic graph theory, we can define the laplacian by considering the vector space of functions on vertices, of functions on edges, equipping them with the obvious inner products, defining the discrete differential by
and the laplacian as
where is the adjoint of .
Thanks to the categorical perspective, I want to try the following strategy:
Not sure, if this is the right approach. Even if I have an open cochain complex, how do I obtain a "laplacian"?
We usually get a graph Laplacian by making (resp. ) into inner product spaces such that vertices (resp. edges) form an orthonormal basis. This lets you define an operator by
(i.e. is the adjoint operator of ). Then we get a Laplacian on by and one on by taking .
By the way, the people I know write for your and for what I just called .
Yes. This gives me another idea. So we want define inner product spaces and , and a linear map when is an open graph, i.e. a horizontal 1-morphism in .
So, maybe, we want to define symmetric monoidal double functors into a well-chosen sym mon double category , and a transformation that satisfy some good properties.
I will try to define using the structured cospan construction, .
Let's try with the category specified by:
I claim is closed under finite colimits. Indeed, Orthogonal direct sums provide coproducts. Cokernel of is provided by the projection on the orthogonal complement of the image of in .
Now, I want to define a functor that preserve finite colimits.
Given a finite set , I define to be the free vector space equipped with the unique inner product that makes an orthonormal basis.
I don't think is a left adjoint, because, intuitively, the right adjoint would need to pick an orthonormal basis. So I'll check directly if preserve finite colimits.
It seems clear to me that preserve finite coproducts, so I'll focus on coequalizers.
Consider two parallel functions between finite sets, and their coequalizer.
image.png
We have to check that the linear map is a cokernel of .
is a cokernel
We conclude that preserves finite colimits.
Wrapping everything up, the structured cospan construction gives a sym monoidal double
category . Concretely,
I want to define a (sym mon double) functor .
Both double categories have the same vertical category , so the object and vertical parts of are clear.
Focus on the horizontal part. Consider an open graph , i.e. a cospan in
The core idea is to send a graph to the vector space of real functions on the vertices of , equipped with the obvious inner product . If is morphism in , the linear map is defined, for all
The functor so defined is contravariant.
Thus, from the cospan in , we obtain a cospan in
Connecting with my original intent, I would like to consider this cospan as "the vector space of 0-cochains on the open graph". (But, of course, it is not an actual vector space)
What would an element of this "space" look like? Concretely, it is a function on the vertices of the graph , together with its restrictions and .
This whole thing is going a bit out of control, but let's continue with 2-cells.
Consider the 2-cell in
image.png
where is a morphism in , and are functions.
We define a 2-cell (diagram in )
image.png
In this diagram represents the linear map that sends any functions on the vertices of to the function on the vertices of . And similarly for .
I won't write the details, but it seems that all the squares commute indeed. Basically, it's all about copying function values or restricting to subsets of vertices.
Now, I am realizing that arrives in . But I have not verified if is eligible for the structured cospan construction.
is ok
There are lots of other laws (vertical/horizontal compositions, ...) to check in order to state that is a sym monoidal double functor.
I'll take a break on the details of here, possibly coming back to it when I am more confident that the end is worth it.
Ok, I think I went too fast into double category territory and got lost. I'll take a step back.
You can really delete comments by mousing to the right of them, clicking on the three dots that appear, and then clicking on "Delete message". Then we won't see these messages saying deleted.
I tried, but a Zulip option prevents me from deleting my own messages if they are more than 1 day old.
Oh, I guess you're right.
Alright, I may have a more appropriate approach. Here is the general outline.
I have my category of graphs (weighted multigraph, with edge involution, and morphisms that aggregate weights), and the associated double category of open graphs.
Let be the category of finite dimensional inner product spaces with linear maps. I'll consider the double category of cospans in .
Next, I want to define double functors
Then, I want to define (double) natural transformations
Finally, I'll obtain my "open graph laplacian" as the composition
Similarly, I'll obtain the "edge laplacian", as .
definition
This one was trickier than I thought.
definition
definition
definition
Let be the category of finite dimensional inner product spaces with linear maps.
These are arbitrary linear maps I guess, not preserving the inner product?
this work of yours looks very interesting, though I have not gone through it all yet.
By the way, the edge involution may not be very important to all of this. I brought it into my paper Topological crystals, along with the annoying inequality , because it's a reasonably convenient way to make each edge "bidirectional": you can reverse an edge from a vertex $$v$ to a vertex and get one going from to , and this new reversed edge is never the same as the original edge. The italicized clause only matters from edges from a vertex to itself. Without this clause you could have some edges from to that are their own reverses, and others that are not, and this can be confusing. But do these edges from a vertex to itself affect the graph Laplacian at all?
John Baez said:
These are arbitrary linear maps I guess, not preserving the inner product?
Indeed, I'm not enforcing the linear maps to preserve the inner product. Actually, I'm not really using the inner product structures explicitly. For , I'm giving an explicit formulation, which I derived from the usual adjoint of a linear map.
John Baez said:
this work of yours looks very interesting, though I have not gone through it all yet.
Thank you :) I havn't gone through it all either, as there are double categorical concepts I have to experiment with.
John Baez said:
But do these edges from a vertex to itself affect the graph Laplacian at all?
Mmh, actually these self-loops caused me some issue in defining . I had to explicitly "kill" these self-loops. The space is that of functions on the edges of that are anti-symmetric with respect to the involution, and which assigns to self-loops.
Moreover, in the usual graph-theoretic laplacian, self-loops are also killed, because the differential on this edge is automatically zero.
I assumed bidirectional edges because of the original situation where I encountered these "super-laplacian matrices". Maybe they are not needed after all to define the open graph laplacian.
In graph theory, it is possible to define the laplacian matrix of a directed (multi)graph. This laplacian is not symmetric anymore, so the usual spectral analysis is not as convenient.
Now, I want to have a look at what does. Composing all things together, we obtain this diagram
image.png
Let . We obtain, for any vertex
where
For instance, for the graph that is line of 4 vertices, the two endpoints being exterior vertices, we obtain, as a matrix
which is indeed "super-laplacian".
I made a mistake in my definitions: the transformation is not natural ...
counter-example
I think that's because I allow too many graph morphisms in .
Peva Blanchard said:
John Baez said:
These are arbitrary linear maps I guess, not preserving the inner product?
Indeed, I'm not enforcing the linear maps to preserve the inner product. Actually, I'm not really using the inner product structures explicitly. For , I'm giving an explicit formulation, which I derived from the usual adjoint of a linear map.
Good, then don't include the inner product in the definition of the category - it's much nicer to let if that works, or maybe if you demand that your graphs are finite - which you probably need, for all your sums to converge!
I'll do that!
I found this paper. The authors introduce a generalized graph laplacian. They also consider graphs with boundaries, which they call -graphs.
They even define a category of -graphs, with a notion of "harmonic morphisms". That might be the kind of morphisms I need for my construction to be "natural".
This is interesting.
An harmonic morphism between graphs has a degree function, . This degree function comes up when relating the laplacians of and .
Namely, writing for the pullback map,
for all and .
In short notation,
with the small caveat that acts diagonally. So it "almost" commutes.
I'm guessing this is a case of a 2-dimensional categorical structure
image.png
So, by restricting graph morphisms to be harmonic, my candidate for the natural transformation of the double functor into itself should satisfy the following kind of "naturalness"
image.png
Interesting stuff!
Peva Blanchard said:
An harmonic morphism between graphs has a degree function, . This degree function comes up when relating the laplacians of and .
Namely, writing for the pullback map,
for all and .
Is that the only definition of , or does it also have some other characterization? From the name "degree", I'd guess might be the number of vertices in that maps to the vertex of - that's a bit like the degree of a continuous map.
Btw, it's worth noting that for a map between finite graphs, we not only have a pullback but also a pushforward , which is also very useful. The idea is that is the sum of over all vertices that maps to .
I'm wondering if the definition of harmonic morphism might be cleaner in terms of the pushforward, like this:
I'm wondering if the "degree function" shows up because they're using the pullback instead of the pushfoward. (This is how degree functions sometimes show up, if I'm remembering correctly.)
John Baez said:
Is that the only definition of , or does it also have some other characterization?
I wrote too hastily, but the relation with laplacian is not how the authors define the degree function.
The actual definition is embedded with the definition of a harmonic graph morphism.
A harmonic graph morphism between weighted graphs, is a usual graph morphism together with the condition that for any vertex in , with its image in , for any edge in that starts at , the sum of weights of the edges in over that start at is proportional to the weight of , and this coefficient of proportionality is the same for all . In symbols,
The function is the degree function.
The authors explicitly refer to analytic maps between Riemannian manifolds, as a source of inspiration for this definition; but I don't know enough about this topic.
John Baez said:
I'm wondering if the definition of harmonic morphism might be cleaner in terms of the pushforward, like this:
I'm wondering if the "degree function" shows up because they're using the pullback instead of the pushfoward. (This is how degree functions sometimes show up, if I'm remembering correctly.)
I tried that! But, with the definition above, it does not work. I don't have an explicit counter-example, but the result is very easy to prove for pullbacks, so I guess pullbacks are the right things to consider.
Okay. I'm glad the degree is not extra structure you have to choose, but something defined in terms of the map of graphs.
The following characterization of harmonic morphisms is helpful.
A graph morphism is harmonic iff
But then, we have a bad news: the category of graphs with harmonic morphisms is not closed under pushouts.
counter-example
This means we cannot use the structured cospan construction :sad:
Should I consider the presheaves over the category of graphs with harmonic morphisms? sounds daunting...
Mmh, maybe there is a work-around. I need push-outs only for horizontal composition.
So, maybe
Mmh, but ... I would still need horizontal composition of 2-cells.
You say "category of graphs with harmonic morphisms is not closed under pushouts" and you propose this example: the pushout of
where
and .
But are the morphisms and harmonic?
Oh indeed. I think they are. Since is just a point, its laplacian is the matrix . So, the pullback of any harmonic function along any morphism out of is trivially harmonic. Actually the pullback of any function along any morphism out of is trivially harmonic.
But it feels like a convention issue.
There might be a way out.
I want to consider cospans (with and being discrete finite graph) in the usual graph category.
But, I restrict the 2-cells to be of the form
image.png
where are functions, and is a graph morphism such that
I'll call these 2-cells: harmonic 2-cells.
Then, I want to check if these kinds of 2-cells compose well horizontally.
image.png
I.e., assuming and are harmonic 2-cells, is it true that the 2-cell is also harmonic?
It does not work. Since and , and should be harmonic over , and must have well-defined degrees over , and they must match.
Ok, I see two paths:
If it were me, I'd think hard about what's going on with this stuff, not worrying too much about the formalism involved until I understood what was going on, the stuff that the formalism should capture - and eventually it would all work out perfectly, because this particular stuff is bound to be beautiful. I know this is not very useful advice.
I think I see what you mean. I think the phenomenon at hand is roughly the following.
A harmonic morphism is about "locally relating diffusion (or random walks) on the two spaces". Or, pulling back a random walk on to a random walk on .
Now, when composing open graphs (horizontally), we are gluing two spaces together along a specified subspace. But there must be a condition on the kinds of gluing I want, otherwise my harmonic morphisms won't go through.
It's like concatenating two differentiable functions on and : even if they match at , , if their derivatives at don't match, the resulting function has a singularity at .
In this figure
image
and match "vertex-wise", but may not match "degree-wise".
Now, when composing open graphs (horizontally), we are gluing two spaces together along a specified subspace. But there must be a condition on the kinds of gluing I want, otherwise my harmonic morphisms won't go through.
It's like concatenating two differentiable functions on and : even if they match at , , if their derivatives at don't match, the resulting function has a singularity at .
Right. This kind of issue shows up in a lot of places. In the study of PDE we don't usually demand that functions are harmonic on the boundary: instead, we impose boundary conditions. In TQFT, we don't glue smooth manifolds together along a boundary, because the result wouldn't be smooth: instead we thicken the boundary up to a 'collar' and glue the collars together.
Both issues would show up if one were trying to cook up a (double) category where the morphisms are something like smooth manifolds with boundary equipped with harmonic functions . That sounds like something people studying the Laplace equation would like to do - but they'd instantly run into issues like you're hitting. So they'd try to use tricks to deal with these issues.
I think I found a trick. I'll define the category of finite sets, with "harmonic functions".
Objects are finite sets. And a "harmonic function" from to is a pair where is a usual function, and is a function. I am interpreting as the degree function of , although there is no laplacian to work with.
Composition of and is given by the usual function composition for the function part, and its degree by a "chain rule"
Then, I can define a 2-cell of open graphs to be
such that matches on , and on , both with respect to vertices, and the degrees. I.e., for all and ,
I believe these 2-cells compose correctly horizontally, because the boundary condition now contains just enough information (vertex mapping, and degree) to guarantee a "harmonious" gluing.
I haven't had time to understand this right, but I want to advocate using harmonious as a technical term somewhere.