Morphisms of cospans
Content created by Fredrik Bakke, Egbert Rijke and Jonathan Prieto-Cubides.
Created on 2022-07-25.
Last modified on 2026-02-12.
module foundation.morphisms-cospans where
Imports
open import foundation.cartesian-product-types open import foundation.cospans open import foundation.dependent-pair-types open import foundation.universe-levels open import foundation-core.commuting-triangles-of-maps
Idea
Consider two cospans s := (X , f , g) and
t := (Y , h , k) from A to B. A
morphism of cospans¶ from s to t consists of a
map u : X → Y equipped with homotopies
witnessing that the two triangles
u u
X ----> Y X ----> Y
\ / \ /
f \ / h g \ / k
∨ ∨ ∨ ∨
A B
Definitions
Morphisms of cospans
module _ {l1 l2 l3 l4 : Level} {A : UU l1} {B : UU l2} (s : cospan l3 A B) (t : cospan l4 A B) where left-coherence-hom-cospan : (cospanning-type-cospan s → cospanning-type-cospan t) → UU (l1 ⊔ l4) left-coherence-hom-cospan h = coherence-triangle-maps (left-map-cospan t) h (left-map-cospan s) right-coherence-hom-cospan : (cospanning-type-cospan s → cospanning-type-cospan t) → UU (l2 ⊔ l4) right-coherence-hom-cospan h = coherence-triangle-maps (right-map-cospan t) h (right-map-cospan s) coherence-hom-cospan : (cospanning-type-cospan s → cospanning-type-cospan t) → UU (l1 ⊔ l2 ⊔ l4) coherence-hom-cospan f = left-coherence-hom-cospan f × right-coherence-hom-cospan f hom-cospan : UU (l1 ⊔ l2 ⊔ l3 ⊔ l4) hom-cospan = Σ ( cospanning-type-cospan s → cospanning-type-cospan t) ( coherence-hom-cospan) module _ {l1 l2 l3 l4 : Level} {A : UU l1} {B : UU l2} (s : cospan l3 A B) (t : cospan l4 A B) (f : hom-cospan s t) where map-hom-cospan : cospanning-type-cospan s → cospanning-type-cospan t map-hom-cospan = pr1 f left-triangle-hom-cospan : left-coherence-hom-cospan s t map-hom-cospan left-triangle-hom-cospan = pr1 (pr2 f) right-triangle-hom-cospan : right-coherence-hom-cospan s t map-hom-cospan right-triangle-hom-cospan = pr2 (pr2 f)
Recent changes
- 2026-02-12. Fredrik Bakke. Equivalences of cospan diagrams (#1736).
- 2026-02-12. Fredrik Bakke. Operations on cospans (#1735).
- 2024-04-25. Fredrik Bakke. chore: Fix arrowheads in character diagrams (#1124).
- 2024-01-28. Egbert Rijke. Span diagrams (#1007).
- 2023-10-16. Fredrik Bakke and Egbert Rijke. Sequential limits (#839).