Mathematics (and life, in fact) is meaningless without relationships: between basic objects and between whole fields of exploration. While the latter will take a lifetime to even surface, we aim to highlight the former in formal objects known as relations.
Definition 1. Let be sets. A relation from
to
is a subset of
i.e. the cartesian product of and
.
Example 1. Let be a set. The identity relation
on
is defined by
We need relations to define a centrally crucial notion in mathematics known as a function, which is a relation that satisfies extra properties:
Definition 2. A relation is a function if it satisfies the following two properties:
- For any
, there exists
such that
.
- For any
,
implies
.
In this case, we denote , and
.
Example 2. For any set ,
is a function.
Intuitively, these quantified propositions capture the idea that functions take in input values
, and returns one (the first condition) and only one (the second condition) output value
for each input
.
Many properties of functions follows from relations. Hence, we first study relations to obtain general transferrable features of functions.
Often, we need to chain relations together. This is where the notion of composite relations arises.
Definition 3. Let be sets,
,
be relations. Define the composite relation
by
We can check that composing functions yields another function.
Theorem 1. Let be sets,
,
be functions. Then
is a function. Furthermore,
Proof. We need to check that for any , there exists one and only one
such that
.
Fix . Since
is a function, there exists one and only one
such that
, i.e.
. Since
is a function, there exists one and only one
such that
, i.e.
.
Combining and
, we have
. Furthermore,
The key property shared by relations and functions is the fact that they are associative under composition.
Theorem 2. Let be sets and
,
,
be relations. Then
Proof. We will prove and leave
as an exercise. Fix
.
By definition, there exists such that
and
. Similarly, there exists
such that
and
.
Combining and
, we have
. Combining
and
, we have
, as required.
Corollary 1. Let be sets and
,
,
be functions. Then
Likewise, it is often useful to invert relations. This motivates the study of inverse relations.
Definition 4. Let be sets and
be a relation. Define the inverse relation of
by
Unlike function composition, the inverse of a function may not itself be a function! When then do we obtain an inverse for a function?
Theorem 3. Let be sets and
be a function. Then the relation
is a function if and only if
satisfies the following two properties:
- Surjectivity: For any
, there exists
such that
.
- Injectivity: For any
,
implies
.
In this case, we say that is a bijection. Furthermore,
is a bijection. Furthermore, this corresponds intuitively to the horizontal line test that students may have learned prior to a discrete mathematics course.
Proof. The proof becomes obvious once we write
We will speak more on the invertibility of functions in a future post, since there is much to discuss therein. The utility of defining functions in this manner is so that we can now properly define the natural numbers using the von Neumann construction, in the next post.
For now, let’s prove a rather interesting result that will help us detail more about inverse functions.
Theorem 4. Let be sets and
be a function. The following hold:
if and only if
is injective.
- If
, then
is injective.
- If
, then
is surjective.
Proof. For the first claim, fix . Since
is a function, there exists
. Hence
Thus, unconditionally. Thus, we prove that
if and only if
is injective.
For the direction , fix
such that
. Then
Hence, , as required.
For the direction , fix
. By definition of a composite relation, there exists
such that
Since is injective,
For the second claim, fix with
.Therefore,
On the other hand, as well. Hence,
, which implies
, as required.
For the third claim, fix so that
. Then there exists
such that
Functions help us define natural numbers. Probably the most crucial component in mathematics.
—Joel Kindiak, 3 Dec 24, 1229H
Leave a reply to The Indicator Function – KindiakMath Cancel reply