Functions

So, a binary relation is a set of ordered pairs, any such set. A binary relation on a set X is a binary relation which is a subset of X×X. A binary relation between sets X and Y is a binary relation which is a subset of X×Y. Now, I want to say what is a function: a function will be a special kind of a binary relation.

Let us fix a binary relation R. This just means that R is a set of ordered pairs. Two natural sets assigned to R are its domain and its range

dom(R):={x:y,x,yR},

ran(R):={y:x,x,yR}.

Of course, it's not immediate that these are sets, but there is no doubt that they are classes. In order for a class to be a set, it suffices for it to be contained in a set. More precisely, if a class C is contained in a set X, then C is equal to the intersection XC. The intersection of a set and a class is a set by Axiom of Comprehension. Hence, C is a set. Back to the case of R, in order to show that dom(R) is a set, we just need to pinpoint one of its supersets. Here's what works:

dom(R)R.

To understand this, you'll just need to remind yourself of the definition of an ordered pair. The reasoning here is similar to the one that we had with ×. We can see in a similar fashion that ran(R) is a set.

Now, these two sets are very special when the relation R is concerned. To begin with,

Rdom(R)×ran(R),

or in other words, R is a binary relation between dom(R) and ran(R). However, more is true: if A and B are any sets and if it is true that R is a binary relation between A and B, then we necessarily have that dom(R)A and ran(R)B. Said differently, dom(R) and ran(R) are the least sets A and B such that R is a binary relation between A and B.

If xdom(R), then by definition, there exists y such that x,yR. Of course, there can be more then one such y. For example, if R=< is the standard order of natural numbers, then 0dom(<) because 0,1∈<. However, it is also true that 0,2∈<. This means that if x=0 we can take both y=1 and y=2 and get x,y∈<.

Functions are a special kind of binary relations where this doesn't happen. More precisely, R is a function if and only if R is a binary relation and in addition, for every xdom(R), there exists a unique y such that x,yR.

Here is an example of a function. Let us define that x,yS if and only if x is a natural number and y=x{x}. If n is a natural number, then we said that n{n} is its successor. So, xSy just means "x and y are two consecutive natural numbers (in that order)". However, since every natural number has a unique successor, the relation S meets the requirement to be a function!

A function will very often be denoted by f. We also frequently write 

f:AB,

by which we mean "f is a function, dom(f)=A, and ran(f)B". For the set A we require it to be exactly equal to the domain of f, while for the set B we just require that all the points in the range of f are contained in it. For example, 

S:ωω,

while ran(S)=ω{0} (0 is not a successor of anything!).

One more piece of standard notation. So, if f is a function and xdom(f), then there is a unique y such that x,yf. Thus, it makes sense to name this unique y: we name it f(x). Here are examples:

S(0)=1, S(2)=3, S(S(3))=5.

Comments

Popular posts from this blog

Axiom of Powerset

Relations

Wellorderings