In what manner are functions sets?












5












$begingroup$


From Introduction to Topology, Bert Mendelson, ed. 3, page 15:




A function may be viewed as a special case of what is called a relation.




Yet, a relation is a set




A relation $R$ on a set $E$ is a subset of $Etimes E$.




while a function is a correspondence or rule. Is then a function also a set?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    How do you define "rule?"
    $endgroup$
    – Thomas Andrews
    Aug 30 '13 at 13:57
















5












$begingroup$


From Introduction to Topology, Bert Mendelson, ed. 3, page 15:




A function may be viewed as a special case of what is called a relation.




Yet, a relation is a set




A relation $R$ on a set $E$ is a subset of $Etimes E$.




while a function is a correspondence or rule. Is then a function also a set?










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    How do you define "rule?"
    $endgroup$
    – Thomas Andrews
    Aug 30 '13 at 13:57














5












5








5





$begingroup$


From Introduction to Topology, Bert Mendelson, ed. 3, page 15:




A function may be viewed as a special case of what is called a relation.




Yet, a relation is a set




A relation $R$ on a set $E$ is a subset of $Etimes E$.




while a function is a correspondence or rule. Is then a function also a set?










share|cite|improve this question











$endgroup$




From Introduction to Topology, Bert Mendelson, ed. 3, page 15:




A function may be viewed as a special case of what is called a relation.




Yet, a relation is a set




A relation $R$ on a set $E$ is a subset of $Etimes E$.




while a function is a correspondence or rule. Is then a function also a set?







elementary-set-theory functions






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Aug 30 '13 at 13:48









rschwieb

107k12103251




107k12103251










asked Aug 30 '13 at 13:38









DoubtDoubt

753321




753321








  • 1




    $begingroup$
    How do you define "rule?"
    $endgroup$
    – Thomas Andrews
    Aug 30 '13 at 13:57














  • 1




    $begingroup$
    How do you define "rule?"
    $endgroup$
    – Thomas Andrews
    Aug 30 '13 at 13:57








1




1




$begingroup$
How do you define "rule?"
$endgroup$
– Thomas Andrews
Aug 30 '13 at 13:57




$begingroup$
How do you define "rule?"
$endgroup$
– Thomas Andrews
Aug 30 '13 at 13:57










4 Answers
4






active

oldest

votes


















13












$begingroup$

Functions correspond to an abstract rule. Not to something like $f(x)=x+3$. This abstract rule need not be expressible, or even something that you can imagine. Functions, just like any other mathematical object, can be represented as a set. For example, real numbers can be thought of as sets.



Functions are represented as sets of ordered pairs. When we say that $f$ is a function from $X$ into $Y$ then we mean to say that $f$ is a set of ordered pairs $(x,y)$ such that $xin X$ and $yin Y$, and the following holds:




  1. For every $xin X$ there is some $yin Y$ such that $(x,y)in f$.

  2. If $(x,y)in f$ and $(x,y')in f$ then $y=y'$.


When the latter occurs we can simply replace the $y$ by $f(x)$.



For example, ${(0,0),(1,0)}$ is a function from ${0,1}$ into ${0}$.






share|cite|improve this answer









$endgroup$









  • 3




    $begingroup$
    +1 for "can be represented as a set" rather than "is a set"!
    $endgroup$
    – Peter Smith
    Aug 30 '13 at 13:54






  • 1




    $begingroup$
    @Stefan: First of all, it's a matter of usability. If I want to define a class of functions, say all functions from $kappa$ into $sf Ord$ (the class of all ordinals) then there is no shared codomain to all functions that I can just quantify over all $fcolonkappato X$. And these sort of classes appear frequently in set theory. As for the second question, no. We don't define everything as sets. The definitions are abstract and we just interpret them as sets.
    $endgroup$
    – Asaf Karagila
    Aug 31 '13 at 22:21










  • $begingroup$
    @AsafKaragila : Thanks. If I were just defining one function from set $X$ to set $Y$ (I'm not talking about classes of functions), like in your simple example, I would rather ''represent'' it as an ordered triple $(X, Y, S)$ where $S$ is a subset of $X times Y$ with the usual requirements. The inclusion of $Y$ is so you know what the codomain is. The inclusion of $X$ is not really necessary but looks nice. I don't know if this is standard.
    $endgroup$
    – Stefan Smith
    Aug 31 '13 at 22:37












  • $begingroup$
    @Stefan: But what good is one function? Is all you ever use in mathematics is one function? Why was set theory developed as a foundation for mathematics anyway? So we can talk about sets of objects with certain properties. If a certain definition makes it harder to define and discuss a certain collection, and another definition is easier, then why not use the latter? As for the definition as a triplet, that's the Bourbaki approach and it's standard in many places in mathematics (there's a nice MO thread about it, I'll look for the link).
    $endgroup$
    – Asaf Karagila
    Aug 31 '13 at 22:40






  • 1




    $begingroup$
    @Stefan: mathoverflow.net/questions/30381/definition-of-function
    $endgroup$
    – Asaf Karagila
    Sep 1 '13 at 1:08



















8












$begingroup$

Yes, a function $f:Xto Y$ can be modeled by a set.



And yes, a function can be thought of as a special case of a relation, that is, a subset $Rsubseteq Xtimes Y$. ("Function" after all can be thought of as shorthand for "functional relation.")



This is just reexpressing $f(x)=y$ as $(x,y)in R$. So, the regular "function-is-a-rule" picture is equivalent to thinking of a subset $fsubseteq Xtimes Y$, where the set $f$ has special properties that make it a function. (The properties you are probably familiar with, I imagine.)



Relations don't have to be on the same set, as you gave as an example. However, when people say "relation on $E$", that is just shorthand for "relation from $E$ to $E$."






share|cite|improve this answer











$endgroup$









  • 3




    $begingroup$
    +1 for "can be modelled by a set" rather than "is a set"!
    $endgroup$
    – Peter Smith
    Aug 30 '13 at 13:53










  • $begingroup$
    @rschweib : I have the same comment for you that I did for Asaf. If you define, or "think of" $f$ as a subset of $X times Y$, with no other information, then if you give me such a function, I can't tell what the codomain is.
    $endgroup$
    – Stefan Smith
    Aug 31 '13 at 22:21










  • $begingroup$
    Dear @StefanSmith : $f$ isn't just any subset, it's a subset with properties that make it a function. Namely, for every $xin X$ there is a pair in $f$ with $x$ in the first coordinate, and there are not two distinct pairs sharing the same first coordinate. The domain is $X$ and the codomain is $Y$.
    $endgroup$
    – rschwieb
    Aug 31 '13 at 23:19












  • $begingroup$
    @rschwieb : Yes, I know $f$ has to have certain properties, I just mean that it is nice to know what the codomain is. If you show me that subset of $X times Y$ and nothing else, I can't tell what the codomain is. Please see Asaf's comments above.
    $endgroup$
    – Stefan Smith
    Sep 2 '13 at 20:44










  • $begingroup$
    @StefanSmith Ah, I see what you mean now. Mainly, I don't think this is a real issue, because when you talk about $f$ being a subset of something, you have to say a subset of what, and then you will say "$Xtimes Y$" and the codomain will be there. Otherwise it's just a set of pairs, and yes, I would agree with you that the codomain would be unspecified in that case. I'm just not convinced people would present it as a set and not a subset. Thanks for helping me see your idea.
    $endgroup$
    – rschwieb
    Sep 2 '13 at 23:23





















5












$begingroup$

Others have said, clearly and nicely, how to represent or model functions by sets.



And that's the right way to put it. Here are three reasons not to say that functions are sets.




  1. It might be conventional to treat the binary function $f(x) = y$ as corresponding to a certain set of ordered pairs $(x, y)$, and then treat the ordered pairs by the Weiner-Kuratowski construction. But at both steps we are making arbitrary choices from a range of possibilities. You could use the set of ordered pairs (y, x) [I've seen that done], and you could choose a different set-theoretic representation of ordered pairs [I've seen that done]. Since the conventional association of the function with a set involves arbitrary choices, there isn't a unique right way of doing it: none, then, can be reasonably said to reveal what a function really is. We are in the business of representing (relative to some chosen scheme of representation).


  2. Some functions are "too big" to have corresponding sets. Take the function that maps a set to its singleton. The ordered pairs $(x, {x})$ are too many to form a set. If a function is too big to have a corresponding set, it can't be that set.


  3. Most importantly, it would be a type confusion to identify a function with an object like a set. A function maps some object(s) to an object. In terms of Frege's nice metaphor, functions are "unsaturated", come with one or more slots waiting to be filled (where filling the single slot in, say, the unary numerical function the square of ... gives us a number). In modern terminology, functions have an intrinsic arity. By contrast, objects aren't unsaturated, don't have slots waiting to be filled, don't have arities, don't do mapping. And what applies to objects in general applies to those objects which are sets in particular. So functions aren't sets.







share|cite|improve this answer











$endgroup$













  • $begingroup$
    @Peter : Thank you for answering an obvious question. Please forgive my ignorance, but I'm not sure I understand your point #2. The domain of your "function" from #2 is the "set of all sets", and from what I have heard, there is no such thing as the set of all sets, because if you assume such a thing exists, it leads to contradictions. So the domain of your "function" in #2 is not a set. Isn't the domain of any function supposed to be a set? I am not a logician, so please correct any incorrect assertions I may have made.
    $endgroup$
    – Stefan Smith
    Aug 31 '13 at 22:28










  • $begingroup$
    One man's modus ponens is another man's modus tollens. It's a mistake to suppose that every function has a set as domain-qua-set, as this example shows. We should think of the domain of a function as being the objects (plural) for which the function is defined: it is a further question whether those objects can form a set. Uusally they do -- but not always.
    $endgroup$
    – Peter Smith
    Sep 1 '13 at 16:10












  • $begingroup$
    @PeterSmith : thank you. I ask you again to forgive any ignorance I display. I consulted Wikipedia (I've never found an actual mistake there) and they stated a function ''is a relation between a set of inputs'' etc. I encountered a bit of category theory in grad school. Wasn't the idea of a functor developed so you could define mappings between categories (not just sets)? So wouldn't most people call your ''function'' from your #2 a functor, since its domain is the category of all sets?
    $endgroup$
    – Stefan Smith
    Sep 2 '13 at 20:51










  • $begingroup$
    Hello Dr. Smith. Could you please clarify your second point? Why can't ${ (n, {n })| n in mathbb{N} }$ be a set?
    $endgroup$
    – Ovi
    Jun 9 '18 at 2:09












  • $begingroup$
    Of course ${ (n, {n })| n in mathbb{N} }$ is a set! The point I was making is that the pairs $(x, {x })$, for $x$ any set, are too many to be a set.
    $endgroup$
    – Peter Smith
    Jun 9 '18 at 15:20





















2












$begingroup$

Let's begin at the other end.



A function can be regarded as a rule for assigning a unique value $f(x)$ to each $x$. Let's construct a set $F$ of all the ordered pairs $(x,f(x))$.



If $f:Xto Y$ we need every $xin X$ to have a value $f(x)$. So for each $x$ there is an ordered pair $(x,y)$ in the set for some $yin Y$. We also need $f(x)$ to be uniquely defined by $x$ so that whenever the set contains $(x,y)$ and $(x,z)$ we have $y=z$. In this way there is a unique $f(x)$ for each $x$ as we require.



The ordered pairs can be taken as elements of $X times Y$ so that $Fsubset X times Y$



If we have a set of ordered pairs with the required properties, we can work backwards and see that this gives us back our original idea of a function.






share|cite|improve this answer









$endgroup$













    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',
    autoActivateHeartbeat: false,
    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%2f479936%2fin-what-manner-are-functions-sets%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    4 Answers
    4






    active

    oldest

    votes








    4 Answers
    4






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    13












    $begingroup$

    Functions correspond to an abstract rule. Not to something like $f(x)=x+3$. This abstract rule need not be expressible, or even something that you can imagine. Functions, just like any other mathematical object, can be represented as a set. For example, real numbers can be thought of as sets.



    Functions are represented as sets of ordered pairs. When we say that $f$ is a function from $X$ into $Y$ then we mean to say that $f$ is a set of ordered pairs $(x,y)$ such that $xin X$ and $yin Y$, and the following holds:




    1. For every $xin X$ there is some $yin Y$ such that $(x,y)in f$.

    2. If $(x,y)in f$ and $(x,y')in f$ then $y=y'$.


    When the latter occurs we can simply replace the $y$ by $f(x)$.



    For example, ${(0,0),(1,0)}$ is a function from ${0,1}$ into ${0}$.






    share|cite|improve this answer









    $endgroup$









    • 3




      $begingroup$
      +1 for "can be represented as a set" rather than "is a set"!
      $endgroup$
      – Peter Smith
      Aug 30 '13 at 13:54






    • 1




      $begingroup$
      @Stefan: First of all, it's a matter of usability. If I want to define a class of functions, say all functions from $kappa$ into $sf Ord$ (the class of all ordinals) then there is no shared codomain to all functions that I can just quantify over all $fcolonkappato X$. And these sort of classes appear frequently in set theory. As for the second question, no. We don't define everything as sets. The definitions are abstract and we just interpret them as sets.
      $endgroup$
      – Asaf Karagila
      Aug 31 '13 at 22:21










    • $begingroup$
      @AsafKaragila : Thanks. If I were just defining one function from set $X$ to set $Y$ (I'm not talking about classes of functions), like in your simple example, I would rather ''represent'' it as an ordered triple $(X, Y, S)$ where $S$ is a subset of $X times Y$ with the usual requirements. The inclusion of $Y$ is so you know what the codomain is. The inclusion of $X$ is not really necessary but looks nice. I don't know if this is standard.
      $endgroup$
      – Stefan Smith
      Aug 31 '13 at 22:37












    • $begingroup$
      @Stefan: But what good is one function? Is all you ever use in mathematics is one function? Why was set theory developed as a foundation for mathematics anyway? So we can talk about sets of objects with certain properties. If a certain definition makes it harder to define and discuss a certain collection, and another definition is easier, then why not use the latter? As for the definition as a triplet, that's the Bourbaki approach and it's standard in many places in mathematics (there's a nice MO thread about it, I'll look for the link).
      $endgroup$
      – Asaf Karagila
      Aug 31 '13 at 22:40






    • 1




      $begingroup$
      @Stefan: mathoverflow.net/questions/30381/definition-of-function
      $endgroup$
      – Asaf Karagila
      Sep 1 '13 at 1:08
















    13












    $begingroup$

    Functions correspond to an abstract rule. Not to something like $f(x)=x+3$. This abstract rule need not be expressible, or even something that you can imagine. Functions, just like any other mathematical object, can be represented as a set. For example, real numbers can be thought of as sets.



    Functions are represented as sets of ordered pairs. When we say that $f$ is a function from $X$ into $Y$ then we mean to say that $f$ is a set of ordered pairs $(x,y)$ such that $xin X$ and $yin Y$, and the following holds:




    1. For every $xin X$ there is some $yin Y$ such that $(x,y)in f$.

    2. If $(x,y)in f$ and $(x,y')in f$ then $y=y'$.


    When the latter occurs we can simply replace the $y$ by $f(x)$.



    For example, ${(0,0),(1,0)}$ is a function from ${0,1}$ into ${0}$.






    share|cite|improve this answer









    $endgroup$









    • 3




      $begingroup$
      +1 for "can be represented as a set" rather than "is a set"!
      $endgroup$
      – Peter Smith
      Aug 30 '13 at 13:54






    • 1




      $begingroup$
      @Stefan: First of all, it's a matter of usability. If I want to define a class of functions, say all functions from $kappa$ into $sf Ord$ (the class of all ordinals) then there is no shared codomain to all functions that I can just quantify over all $fcolonkappato X$. And these sort of classes appear frequently in set theory. As for the second question, no. We don't define everything as sets. The definitions are abstract and we just interpret them as sets.
      $endgroup$
      – Asaf Karagila
      Aug 31 '13 at 22:21










    • $begingroup$
      @AsafKaragila : Thanks. If I were just defining one function from set $X$ to set $Y$ (I'm not talking about classes of functions), like in your simple example, I would rather ''represent'' it as an ordered triple $(X, Y, S)$ where $S$ is a subset of $X times Y$ with the usual requirements. The inclusion of $Y$ is so you know what the codomain is. The inclusion of $X$ is not really necessary but looks nice. I don't know if this is standard.
      $endgroup$
      – Stefan Smith
      Aug 31 '13 at 22:37












    • $begingroup$
      @Stefan: But what good is one function? Is all you ever use in mathematics is one function? Why was set theory developed as a foundation for mathematics anyway? So we can talk about sets of objects with certain properties. If a certain definition makes it harder to define and discuss a certain collection, and another definition is easier, then why not use the latter? As for the definition as a triplet, that's the Bourbaki approach and it's standard in many places in mathematics (there's a nice MO thread about it, I'll look for the link).
      $endgroup$
      – Asaf Karagila
      Aug 31 '13 at 22:40






    • 1




      $begingroup$
      @Stefan: mathoverflow.net/questions/30381/definition-of-function
      $endgroup$
      – Asaf Karagila
      Sep 1 '13 at 1:08














    13












    13








    13





    $begingroup$

    Functions correspond to an abstract rule. Not to something like $f(x)=x+3$. This abstract rule need not be expressible, or even something that you can imagine. Functions, just like any other mathematical object, can be represented as a set. For example, real numbers can be thought of as sets.



    Functions are represented as sets of ordered pairs. When we say that $f$ is a function from $X$ into $Y$ then we mean to say that $f$ is a set of ordered pairs $(x,y)$ such that $xin X$ and $yin Y$, and the following holds:




    1. For every $xin X$ there is some $yin Y$ such that $(x,y)in f$.

    2. If $(x,y)in f$ and $(x,y')in f$ then $y=y'$.


    When the latter occurs we can simply replace the $y$ by $f(x)$.



    For example, ${(0,0),(1,0)}$ is a function from ${0,1}$ into ${0}$.






    share|cite|improve this answer









    $endgroup$



    Functions correspond to an abstract rule. Not to something like $f(x)=x+3$. This abstract rule need not be expressible, or even something that you can imagine. Functions, just like any other mathematical object, can be represented as a set. For example, real numbers can be thought of as sets.



    Functions are represented as sets of ordered pairs. When we say that $f$ is a function from $X$ into $Y$ then we mean to say that $f$ is a set of ordered pairs $(x,y)$ such that $xin X$ and $yin Y$, and the following holds:




    1. For every $xin X$ there is some $yin Y$ such that $(x,y)in f$.

    2. If $(x,y)in f$ and $(x,y')in f$ then $y=y'$.


    When the latter occurs we can simply replace the $y$ by $f(x)$.



    For example, ${(0,0),(1,0)}$ is a function from ${0,1}$ into ${0}$.







    share|cite|improve this answer












    share|cite|improve this answer



    share|cite|improve this answer










    answered Aug 30 '13 at 13:47









    Asaf KaragilaAsaf Karagila

    307k33439770




    307k33439770








    • 3




      $begingroup$
      +1 for "can be represented as a set" rather than "is a set"!
      $endgroup$
      – Peter Smith
      Aug 30 '13 at 13:54






    • 1




      $begingroup$
      @Stefan: First of all, it's a matter of usability. If I want to define a class of functions, say all functions from $kappa$ into $sf Ord$ (the class of all ordinals) then there is no shared codomain to all functions that I can just quantify over all $fcolonkappato X$. And these sort of classes appear frequently in set theory. As for the second question, no. We don't define everything as sets. The definitions are abstract and we just interpret them as sets.
      $endgroup$
      – Asaf Karagila
      Aug 31 '13 at 22:21










    • $begingroup$
      @AsafKaragila : Thanks. If I were just defining one function from set $X$ to set $Y$ (I'm not talking about classes of functions), like in your simple example, I would rather ''represent'' it as an ordered triple $(X, Y, S)$ where $S$ is a subset of $X times Y$ with the usual requirements. The inclusion of $Y$ is so you know what the codomain is. The inclusion of $X$ is not really necessary but looks nice. I don't know if this is standard.
      $endgroup$
      – Stefan Smith
      Aug 31 '13 at 22:37












    • $begingroup$
      @Stefan: But what good is one function? Is all you ever use in mathematics is one function? Why was set theory developed as a foundation for mathematics anyway? So we can talk about sets of objects with certain properties. If a certain definition makes it harder to define and discuss a certain collection, and another definition is easier, then why not use the latter? As for the definition as a triplet, that's the Bourbaki approach and it's standard in many places in mathematics (there's a nice MO thread about it, I'll look for the link).
      $endgroup$
      – Asaf Karagila
      Aug 31 '13 at 22:40






    • 1




      $begingroup$
      @Stefan: mathoverflow.net/questions/30381/definition-of-function
      $endgroup$
      – Asaf Karagila
      Sep 1 '13 at 1:08














    • 3




      $begingroup$
      +1 for "can be represented as a set" rather than "is a set"!
      $endgroup$
      – Peter Smith
      Aug 30 '13 at 13:54






    • 1




      $begingroup$
      @Stefan: First of all, it's a matter of usability. If I want to define a class of functions, say all functions from $kappa$ into $sf Ord$ (the class of all ordinals) then there is no shared codomain to all functions that I can just quantify over all $fcolonkappato X$. And these sort of classes appear frequently in set theory. As for the second question, no. We don't define everything as sets. The definitions are abstract and we just interpret them as sets.
      $endgroup$
      – Asaf Karagila
      Aug 31 '13 at 22:21










    • $begingroup$
      @AsafKaragila : Thanks. If I were just defining one function from set $X$ to set $Y$ (I'm not talking about classes of functions), like in your simple example, I would rather ''represent'' it as an ordered triple $(X, Y, S)$ where $S$ is a subset of $X times Y$ with the usual requirements. The inclusion of $Y$ is so you know what the codomain is. The inclusion of $X$ is not really necessary but looks nice. I don't know if this is standard.
      $endgroup$
      – Stefan Smith
      Aug 31 '13 at 22:37












    • $begingroup$
      @Stefan: But what good is one function? Is all you ever use in mathematics is one function? Why was set theory developed as a foundation for mathematics anyway? So we can talk about sets of objects with certain properties. If a certain definition makes it harder to define and discuss a certain collection, and another definition is easier, then why not use the latter? As for the definition as a triplet, that's the Bourbaki approach and it's standard in many places in mathematics (there's a nice MO thread about it, I'll look for the link).
      $endgroup$
      – Asaf Karagila
      Aug 31 '13 at 22:40






    • 1




      $begingroup$
      @Stefan: mathoverflow.net/questions/30381/definition-of-function
      $endgroup$
      – Asaf Karagila
      Sep 1 '13 at 1:08








    3




    3




    $begingroup$
    +1 for "can be represented as a set" rather than "is a set"!
    $endgroup$
    – Peter Smith
    Aug 30 '13 at 13:54




    $begingroup$
    +1 for "can be represented as a set" rather than "is a set"!
    $endgroup$
    – Peter Smith
    Aug 30 '13 at 13:54




    1




    1




    $begingroup$
    @Stefan: First of all, it's a matter of usability. If I want to define a class of functions, say all functions from $kappa$ into $sf Ord$ (the class of all ordinals) then there is no shared codomain to all functions that I can just quantify over all $fcolonkappato X$. And these sort of classes appear frequently in set theory. As for the second question, no. We don't define everything as sets. The definitions are abstract and we just interpret them as sets.
    $endgroup$
    – Asaf Karagila
    Aug 31 '13 at 22:21




    $begingroup$
    @Stefan: First of all, it's a matter of usability. If I want to define a class of functions, say all functions from $kappa$ into $sf Ord$ (the class of all ordinals) then there is no shared codomain to all functions that I can just quantify over all $fcolonkappato X$. And these sort of classes appear frequently in set theory. As for the second question, no. We don't define everything as sets. The definitions are abstract and we just interpret them as sets.
    $endgroup$
    – Asaf Karagila
    Aug 31 '13 at 22:21












    $begingroup$
    @AsafKaragila : Thanks. If I were just defining one function from set $X$ to set $Y$ (I'm not talking about classes of functions), like in your simple example, I would rather ''represent'' it as an ordered triple $(X, Y, S)$ where $S$ is a subset of $X times Y$ with the usual requirements. The inclusion of $Y$ is so you know what the codomain is. The inclusion of $X$ is not really necessary but looks nice. I don't know if this is standard.
    $endgroup$
    – Stefan Smith
    Aug 31 '13 at 22:37






    $begingroup$
    @AsafKaragila : Thanks. If I were just defining one function from set $X$ to set $Y$ (I'm not talking about classes of functions), like in your simple example, I would rather ''represent'' it as an ordered triple $(X, Y, S)$ where $S$ is a subset of $X times Y$ with the usual requirements. The inclusion of $Y$ is so you know what the codomain is. The inclusion of $X$ is not really necessary but looks nice. I don't know if this is standard.
    $endgroup$
    – Stefan Smith
    Aug 31 '13 at 22:37














    $begingroup$
    @Stefan: But what good is one function? Is all you ever use in mathematics is one function? Why was set theory developed as a foundation for mathematics anyway? So we can talk about sets of objects with certain properties. If a certain definition makes it harder to define and discuss a certain collection, and another definition is easier, then why not use the latter? As for the definition as a triplet, that's the Bourbaki approach and it's standard in many places in mathematics (there's a nice MO thread about it, I'll look for the link).
    $endgroup$
    – Asaf Karagila
    Aug 31 '13 at 22:40




    $begingroup$
    @Stefan: But what good is one function? Is all you ever use in mathematics is one function? Why was set theory developed as a foundation for mathematics anyway? So we can talk about sets of objects with certain properties. If a certain definition makes it harder to define and discuss a certain collection, and another definition is easier, then why not use the latter? As for the definition as a triplet, that's the Bourbaki approach and it's standard in many places in mathematics (there's a nice MO thread about it, I'll look for the link).
    $endgroup$
    – Asaf Karagila
    Aug 31 '13 at 22:40




    1




    1




    $begingroup$
    @Stefan: mathoverflow.net/questions/30381/definition-of-function
    $endgroup$
    – Asaf Karagila
    Sep 1 '13 at 1:08




    $begingroup$
    @Stefan: mathoverflow.net/questions/30381/definition-of-function
    $endgroup$
    – Asaf Karagila
    Sep 1 '13 at 1:08











    8












    $begingroup$

    Yes, a function $f:Xto Y$ can be modeled by a set.



    And yes, a function can be thought of as a special case of a relation, that is, a subset $Rsubseteq Xtimes Y$. ("Function" after all can be thought of as shorthand for "functional relation.")



    This is just reexpressing $f(x)=y$ as $(x,y)in R$. So, the regular "function-is-a-rule" picture is equivalent to thinking of a subset $fsubseteq Xtimes Y$, where the set $f$ has special properties that make it a function. (The properties you are probably familiar with, I imagine.)



    Relations don't have to be on the same set, as you gave as an example. However, when people say "relation on $E$", that is just shorthand for "relation from $E$ to $E$."






    share|cite|improve this answer











    $endgroup$









    • 3




      $begingroup$
      +1 for "can be modelled by a set" rather than "is a set"!
      $endgroup$
      – Peter Smith
      Aug 30 '13 at 13:53










    • $begingroup$
      @rschweib : I have the same comment for you that I did for Asaf. If you define, or "think of" $f$ as a subset of $X times Y$, with no other information, then if you give me such a function, I can't tell what the codomain is.
      $endgroup$
      – Stefan Smith
      Aug 31 '13 at 22:21










    • $begingroup$
      Dear @StefanSmith : $f$ isn't just any subset, it's a subset with properties that make it a function. Namely, for every $xin X$ there is a pair in $f$ with $x$ in the first coordinate, and there are not two distinct pairs sharing the same first coordinate. The domain is $X$ and the codomain is $Y$.
      $endgroup$
      – rschwieb
      Aug 31 '13 at 23:19












    • $begingroup$
      @rschwieb : Yes, I know $f$ has to have certain properties, I just mean that it is nice to know what the codomain is. If you show me that subset of $X times Y$ and nothing else, I can't tell what the codomain is. Please see Asaf's comments above.
      $endgroup$
      – Stefan Smith
      Sep 2 '13 at 20:44










    • $begingroup$
      @StefanSmith Ah, I see what you mean now. Mainly, I don't think this is a real issue, because when you talk about $f$ being a subset of something, you have to say a subset of what, and then you will say "$Xtimes Y$" and the codomain will be there. Otherwise it's just a set of pairs, and yes, I would agree with you that the codomain would be unspecified in that case. I'm just not convinced people would present it as a set and not a subset. Thanks for helping me see your idea.
      $endgroup$
      – rschwieb
      Sep 2 '13 at 23:23


















    8












    $begingroup$

    Yes, a function $f:Xto Y$ can be modeled by a set.



    And yes, a function can be thought of as a special case of a relation, that is, a subset $Rsubseteq Xtimes Y$. ("Function" after all can be thought of as shorthand for "functional relation.")



    This is just reexpressing $f(x)=y$ as $(x,y)in R$. So, the regular "function-is-a-rule" picture is equivalent to thinking of a subset $fsubseteq Xtimes Y$, where the set $f$ has special properties that make it a function. (The properties you are probably familiar with, I imagine.)



    Relations don't have to be on the same set, as you gave as an example. However, when people say "relation on $E$", that is just shorthand for "relation from $E$ to $E$."






    share|cite|improve this answer











    $endgroup$









    • 3




      $begingroup$
      +1 for "can be modelled by a set" rather than "is a set"!
      $endgroup$
      – Peter Smith
      Aug 30 '13 at 13:53










    • $begingroup$
      @rschweib : I have the same comment for you that I did for Asaf. If you define, or "think of" $f$ as a subset of $X times Y$, with no other information, then if you give me such a function, I can't tell what the codomain is.
      $endgroup$
      – Stefan Smith
      Aug 31 '13 at 22:21










    • $begingroup$
      Dear @StefanSmith : $f$ isn't just any subset, it's a subset with properties that make it a function. Namely, for every $xin X$ there is a pair in $f$ with $x$ in the first coordinate, and there are not two distinct pairs sharing the same first coordinate. The domain is $X$ and the codomain is $Y$.
      $endgroup$
      – rschwieb
      Aug 31 '13 at 23:19












    • $begingroup$
      @rschwieb : Yes, I know $f$ has to have certain properties, I just mean that it is nice to know what the codomain is. If you show me that subset of $X times Y$ and nothing else, I can't tell what the codomain is. Please see Asaf's comments above.
      $endgroup$
      – Stefan Smith
      Sep 2 '13 at 20:44










    • $begingroup$
      @StefanSmith Ah, I see what you mean now. Mainly, I don't think this is a real issue, because when you talk about $f$ being a subset of something, you have to say a subset of what, and then you will say "$Xtimes Y$" and the codomain will be there. Otherwise it's just a set of pairs, and yes, I would agree with you that the codomain would be unspecified in that case. I'm just not convinced people would present it as a set and not a subset. Thanks for helping me see your idea.
      $endgroup$
      – rschwieb
      Sep 2 '13 at 23:23
















    8












    8








    8





    $begingroup$

    Yes, a function $f:Xto Y$ can be modeled by a set.



    And yes, a function can be thought of as a special case of a relation, that is, a subset $Rsubseteq Xtimes Y$. ("Function" after all can be thought of as shorthand for "functional relation.")



    This is just reexpressing $f(x)=y$ as $(x,y)in R$. So, the regular "function-is-a-rule" picture is equivalent to thinking of a subset $fsubseteq Xtimes Y$, where the set $f$ has special properties that make it a function. (The properties you are probably familiar with, I imagine.)



    Relations don't have to be on the same set, as you gave as an example. However, when people say "relation on $E$", that is just shorthand for "relation from $E$ to $E$."






    share|cite|improve this answer











    $endgroup$



    Yes, a function $f:Xto Y$ can be modeled by a set.



    And yes, a function can be thought of as a special case of a relation, that is, a subset $Rsubseteq Xtimes Y$. ("Function" after all can be thought of as shorthand for "functional relation.")



    This is just reexpressing $f(x)=y$ as $(x,y)in R$. So, the regular "function-is-a-rule" picture is equivalent to thinking of a subset $fsubseteq Xtimes Y$, where the set $f$ has special properties that make it a function. (The properties you are probably familiar with, I imagine.)



    Relations don't have to be on the same set, as you gave as an example. However, when people say "relation on $E$", that is just shorthand for "relation from $E$ to $E$."







    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Aug 30 '13 at 13:46

























    answered Aug 30 '13 at 13:41









    rschwiebrschwieb

    107k12103251




    107k12103251








    • 3




      $begingroup$
      +1 for "can be modelled by a set" rather than "is a set"!
      $endgroup$
      – Peter Smith
      Aug 30 '13 at 13:53










    • $begingroup$
      @rschweib : I have the same comment for you that I did for Asaf. If you define, or "think of" $f$ as a subset of $X times Y$, with no other information, then if you give me such a function, I can't tell what the codomain is.
      $endgroup$
      – Stefan Smith
      Aug 31 '13 at 22:21










    • $begingroup$
      Dear @StefanSmith : $f$ isn't just any subset, it's a subset with properties that make it a function. Namely, for every $xin X$ there is a pair in $f$ with $x$ in the first coordinate, and there are not two distinct pairs sharing the same first coordinate. The domain is $X$ and the codomain is $Y$.
      $endgroup$
      – rschwieb
      Aug 31 '13 at 23:19












    • $begingroup$
      @rschwieb : Yes, I know $f$ has to have certain properties, I just mean that it is nice to know what the codomain is. If you show me that subset of $X times Y$ and nothing else, I can't tell what the codomain is. Please see Asaf's comments above.
      $endgroup$
      – Stefan Smith
      Sep 2 '13 at 20:44










    • $begingroup$
      @StefanSmith Ah, I see what you mean now. Mainly, I don't think this is a real issue, because when you talk about $f$ being a subset of something, you have to say a subset of what, and then you will say "$Xtimes Y$" and the codomain will be there. Otherwise it's just a set of pairs, and yes, I would agree with you that the codomain would be unspecified in that case. I'm just not convinced people would present it as a set and not a subset. Thanks for helping me see your idea.
      $endgroup$
      – rschwieb
      Sep 2 '13 at 23:23
















    • 3




      $begingroup$
      +1 for "can be modelled by a set" rather than "is a set"!
      $endgroup$
      – Peter Smith
      Aug 30 '13 at 13:53










    • $begingroup$
      @rschweib : I have the same comment for you that I did for Asaf. If you define, or "think of" $f$ as a subset of $X times Y$, with no other information, then if you give me such a function, I can't tell what the codomain is.
      $endgroup$
      – Stefan Smith
      Aug 31 '13 at 22:21










    • $begingroup$
      Dear @StefanSmith : $f$ isn't just any subset, it's a subset with properties that make it a function. Namely, for every $xin X$ there is a pair in $f$ with $x$ in the first coordinate, and there are not two distinct pairs sharing the same first coordinate. The domain is $X$ and the codomain is $Y$.
      $endgroup$
      – rschwieb
      Aug 31 '13 at 23:19












    • $begingroup$
      @rschwieb : Yes, I know $f$ has to have certain properties, I just mean that it is nice to know what the codomain is. If you show me that subset of $X times Y$ and nothing else, I can't tell what the codomain is. Please see Asaf's comments above.
      $endgroup$
      – Stefan Smith
      Sep 2 '13 at 20:44










    • $begingroup$
      @StefanSmith Ah, I see what you mean now. Mainly, I don't think this is a real issue, because when you talk about $f$ being a subset of something, you have to say a subset of what, and then you will say "$Xtimes Y$" and the codomain will be there. Otherwise it's just a set of pairs, and yes, I would agree with you that the codomain would be unspecified in that case. I'm just not convinced people would present it as a set and not a subset. Thanks for helping me see your idea.
      $endgroup$
      – rschwieb
      Sep 2 '13 at 23:23










    3




    3




    $begingroup$
    +1 for "can be modelled by a set" rather than "is a set"!
    $endgroup$
    – Peter Smith
    Aug 30 '13 at 13:53




    $begingroup$
    +1 for "can be modelled by a set" rather than "is a set"!
    $endgroup$
    – Peter Smith
    Aug 30 '13 at 13:53












    $begingroup$
    @rschweib : I have the same comment for you that I did for Asaf. If you define, or "think of" $f$ as a subset of $X times Y$, with no other information, then if you give me such a function, I can't tell what the codomain is.
    $endgroup$
    – Stefan Smith
    Aug 31 '13 at 22:21




    $begingroup$
    @rschweib : I have the same comment for you that I did for Asaf. If you define, or "think of" $f$ as a subset of $X times Y$, with no other information, then if you give me such a function, I can't tell what the codomain is.
    $endgroup$
    – Stefan Smith
    Aug 31 '13 at 22:21












    $begingroup$
    Dear @StefanSmith : $f$ isn't just any subset, it's a subset with properties that make it a function. Namely, for every $xin X$ there is a pair in $f$ with $x$ in the first coordinate, and there are not two distinct pairs sharing the same first coordinate. The domain is $X$ and the codomain is $Y$.
    $endgroup$
    – rschwieb
    Aug 31 '13 at 23:19






    $begingroup$
    Dear @StefanSmith : $f$ isn't just any subset, it's a subset with properties that make it a function. Namely, for every $xin X$ there is a pair in $f$ with $x$ in the first coordinate, and there are not two distinct pairs sharing the same first coordinate. The domain is $X$ and the codomain is $Y$.
    $endgroup$
    – rschwieb
    Aug 31 '13 at 23:19














    $begingroup$
    @rschwieb : Yes, I know $f$ has to have certain properties, I just mean that it is nice to know what the codomain is. If you show me that subset of $X times Y$ and nothing else, I can't tell what the codomain is. Please see Asaf's comments above.
    $endgroup$
    – Stefan Smith
    Sep 2 '13 at 20:44




    $begingroup$
    @rschwieb : Yes, I know $f$ has to have certain properties, I just mean that it is nice to know what the codomain is. If you show me that subset of $X times Y$ and nothing else, I can't tell what the codomain is. Please see Asaf's comments above.
    $endgroup$
    – Stefan Smith
    Sep 2 '13 at 20:44












    $begingroup$
    @StefanSmith Ah, I see what you mean now. Mainly, I don't think this is a real issue, because when you talk about $f$ being a subset of something, you have to say a subset of what, and then you will say "$Xtimes Y$" and the codomain will be there. Otherwise it's just a set of pairs, and yes, I would agree with you that the codomain would be unspecified in that case. I'm just not convinced people would present it as a set and not a subset. Thanks for helping me see your idea.
    $endgroup$
    – rschwieb
    Sep 2 '13 at 23:23






    $begingroup$
    @StefanSmith Ah, I see what you mean now. Mainly, I don't think this is a real issue, because when you talk about $f$ being a subset of something, you have to say a subset of what, and then you will say "$Xtimes Y$" and the codomain will be there. Otherwise it's just a set of pairs, and yes, I would agree with you that the codomain would be unspecified in that case. I'm just not convinced people would present it as a set and not a subset. Thanks for helping me see your idea.
    $endgroup$
    – rschwieb
    Sep 2 '13 at 23:23













    5












    $begingroup$

    Others have said, clearly and nicely, how to represent or model functions by sets.



    And that's the right way to put it. Here are three reasons not to say that functions are sets.




    1. It might be conventional to treat the binary function $f(x) = y$ as corresponding to a certain set of ordered pairs $(x, y)$, and then treat the ordered pairs by the Weiner-Kuratowski construction. But at both steps we are making arbitrary choices from a range of possibilities. You could use the set of ordered pairs (y, x) [I've seen that done], and you could choose a different set-theoretic representation of ordered pairs [I've seen that done]. Since the conventional association of the function with a set involves arbitrary choices, there isn't a unique right way of doing it: none, then, can be reasonably said to reveal what a function really is. We are in the business of representing (relative to some chosen scheme of representation).


    2. Some functions are "too big" to have corresponding sets. Take the function that maps a set to its singleton. The ordered pairs $(x, {x})$ are too many to form a set. If a function is too big to have a corresponding set, it can't be that set.


    3. Most importantly, it would be a type confusion to identify a function with an object like a set. A function maps some object(s) to an object. In terms of Frege's nice metaphor, functions are "unsaturated", come with one or more slots waiting to be filled (where filling the single slot in, say, the unary numerical function the square of ... gives us a number). In modern terminology, functions have an intrinsic arity. By contrast, objects aren't unsaturated, don't have slots waiting to be filled, don't have arities, don't do mapping. And what applies to objects in general applies to those objects which are sets in particular. So functions aren't sets.







    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      @Peter : Thank you for answering an obvious question. Please forgive my ignorance, but I'm not sure I understand your point #2. The domain of your "function" from #2 is the "set of all sets", and from what I have heard, there is no such thing as the set of all sets, because if you assume such a thing exists, it leads to contradictions. So the domain of your "function" in #2 is not a set. Isn't the domain of any function supposed to be a set? I am not a logician, so please correct any incorrect assertions I may have made.
      $endgroup$
      – Stefan Smith
      Aug 31 '13 at 22:28










    • $begingroup$
      One man's modus ponens is another man's modus tollens. It's a mistake to suppose that every function has a set as domain-qua-set, as this example shows. We should think of the domain of a function as being the objects (plural) for which the function is defined: it is a further question whether those objects can form a set. Uusally they do -- but not always.
      $endgroup$
      – Peter Smith
      Sep 1 '13 at 16:10












    • $begingroup$
      @PeterSmith : thank you. I ask you again to forgive any ignorance I display. I consulted Wikipedia (I've never found an actual mistake there) and they stated a function ''is a relation between a set of inputs'' etc. I encountered a bit of category theory in grad school. Wasn't the idea of a functor developed so you could define mappings between categories (not just sets)? So wouldn't most people call your ''function'' from your #2 a functor, since its domain is the category of all sets?
      $endgroup$
      – Stefan Smith
      Sep 2 '13 at 20:51










    • $begingroup$
      Hello Dr. Smith. Could you please clarify your second point? Why can't ${ (n, {n })| n in mathbb{N} }$ be a set?
      $endgroup$
      – Ovi
      Jun 9 '18 at 2:09












    • $begingroup$
      Of course ${ (n, {n })| n in mathbb{N} }$ is a set! The point I was making is that the pairs $(x, {x })$, for $x$ any set, are too many to be a set.
      $endgroup$
      – Peter Smith
      Jun 9 '18 at 15:20


















    5












    $begingroup$

    Others have said, clearly and nicely, how to represent or model functions by sets.



    And that's the right way to put it. Here are three reasons not to say that functions are sets.




    1. It might be conventional to treat the binary function $f(x) = y$ as corresponding to a certain set of ordered pairs $(x, y)$, and then treat the ordered pairs by the Weiner-Kuratowski construction. But at both steps we are making arbitrary choices from a range of possibilities. You could use the set of ordered pairs (y, x) [I've seen that done], and you could choose a different set-theoretic representation of ordered pairs [I've seen that done]. Since the conventional association of the function with a set involves arbitrary choices, there isn't a unique right way of doing it: none, then, can be reasonably said to reveal what a function really is. We are in the business of representing (relative to some chosen scheme of representation).


    2. Some functions are "too big" to have corresponding sets. Take the function that maps a set to its singleton. The ordered pairs $(x, {x})$ are too many to form a set. If a function is too big to have a corresponding set, it can't be that set.


    3. Most importantly, it would be a type confusion to identify a function with an object like a set. A function maps some object(s) to an object. In terms of Frege's nice metaphor, functions are "unsaturated", come with one or more slots waiting to be filled (where filling the single slot in, say, the unary numerical function the square of ... gives us a number). In modern terminology, functions have an intrinsic arity. By contrast, objects aren't unsaturated, don't have slots waiting to be filled, don't have arities, don't do mapping. And what applies to objects in general applies to those objects which are sets in particular. So functions aren't sets.







    share|cite|improve this answer











    $endgroup$













    • $begingroup$
      @Peter : Thank you for answering an obvious question. Please forgive my ignorance, but I'm not sure I understand your point #2. The domain of your "function" from #2 is the "set of all sets", and from what I have heard, there is no such thing as the set of all sets, because if you assume such a thing exists, it leads to contradictions. So the domain of your "function" in #2 is not a set. Isn't the domain of any function supposed to be a set? I am not a logician, so please correct any incorrect assertions I may have made.
      $endgroup$
      – Stefan Smith
      Aug 31 '13 at 22:28










    • $begingroup$
      One man's modus ponens is another man's modus tollens. It's a mistake to suppose that every function has a set as domain-qua-set, as this example shows. We should think of the domain of a function as being the objects (plural) for which the function is defined: it is a further question whether those objects can form a set. Uusally they do -- but not always.
      $endgroup$
      – Peter Smith
      Sep 1 '13 at 16:10












    • $begingroup$
      @PeterSmith : thank you. I ask you again to forgive any ignorance I display. I consulted Wikipedia (I've never found an actual mistake there) and they stated a function ''is a relation between a set of inputs'' etc. I encountered a bit of category theory in grad school. Wasn't the idea of a functor developed so you could define mappings between categories (not just sets)? So wouldn't most people call your ''function'' from your #2 a functor, since its domain is the category of all sets?
      $endgroup$
      – Stefan Smith
      Sep 2 '13 at 20:51










    • $begingroup$
      Hello Dr. Smith. Could you please clarify your second point? Why can't ${ (n, {n })| n in mathbb{N} }$ be a set?
      $endgroup$
      – Ovi
      Jun 9 '18 at 2:09












    • $begingroup$
      Of course ${ (n, {n })| n in mathbb{N} }$ is a set! The point I was making is that the pairs $(x, {x })$, for $x$ any set, are too many to be a set.
      $endgroup$
      – Peter Smith
      Jun 9 '18 at 15:20
















    5












    5








    5





    $begingroup$

    Others have said, clearly and nicely, how to represent or model functions by sets.



    And that's the right way to put it. Here are three reasons not to say that functions are sets.




    1. It might be conventional to treat the binary function $f(x) = y$ as corresponding to a certain set of ordered pairs $(x, y)$, and then treat the ordered pairs by the Weiner-Kuratowski construction. But at both steps we are making arbitrary choices from a range of possibilities. You could use the set of ordered pairs (y, x) [I've seen that done], and you could choose a different set-theoretic representation of ordered pairs [I've seen that done]. Since the conventional association of the function with a set involves arbitrary choices, there isn't a unique right way of doing it: none, then, can be reasonably said to reveal what a function really is. We are in the business of representing (relative to some chosen scheme of representation).


    2. Some functions are "too big" to have corresponding sets. Take the function that maps a set to its singleton. The ordered pairs $(x, {x})$ are too many to form a set. If a function is too big to have a corresponding set, it can't be that set.


    3. Most importantly, it would be a type confusion to identify a function with an object like a set. A function maps some object(s) to an object. In terms of Frege's nice metaphor, functions are "unsaturated", come with one or more slots waiting to be filled (where filling the single slot in, say, the unary numerical function the square of ... gives us a number). In modern terminology, functions have an intrinsic arity. By contrast, objects aren't unsaturated, don't have slots waiting to be filled, don't have arities, don't do mapping. And what applies to objects in general applies to those objects which are sets in particular. So functions aren't sets.







    share|cite|improve this answer











    $endgroup$



    Others have said, clearly and nicely, how to represent or model functions by sets.



    And that's the right way to put it. Here are three reasons not to say that functions are sets.




    1. It might be conventional to treat the binary function $f(x) = y$ as corresponding to a certain set of ordered pairs $(x, y)$, and then treat the ordered pairs by the Weiner-Kuratowski construction. But at both steps we are making arbitrary choices from a range of possibilities. You could use the set of ordered pairs (y, x) [I've seen that done], and you could choose a different set-theoretic representation of ordered pairs [I've seen that done]. Since the conventional association of the function with a set involves arbitrary choices, there isn't a unique right way of doing it: none, then, can be reasonably said to reveal what a function really is. We are in the business of representing (relative to some chosen scheme of representation).


    2. Some functions are "too big" to have corresponding sets. Take the function that maps a set to its singleton. The ordered pairs $(x, {x})$ are too many to form a set. If a function is too big to have a corresponding set, it can't be that set.


    3. Most importantly, it would be a type confusion to identify a function with an object like a set. A function maps some object(s) to an object. In terms of Frege's nice metaphor, functions are "unsaturated", come with one or more slots waiting to be filled (where filling the single slot in, say, the unary numerical function the square of ... gives us a number). In modern terminology, functions have an intrinsic arity. By contrast, objects aren't unsaturated, don't have slots waiting to be filled, don't have arities, don't do mapping. And what applies to objects in general applies to those objects which are sets in particular. So functions aren't sets.








    share|cite|improve this answer














    share|cite|improve this answer



    share|cite|improve this answer








    edited Dec 21 '18 at 12:32

























    answered Aug 30 '13 at 14:23









    Peter SmithPeter Smith

    40.9k342120




    40.9k342120












    • $begingroup$
      @Peter : Thank you for answering an obvious question. Please forgive my ignorance, but I'm not sure I understand your point #2. The domain of your "function" from #2 is the "set of all sets", and from what I have heard, there is no such thing as the set of all sets, because if you assume such a thing exists, it leads to contradictions. So the domain of your "function" in #2 is not a set. Isn't the domain of any function supposed to be a set? I am not a logician, so please correct any incorrect assertions I may have made.
      $endgroup$
      – Stefan Smith
      Aug 31 '13 at 22:28










    • $begingroup$
      One man's modus ponens is another man's modus tollens. It's a mistake to suppose that every function has a set as domain-qua-set, as this example shows. We should think of the domain of a function as being the objects (plural) for which the function is defined: it is a further question whether those objects can form a set. Uusally they do -- but not always.
      $endgroup$
      – Peter Smith
      Sep 1 '13 at 16:10












    • $begingroup$
      @PeterSmith : thank you. I ask you again to forgive any ignorance I display. I consulted Wikipedia (I've never found an actual mistake there) and they stated a function ''is a relation between a set of inputs'' etc. I encountered a bit of category theory in grad school. Wasn't the idea of a functor developed so you could define mappings between categories (not just sets)? So wouldn't most people call your ''function'' from your #2 a functor, since its domain is the category of all sets?
      $endgroup$
      – Stefan Smith
      Sep 2 '13 at 20:51










    • $begingroup$
      Hello Dr. Smith. Could you please clarify your second point? Why can't ${ (n, {n })| n in mathbb{N} }$ be a set?
      $endgroup$
      – Ovi
      Jun 9 '18 at 2:09












    • $begingroup$
      Of course ${ (n, {n })| n in mathbb{N} }$ is a set! The point I was making is that the pairs $(x, {x })$, for $x$ any set, are too many to be a set.
      $endgroup$
      – Peter Smith
      Jun 9 '18 at 15:20




















    • $begingroup$
      @Peter : Thank you for answering an obvious question. Please forgive my ignorance, but I'm not sure I understand your point #2. The domain of your "function" from #2 is the "set of all sets", and from what I have heard, there is no such thing as the set of all sets, because if you assume such a thing exists, it leads to contradictions. So the domain of your "function" in #2 is not a set. Isn't the domain of any function supposed to be a set? I am not a logician, so please correct any incorrect assertions I may have made.
      $endgroup$
      – Stefan Smith
      Aug 31 '13 at 22:28










    • $begingroup$
      One man's modus ponens is another man's modus tollens. It's a mistake to suppose that every function has a set as domain-qua-set, as this example shows. We should think of the domain of a function as being the objects (plural) for which the function is defined: it is a further question whether those objects can form a set. Uusally they do -- but not always.
      $endgroup$
      – Peter Smith
      Sep 1 '13 at 16:10












    • $begingroup$
      @PeterSmith : thank you. I ask you again to forgive any ignorance I display. I consulted Wikipedia (I've never found an actual mistake there) and they stated a function ''is a relation between a set of inputs'' etc. I encountered a bit of category theory in grad school. Wasn't the idea of a functor developed so you could define mappings between categories (not just sets)? So wouldn't most people call your ''function'' from your #2 a functor, since its domain is the category of all sets?
      $endgroup$
      – Stefan Smith
      Sep 2 '13 at 20:51










    • $begingroup$
      Hello Dr. Smith. Could you please clarify your second point? Why can't ${ (n, {n })| n in mathbb{N} }$ be a set?
      $endgroup$
      – Ovi
      Jun 9 '18 at 2:09












    • $begingroup$
      Of course ${ (n, {n })| n in mathbb{N} }$ is a set! The point I was making is that the pairs $(x, {x })$, for $x$ any set, are too many to be a set.
      $endgroup$
      – Peter Smith
      Jun 9 '18 at 15:20


















    $begingroup$
    @Peter : Thank you for answering an obvious question. Please forgive my ignorance, but I'm not sure I understand your point #2. The domain of your "function" from #2 is the "set of all sets", and from what I have heard, there is no such thing as the set of all sets, because if you assume such a thing exists, it leads to contradictions. So the domain of your "function" in #2 is not a set. Isn't the domain of any function supposed to be a set? I am not a logician, so please correct any incorrect assertions I may have made.
    $endgroup$
    – Stefan Smith
    Aug 31 '13 at 22:28




    $begingroup$
    @Peter : Thank you for answering an obvious question. Please forgive my ignorance, but I'm not sure I understand your point #2. The domain of your "function" from #2 is the "set of all sets", and from what I have heard, there is no such thing as the set of all sets, because if you assume such a thing exists, it leads to contradictions. So the domain of your "function" in #2 is not a set. Isn't the domain of any function supposed to be a set? I am not a logician, so please correct any incorrect assertions I may have made.
    $endgroup$
    – Stefan Smith
    Aug 31 '13 at 22:28












    $begingroup$
    One man's modus ponens is another man's modus tollens. It's a mistake to suppose that every function has a set as domain-qua-set, as this example shows. We should think of the domain of a function as being the objects (plural) for which the function is defined: it is a further question whether those objects can form a set. Uusally they do -- but not always.
    $endgroup$
    – Peter Smith
    Sep 1 '13 at 16:10






    $begingroup$
    One man's modus ponens is another man's modus tollens. It's a mistake to suppose that every function has a set as domain-qua-set, as this example shows. We should think of the domain of a function as being the objects (plural) for which the function is defined: it is a further question whether those objects can form a set. Uusally they do -- but not always.
    $endgroup$
    – Peter Smith
    Sep 1 '13 at 16:10














    $begingroup$
    @PeterSmith : thank you. I ask you again to forgive any ignorance I display. I consulted Wikipedia (I've never found an actual mistake there) and they stated a function ''is a relation between a set of inputs'' etc. I encountered a bit of category theory in grad school. Wasn't the idea of a functor developed so you could define mappings between categories (not just sets)? So wouldn't most people call your ''function'' from your #2 a functor, since its domain is the category of all sets?
    $endgroup$
    – Stefan Smith
    Sep 2 '13 at 20:51




    $begingroup$
    @PeterSmith : thank you. I ask you again to forgive any ignorance I display. I consulted Wikipedia (I've never found an actual mistake there) and they stated a function ''is a relation between a set of inputs'' etc. I encountered a bit of category theory in grad school. Wasn't the idea of a functor developed so you could define mappings between categories (not just sets)? So wouldn't most people call your ''function'' from your #2 a functor, since its domain is the category of all sets?
    $endgroup$
    – Stefan Smith
    Sep 2 '13 at 20:51












    $begingroup$
    Hello Dr. Smith. Could you please clarify your second point? Why can't ${ (n, {n })| n in mathbb{N} }$ be a set?
    $endgroup$
    – Ovi
    Jun 9 '18 at 2:09






    $begingroup$
    Hello Dr. Smith. Could you please clarify your second point? Why can't ${ (n, {n })| n in mathbb{N} }$ be a set?
    $endgroup$
    – Ovi
    Jun 9 '18 at 2:09














    $begingroup$
    Of course ${ (n, {n })| n in mathbb{N} }$ is a set! The point I was making is that the pairs $(x, {x })$, for $x$ any set, are too many to be a set.
    $endgroup$
    – Peter Smith
    Jun 9 '18 at 15:20






    $begingroup$
    Of course ${ (n, {n })| n in mathbb{N} }$ is a set! The point I was making is that the pairs $(x, {x })$, for $x$ any set, are too many to be a set.
    $endgroup$
    – Peter Smith
    Jun 9 '18 at 15:20













    2












    $begingroup$

    Let's begin at the other end.



    A function can be regarded as a rule for assigning a unique value $f(x)$ to each $x$. Let's construct a set $F$ of all the ordered pairs $(x,f(x))$.



    If $f:Xto Y$ we need every $xin X$ to have a value $f(x)$. So for each $x$ there is an ordered pair $(x,y)$ in the set for some $yin Y$. We also need $f(x)$ to be uniquely defined by $x$ so that whenever the set contains $(x,y)$ and $(x,z)$ we have $y=z$. In this way there is a unique $f(x)$ for each $x$ as we require.



    The ordered pairs can be taken as elements of $X times Y$ so that $Fsubset X times Y$



    If we have a set of ordered pairs with the required properties, we can work backwards and see that this gives us back our original idea of a function.






    share|cite|improve this answer









    $endgroup$


















      2












      $begingroup$

      Let's begin at the other end.



      A function can be regarded as a rule for assigning a unique value $f(x)$ to each $x$. Let's construct a set $F$ of all the ordered pairs $(x,f(x))$.



      If $f:Xto Y$ we need every $xin X$ to have a value $f(x)$. So for each $x$ there is an ordered pair $(x,y)$ in the set for some $yin Y$. We also need $f(x)$ to be uniquely defined by $x$ so that whenever the set contains $(x,y)$ and $(x,z)$ we have $y=z$. In this way there is a unique $f(x)$ for each $x$ as we require.



      The ordered pairs can be taken as elements of $X times Y$ so that $Fsubset X times Y$



      If we have a set of ordered pairs with the required properties, we can work backwards and see that this gives us back our original idea of a function.






      share|cite|improve this answer









      $endgroup$
















        2












        2








        2





        $begingroup$

        Let's begin at the other end.



        A function can be regarded as a rule for assigning a unique value $f(x)$ to each $x$. Let's construct a set $F$ of all the ordered pairs $(x,f(x))$.



        If $f:Xto Y$ we need every $xin X$ to have a value $f(x)$. So for each $x$ there is an ordered pair $(x,y)$ in the set for some $yin Y$. We also need $f(x)$ to be uniquely defined by $x$ so that whenever the set contains $(x,y)$ and $(x,z)$ we have $y=z$. In this way there is a unique $f(x)$ for each $x$ as we require.



        The ordered pairs can be taken as elements of $X times Y$ so that $Fsubset X times Y$



        If we have a set of ordered pairs with the required properties, we can work backwards and see that this gives us back our original idea of a function.






        share|cite|improve this answer









        $endgroup$



        Let's begin at the other end.



        A function can be regarded as a rule for assigning a unique value $f(x)$ to each $x$. Let's construct a set $F$ of all the ordered pairs $(x,f(x))$.



        If $f:Xto Y$ we need every $xin X$ to have a value $f(x)$. So for each $x$ there is an ordered pair $(x,y)$ in the set for some $yin Y$. We also need $f(x)$ to be uniquely defined by $x$ so that whenever the set contains $(x,y)$ and $(x,z)$ we have $y=z$. In this way there is a unique $f(x)$ for each $x$ as we require.



        The ordered pairs can be taken as elements of $X times Y$ so that $Fsubset X times Y$



        If we have a set of ordered pairs with the required properties, we can work backwards and see that this gives us back our original idea of a function.







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Aug 30 '13 at 13:54









        Mark BennetMark Bennet

        81.8k984183




        81.8k984183






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Mathematics Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            Use MathJax to format equations. MathJax reference.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f479936%2fin-what-manner-are-functions-sets%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

            Bundesstraße 106

            Verónica Boquete

            Ida-Boy-Ed-Garten