“Is math” and “Either works or not” is only true with formal specifications and formal verification, which dwarfs the cost of producing said software.