Medicine is fuzzy, software is mostly maths. You can prove your software has no bugs and you increasingly should be proving that. The hard part is knowing if what you prove is what the software is doing.
That very much depends on got you define “bug” and how you specify your product requirements. Also, you have to assume the specs are correct.