This entry is about the notion of spans/correspondences which generalizes that ofrelations. For spans invector spaces ormodules, seelinear span.
Rel,bicategory of relations,allegory
left and righteuclidean;
extensional,well-founded relations.
natural deductionmetalanguage,practical foundations
type theory (dependent,intensional,observational type theory,homotopy type theory)
computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory
Definitions
Transfors between 2-categories
Morphisms in 2-categories
Structures in 2-categories
Limits in 2-categories
Structures on 2-categories
Inset theory, aspan orcorrespondence betweensets and is a set with afunction to theproduct set. A span between a set and itself is adirected pseudograph, which is used to definecategories in set theory.
Independent type theory, there is a distinction between aspan, amultivalued partial function, and acorrespondence:
Aspan between types and is a type with families of elements and
Amultivalued partial function from type to type is a type family with a family of elements
Acorrespondence between types and is a type family.
However, from any one of the above structures, one could get the other two structures, provided one hasidentity types anddependent pair types in the dependent type theory. Given a type family, let and be the dependent pair projections for thedependent pair type.
From every span one could get a multivalued partial function by defining the type family as and the family of elements as.
From every multivalued partial function one could get a span by defining the type as and the family of elements as.
From every multivalued partial function one could get a correspondence by defining the type family as.
From every correspondence one could get a multivalued partial function by defining the type family as, and the family of elements as
From every span one could get a correspondence by defining the type family as.
From every correspondence one could get a span by defining the type as, the family of elements as, and the function as
Given types,, and and spans between and and between and, there is a span
defined by
Given types,, and and correspondences and, there is a correspondence defined by
In anycategory, aspan, orroof, orcorrespondence, from anobject to an object is adiagram of the form
where is some other object of the category. (The word “correspondence” is also sometimes used for aprofunctor.)
Thisdiagram is also 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 binaryrelation.
Note that a span with is just a morphism from to, while a span with is a morphism from to. 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 theopposite category is called aco-span in.
A span that has acocone is called acoquadrable span.
If the category haspullbacks, we can compose spans. Namely, given a span from to and a span from to:
we can take a pullback in the middle:
and obtain a span from to:
This way of composing spans lets us define abicategorySpan with:
This is a weak 2-category: it has a nontrivialassociator: composition of spans is not strictly associative, because pullbacks are defined only up to canonical isomorphism. Anaturally definedstrict 2-category which is equivalent to is the strict 2-category oflinear polynomial functors betweenslice categories of.
(Note that we must choose a specific pullback when defining the composite of a pair of morphisms in, if we want to obtain abicategory as traditionally defined; this requires theaxiom 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 ananabicategory or anopetopic bicategory?.)
We can also obtain apseudo-double category?, whoseloose structure is as above, whosetight morphisms are functions, and whose cells are commuting diagrams,
Moreover, when is an arbitrary category, not necessarily having pullbacks, one can still obtain acovirtual double category. More details can be found in Section 4 ofDawson, Paré, Pronk (where the term oplax double category is used).
Let be a category withpullbacks and let be the 1-category of objects of and isomorphism classes of spans between them as morphisms.
Then
Next assume that is acartesian monoidal category. Then clearly naturally becomes amonoidal category itself, but more: then
We discuss theuniversal property that characterizes 2-categories of spans.
For be acategory withpullbacks, write
for theweak 2-category of objects of, spans as morphisms, and maps between spans as 2-morphisms,
for the functor given by:
Now let
be anybicategory
befunctors such that every map in is sent to a map in possessing aright adjoint and satisfying theBeck-Chevalley Condition for anycommutative square in,
Then:
(universal property of the bicategory of spans)
The following holds:
isuniversal among such functors, i.e. as above factors as for a functor which is unique up to isomorphism.
There exists a uniquelax natural transformation: such that.
Let be objects in and be a morphism in. If induce a pseudo-map of adjoints, then is apseudonatural transformation
Furthermore, if we denote as the2-category of categories with pullbacks,pullback-preservingfunctors, andequifibered natural transformations and as thetricategory ofbicategories, is well-defined as a functor.
Since a category of spans/correspondences is evidentlyequivalent to itsopposite category, it follows that to the extent thatlimits exists they are alsocolimits and vice versa.
If the underlying category is anextensive category, then thecoproduct/product in is given by thedisjoint union in. (See alsothis MO discussion).
More generally, everyvan Kampen colimit in is a (co)limit in — and conversely, this property characterizes van Kampen colimits. (Sobocinski-Heindel 11).
Correspondences may be seen as generalizations ofrelations. A relation is acorrespondence which is(-1)-truncated as amorphism into thecartesian product. See atrelation and atRel for more on this.
When is alocally cartesian closed category, is aclosed bicategory: see there for details.
Spans inFinSet behave like thecategorification ofmatrices with entries in thenatural numbers: for a span of finite sets, thecardinality of thefiber over any two elements and plays the role of the corresponding matrix entry. Under this identification composition of spans indeed corresponds to matrix multiplication. This implies that the category of spans of finite sets is equivalent to theLawvere theory of commutative monoids, that is, to thePROP for the free bicommutativebialgebra. Spans over finite sets is arig category with respect to the tensor products induced by the coproduct and product in FinSet. The coproduct in FinSet remains the coproduct, but the product becomes the bilineartensor product of modules.
TheBurnside category is essentially the category of correspondences inG-sets for afinite group.
Acobordism from to is an example of a cospan in the category ofsmooth manifolds. However, composition of cobordisms is not quite the pushout-composition of these cospans: to make the composition be asmooth manifold again some extra technical aspects must be added (“collars”).
Inprequantum field theory (see there for details), spans ofstacks modeltrajectories offields.
Thecategory of Chow motives has asmorphismsequivalence classes oflinear combinations of spans ofsmoothprojective varieties.
TheWeinstein symplectic category has as morphismsLagrangian correspondences betweensymplectic manifolds.
More generallysymplectic dual pairs are correspondences betweenPoisson manifolds.
Cospans of homomorphisms ofC*-algebras represent morphisms inKK-theory (by Cuntz’ result).
Correspondences offlag manifolds play a role astwistor correspondences, see atSchubert calculus – Correspondences and athorocycle correspondence
TheFourier-Mukai transform is a pull-push operation through correspondences equipped with objects in a cocycle given by an object in aderived category of quasi-coherent sheaves.
Ahypergraph is a span from a set of vertices to a set of (hyper)edges.
A category of correspondences is a refinement of a categoryRel of relations. See there for more.
The terminology “span” appears on page 533 of:
The construction was introduced by Jean Bénabou (as an example of a bicategory) in
Bénabou cites an article by Yoneda (1954) for introducing the concept of span (in the category of categories).
An exposition discussing the role of spans inquantum theory:
The relationship between spans andbimodules is briefly discussed in
The relation tovan Kampen colimits is discussed in
Theuniversal property of categories of spans is due to
and further discussed in:
R. Dawson,Robert Paré,Dorette Pronk,Universal properties of Span, Theory and Appl. of Categories13, 2004, No. 4, 61-85,TAC,MR2005m:18002
R. Dawson,Robert Paré,Dorette Pronk,The span construction, Theory Appl. Categ.24 (2010), No. 13, 302–377,TACMR2720187
Charles Walker?,Universal properties of bicategories of polynomials, Journal of Pure and Applied Algebra 223.9 (2019): 3722-3777.
Charles Walker?,Bicategories of spans as generic bicategories,arXiv:2002.10334 (2020).
See also Theorem 5.2.1 and 5.3.7 of:
The structure of amonoidaltricategory on spans in2-categories is discussed in
Generally, an(∞,n)-category of spans is indicated in section 3.2 of
Last revised on March 25, 2025 at 14:07:56. See thehistory of this page for a list of all contributions to it.