by derbOac · 2y ago · 0 comments
With proofs, I normally think of the "work" as being in the derivation of a statement that is shown to be true. That is, the value is in deriving a new true statement that was not previously known to be true.
In the examples I usually see for using something like Lean, there's a true statement given, and the question is how to prove it. Although there are reasons this could be interesting, it doesn't seem quite as valuable as deriving some truth statement that wasn't previously known to be true.
Can something like Lean be used generatively, to generate multiple true statements given a set of assumptions?
Proof of true statements and discovery of new true statements go hand in hand. This is also because the proof tells you something about why the theorem is interesting. Generating multiple true statements given a set of assumptions is not very interesting per se.
But yes, something like, "in your situation, this is an interesting conjecture" would be nice in a proof assistant. Maybe AI will get us there.
But yes, I agree some kind of AI-ish guided suggestion process would be interesting. You'd have to quantify "interesting" probably to build such a thing but I suspect it could be done.
You can work this way in Lean. You need to have a goal to make the engine happy, but there's no need for the goal to be true -- you can just do something like
have h : ∀x, ∀y, x = y := by
-- h is not true, but in the attempt to prove it,
-- we can do whatever we want.
-- If we find something interesting, we can redefine hI would agree that this aspect is underdeveloped in proof assistants. At the root of it is that people believe that logic is different from algebra, while it really isn't.
But hearing how you approach proofs makes the standard directionality make much more sense.
As pointed out by others generating random true statements is not very interesting because you can generate such trivially by appending && true as many times as you want to the statement.
So in general you always want to prove something, because only that can tell you something about what is true and what is not.
BehaviourMC(compile(src)) = BehaviourE(src)
You are basically saying that the machine code behaviour of the compiled source should be identical to emulating the source directly.
You then need to define what you mean mathematically by machine code etc. until the goal is fully specified.
And then you prove it correct.