Saturday, May 29, 2010

how to prove it - ch4, sec4.2(Relations)

Relation: Suppose A and B are sets. Then a set RAXB is called a relation from A to B.

If x ranges over A and y ranges over B, then clearly the truth set of any statement P(x,y) will also be a relation from A to B. However, a thing to notice is that definition of relation does not require such an statement, any subset of (A X B) is a relation.

Let us see some more definitions, given that R is a relation from A to B and S is a relation from B to C.

Domain of R
Dom(R) = {aAbB((a,b)R))}

Range of R
Ran(R) = {bBaA((a,b)R))}

Inverse of R
R-1 = {(b,a)(BXA)(a,b)R}

Composition of Relation S and R
SR = {(a,c)(AXC)bB((a,b)R(b,c)S)}
Note that, in general composition is not commutative i.e. SRRS

Some Properties:
(R-1)-1 = R
Dom(R-1) = Ran(R)
Ran(R-1) = Dom(R)
T(SR) = (TS)R
(SR)-1 = R-1S-1


============================================================================================

Ex-1
(a) Domain is the set of all the persons who are parent of someone. Range is the set of all the persons.

(b) Domain is the set of all real numbers. Range is the set of all positive real numbers.


Ex-2
(a) Domain and Range both are set of all the people who have a brother.

(b) Domain is set of all the real numbers. Range is set of all the real numbers less than 1.


Ex-3
(a) L-1L = {(s,t)(SXS)rR((s,r)L(r,t)L-1)}
= {(s,t)(SXS) | s and t share the same dorm room}

(b) E(L-1L) = {(s,c)(SXC) | s is a student who shares the dorm room with another student who is enrolled in course c}


Ex-4
(a) SR = {(1,5), (1,6), (1,4), (2,4), (3,6)}

(b) SS-1 = {(5,5), (5,6), (6,5), (6,6), (4,4)}


Ex-5
(a) S-1 = {(7,4), (8,4), (6,5)}
S-1R = {(1,4), (3,5), (3,4)}

(b) R-1 = {(7,1), (6,3), (7,3)}
R-1S = {(4,1), (5,3)}


Ex-6
(a) Clearly Dom(R) and Ran(R-1), both are a subset of A. Let a be an arbitrary element of Dom(R).
aDom(R) iff bB((a,b)R))
iff bB((b,a)R-1)
iff aRan(R-1)

Since a is arbitrary so, Ran(R-1) = Dom(R)

(b) Dom(R) = Dom((R-1)-1) = Ran(R-1)

(c) Suppose an arbitrary ordered pair (a,d)(TS)R. Then there exists bB s.t. (a,b)R and (b,d)TS. Since (b,d)TS, so there exists a cC s.t. (b,c)S and (c,d)T. Now that we have (a,b)R and (b,c)S, so (a,c)SR. Also since (c,d)T, so (a,d)T(SR).

(d) Clearly SR is a relationship from A to C, so (SR)-1 is a relationship from C to A. Suppose an arbitrary ordered pair (c,a)(SR)-1 where cC and aA.

(c,a)(SR)-1 iff
(a,c)(SR) iff
b((a,b)R(b,c)S) iff
b((b,a)R-1(c,b)S-1) iff
(c,a)(S-1R-1)

Since (c,a) is arbitrary, clearly (SR)-1 = S-1R-1


Ex-7 I came up with F = EE, then looked the answer in the book which is EEF, which makes more sense and two friends don't necessarily have to have a common enemy.


Ex-8
(a) Let a be an arbitrary element of Dom(SR). Then there exists a cC s.t. (a,c)SR. Then there exists a bB s.t. (a,b)R and (b,c)S. Since (a,b)R, so aDom(R). Since a is arbitrary, so Dom(SR) Dom(R).

(b) Suppose Ran(R)Dom(S). And aA is an arbitrary element of Dom(R). Then there exists a bB s.t. (a,b)R. So bRan(R). It follows from our assumption that bDom(S). Then there exists a cC s.t. (b,c)S. Since (a,b)R and (b,c)S, so (a,c)SR. And hence aDom(SR). Since a is arbitrary, so Dom(R)Dom(SR). In part(a) of this exercise we also proved that Dom(SR)Dom(R). Thus If Ran(R)Dom(S) then Dom(SR)=Dom(R)

(c)
Theorem#1: Ran(SR)Ran(S)
Proof: Let cC be an arbitrary element of Ran(SR). Then there exists aA s.t. (a,c)(SR). Then there exists bB s.t. (a,b)R and (b,c)S. So, cRan(S). Since c is arbitrary so Ran(SR)Ran(S)

Theorem#2: If Dom(S)Ran(R) then Ran(SR) = Ran(S)
Proof: Let cC be an arbitrary element of Ran(S). Then there exists bB s.t. (b,c)S. So bDom(S). It follows from our assumption that bRan(R). Then there exists aA s.t. (a,b)R. Since (a,b)R and (b,c)S, so (a,c)(SR). So cRan(SR). Since c is arbitrary, so Ran(S)Ran(SR). In theorem#1 we proved the opposite, so we can conclude that If Dom(S)Ran(R) then Ran(SR) = Ran(S)


Ex-9
(a) Its true, here is the proof. Let (a,b) be an arbitrary element of R. Then aDom(R) and bRan(R). Then (a,b)Dom(R)XRan(R). Since a and b are arbitrary, so RDom(R)XRan(R)

(b) Its true, here is the proof. Suppose RS. Let (b,a) be an arbitrary element of R-1. Then (a,b)R. It follows from our assumption that (a,b)S, so (b,a)S-1. Since (b,a) is arbitrary so, If RS then R-1S-1.

(c) Its true, here is the proof. Let (a,b) be an arbitrary element of (RS)-1
(a,b)(RS)-1 iff
(b,a)(RS) iff
(b,a)R(b,a)S iff
(a,b)R-1(a,b)S-1 iff
(a,b)R-1S-1

Since (a,b) is arbitrary, so (RS)-1 = R-1S-1


Ex-10
() Suppose SR=. Let arbitrary bB be an element of Ran(R). Then there exists aA s.t. (a,b)R. It follows from our assumption that either bDom(S) or for all cC, cRan(S). clearly some cC has to be in Ran(S) as S is the relation from B to C, therefore bDom(S). Since b is arbitrary, so If SR= then Ran(R) and Dom(S) are disjoint.

() Suppose Ran(R) and Dom(S) are disjoint. We will prove by contradiction that SR=. Assume aA, cC s.t. (a,c) be an arbitrary element of SR. Then there exists a bB s.t. (a,b)R and (b,c)S. Since (a,b)R, so bRan(R). Since (b,c)S, so bDom(S). So, b is both in Ran(R) and Dom(S) but this is contradictory to our first assumption that Ran(R) and Dom(S) are disjoint. So SR=.


Ex-11
(a) Let aA, cC be s.t. (a,c)(SR)\(TR). Then (a,c)SR and (a,c)TR. Since (a,c)SR, so there exists a bB s.t. (a,b)R and (b,c)S. Since (a,c)TR, so clearly (b,c)T. Now that (b,c)S and (b,c)T, so (b,c)S\T. Also since (a,b)R, therefore (a,c)(S\T)R. Since (a,c) is arbitrary, so (SR)\(TR)(S\T)R

(b) The proof seems to be correct.

(c) Proof given in part(b) of the exercise is correct.


Ex-12
(a) Its true, here is the proof. Suppose ST. Let aA, cC be s.t. (a,c)SR. Then we can chose a bB s.t. (a,b)R and (b,c)S. It follows from our assumption that (b,c)T as well. Thus (a,c)TR. Since a,c are arbitrary, so If ST then SRTR

(b) Its true, here is the proof. Let aA, cC be s.t. (a,c)(ST)R. Then we can chose a bB s.t. (a,b)R and (b,c)S and (b,c)T. Clearly, (a,c)SR and (a,c)TR. Thus (a,c)(SR)(TR). Since a,c are arbitrary, therefore (ST)R(SR)(TR)

(c) Its false, here is the counter example.
R = {((2,3), (2,5)}
S = {(3,4)}
T = {(5,4)}

SR = {(2,4)}
TR = {(2,4)}

(SR)(TR) = {(2,4)}

ST =

(ST)R =

(d) Its true, here is the proof. Let aA, cC be s.t. (a,c)(ST)R. Then we can chose a bB s.t. (a,b)R and (b,c)(ST). Since (b,c)(ST), so either (b,c)S or (b,c)T. Let us consider both the cases

Case#1: (b,c)S
Then (a,c)SR. Thus (a,c)(SR)(TR)

Case#2: (b,c)T
Then (a,c)TR. Thus (a,c)(SR)(TR)

Since a,c are arbitrary, therefore (ST)R(SR)(TR)

12 comments:

  1. Ex-2
    (b) I found the following: Domain = (-oo, -1] U [1, +oo) and Range = (-1,1).

    ReplyDelete
  2. Ex-11
    (b) The proof is not correct.

    (c) Counterexample:
    S = {(3,2)}
    T = {(1,2)}
    R = {(1,3), (1,1)}

    Then
    (S\T)oR = {(1,2)}
    (SoR)\(ToR) = ∅

    ReplyDelete
    Replies
    1. The problem is in the statement "since (a, b) ∈ R and (b, c) ∉ T, (a, c) ∉ T ∘ R". At that point in the proof b is a specific object, but to say that "(a, c) ∉ T ∘ R" means ¬∃b' ∈ B((a, b') ∈ R ∧ (b', c) ∈ T). Alternatively, ∀b'∈B((a, b') ∉ R ∨ (b', c) ∉ T). Since b was just a specific object, the latter assertion does not follow.

      Delete
  3. Ex - 5 b) one more pair is (4,3)

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. Agree with Stavros Mekesis. The domain of 2-b is {x | x ≤ -1 ∨ x ≥ 1} and the range is {y | 0 < |y| < 1} = {y | -1 < y < 1}.

    ReplyDelete
  6. You proof of 11.a is incorrect for the same reason that the proof in the book given in 11.b is incorrect. That is, the statement "Since (a,c)∉T∘R, so clearly (b,c)∉T" is wrong.

    ReplyDelete
    Replies
    1. I think the proof of 11(a) is correct. The goal in this question requires you to show that (a,c)(S\T)R. All you need to do is show some b exist s.t. (a,b)R and (b,c)S. 12(b) on the other hand requires showing (a,c)TR. This requires showing ¬bB((a,b)R(b,c)T).

      Delete
  7. Ex-6d: there is a typo in the last iff (c,a)∈(S-1∘R-1), it should be: (c,a)∈(R-1∘S-1). Also in the last line.

    ReplyDelete
  8. Can't we also prove Ex-10 by contrapositive in both directions?

    ReplyDelete
  9. For example 4, why is (2,5) not apart of a

    ReplyDelete