The program called Lean was built to detect bugs in Microsoft’s products. It ended up revolutionizing mathematics.