To prove that ( |w_1 - w_2 + a_1 - a_2 + r_1 - r_2| = 0 ) if and only if the two tuples ((w_1, a_1, r_1)) and ((w_2, a_2, r_2)) are the same, we will go through two steps:
- We will prove the forward direction, which is that if ( |w_1 - w_2 + a_1 - a_2 + r_1 - r_2| = 0 ), then the two tuples must be the same.
- We will prove the backward direction, which is that if the two tuples are the same, then ( |w_1 - w_2 + a_1 - a_2 + r_1 - r_2| = 0 ).
Forward Direction:
Assume that ( |w_1 - w_2 + a_1 - a_2 + r_1 - r_2| = 0 ). Since the absolute value of a number is 0 if and only if the number itself is 0, we have:
( w_1 - w_2 + a_1 - a_2 + r_1 - r_2 = 0 )
This equation can be rearranged into:
( w_1 - w_2 = -(a_1 - a_2 + r_1 - r_2) )
Since ( w_1, w_2 ) can only take on the values 0, 100, or 900, and ( a_1, a_2 ) can only take on the values 0, 10, or 90, and ( r_1, r_2 ) can only take on the values 0, 1, or 9, the only way the left side of the equation can be equal to the right side (considering the possible values of the terms) is if both sides are equal to zero. That is:
( w_1 - w_2 = 0 )
( a_1 - a_2 = 0 )
( r_1 - r_2 = 0 )
This implies that:
( w_1 = w_2 )
( a_1 = a_2 )
( r_1 = r_2 )
Therefore, the tuples ((w_1, a_1, r_1)) and ((w_2, a_2, r_2)) are the same.
Backward Direction:
If the two tuples are the same, then by definition, we have:
( w_1 = w_2 )
( a_1 = a_2 )
( r_1 = r_2 )
Subtracting the respective elements gives us:
( w_1 - w_2 = 0 )
( a_1 - a_2 = 0 )
( r_1 - r_2 = 0 )
Adding these together:
( (w_1 - w_2) + (a_1 - a_2) + (r_1 - r_2) = 0 + 0 + 0 )
( w_1 - w_2 + a_1 - a_2 + r_1 - r_2 = 0 )
Taking the absolute value of both sides, we get:
( |w_1 - w_2 + a_1 - a_2 + r_1 - r_2| = |0| )
( |w_1 - w_2 + a_1 - a_2 + r_1 - r_2| = 0 )
Since we've proven both the forward and backward directions, we've shown that ( |w_1 - w_2 + a_1 - a_2 + r_1 - r_2| = 0 ) if and only if the two tuples are identical.