Description:
In R^n equipped with the Euclidean metric, the distance from the origin is smooth and infinite harmonic everywhere except the origin. Using geodesics, we find a geometric characterization for when the distance from the origin in an arbitrary Carnot-Caratheodory space is a viscosity infinite harmonic function at a point outside the origin. We show that at points in the Heisenberg group and Grushin plane where this condition fails, the distance from the origin is not a viscosity infinite harmonic subsolution. In addition, the distance function is not a viscosity infinite harmonic supersolution at the origin.