2.1 Sets, power sets. Cartesian Products.



Similar documents
INTRODUCTORY SET THEORY

Stanford Math Circle: Sunday, May 9, 2010 Square-Triangular Numbers, Pell s Equation, and Continued Fractions

Set Theory Basic Concepts and Definitions

Lecture 1. Basic Concepts of Set Theory, Functions and Relations

Chapter 3. Cartesian Products and Relations. 3.1 Cartesian Products

Mathematics Review for MS Finance Students

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

Discrete Mathematics

mod 10 = mod 10 = 49 mod 10 = 9.

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

Handout #1: Mathematical Reasoning

Georg Cantor and Set Theory

Georg Cantor ( ):

Basic Concepts of Set Theory, Functions and Relations

Automata and Formal Languages

The sample space for a pair of die rolls is the set. The sample space for a random number between 0 and 1 is the interval [0, 1].

Zeros of a Polynomial Function

MATH10040 Chapter 2: Prime and relatively prime numbers

All of mathematics can be described with sets. This becomes more and

Math 3000 Section 003 Intro to Abstract Math Homework 2

Chapter 9. Systems of Linear Equations

Elementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University

CS 3719 (Theory of Computation and Algorithms) Lecture 4

A Second Course in Mathematics Concepts for Elementary Teachers: Theory, Problems, and Solutions

Regular Languages and Finite State Machines

7 Relations and Functions

Understanding Basic Calculus

MATHEMATICAL INDUCTION. Mathematical Induction. This is a powerful method to prove properties of positive integers.

CHAPTER 7 GENERAL PROOF SYSTEMS

Zero: If P is a polynomial and if c is a number such that P (c) = 0 then c is a zero of P.

Full and Complete Binary Trees

Automata Theory. Şubat 2006 Tuğrul Yılmaz Ankara Üniversitesi

Continued Fractions and the Euclidean Algorithm

Math Workshop October 2010 Fractions and Repeating Decimals

Math 115 Spring 2011 Written Homework 5 Solutions

Cartesian Products and Relations

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

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

How many numbers there are?

Book of Proof. Richard Hammack Virginia Commonwealth University

Continued Fractions. Darren C. Collins

THE LANGUAGE OF SETS AND SET NOTATION

Incenter Circumcenter

6 EXTENDING ALGEBRA. 6.0 Introduction. 6.1 The cubic equation. Objectives

SIMPLIFYING SQUARE ROOTS

A Course in Discrete Structures. Rafael Pass Wei-Lung Dustin Tseng

Applications of Fermat s Little Theorem and Congruences

God created the integers and the rest is the work of man. (Leopold Kronecker, in an after-dinner speech at a conference, Berlin, 1886)

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

Answer Key for California State Standards: Algebra I

MA651 Topology. Lecture 6. Separation Axioms.

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

3. SETS, FUNCTIONS & RELATIONS

Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 2

5.1 Radical Notation and Rational Exponents

Lecture 16 : Relations and Functions DRAFT

CHAPTER II THE LIMIT OF A SEQUENCE OF NUMBERS DEFINITION OF THE NUMBER e.

Review of Basic Algebraic Concepts

Supplemental Worksheet Problems To Accompany: The Pre-Algebra Tutor: Volume 1 Section 1 Real Numbers

6.2 Permutations continued

Set Theory. 2.1 Presenting Sets CHAPTER2

The Prime Numbers. Definition. A prime number is a positive integer with exactly two positive divisors.

COUNTING SUBSETS OF A SET: COMBINATIONS

DIVISIBILITY AND GREATEST COMMON DIVISORS

Algebraic and Transcendental Numbers

Math Review. for the Quantitative Reasoning Measure of the GRE revised General Test

A Beginner s Guide to Modern Set Theory

3. Mathematical Induction

MATH 22. THE FUNDAMENTAL THEOREM of ARITHMETIC. Lecture R: 10/30/2003

9.2 Summation Notation

Set theory as a foundation for mathematics

Mathematical Conventions. for the Quantitative Reasoning Measure of the GRE revised General Test

Chapter 7 - Roots, Radicals, and Complex Numbers

To discuss this topic fully, let us define some terms used in this and the following sets of supplemental notes.

Solutions to Homework 6 Mathematics 503 Foundations of Mathematics Spring 2014

Zeros of Polynomial Functions

Copyrighted Material. Chapter 1 DEGREE OF A CURVE

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

1 VECTOR SPACES AND SUBSPACES

4/1/2017. PS. Sequences and Series FROM 9.2 AND 9.3 IN THE BOOK AS WELL AS FROM OTHER SOURCES. TODAY IS NATIONAL MANATEE APPRECIATION DAY

Math 4310 Handout - Quotient Vector Spaces

Common Core Unit Summary Grades 6 to 8

Math 0980 Chapter Objectives. Chapter 1: Introduction to Algebra: The Integers.

Section 1.1 Real Numbers

Math 319 Problem Set #3 Solution 21 February 2002

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

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.

PYTHAGOREAN TRIPLES KEITH CONRAD

1 if 1 x 0 1 if 0 x 1

The Fundamental Theorem of Arithmetic

Chapter 11 Number Theory

Discrete Structures. Lecture Notes

CS 103X: Discrete Structures Homework Assignment 3 Solutions

Chapter 31 out of 37 from Discrete Mathematics for Neophytes: Number Theory, Probability, Algorithms, and Other Stuff by J. M.

Reading 13 : Finite State Automata and Regular Expressions

CONTENTS 1. Peter Kahn. Spring 2007

Mathematical Conventions Large Print (18 point) Edition

Lecture 1 Introduction Properties of Probability Methods of Enumeration Asrat Temesgen Stockholm University

Properties of sequences Since a sequence is a special kind of function it has analogous properties to functions:

Transcription:

Lecture 8 2.1 Sets, power sets. Cartesian Products. Set is an unordered collection of objects. - used to group objects together, - often the objects with similar properties This description of a set (without specification what an object is) was started by the German mathematician Georg Cantor, in 1895. He is considered to be the founder of set theory. We will use Cantor's original version of set theory (called naive set theory). the objects in a set are called elements, or members, of the set. A set is said to contain its elements. Example 1: A={a,b,c,d,e} set A contains elements a, b, c, d, and e a A a is an element of set A a belongs to A f A f is not an element of set A f doesn't belong to A 1

Example 2: A={0, 1, 2, 3,..., 100} set A contains elements integers from 0 to 100, including 77 A 120 A Example 3 (set builder notation): A = { x x is even positive integer} which means that A = { 2, 4, 6, 8, 10,...} -we can use this notation when it is not possible to list all the elements of the set. Example 4 (set builder notation): T = { x x 2 =64} Can you tell what numbers set T consists of? T={-8,8} Some of the known sets N = { 0, 1, 2, 3, 4,...} set of natural numbers (in math: W set of whole numbers) Z = {...,-3, -2, -1, 0, 1, 2, 3,...} set of integers Z + = { 1, 2, 3, 4,...} set of positive integers R the set of real numbers (rational and irrational numbers) p Q = { p Z, q Z, q 0} set of fractions (quotients) q 2

Two sets are equal if and only if (iff) they have the same elements A = B iff x ( x A x B) Example 5: a) {1, 4, 6, 7} = {1, 6, 7, 4} = {1, 1, 6, 7, 4, 4} the order doesn't matter; how many times element is listed doesn't matter either. b) {0,{1},6} = {6, 0, 0, 6, {1},{1}} c) {0,{1},6} {0, 1, 6} Example 6: For each of the following sets determine whether 2 is an element of that set. a) { x R x is an integer greater than 1 } belongs b) { x R x is the square of an integer } doesn't belong c) {2, {2}} belongs d) {{2},{{2}}} doesn't belong e) {{2},{2,{2}}} doesn't belong f) {{{2}}} doesn't belong 3

Venn Diagrams - is used to show relationships between sets. - named after English mathematician Jogn Venn, who introduced their use in 1881. In Venn diagram the universal set U, which contains all the objects under consideration, is represented by a rectangle. 1 2 3 4 Z + U U universe Let U = Z the set of integers Inside the rectangle, circles and other geometrical figures are used to represent sets. Sometimes points are used to represent particular elements of the set. 4

Venn Diagrams Venn diagrams allow us to visualize relationships between sets. U = R π 1.25 Z -2 2 N Q 0.5-5 0 3 5

Empty set is a set that has no elements; denotation: Singleton set is a set that has exactly one element. Examples 7: 1) A={2} singleton set 2) { } - singleton set A is a subset of B iff every element of A is also an element of B. denotation: A B or B A We can re-write the definition in Predicate Logic: A B iff x(x A x B) is true Example 8: Let A={1,2,3} and B={0,1,2,5,3}. Then A B. U A B Venn diagram for A B 6

A is a proper subset of B iff A is a subset of B and set A and B are not equal. denotation: A B or B A We can re-write the definition in Predicate Logic: A B iff x(x A x B) x(x B x A) is true Examples 9: 1) Let A={1,2,3} and B={0,1,2,5,3}. Then A B. 2) Let A={1,2,3} and B={1,2,3} Then A B, but A B U A B Venn diagram for A B 7

Theorem 1 For every set S, (1) S (2) S S Proof: (1) Let S be a set. To show that S, we need to show that x(x x S) is true: empty set contains no elements, therefore, x is false for any x; then x x S is true for any x,because the precedent is false; hence x(x x S) is true. We proved that S for every set S. (2) Let S be a set. To show that S S, we need to show that x(x S x S) is true: implication x S x S is true for any x (p p is a tautology); hence x(x S x S) is true. qed 8

Let S be a set. If there are exactly n distinct elements in S, where n is a nonnegative integer, we say that S is a finite set and that n is the cardinality of S. denotation: S Examples 10: find the cardinality of the given sets a) Let A be a set of even positive integers less than 8. A = 3, because A={2,4,6} b) Let B be a set of letters in English alphabet. B =26, because B={a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z} c) S = S =0 A set is infinite if it is not finite. Examples 11: infinity a) N = {0, 1, 2, 3, 4, 5,...} N = 9 b) S={ x x N and x is even} S =

Given a set S, the power set of S is the set of all subsets of the set S. denotation: P(S) Examples 12: find the power set of the given sets a) A = {1,2,3} P(A) = P({1,2,3}) = {,{1},{2},{3},{1,2},{2,3},{1,3},{1,2,3}} note: empty set and the set A itself are the subsets of A. b) B = P(B) = { } c) S = { } P(S) = {,{ }} a possible mistake: P({1,2,3}) = {,1,2,3,{1},{2}, {3},{1,2},{2,3},{1,3},{1,2,3}} Did you notice that power set is a set of sets? Theorem Given a set S, with n elements, the power set of S has 2 n elements, i.e. P(s) =2 n recall Example 12(a) (above): A = {1,2,3}, A = 3 P(A) = P({1,2,3}) = {,{1},{2},{3},{1,2},{2,3},{1,3},{1,2,3}}, P(A) = 8 = 2 3 10

Cartesian Products The order of elements in the set is often important. Sets are unordered. Ordered n-tuples provide ordered collection. An ordered n-tuple (a 1, a 2,..., a n ) is the ordered collection of the elements, where a 1 is the first element, a 2 is the second elements,..., and a n is the last, nth element. n-tuples are equal iff each corresponding pair of their elements is equal, i.e. (a 1, a 2,..., a n )=(b 1, b 2,..., b n ) iff a i =b i, for i=1,2,..., n Examples 13: 1) (1,2,3,4) 2) (a,b) 3) (1,f,2,g) 11

Cartesian Products Cartesian product of two sets, A and B, is the set of all ordered pairs (a,b), where a A and b B denotation: A B A B = { (a,b) a A b B} Example 14: Find the Cartesian products A B of the given sets a) A = { 10, 23 }, B = { a, b, c } A B = {(10,a),(10,b),(10,c),(23,a),(23,b),(23,c)} b) A = { 1, 2, 3, 4}, B = { a, b } A B = {(1,a),(1,b),(2,a),(2,b),(3,a),(3,b),(4,a),(4,b)} B A = {(a,1),(a,2),(a,3),(a,4),(b,1),(b,2),(b,3),(b,4)} How to check: A B = A B How do you think, is A B = B A for any two sets A and B? No A B = B A only if A=B 12

Cartesian Products Cartesian product of the sets A 1, A 2,..., A n is the set of all ordered n-tuples (a 1, a 2,..., a n ), where a i A i for i = 1, 2,..., n denotation: A 1 A 2 A 3... A n A 1 A 2 A 3... A n = { (a 1, a 2,..., a n ) a i A i, for i = 1, 2,..., n } Example 15: Find the Cartesian product A B C, where A = { a, b, c }, B= { 0, 1 }, and C = { 2, 3 }. A B C = {(a,0,2),(a,0,3),(a,1,2),(a,1,3),(b,0,2),(b,0,3),(b,1,2),(b,1,3), (c,0,2),(c,0,3),(c,1,2),(c,1,3)} How to check: A B C = A B C ordered triples 13