Set Theory/Relations

< Set Theory

Ordered pairs

To define relations on sets we must have a concept of an ordered pair, as opposed to the unordered pairs the axiom of pair gives. To have a rigorous definition of ordered pair, we aim to satisfy one important property, namely, for sets a,b,c and d, .

As it stands, there are many ways to define an ordered pair to satisfy this property. A simple definition, then is . (This is true simply by definition. It is a convention that we can usefully build upon, and has no deeper significance.)

Theorem

Proof

If and , then .
Now, if then . Then , so and a=c.
So we have . Thus meaning .

If , we have and thus so .
If , note , so

Relations

Using the definiton of ordered pairs, we now introduce the notion of a binary relation.

The simplest definition of a binary relation is a set of ordered pairs. More formally, a set is a relation if for some x,y. We can simplify the notation and write or simply .

We give a few useful definitions of sets used when speaking of relations.

It is intuitive, when considering a relation, to seek to construct more relations from it, or to combine it with others.

We can compose two relations R and S to form one relation . So means that there is some y such that .

We can define a few useful binary relations as examples:

  1. The Cartesian Product of two sets is , or the set where all elements of A are related to all elements of B. As an exercise, show that all relations from A to B are subsets of . Notationally is written
  2. The membership relation on a set A,
  3. The identity relation on A,

The following properties may or may not hold for a relation R on a set X:

Functions

Definitions

A function may be defined as a particular type of relation. We define a partial function as some mapping from a set to another set that assigns to each no more than one . Alternatively, f is a function if and only if

If on each , assigns exactly one , then is called total function or just function. The following definitions are commonly used when discussing functions.

Properties of functions

A function is onto, or surjective, if for each exists such that . It is easy to show that a function is surjective if and only if its codomain is equal to its range. It is one-to-one, or injective, if different elements of are mapped to different elements of , that is . A function that is both injective and surjective is intuitively termed bijective.

Composition of functions

Given two functions and , we may be interested in first evaluating f at some and then evaluating g at . To this end, we define the composition' of these functions, written , as

Note that the composition of these functions maps an element in to an element in , so we would write .

Inverses of functions

If there exists a function such that for , , we call a left inverse of . If a left inverse for exists, we say that is left invertible. Similarly, if there exists a function such that then we call a right inverse of . If such an exists, we say that is right invertible. If there exists an element which is both a left and right inverse of , we say that such an element is the inverse of and denote it by . Be careful not to confuse this with the preimage of f; the preimage of f always exists while the inverse may not. Proof of the following theorems is left as an exercise to the reader.

Theorem: If a function has both a left inverse and a right inverse , then .

Theorem: A function is invertible if and only if it is bijective.


This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.