I guess my point wasn't that it's not possible to formally verify programs as much as it exercises a different part of your brain. Doing math feels different for me, because I'm constructing the whole thing in its entirety in my mind at once, and I can poke at it and follow strands in a different way.
Of course, when I have a good design for a program I also have a mental map of how it all connects, but the methods I use to morph a problem in programming is sequential and directed in a way, where proof by contradiction or contrapositive feels very different.