It's not just a matter of competence: it's a matter of knowledge, experience, and tenacity. Currently, frontier model companies are trying to tackle the problem of their models writing potentially unsafe software by demonstrating that their models can build formal proofs. However, someone who lacks formal verification experience, the domain knowledge to make such software safe, or the understanding to combine the two into formal specifications will build bad proofs, because the formal specifications will be unsound. LLMs don't necessarily improve this outcome. An inexperienced engineer, with or without LLM assistance, is just as likely to not add a property to verify that nonces aren't re-used as the WiFi Alliance.
WPA2 wasn't designed by a single individual. It was designed by a committee of people including respected cryptographers and information security folks. They missed the fact that nonces could be re-used in the design, and they trusted the formal specifications that lacked a check on nonce re-use. It happens. Unfortunately, formal specifications tend to trap folks into a sense of complacency. Soundness is a hard problem, and if it's not solved, folks will make bad assumptions. "But, it's been formally verified..."
Could LLMs accelerate tactics and Curry-Howard level hole filling of specifications? Absolutely. But, they aren't likely to do much better than humans at building sound specifications. This is a difficult problem, for experienced humans with a narrow specialization in formal methods.
The flaw exploited by KRACK was not in the proof. I thought that was obvious.
It's that a key property, that a nonce (a number only used once) was never reused, was never stated. So that property was not proven, and in fact, was false.
It takes one line of specification to state the nonce invariant. It is beyond incompetent to leave it unstated.
Once stated, any proof would have to also satisfy that invariant (and the existing proofs would, of course, fail since the current design does not prevent nonce reuse).
It's difficult to speculate about the future. We don't yet have the right kind of hardware -- whether it be performance, scale, etc -- to simulate the kind of synthetic intelligence necessary to outpace humans at reasoning.
It's not a matter of constructing proofs. This can be done via brute force with appropriately managed search trees. LLMs actually are not much better at this than other ML or search techniques; it's just that in practice, that's not what proof engineers have optimized for.
Building a sound specification, that as erichocean pointed out, would include measures to prevent nonce re-use, is a much more subtle and difficult thing. You can prove that software is correct with respect to a specification, but there is nothing beyond proving internal consistency, to verify that the specification itself is sound, complete, or appropriate. This is an open-ended problem, and one that humans have difficulty with. I don't think that any synthetic intelligence is likely to do better, because it can only do as well as the vetting of information provided to it, and it is very likely that this information will be flawed and incomplete. LLMs try to fill in the blanks with plausible things, based on their training. Even humans make assumptions. These assumptions are sometimes wrong.
Regarding proof automation, this is actually a double-edged sword. I can build systems today that will perform various optimization techniques to try to get further into a proof via tactic search, and will eventually converge on a solution. However, the tactics will be a mess, much like the 1600 pages of tactics in the OpenAI NS proof. A good proof engineer builds specifications and proofs that other humans can read and understand. Even the tactics are organized around what can be explained, so that these can be hand checked. If you're building proofs of software, you want auditors to be able to look at these as well as the specification to see if you are missing something, such as a nonce re-use policy.
In this case a reasonable conclusion would be that there are no sufficiently competent people and we should act on that basis. Or, at least, that we have no reliable way of marrying sufficient competence with the right problems.
Well yes, but this case is specifically about a time when the right thing wasn't tested for, because the team of wise, talented people attached missed it.
It verifies what it verifies, NICs write to main memory as the standard method of reading/writing packets - if there is no proof that the main memory/NIC memory is segmented for all packets/sequences of packets. Then there is no strict reason to believe that the program can't be RCE'd.
The same would apply to any interaction between pointer based memory operations and LEAN. Pointer based memory ops are everywhere below a certain level of code/hardware integration.
This is cool, I did something similar with a CoreText replacement I've been building recently.
My code can JIT + render to the atlas faster at p100 than CoreText can render without the JIT at p50, and with better quality (measured against an exact cover reference).
I do not encourage you to look at the diagonalization argument, it has similarly uncomputable elements (that take "longer than infinite" time because they are unconstructable).
> And compared to Go, the production observability is very good.
Can you give some examples where Go is lacking and Java is great? (Ideally builtin things, and if not builtin, then things where Go doesn't have an externally developed alternative).
> I also use Clojure and can observe my running app with a full REPL.
Does this work with other JVM languages, like Java, too?
Clojure can to some extent help you get a full/true REPL into Java and any JVM language, but only to some extent. You'll have to use Clojure to get the full observability and program runtime-mutability.
Any formal specification that doesn't include the invariant about a nonce not being reused isn't worth anything at all.
So yes, incompetent people can design insecure specs that fail to state even the most basic security properties we know of.
reply