Monday, May 31, 2010

how to prove it - ch4, sec4.3(More About Relations)

This section introduces another notation for Relation. It is motivated by the fact that in mathematics we often express a relationsip between two objects x and y by putting some symbol between them, e.g. x < y, x = y etc.
Imitating these notations, if R is a relation from A to B, xA and yB, mathematicians sometimes write xRy to mean (x,y)R

Another way to think about relations is to draw pictures of them with two ovals representing A and B with dots in them for each element, and for each pair (x,y)R draw an arrow from dot representing x to dot representing y.

If R is a relation from A to A, then it is sometimes also called a relation on A(or a binary relation on A). For example identity relation(=) is a binary relation. Binary relations can be represented with directed graphs.

Suppose R is a (binary)relation on A then

- R is reflexive on A if xA(x,x)R

- R is symmetric if xAyA((x,y)R(y,x)R)

- R is transitive if xAyAzA((x,y)R(y,z)R(x,z)R)


Moreover, what follows is that

- R is reflexive iff iAR, where iA is the identity relation on A

- R is symmetric iff R-1 = R

- R is transitive iff RRR


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

Ex-4
(a) {(a,c), (b,d), (c,c), (d,a), (d,b)}
reflexive: no
symmetric: no
transitive: no

(b) {(a,b), (a,d), (b,a), (b,d)}
reflexive: no
symmetric: no
transitive: yes

(c) {(a,a), (b,b), (b,d), (c,c), (d,d), (d,b)}
reflexive: yes
symmetric: yes
transitive: yes

(d) {(a,b), (a,c), (a,d), (b,d), (c,d)}
reflexive: no
symmetric: no
transitive: yes


Ex-5: {(a,y), (a,z), (b,x), (c,y), (c,z)}


Ex-6: DrDs = {(x,z)RXRyR(x-y<ry-z<s)}

Since |a + b| < |a| + |b|

so |(x-y) + (y-z)| < |x-y| + |y-z| < r + s
=> |x - z| < r + s

Hence, DrDs = {(x,z)RXRx-z<r+s}


Ex-7: () Suppose R is reflexive. Let x be an arbitrary element of A s.t. (x,x)iA. It follows from our assumption that (x,x)R. Since x is arbitrary, so iAR
() Suppose iAR. Let x be an arbitrary element of A, then (x,x)iA. It follows from our assumption that (x,x)R. Since x is arbitrary, so R is reflexive.


Ex-8: () Suppose R is transitive. Let x, z be arbitrary elements of A s.t. (x,z)RR. Then, there exists a yA s.t. (x,y)R and (y,z)R. It follows from our assumption that (x,z)R. Since x and z are arbitrary, so RRR

() Suppose RRR. Let x,y,z be arbitrary elements of A s.t. (x,y)R and (y,z)R. Then (x,z)RR. It follows from our assumption that (x,z)R. Since x,z are arbitrary, so R is transitive


Ex-9:
(a) Let x be arbitrary elements of A and z be an arbitrary element of B s.t. (x,z)RiA
So, (x,z)RiA iff
yA((x,y)iA(y,z)R)

Since (x,y)iA iff x = y

So, (x,x)iA(x,z)R iff
(x,z)R

Since x,z are arbitrary, so RiA=R

(b) Let x be an arbitrary elements of A and z be an arbitrary element of B s.t. (x,z)iBcircR
So (x,z)iBR iff
yB((x,y)R(y,z)iB)

Since (y,z)iB iff y = z

So, (x,z)R(z,z)iB iff
(x,z)R

Since x,z are arbitrary, so iBR=R


Ex-10:
Let x be an arbitrary element of A s.t. (x,x)iD. Then xD, so xDom(S). Then there exists a yA s.t. (x,y)S. Then (y,x)S-1. So (x,x)S-1S. Since x is arbitrary, so iDS-1S

Let x be an arbitrary element of A s.t. (x,x)iR. Then xR, so xRan(S). Then there exists a yA s.t. (y,x)S. Then (x,y)S-1. So (x,x)SS-1. Since x is arbitrary, so iRSS-1


Ex-11: Suppose R is reflexive. Let x,z be elements of A s.t. (x,z)R. It follows from our assumption that (x,x)R and (z,z)R. Since (x,x)R and (x,z)R, so (x,z)RR. Since x,z are arbitrary, so RRR


Ex-12:
(a) Suppose R is reflexive. Let x be an arbitrary element of A. It follows from our assumption that (x,x)R. Then (x,x)R-1 also. Since x is arbitrary, so If R is reflexive then R-1 is also reflexive

(b) Suppose R is symmetric. Let x,y be arbitrary elements of A s.t. (x,y)R. It follows from our assumption that (y,x)R also. Then (x,y)R-1 and (y,x)R-1 as well. Since x, y are arbitrary, so If R is symmetric then so is R-1

(c) Suppose R is transitive. Let x,y,z be arbitrary elements of A s.t. (x,y)R and (y,z)R. It follows from our assumption that (x,z)R also. Since (x,y)R, so (y,x)R-1. Since (y,z)R, so (z,y)R-1. And since (x,z)R, so (z,x)R-1. Since x,y,z are arbitrary, so If R is transitive then so is R-1


Ex-13:
(a) Its true. Suppose R1 and R2 are reflexive. Let x be an arbitrary element of A. It follows from our assumption that (x,x)R1. Then (x,x)R1R2 also. Since x is arbitrary, so If R1 and R2 are reflexive then R1R2 is reflexive too.

(b) Its true. Suppose R1 and R2 are symmetric. Let x,y be arbitrary elements of A s.t. (x,y)R1R2. Then (x,y)R1 or (x,y)R2. Let us consider both the cases
Case#1: (x,y)R1
Since R1 is symmetric, so (y,x)R1. Then (y,x)R1R2

Case#2: (x,y)R2
Since R2 is symmetric, so (y,x)R2. Then (y,x)R1R2

Therefore (y,x)R1R2. Since x, y are arbitrary, so If R1 and R2 are symmetric then so is R1R2

(c) Its false. Here is the counterexample.
A = R

R1 = {(0,1), (1,2), (0,2)} //Its transitive
R2 = {(2,3), (3,4), (2,4)} //Its transitive

R1R2 = {(0,1), (1,2), (0,2), (2,3), (3,4), (2,4)}
Its not transitive as (0,2)R1R2 and (2,3)R1R2 but (0,3)R1R2


Ex-14:
(a) Its true. Suppose R1 and R2 are reflexive. Let x be an arbitrary element of A. It follows from our assumption that (x,x)R1 and (x,x)R2. So (x,x)R1R2. Since x is arbitrary, so If R1 and R2 are reflexive then so is R1R2

(b) Its true. Suppose R1 and R2 are symmetric. Let x,y be arbitrary elements of A s.t. (x,y)R1R. Then (x,y)R1 and (x,y)R2. Then (y,x)R1 and (y,x)R2. So (y,x)R1R2. Since x,y are arbitrary so If R1 and R2 are symmetric then so is R1R2

(c) Its true. Suppose R1 and R2 are transitive. Let x,y,z be arbitrary elements of A s.t. (x,y)R1R2 and (y,z)R1R2. So (x,y)R1 and (y,z)R1, thus (x,z)R1. Also (x,y)R2 and (y,z)R2, thus (x,z)R2. Therefore (x,z)R1R2. Since x,y,z are arbitrary so If R1 and R2 are transitive then so is R1R2


Ex-15:
(a) Its false. Here is the counterexample.
A = {0,1}
R1 = {(0,0), (1,1), (0,1)}
R2 = {(0,0), (1,1)}

R1\R2 = {(0,1)}
clearly, its not reflexive

(b) Its true. Suppose R1 and R2 are symmetric. Let x,y be arbitrary elements of A s.t. (x,y)R1\R2. Then (x,y)R1 and (x,y)R2. Since (x,y)R1, it follows from our assumption that (y,x)R1. Since (x,y)R2, it follows from our assumption that (y,x)R2. So (y,x)R1\R2. Since x,y are arbitrary, so if R1 and R2 are symmetric then so is R1\R2

(c) Its false, here is the counterexample

R1 = {(0,1), (1,2), (0,2)}
R2 = {(0,2)}

R1\R2 = {(0,1), (1,2)}
clearly its not transitive


Ex-16: Suppose R and S are reflexive relations on A. Let x be an arbitrary element of A. It follows from our assumption that (x,x)R and (x,x)S. Thus (x,x)RS. Since x is arbitrary, so If R and S are reflexive then so is RS


Ex-17: Suppose R and S are symmetric relations on A.
() Suppose RS is symmetric.
Let x,z be arbitrary elements of A s.t. (x,z)RS. Since RS is symmetric, so (z,x)RS. Then there exists a yA s.t. (z,y)S and (y,x)R. Since R is symmetric, so (x,y)R. Also since S is symmetric, so (y,z)S. Since (x,y)R and (y,z)S, so (x,z)SR. Since x,z are arbitrary, so RSSR
Again let x,z be arbitrary elements of A s.t. (x,z)SR. Then there exists a yA s.t. (x,y)R and (y,z)S. Since R is symmetric, so (y,x)R. Since S is symmetric, so (z,y)S. Since (y,x)R and (z,y)S, so (z,x)RS. Since RS is symmetric, so (x,z)RS. Since x,z are arbitrary, so SRRS.
Hence If RS is symmetric then RS = SR

() Suppose RS = SR. Let x,z be arbitrary elements of A s.t. (x,z)RS. It follows from our assumption that (x,z)SR. Then there exists a yA s.t. (x,y)R and (y,z)S. Since R is symmetric, so (y,x)R. Since S is symmetric, so (z,y)S. Thus (z,x)RS. Since x and z are arbitrary, so If RS = SR then RS is symmetric


Ex-18: Suppose R and S are transitive relations on A, SRRS. Let x,y,z be arbitrary elements of A s.t. (x,y)RS and (y,z)RS.
Since (x,y)RS, so there exists a vA s.t.
(x,v)S ...(i) and
(v,y)R ...(ii)

Also since (y,z)RS, so there exists a wA s.t.
(y,w)S ...(iii) and
(w,z)R ...(iv)

From (ii) and (iii)
(v,w)SR

Since SRRS, so (v,w)RS. Then there exists a mA s.t.
(v,m)S ...(v) and
(m,w)R ...(vi)

Since R is transitive, so from (iv) and (vi), (m,z)R ...(vii)
Since S is transitive, so from (v) and (i), (x,m)S ... (viii)

From (vii) and (viii) (x,z)RS.

Since x and z are arbitrary, so If R, S are transitive and SRRS then RS is transitive.


Ex-19:
(a) If (X,Y)S and (Y,Z)S then by definition there exist xX, y1Y s.t. xRy1 and there exist y2Y and zZ s.t. y2Rz, where y1 and y2 may or may not be equal. given proof assumes them to be equal which is not right and that is the flaw in the proof

(b) Given theorem is incorrect, here is the counterexample.
A = {0,1,2,3}

R = {(0,1),(2,3)}

P(A) = {{0}, {1,2}, {3}, ...}

({0},{1,2}) S because (0,1)R
({1,2),{3}) S because (2,3)R
but ({0},{3}) S because (0,3)R


Ex-20: Suppose R is transitive. Let X,Y,Z be arbitrary elements of B s.t. (X,Y)S and (Y,Z)S. Let x be an arbitrary element of X, z be an arbitrary element of Z and we can chose a yY(we can chose because B contains non-empty subsets of A only, so Y should have atleast one element). Then (x,y)R and (y,z)R. Since R is transitive, so (x,z)R. Thus (X,Z)S. Since X,Y,Z are arbitrary so we can conclude that If R is transitive then S is also transitive


Ex-21:
(a) Its true. Suppose R is reflexive. Let X be an arbitrary element of P(A). Let x be an arbitrary element of X. Since XP(A), so XA, then It follows from our assumption that (x,x)R. So, for every x in X, we have same x in X s.t. (x,x)R. So (X,X)S. Since X is arbitrary, so If R is reflexive then S is also reflexive.

(b) Its false, here is the counterexample.
A = {0,1,2}
R = {(0,1), (1,0)}

P(A) = {{0}, {1}, {1,2}, ...}

X = {0}
Y = {1,2}

({0},{1,2}) S because (0,1)R
({1,2},{0}) S because (2,0)R

(c) Its true. Suppose R is transitive. Let X,Y,Z be arbitrary elements of P(A) s.t. (X,Y)S and (Y,Z)S. Let x be arbitrary element of X, then we can chose a y1Y s.t. (x,y1)R. Since (Y,Z)S, so we can chose a z1Z s.t. (y1,z1)R. Since (x,y1)R and (y1,z1)R, it follows from our assumption that (x,z1)R. Since x is arbitrary, so (X,Z)S. Since X,Z are arbitrary so If R is transitive then S is also transitive


Ex-22: The proof and theorem, both are incorrect. The flaw is in finding a yA s.t. (x,y)R because its possible that there is no such y. Here is one example.
A = {1,2,3}

R = {(1,2), (2,1), (1,1), (2,2)}

Notice that although R is symmetric as well as transitive but its not reflexive because it doesn't have (3,3)


Ex-23: Analysis:
given: FP(A)
goal: R is transitive If x,y,z are arbitrary elements of A s.t. (x,y)R and (y,z)R then (x,z)R

Assume the hypotheses

given: FP(A); x,y and z are arbitrary elements of A s.t. (x,y)R and (y,z)R
goal: (x,z)R For every XA\{x,z}, if X{x}F then X{z}F

Let X be arbitrary subset of A\{x,z}, Assume the hypotheses

given: FP(A); x,y and z are arbitrary elements of A s.t. (x,y)R and (y,z)R; XA\{x,z}; X{x}F
goal: X{z}F


Formal Proof:
Let x,y,z be arbitrary elements of A s.t. (x,y)R and (y,z)R. Let X be an arbitrary subset of A\{x,z}. Suppose X{x}F. Now let us consider following exhaustive set of cases.

Case#1: yX
Since (x,y)R and xX and yX and X{x}F, so X{y}F also. Since (y,z)R, it follows that X{z}F also

Case#2: yX
Consider Y = (X {x})\{y}. Since (Y {y} = X {x}), so (Y {y}) F. Hence (Y {z}) F.
So ((X {x})\{y} {z}) \in F

Then, (X\{y} {x}\{y} {z} F
then, (X\{y} {x} {z}\{y} F
then, ((X {z})\{y} {x}) F
then, ((X {z})\{y} {y}) F
then (X {z} F)


Thus (X {z} F)andhence(x,z) \in RandsoRistransitive

9 comments:

  1. This comment has been removed by the author.

    ReplyDelete
    Replies
    1. I'm struggling a bit in Ex. 13 (a). I started out with finding a counterexample:

      A = {1,2,3,4,5}

      R1= {(1,1); (2,2); (1,2)}

      R2= {(3,3); (4,5); (4,4); (5,5)}

      Thus,

      R1∩R2=∅

      But, is the ∅ itself reflexive?

      Thanks for your help!

      Delete
    2. no problem jose. it is not a counter example, in your given case R1R2 = {(1,1); (2,2); (1,2); (3,3); (4,5); (4,4); (5,5) } is clearly reflexive. but your example is not correct, given R1(and similarly R2) is not reflexive because 3A but (3,3)R1 becoz for R1 to be reflexive *for each* element x in A, (x,x) must be in R1.

      Delete
  2. The answer to exercise 6 is incorrect. It only establishes that Dr∘Ds is a subset of Dr+s, not that Dr∘Ds = Dr+s (the other direction needs to be proven as well). Moreover, the right inequality is |x+y| ≤ |x| + |y| and not |x+y| < |x| + |y|.

    ReplyDelete
    Replies
    1. I couldn't solve this exercise. Can anyone give a complete solution?

      Delete
    2. This comment has been removed by the author.

      Delete
    3. I don't think the other direction can be proven. As I understand it, the theorem to prove is Ds ∘ Dr ⊆ Dr+s. The proof would be:

      Suppose (x, z) ∈ Ds ∘ Dr. Then there is a y ∈ R such that (x, y) ∈ Dr and (y, z) ∈ Ds. Thus |x - y| < r and |y - z| < s. Adding these two inequations, we get |x - y| + |y - z| < r + s. Since by triangle inequality, |x - y| + |y - z| ≥ |(x - y) + (y - z)| = |x - z|, it follows that |x - z| < r + s. Therefore, by definition of D, (x, z) ∈ Dr+s.

      Delete
  3. I believe your counterexample in 15c is incorrect, because it seems your choice of R2 is not transitive.

    ReplyDelete
  4. Honestly, some of these proofs need to be reworked as much as they need to on inchmeal. Very hard time following the logic and its not using the notation or intuitions drawn from the book.There seems to still be incorrect solutions to both here and inchmeal on the same exact questions more or less. I don't like how solutions 13-15 are put together. I also think 17 is not consistent.

    Seems like users already provided their comments. I don't think the author of each of these blogs care about the accuracy of these solutions anymore

    ReplyDelete