-
Notifications
You must be signed in to change notification settings - Fork 108
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
docs: add debugging tips for vcg goals #741
Conversation
This is not trying to be comprehensive, but just an improvement to the "sorry, no clue" that was there before. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me and is definitely an improvement over 'no clue'!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very helpful, thanks
When looking at this PR, I kept having a sneaking suspicion I had written about something related already and asked people for feedback, although I couldn't find the direct text I remembered. Turns out I did write something related and linked it on mattermost pinging the whole channel (Michael even looked at it): This PR came out of nowhere, so what I wrote was probably not considered. I think that a section like "Having to show unprovable subterms due to implicit False" would be useful (which was the target of my gist), and some of my examples of specific cases are more clear than they are here (
might be more useful than the one-step version, because you can look at the failing case and see what variables the schematic depends on vs the generated goal. Etc. Something to consider w.r.t. a "proving False" vs a "unprovable subterms" section, is that I rarely get to see a proper |
Indeed, I had forgotten about this, I was just triggered by the "sorry, not better clue" that came up in a How about making your gist a separate file under |
I've seen it a few times, mostly in other people's proofs (not the entire post condition being |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion of making a separate file, putting the combined crefine/ccorres proof debugging info in there, then linking to it from crefine-notes.md
makes sense. Let's do that. There should be a way of combining my gist with what @lsf37 wrote up, possibly favouring whichever is the most specific/comprehensible to the content they apply to.
Now updated with Raf's gist as a basis and extracted from the CRefine notes as a separate file. I also added all our recent new files to the README, which is attempting to give a table of contents. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for resolving this, I think the outcome looks good now, only had trivial nitpicks. Time will tell whether anyone actually goes and looks at the debugging guide, but you've certainly left enough pointers to it.
Commit-wise, given that the "add vcg debugging guide" commit moves a whole lot of the previous "add debugging tips for vcg goals", would it make sense to merge the two?
👍
Oh, yes, absolutely. I thought I had already squashed them, but it seems I did not. |
Co-authored-by: Rafal Kolanski <[email protected]> Signed-off-by: Gerwin Klein <[email protected]>
Signed-off-by: Gerwin Klein <[email protected]>
Inspired by discussions on the fastpath PR and MM discussions, a minor addition to the CRefine notes in
docs/
on how to debug thatFalse
-in-final-goal-after-vcg
problem.