Comparing sizes of sets

Similar documents
EDAA40 At home exercises 1

A B. bijection. injection. Section 2.4: Countability. a b c d e g

2. Functions, sets, countability and uncountability. Let A, B be sets (often, in this module, subsets of R).

Cardinality of Sets. Washington University Math Circle 10/30/2016

THREE LECTURES ON BASIC TOPOLOGY. 1. Basic notions.

Functions. How is this definition written in symbolic logic notation?

Cantor s Diagonal Argument for Different Levels of Infinity

Let A(x) be x is an element of A, and B(x) be x is an element of B.

Section 1.7 Sequences, Summations Cardinality of Infinite Sets

Section 2.4 Sequences and Summations

MATHEMATICS 191, FALL 2004 MATHEMATICAL PROBABILITY Outline #1 (Countability and Uncountability)

TOPOLOGY, DR. BLOCK, FALL 2015, NOTES, PART 3.

Cardinality of Sets MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Cardinality of Sets Fall / 15

Lecture 1. 1 Notation

Functions. Def. Let A and B be sets. A function f from A to B is an assignment of exactly one element of B to each element of A.

Infinity and Uncountability. Countable Countably infinite. Enumeration

Proof Techniques Alphabets, Strings, and Languages. Foundations of Computer Science Theory

Homework Set #2 Math 440 Topology Topology by J. Munkres

Functions 2/1/2017. Exercises. Exercises. Exercises. and the following mathematical appetizer is about. Functions. Functions

Topology Homework 3. Section Section 3.3. Samuel Otten

MATH 54 - LECTURE 4 DAN CRYTSER

Phil 320 Chapter 1: Sets, Functions and Enumerability I. Sets Informally: a set is a collection of objects. The objects are called members or

MITOCW watch?v=4dj1oguwtem

MATH 22 MORE ABOUT FUNCTIONS. Lecture M: 10/14/2003. Form follows function. Louis Henri Sullivan

Slides for Faculty Oxford University Press All rights reserved.

Calculating Cardinalities

Point-Set Topology 1. TOPOLOGICAL SPACES AND CONTINUOUS FUNCTIONS

Material from Recitation 1

Topology 550A Homework 3, Week 3 (Corrections: February 22, 2012)

Notes on metric spaces and topology. Math 309: Topics in geometry. Dale Rolfsen. University of British Columbia

2.8. Connectedness A topological space X is said to be disconnected if X is the disjoint union of two non-empty open subsets. The space X is said to

Introduction to Algebraic and Geometric Topology Week 5

9.5 Equivalence Relations

Cardinality Lectures

CS3102 Theory of Computation Solutions to Problem Set 1, Spring 2012 Department of Computer Science, University of Virginia

Functions. Prof. Susan Older. 20 October (CIS 375) Functions 20 Oct / 14

Topology problem set Integration workshop 2010

Complexity Theory. Compiled By : Hari Prasad Pokhrel Page 1 of 20. ioenotes.edu.np

Source of Slides: Introduction to Automata Theory, Languages, and Computation By John E. Hopcroft, Rajeev Motwani and Jeffrey D.

Introduction II. Sets. Terminology III. Definition. Definition. Definition. Example

Generell Topologi. Richard Williamson. May 6, 2013

Figure 1.1: This is an illustration of a generic set and its elements.

Lecture 4: examples of topological spaces, coarser and finer topologies, bases and closed sets

CS3102 Theory of Computation Solutions to Selected Problems from Set 1 Department of Computer Science, University of Virginia

Lecture 5: The Halting Problem. Michael Beeson

Elementary Recursive Function Theory

Functions. Jason Filippou UMCP. Jason Filippou UMCP) Functions / 19

COMPUTABILITY THEORY AND RECURSIVELY ENUMERABLE SETS

MATH 139 W12 Review 1 Checklist 1. Exam Checklist. 1. Introduction to Predicates and Quantified Statements (chapters ).

English for Computer Science

2.3: FUNCTIONS. abs( x)

Johns Hopkins Math Tournament Proof Round: Point Set Topology

The self-minor conjecture for infinite trees

Ma/CS 6b Class 26: Art Galleries and Politicians

CONNECTED SPACES AND HOW TO USE THEM

Counting. Andreas Klappenecker

2 Review of Set Theory

Point-Set Topology II

However, this is not always true! For example, this fails if both A and B are closed and unbounded (find an example).

Topology notes. Basic Definitions and Properties.

Recursively Enumerable Languages, Turing Machines, and Decidability

Lecture notes for Topology MMA100

Elementary Recursive Function Theory

ELEC-270 Solutions to Assignment 5

Solutions to Homework 10

2. Metric and Topological Spaces

CS 3512, Spring Instructor: Doug Dunham. Textbook: James L. Hein, Discrete Structures, Logic, and Computability, 3rd Ed. Jones and Barlett, 2010

Lecture 17: Continuous Functions

On Soft Topological Linear Spaces

CS3102 Theory of Computation Problem Set 2, Spring 2011 Department of Computer Science, University of Virginia

A Little Point Set Topology

The Pigeonhole Principle & Functions

PACKING DIGRAPHS WITH DIRECTED CLOSED TRAILS

CSC Discrete Math I, Spring Sets

Lecture 25 : Counting DRAFT

Computation, Computers, and Programs. Administrivia. Resources. Course texts: Kozen: Introduction to Computability Hickey: Introduction to OCaml

1KOd17RMoURxjn2 CSE 20 DISCRETE MATH Fall

SET DEFINITION 1 elements members

Lecture 19 Thursday, March 29. Examples of isomorphic, and non-isomorphic graphs will be given in class.

Regarding Python level necessary for the course

Lecture 15: The subspace topology, Closed sets

Notes on categories, the subspace topology and the product topology

4. Definition: topological space, open set, topology, trivial topology, discrete topology.

Sets MAT231. Fall Transition to Higher Mathematics. MAT231 (Transition to Higher Math) Sets Fall / 31

CHAPTER 2. Graphs. 1. Introduction to Graphs and Graph Isomorphism

Chapter 11. Topological Spaces: General Properties

Announcements. Problem Set 3 due Friday, October 21. Alternate Midterm Times. Drop by office hours! Ask questions at

Review of Sets. Review. Philippe B. Laval. Current Semester. Kennesaw State University. Philippe B. Laval (KSU) Sets Current Semester 1 / 16

Solution for Homework set 3

Mathematics for Computer Science Exercises from Week 4

To illustrate what is intended the following are three write ups by students. Diagonalization

Does this program exist? Limits of computability. Does this program exist? A helper function. For example, if the string program is

9/19/12. Why Study Discrete Math? What is discrete? Sets (Rosen, Chapter 2) can be described by discrete math TOPICS

Bases of topologies. 1 Motivation

Continuous functions and homeomorphisms

In class 75min: 2:55-4:10 Thu 9/30.

.Math 0450 Honors intro to analysis Spring, 2009 Notes #4 corrected (as of Monday evening, 1/12) some changes on page 6, as in .

A greedy, partially optimal proof of the Heine-Borel Theorem

More reverse mathematics of the Heine-Borel Theorem

Interleaving Schemes on Circulant Graphs with Two Offsets

Transcription:

Comparing sizes of sets Sets A and B are the same size if there is a bijection from A to B. (That was a definition!) For finite sets A, B, it is not difficult to verify that there is a bijection from A to B iff A = B. Let s do it... Take arbitrary finite sets A and B. LR: Assume f : A B is bijective. Then f is injective. So, by the pigeonhole principle, A B. Also f 1 : B A is injective. [Do you follow this step?] So, again by the pigeonhole principle, B A. We can conclude that A = B. RL: Assume that A = B. Since A is finite, there is a bijection f : A {1,..., A }. And since B is also finite, there is a similar bijection g : B {1,..., B }. Moreover, since A = B, the codomains of bijections f and g are the same. It follows that g 1 f is a bijection from A to B.

Let s not write S when S is an infinite set The textbook proposes the notation A = B to say that A and B are the same size. But this is bad notation when A or B is infinite! Why? Because A is not defined for an infinite set A. What do I mean? Well, it won t do, for instance, to say that A = whenever A is infinite. Why? Because then any two infinite sets would be the same size! But aren t infinite sets all the same size? (Namely, infinite.) Well no, but that s a long story...

Countable sets A set is countable if it is finite or is the same size as N. So countable sets can be either finite or infinite. The obvious question is: Are there any sets that are not countable? Short answer: Yes. Familiar example of an uncountable set: The set of real numbers. Or the open interval of real numbers between 0 and 1. Or power(n ). Or power({0, 1} ). Soon we will learn a method called diagonalization for proving that one infinite set is larger than another. But first let s get a firmer understanding of countability...

Countability as enumerability Pick a natural number k. If you start listing the natural numbers in their standard order that is, enumerating them you will reach k in a finite number of steps (namely, k + 1 steps). Intuitively, this is an argument that N is enumerable, or countable. Similarly, take any set S for which there is a bijection f : S N. Each element x of S corresponds to a natural number f (x). If you start listing the elements of S in the order given by f (f 1 (0), f 1 (1), f 1 (2)...), you will reach x (for any given x) in a finite number of steps (namely f (x) + 1 steps). This is the correct understanding of enumerability. So how about this (fallacious) argument? To see that the real numbers are countable, do the following. Take an arbitrary real number x. Now start listing real numbers, one by one, and after some number of steps, include x as the next element in the list. Since you wrote x within a finite number of steps, the set of real numbers is countable.

Every subset of N is countable Claim: Every subset of the natural numbers is countable. Proof: Take any subset S of N. [So what is our goal now?] If S is finite, we re done. So assume S is infinite. Notice that for each x S, { n n S, n < x } is finite. Take f : S N as follows. For all x S, f (x) = { n n S, n < x }. To see that f is injective, consider any two distinct elements x, y of S. Wlog assume that x < y. Then f (x) < f (y). To see this, notice that y / { n n S, n < x } while { n n S, n < x } { n n S, n < y }. To see that f is surjective, take any k N. Let A be the set consisting of the k + 1 smallest elements of S. (That is, A = k + 1 and every element of A is less than every element of S A.) Let x be the largest element of A, and notice that f (x) = k.

Proving countability To show that A is countable, it is sufficient to show that there is an injection from A to N. Indeed, if f : A N is injective, then there is a bijection such that, for all x A, g : A range(f ) g(x) = f (x). [How hard is it to see that g is bijective?] The existence of such a g shows that A is the same size as range(f ), which is a subset of N, and so, a countable set. Or, equivalently, it suffices to show that there is a surjection from N to A. Why? (Because this implies that there is an injection from A to N.)

Every subset of a countable set is countable Claim: Every subset of a countable set is countable. Proof: Let A be a subset of countable set S. Since S is countable, there is an injection f : S N. Take g : A N s.t. for all x A, g(x) = f (x). Then g is an injection from A N, which shows that A is countable

Proving countability (more generally) To show that A is countable, it is sufficient to show that there is an injection from A to some countable set. To see this, assume that B is countable, and that f : A B is injective. Since B is countable, there is an injection g : B N. It follows that (g f ) is an injection from A to N, from which we can conclude that A is countable. And from this it follows that we can also prove A countable by showing that there is a surjection from some countable set to A. [Why?]

The image of a countable set is countable Claim: The image of a countable set (under any function) is countable. Proof: Let f be a function from A to B. Assume that S is a countable subset of A. [So what is our goal now?] Take g : S f (S) s.t. for all x S, g(x) = f (x). Notice that g is a surjection from a countable set, namely S, to f (S). From this we can conclude that f (S) is countable.

N N is countable Claim: N N is countable. Proof idea: (0, 0) 0 (0, 1), (1, 0) 1, 2 (0, 2), (1, 1), (2, 0) 3, 4, 5 (0, 3), (1, 2), (2, 1), (3, 0) 6, 7, 8, 9 (0, 4), (1, 3), (2, 2), (3, 1), (4, 0) 10, 11, 12, 13, 14 (0, n), (1, n 1),..., (n, 0).. P n i=0 i,..., `P n i=0 + n This bijection is given by Cantor s pairing function, mentioned in the last set of lecture notes as an example of an injective function. ( x+y ) f (x, y) = i=0 i + x = (x+y)(x+y+1) 2 + x = x 2 +xy+x+yx+y 2 +y 2 + 2x 2 = (x+y)2 +3x+y 2

Every countable union of countable sets is countable Claim: If S 0, S 1,... is a sequence of countable sets, then is also countable. [ n N Proof: For each set S i, let f i be a surjection from N to S i. (Such a function f i exists, since S i is countable.) Take g : N N [ s.t. for all m, n N, S n n N g(m, n) = f m(n). Observe that g is surjective. Indeed, take any x [ S n. Then, for some m N, x S m. n N And since f m : N S m is surjective, there is an n N s.t. f m(n) = x. And since g is a surjection from the countable set N N, we can conclude that S n N Sn is countable. S n

The rational numbers are countable In the last set of lecture notes, we considered a bijection between the integers and the natural numbers. The existence of such a function shows that the integers are countable. Now, let s show that the rational numbers are countable. We ll do this by representing them as a countable union of countable sets... For each positive integer d, let n n o S d = d n Z. Since the integers are countable, so is S d (for every d Z + ). Let S 0 =. Now the set of rational numbers can be written as a countable union of countable sets, as follows. [ d N And this shows that the set of rational numbers is indeed countable. S d

The set of all strings (over any alphabet) is countable Recall: An alphabet is a finite set of symbols, and for any alphabet A, A is the set of all strings over A. If A is empty, then A = If A is a singleton, then it is still easy to see that A is countable. Indeed, take f : A N s.t. for all x A, f (x) = x. If A > 1, we need a different approach. As it happens though, the definition of closure is perfect for this: A = [ A n n N Notice that, for all n N, A n is countable (in fact, finite). Thus, A is a countable union of countable sets, and so, countable. So, is every language (over every alphabet) countable? Why?