Generally that isn't a problem and the 'small' details or assumptions don't 'leak' up to higher levels and do any real damage to the proof.
There's a movement to make proofs formally verified, to try move towards eliminating this issue, but that's hard, because writing out every little detail, specifying every last piece of context & assumption & step is laborious.
Can code be written and subsequently formally verified that can then help in the process of formally verifying code?
In this case the proof did not properly account for the full range of inputs, of at least skipped over the fact that in real hardware the integer domains are finite.
There's a lot of formal verification tools out there though, they do make it easier,easy enough to at least properly verify the correctness of a simple sorting algorithm.
I'm pretty sure you're right though. Integers must have been defined as infinite in the proof for it to have been a proof at all.
Huh? How did he prove it correct, then?