3 ms·
Yes. Been there, done that, a long time ago, and had the same political problems. Many years ago, around 1980, I headed a project to build one of the first pro
by Animats 7y ago
Yes. Been there, done that, a long time ago, and had the same political problems.
Many years ago, around 1980, I headed a project to build one of the first program proof of correctness systems. (It's on Github now, about two-thirds working with modern compilers.)[1] We succeeded, but it was just too hard to use. And, back then, really slow. As in 15 minutes to hours.
We had two theorem provers. One was what's now called an SMT solver - it could prove theorems with addition, subtraction, multiplication by constants, equalities, inequalities, and the Boolean operators. It could also accept rewrite rules, which it accepted as true.
Because allowing users to input rewrite rules made it easy to create false proofs, we required that the rewrite rules be proven using the Boyer-Moore theorem prover, which is a pure constructive system.[2] Then the theorems could be transferred to the SMT solver and used there.
One of the things we set out to prove were the "axioms" for arrays. There are four, credited to McCarthy in his classic 1962 paper. But we wanted to prove them from a theory of constructive arrays. In Boyer-Moore theory, we defined arrays as sorted lists of (subscript, value) tuples. And then we set out to prove the classic four axioms for arrays with machine proofs.
Which we did.[3], starting at line 3372. That file is the Boyer-Moore theorem prover grinding its way up from a very low base of number theory to the theorems we needed for our program proving system. (On a modern computer, in seconds. Took 3 hours on a VAX in 1980. We just didn't have enough engine for this stuff back then.) In that notation, "(selecta A I)" means A[I], and "(storea A I V)" is array A with A[I] replaced with V. After some struggles, we got the the prover to find a way to prove that.
But it's ugly. There's lots of case analysis, which mathematicians hate. We didn't get to redefine "equal", so we couldn't have abstract sets. We had to have ordered lists of tuples, which meant all the fussyness of updating an ordered list representation and proving that was sound. But it all worked.
So I submitted this to JACM, back when that mattered. It was rejected. The comments were along the lines of "I don't like having something that ugly at the foundations of computer science". The reviewers all agreed it was valid, but they just didn't like doing it that way, in an automatic but inelegant way.
Looks like the author of the original article here is still having that problem.
Good times back then. But we were way ahead of our time.
[1] https://github.com/John-Nagle/pasv https://github.com/John-Nagle/pasv
[2] https://github.com/John-Nagle/nqthm https://github.com/John-Nagle/nqthm
[3] https://github.com/John-Nagle/pasv/blob/master/src/work/temporaryrulebaseprooflog.txt https://github.com/John-Nagle/pasv/blob/master/src/work/temp...
- Someone 7y agoI don’t think it’s just politics. It’s just a lot of work to build up a proof system to the point where it is useful for doing modern mathematics. Take the example from this article: True or false – if x is a real number, and x² − 3x + 2 = 0, then x = 1.” My answer “False – set x = 2. Lean: “OK, so it now suffices to prove that (a) 2² − 3×2 + 2 = 0 and that (b) 2 ≠ 1. Lean nowadays apparently is better at this, but there’s millennia of ‘trivial’ theorems to add before it is truly useful to research mathematicians, and doing that isn’t mathematics, but still has to be done by mathematicians, because nobody else can do it.
- lordgrenville 7y agoSorry for the dim question, but could you explain what is wrong with Lean's method? I was wondering this when looking at the slides, too. (We know 2 != 1, therefore False - right?)
- krapht 7y agoThe point is asking the user to prove this is basically asking the user to write proof assembly language, not that it is incorrect.
- Someone 7y agoWe know, but Lean (initially) didn’t. When writing a computer theorem prover/checker, you want the part that isn’t proven by the system itself to be bug-free first, and expressive second. The only way to get the first is by giving up that second goal. So, you rather give your users something bug free in which they can express the basics of numbers, starting, for example, with the Peano axioms (https://en.wikipedia.org/wiki/Peano_axioms https://en.wikipedia.org/wiki/Peano_axioms) (and that isn’t even the bottom of the stack; an even more basic system could replicate Principia Mathematica (https://en.wikipedia.org/wiki/Principia_Mathematica) https://en.wikipedia.org/wiki/Principia_Mathematica)) It’s a long road from there to high school math and an even longer one to mathematics research, so users not only will be able to do the above, but they will have to, if they want to do something at the front of mathematics.