Discrete Mathematics. (c) Marcin Sydow. Sets. Set operations. Sets. Set identities Number sets. Pair. Power Set. Venn diagrams

Similar documents
With Question/Answer Animations. Chapter 2

Discrete Basic Structure: Sets

ICS141: Discrete Mathematics for Computer Science I

A set is an unordered collection of objects.

CHAPTER 1. Preliminaries. 1 Set Theory

Sets. Introduction to Set Theory ( 2.1) Basic notations for sets. Basic properties of sets CMSC 302. Vojislav Kecman

Sets McGraw-Hill Education

Sets. Alice E. Fischer. CSCI 1166 Discrete Mathematics for Computing Spring, Outline Sets An Algebra on Sets Summary

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

Today s topics. Introduction to Set Theory ( 1.6) Naïve set theory. Basic notations for sets

CS 2336 Discrete Mathematics

CSE 20 DISCRETE MATH. Winter

Background for Discrete Mathematics

2. Sets. 2.1&2.2: Sets and Subsets. Combining Sets. c Dr Oksana Shatalov, Spring

Introduction to Set Operations

CSI30. Chapter 2. Basic Structures: Sets, Functions, Sequences, Sums. 2.1 Sets and subsets 2.2 Sets of sets

Packet #2: Set Theory & Predicate Calculus. Applied Discrete Mathematics

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

1.1 Introduction to Sets

Mathematics Review for Business PhD Students Lecture Notes

Mathematics Review for Business PhD Students

CHAPTER 1 SETS AND EVENTS

BOOLEAN ALGEBRA INTRODUCTION SUBSETS

Exclusive Disjunction

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall

Discrete Mathematics Set Operations

Math 110 (S & E) Textbook: Calculus Early Transcendentals by James Stewart, 7 th Edition

Set Theory. CSE 215, Foundations of Computer Science Stony Brook University

Show Your Work! Point values are in square brackets. There are 35 points possible. Some facts about sets are on the last page.

CSCE 222 Discrete Structures for Computing

1. SET 10/9/2013. Discrete Mathematics Fajrian Nur Adnan, M.CS

Logic, Sets, and Proofs

Operations on Sets. Gazihan Alankuş (Based on original slides by Brahim Hnich et al.) August 6, 2012

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

1 Chapter 1: SETS. 1.1 Describing a set

Set Operations. Combining sets into new sets

Statistics for Financial Engineering Session 2: Basic Set Theory March 19 th, 2006

4. Sets The language of sets. Describing a Set. c Oksana Shatalov, Fall Set-builder notation (a more precise way of describing a set)

Digital Logic Design: a rigorous approach c

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

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.

CM10196 Topic 2: Sets, Predicates, Boolean algebras

Discrete Mathematical Structures: Theory and Applications

Section 1: Sets and Interval Notation

Sets. your school. A group of odd natural numbers less than 25.

CSCE 222 Discrete Structures for Computing. Review for Exam 1. Dr. Hyunyoung Lee !!!

SETS. JEE-Mathematics

CS 173: Discrete Structures. Eric Shaffer Office Hour: Wed. 1-2, 2215 SC

Notes on Sets for Math 10850, fall 2017

Set Theory. CPT Section D Quantitative Aptitude Chapter 7 Brijeshwar Prasad Gupta

POL502: Foundations. Kosuke Imai Department of Politics, Princeton University. October 10, 2005

Compound Propositions

Statistical Inference

Introduction to Quantum Logic. Chris Heunen

CISC 1100: Structures of Computer Science

CSE 20 DISCRETE MATH WINTER

Math 3338: Probability (Fall 2006)

Sec$on Summary. Definition of sets Describing Sets

BASIC MATHEMATICAL TECHNIQUES

18.S097 Introduction to Proofs IAP 2015 Lecture Notes 1 (1/5/2015)

Circles & Interval & Set Notation.notebook. November 16, 2009 CIRCLES. OBJECTIVE Graph a Circle given the equation in standard form.

A B is shaded A B A B

Equivalence and Implication

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

Review 1. Andreas Klappenecker

In N we can do addition, but in order to do subtraction we need to extend N to the integers

Point sets and certain classes of sets

In N we can do addition, but in order to do subtraction we need to extend N to the integers

CSE 20 DISCRETE MATH WINTER

CSE 20 DISCRETE MATH SPRING

SETS AND FUNCTIONS JOSHUA BALLEW

COMP9020 Lecture 3 Session 2, 2014 Sets, Functions, and Sequences. Revision: 1.3

0 Logical Background. 0.1 Sets

SET THEORY. 1. Roster or Tabular form In this form the elements of the set are enclosed in curly braces { } after separating them by commas.

3.4 Set Operations Given a set A, the complement (in the Universal set U) A c is the set of all elements of U that are not in A. So A c = {x x / A}.

CSE 20. Final Review. CSE 20: Final Review

Analysis 1. Lecture Notes 2013/2014. The original version of these Notes was written by. Vitali Liskevich

In this initial chapter, you will be introduced to, or more than likely be reminded of, a

Intro to Logic and Proofs

Chapter 2 - Basics Structures MATH 213. Chapter 2: Basic Structures. Dr. Eric Bancroft. Fall Dr. Eric Bancroft MATH 213 Fall / 60

LECTURE NOTES DISCRETE MATHEMATICS. Eusebius Doedel

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

Chapter 2 - Basics Structures

Chapter 1 : The language of mathematics.

Lecture 1 : The Mathematical Theory of Probability

AMB111F Notes 1: Sets and Real Numbers

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Fall 2007

CHAPTER 6. Copyright Cengage Learning. All rights reserved.

HW 4 SOLUTIONS. , x + x x 1 ) 2

2.23 Theorem. Let A and B be sets in a metric space. If A B, then L(A) L(B).

3 Boolean Algebra 3.1 BOOLEAN ALGEBRA

Set Theory Basics of Set Theory. 6.2 Properties of Sets and Element Argument. 6.3 Algebraic Proofs 6.4 Boolean Algebras.

Chapter 1. Logic and Proof

Elementary Point-Set Topology

Sets. Slides by Christopher M. Bourke Instructor: Berthe Y. Choueiry. Spring 2006

Boolean Algebra CHAPTER 15

Chapter 0 Introduction. Fourth Academic Year/ Elective Course Electrical Engineering Department College of Engineering University of Salahaddin

Probability: Sets, Sample Spaces, Events

Propositional Logic, Predicates, and Equivalence

Transcription:

Contents : basic definitions and notation

A set is an unordered collection of its elements (or members). The set is fully specified by its elements. Usually capital letters are used to name sets and lowercase letters for naming variables representing their elements. Denotations: x X : x is an element (or member) of the set X, element x belongs to the set X, etc. x / X : x is not an element of the set X

, cont. A set that contains finitely many elements is called finite, otherwise it is called an infinite set. The order of elements in the set does not matter: e.g. {2,3,5} = {3,5,2} Each element of a set has multiplicity of 1 (1 copy) 1 1 Multiple copies are possible in so-called multi-sets

Written forms Two written forms for defining the set: listing all the elements of the set inside braces separated by commas: e.g. X = {0,1,2,3,4,5,6,7,8,9} defining the set by its members that have some properties. form: { universe : properties } e.g. Y = {natural numbers x : x is even and x is greater than 20} (read as: natural numbers x such that x is even and x is greater than 20 ) The set in the last example is infinite (i.e. it contains infinitely many elements) Examples: 2 X, 10 / X, 10 / Y, 100 Y

Empty set Empty set: is the set that contains no elements There exists only 1 empty set.

Universal set Almost anything can be an element of a set (a set does not have any pre-specified type. In particular, sets can be elements of other sets (but not of itself!). However, to avoid some logical paradoxes it is often assumed that all the potentially considered elements of the sets are restricted to some pre-specified domain called universal set (or universe). Universal set is usually mentioned in the set builder notation, in the first part of the definition, e.g.: {natural number x : x is even and x is greater than 20} here: the universe is the set of all natural numbers Convention: The word family is often used to emphasise that some set has sets as its members. (e.g. a family of all subsets of a given set, etc.)

Inclusion One set X is contained (or included) in another set Y if and only if all the elements of X are also the elements of Y. X Y x X x Y We say X is a subset of Y and Y is a superset of X (or Y contains X ) If a subset X of Y is not equal to Y we can call it a proper subset of Y and can use slightly different denotation: X Y. In particular, any set is contained in itself: X X (because the statement x X x X is always true) Empty set is contained in any set (also in itself): X (exercise: why? (use the definition and properties of the implication) Any set is contained in the universe: X U.

Equality of sets Two sets are equal (identical) if and only if they have the same elements: X = Y (x X x Y ) Note: Two sets X, Y are equal iff X Y and Y X (this can serve as a convenient general scheme to prove set equality!)

Union of sets The union of two sets X and Y, denoted as X Y is the set so that each element of it is the member of X or the member of Y (or both): X Y = {x : x X x Y }

Intersection of sets The intersection of two sets X and Y, denoted as X Y is the set so that each element of it is the member of both X and Y: X Y = {x : x X x Y }

Symmetric difference of sets The symmetric difference of sets X and Y, denoted as X Y is the set so that each element of it is either a member of X or a member of Y, but not both. X Y = {x : x X x Y } (exclusive or, xor )

Complement of set A complement of a set X is the set of all members of the universe U that are not members of X: x X (x U (x X )) The empty set and the universe are mutually complements of themselves. = U, U = Complement of complement of a set X is X (and any even number of complements as well): (X ) = X a small exercise: prove it from the definitions of complement, set equality, negation, etc.

Difference of two sets The difference of sets X and Y, denoted as X \ Y is the set so that the each element of it is a member of X and is not a member of Y: X \ Y = {x : x X x / Y } notice that: X = U \ X

For any sets A,B,C and the universal set U (containing them), the following identities hold: Identity: Name: A = A, A = identity laws A U = U, A = domination laws A A = A, A A = A idempotent laws A = A complementation law A B = B A, A B = B A commutative laws A (B C) = (A B) C associative laws A (B C) = (A B) C A (B C) = (A B) (A C) distributive laws A (B C) = (A B) (A C) (A B) = A B, (A B) = A B De Morgan s laws A (A B) = A, A (A B) = A absorption laws A A = U, A A = complement laws

Examples of predefined number sets There are conventional denotations for some number sets: B = {0, 1} (bit values) N = {0, 1, 2, 3,...} (natural numbers) Z = {..., 2, 1, 0, 2, 1,...} (integer numbers) Q = {x : p q p Z q Z x = p/q q 0} (rational numbers) R (real numbers) 2 IQ = R \ Q (irrational numbers) Notice that B N Z R IQ the notation with... is a bit informal as it is not precise. 2 The formal definition of real numbers is a bit technically involved and we skip it here

Ordered pair An ordered pair of two elements (x, y) is a 2-element sequence (x is called the first element of the ordered pair and y is called the second element). Difference to a two-element set {x, y}: the order matters: (x, y) (y, x) (unless x = y) x can be equal to y and it is still a pair, i.e. (x, x)

Cartesian product of sets The Cartesian product of two sets X and Y denoted as X Y is the set of all possible ordered pairs so that the first element is a member of X and the second element is the member of Y: X Y = {(x, y) : x X y Y }

Power set The set of all subsets of a given set X (including the empty set) is called the power set of X and denoted as 2 A (or P(A)). Example: 2 B = {, {0}, {1}, {0, 1}} Remark: if all the members of some set are other sets, we can use the words family of sets. Thus, we can say: P(A) is the family of all subsets of X.

Some and properties can be illustrated on pictures with so-called. Each set on a diagram is denoted with a circle on a picture and represented by all the points that are inside the circle.

Summary : basic definitions and notation pair and Cartesian product of sets power set

Example tasks/questions/problems for given 2 small finite sets compute all the presented on these sets observe analogies between logical operators and operators and relations from set theory (list at least 5 of them!) observe analogies between propositional logic identities and set identities (list at least 5 such analogies) using the definitions of set and logical tools (such as propositinal identities, etc.) prove selected 5 of the presented set identities compute the power set of the set X = a, b, c, d (how many elements does it have?)

Thank you for your attention.