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

*From*: Stephan Merz <stephan.merz@xxxxxxxxx>*Date*: Thu, 24 Dec 2020 08:35:31 +0100*References*: <01abfbb5-1a19-488d-aa95-be43ac15c26an@googlegroups.com>

Hello, I presume that your initial condition includes "A = A0" so that the algorithm is run on the fixed value provided by A0. Instead, make A0 an additional variable that is never changed by the algorithm (but you will refer to it in your correctness condition) and write an initial condition that allows A0 to take any sequence in the set you are interested in. Something like TestData == {-5, 0, 27, 42} TestSequences == UNION { [1..n -> TestData] : n \in 0 .. 4 } Init == A0 \in TestSequences /\ A = A0 /\ ... Don't forget to add A0 to the UNCHANGED clauses in your actions. Stephan
--
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/8BE65D10-EF0D-4421-967D-A2A455F8E50C%40gmail.com. |

**References**:**[tlaplus] How to run a spec through some set of models***From:*Nam Nguyen

- Prev by Date:
**[tlaplus] How to run a spec through some set of models** - Next by Date:
**[tlaplus] Proof of Module Bakery Fails** - Previous by thread:
**[tlaplus] How to run a spec through some set of models** - Next by thread:
**[tlaplus] Proof of Module Bakery Fails** - Index(es):