Categorical bridge

In category theory, a discipline in mathematics, a bridge between categories 𝔸 and 𝔹 is a category ℍ such that 𝔸 and 𝔹 are disjoint full subcategories of ℍ and Obℍ = Ob𝔸 βˆͺβ€…Ob𝔹. Morphisms of 𝔸 and 𝔹 are called homomorphisms and the rest (passing between 𝔸 and 𝔹) are called heteromorphisms.

In notation: ℍ : 𝔸 ⇋ 𝔹.

As an example, the empty bridge between two categories is just their disjoint union.

A directed bridge from 𝔸 to 𝔹 is a bridge without arrows of the form B → A (where Bβ€„βˆˆβ€„Ob𝔹 and Aβ€„βˆˆβ€„Ob𝔸). We can easily see that directed bridges and profunctors (i.e. functors F : 𝔸op × 𝔹 → Set) are eventually the same [by identifying F(A,B) with the set of heteromorphisms A → B].

Bridge morphism

A morphism between bridges ℍ, 𝕂 : 𝔸 ⇋ 𝔹 is just a functor φ : ℍ → 𝕂 which is identical on both 𝔸 and 𝔹, i.e. Ο†βˆ£π”Έβ€„= id𝔸 and Ο†βˆ£π”Ήβ€„= id𝔹.

Profunctors (directed bridges)

...