19 - 3.9 1 IF R ⊆ A × B then id A ◦ R = R = R ◦ id B...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
The notation R S may be read as ‘ R composed with S ’ or ‘ R circle S ’. The relation R S is only defned iF the types oF R and S match up. ±or example, we can defne the set grandparent = parent parent by: x grandparent oF y iFF z . ( x parent oF z ) ( z parent oF y ). Using the R and S From example 3.5, we have R S = { (1 , 1) , (2 , 4) , (3 , 3) , (4 , 2) } S R = { (1 , 3) , (2 , 2) , (3 , 1) , (4 , 4) } Contrast this notation For relational composition with the Haskell notation For Functional composition: (g.f) x = g ( f x) With the Haskell notation, the Functional composition g . f reads ‘ f Followed by g ’, whereas the relational composition R S reads ‘ R Followed by S ’. Very conFusing! 3.3 Equalities between Relations Recall From proposition 2.5 that we can prove certain equalities between sets constructed From the set operations. We can also similar equalities between relations constructed From the operations on relations. P ROPOSITION
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 3.9 1. IF R ⊆ A × B , then id A ◦ R = R = R ◦ id B . 2. ◦ is associative: that is, For arbitrary relations R ⊆ A × B and S ⊆ B × C and T ⊆ C × D , then R ◦ ( S ◦ T ) = ( R ◦ S ) ◦ T. Proof The prooF oF part 1 is simple and leFt as an exercise. We prove part 2. Let R , S and T be relations specifed in the proposition, and let ( x,u ) be an arbitrary member oF ( R ◦ S ) ◦ T . We show that ( x,u ) ∈ R ◦ ( S ◦ T ) using the Following reasoning: x ( R ◦ S ) ◦ T u ⇒ ∃ z. x ( R ◦ S ) z ∧ z T u ⇒ ∃ z. ( ∃ y. xRy ∧ y S z ) ∧ z T u ⇒ ∃ z,y. ( xRy ∧ y S z ∧ z T u ) ⇒ ∃ y. ( xRy ) ∧ ( ∃ z.y S z ∧ z T u ) ⇒ ∃ y. ( xRy ) ∧ ( y S ◦ T u ) ⇒ xR ◦ ( S ◦ T ) u 20...
View Full Document

This note was uploaded on 01/02/2010 for the course MATH Math2009 taught by Professor Koskesh during the Spring '09 term at SUNY Empire State.

Ask a homework question - tutors are online