I'm reading through a few analysis books and I am a little confused by some of the definitions that are given for functions. Some texts define functions to be some subset of the cartesian product of two sets, given that the elements of this subset satisfy the properties of a function. This is intuitively clear to me, but others first define the idea of a relation and then define functions to be a sort of relation that satisfies the typical properties of a function.
This is confusing to me since I have always thought of relations as having truth values and functions as having no truth value. Is it appropriate to think of relations as having truth values and functions as not having truth values? Are the varying definitions compatible or is one wrong? I appreciate any help.
You are in good company in resisting the identification of a function as a sort of relation. Here's a short excerpt from a useful blog post by the Field's medallist Tim Gowers (I mention his achievement just to point up that this is a post by a top class mathematician, not by e.g. a pernickety philosopher with an amateur interest in these things!):
And Gowers go on to insist that the fact that we can trade in (much) function talk for relation talk in a way that maps truths to equivalent truths does not mean that functions are "really" relations. And the fact that we can for some purposes usefully trade both function talk and relation talk for talk of their graphs/extensions doesn't mean that functions and relations are "really" sets either (as Gowers also explains).