Hacker News new | ask | show | jobs
by sigbottle 13 days ago
It's turtles all the way down (what if every x86 and ARM chip has some obscure ISA exploit that agents are silently using that we don't know about?) but the idea is that while you can't remove absolute dependence, you can remove chains of dependencies and keep making it smaller and smaller w/ reductionism
3 comments

Yeah, I'd just add here that the top-level con-leche is proven correct with respect to a set-theoretic model of Lean. That model very well could be inconsistent! But it's unlikely. What con-leche et al. do is eliminate trust at other levels. con-leche removes the need to trust Lean's typechecker, con-ron lets you trust either Lean's compiler or Rust's compiler, con-agua lets you trust only the Kraken x86 semantics. Turtles indeed. No way around it!
> what if every x86 and ARM chip has some obscure ISA exploit that agents are silently using that we don't know about?

Given how easy this would be to do, I'd be very surprised if there were not multiple such vulnerabilities.

Easy to do? Maybe.

But extremely risky too. The only thing needed for someone to expose your backdoor is for them to run the lean compilation on an older CPU (or different CPU) without the backdoor, and suddenly there are very knowledgeable people interested in finding the embarrassing reason for the observed discrepancy.

I don't understand. The attack would be an attack on the silicon, not the ISA spec. It would manifest itself as a divergence between the formal spec and the actual behavior of the hardware, one which would probably only be evident when a very specific data pattern were loaded into some very specific registers or something like that. It's not something that would show up under any kind of empirical test with any higher probability than brute-forcing an AES key.
But the attack wouldn’t work on silicon without the issue (i.e. the lean verification of this proof would fail on that h/w) which would trigger research into finding out why it is different for all lean versions on the different hardware.
> But the attack wouldn’t work on silicon without the issue

Correct.

> (i.e. the lean verification of this proof would fail on that h/w)

That would be true if you had access to the actual physical silicon layout. But unless you know something I don't, the only way to get that is to somehow get access to the actual masks used during the fab run, or somehow extract the detailed structure of a physical chip. Good luck with that.

And in fact the exploit wouldn't even have to be in the silicon. Modern x86 chips are not actually x86 chips, they are essentially RISC chips that implement the x86 ISA in microcode, which is even easier to compromise than the silicon.

> It's not something that would show up under any kind of empirical test

It shows up on the empirical test of running Lean to verify this proof.

Wow, you really don't get it. A chip is a physical object. A Lean verification of a proof cannot in and of itself tell you anything about a physical object.
Are you saying that software running on a CPU can never demonstrate a CPU bug?
The challenge would be encoding the ISA exploit into the Lean proof in such a way that the CPU would be able to recognize it and behave in an exploitable way, without also making this complex behavior stand out in the (surely short and readable :-) proof text.

Then someone tries to verify the proof on some other kind of CPU and the differential execution trace shines a giant spotlight right at your ultra-valuable backdoor.

Please see my reply to the sibling comment: https://news.ycombinator.com/item?id=50603322
"Given [false], my favorite belief follows."
And cross-checking (since there is more than 1 verifier)