« previous section | next section » |
Binary relations are subsets of the Cartesian product of two sets. They are two-argument relations. n-argument realations are subsets of Cartesian product od n sets. As an example we take a three dimensional Euclidean space R3 (R × R × R), the elements of which are triplets of real numbers (x,y,z) indicating the coordinates of a point in the space.
Example 2.6.1
Fig. 2.6.1 An example of a many-argument relation.
Definition 2.6.1
Let X1, X2, ..., Xn be arbitrary nonempty sets, where n is a natural number. By a product of these sets we understand the set X1 × X2 × ... × Xn which consists of ordered n-tuples of the form (x1, x2, ...,xn), where xi ∈ Xi for i=1,2...,n.
Two n-tuples (x1, x2, ...,xn) and (y1, y2, ...,yn), are equal if and only if elements on the corresponding positions are equal, i.e. xi = yi, dla i =1,...n.
Thus, the Cartesian product of the family of n sets {Xi}i ×n is the collection of all ordered n-tuples that i-th position contains an element of the set Xi. This collection can be seen as constituting an n-dimensional space in which each n-tuple designates a point.
Lemma 2.6.1
If Xi has ki elements, then the Cartesian product X1 × X2 × ... × Xn has k1 * k2 *... * kn elements.
The proof of the lemma requires the induction principle. We will discuss it later. Informally, for each choice of an element from the first set one can take arbitrary elements from the other sets. For the first element we have k1 possibilities, hence the result is k1*(the number of possible (n-1)-tuples from the set z X2 ×... × Xn.
Definition 2.6.2
A subset of the set X1 × X2 × ... × Xn is called an n-argument relation (in short an n-ary relation).
When r is an n-ary relation in the product X1 × X2 × ... × Xn, then instead of (x1, x2, ..., xn) ∈ r, we will write r(x1, x2, ..., xn).
Example 2.6.2
Question 2.6.1: How many ordered pairs are there at most in a binary relation defined in a 100-element set?
« previous section | next section » |