By the Curry–Howard correspondence, programming is in fact (formal) theorem proving.
Mathematics got a lot less interesting after I realized it amounted to a giant, informally-specified, mostly undocumented body of code designed to run on the human brain... from that perspective it's hard to see why one should prefer mathematics to a well-written software program that does the same thing.