hwayne / learntla-v2

Learn TLA+ for free! No prior experience necessary!
https://www.learntla.com
Other
183 stars 39 forks source link

confusion about the text "writing `INVARIANT P`" #47

Closed cwlucas41 closed 1 year ago

cwlucas41 commented 1 year ago

always/box section says:

[]P means that P is true in every state. When on the outside of a predicate, this is equivalent to an invariant, and in fact is how TLC supports them: writing INVARIANT P is the same as writing PROPERTY []P.

Having read through core linearly up to here, I don't know what "writing INVARIANT P" means. Examples have only configured invariants with the Model Overview GUI - is this referencing a way to write the model checker properties as config?