If a(t), b(t), and c(t) are the lengths of the three sides of a
triangle t in non-decreasing order (i.e. a(t) ≤ b(t) ≤ c(t)), we define the sets:
• X := {Triangle t : a(t) = b(t)}
• Y := {Triangle t : b(t) = c(t)}
• T := the set of all triangles
Using only set operations on these three sets, define:
(a) The set of all equilateral triangles (all sides equal)
(b) The set of all isosceles triangles (at least two sides equal)
(c) The set of all scalene triangles (no two sides equal)
Solution:
(a) We require a(t) = b(t) and b(t) = c(t) (this obviously implies a(t) = c(t)), so the
set is X ∩ Y
(b) An isosceles triangle t can have
1. a(t) = b(t), or 2. b(t) = c(t), or 3. a(t) = c(t).
1 Now we have assumed that a(t), b(t), and c(t) are in non-decreasing order, so the last condition holds if and only if both the first two do. So the required set is X ∪ Y .
(c) A scalene triangle has its two smaller sides a(t) and b(t) unequal (set T \ X) and its two larger sides b(t) and c(t) unequal (set T \ Y ). Since the sides are listed in the non-decreasing order, either of the above conditions guarantees a(t) 6= c(t).
So the required set is (T \ X) ∩ (T \ Y ).
An alternative argument is: A triangle is scalene if and only if it is not isosceles.
So using the result of the previous part, the set of scalene triangles is T \(X ∪ Y ).
It’s easy to confirm that the answers given by the two arguments are actually the
same - this is an instance of a general rule called De Morgan’s Law.