Formal proof assistants and interactive theorem prover for mathematics already exist. So do proof libraries. See: http://metamath.org/
They are not used because it's tedious to type and proof every step in the process. Mathematicians don't write all steps down. You also need build a library from ground up.
We could to the same for computer programs but we don't wan to do that either.