I heard about google formally verifying the reference implementation of the Sign...

@jdw@mathstodon.xyz

I heard about google formally verifying the reference implementation of the Signal protocol. As my speculations below clearly show, I know next to nothing about formal program verification.

At first I wondered about the fact that they produced 6 million lines of Lean code. Anthropic's verification of Fermat's last theorem took 13 million lines of Lean code, but surely FLT is magnitudes more complex than the Signal protocol, no?

Then I read that they apparently didn't verify the program code of libsignal, but the machine code compiled for a specific platform. Is this really how things are done in formal program verification? After all it seems you verify more about the compiler working correctly than about the program in question this way…

Wouldn't it be more efficient and multitudes more useful if you would formulate precisely the "type theory" (or whatever) described by some higher level programming language and to then reason within this, than within machine language?

Of course in addition it would be desirable then to verify that some compiler for this language works correctly, which I guess is difficult because compilers used in practice are much more complex than the reference implementation of the Signal protocol. But since that's just some reference implementation anyway, maybe a simple reference compiler would be enough, too?