This paper describes a program that solves elementary mathematical problems, mostly in metric space theory, and presents solutions that are hard to distinguish from solutions that might be written by human mathematicians.Research supported by a Royal Society 2010 Anniversary Research Professorship.This is the final version of the article. It first appeared from Springer via http://dx.doi.org/10.1007/s10817-016-9377-