-
Notifications
You must be signed in to change notification settings - Fork 56
Add Pantograph-like approach to tactic mode #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add Pantograph-like approach to tactic mode #90
Conversation
Could you share the reason why we finally choose this goal ordering? The example provided corresponds to the lean file
so the first rfl solves the "⊢ 2 = 2" goal and the second one solves "h : 2 = 2\n⊢ 1 = 1". However, current goal ordering seems to be working otherwise. |
I see your updation on goal ordering today! Thank you for the great efforts. |
The goal ordering is not perfect at the moment. If you look at the example I shared in the zulip channel, you will notice that the order is slightly random. I will try to improve that, but no promise as I am not sure it is possible to recover sorry position in a file from an expr in tactic mode. |
Thank you for the clarification. I see that the 4 goals in proofState 0 are quite random. Nevertheless, at least if we add by before the 2nd and the 3rd sorry, we can get it just in the order in the file content. So from my point of view the current implementation is already useful for sequential check. Thanks again! |
52d6174
to
3993398
Compare
3993398
to
a1de50b
Compare
This PR implements an approach similar to Pantograph: it transforms sorries introduced in tactic mode as new goals in the same proof state. This removes the branching problem, making possible to run kernel check of such proofs.
TODO:
sorries
method to instantiate a unique proofstate per declarationExample
Input:
Previous output:
New output: