Infinity and Uncountability. Countable Countably infinite. Enumeration

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

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

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

Section 1.7 Sequences, Summations Cardinality of Infinite Sets

Section 2.4 Sequences and Summations

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

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

MITOCW watch?v=4dj1oguwtem

Calculating Cardinalities

Cantor s Diagonal Argument for Different Levels of Infinity

Material from Recitation 1

CSE 20 DISCRETE MATH. Winter

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

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

Comparing sizes of sets

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

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

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

CS 341 Homework 1 Basic Techniques

CSE 20 DISCRETE MATH. Fall

The Size of the Cantor Set

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

SET DEFINITION 1 elements members

Solutions to First Exam, Math 170, Section 002 Spring 2012

CSE 120. Computer Science Principles

9.5 Equivalence Relations

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

The self-minor conjecture for infinite trees

Limitations of Algorithmic Solvability In this Chapter we investigate the power of algorithms to solve problems Some can be solved algorithmically and

CSE 20 DISCRETE MATH WINTER

A Proof of Pythagorian s Theorem

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

1KOd17RMoURxjn2 CSE 20 DISCRETE MATH Fall

3. Determine whether f is a function from the set of all bit strings to the set of integers if

Slides for Faculty Oxford University Press All rights reserved.

Cardinality Lectures

HW 1 CMSC 452. Morally DUE Feb 7 NOTE- THIS HW IS THREE PAGES LONG!!! SOLUTIONS THROUGOUT THIS HW YOU CAN ASSUME:

THREE LECTURES ON BASIC TOPOLOGY. 1. Basic notions.

Proposition 1. The edges of an even graph can be split (partitioned) into cycles, no two of which have an edge in common.

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

ELEMENTARY NUMBER THEORY AND METHODS OF PROOF

Technische Universität München Zentrum Mathematik

Chapter 1: Number and Operations

Introduction. Sets and the Real Number System

DISCRETE MATHEMATICS

LATIN SQUARES AND TRANSVERSAL DESIGNS

Unit 7 Number System and Bases. 7.1 Number System. 7.2 Binary Numbers. 7.3 Adding and Subtracting Binary Numbers. 7.4 Multiplying Binary Numbers

r=1 The Binomial Theorem. 4 MA095/98G Revision

Chapter 3. Set Theory. 3.1 What is a Set?

A.1 Numbers, Sets and Arithmetic

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

Problem. Prove that the square of any whole number n is a multiple of 4 or one more than a multiple of 4.

Point-Set Topology 1. TOPOLOGICAL SPACES AND CONTINUOUS FUNCTIONS

TOPICS. Integers Properties of addition and. Rational Numbers Need for rational numbers. Exponents or Powers Introduction to Exponents or

Metric and metrizable spaces

Thompson groups, Cantor space, and foldings of de Bruijn graphs. Peter J. Cameron University of St Andrews

TABLE OF CONTENTS. About Finish Line PA Core Math 5. UNIT 1: Big Ideas from Grade 7 7 UNIT 1 REVIEW 38. UNIT 2: The Number System 43 UNIT 2 REVIEW 58

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.

4&5 Binary Operations and Relations. The Integers. (part I)

Outline. Language Hierarchy

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

North Thurston Public Schools Sixth Grade Math Power Standard 1 Unit Assessment #1 and #3

Integers and Mathematical Induction

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

EDAA40 At home exercises 1

How to Do Word Problems. Study of Integers

SETS. Sets are of two sorts: finite infinite A system of sets is a set, whose elements are again sets.

2 Review of Set Theory

A graph is finite if its vertex set and edge set are finite. We call a graph with just one vertex trivial and all other graphs nontrivial.

Taibah University College of Computer Science & Engineering Course Title: Discrete Mathematics Code: CS 103. Chapter 2. Sets

CHAPTER 8. Copyright Cengage Learning. All rights reserved.

Technische Universität München Zentrum Mathematik

Infinity part I. High School Circle I. June 4, 2017

Unit 2: Accentuate the Negative Name:

Section 1.8. Simplifying Expressions

Pre-Calc Unit 1 Lesson 1

CONNECTED SPACES AND HOW TO USE THEM

Discrete Mathematics SECOND EDITION OXFORD UNIVERSITY PRESS. Norman L. Biggs. Professor of Mathematics London School of Economics University of London

Pick s Theorem and Lattice Point Geometry

Math 302 Introduction to Proofs via Number Theory. Robert Jewett (with small modifications by B. Ćurgus)

Algebraic Expressions

MATH 215B MIDTERM SOLUTIONS

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

Final Test in MAT 410: Introduction to Topology Answers to the Test Questions

CS6160 Theory of Computation Problem Set 2 Department of Computer Science, University of Virginia

6th Bay Area Mathematical Olympiad

Chapter Summary. Mathematical Induction Recursive Definitions Structural Induction Recursive Algorithms

Vocabulary: Looking For Pythagoras

Decimal Binary Conversion Decimal Binary Place Value = 13 (Base 10) becomes = 1101 (Base 2).

Digital Logic Design: a rigorous approach c

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

2 Geometry Solutions

Regarding Python level necessary for the course

Lemma (x, y, z) is a Pythagorean triple iff (y, x, z) is a Pythagorean triple.

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

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

8.1 Basic notions, facts and techniques

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

Name: CS 341 Practice Final Exam. 1 a 20 b 20 c 20 d 20 e 20 f 20 g Total 207

Odd-Numbered Answers to Exercise Set 1.1: Numbers

Transcription:

Infinity and Uncountability. Countable Countably infinite. Enumeration

How big is the set of reals or the set of integers? Infinite! Is one bigger or smaller?

Same size? Same number? Make a function f : Circles Squares. f (red circle) = red square f (blue circle) = blue square f (circle with black border) = square with black border One to one. Each circle mapped to different square. One to One: For all x,y D, x y = f (x) f (y). Onto. Each square mapped to from some circle. Onto: For all s R, c D,s = f (c). Isomorphism principle: If there is f : D R that is one to one and onto, then, D = R.

Isomorphism principle. Given a function, f : D R. One to One: For all x,y D, x y = f (x) f (y). or x,y D, f (x) = f (y) = x = y. Onto: For all y R, x D,y = f (x). f ( ) is a bijection if it is one to one and onto. Isomorphism principle: If there is a bijection f : D R then D = R.

Combinatorial Proofs. The number of subsets of a set {a 1,...,a n }.? Equal to the number of binary n-bit strings. f : Subsets. Strings. f (x) = (g(x,a 1 ),g(x,a 2 ),...,g(x,a n )) Example: S = {1,2,3,4,5}, x = {1,3,4}. f (x) = (1,0,1,1,0). P(S) = {0,1} n = 2 n. { 1 a x g(x,a) = 0 otherwise

Countable. How to count? 0, 1, 2, 3,... The Counting numbers. The natural numbers! N Definition: S is countable if there is a bijection between S and some subset of N. If the subset of N is finite, S has finite cardinality. If the subset of N is infinite, S is countably infinite.

Where s 0? Which is bigger? The positive integers, Z +, or the natural numbers, N. Natural numbers. 0,1,2,3,... Positive integers. 1,2,3,... Where s 0? More natural numbers! Consider f : Z + N where f (z) = z 1. For any two z 1 z 2 = z 1 1 z 2 1 = f (z 1 ) f (z 2 ). One to one! For any natural number n, for z = n + 1, f (z) = (n + 1) 1 = n. Onto! Bijection! Z + = N. But.. but where s zero? It comes from 1.

A bijection is a bijection. Notice that there is a bijection between N and Z + as well. f (n) = n + 1. 0 1,1 2,... Bijection from A to B = a bijection from B to A. Inverse function! Can prove equivalence either way. Bijection to or from natural numbers implies countably infinite.

More large sets. E - Even natural numbers? f : N E. f (n) 2n. Onto: e E, f (e/2) = e. e/2 is natural since e is even One-to-one: x,y N,x y = 2x 2y. f (x) f (y) Evens are countably infinite. Evens are same size as all natural numbers.

All integers? What about Integers, Z? Define f : N Z. { n/2 if n even f (n) = (n + 1)/2 if n odd. One-to-one: For x y if x is even and y is odd, then f (x) is nonnegative and f (y) is negative = f (x) f (y) if x is even and y is even, then x/2 y/2 = f (x) f (y)... Onto: For any z Z, if z 0, f (2z) = z and 2z N. if z < 0, f (2 z 1) = z and 2 z + 1 N. Integers and naturals have same size!

Listings.. { n/2 if n even f (n) = (n + 1)/2 if n odd. Another View: n f (n) 0 0 1 1 2 1 3 2 4 2...... Notice that: A listing is a bijection with a subset of natural numbers. Function Position in list. If finite: bijection with {0,..., S 1} If infinite: bijection with N.

Enumerability countability. Enumerating (listing) a set implies that it is countable. Output element of S, Output next element of S... Any element x of S has specific, finite position in list. Z = {0,1, 1,2, 2,...} Z = {{0,1,2,...,} and then { 1, 2,...}} When do you get to 1? at infinity? Need to be careful.

Countably infinite subsets. Enumerating a set implies countable. Corollary: Any subset T of a countable set S is countable. Enumerate T as follows: Get next element, x, of S, output only if x T. Implications: Z + is countable. It is infinite. There is a bijection with the natural numbers. So it is countably infinite. All countably infinite sets have the same cardinality.

Enumeration example. All binary strings. B = {0,1}. B = {ε,0,1,00,01,10,11,000,001,010,011,...}. ε is empty string. For any string, it appears at some position in the list. If n bits, it will appear before position 2 n+1. Should be careful here. B = {ε;,0,00,000,0000,...} Never get to 1.

Fractions? Can you enumerate the rational numbers in order? 0,...,1/2,.. Where is 1/2 in list? After 1/3, which is after 1/4, which is after 1/5... A thing about fractions: any two fractions has another fraction between it. Does this mean we can t even get to next fraction? Can t list in order?

Pairs of natural numbers. Consider pairs of natural numbers: N N E.g.: (1,2), (100,30), etc. For finite sets S 1 and S 2, then S 1 S 2 has size S 1 S 2. So, is N N countably infinite squared???

Pairs of natural numbers. Enumerate in list: (0,0),(1,0),(0,1),(2,0),(1,1),(0,2),... 3 2 1 0 0 1 2 3 4 The pair (a,b), is in first (a + b + 1)(a + b)/2 elements of list! (i.e., triangle ). Countably infinite. Same size as the natural numbers!!

Rationals? Positive rational number. Lowest terms: a/b a,b N with gcd(a,b) = 1. Infinite subset of N N. Countably infinite! All rational numbers? Negative rationals are countable. (Same size as positive rationals.) Put all rational numbers in a list. First negative, then nonegative??? No! Repeatedly and alternatively take one from each list. Interleave Streams in 61A The rationals are countably infinite!

Real numbers.. Is the set of real numbers the same size as integers?

The reals. Are the set of reals countable? Lets consider the reals [0, 1]. Each real has a decimal representation..500000000... (1/2).785398162... π/4.367879441... 1/e.632120558... 1 1/e.345212312... Some real number

Diagonalization. If countable, there a listing, L contains all reals. For example 0:.500000000... 1:.785398162... 2:.367879441... 3:.632120558... 4:.345212312.... Construct diagonal number:.77677... Diagonal Number: Digit i is 7 if number i s, ith digit is not 7 and 6 otherwise. Diagonal number for a list differs from every number in list! Diagonal number not in list. Diagonal number is real. Contradiction! Subset [0, 1] is not countable!!

All reals? Subset [0, 1] is not countable!! What about all reals? No. Any subset of a countable set is countable. If reals are countable then so must [0,1].

Diagonalization: Summary 1. Assume that a set S can be enumerated. 2. Consider an arbitrary list of all the elements of S. 3. Use the diagonal from the list to construct a new element t. 4. Show that t is different from all elements in the list = t is not in the list. 5. Show that t is in S. 6. Contradiction.

Another diagonalization. The set of all subsets of N. Assume is countable. There is a listing, L, that contains all subsets of N. Define a diagonal set, D: If ith set in L does not contain i, i D. otherwise i D. D is different from ith set in L for every i. = D is not in the listing. D is a subset of N. L does not contain all subsets of N. Contradiction. Theorem: The set of all subsets of N is not countable. (The set of all subsets of N is the powerset of N.)

Cardinalities of uncountable sets? Cardinality of [0, 1] smaller than all the reals? f : R + [0,1]. { x + 1 f (x) = 2 0 x 1/2 1 4x x > 1/2 One to one. x y If both in [0,1/2], a shift = f (x) f (y). If neither in [0,1/2] a division = f (x) f (y). If one is in [0,1/2] and one isn t, different ranges = f (x) f (y). Bijection! [0, 1] is same cardinality as nonnegative reals!

Summary. Bijections to equate cardinality of infinite sets Countable (infinite) sets Uncountable sets Diagonalization