Zulip Chat Archive
Stream: maths
Topic: combining pullbacks
Edward van de Meent (Oct 02 2025 at 14:04):
tldr; I'd like some help finding the right statement/proof for showing that you can combine pullback squares in a certain way.
i'm considering doing some small topos theory lemmas (eventually) about Lawvere-Tierney topologies. on the way to defining those, i came across the following lemma:
Given two pullback squares where the top morphisms are and respectively, there is a (specific) square which is a pullback square, where the top morphism is the diagonal of the pullback square of and . (i.e. this diagram).
I've proven this in lean, but the proof is very verbal (read: lots of unfolding definitions, proving certain squares commute) in a way i wasn't used from the CategoryTheory part of the library.
I suspect that this is because this is not the right (generality) lemma or not the right proof, but it might also be because i might have overlooked some clearer proof...
Does anyone have suggestions for simplifying this statement/proof? (i'm also not convinced that my naming sense here is correct at all)
Joël Riou (Oct 02 2025 at 15:55):
If the category has binary products, then the pullback square of your lemma can be obtained as a vertical composition of two pullback squares:
diagram.png
Joël Riou (Oct 02 2025 at 15:55):
The bottom square is obtained as a binary product of two pullback squares, and the top square relates the fiber product and the binary product via the diagonal of Z.
Edward van de Meent (Oct 02 2025 at 15:57):
i don't think we have the binary product of pullback squares in mathlib, right?
Joël Riou (Oct 02 2025 at 15:58):
No, but at least, this splits the lemma into two general more basic tasks.
Edward van de Meent (Oct 02 2025 at 15:59):
it's indeed an improvement in argument, i was just checking to prevent duplicate work
Edward van de Meent (Oct 02 2025 at 16:01):
but this argument does need all corner pairs to have products, rather than just the bottom two.
Joël Riou (Oct 02 2025 at 16:03):
This is the reason why I added "If the category has binary products", which should not be an issue for a topos!
Joël Riou (Oct 02 2025 at 16:05):
Otherwise, I do not see how your proof could be improved significantly!
Edward van de Meent (Oct 02 2025 at 16:05):
do you think that mathlib would accept the form where you just assume HasBinaryProducts C+HasPullback (or even HasFiniteLimits C)? Or would it be rejected for being not as general as possible?
Joël Riou (Oct 02 2025 at 16:20):
If I am the one reviewing it, it would be fine :-) Nevertheless, I think it is important to allow arbitrary limit binary fans/pullback cones. For example, for binary products of pullback squares, we probably want a general version, and two corollaries phrased in terms of the binary product from the limits API and the chosen binary product (assuming CartesianMonoidalCategory).
Last updated: Dec 20 2025 at 21:32 UTC