5 ms·
> 3) No bugs exist in your theorem prover Seems to me that at some point we want theorem provers to be self hosting, as it were. That of course won't fix prob
by hinkley 10y ago
> 3) No bugs exist in your theorem prover
Seems to me that at some point we want theorem provers to be self hosting, as it were.
That of course won't fix problems with bugs in hardware, and hardware that behaves like analog devices (rowhammer, cold boot, data recovery, stray gamma rays...)
- CGamesPlay 10y agoIf there's a bug in the theorem prover and it proves itself, it still has that bug.
- spott 10y agoOnly if the bug in the prover allows the bug in the prover, which seems unlikely (unless the bug is pretty huge).
- burke 10y agoYep. Imagine a prover that accepts all statements. It would accept a buggy program, and it would accept itself. It would obviously help reduce errors but it wouldn't categorically eliminate them.
- nabla9 10y agoIt would have to be kind of fixed point of bugs (like finding cryptographic hash that equal to the input value). It wold be incredibly unlikely.
- simondedalus 10y agoGödel proved that we will never get such a prover: https://en.wikipedia.org/wiki/G%C3%B6del%27s_incompleteness_theorems https://en.wikipedia.org/wiki/G%C3%B6del%27s_incompleteness_... Particularly, he proved that it is impossible for a formal system to prove its own consistency.
- informatimago 10y agoHowever, prover[p-1] can prove prover[p], modulo the bugs prover[p-1]. Then prover[p-2] can prove prover[p-1], modulo the bugs in prover[p-2]. If you can have prover[i-1] is simplier than prover[i], and prover[0] is so simple that any 5-years old can prove it's correct, then you win.
- randallsquared 10y agoSomething seems wrong about this. Could you not describe the combination of all provers as a formal system? Would this system then not run afoul of Goedel?
- deleted 10y ago[deleted]
- lmkg 10y agoThis approach can only describe formal systems that are finite combinations of such provers.
- crpatino 10y agoTheoretically, you are 100% correct. In practice, it is still worthwhile to have N redundant independently developed provers to prove each other, and to benchmark against each other. This will help uncover subtle bugs that result from ordinary programming mistakes. This will, however, not protect against deeper issues that are common to all N provers. e.g. Potential biases or mistaken assumptions in the formal verification comunity. At the end of the day, it is an engineering decision. How much of the available resources are you willing to through at the practical problem of making your implementation approach asymptotically to the theoretical limits. The fact that those limits is indeed a peg or two below perfection is an independent issue.
- deleted 10y ago[deleted]
- nickpsecurity 10y agoYou can send your emails of amazement and gratitude to Jared Davis and Magnus Myreen for that one. :) https://www.cs.utexas.edu/~jared/milawa/Web/ https://www.cs.utexas.edu/~jared/milawa/Web/ They and their associates' work covers verified runtimes, HOL, extraction mechanisms, etc. https://www.cl.cam.ac.uk/~mom22/research.html https://www.cl.cam.ac.uk/~mom22/research.html Just port Milawa to run on multiple architectures with separate CPU's or implementations from multiple vendors. Include verified, VAMP processor on two FPGA's. Check Milawa itself then check the software in FOL until HOL is done. I have a paper somewhere on HOL-to-FOL converter, too. :) Note: I've seen a bunch of things implemented in Prolog. I figure it could be modified to execute the program and produce an execution trace of its logic that could be run through Milawa. Not specialist enough to say. A prior, certified compiler for Pascal-like language was specified in Z shown equivalent to Prolog functions. So, there's potential here.
- obastani 10y agoIt's impossible to guarantee that your theorem prover is bug free -- for example, if it has a bug that causes it to always return "correct", then it proves its own correctness, even though it is clearly wrong. This is not to say that self-hosting isn't useful, since most bugs are not likely to be of this form.