nLab cospan in simplicial type theory

Context

(,1)(\infty,1)-Category theory

Internal (,1)(\infty,1)-Categories

Directed homotopy type theory

Contents

Idea

The concept of a cospan in simplicial type theory. Note that in the context of simplicial type theory, cospans make sense for any type, not just the Segal types.

Definition

Using morphisms

Let AA be a type in simplicial type theory, and let x:Ax:A and y:Ay:A be two elements in AA. A cospan of x:Ax:A and y:Ay:A is a record consisting of

  • an element z:Az:A,

  • a morphism p x:hom A(y,z)p_x:\mathrm{hom}_A(y, z),

  • and a morphism p y:hom A(x,z)p_y:\mathrm{hom}_A(x, z),

The type of cospans cospan A(x,y)\mathrm{cospan}_A(x, y) between x:Ax:A and y:Ay:A is then the respective record type.

Using functions from shapes

Let Λ 0 2\Lambda^2_0 denote the (2,0)(2,0)-horn type.

Let AA be a type in simplicial type theory, and let x:Ax:A and y:Ay:A be two elements in AA. A cospan of x:Ax:A and y:Ay:A is a record consisting of

  • a function f:Λ 0 2Af:\Lambda^2_0 \to A,

  • an identification p x:f(0,0)=xp_x:f(0, 0) = x,

  • and an identification p y:f(0,1)=yp_y:f(0, 1) = y,

The type of cospans cospan A(x,y)\mathrm{cospan}_A(x, y) between x:Ax:A and y:Ay:A is then the respective record type.

Right quotients

A right quotient of a cospan g:hom A(y,z)g:\mathrm{hom}_A(y, z) and h:hom A(x,z)h:\mathrm{hom}_A(x, z) is a morphism f:hom A(x,y)f:\mathrm{hom}_A(x, y) such that hh is the unique composite of ff and gg:

rightQuotient(g,h) f:hom A(x,y)isUniqueComposite(f,g,h)\mathrm{rightQuotient}(g, h) \coloneqq \sum_{f:\mathrm{hom}_A(x, y)} \mathrm{isUniqueComposite}(f, g, h)

The cospan (g,h)(g, h) is said to be right divisible if it has a right quotient.

If AA is a Segal type, this is equivalent to the usual definition of a right quotient

rightQuotient(g,h) f:hom A(x,y)gf=h\mathrm{rightQuotient}(g, h) \coloneqq \sum_{f:\mathrm{hom}_A(x, y)} g \circ f = h

Given a morphism f:hom A(x,y)f:\mathrm{hom}_A(x, y), the cospan (f,id y)(f, \mathrm{id}_y) is always right divisible with right quotient ff. A section is a right quotient of the span (id y,f)(\mathrm{id}_y, f).

Morphisms of cospans

Using morphisms

Given elements x:Ax:A and y:Ay:A and cospans f:cospan A(x,y)f:\mathrm{cospan}_A(x, y) and g:cospan A(x,y)g:\mathrm{cospan}_A(x, y), a morphism of cospans between ff and gg is a record consisting of

  • a morphism h:hom A(pr 1(f),pr 1(y))h:\mathrm{hom}_A(\mathrm{pr}_1(f), \mathrm{pr}_1(y))

  • a witness that pr 2(g)\mathrm{pr}_2(g) is the unique composite of hh and pr 2(f)\mathrm{pr}_2(f) and hh

  • a witness that pr 3(g)\mathrm{pr}_3(g) is the unique composite of hh and pr 3(f)\mathrm{pr}_3(f).

The type of morphisms of spans homcospan A(x,y,f,g)\mathrm{homcospan}_A(x, y, f, g) is then the respective record type.

If AA is a Segal type, then the record consists of fields

  • a morphism h:hom A(pr 1(f),pr 1(y))h:\mathrm{hom}_A(\mathrm{pr}_1(f), \mathrm{pr}_1(y))

  • an identification pr 2(g)=hpr 2(f)h\mathrm{pr}_2(g) = h \circ \mathrm{pr}_2(f) \circ h

  • an identification pr 3(g)=hpr 3(f)\mathrm{pr}_3(g) = h \circ \mathrm{pr}_3(f).

which is the usual definition of a morphism of cospans in (infinity,1)-category theory

Using functions from shapes

Given elements x:Ax:A and y:Ay:A and cospans f:cospan A(x,y)f:\mathrm{cospan}_A(x, y) and g:cospan A(x,y)g:\mathrm{cospan}_A(x, y), a morphism of cospans between ff and gg is a record consisting of

  • a function h:𝕀Ah:\mathbb{I} \to A

  • an identification p x:h(0)=pr 1(f)p_x:h(0) = \mathrm{pr}_1(f),

  • an identification p y:h(1)=pr 1(g)p_y:h(1) = \mathrm{pr}_1(g),

  • a function j:Δ 2Aj:\Delta^2 \to A,

  • a witness that jj is the unique element of the fiber of the canonical function (Δ 2A)(Λ 0 2A)(\Delta^2 \to A) \to (\Lambda^2_0 \to A) at ff

  • a witness that jj is the unique element of the fiber of the canonical function (Δ 2A)(Λ 0 2A)(\Delta^2 \to A) \to (\Lambda^2_0 \to A) at gg

The type of morphisms of cospans homcospan A(x,y,f,g)\mathrm{homcospan}_A(x, y, f, g) is then the respective record type.

Last revised on April 11, 2025 at 05:43:22. See the history of this page for a list of all contributions to it.