by Taikonerd · 1w ago · 0 comments
This is an interesting argument; I can see pros and cons here.
I'm not a formal-methods guy, but I'd imagine the reason that you might want to prove facts about the programs themselves is that they encode higher-level information "for free" -- such as, this function returns a Person.
IIRC, there was research into special compilers that would produce TAL: Typed Assembly Language. The idea was that TAL could carry annotations that would be helpful to provers.
```rust fn prop(a: X, b: X) -> bool { a == b } ```
You prove that the compiled `prop` function will always return `bool`, which might be that a particular register gets written `1` after every call to `prop`. Maybe TAL would allow for more complex properties to be written at the binary level instead of doing this trick.
This is not that recent. The sel4 proof uses this, to be able to use a compiler that's not verified