nLab
span

Content

Definition

In any category C, a span, roof, or correspondence, from an object x to an object y is a diagram

s f g x y\array{ && s \\ & {}^{f}\swarrow && \searrow^{g} \\ x &&&& y }

where s is some other object of the category. (The word “correspondence” is also sometimes used for a profunctor.)

This diagram is called a ‘span’ because it looks like a little bridge; ‘roof’ is similar. The term ‘correspondence’ is prevalent in geometry and related areas; it comes about because a correspondence is a generalisation of a binary relation. Discussion of this terminology on the blog is here.

Note that a span with f=1 is just a morphism from x to y, while a span with g=1 is a morphism from y to x. So, a span can be thought of as a generalization of a morphism in which there is no longer any asymmetry between source and target.

A span in C op is called a co-span in C. A cobordism is an example of a cospan in the category of smooth manifolds, and this nicely illustrates the symmetry between source and target.

If the category C has pullbacks, we can compose spans. Namely, given a span from x to y and a span from y to z:

s t f g h i x y z\array{ && s &&&& t \\ & {}^{f}\swarrow && \searrow^{g} & & {}^{h}\swarrow && \searrow^{i} \\ x &&&& y &&&& z }

we can take a pullback in the middle:

s× yt p s p t s t f g h i x y z\array{ &&&& s \times_y t \\& && {}^{p_s}\swarrow && \searrow^{p_t} \\ && s &&&& t \\ & {}^{f}\swarrow && \searrow^{g} & & {}^{h}\swarrow && \searrow^{i} \\ x &&&& y &&&& z }

and obtain a span from x to z:

s× yt fp s ip t x z\array{ && s \times_y t \\ & {}^{f p_s}\swarrow && \searrow^{i p_t} \\ x &&&& z }

This way of composing spans lets us define a 2-category Span(C) with:

  • objects of C as objects
  • spans as morphisms
  • maps between spans as 2-morphisms

This is a weak 2-category has a nontrivial associator: composition of spans is not strictly associative, because pullbacks are defined only up to canonical isomorphism.

(Note that we must choose a specific pullback when defining the composite of a pair of morphisms in Span(C), if we want to obtain a bicategory as traditionally defined; this requires the axiom of choice. Otherwise we obtain a bicategory with ‘composites of morphisms defined only up to canonical iso-2-morphism’; such a structure can be modeled by an anabicategory or an opetopic bicategory?.)

A span that has a cocone is called a coquadrable span.

Some facts about spans

Let C be a category with pullbacks and let Span 1(C):=(Span(C)) 1 be the 1-category of objects of C and isomorphism class of spans between them as morphisms.

Then

Next assume that C is a cartesian monoidal category. Then clearly Span 1(C) naturally becomes a monoidal category itself, but more: then

Generalizations

See multispan.

References

The above list of facts about spans is described in

which discusses how spans naturally capture crucial aspects of quantum field theory.