A relation on can have the following properties.
Reflexive: for every . Symmetric: Whenever there is also . Transitive: Whenever and there is also .
When trying to decide if a relation has a property, it may be easiest to look for evidence that it doesn't.
Not reflexive if: missing for any . Not symmetric if: but missing. Not transitive if: and but missing.
Proofs! Let's say that is a relation on .
To prove is reflexive:
Assume is an element of . [Use definition of to argue that is true.] Therefore, is reflexive.
To prove is symmetric:
Assume . [Use definition of to argue that is true.] Therefore, is symmetric.
To prove is symmetric:
Assume and . [Use definition of to argue that is true.] Therefore, is transitive.
Exercise 2: Consider the relation on the set . Is reflexive? Symmetric? Transitive? If a property does not hold, say why.
Reflexive? Look for . Symmteric? Look for an where . Transitive? Look for an and in where .
Transitive is the hardest to check because you must find two pairs that link up. Here's the pseudocode I do in my head.
xxxxxxxxxx for (x,y) in R for (w,z) in R if y==w then if (x,z) not in R print "not transitive: (x,y) and (y,z) but no (x,z)" exit print "transitive. No counterexample found"Solution 2: is not reflexive. As an example . is not symmetric. As an example but . is transitive because there is no counterexample.
Exercise 6: Consider the relation . Is this reflexive? Symmetric? Transitive? If a property does not hold, say why. What familiar relation is this?
As an example of proving properties, I'll solve this problem by proving it has all three relations.
Proof that is reflexive: Assume is an integer. By definition of , since , , so is reflexive.
Proof that is symmetric: Assume . Because the only elements in have the form , this must mean . But, since and we know too. Therefore is symmetric.
Proof that is trasitive: Assume and . Because the only elements in have the form , this must mean and . But, since and we know too. Therefore is transitive.
Solution 6: is all three. Since integers are only related to themselves, it would seem that this relation is equality.