In the late 19th century, Georg Cantor believed his new theory could help the Church understand the infinite nature of the divine. He miscalculated.