logoalt Hacker News

GrollingGrakbor • yesterday at 7:21 PM • 0 replies • view on HN

Why 'trick' lol? You're implying that it couldn't work this way because mathematicians would be stupid to implement multiple kernels then, but the point of multiple kernels is that if you have even one that is bugfree, then nothing can break it. So adding multiple kernels is still an obvious benefit, even if my trick works. Here, I can give you a program that compiles under two different buggy kernels:

  4 is a prime => False
  8*8 = 62 => False
  False => my cool assertion

The first buggy kernel thinks 4 is a prime, and the second one thinks 8*8 = 62.

What you probably mean is that Lean ships multiple kernels that are theoretically proven to be bugfree, but because these kernels are themselves programs, the compiler that compiled Lean (e.g. rustc) can still introduce a bug in the compiled version of the kernel. We currently have 2+ theoretically verified kernels (100% theoretical security each!), that get compiled by a different compiler each into potentially broken binaries. And there's a potentially buggy runtime too, but same thing.

The point is that you would now have to memory-corrupt-or-whatever your way out of each of these 2+ runtimes using the same proof while formulating this proof in a way such that the sections that don't do memory corruption remain sound under those parts of the different kernels that aren't buggy. While also being an agent swarm that was guided by a competent researcher. That's extremely unlikely. But the kernel binaries don't need to have the exact same bug for this to work. Or at least that's what I'm claiming.