Relations, Functions, and Sequences

Similar documents
1.4 Equivalence Relations and Partitions

Sets and Functions. MATH 464/506, Real Analysis. J. Robert Buchanan. Summer Department of Mathematics. J. Robert Buchanan Sets and Functions

Automata and Languages

Reading 11 : Relations and Functions

2.1 Sets. Definition 1 A set is an unordered collection of objects. Important sets: N, Z, Z +, Q, R.

Relations, Functions & Binary Operations

Relations. Definition 1 Let A and B be sets. A binary relation R from A to B is any subset of A B.

CSC Discrete Math I, Spring Relations

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Sets. A set is a collection of objects without repeats. The size or cardinality of a set S is denoted S and is the number of elements in the set.

14 Equivalence Relations

Sets and Motivation for Boolean algebra

RED. Name: Instructor: Pace Nielsen Math 290 Section 1: Winter 2014 Final Exam

LESSON RELATIONS & FUNCTION THEORY

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Sets and Functions. (As we will see, in describing a set the order in which elements are listed is irrelevant).

Notes. Relations. Introduction. Notes. Relations. Notes. Definition. Example. Slides by Christopher M. Bourke Instructor: Berthe Y.

Part IA Numbers and Sets

Relations Graphical View

A is a subset of (contained in) B A B iff x A = x B Socrates is a man. All men are mortal. A = B iff A B and B A. A B means A is a proper subset of B

Sets. Subsets. for any set A, A and A A vacuously true: if x then x A transitivity: A B, B C = A C N Z Q R C. C-N Math Massey, 72 / 125

Week 4-5: Binary Relations

Section Summary. Relations and Functions Properties of Relations. Combining Relations

Solutions to In Class Problems Week 4, Mon.

RELATIONS AND FUNCTIONS

Section 0. Sets and Relations

9/19/2018. Cartesian Product. Cartesian Product. Partitions

Real Analysis. Joe Patten August 12, 2018

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland


RED. Fall 2016 Student Submitted Sample Questions

Foundations of Mathematics

1.4 Cardinality. Tom Lewis. Fall Term Tom Lewis () 1.4 Cardinality Fall Term / 9

Chapter 1 : The language of mathematics.

SETS AND FUNCTIONS JOSHUA BALLEW

Relations. P. Danziger. We may represent a relation by a diagram in which a line is drawn between two elements if they are related.

Cardinality and ordinal numbers

MATH 433 Applied Algebra Lecture 14: Functions. Relations.

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

Chapter 9: Relations Relations

Chapter 2 - Relations

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

HL Topic. Sets, relations and groups. (Further Mathematics SL Topic 3) Sets Ordered pairs Functions Binary operations Groups Further groups

Chapter12. Relations, Functions, and Induction

Relations. Relations of Sets N-ary Relations Relational Databases Binary Relation Properties Equivalence Relations. Reading (Epp s textbook)

Math 5801 General Topology and Knot Theory

COMP 182 Algorithmic Thinking. Relations. Luay Nakhleh Computer Science Rice University

9 RELATIONS. 9.1 Reflexive, symmetric and transitive relations. MATH Foundations of Pure Mathematics

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

0 Sets and Induction. Sets

Chapter 1. Sets and Mappings

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Fall

QUESTION BANK II PUC SCIENCE

Math 300: Final Exam Practice Solutions

0 Logical Background. 0.1 Sets

Math 105A HW 1 Solutions

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Worksheet on Relations

Massachusetts Institute of Technology 6.042J/18.062J, Fall 02: Mathematics for Computer Science Professor Albert Meyer and Dr.

Relations and Equivalence Relations

MCS-236: Graph Theory Handout #A4 San Skulrattanakulchai Gustavus Adolphus College Sep 15, Methods of Proof

HANDOUT AND SET THEORY. Ariyadi Wijaya

CHAPTER 1. Relations. 1. Relations and Their Properties. Discussion

Discussion Summary 10/16/2018

Lecture 7: Relations

ABOUT THE CLASS AND NOTES ON SET THEORY

Discrete Mathematics. Benny George K. September 22, 2011

Topics in Logic, Set Theory and Computability

3 FUNCTIONS. 3.1 Definition and Basic Properties. c Dr Oksana Shatalov, Spring

MATH 215 Sets (S) Definition 1 A set is a collection of objects. The objects in a set X are called elements of X.

Relationships between elements of sets occur in many contexts. Every day we deal with

Math 4603: Advanced Calculus I, Summer 2016 University of Minnesota Notes on Cardinality of Sets

Real Analysis. P. Ouwehand. Department of Mathematics and Applied Mathematics University of Cape Town

Writing Assignment 2 Student Sample Questions

5 Set Operations, Functions, and Counting

Review of Functions. Functions. Philippe B. Laval. Current Semester KSU. Philippe B. Laval (KSU) Functions Current Semester 1 / 12

Week 4-5: Binary Relations

Set Basics. P. Danziger

Review Problems for Midterm Exam II MTH 299 Spring n(n + 1) 2. = 1. So assume there is some k 1 for which

Some Basic Notations Of Set Theory

MODEL ANSWERS TO THE SEVENTH HOMEWORK. (b) We proved in homework six, question 2 (c) that. But we also proved homework six, question 2 (a) that

SOME TRANSFINITE INDUCTION DEDUCTIONS

Functions Functions and Modeling A UTeach/TNT Course

A Logician s Toolbox

EQUIVALENCE RELATIONS (NOTES FOR STUDENTS) 1. RELATIONS

Relations, Functions, Binary Relations (Chapter 1, Sections 1.2, 1.3)

Definition: A binary relation R from a set A to a set B is a subset R A B. Example:

Sets, Functions and Relations

9/21/2018. Properties of Functions. Properties of Functions. Properties of Functions. Properties of Functions. Properties of Functions

MATH 220 (all sections) Homework #12 not to be turned in posted Friday, November 24, 2017

Mathematics Review for Business PhD Students

Scott Taylor 1. EQUIVALENCE RELATIONS. Definition 1.1. Let A be a set. An equivalence relation on A is a relation such that:

Math Fall 2014 Final Exam Solutions

Introductory Analysis I Fall 2014 Homework #5 Solutions

Binary Relations Part Two

Copyright c 2007 Jason Underdown Some rights reserved. statement. sentential connectives. negation. conjunction. disjunction

Chapter 1. Sets and Numbers

1. (B) The union of sets A and B is the set whose elements belong to at least one of A

REVIEW FOR THIRD 3200 MIDTERM

Transcription:

MCS-236: Graph Theory Handout #A3 San Skulrattanakulchai Gustavus Adolphus College Sep 13, 2010 Relations, Functions, and Sequences Relations An ordered pair can be constructed from any two mathematical objects. For example, the ordered pair (2, 1) has 2 as its first component and 1 as its second component. The ordered pair (0, 0) has 0 in both components. If stands for the multiplication operation then the ordered pair (N, ) has the set of natural numbers as its first component and multiplication as its second component. Two ordered pairs (a, b) and (c, d) are said to be equal, written (a, b) = (c, d), if a = c and b = d. An ordered pair is different from an unordered pair. So (a, a) {a, a}, (a, b) (b, a), but {a, b} = {b, a}. Given two sets A and B, we define its Cartesian product, written A B, to be A B = {(a, b) : a A, b B}. For example, the plane we study in analytic geometry is simply R R (also written R 2 ). A relation R from A to B is some subset of A B. If (a, b) R, we say that a is related to b in R, and write arb. The empty set is the smallest relation from A to B. The relation A B is the biggest relation from A to B. A relation R from A to A is called a relation on A. Here are some examples. The unit circle U centered at the origin is a relation on R since U is {(x, y) R 2 : x 2 + y 2 = 1}, a subset of R 2. The relations <,, >,, = and their negations are all relations on R. is a brother (sister, parent, sibling, etc) of are relations on humans.

2 MCS-236: Handout #A3 A relation R on A is said to be reflexive if ara for all a A. A relation R on A is said to be symmetric if bra whenever arb. A relation R on A is said to be transitive if arc whenever both arb and brc. (How to axiomatize equality.) A relation R on a set A is said to be an equivalence relation if R is reflexive, symmetric, and transitive. Show that if we define arb if a 2 b 2 is even, then R is an equivalence relation on Z. A partition of a set S is a nonempty collection of disjoint, nonempty subsets of S whose union equals S. For example, if P = {S 1, S 2,...,S k } is a partition of S into k subsets, then we have that (i) S i for any i, (ii) k i=1 S i = S, and (iii) S i S j = if i j. In general, a partition may be infinite. Equivalence relation and partition are closely related concepts. Given an equivalence relation, there is a unique partition associated with it, and vice versa. Let X be any set and let C be any collection of subsets of X, i.e., for every C, if C C then C X. We define C to be C = {y : y C for some C C}. Let R be an equivalence relation on X. For each a X, define the equivalence class of a under the relation R, written [a] R, to be the set of all elements of X that a is related to, i.e., [a] R = {x X : arx}. Theorem. For any a, b X and any equivalence relation R on X, we have arb if and only if [a] R = [b] R. Proof. Assume that a, b are any elements of X and R is any equivalence relation on X. Suppose arb. We will prove that [a] R = [b] R. We ll first show that [a] R [b] R. So let c be an arbitrary element in [a] R. By definition of [a] R, we have arc. So by symmetry of R, we see that cra. By assumption, arb. So by transitivity of R, it follows that crb. Again by symmetry of R, we see that brc. So by defintion of [b] R, we conclude that c [b] R. We have now shown that every elment in [a] R is also a member of [b] R. In other words, [a] R [b] R.

MCS-236: Handout #A3 3 That [b] R [a] R can be proved in a similar way. Thus [a] R = [b] R. Conversely, suppose that [a] R = [b] R. We will show that arb. Since R is reflexive, we know that brb. So by definition of [b] R, we conclude that b [b] R. Since [a] R = [b] R by assumption, we then have that b [a] R. So by defintion of [a] R, we conclude that arb. Theorem. Let R be an equivalence relation on X. Define P to be P = {[x] R : x X}. The collection P is then a partition of X. Proof. To prove that P is a partition of X, we have to show that 1. [x] R for all x X, 2. for any a, b X, if [a] R [b] R then [a] R = [b] R, and 3. P = X. We prove item 1 as follows. Let x be an arbitrary element of X. By the reflexivity of R, we conclude xrx. This means that the equivalence class [x] R is not empty since it contains at least an element, specifically element x. We prove item 2 as follows. Suppose a, b are any elements of X such that [a] R [b] R. Let c ([a] R [b] R ). Then c [a] R and c [b] R. Since c [a] R, we see that arc by definition of [a] R. Therefore, [a] R = [c] R by last theorem. Since c [b] R, we see that brc by definition of [b] R. Therefore, [b] R = [c] R by last theorem. (Therefore, [c] R = [b] R as well since equality of sets is an equivalence relation.) Therefore, [a] R = [c] R and [c] R = [b] R. So [a] R = [b] R by transitivity of set equality. We prove item 3 as follows. Since each element of P is a subset of X, we conclude that P X. Now let x be an arbitrary element of X. Then x [x] R P. Therefore, x P. Thus, X P. Hence, P = X. Theorem. Let C be any partition of X. Define R to be a relation on X by declaring that for any a, b X, it holds that arb if and only if there exists a C C such that a C and b C. The relation R so defined is then an equivalence relation on X.

4 MCS-236: Handout #A3 For any relation R from A to B, we define its inverse relation R 1 to be {(b, a) B A : (a, b) R}. A relation R on X is called antisymmetric if for all a, b X if arb and bra, then a = b. A relation R on X is called asymmetric if for no a X is ara. A relation R on X is called a partial order if it is reflexive, transitive, and antisymmetric. A partial order R on X is a total order (or linear order) if for all a, b X, either arb or bra. Let R be a partial order on X. An element a in X is called a minimal element if for any element b X, if bra then b = a. Similarly, an element a in X is called a maximal element if for any element b X, if arb then b = a. An element a in X is called a minimum element if arb for all elements b X. An element a in X is called a maximum element if bra for all elements b X. Exercises: 1. Let S be a nonempty set, and let C be the collection of all subsets of S, i.e., C = {C : C S}. Prove that is a partial order on C. Show that if S > 1, then is not a a total order. 2. Let X = {2, 3, 4, 5, 6, 7, 8, 9, 10}. Define R to be a relation on X by declaring that for all a, b X, we have arb if and only if a is factor of b. For example, 2R8, 3R9, but it s not true that 9R8. Prove that R is a partial order on X. Show that R is not a total order. 3. Prove that is a total order on R. 4. For each of the partial orders listed above, list all elements that are minimal, maximal, minimum, or maximum.

MCS-236: Handout #A3 5 Functions A function f from set A to set B, written f : A B, is a relation from A to B such that each a A is the first component of exactly one ordered pair. Set A is called the domain and set B is called the codomain of f. If (a, b) f, we write b = f(a) and call b the image of a under f. The range of f is defined to be {b B : b = f(a) for some a}. A function f is injective (1-to-1) if f(a) = f(a ) = a = a for all a, a. A function is surjective (onto) if its range equals its codomain. A function is bijective (1-to-1 and onto) if it is both injective and surjective. Theorem. A function f : A A that is 1-1 (onto) is not necessarily onto (1-1) unless A is finite. Given functions f : A B and g : B C we define the composite function g f to be the function from A to C such that (g f)(a) = g(f(a)) for all a A. Theorem 2.4 (Appendix 2, CZ). If f : A B and g : B C are bijective, then g f is bijective. Theorem 2.5 (Appendix 2, CZ). If f : A B is a function, then f 1 is a bijective function if and only if f is bijective. A permutation of A is any bijective f : A A. A = B if there is a bijection f : A B

6 MCS-236: Handout #A3 Sequences Let S be any nonempty set. A infinite sequence in S is a function from N to S. A finite sequence in S is a function from {0, 1, 2,..., n} to S for some n N. We usually write a sequence by enumerating its range like so a 0, a 1, a 2,... or like so or even like so (s 0, s 1, s 2, s 3, s 4, s 5 ) v 0, v 1, v 2, v 3, v 4. We sometimes start counting from 1 instead of 0. So it s common to also see a sequence written as v 1, v 2, v 3, v 4, v 5 etc.