jcreed: (Default)
[personal profile] jcreed
Have been trying to wrestle with a definition of something like a category, but for relations, but not an allegory, exactly either.

The goal is to try to banish the "two-ness" of composition present in category, allegory, or even multicategory --- in that a multicategory still has a notion of (many objects in the) domain of a morphism, and codomain of a morphism, as two distinct things.

My attempt so far is to say

Suppose you have a category C and a functor [-] : CopCat, and a cospan (fi : Ci → C | i ∈ 1..n) in C. Define an amalgamation of a sequence of objects (xi ∈ [Ci] | i ∈ 1..n) to be an object x ∈ [C] together with morphisms (gi : [fi](x) → xi ∈ [Ci] | i ∈ 1..n). There is an evident notion of morphisms between amalgamations of the same sequence of objects. A composite of a sequence of objects is a terminal object in the category of amalgamations of that sequence of objects.

A relational structure on C is a functor [-] : CopCat such that all composites exist, and all [C] preserve them.

The motivating example of this definition goes like this: pick a set of names of types, S, with a function El : S → Set that gives the meaning of each of those names. Let C be S → Set. What's an object L of S → Set look like? It's essentially a multiset over S; it assigns a multiplicity to each element s ∈ S. So let [L] be the category whose objects are relations with arity L, that is, subsets of Π s ∈ S . (L(s) → El(s)), and whose morphisms are inclusions of relations. The morphism part of [-] realizes projection of columns out of relations, and duplication of existing columns, according to when morphisms in S → Set drop and coalesce domain values in the codomain, respectively. Composition defined above ends up being composition of relations.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

jcreed: (Default)
jcreed

August 2017

S M T W T F S
  12 3 4 5
6 78 9 101112
13 141516171819
20 21 2223 2425 26
27 28 2930 31  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 27th, 2025 09:56 am
Powered by Dreamwidth Studios