Functions. Ex. f : R 0 Ñ R 0 defined by x fiñ x 2.

Similar documents
Cardinality of sets. Cardinality of sets

9 < Ways to place n distinguishable objects= S(n, k) = into k indistinguishable boxes so that no box is left empty We stated in section 6.

In words: Let be the relation on Z given by a b if a b. (Note that we use language like in definitions, where if actually means if and only if.

CITS2211 Discrete Structures (2017) Cardinality and Countability

ADVANCE TOPICS IN ANALYSIS - REAL. 8 September September 2011

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

SETS AND FUNCTIONS JOSHUA BALLEW

INFINITY: CARDINAL NUMBERS

Functions. Definition 1 Let A and B be sets. A relation between A and B is any subset of A B.

A Short Review of Cardinality

Discrete Mathematics for CS Spring 2007 Luca Trevisan Lecture 27

Discussion Summary 10/16/2018

PRINCIPLES OF ANALYSIS - LECTURE NOTES

Section 0. Sets and Relations

Section 7.5: Cardinality

Mathematics 220 Workshop Cardinality. Some harder problems on cardinality.

Example. The sequence defined by the function. a : Z 0 Ñ Q defined by n fiñ 1{n

S15 MA 274: Exam 3 Study Questions

NOTES WEEK 02 DAY 1. THEOREM 0.3. Let A, B and C be sets. Then

Week 4-5: Binary Relations

Lecture 8: Equivalence Relations

Math 300: Final Exam Practice Solutions

Chapter Summary. Sets (2.1) Set Operations (2.2) Functions (2.3) Sequences and Summations (2.4) Cardinality of Sets (2.5) Matrices (2.

Week 4-5: Binary Relations

Name (print): Question 4. exercise 1.24 (compute the union, then the intersection of two sets)

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Chapter 1 : The language of mathematics.

Definition: Let S and T be sets. A binary relation on SxT is any subset of SxT. A binary relation on S is any subset of SxS.

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

Final Exam Review. 2. Let A = {, { }}. What is the cardinality of A? Is

MATH 13 SAMPLE FINAL EXAM SOLUTIONS

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

Introduction to Applied Algebraic Topology

Thus, X is connected by Problem 4. Case 3: X = (a, b]. This case is analogous to Case 2. Case 4: X = (a, b). Choose ε < b a

Math 105A HW 1 Solutions

Basic counting techniques. Periklis A. Papakonstantinou Rutgers Business School

Chapter Summary. Sets The Language of Sets Set Operations Set Identities Functions Types of Functions Operations on Functions Computability

ABOUT THE CLASS AND NOTES ON SET THEORY

Principles of Real Analysis I Fall I. The Real Number System

Any Wizard of Oz fans? Discrete Math Basics. Outline. Sets. Set Operations. Sets. Dorothy: How does one get to the Emerald City?

Sets are one of the basic building blocks for the types of objects considered in discrete mathematics.

Last time: Cyclic groups. Proposition

Fundamentals of Pure Mathematics - Problem Sheet

CS 125 Section #10 (Un)decidability and Probability November 1, 2016

Random Variables. Andreas Klappenecker. Texas A&M University

DS-GA 1002: PREREQUISITES REVIEW SOLUTIONS VLADIMIR KOBZAR

Lecture 10: Everything Else

Mathematics Course 111: Algebra I Part I: Algebraic Structures, Sets and Permutations

Notes on counting. James Aspnes. December 13, 2010

ADVANCED CALCULUS - MTH433 LECTURE 4 - FINITE AND INFINITE SETS

Discrete Mathematics and Probability Theory Spring 2014 Anant Sahai Note 20. To Infinity And Beyond: Countability and Computability

MATH 101: ALGEBRA I WORKSHEET, DAY #1. We review the prerequisites for the course in set theory and beginning a first pass on group. 1.

Functions and cardinality (solutions) sections A and F TA: Clive Newstead 6 th May 2014

Erdinç Dündar, Celal Çakan

UMASS AMHERST MATH 300 SP 05, F. HAJIR HOMEWORK 8: (EQUIVALENCE) RELATIONS AND PARTITIONS

Finite and Infinite Sets

Lecture 3: Sizes of Infinity

Today. Wrapup of Polynomials...and modular arithmetic. Coutability and Uncountability.

Exercises for Unit VI (Infinite constructions in set theory)

Cardinality and ordinal numbers

Lecture 2: Period Three Implies Chaos

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

Isomorphisms and Well-definedness

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

One-to-one functions and onto functions

Reed-Solomon code. P(n + 2k)

Week Some Warm-up Questions

Countable and uncountable sets. Matrices.

0 Sets and Induction. Sets

CHAPTER 8: EXPLORING R

Chapter 1. Sets and Mappings

REVIEW FOR THIRD 3200 MIDTERM

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

a + b = b + a and a b = b a. (a + b) + c = a + (b + c) and (a b) c = a (b c). a (b + c) = a b + a c and (a + b) c = a c + b c.

Solutions to Tutorial for Week 4

Properties of the Integers

Economics 204 Summer/Fall 2017 Lecture 1 Monday July 17, 2017

Lecture 21: Midterm 2 Review.

Automata and Languages

Foundations Revision Notes

MATH 3300 Test 1. Name: Student Id:

Warm-up Quantifiers and the harmonic series Sets Second warmup Induction Bijections. Writing more proofs. Misha Lavrov

1 Partitions and Equivalence Relations

Discrete Mathematics 2007: Lecture 5 Infinite sets

6 Cosets & Factor Groups

Warmup Recall, a group H is cyclic if H can be generated by a single element. In other words, there is some element x P H for which Multiplicative

RELATIONS AND FUNCTIONS

Chapter 1. Sets and Numbers

Math /Foundations of Algebra/Fall 2017 Foundations of the Foundations: Proofs

Modular Arithmetic Inverses and GCD

Math 42, Discrete Mathematics

Proofs. Chapter 2 P P Q Q

Countable and uncountable sets. Matrices.

MATH FINAL EXAM REVIEW HINTS

Math 3361-Modern Algebra Lecture 08 9/26/ Cardinality

1. A Little Set Theory

Supplementary Material for MTH 299 Online Edition

PRODUCT MEASURES AND FUBINI S THEOREM

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

Transcription:

Functions Let f : X Ñ Y be a function. Recall, the image of f is fpxq ty P Y fpxq y for some x P Xu. Further, f is... injective if at most one x P X maps to each y P Y,i.e. if fpx q fpx q then x x. Ex. f : R 0 Ñ R defined by x fiñ x. Non-ex. f : R Ñ R defined by x fiñ x. surjective if every y P Y gets mapped to, i.e. for all y P Y,thereexistsxPX such that fpxq y. Ex. f : R Ñ R 0 defined by x fiñ x. Non-ex. f : R Ñ R defined by x fiñ x. bijective if it s both injective and surjective. Ex. f : R 0 Ñ R 0 defined by x fiñ x. Non-ex. f : R Ñ R defined by x fiñ x. Injective, not surjective: f c b a 0 X Y Surjective, not injective: f c b a X Y To show f : X Ñ Y is injective: Start: Suppose fpx q fpx q... Goal: Show x x. To show f : X Ñ Y is surjective: Start: Let y P Y... Goal: Find x P X such that fpxq y.

For a function f : X Ñ Y,andanelementy P Y,let f pyq tx P X fpxq yu Ä X, called the inverse image or preimage of y. Note that this is abusing notation: we write f whether or not f is invertible; and f pyq is a set, not an element. c f f pq H b f pq tb, cu a X Y f pq tau We say f is invertible if for all y P Y, f pyq has exactly one element (no more, no fewer). Thm. For nonempty sets X and Y, a function f : X Ñ Y is invertible if and only if it is bijective. We say f is invertible if for all y P Y, f pyq has exactly one element (no more, no fewer). Thm. For nonempty sets X and Y, a function f : X Ñ Y is invertible if and only if it is bijective. Proof. Suppose f is bijective. Since f is surjective, for all y P Y,wehave f pyq. Andsincef is injective, for any x,x P f pyq, we have x x.so f pyq. Therefore,forally P Y,wehave f pyq, sothatf is invertible. Now suppose f is invertible. Thus for all y P Y,wehave f pyq. Therefore,forally P Y, fpyq H,sothatf is surjective. And for all y P Y,sincef pyq has exactly one element, it has at most one element. So f is injective. Therefore, f is bijective.

Cardinality of sets Two sets A and B have the same size, or cardinality, ifthereisa bijection f : A Ñ B. Example: We know that set ta, b, cu has elements because we can count them: : a : b : c But this is essentially the same as the bijection f c b a A B Cardinality of sets Definition: Two sets A and B have the same size, orsame cardinality, ifand only if there is a bijection f : A Ñ B. (This allows us to measure the relative sizes of sets, even if they happen to be infinite!) Example: The sets Z 0 and Z 0 have the same cardinality since is a bijective map. f : Z 0 Ñ Z 0 x fiñ x

Countably infinite sets A set is countable if it is either finite or the same cardinality as the natural numbers (N Z 0 ). If a set A is not finite but is countable, we say A is countably infinite and write A @ 0 (pronounced aleph naught or aleph null ). To show that A @ 0 :showa is not finite, and give a bijection f : Z 0 Ñ A. Examples:. Z 0 is countably infinite: It is not finite, and f : Z 0 Ñ Z 0 by x fiñ x is a bijection.. Z 0 is countably infinite: It is not finite, and f : Z 0 Ñ Z 0 by x fiñ x is a bijection.. Z is countably infinite: Not finite, and f : Z 0 Ñ Z by x fiñ p q x tx{u is a bijection. Z 0 : 9 7 5 4 6 8 Z: 4 0 4 More on this last example, Z @ 0 : We started with the picture Z 0 : 9 7 5 4 6 8 Z: 4 0 4 This at least gives us a list of integers, :0, :, :, 4:, 5:,... If I know that every integer appears on this list somewhere, then I know that the integers are countable. (Ok answer) The next step in giving a more sophisticated, more robust, answer is to try to get the formula # written down: x{ if x is even, f : Z 0 Ñ Z x fiñ (Better answer) px q{ if x is odd. To be even more sophisticated, we used the floor function to get a closed form # answer: x{ if x is even, px q{ if x is odd p qx tx{u, for x P Z 0.(Best answer)

Recall that A B if and only if there is a bijection f : A Ñ B. If we know that A @ 0 and f : A Ñ B is a bijection, then B A @ 0. Example: To show that Z teven integers u is countably infinite, we could construct a bijection like in the previous example. But it s a little more straightforward to note that f : Z Ñ Z is a bijection, x fiñ x so that Z Z @ 0. Examples: For each of the following, show that the set is countably infinite. (Define a bijective function to something that we know to be countably infinite if it s not too hard; otherwise, explain how to make the list.). The set of negative integers (Z 0 ).. The set of integers less than 00 (Z 00 ).. The set of integers that are integer multiples of ( Z). 4. The set of integers that are not integer multiples of (Z Z). The rational numbers Claim: Q 0 is countably infinite. Make a table: 4 5 { { 5 { 6 4{ 5{ { { 7 { 4{ 5{ 4 { 8 { { 4{ 5{ (skip prev. counted fractions) 4 9 {4 {4 {4 4{4 5{4 5. 0 {5 {5 {5 4{5 5{5 Then use the same alternating map that we did for Z 0 Ñ Z to build a bijection Q 0 Ñ Q, yielding a bijection Z 0 Ñ Q 0 Ñ Q.

Are there sets that are not countable? Theorem. The set of real numbers in the interval r0, q is not countable. Proof outline: We will prove this by contradiction. Suppose that the set r0, q is countable, so that the real numbers in r0, q can be listed. Take one such list. Goal: Show that the list isn t complete. Namely, algorithmically produce an element of r0, q that isn t on any fixed list. Take this is the supposedly complete list of real numbers in r0, q. For example:. 0.00409057.... 0.4545.... 0.... 4. 0.500000000000... 5. 0.... 6. 0.555555555555... 7. 0.45965589... Algorithm for producing a number that is not on the list: In the ith number in the list, highlight the ith digit. Build a new number as follows: i. If the highlighted digit of the ith number is a 0, then make the corresponding digit of the new number a. 8. 0.00850000000... ii. If the highlighted digit of the ith number is not a 0, then make the 9. 0.... corresponding digit of the new 0. 0.750000000000... number a 0.. 0.948797647... Example:. 0.0000000... In this way, this new number di ers from every item in the list in at least one digit!

Theorem. The set of real numbers in the interval r0, q is not countable. Proof outline: We will prove this by contradiction. Suppose that the set r0, q is countable, so that the real numbers in r0, q can be listed. Show that any list isn t complete. Namely, algorithmically produce an element of r0, q that isn t on any fixed list. Proof. For x Pr0, q, denote the ith digit of x by xris. Note that for x, y Pr0, q, wehavex y if and only if xris yris for all i P Z 0. Now, suppose f : Z 0 Ñr0, q is a bijection. Define x f Pr0, q so that the ith digit of x f is # if fpiqris 0, x f ris 0 if fpiqris. Then, for all i P Z 0,wehavefpiqris x f ris, sothatfpiq x f. Therefore x f R fpz 0,sothatf is not surjective. This contradicts f being bijective, so no such bijection exists. Therefore r0, q is not countable. Theorem. The set of real numbers in the interval r0, q is not countable. Proof outline: We will prove this by contradiction. Suppose that the set r0, q is countable, so that the real numbers in r0, q can be listed. Show that any list isn t complete. Namely, algorithmically produce an element of r0, q that isn t on any fixed list. Proof. For x Pr0, q, denote the ith digit of x by xris. Note that for x, y Pr0, q, wehavex y if and only if xris yris for all i P Z 0. Now, suppose f : Z 0 Ñr0, q is a bijection let f : Z 0 Ñr0, q. Define x f Pr0, q so that the ith digit of x f is # if fpiqris 0, x f ris 0 if fpiqris. Then, for all i P Z 0,wehavefpiqris x f ris, sothatfpiq x f. Therefore x f R fpz 0,sothatf is not surjective. This contradicts f being bijective, so no such bijection exists. Thus, since no function f : Z 0 Ñr0, q can be surjective, no bijection between Z 0 and r0, q exists. Therefore r0, q is not countable.

For sets X and Y,wesay X Y if there exists an injective function f : X Ñ Y.Andwrite X Y if X Y and X Y. Recall, the power set of as set A is the set of subsets of A, given by Theorem. A PpAq. Outline: PpAq ts S Ñ Au.. Show A PpAq by showing an injective map exists (give one example).. Show A PpAq by showing that any map (not just the example from before) cannot be surjective. Hint. For any f : A Ñ PpAq, showf is not surjective; i.e. construct a set S Ñ A such that S fpaq for all a P A. (Need for care: is a there exists statement; is a for all statement.) Relations A binary relation on a set A is a subset R Ñ A ˆ A, where elements pa, bq are written as a b. Example: A Z and R ta b a bu. In words: Let be the relation on Z given by a b if a b. (Note that we use language like in definitions, where if actually means if and only if.) Example: A R and R ta b a bu. In words: Let be the relation on R given by a b if a b. Example: A Z and R ta b a b pmod qu. In words: Let be the relation on Z given by a b if a b pmod q.

More examples of (binary) relations:. For A anumbersystem,leta b if a b. R, S, T. For A anumbersystem,leta b if a b. not R, not S, T. For A R, leta b if ab 0. not R, S, not T 4. For A a set of people, let a b if a is a (full) sibling of b. not R, S, T 5. For A a set of people, let a b if a and b speak a common language. R, S, not T A binary relation on a set A is... (R) reflexive if a a for all a P A; (S) symmetric if a b implies b a; (T) transitive if a b and b c implies a c, i.e. pa b ^ b cq ña c An equivalence relation on a set A is a binary relation that is reflexive, symmetric, and transitive. (Only #) Fix n P Z 0 and define the relation on Z given by Is is an equivalence relation? a b if a b pmod nq. Check: we have a b pmod nq if and only if a b kn for some k P Z. reflexivity: symmetry: transitivity: a a 0 0 n X If a b kn, thenb a kn p kqn. X If a b kn and b c `n, then a c pa bq`pb cq kn ` `n pk ` `qn.x Yes! This is an equivalence relation!

Let A be a set. Consider the relation on PpAq by Is is an equivalence relation? S T if S Ñ T Check: This is reflexive and transitive, but not symmetric. So no, it is not an equivalence relation. Is S T if S Ñ T or S Ñ T an equivalence relation on PpAq? Check: This is reflexive and symmetric, but not transitive. So still no, it is not an equivalence relation. Is S T if S T an equivalence relation on PpAq? Read: Why reflexivity doesn t follow from symmetry and transitivity. Let be an equivalence relation on a set A, andleta P A. The set of all elements b P A such that a b is called the equivalence class of a, denoted by ras. Example: Consider the equivalence relation on A ta, b, cu given by Then a a, b b, c c, a c, and c a. ras ta, cu rcs, rbs tbu and are the two equivalence classes in A (with respect to this relation). (We say there are two, not three, since the equivalence classes refers to the sets themselves, not to the elements that generate them.)

Let be an equivalence relation on a set A, andleta P A. The set of all elements b P A such that a b is called the equivalence class of a, denoted by ras. Example: We showed that a b if a b pmod 5q is an equivalence relation on Z. Then r0s t5n n P Zu 5Z rs t5n ` n P Zu 5Z ` rs t5n ` n P Zu 5Z ` rs t5n ` n P Zu 5Z ` r4s t5n ` 4 n P Zu 5Z ` 4 r5s t5n ` 5 n P Zu t5m m P Zu r0s r 5s r0s r6s t5n ` 6 n P Zu t5m ` m P Zu rs r 4s rs. In general, if x Prys, thatmeansy x. So x y. So y Prxs. Claim: x Prys if and only if rxs rys. We call any element a of a class C representative of C (since we can write C ras for any a P C). Theorem. The equivalence classes of A partition A into subsets, meaning. the equivalence classes are subsets of A: ras Ñ A for all a P A;. any two equivalence classes are either equal or disjoint: for all a, b P A, eitherras rbs or rasxrbs H; and. the union of all the equivalence classes is all of A: A aparas. We say that A is the disjoint union of equivalency classes, written A ß aparas, L A TEX: \bigsqcup, \sqcup For example, in our last example, there are exactly 5 equivalence classes: r0s, rs, rs, rs, and r4s. Any other seemingly di erent class is actually one of these (for example, r5s r0s). And r0syrsyrsyrsyr4s Z. So Z r0s\rs\rs\rs\r4s.