Given two points, p and q, let d= d(p,q), the distance between p and q as measured by the metric. Consider the sets and . Suppose z is contained in both of those sets and apply the triangle inequality to point p, q, and z.