-
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
【corres_underlying】How to use corres_underlying to prove the correspondence between two whileLoops's nondet_monad? #215
Comments
Thank you!That's very useful information. I have another question: Many Thanks |
Those two monads generally do not correspond, because they behave differently -- one can return errors and the other not. Usually there is something like a The Query panel in jEdit and the It is possible for such statements to correspond, if the parts of the error monad can never throw an error, for instance, but in that case it is usually better to use rewriting on the error monad part first to eliminate the error handling. If that is too hard, then such a corres rules could be written, I think, but I'd recommend that only as last resort. |
Many Thanks! |
Now I can use lemma corresponding_whileLoop in the lib/ExtraCorres.thy to prove the correspondence of two WhileLoops without exceptions, which is a huge help for me. Many Thanks! |
We don't have an exception version yet, sorry. You'll have to prove one yourself, but we'd be happy to take a pull request to add it to the library. |
Hello, I performed a proof of consistency between whileLoopE based on the corres_whileLoop rule during my study, and the proof code is as follows.
I don't know if you have finished the proof, if not you can see if my proof code is correct, I hope it can provide some help to you. |
Thanks @noneGMJ, it looks like with a bit more fine-tuning we could include that in the library. |
Haha ok, I've seen the new whileLoop rules on the rt branch and will make changes to whileLoopE after I finish my graduation design recently. |
Dear,
I want to use predicate corres_underlying to prove the correspondence between two whileLoop or two whileLoopE, but I have not found the relevant lemma in the file corresponding_UL.thy. Does it exist in other files? Is there any good way?
Many Thanks
Gao.
The text was updated successfully, but these errors were encountered: