I applaud them for starting with the protocol, because that can be generalized beyond any one specific implementation in principle, even if, in practice, we're somewhat limited to the official Signal apps given their centralized nature. Securing the applications themselves (perhaps starting with their implementations of the protocol, but the rest is also fair game) will inevitably be a bigger task.
I'm actually unclear on whether they just translated some unmentioned design specification (whitepaper, maybe?) of the Signal protocol to Lean; or whether they actually translated the official app's implementation of the protocol to Lean.
I had assumed them to mean the latter, since I don't think the protocol design specification on its own would shake out into "over six million lines of Lean code." (Though if someone who knows Lean well thinks that's actually a reasonable number, please do correct me.) 6MM lines of proof code sounds more like something you get by "translating" an average-sized self-contained imperative-language library (like the protocol impl library) into a highly-rigorous prover language line-by-line, with a lot of the overhead coming from having to model imperative-language / imperative-CPU-target-abstract-machine semantics in rigorous mathematical form.
Annoyingly, the wording of the article is a bit too ambiguous to say for sure either way. They just say they "generated" the Lean code; they didn't say what it was being generated from.
From this I think it's a given that they were talking about the implementation, not the specification
> To confirm that AlphaProof Code can tell correct code from buggy code, we reintroduced two real, previously fixed bugs into an isolated version of Signal's code. In both cases, the system produced a machine-checked proof that the buggy version was insecure.
Of course, there are several official pieces of software which implement the specified Signal protocol, so it's not guaranteed they verified all of Signal's software which implements it https://github.com/signalapp/libsignal
I'd be surprised if there were no security bugs in any of the code here. It's more likely that they tested the implemented logic for creating/using the cryptographic primitives, than that they actually verified there were no bugs at all in the code
is it just the protocol? Or is it also "the part of signal that implements the protocol", at least, yes it does what it's supposed to, with no weird timing collisions when multithreaded?
Also, I presume there are some unproved baked in assumptions about cryptographic primitives (e.g, but not necessarily, "sha512 has a uniform distribution")