Docsity

Relation on Sets - Discrete Mathematics - Handout | MATH 245, Study notes of Discrete Mathematics

Partial preview of the text

Download Relation on Sets - Discrete Mathematics - Handout | MATH 245 and more Study notes Discrete Mathematics in PDF only on Docsity!

Math^ 245:^ Dis^ rete^ Mathemati

s Relations on Sets Reexivity,^ Symmetry^ and^ Transitivit

y;^ Equivalen^ e^ RelationsLe ture #14 Peter BlomgrenDepartment of Mathemati s and^ Statisti^ s San Diego State University San Diego, CA 92182-7720 [email protected]://terminus.SDSU.EDU $Id:^ lecture.tex,v^ 1.5^ 2006/12/

00:52:29^ blomgren^ Exp^ $ Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 1/

Relations:^ Intro^ du^ tion Mathematical Relations — Examples: Two^ logi^ al^ expressions^ an^ b^ *****^

e^ said^ to^ b^ e^ related^ if^ they^ have^ thesame truth tables. A^ set^ A^ an^ b^ e^ said^ to^ b^ e^ related *****

to^ a^ set^ B^ if^ A^ ⊆^ B. A^ real^ numb^ er^ x^ an^ b^ e^ said^ ***** to^ related^ to^ y^ if^ x < y. An^ integer^ n^ an^ b^ e^ said^ to^ related *****

to^ m^ if^ n|m. An^ integer^ n^ an^ b^ e^ said^ to^ related *****

to^ m^ if^ n^ and^ m^ are^ b^ oth^ o^ dd. Et^ ,^ et^ ,^ et^ ,^ ... ***** (^) We are^ going^ to^ study^ mathemati

al^ relations^ on^ sets^ :^ their prop^ erties^ and^ representations.^ Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 2/

Relations:^ Intro^ du^ tory^ Example

2 of^2 Relations and Cartesian Products: The^ Cartesian^ pro^ du^ t^ (A^ ×^ B)^ of

two^ sets^ A^ and^ B^ is^ the^ set^ of^ all ordered^ pairs^ whose^ rst^ element is^ in^ A^ and^ se^ ond^ elements^ in^ B

A^ ×^ B^ =^ {(x, y)^ |^ x^ ∈^ A^ and^ y^ ∈ B} In^ our^ exampleA^ ×^ B^ =^ {(0,^ 1),^ (0,^ 2),^ (0,^ 3),^ (1,

1),^ (1,^ 2),^ (1,^ 3),^ (2,^ 1),^ (2,^ 2),^ (2,^ 3)

} The^ elements^ of^ some^ ordered^ pairs {(0,^ 1),^ (0,^ 2),^ (0,^ 3)

,^ (1,^ 2),^ (1,^ 3),^ (2,^ 3)} are^ onsidered^ to^ b^ e^ related^ (others

are^ not). Knowing^ whi^ h^ ordered^ pairs^ are in^ this^ set^ is^ equivalent^ to^ knowing whi^ h^ elements^ are^ related.Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 4/

Relations:^ Formal^ Denition^ Denition:^ Binary^ Relation^  Let^ A^ and^ B^ b^ e^ sets.^ A^ (bina

ry)^ relation^ R^ from^ A^ to^ B^ is a subset of A × B. Given an ordered^ pair^ (x, y)^ ∈^ A^ ×^ B,^ x^ is related to y by R, written x R y,^ if^ and^ only^ if^ (x, y)^ ∈^ R. Symbolic Notation^ x R y^ ⇔

(x, y)^ ∈^ R x 6 R y ⇔^ (x, y)^6 ∈^ R The^ term^ binary^ is^ used^ in^ the^ denition

to^ indi^ ate^ that^ the^ relation is^ a^ subset^ of^ the^ Cartesian^ pro^ du

t^ of^ two^ sets. Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 5/

Example:^ Congruen^ e^ Mo^ dulo

2 Relation^1 of^2 We^ generalize^ the^ previous^ example

to^ the^ set^ of^ all^ integers^ Z,^ i.e. for all (m, n) ∈ Z × Z, m R n^ ⇔^ m^ −^ n^ is even Questions:(a)^ is^4 R^0?^2 R^6?^3 R^ (−3)

?^5 R^2?

(b)^ List^5 integers^ that^ are^ related

by^ R^ to^1. (^ )^ Prove^ that^ if^ n^ is^ o^ dd,^ then

n R^1. Answers:(a-i)^ Yes,^4 R^0 ,^ sin^ e^4 −^ 0 = 4

is^ even. (a-ii)^ Yes,^2 R^6 ,^ sin^ e^2 −^ 6 = −^4 is^ even. (a-iii)^ Yes,^3 R^ (−3),^ sin^ e^3 −^ (−3) = 6^ is^ even. (a-iv)^ No,^5 6 R^2 ,^ sin^ e^5 −^ 2 = 3

is^ o^ dd. Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 7/

Example:^ Congruen^ e^ Mo^ dulo

2 Relation^2 of^2 (b)^ There^ are^ innitely^ many^ examples,

e.g. 1 since 1 − 1 = 0 is even 11 since 11 − 1 = 10^ is even 111 since 111 − 1 = 110^ is even 1111 since 1111 − 1 = 1110^ is even 11111 since 11111 − 1 = 11110^ is even (^ )^ Proof:^ Supp^ ose^ n^ is^ any^ o^ dd

integer.^ Then^ n^ = 2k^ + 1^ for^ someinteger k. By substitutionn − 1 = 2k + 1^ −^ 1 = 2k^ is even Hen e n R 1 , ∀n^ o^ dd.^  Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 8/

Relation^ from^ A^ to^ A^ Dire

ted^ Graph^ of^ a^ Relation Denition:^ A^ binary^ relation^

on^ a^ set^ A^ is^ a^ binary^ relation from^ A^ to^ A. In this^ ase,^ we^ an^ mo^ dify^ the^ arrow

diagram^ to^ b^ e^ a^ dire^ ted^ graph ^ instead^ of^ representing^ A^ twi^ e,

we^ only^ represent^ it^ on^ e^ and^ dra

w arrows^ from^ ea^ h^ p^ oint^ of^ A^ to^ ea

h^ related^ p^ oint,^ e.g. (^1 2354) there is an arrow from x to y ⇔^ x R y^ ⇔^ (x,^ y)^ ∈^ R Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 10/

Example:^ Dire^ ted^ Graph^ of

a^ Relation Let^ A^ =^ {^3 ,^4 ,^5 ,^6 ,^7 ,^8 }^ and^ dene

a^ binary^ relation^ R^ on^ A: R = {(x, y) ∈ A ×^ A^ :^2 |(x^ −^ y)} (^348576) Figure: We notice that the graph must be symmetric, since if^2 |n, then 2 |(−n). Since 2 | 0 , there is a loop at every node in the graph. Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 11/

Reexivity R^ is^ Reexive^ if^ andFormal:^

only^ if^ ∀x^ ∈^ A,^ x R x. R^ is^ Reexive^ ⇔^ Fun tional: for^ all^ x^ ∈^ A,^ (x, x)^ ∈^ R. Ea^ h^ element^ is^ relatedInformal: to^ itself. Graph:^ Ea^ h^ p^ oint^ of^ the^

graph^ has^ an^ arrow^ lo^ oping^ aroundba k to itself. Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 13/

SymmetryR^ is^ Symmetri^ ifFormal:^ and^ only^ if^ ∀x, y^ ∈^ A,^ if^ x R y^ theny R x. R^ is^ Symmetri^ ⇔Fun tional: for^ all^ x, y^ ∈^ A,^ if^ (x, y)^ ∈^ R^ then(y, x) ∈ R. If^ one^ element^ is^ relatedInformal: to^ a^ se^ ond^ element,^ then^ these ond element is related^ to^ the^ rst. Graph:^ In^ all^ ases^ where there^ is^ an^ arrow^ going^ from^ onep oint to a se ond,^ there^ is^ an^ arrow^ going^ from^ the se^ ond^ p^ oint^ ba^ k^ to^ the^ rst. Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 14/

Non-Reexivity,^ Non-Symmetry

,^ and^ Non-Transitivity If^ R^ is^ a^ binary^ relation^ dened^ on

a^ set^ A,^ then 1. R is not reexive ⇔ there^ is^ an^ element^ x^ ∈^ A^ su^ h^ thatx 6 R x, i.e. (x, x) 6 ∈ R. 2. R is not symmetri ⇔ there^ are^ elements^ x, y^ ∈^ A^ su^ h^ thatx R y but y 6 R x, i.e. (x, y) ∈^ R,^ but^ (y, x)^6 ∈^ R. 3. R is not transitive ⇔ there are^ elements^ x, y, z^ ∈^ A^ su^ h^ thatx R y and y R z but x 6 R z, i.e.^ (x, y),^ (y, z)^ ∈^ R,^ but^ (x, z)^6 ∈^ R

To^ show^ that^ a^ binary^ relation^ do

es^ not^ have^ one^ of^ the^ prop^ erties, it^ is^ su^ ient^ to^ nd^ a^ ounterexample.^ Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 16/

Example^

1 of^5 Let^ A^ =^ {^0 ,^1 ,^2 ,^3 }^ and^ dene^ relations

R,^ S,^ and^ T^ : R^ =^ {(0,^ 0),^ (0,^ 1),^ (0,^ 3),^ (1,^ 0),^ (

,^ 1),^ (2,^ 2),^ (3,^ 0),^ (3,^ 3)} S^ =^ {(0,^ 0),^ (0,^ 2),^ (0,^ 3),^ (2,^ 3)} T^ =^ {(0,^ 1),^ (2,^ 3)} Fill in^ the^ table:^ Reflexive^ Symmetric

Transitive R S T Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 17/

Example^ The^ Relation

S^3 of^5 We^ have^ A^ =^ {^0 ,^1 ,^2 ,^3 }^ and S^ =^ {(0,^ 0),^ (

,^ 2),^ (0,^ 3),^ (2,^ 3)} 0 1 23 S is not reflexive^ since there are missing loops at 1, 2, and 3. S is not symmetric , the arrows from 2-to-0, 3-to-0, and 3-to-2 are missing. S is transitive^ since there is always a “short-cut” arrow so that if

(x, y)^ ∈^ S^ and (y, z)^ ∈^ S^ then^ (x, z)^ ∈^ S.^ Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 19/

Example^ The^ Relation

T^4 of^5 We^ have^ A^ =^ {^0 ,^1 ,^2 ,^3 }^ and T^ =^ {(

,^ 1),^ (2,^ 3)} 0 1 23 T is not reflexive^ since there are missing loops at 0, 1, 2, and 3. T is not symmetric , the arrows from 1-to-0, and 3-to-2 are missing. T is transitive^ since it is^ not^ not transitive

. Relations on Sets: Reflexivity, Symmetry and Transitivity; Equivalence Relations – p. 20/