3. RELATIONS AND FUNCTIONS

Similar documents
Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Lecture 16 : Relations and Functions DRAFT

Cartesian Products and Relations

INTRODUCTORY SET THEORY

Mathematics for Computer Science/Software Engineering. Notes for the course MSM1F3 Dr. R. A. Wilson

Lecture 17 : Equivalence and Order Relations DRAFT

GROUPS ACTING ON A SET

7 Relations and Functions

Discrete Mathematics. Hans Cuypers. October 11, 2007

Lemma 5.2. Let S be a set. (1) Let f and g be two permutations of S. Then the composition of f and g is a permutation of S.

1 if 1 x 0 1 if 0 x 1

Chapter 3. Distribution Problems. 3.1 The idea of a distribution The twenty-fold way

Cardinality. The set of all finite strings over the alphabet of lowercase letters is countable. The set of real numbers R is an uncountable set.

I. GROUPS: BASIC DEFINITIONS AND EXAMPLES

Basic Concepts of Point Set Topology Notes for OU course Math 4853 Spring 2011

You know from calculus that functions play a fundamental role in mathematics.

3. SETS, FUNCTIONS & RELATIONS

a 11 x 1 + a 12 x a 1n x n = b 1 a 21 x 1 + a 22 x a 2n x n = b 2.

Row Echelon Form and Reduced Row Echelon Form

Vector and Matrix Norms

Mathematics Course 111: Algebra I Part IV: Vector Spaces

Functions CHAPTER 2. Introduction. 2.1 Some Basic Terminology. Terminology for Sets

Linear Algebra I. Ronald van Luijk, 2012

S on n elements. A good way to think about permutations is the following. Consider the A = 1,2,3, 4 whose elements we permute with the P =

Algorithmic Mathematics

This asserts two sets are equal iff they have the same elements, that is, a set is determined by its elements.

This chapter is all about cardinality of sets. At first this looks like a

BANACH AND HILBERT SPACE REVIEW

NOTES ON LINEAR TRANSFORMATIONS

Chapter 7. Permutation Groups

E3: PROBABILITY AND STATISTICS lecture notes

Lecture Note 1 Set and Probability Theory. MIT Spring 2006 Herman Bennett

To define function and introduce operations on the set of functions. To investigate which of the field properties hold in the set of functions

WRITING PROOFS. Christopher Heil Georgia Institute of Technology

Math 4310 Handout - Quotient Vector Spaces

FUNCTIONAL ANALYSIS LECTURE NOTES: QUOTIENT SPACES

Matrix Representations of Linear Transformations and Changes of Coordinates

Mathematical Induction

Georg Cantor ( ):

So let us begin our quest to find the holy grail of real analysis.

1 Norms and Vector Spaces

Math 223 Abstract Algebra Lecture Notes

1 VECTOR SPACES AND SUBSPACES

Formal Languages and Automata Theory - Regular Expressions and Finite Automata -

Geometric Transformations

Continued Fractions and the Euclidean Algorithm

6.2 Permutations continued

6.3 Conditional Probability and Independence

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 5 9/17/2008 RANDOM VARIABLES

Pigeonhole Principle Solutions

TOPOLOGY: THE JOURNEY INTO SEPARATION AXIOMS

1. Prove that the empty set is a subset of every set.

Introduction to Modern Algebra

Metric Spaces Joseph Muscat 2003 (Last revised May 2009)

The Ideal Class Group

Georg Cantor and Set Theory

Handout #1: Mathematical Reasoning

Notes on Algebraic Structures. Peter J. Cameron

THE BANACH CONTRACTION PRINCIPLE. Contents

Cryptography and Network Security Department of Computer Science and Engineering Indian Institute of Technology Kharagpur

CHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs

Arkansas Tech University MATH 4033: Elementary Modern Algebra Dr. Marcel B. Finan

MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.

Chapter 7. Functions and onto. 7.1 Functions

LEARNING OBJECTIVES FOR THIS CHAPTER

A CONSTRUCTION OF THE UNIVERSAL COVER AS A FIBER BUNDLE

Mathematical Methods of Engineering Analysis

Introduction to Topology

Basic Set Theory. 1. Motivation. Fido Sue. Fred Aristotle Bob. LX Semantics I September 11, 2008

1 Sets and Set Notation.


Fixed Point Theorems in Topology and Geometry

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS. + + x 2. x n. a 11 a 12 a 1n b 1 a 21 a 22 a 2n b 2 a 31 a 32 a 3n b 3. a m1 a m2 a mn b m

Elements of Abstract Group Theory

SMALL SKEW FIELDS CÉDRIC MILLIET

Name: Section Registered In:

COUNTING SUBSETS OF A SET: COMBINATIONS

Automata and Formal Languages

MATRIX ALGEBRA AND SYSTEMS OF EQUATIONS

Notes on Determinant

CONTENTS 1. Peter Kahn. Spring 2007

1 Local Brouwer degree

Basic Probability Concepts

( ) which must be a vector

MA651 Topology. Lecture 6. Separation Axioms.

o-minimality and Uniformity in n 1 Graphs

Group Theory. Contents

8 Divisibility and prime numbers

WHAT ARE MATHEMATICAL PROOFS AND WHY THEY ARE IMPORTANT?

Full and Complete Binary Trees

CHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.

ON SEQUENTIAL CONTINUITY OF COMPOSITION MAPPING. 0. Introduction

Mathematics Review for MS Finance Students

Basic Concepts of Set Theory, Functions and Relations

DIFFERENTIABILITY OF COMPLEX FUNCTIONS. Contents

University of Lille I PC first year list of exercises n 7. Review

Linear Algebra Notes

Solutions to Math 51 First Exam January 29, 2015

Representing Reversible Cellular Automata with Reversible Block Cellular Automata

Solutions to In-Class Problems Week 4, Mon.

Transcription:

3. RELATIONS AND FUNCTIONS 3.1 Relations Having defined relations and functions as certain types of statement we redefine them within the class of sets. The more general ones will now be called generalized relations and functions. A relation R between sets X and Y is a subset of X Y. We denote the statement that (x, y) R by xry and denote the fact that R is a relation between X and Y by R:X Y. A relation between a set X and itself is called a relation on X. For example the relation m < n on N, the set of natural numbers, would be considered to be the set of all pairs (m, n) where m < n. This is often the way relations are stored in a database. The relation xey, where x is a student and y is a course in some university, might be defined to mean x is enrolled in course y. It may well be stored as a sequence of pairs (student, course). Of course you must be aware that, although we are talking about natural numbers and their ordering, by way of an example, we have yet to define these properly. We define multiplication of relations as follows. If R: X Y and S:Y Z are relations then RS:X Z is defined by x(rs)z if there exists y Y such that xry and ysz. In symbols this would be x(rs)z y[xry ysz]. Example 1: Suppose a = Alice, b = Bill and c = Catherine and suppose that Bill and Catherine are Mary s two children. If P is the relation parent of and S is the relation sibling of then we would have apb and apc and bsc and csb. The relation SP is the relation aunt or uncle of. What about PS? A parent of my sibling would be my sibling. At least that would be the case if there were no step mothers, step fathers or step children. So is PS = P? Well no, if I am an only child my father is one of my parents but he would not be a parent of my sibling. As sets of ordered pairs PS would be a subset of P. The inverse of a relation R: X Y is R 1 :Y X defined by xr 1 y if and only if yrx. In other words, R 1 = {(y, x) (x, y) R}. Example 2: If P and S are as in Example 1 then P 1 is the relation of being child of while S 1 = S. If Ron is my father then I am a child of Ron s. And I am a sibling to any of my siblings. 27

A relation R on a set X is reflexive if x[xrx]. It is symmetric if xry yrx. It is transitive if xry yrz xrz. A relation is an equivalence relation if it is reflexive, symmetric and transitive. Example 3: The relation P in Examples 1 and 2 is neither reflexive nor symmetric. Nobody can be their own father (reflexive) nor am I my father s father (symmetric). And clearly P is not transitive. The normal use of the word sibling precludes anyone from being their own sibling, so S is not reflexive. But, as we have seen, S is symmetric. Is S transitive? Is my sibling s sibling my own sibling? Not quite. If b, c are Bill and Catherine in Example 1, then bsc and csb. If S was transitive it would follow that bsb. But Bill is not his own sibling. Remember that in the definition of the transitive property nothing was said about the x, y and z being distinct. Example 4: Show that the relation xry define on the set of integers by xry if x y is a multiple of 7 is an equivalence relation. Solution: Reflexive: For all x, x x = 0, which is even. Symmetric: Suppose xry. Then x y is a multiple of 7. Hence y x is a multiple of 7 and so yrx. Transitive: Suppose xry and yrz. Then x y and y z are multiples of 7. Hence x z = (x y) + (y z) is a multiple of 7 and so xrz. So R is an equivalence relation. A relation R on a set X is regular if x y[xry]. Theorem 1: If R is a a regular relation then it is an equivalence relation if and only if R 1 = R and R 2 = R. Proof: The statement R 1 = R is equivalent to the symmetric property and R 2 R is equivalent to the transitive property. Suppose that R is an equivalence relation and let x X. Suppose (x, y) R, in other words, xry. Then, since xrx and xry, xr 2 y and so (x, y) R 2. Hence R 2 = R. Suppose now that R is a regular relation and that R 1 = R and R 2 = R. Then R is clearly symmetric and transitive. All that remains to show is that R is reflexive. Let x X. Since R is regular xry for some y Y. Since R is symmetric yrx and since R is transitive xrx and so R is reflexive. If R is an equivalence relation, the equivalence class containing x is [x] R = {y xry}. EQUIVALENCE CLASS 28

Often we leave out the subscript and simply write [x]. If y [x] then [y] = [x]. Distinct equivalence classes are disjoint since z [x] [y] implies that xrz and yrz and together these imply xrz. Hence an equivalence relation on a set partitions the set into disjoint equivalence classes. Example 5: There are 7 equivalence classes in example 4. For example [3] = {..., 18, 11, 4, 3, 10, 17, 24,...} 3.2 Functions Most of the material in the next couple of paragraphs should be well known to you and so we will be brief. A function F:X Y is a relation between X and Y such that: x y z[xfy xfz y = z]. The unique y is denoted by F(x). If F:X Y is a function, X is called the domain and Y is the codomain. The image (range) of F is im F = {y y = F(x)}. The function F:X Y is 1-1 (injective) if x y[f(x) = F(y) x = y]. It is onto (surjective) if im F = Y. A function is a bijection if it is 1-1 and onto. A function F is invertible if F 1 :Y X is a function and so F: X Y is invertible if and only if it is a bijection. A permutation on a set X is a bijection F: X X. The inverse of a permutation is a permutation and the product of two permutations is a permutation. If F:X Y and Z X then F Z = F (Z Y) (the restriction of F to Z). The product of two functions is defined as for relations. If F:X Y and G:Y Z then the product FG:X Z is defined by: (FG)(x) = G(F(x)). This is the same as if we considered them as relations. The product of functions is similar to the composition of functions: FG is often written as G F. Clearly if F, G are 1-1/onto/both then FG is 1-1/onto/both. We denote the set of all functions F:Y X by X Y. This notation is motivated by the fact that if X and Y are finite sets with sizes m and n respectively then X Y has size m n. This is because there are m choices for F(y) for each of the n elements y Y. Theorem 2: If X, Y are sets then so is Y X. Proof: A typical element of X Y is a function F: X Y. It is a set of ordered pairs of the form (x, F(x)) for some x X. But (x, F(x)) = {{x}, {x, F(x)}}. Now x X and F(x) Y, so both belong to X Y. Hence {x} and {x, F(x)} are subsets of X Y and so they re both elements of (X Y). So far, all these are sets by various axioms. Hence (x, y) = {{x}, {x, F(x)}} and so is a subset of (X Y). Therefore (x, F(x)) 2 (X Y). 29

Now such an F is a set of these so F is a subset of 2 (X Y) and hence is an element of 3 (X Y). Finally, X Y is a set of these functions and so is a subset of 3 (X Y). Thus X Y 4 (X Y). By the axioms of unions and power sets 4 (X Y) is a set and by the Axiom of Specification we can prove that X Y is a set. Clearly X = if X since there are no functions from a non-empty set to the empty set. But X = { } for all X. 3.3 n-tuples, Sequences and Families We have yet to define numbers. That will have to wait until the next chapter. Here we will consider certain mathematical objects that we use in mathematics, such as n-tuples, sequences and matrices. We have already seen how to view an ordered pair as a set: (a, b) = {{a}, {a, b}}. It would be possible to extend this to an ordered triple, or a general n-tuple, but it is more convenient to do this by means of functions from sets of natural numbers. Never mind that we don t have any such objects at this stage. We denote the set {1, 2,, n} by [n]. We define an n-tuple as a function, x: [n] S, for some set S. We usually denote x(k) by x k and the n-tuple itself as (x 1, x 2,, x k ). We call [n] the indexing set. Since functions from sets to sets are sets then n-tuples are sets. And the class of all n-tuples on a set S is simply S [n] and so, by Theorem 2, it is itself a set. You may have noticed that usually S [n] is written as S S S (n factors), or more simply as S n. An m n matrix over a set S can be considered as an n-tuple from S n to S. That is, using the language of matrices, an m n matrix is a row vector with n components, where each component is a column vector with m components. And of course, there is fundamentally no difference between a row vector and a column vector except for ease of notation. Each m n matrix is therefore a set and the class of all m n matrices over S is a set. Is the ordered pair (a, b) also a 2-tuple? Well, yes and no. In the course of doing ordinary mathematics we would treat them as the same thing, and that s fine. But we defined ordered pairs separately to n-tuples and, if we drill down to their nature as sets, they will be different. The ordered pair (a, b) was defined as {{a}, {a, b}}. But the 2-tuple (a, b) is the function F:{1, 2} S where F(1) = a and F(2) = b. Now viewing this function as a relation it would be {(1, a), (2, b)} and writing each of these ordered pairs as a set, we would have (a, b) = {{{1}, {1, a}}, {{2}, {2, b}}}. Why didn t we define n-tuples first and then automatically we would have had ordered pairs as 2-tuples. Can you see why this wouldn t work? Our definition of n- tuples was in terms of functions and functions were defined in terms of ordered pairs. So we were forced to define ordered pairs first, before n-tuples! But the distinction between an ordered pair and a 2-tuple is purely a technical one in the context of setting mathematics on the foundations of set theory. In everyday mathematics the distinct is artificial and is ignored. 30

Often we have sequences where the components come from different sets. The Cartesian product R S T consists of 3-tuples (x, y, z) where x R, y S and z T. We would consider R S T as a subset of (R S T) 3. When the number of components is infinite we use different terminology. We don t refer to an -tuple, but rather as an infinite sequence. The infinite sequence: x 1, x 2, would be defined as a function from {1, 2, } to a set S. Often it is convenient to begin the sequence with an x 0 (it makes no difference in practice) and then we can say that the infinite sequence x 0, x 1, x 2, is simply a function from N, the set of natural numbers, to the set S. But we are jumping the gun a little here because we haven t yet defined the natural numbers. We ll do that shortly. Occasionally we need something bigger than a sequence. If I and S are sets and we define a family (F i ) i I to be a function F:I S. The set I is called the indexing set. Here F i is an alternative way of writing F(i). If I = {1, 2,, n} this is simply an n-tuple. If I = N then it is an infinite sequence. But we can consider more general families. Example 6: In topology we consider systems of neighbourhoods of points. If a R 2, considered as a point in the plane, and r > 0 we define the r-neighbourhood to be N r (a) = {x x a < r}, an open circle of radius r centred at a. These are form a family (N r (a)) r R+ where R + is the indexing set. With all our work we still cannot even talk about kindergarten arithmetic. Counting 1, 2, 3, exposes the young child to a very abstract concept. What exactly is the number 3. We point to a picture of three ducks and a picture of three balls and eventually the child manages to extract the threeness. But even mature adults would be unable to give a satisfactory definition of three. Fortunately we get along in life without having formal definitions. How would you define a cat, for example? But we have undertaken the job of establishing mathematics on a rigorous foundation, so we are going to have to define numbers precisely. That is our very next task. 31

32