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.
Toposes are cartesian closed --- but often functors are not, so we consider geometric morphisms. These preserve geometric logic; but the full internal language, dependent type theory (represented by the codomain fibration), is not preserved.
How do we describe the construction which sends a topos to its internal language? We have to accept that geometric morphisms are not locally cartesian closed. : What is the codomain of this functor?
We could use logical functors which preserve all topos structure, but there are theorems that show these are actually rare and special.
We can say sends each topos to its codomain fibration , and since geometric morphisms preserve finite limits this is functorial --- but this does not reflect the fact that has dependent sums and products.
If anyone has ideas or references on the (functorial) construction from a topos to its type theory, please let me know.
I suspect the right thing to do is to send a topos to its tripos of subobjects, hence a fibration
There is actually an adjunction between triposes and toposes iirc
You can surely extend it on both sides to less structured hyperdoctrines and less structured categories
My standard reference for all this stuff is Jacobs' Categorical Logic
Another pov one may pursue is to consider toposes and syntactic sites. I'm less familiar with this but it's what you find in Caramello's book
Christian Williams said:
We can say sends each topos to its codomain fibration , and since geometric morphisms preserve finite limits this is functorial --- but this does not reflect the fact that has dependent sums and products.
When you say "this does not reflect the fact that..." do you mean that this Lang functor doesn't reflect that structure in a technical sense?
I mean that the codomain fibration of an LCCC has fibered sums and products, but they are not preserved by geometric morphisms and so we have to take the codomain to be only Fib and not CCFib (co/cocartesian Fib; also called *-bifibrations)
It would be very helpful to see an adjunction between toposes and triposes. Do you know a reference?
Christian Williams said:
I mean that the codomain fibration of an LCCC has fibered sums and products, but they are not preserved by geometric morphisms and so we have to take the codomain to be only Fib and not CCFib (co/cocartesian Fib; also called *-bifibrations)
Surely you can describe the category whose objects are those of CCFib but whose morphisms are just morphisms of fibrations? What obstacle are you encountering here?
yes, that is an option. I just want to know what it really means type-theoretically, and why we can't do better.
geometric morphisms preserve a decent amount of structure, so there should be some more we can say.
I've just been surprised with how little I've found about the functoriality of the construction of internal type systems. I haven't even seen inference rules for induced maps of type systems.
the attitude seems to be "of course we can get MLTT from a topos", but when it comes to specifying it as a functorial construction, I've seen no discussion that topos morphisms do not preserve type constructors, what this means for type theory and how to deal with it.
Ah yep, that's a general feature of the topos theory literature: there's a lot that has been done in principle but so few people applying the tools that most of them are not developed to the point of usefulness, especially from the perspective of functoriality (either that or they have been used infrequently enough as to be difficult to find).
If you know what type constructions you're particularly interested in preserving (and you can express them in a form I can understand :wink: ) I can help you to identify which class of geometric morphisms you actually need. For example, locally connected morphisms have inverse images which commute with dependent products, and that might be a sufficient class for your purposes.
yes, definitely.
great, thanks! yes, locally connected seems like the right class - but as you said before, precomposition
is only locally connected under pretty special conditions.
and I'm focused on plugging into the construction from toposes to type systems.
In that case Corollary 4.58 here might be useful to you: if you restrict yourself to fibrations between small categories rather than arbitrary functors, then you will get locally connected morphisms out of the other end.
(It's a nice sufficient, although not necessary, condition)
To extract what I said from the result, just take the Grothendieck topologies to be trivial.
The general necessary and sufficient conditions preceding that result are a little scary-looking; @Riccardo Zanfa and I will be working to simplify them in the near future as part of our collaboration on fibrations.
hm, very interesting.
but this seems to be taking the left Kan extension rather than precomposition?
Where?
we have a fibration inducing a geometric morphism , going in the same direction
Also, clarifying point, are you going to presheaves or copresheaves? Based on this message it sounds like the latter?
no, I mean presheaves
Christian Williams said:
we have a fibration inducing a geometric morphism , going in the same direction
Yes, induces an essential geometric morphism going in the same direction; the inverse image functor is precomposition with .
ah, yeah and the functor in that direction is right Kan extension. yeah this stuff is new and very bizarre to me
No problem, I'm happy to explain as much as you need!
so restricting to fibrations gives us a locally connected, that's useful
do you know any other ways of getting them?
Indeed, the thing about fibrations is that when is a fibration, is computed by taking colimits of the fibers of , so you also get a much more manageable description of that functor in that situation.
That is,
wait why are you talking about Lan now?
Christian Williams said:
do you know any other ways of getting them?
Locally connected morphisms are stable under pullback, so technically yes, but no other ways that I expect you would find useful :wink:
Christian Williams said:
wait why are you talking about Lan now?
Because you said "this stuff is new and very bizarre to me", I'm just trying to fill out the picture a little bit.
In general the left and right Kan extensions along a functor are tricky to calculate, so it's nice to know when they turn out to be nicer.
oh, what's bizarre is the convention that geometric morphisms go in the direction of the right adjoint, when often that right adjoint is more mysterious than things we usually think about.
Blame the topologists for working with points! :wink:
the right adjoint to preimage is much less obvious than the left adjoint, and it's extremely misleading when they call the right adjoint direct image because it's not.
That one is also the fault of geometers, but they couldn't see the whole picture when they were building this stuff, so we can't be too hard on them.
huh, okay. yeah, I'm starting to study the Elephant, so I'll learn more about the background
Also, when is faithful, the induced geometric morphism is localic, which means that it can also be expressed as a map of internal locales in the codomain topos, and at that point the direct image is really a direct image again.
(it's just a direct image in a much more obscure internal sense :upside_down: )
wow, okay. interesting
so the functors I care about are translations between theories, say finite limits for example
I wonder if restricting to fibrations might still be a large and useful class
Are there any constraints on translations besides preserving finite limits?
well, the theories I really care about are "properly cartesian closed categories", so finite limits and cartesian closed
but no other conditions besides preserving that
it seems like only allowing fibrations would restrict the possible translations too much
Oh hey, you might not even need to restrict to fibrations! If your functors preserve finite limits, then they're also morphisms of sites (as well as comorphisms), which is to say that Lan_F will be left exact too. It's plausible that cartesian closedness will constrain the geometric morphisms enough that you'll get local connectedness, but I can't say for certain off the top of my head.
I was (vaguely) wondering about that! that would be great
I was focused on precomposition, so the cartesian closedness of the functor didn't help at all. but using Lan might work
if it does, that would be extremely useful
Or it might be that you instead have that Lan_F is cartesian closed, which would be interesting in its own right, since then you might be better off considering the geometric morphisms in the opposite direction.
yeah. I would be surprised if this was not already known
Christian Williams said:
the right adjoint to preimage is much less obvious than the left adjoint, and it's extremely misleading when they call the right adjoint direct image because it's not.
I would say rather than different groups of mathematicians use the phrase "direct image" for different things. Same with "pushforward".
but I want/should try to do it myself
ah, okay sure
(Lan_F may fail to be LCCC, so the geometric morphism may not be locally connected, but that's up to you to find out :) )
finally an approach to this problem that feels satisfying.
thanks for your help
No problem! Good luck!
so far I've tried some coend calculations and not quite seeing a strategy, so I'm following more closely the proof in The Elephant A4.1.10 : if is cartesian then is cartesian.
Johnstone has a different way of thinking about taking left Kan extension then evaluating, as the composite
where is the -projection of the comma category .
this is another way of writing
this view is odd to me at first, but illuminating in how it is used.
the argument is that is cartesian because it is a right adjoint, and is cartesian precisely because comma categories in cartesian categories are filtered, which are exactly the colimits which commute with finite limits.
it's very clever: is nonempty because .
for every pair of objects , there is a least upper bound
and for every pair of morphisms , an equalizer.
so using a powerful result, forming filtered colimits is cartesian.
then because limits in are defined pointwise, this composite being cartesian for every object implies that is cartesian.
so that's really nice and that's a whole story in itself. right now I'm wondering: can this be extended to closed?
Conjecture/Hope : if is cartesian closed, then is as well.
the fact that filtered colimits commute with finite limits probably does not offer much help.
my first instinct is to try to translate that proof into a coend calculation, if possible, just to get a different grasp
(but I doubt it's possible, and it's not necessary.)
one thing I find promising is that is a fibration! so I think should be locally cartesian closed.
then the question is whether forming colimits is cartesian closed
well, is the same as , extending along
but I don't think that helps.
let . then
maybe you can flip around the -presheaf hom using Isbell duality?
well, I guess I should recognize and use the fact that the question can be reduced to the case of
(and a special shape of , at that)
of course we're just asking whether the canonical map is an isomorphism, for
probably the time to just take a familiar presheaf category and do sanity checks
okay, we can just think about graphs as a presheaf category
what does do?
it takes a graph and forms its coequalizer
the graph where nodes are connected components, and edges are self-loops.
does this process preserve the internal hom?
so the nodes of are graph morphisms
I think I need a break, to mull it over more casually
so is the graph whose nodes are graph morphisms and edges are graph transformations.
is the set of connected components of .
so : is naturally isomorphic to ?
I believe not.
I can continue tomorrow. I think the distinction between graphs and reflexive graphs is important.
I'm not sure about graphs, but for groupoids you can see is different from . Take the circle , i.e. the group regarded as one-object groupoid. The circle is connected so has one element so has one element, but you can wrap the circle around itself times for any so is a set isomorphic to .
Christian Williams said:
this is another way of writing
I've never practiced using coends, so I actually find this the harder expression to parse :hushed:
Christian Williams said:
so that's really nice and that's a whole story in itself. right now I'm wondering: can this be extended to closed?
Ha, you probably shouldn't drop the "cartesian" in "cartesian closed" when dealing with geometric morphisms, there's an entirely separate notion of closed geometric morphism corresponding to the notion of a closed map.
Christian Williams said:
one thing I find promising is that is a fibration! so I think should be locally cartesian closed.
Is that comment related to this, or is there some other connection between fibrations and lccc functors that I don't know about? I discovered something in this vein recently, but I have found very few mentions of the relationship between the two in the literature.
Christian Williams said:
of course we're just asking whether the canonical map is an isomorphism, for
You shouldn't expect this to be true in general; you should be using the shape of . For example, the category you mentioned in defining the topos of graphs isn't filtered, so colim (which coincides with taking the set of connected components of the graph, by the way) doesn't preserve limits, so it's pretty unlikely that it's going to preserve exponentials!
so right now I want to check whether forming filtered colimits, as a functor where is a filtered category, preserves internal hom.
we can take the category whose presheaves are reflexive graphs,
and with and .
wait, need to be careful about directions, thinking about the opposite category. okay.
this is a filtered category, because the pair of objects has an upper bound , and the pair has .
so taking the colimit of a graph just forms the coequalizer of the source and target morphisms - the set of connected components.
for reflexive graphs, all that changes is that this is a reflexive coequalizer. does that change much?
we are still asking whether
this question is slightly less hopeless when we have self-loops.
but still, it does not seem true.
So concretely you're asking if the "connected component" functor from to is cartesian closed?
I was trying to disprove this with a counterxample the other day, but I don't think I got one.
Hmm, how about this. Let be the reflexive graph with two vertices v and w, an edge from v to w, and an edge from w to v (along with the two required "identity" edges).
This graph is connected so has just one element, right?
On the other hand maybe has more than one element.
There are exactly two maps from to that map both vertices of down to one vertex of , correct?
And there are exactly two maps from to that are bijective on vertices, correct?
So, if I'm correct, has 4 vertices, corresponding to the 4 maps I just specified.
But I don't think has edges connecting all these 4 vertices. Am I wrong?
(we're talking, and realized this is not a counterexample. in this case is connected.)
but it shouldn't be too hard to find a minimal counterexample.
actually, it may be true if we include a condition of finitude.
I can write it up here later.
I think there's a nice counterexample when G and H are infinite.
Let G be the discrete graph on vertices {0,1,2,...}
Let H be the graph that's the coproduct of graphs H(n) for n = 1,2,3,... where H(n) is the graph with vertices {0,1,2,..n} and one edge from i to i+1.
(I'll do nonreflexive directed graphs but you can easily tweak my counterexample for reflexive graphs).
Let f: G H be the graph map that maps the vertex n to the vertex 0 in the subgraph H(n).
Let g: G H be the graph map that maps the vertex n to the vertex n in the subgraph H(n).
Note that f and g give the same element of since they map each vertex n to the nth component of H.
However, f and g give different elements of , because there is no finite sequence of graph transformations going from f to g!
this is a good counterexample. but it's unclear what's going on categorically, how this condition comes into play
The colimit that defines isn't filtered. Filtered colimits are colimits over a filtered category, not the opposite of a filtered category.
ah okay, I was getting mixed up. need to think of another simple example.
But anyways, the conclusion that this is a finiteness issue is correct. One way to cook up a counterexample would be to take to be the constant functor on a set . Then the colimit of is also (filtered categories are connected) so the question about preserving exponentials amounts to whether the colimit functor commutes with . And this is true for finite but generally false for infinite.
okay, yes that makes it very clear, thanks.
but if we restrict to presheaves on finite sets, it may be true.