Skip to content
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

test and docs for corres method + slight tweaks for the same #656

Merged
merged 6 commits into from
Aug 30, 2023

Conversation

lsf37
Copy link
Member

@lsf37 lsf37 commented Jun 30, 2023

  • enforce (no_asm) more strongly for corres term rewriting in corres
  • add an additional breakpoint for debugging corres_cleanup
  • add a tutorial for the corres method, which also serves as a longer test case

@lsf37 lsf37 added the docs Documentation, READMEs, etc label Jun 30, 2023
@lsf37 lsf37 self-assigned this Jun 30, 2023
@lsf37
Copy link
Member Author

lsf37 commented Jun 30, 2023

Tagging @Xaphiosis just in case he wants to read through this (but completely fine to ignore)

Base automatically changed from corres-method to master June 30, 2023 22:49
@lsf37 lsf37 linked an issue Jun 30, 2023 that may be closed by this pull request
@lsf37 lsf37 force-pushed the corres-method-test branch 2 times, most recently from 428d37d to 46c52c3 Compare July 1, 2023 11:30
Copy link
Contributor

@michaelmcinerney michaelmcinerney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tutorial is very helpful, thanks. I hadn't come across the apply_debug feature before.

Copy link
Member

@corlewis corlewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice documentation/tutorial! It's cool to see an actual use of apply_debug like that, it's not something I ever think of.

lib/test/Corres_Test.thy Outdated Show resolved Hide resolved
lib/test/Corres_Test.thy Outdated Show resolved Hide resolved
lib/test/Corres_Test.thy Show resolved Hide resolved
lib/test/Corres_Test.thy Outdated Show resolved Hide resolved
lib/test/Corres_Test.thy Outdated Show resolved Hide resolved
lib/test/Corres_Test.thy Outdated Show resolved Hide resolved
lib/test/Corres_Test.thy Outdated Show resolved Hide resolved
lib/test/Corres_Test.thy Outdated Show resolved Hide resolved
lib/test/Corres_Test.thy Outdated Show resolved Hide resolved
lib/test/Corres_Test.thy Outdated Show resolved Hide resolved
lib/test/Corres_Test.thy Outdated Show resolved Hide resolved
lib/test/Corres_Test.thy Outdated Show resolved Hide resolved
lib/test/Corres_Test.thy Outdated Show resolved Hide resolved
lib/test/Corres_Test.thy Outdated Show resolved Hide resolved
Copy link
Member

@Xaphiosis Xaphiosis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good examples, definitely very helpful. There's some confusion about which commit some changes are in, and I left a bit of feedback on the text in comments along with begging for a review of just frequency. Might also make sense to use sections in the test file, I find it hard to tell in places what is a section header and what isn't.

This is useful for debugging the proof method for solving side
conditions, and will show which goals corres_cleanup is invoked on.

Signed-off-by: Gerwin Klein <[email protected]>
The subst_all rule in the standard simp set can circumvent the (no_asm)
mode of simp, which we are using in the corres method.

Signed-off-by: Gerwin Klein <[email protected]>
@lsf37
Copy link
Member Author

lsf37 commented Aug 30, 2023

Good examples, definitely very helpful. There's some confusion about which commit some changes are in, and I left a bit of feedback on the text in comments along with begging for a review of just frequency.

I re-read the text and I wholeheartedly apologise for the unjust frequency of just. Not sure what was riding me, but it really was way too much. Frequency is drastically reduced now.

Might also make sense to use sections in the test file, I find it hard to tell in places what is a section header and what isn't.

Yes, I should probably do that. Will try it out.

The (no_asm) for corres goals is now properly enforced, which means
it is now really necessary to provide terminal corres rules in their
proper form.

Signed-off-by: Gerwin Klein <[email protected]>
Explain that these are not nice simp rules, what one should do instead,
and why we leave them as is despite all that.

Signed-off-by: Gerwin Klein <[email protected]>
Factor out is_safe_wp from corres method, so that we can refer to it
later in the documentation.

Signed-off-by: Gerwin Klein <[email protected]>
@lsf37 lsf37 merged commit c4369f5 into master Aug 30, 2023
13 of 14 checks passed
@lsf37 lsf37 deleted the corres-method-test branch August 30, 2023 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation, READMEs, etc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

simpler corres and corressimp methods
4 participants