Huan Long Shanghai Jiao Tong University

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

Huan Long Shanghai Jiao Tong University

A Logician s Toolbox

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

Sets, Functions and Relations

0 Sets and Induction. Sets

Homework 5. Solutions

Chapter 2 Sets, Relations and Functions

CSCE 222 Discrete Structures for Computing

Chapter 2 - Basics Structures

MATH 433 Applied Algebra Lecture 14: Functions. Relations.

Section 0. Sets and Relations

Chapter 2 Axiomatic Set Theory

Chapter 1 : The language of mathematics.

Sets. We discuss an informal (naive) set theory as needed in Computer Science. It was introduced by G. Cantor in the second half of the nineteenth

Automata and Languages

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

Chapter 1. Sets and Mappings

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

586 Index. vertex, 369 disjoint, 236 pairwise, 272, 395 disjoint sets, 236 disjunction, 33, 36 distributive laws

BASIC MATHEMATICAL TECHNIQUES

Mathematics Review for Business PhD Students Lecture Notes

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

Set Theory History. Martin Bunder. September 2015

Analysis I. Classroom Notes. H.-D. Alber

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

Chapter 0. Introduction: Prerequisites and Preliminaries

SETS AND FUNCTIONS JOSHUA BALLEW

Mathematics Review for Business PhD Students

Sets McGraw-Hill Education

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

Relations, Functions, Binary Relations (Chapter 1, Sections 1.2, 1.3)

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Introduction to Proofs

9/19/2018. Cartesian Product. Cartesian Product. Partitions

Lecture Notes on Discrete Mathematics. October 15, 2018 DRAFT

Notes for Math 290 using Introduction to Mathematical Proofs by Charles E. Roberts, Jr.

Foundations Revision Notes

Zermelo-Fraenkel Set Theory

Axioms for Set Theory

PRELIMINARIES FOR GENERAL TOPOLOGY. Contents

LESSON RELATIONS & FUNCTION THEORY

Reading 11 : Relations and Functions

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.

Discrete Mathematics. 2. Relations

ICS141: Discrete Mathematics for Computer Science I

Exercises for Unit VI (Infinite constructions in set theory)

HL Topic. Sets, relations and groups. (Further Mathematics SL Topic 3) Sets Ordered pairs Functions Binary operations Groups Further groups

AMB111F Notes 1: Sets and Real Numbers

Relations, Functions, and Sequences

Math Fall 2014 Final Exam Solutions

Sets and Motivation for Boolean algebra

A is a subset of (contained in) B A B iff x A = x B Socrates is a man. All men are mortal. A = B iff A B and B A. A B means A is a proper subset of B

Sets. Subsets. for any set A, A and A A vacuously true: if x then x A transitivity: A B, B C = A C N Z Q R C. C-N Math Massey, 72 / 125

ORDER AND ARITHMETIC OF CARDINALITIES

Topology Notes. A project under construction. Franz Rothe

ABOUT THE CLASS AND NOTES ON SET THEORY

DERIVATIONS. Introduction to non-associative algebra. Playing havoc with the product rule? BERNARD RUSSO University of California, Irvine

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

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

Discrete Mathematics: Lectures 6 and 7 Sets, Relations, Functions and Counting Instructor: Arijit Bishnu Date: August 4 and 6, 2009

RELATIONS AND FUNCTIONS

Module 2: Language of Mathematics

Topics in Logic, Set Theory and Computability

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 Summary. Sets (2.1) Set Operations (2.2) Functions (2.3) Sequences and Summations (2.4) Cardinality of Sets (2.5) Matrices (2.

Notes on Sets, Relations and Functions

Relations, Functions & Binary Operations

Foundations of Mathematics

Sets, Models and Proofs. I. Moerdijk and J. van Oosten Department of Mathematics Utrecht University

cse303 ELEMENTS OF THE THEORY OF COMPUTATION Professor Anita Wasilewska

Chapter 1. Sets and Numbers

n CS 160 or CS122 n Sets and Functions n Propositions and Predicates n Inference Rules n Proof Techniques n Program Verification n CS 161

CSE 20 DISCRETE MATH. Fall

MAT115A-21 COMPLETE LECTURE NOTES

This section will take the very naive point of view that a set is a collection of objects, the collection being regarded as a single object.

1. To be a grandfather. Objects of our consideration are people; a person a is associated with a person b if a is a grandfather of b.

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

Essential Background for Real Analysis I (MATH 5210)

Digital Logic Design: a rigorous approach c

CSE 20 DISCRETE MATH. Winter

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Topology. Xiaolong Han. Department of Mathematics, California State University, Northridge, CA 91330, USA address:

Copyright c 2007 Jason Underdown Some rights reserved. statement. sentential connectives. negation. conjunction. disjunction

Assignments. Math 215. Fall 2009.

CHAPTER 1. Basic Ideas

Rings and Fields Theorems

3. Abstract Boolean Algebras

CS 2336 Discrete Mathematics

Relations. Relations of Sets N-ary Relations Relational Databases Binary Relation Properties Equivalence Relations. Reading (Epp s textbook)

1 Homework. Recommended Reading:

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

Discrete Mathematics. W. Ethan Duckworth. Fall 2017, Loyola University Maryland

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

Foundations of Mathematics

CS Discrete Mathematics Dr. D. Manivannan (Mani)

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

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

Ordinals. Mustafa Elsheikh elsheimm at mcmaster dot ca. Wed 18 Nov 2008

X = { X f X i A i : (œx, y 0 X)[x /= y œi[ x i /= y i ]]}.

Transcription:

Huan Long Shanghai Jiao Tong University

Basic set theory Relation Function

Georg Cantor(1845-1918) ogerman mathematician o Founder of set theory Bertrand Russell(1872-1970) obritish philosopher, logician, mathematician, historian, and social critic. Ernst Zermelo(1871-1953) ogerman mathematician, foundations of mathematics and hence on philosophy David Hilbert (1862-1943) o German mathematicia, one of the most influential and universal mathematicians of the 19th and early 20th centuries. Kurt Gödel(1906-1978) oaustrian American logician, mathematician, and philosopher. ZFC not CH. Paul Cohen(1934-2007) oamerican mathematician, 1963: ZFC not CH,AC.

By Georg Cantor in 1870s: A set is an unordered collection of objects. The objects are called the elements, or members, of the set. A set is said to contain its elements. Notation: aa AA Meaning that: aa is an element of the set A, or, Set A contains aa. Important: Duplicates do not matter. Order does not matter.

a A a is an element of the set A. a A a is NOT an element of the set A. Set of sets {{a,b},{1, 5.2}, k} the empty set, or the null set, is set that has no elements. A B subset relation. Each element of A is also an element of B. A=B equal relation. A B and B A. A B A B strict subset relation. If A B and A B A cardinality of a set, or the number of distinct elements. Venn Diagram V U A B U

aa {aa, ee ii, oo, uu} a {{a}} {{ }} {3,4,5}={5,4,3,4} S { } S S {3, 3, 4, {2, 3},{1,2,{f}} } =4

Union Intersection Difference Complement Symmetric difference Power set

Definition Let A and B be sets. The union of the sets A and B, denoted by A B, is the set that contains those elements that are either in A or in B, or both. A U B={x x A or x B} Example: {1,3,5} U {1,2,3}={1,2,3,5} Venn Diagram representation A B UU

Definition Let A and B be sets. The intersection of the sets A and B, denoted by A B, is the set that containing those elements in both A and B. A B={x x A and x B} Example: {1,3,5} {1,2,3}={1,3} Venn Diagram Representation A B

Definition Let A and B be sets. The difference of the sets A and B, denoted by A - B, is the set that containing those elements in A but not in B. AA BB = xx Example: {1,3,5}-{1,2,3}={5} Venn Diagram Representation xx AA bbbbbb xx BB} = AA BB A B UU

Definition Let U be the universal set. The complement of the sets A, denoted by AA or AA, is the complement of with respect to U. AA = xx xx AA} = UU AA Example: -E = O Venn Diagram Representation A U

Definition Let A and B be sets. The symmetric difference of A and B, denoted by A B, is the set containing those elements in either A or B, but not in their intersection. A B={x (x A x B) x A B } =(A-B) (B-A) Venn Diagram: A B A B c A B?

Many problems involves testing all combinations of elements of a set to see if they satisfy some property. To consider all such combinations of elements of a set S, we build a new set that has its members all the subsets of S. Definition: Given a set S, the power set of S is the set of all subsets of the set S. The power set of S is denoted by P(S) or S. Example: o P({0,1,2})={ɸ, {0},{1},{2}, {0,1},{0,2},{1,2},{0,1,2} } o P( )={ } o P({ })={,{ }}

1. Identity laws 2. Domination laws 3. Idempotent laws

4. Complementation law 5. Commutative laws 6. Associative laws

7. Distributive laws 8. De Morgan s laws

Basic set theory Relation Function

In set theory {1,2}={2,1} What if we need the object <1,2> that will encode more information: o 1 is the first component o 2 is the second component Generally, we say <x, y> =<u, v> iff x=u y=v

A B={<x,y> x A y B } is the Cartesian product of set A and set B. Example A={1,2} B={a,b,c} A B={<1,a>,<1,b>,<1,c>, <2,a>,<2,b>,<2,c>}

Definition A relation is a set of ordered pairs. Examples o <={<x,y> R R x is less than y} o M={<x,y> People People x is married to y} ran R R dom R A relation as a subset of the plane

Let RR denote any binary relation on a set xx, we say: RR is reflexive, if ( aa xx)(aaaaaa); RR is symmetric, if ( aa, bb xx)(aaaaaa bbbbbb); RR is transitive, if aa, bb, cc xx [ aaaaaa bbbbbb (aaaaaa)];

Definition RR is an equivalence relation on AA iff RR is a binary relation on AA that is o Reflexive o Symmetric o Transitive

Definition A partition π of a set A is a set of nonempty subsets of A that is disjoint and exhaustive. i.e. (a) no two different sets in π have any common elements, and (b) each element of A is in some set in π.

If R is an equivalence relation on A, then the quotient set (equivalence class) A/R is defined as A/R={ [x] R A } Where A/R is read as A modulo R The natural map (or canonical map) α:a A/R defined by α(x)= [x] R Theorem Assume that R is an equivalence relation on A. Then the set {[x] R x A} of all equivalence classes is a partition of A. X R Y X R Y

Let ωω = {0,1,2, }; and mm nn mm nn is divisible by 6. Then is an equivalence relation on ωω. The quotient set ωω has six members: 0 = 0,6,12,, 1 = 1,7,13,, 5 = 5,11,17, Clique (with self-circles on each node) : a graph in which every edge is presented. Take the existence of edge as a relation. Then the equivalence class decided by such relation over the graph would be clique.

Linear order/total order o transitive o trichotomy Partial order o reflexive o anti-symmetric o transitive Well order o total order o every non-empty subset of S has a least element in this ordering.

Basic set theory Relation Function

Definition A function is a relation F such that for each x in dom F there is only one y such that x F y. And y is called the value of F at x. Notation F(x)=y Example f(x) = x 2 f : R R, f(2) = 4, f(3) = 9, etc. Composition (f g)(x)=f(g(x)) Inverse The inverse of F is the set FF 1 ={<u,v> v F u} FF 1 is not necessarily a function (why?)

We say that F is a function from A into B or that F maps A into B (written F: A B) iff F is a function, dom F=A and ran F B. o If, in addition, ran F=B, then F is a function from A onto B. F is also named a surjective function. o If, in addition, for any x dom F, y dom F, with x y, F(x) F(y), then F is an injective function. or one-toone (or single-rooted). o F is bijective function : f is surjective and injective.

Main References o Herbert B. Enderton, Elements of Set Theory, ACADEMIC PRESS, 1977 o Yiannis Moschovakis, Notes on Set Theory (Second Edition), Springer, 2005 o Keith Devlin, The Joy of Sets: Fundamentals of Contemporary Set Theory, Springer-Verlag, 1993 o Kenneth H. Rosen, Discrete Mathematics and Its Applications (Sixth Edition), 2007 o 沈恩绍, 集论与逻辑, 科学出版社,( 集合论部分 ), 2001