Properties of relations Slides to accompany Section 5.4 of Discrete - - PowerPoint PPT Presentation

properties of relations
SMART_READER_LITE
LIVE PREVIEW

Properties of relations Slides to accompany Section 5.4 of Discrete - - PowerPoint PPT Presentation

Properties of relations Slides to accompany Section 5.4 of Discrete Mathematics and Functional Programming Thomas VanDrunen Reflexivity A relation R on a set X is reflexive if every element is related to itself: x X , ( x , x ) R


slide-1
SLIDE 1

Properties of relations

Slides to accompany Section 5.4 of Discrete Mathematics and Functional Programming Thomas VanDrunen

slide-2
SLIDE 2

Reflexivity

A relation R on a set X is reflexive if every element is related to itself: ∀ x ∈ X, (x, x) ∈ R

slide-3
SLIDE 3

Symmetry

A relation R on a set X is symmet- ric if for every pair in the relation, the inverse of the pair also exists: ∀ x, y ∈ X, if (x, y) ∈ R then (y, x) ∈ R

slide-4
SLIDE 4

Transitivity

A relation R on a set X is tran- sitive if any time one element is related to a second and that sec-

  • nd is related to a third, then the

first is also related to the third: ∀ x, y, z ∈ X, if (x, y) ∈ R and (y, z) ∈ R, then (x, z) ∈ R

slide-5
SLIDE 5

Summary

∀ x ∈ X, (x, x) ∈ R ∀ x, y ∈ X, if (x, y) ∈ R then (y, x) ∈ R ∀ x, y, z ∈ X, if (x, y) ∈ R and (y, z) ∈ R, then (x, z) ∈ R

slide-6
SLIDE 6

Proof patterns

∀ x ∈ X, (x, x) ∈ R ∀ x, y ∈ X, if (x, y) ∈ R then (y, x) ∈ R ∀ x, y, z ∈ X, if (x, y) ∈ R and (y, z) ∈ R, then (x, z) ∈ R

Suppose x ∈ X. . . . Hence (x, x) ∈ R. Therefore R is re- flexive. Suppose x, y ∈ X. Further suppose (x, y) ∈ R. . . . Hence (y, x) ∈ R. Therefore R is sym- metric. Suppose x, y, z ∈ X. Further sup- pose (x, y) ∈ R and (y, z) ∈ R. . . . Hence (x, z) ∈ R. Therefore R is tran- sitive.

slide-7
SLIDE 7

Proof patterns—short versions

∀ x ∈ X, (x, x) ∈ R ∀ x, y ∈ X, if (x, y) ∈ R then (y, x) ∈ R ∀ x, y, z ∈ X, if (x, y) ∈ R and (y, z) ∈ R, then (x, z) ∈ R

Suppose x ∈ X. . . . Hence (x, x) ∈ R. Therefore R is re- flexive. Suppose (x, y) ∈ R. . . . Hence (y, x) ∈ R. Therefore R is sym- metric. Suppose (x, y) ∈ R and (y, z) ∈ R. . . . Hence (x, z) ∈ R. Therefore R is tran- sitive.

slide-8
SLIDE 8

Reflexivity example

Proposition 1

The relation | on N is reflexive.

slide-9
SLIDE 9

Reflexivity example

Proposition 1

The relation | on N is reflexive.

  • Proof. Suppose a ∈ N.
slide-10
SLIDE 10

Reflexivity example

Proposition 1

The relation | on N is reflexive.

  • Proof. Suppose a ∈ N.

By arithmetic a · 1 = a

slide-11
SLIDE 11

Reflexivity example

Proposition 1

The relation | on N is reflexive.

  • Proof. Suppose a ∈ N.

By arithmetic a · 1 = a, and so by the definition of divides, a|a.

slide-12
SLIDE 12

Reflexivity example

Proposition 1

The relation | on N is reflexive.

  • Proof. Suppose a ∈ N.

By arithmetic a · 1 = a, and so by the definition of divides, a|a. Hence, by the definition of reflexive, | is reflexive.

slide-13
SLIDE 13

Symmetry example

Proposition 2

The relation “is opposite of” on Z is symmetric.

slide-14
SLIDE 14

Symmetry example

Proposition 2

The relation “is opposite of” on Z is symmetric.

  • Proof. Suppose x, y ∈ Z.
slide-15
SLIDE 15

Symmetry example

Proposition 2

The relation “is opposite of” on Z is symmetric.

  • Proof. Suppose x, y ∈ Z. Further suppose x + y = 0.
slide-16
SLIDE 16

Symmetry example

Proposition 2

The relation “is opposite of” on Z is symmetric.

  • Proof. Suppose x, y ∈ Z. Further suppose x + y = 0.

y + x = x + y by commutativity of addition.

slide-17
SLIDE 17

Symmetry example

Proposition 2

The relation “is opposite of” on Z is symmetric.

  • Proof. Suppose x, y ∈ Z. Further suppose x + y = 0.

y + x = x + y by commutativity of addition. y + x = 0 by substitution.

slide-18
SLIDE 18

Symmetry example

Proposition 2

The relation “is opposite of” on Z is symmetric.

  • Proof. Suppose x, y ∈ Z. Further suppose x + y = 0.

y + x = x + y by commutativity of addition. y + x = 0 by substitution. Therefore “is opposite of” is symmetric.

slide-19
SLIDE 19

Transitivity example

Proposition 3

The relation | on Z is transitive.

slide-20
SLIDE 20

Transitivity example

Proposition 3

The relation | on Z is transitive.

  • Proof. Suppose a, b, c ∈ Z, and suppose a|b and b|c.
slide-21
SLIDE 21

Transitivity example

Proposition 3

The relation | on Z is transitive.

  • Proof. Suppose a|b and b|c.
slide-22
SLIDE 22

Transitivity example

Proposition 3

The relation | on Z is transitive.

  • Proof. Suppose a|b and b|c.

By the definition of divides, there exist d, e ∈ Z such that a · d = b and b · e = c.

slide-23
SLIDE 23

Transitivity example

Proposition 3

The relation | on Z is transitive.

  • Proof. Suppose a|b and b|c.

By the definition of divides, there exist d, e ∈ Z such that a · d = b and b · e = c. By substitution and associativity, a(d · e) = c.

slide-24
SLIDE 24

Transitivity example

Proposition 3

The relation | on Z is transitive.

  • Proof. Suppose a|b and b|c.

By the definition of divides, there exist d, e ∈ Z such that a · d = b and b · e = c. By substitution and associativity, a(d · e) = c. By the definition of divides, a|c.

slide-25
SLIDE 25

Transitivity example

Proposition 3

The relation | on Z is transitive.

  • Proof. Suppose a|b and b|c.

By the definition of divides, there exist d, e ∈ Z such that a · d = b and b · e = c. By substitution and associativity, a(d · e) = c. By the definition of divides, a|c. Hence | is transitive.

slide-26
SLIDE 26

Reflexivity example

Proposition 4

If R is reflexive, then iA ⊆ R.

slide-27
SLIDE 27

Reflexivity example

Proposition 4

If R is reflexive, then iA ⊆ R.

  • Proof. Suppose R is reflexive.
slide-28
SLIDE 28

Reflexivity example

Proposition 4

If R is reflexive, then iA ⊆ R.

  • Proof. Suppose R is reflexive. Further suppose that

(a, b) ∈ iA.

slide-29
SLIDE 29

Reflexivity example

Proposition 4

If R is reflexive, then iA ⊆ R.

  • Proof. Suppose R is reflexive. Further suppose that

(a, b) ∈ iA. By definition of identity relation, a = b.

slide-30
SLIDE 30

Reflexivity example

Proposition 4

If R is reflexive, then iA ⊆ R.

  • Proof. Suppose R is reflexive. Further suppose that

(a, b) ∈ iA. By definition of identity relation, a = b. By definition of reflexivity, since R is reflexive, (a, b) ∈ R.

slide-31
SLIDE 31

Reflexivity example

Proposition 4

If R is reflexive, then iA ⊆ R.

  • Proof. Suppose R is reflexive. Further suppose that

(a, b) ∈ iA. By definition of identity relation, a = b. By definition of reflexivity, since R is reflexive, (a, b) ∈ R. Therefore, by definition of subset, iA ⊆ R.

slide-32
SLIDE 32

Symmetry example

Proposition 5

If R is a relation on a set A, then R ∩ R−1 is symmetric.

slide-33
SLIDE 33

Symmetry example

Proposition 5

If R is a relation on a set A, then R ∩ R−1 is symmetric.

  • Proof. Suppose R is a relation on a set A.
slide-34
SLIDE 34

Symmetry example

Proposition 5

If R is a relation on a set A, then R ∩ R−1 is symmetric.

  • Proof. Suppose R is a relation on a set A. Next,

suppose a, b ∈ A.

slide-35
SLIDE 35

Symmetry example

Proposition 5

If R is a relation on a set A, then R ∩ R−1 is symmetric.

  • Proof. Suppose R is a relation on a set A. Next,

suppose a, b ∈ A. Finally, suppose (a, b) ∈ R ∩ R−1.

slide-36
SLIDE 36

Symmetry example

Proposition 5

If R is a relation on a set A, then R ∩ R−1 is symmetric.

  • Proof. Suppose R is a relation on a set A. Further

suppose (a, b) ∈ R ∩ R−1.

slide-37
SLIDE 37

Symmetry example

Proposition 5

If R is a relation on a set A, then R ∩ R−1 is symmetric.

  • Proof. Suppose R is a relation on a set A. Further

suppose (a, b) ∈ R ∩ R−1. By definition of intersection, (a, b) ∈ R and (a, b) ∈ R−1.

slide-38
SLIDE 38

Symmetry example

Proposition 5

If R is a relation on a set A, then R ∩ R−1 is symmetric.

  • Proof. Suppose R is a relation on a set A. Further

suppose (a, b) ∈ R ∩ R−1. By definition of intersection, (a, b) ∈ R and (a, b) ∈ R−1. Since (a, b) ∈ R, the definition of inverse tells us that (b, a) ∈ R−1. Similarly, since (a, b) ∈ R−1, by definition

  • f inverse it is also the case that (b, a) ∈ R.
slide-39
SLIDE 39

Symmetry example

Proposition 5

If R is a relation on a set A, then R ∩ R−1 is symmetric.

  • Proof. Suppose R is a relation on a set A. Further

suppose (a, b) ∈ R ∩ R−1. By definition of intersection, (a, b) ∈ R and (a, b) ∈ R−1. Since (a, b) ∈ R, the definition of inverse tells us that (b, a) ∈ R−1. Similarly, since (a, b) ∈ R−1, by definition

  • f inverse it is also the case that (b, a) ∈ R.

By definition of intersection, (b, a) ∈ R ∩ R−1.

slide-40
SLIDE 40

Symmetry example

Proposition 5

If R is a relation on a set A, then R ∩ R−1 is symmetric.

  • Proof. Suppose R is a relation on a set A. Further

suppose (a, b) ∈ R ∩ R−1. By definition of intersection, (a, b) ∈ R and (a, b) ∈ R−1. Since (a, b) ∈ R, the definition of inverse tells us that (b, a) ∈ R−1. Similarly, since (a, b) ∈ R−1, by definition

  • f inverse it is also the case that (b, a) ∈ R.

By definition of intersection, (b, a) ∈ R ∩ R−1. Therefore R ∩ R−1 is symmetric by definition.

slide-41
SLIDE 41

Transitivity example

Proposition 6

If R is a relation on A and for all a ∈ A, IR(IR(a)) ⊆ IR(a)), then R is transitive.

slide-42
SLIDE 42

Transitivity example

Proposition 6

If R is a relation on A and for all a ∈ A, IR(IR(a)) ⊆ IR(a)), then R is transitive.

  • Proof. Suppose R is a relation on A and for all a ∈ A,

IR(IR(a)) ⊆ IR(a)).

slide-43
SLIDE 43

Transitivity example

Proposition 6

If R is a relation on A and for all a ∈ A, IR(IR(a)) ⊆ IR(a)), then R is transitive.

  • Proof. Suppose R is a relation on A and for all a ∈ A,

IR(IR(a)) ⊆ IR(a)). Further suppose that (b, c), (c, d) ∈ R.

slide-44
SLIDE 44

Transitivity example

Proposition 6

If R is a relation on A and for all a ∈ A, IR(IR(a)) ⊆ IR(a)), then R is transitive.

  • Proof. Suppose R is a relation on A and for all a ∈ A,

IR(IR(a)) ⊆ IR(a)). Further suppose that (b, c), (c, d) ∈ R. By definition of image, c ∈ IR(b).

slide-45
SLIDE 45

Transitivity example

Proposition 6

If R is a relation on A and for all a ∈ A, IR(IR(a)) ⊆ IR(a)), then R is transitive.

  • Proof. Suppose R is a relation on A and for all a ∈ A,

IR(IR(a)) ⊆ IR(a)). Further suppose that (b, c), (c, d) ∈ R. By definition of image, c ∈ IR(b). By definition of image, d ∈ IR(IR(b))

slide-46
SLIDE 46

Transitivity example

Proposition 6

If R is a relation on A and for all a ∈ A, IR(IR(a)) ⊆ IR(a)), then R is transitive.

  • Proof. Suppose R is a relation on A and for all a ∈ A,

IR(IR(a)) ⊆ IR(a)). Further suppose that (b, c), (c, d) ∈ R. By definition of image, c ∈ IR(b). By definition of image, d ∈ IR(IR(b)) By definition of subset, d ∈ IR(b).

slide-47
SLIDE 47

Transitivity example

Proposition 6

If R is a relation on A and for all a ∈ A, IR(IR(a)) ⊆ IR(a)), then R is transitive.

  • Proof. Suppose R is a relation on A and for all a ∈ A,

IR(IR(a)) ⊆ IR(a)). Further suppose that (b, c), (c, d) ∈ R. By definition of image, c ∈ IR(b). By definition of image, d ∈ IR(IR(b)) By definition of subset, d ∈ IR(b). By definition of image, (b, d) ∈ R.

slide-48
SLIDE 48

Transitivity example

Proposition 6

If R is a relation on A and for all a ∈ A, IR(IR(a)) ⊆ IR(a)), then R is transitive.

  • Proof. Suppose R is a relation on A and for all a ∈ A,

IR(IR(a)) ⊆ IR(a)). Further suppose that (b, c), (c, d) ∈ R. By definition of image, c ∈ IR(b). By definition of image, d ∈ IR(IR(b)) By definition of subset, d ∈ IR(b). By definition of image, (b, d) ∈ R. Therefore R is transitive by definition.

slide-49
SLIDE 49

Proof patterns

∀ x ∈ X, (x, x) ∈ R ∀ x, y ∈ X, if (x, y) ∈ R then (y, x) ∈ R ∀ x, y, z ∈ X, if (x, y) ∈ R and (y, z) ∈ R, then (x, z) ∈ R

Suppose x ∈ X. . . . Hence (x, x) ∈ R. Therefore R is re- flexive. Suppose x, y ∈ X. Further suppose (x, y) ∈ R. . . . Hence (y, x) ∈ R. Therefore R is sym- metric. Suppose x, y, z ∈ X. Further sup- pose (x, y) ∈ R and (y, z) ∈ R. . . . Hence (x, z) ∈ R. Therefore R is tran- sitive.

slide-50
SLIDE 50

Properties of relations

Slides to accompany Section 5.4 of Discrete Mathematics and Functional Programming Thomas VanDrunen