Category of Multisets and Spans











up vote
1
down vote

favorite












I have been thinking about multisets for a while. These are sets where elements can repeat, so $S ={ a,a,b,c,b}$ is a multiset on the set $A = {a,b,c}$.



I have also been looking into morphisms between multisets. Take two multisets $S_A, S_B$ with underlying sets $A, B$. I would like to define a morphism between multisets $S_A, S_B$ as a span on the underlying sets, so $f = A leftarrow C rightarrow B$, and $f: S_A rightarrow S_B$.



Here is how I am defining the morphisms. Take a multiset $S_A$ and let $a_i$ be one of the terms, likewise for $S_B$ and $b_j$. We have an indexing set $C$ and let the $f, g$ be arms of a span so $f: C rightarrow A$ and $g: C rightarrow B$. Let $c_i in C$ and let $f(c_i)$ be the set element of term $a_i$, likewise for $g(c_j)$. I am getting the feeling this is impossible, but it completely makes sense in terms of three columns in a database, $A, B, C$. I guess it doesn't make sense to talk about a "term" of a multiset and its corresponding "set element". The category of algebras for finite multisets is $mathbb{N}$-modules, so they are like vectors spaces where we have terms. You can define a a vector via a span between the set of basis elements and the field, likewise for a module with a semiring.



I am not sure how to define span composition. I want a category of multisets with morphisms as defined. Does there exist a composition that gives such a category? I realize there are many options for defining the composition, and I really don't know which one I want. Is there a body of work that focuses on what all the different choices of composition mean for this particular problem?



Does my definition of the objects and morphisms define a category?










share|cite|improve this question




















  • 4




    Your definition of the morphisms is bizarre: you're saying that $S_A$ and $S_B$ don't matter at all for defining a morphism $S_Ato S_B$, only the sets $A$ and $B$ matter??
    – Eric Wofsey
    Nov 14 at 22:59










  • @EricWofsey Hi, I tried to give my intuition on how the morphisms work. It is based on the idea that you can describe a vector via a span between basis elements and the field, or semiring multiplier.
    – Ben Sprott
    Nov 15 at 15:31

















up vote
1
down vote

favorite












I have been thinking about multisets for a while. These are sets where elements can repeat, so $S ={ a,a,b,c,b}$ is a multiset on the set $A = {a,b,c}$.



I have also been looking into morphisms between multisets. Take two multisets $S_A, S_B$ with underlying sets $A, B$. I would like to define a morphism between multisets $S_A, S_B$ as a span on the underlying sets, so $f = A leftarrow C rightarrow B$, and $f: S_A rightarrow S_B$.



Here is how I am defining the morphisms. Take a multiset $S_A$ and let $a_i$ be one of the terms, likewise for $S_B$ and $b_j$. We have an indexing set $C$ and let the $f, g$ be arms of a span so $f: C rightarrow A$ and $g: C rightarrow B$. Let $c_i in C$ and let $f(c_i)$ be the set element of term $a_i$, likewise for $g(c_j)$. I am getting the feeling this is impossible, but it completely makes sense in terms of three columns in a database, $A, B, C$. I guess it doesn't make sense to talk about a "term" of a multiset and its corresponding "set element". The category of algebras for finite multisets is $mathbb{N}$-modules, so they are like vectors spaces where we have terms. You can define a a vector via a span between the set of basis elements and the field, likewise for a module with a semiring.



I am not sure how to define span composition. I want a category of multisets with morphisms as defined. Does there exist a composition that gives such a category? I realize there are many options for defining the composition, and I really don't know which one I want. Is there a body of work that focuses on what all the different choices of composition mean for this particular problem?



Does my definition of the objects and morphisms define a category?










share|cite|improve this question




















  • 4




    Your definition of the morphisms is bizarre: you're saying that $S_A$ and $S_B$ don't matter at all for defining a morphism $S_Ato S_B$, only the sets $A$ and $B$ matter??
    – Eric Wofsey
    Nov 14 at 22:59










  • @EricWofsey Hi, I tried to give my intuition on how the morphisms work. It is based on the idea that you can describe a vector via a span between basis elements and the field, or semiring multiplier.
    – Ben Sprott
    Nov 15 at 15:31















up vote
1
down vote

favorite









up vote
1
down vote

favorite











I have been thinking about multisets for a while. These are sets where elements can repeat, so $S ={ a,a,b,c,b}$ is a multiset on the set $A = {a,b,c}$.



I have also been looking into morphisms between multisets. Take two multisets $S_A, S_B$ with underlying sets $A, B$. I would like to define a morphism between multisets $S_A, S_B$ as a span on the underlying sets, so $f = A leftarrow C rightarrow B$, and $f: S_A rightarrow S_B$.



Here is how I am defining the morphisms. Take a multiset $S_A$ and let $a_i$ be one of the terms, likewise for $S_B$ and $b_j$. We have an indexing set $C$ and let the $f, g$ be arms of a span so $f: C rightarrow A$ and $g: C rightarrow B$. Let $c_i in C$ and let $f(c_i)$ be the set element of term $a_i$, likewise for $g(c_j)$. I am getting the feeling this is impossible, but it completely makes sense in terms of three columns in a database, $A, B, C$. I guess it doesn't make sense to talk about a "term" of a multiset and its corresponding "set element". The category of algebras for finite multisets is $mathbb{N}$-modules, so they are like vectors spaces where we have terms. You can define a a vector via a span between the set of basis elements and the field, likewise for a module with a semiring.



I am not sure how to define span composition. I want a category of multisets with morphisms as defined. Does there exist a composition that gives such a category? I realize there are many options for defining the composition, and I really don't know which one I want. Is there a body of work that focuses on what all the different choices of composition mean for this particular problem?



Does my definition of the objects and morphisms define a category?










share|cite|improve this question















I have been thinking about multisets for a while. These are sets where elements can repeat, so $S ={ a,a,b,c,b}$ is a multiset on the set $A = {a,b,c}$.



I have also been looking into morphisms between multisets. Take two multisets $S_A, S_B$ with underlying sets $A, B$. I would like to define a morphism between multisets $S_A, S_B$ as a span on the underlying sets, so $f = A leftarrow C rightarrow B$, and $f: S_A rightarrow S_B$.



Here is how I am defining the morphisms. Take a multiset $S_A$ and let $a_i$ be one of the terms, likewise for $S_B$ and $b_j$. We have an indexing set $C$ and let the $f, g$ be arms of a span so $f: C rightarrow A$ and $g: C rightarrow B$. Let $c_i in C$ and let $f(c_i)$ be the set element of term $a_i$, likewise for $g(c_j)$. I am getting the feeling this is impossible, but it completely makes sense in terms of three columns in a database, $A, B, C$. I guess it doesn't make sense to talk about a "term" of a multiset and its corresponding "set element". The category of algebras for finite multisets is $mathbb{N}$-modules, so they are like vectors spaces where we have terms. You can define a a vector via a span between the set of basis elements and the field, likewise for a module with a semiring.



I am not sure how to define span composition. I want a category of multisets with morphisms as defined. Does there exist a composition that gives such a category? I realize there are many options for defining the composition, and I really don't know which one I want. Is there a body of work that focuses on what all the different choices of composition mean for this particular problem?



Does my definition of the objects and morphisms define a category?







category-theory multisets






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited 8 hours ago

























asked Nov 14 at 22:01









Ben Sprott

427312




427312








  • 4




    Your definition of the morphisms is bizarre: you're saying that $S_A$ and $S_B$ don't matter at all for defining a morphism $S_Ato S_B$, only the sets $A$ and $B$ matter??
    – Eric Wofsey
    Nov 14 at 22:59










  • @EricWofsey Hi, I tried to give my intuition on how the morphisms work. It is based on the idea that you can describe a vector via a span between basis elements and the field, or semiring multiplier.
    – Ben Sprott
    Nov 15 at 15:31
















  • 4




    Your definition of the morphisms is bizarre: you're saying that $S_A$ and $S_B$ don't matter at all for defining a morphism $S_Ato S_B$, only the sets $A$ and $B$ matter??
    – Eric Wofsey
    Nov 14 at 22:59










  • @EricWofsey Hi, I tried to give my intuition on how the morphisms work. It is based on the idea that you can describe a vector via a span between basis elements and the field, or semiring multiplier.
    – Ben Sprott
    Nov 15 at 15:31










4




4




Your definition of the morphisms is bizarre: you're saying that $S_A$ and $S_B$ don't matter at all for defining a morphism $S_Ato S_B$, only the sets $A$ and $B$ matter??
– Eric Wofsey
Nov 14 at 22:59




Your definition of the morphisms is bizarre: you're saying that $S_A$ and $S_B$ don't matter at all for defining a morphism $S_Ato S_B$, only the sets $A$ and $B$ matter??
– Eric Wofsey
Nov 14 at 22:59












@EricWofsey Hi, I tried to give my intuition on how the morphisms work. It is based on the idea that you can describe a vector via a span between basis elements and the field, or semiring multiplier.
– Ben Sprott
Nov 15 at 15:31






@EricWofsey Hi, I tried to give my intuition on how the morphisms work. It is based on the idea that you can describe a vector via a span between basis elements and the field, or semiring multiplier.
– Ben Sprott
Nov 15 at 15:31

















active

oldest

votes











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2998883%2fcategory-of-multisets-and-spans%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2998883%2fcategory-of-multisets-and-spans%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Index of /

Tribalistas

Listed building