[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

*From*: Balaji Arun <ba2669@xxxxxx>*Date*: Tue, 21 Apr 2020 07:41:34 -0700 (PDT)*References*: <b24fe285-fbfe-4117-8560-7836646f51b2@googlegroups.com> <63676597-8A03-44C4-A3A0-DD7801FBD695@gmail.com> <9bb91b56-ba80-43fd-8805-b47e49071291@googlegroups.com> <D5755256-A183-480F-B208-9AEAF3612D54@gmail.com>

Hello Stephan,

On Friday, April 10, 2020 at 6:21:12 AM UTC-4, Stephan Merz wrote:

-- Thanks for the reply.

I was having a hard time using the definitions of min and max from MinMax2 in MinMax1. It seems that defining min and max in the spec itself rather than passing to the INSTANCE declaration does the trick. I am still working on the proof, but I have learnt quite a lot since.

On Friday, April 10, 2020 at 6:21:12 AM UTC-4, Stephan Merz wrote:

Hello,Thanks for the reply. I understood your point about <3>1 and have rewritten the steps as follows. The QED steps are satisfied when I run the prover. Now, I am struck with <4>2. Am I correct in assuming that my cases are correct since the QED step <5>4 checks out?yes, success of that step shows you that your decomposition into cases is adequate for proving the enclosing goal.If so, how do I know why the set of provided facts for <5>1 is not enough (since the proof fails). Is there a way for me to debug my proof? The reason I ask is sometimes I see that the proof tactics play a role in the success of the proof within a timeout. So, I dont really know when I should increase the timeout, try a different proof technique, or work on my proof steps.Understanding why a proof fails is hard. It could be that the assertion is wrong or it could be that the automatic backends are not strong enough to understand why the assertion holds. In order to better understand what is going on, you will have to look at the proof obligation that the PM displays, and the smaller the obligation is, the easier it will be for you to understand it. It is therefore not helpful to just expand all definitions and use all available facts – also, that risks making the provers confused. It is better to introduce lemmas and outline the proof as a sequence of small steps (you may later collapse them into a larger step once you've understood how the proof really works).Doing so in the concrete example reveals that quite a bit of scaffolding is necessary, such as showing that infinity / minus infinity is different from integers or reasoning about how the minimum of a set evolves when an element is added etc. I also strengthened the invariant to include the fact that the set y is always finite, since this is needed for the lemmas about setMin / setMax.I have not completed the proof, but I hope that the outline in the attached module will help you better understand how to successfully write proofs. It may be the case that some facts proved in sub-cases of <3>10 / <3>11 will again be needed in the proof of <3>12. In that case you may want to refactor the proof to introduce them as level-3 steps and use them wherever needed. (That's why I left some "space" before <3>10.)Regards,StephanP.S.: Instead of copying and pasting parts of proofs, please attach TLA+ modules that can be directly loaded into the Toolbox.

You received this message because you are subscribed to the Google Groups "tlaplus" group.

To unsubscribe from this group and stop receiving emails from it, send an email to tlaplus+unsubscribe@xxxxxxxxxxxxxxxx.

To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/792b6d98-f41d-4a41-8805-eb35ca38826c%40googlegroups.com.

**References**:**[tlaplus] MinMax Refinement Proof in TLAPS***From:*Balaji Arun

**Re: [tlaplus] MinMax Refinement Proof in TLAPS***From:*Stephan Merz

**Re: [tlaplus] MinMax Refinement Proof in TLAPS***From:*Balaji Arun

**Re: [tlaplus] MinMax Refinement Proof in TLAPS***From:*Stephan Merz

- Prev by Date:
**[tlaplus] Announcing PlusPy: Python interpreter for TLA+ specifications** - Next by Date:
**[tlaplus] TLC Liveness Checking Error-Reporting Bug** - Previous by thread:
**Re: [tlaplus] MinMax Refinement Proof in TLAPS** - Next by thread:
**[tlaplus] Are there any tools to convert ASTs in JSON / XML / S-expressions / etc. formats to TLA+?** - Index(es):