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

*From*: Shiyao MA <i@xxxxxxxxx>*Date*: Thu, 19 Sep 2019 20:01:10 -0700 (PDT)*References*: <49ec89c4-e18a-48fa-bb0b-2b499379fdee@googlegroups.com> <a970adcf-3791-4835-b6c8-ac024b5c9cef@googlegroups.com> <277f303e-5cfe-8607-6789-99686a50099c@gmail.com>

Hi Hillel,

On Friday, 20 September 2019 00:29:07 UTC+8, Hillel Wayne wrote:

-- I was thinking about how the TLC checker searches for all the possible states *regardless* what exactly an OP refers to.

So for example,

Given a spec:

Next == OP1 \/ OP2 \/ OP3

Spec == Init /\ [][Next]_vars

and consider the case where the checker is at state S. The checker now proceeds to search all the *direct* child states (in a BFS style).

My question and predication is, for the above Next operation which contains a set of operations joined with *\/*, a state transition will never be conducted by applying both OP1 and OP2 (or any two of the three) on the current state S.

The checker enumerates the possible direct child states by applying OP1, OP2, and OP3 separately.

Best,

On Friday, 20 September 2019 00:29:07 UTC+8, Hillel Wayne wrote:

Hi Shiyao

related code:

VoteFor(a, b, v) ==

/\ maxBal[a] =< b

/\ \A vt \in votes[a] : vt[1] /= b

/\ \A c \in Acceptor \ {a} :

\A vt \in votes[c] : (vt[1] = b) => (vt[2] = v)

/\ \E Q \in Quorum : ShowsSafeAt(Q, b, v)

/\ votes' = [votes EXCEPT ![a] = votes[a] \cup {<<b, v>>}]

/\ maxBal' = [maxBal EXCEPT ![a] = b]

If

VoteForspecifiesmaxBal', andIncreaseMaxBalspecifiesmaxBal', then they can only be true that the same time if there is some value formaxBal'that satisfies both actions.Given TLC isn't giving you an error, I'm guessing you also have

UNCHANGED votesinIncreaseMaxBal? Then they definitely both can't be true at the same time, asVoteForwould specify thatvoteschanges andIncreaseMaxBaldoes not.

H

--

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 tla...@googlegroups.com .

To view this discussion on the web visit https://groups.google.com/d/msgid/tlaplus/a970adcf-3791- .4835-b6c8-ac024b5c9cef% 40googlegroups.com

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/18c0b8b6-1fe6-40b8-8560-d808d6bc7dc6%40googlegroups.com.

**Follow-Ups**:**Re: [tlaplus] Re: How does TLC expand search?***From:*Hillel Wayne

**References**:**[tlaplus] Re: How does TLC expand search?***From:*Shiyao MA

**Re: [tlaplus] Re: How does TLC expand search?***From:*Hillel Wayne

- Prev by Date:
**Re: [tlaplus] Re: How does TLC expand search?** - Next by Date:
**Re: [tlaplus] Re: How does TLC expand search?** - Previous by thread:
**Re: [tlaplus] Re: How does TLC expand search?** - Next by thread:
**Re: [tlaplus] Re: How does TLC expand search?** - Index(es):