I'd argue math is different from software engineering. Math is easily verifiable and there exists an absolute truth. Software engineering is more akin to art. There is no one right way to do things. Requirements are defined by the people, for the people. It's more like clay-making.
Craft. Art is something different. There is overlap sometimes, but I certainly don't feel human connection or a notable aesthetic experience reading through LLVM's codebase.
You could make up whatever a priori theories you want to. But some theories are “useful” or “elegant”. Why useful? For some other mathematical purpose. In turn is that useful? Maybe for some other mathematical purpose.
> Requirements are defined by the people, for the people.
In the sense that we are all people, but some people are more people than other people.
Some programs and their requirements are useful. For what purpose? For some other programming goal. Are they still useful for agents? Maybe, or maybe it’s just a needless detour.
Yes, but it's possible to verify software in a similar way to mathematical theorems (some theorems in fact are essentially algorithms proven to yield the correct result). The advantage in math is that it has been constructed from a few axioms and every step of the way has been formally verified. For software, I don't think it will be possible to create a fully verified stack of dependencies any time soon (at some point you reach hardware level and you'd have to prove that no software-controlled hardware exploit like Rowhammer is possible), but maybe there exists a reasonable set of axioms upon which provably correct/secure algorithms can be built.