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

*From*: Stephan Merz <stephan.merz@xxxxxxxxx>*Date*: Fri, 6 May 2022 14:37:45 +0200*References*: <57858f0a-8b02-474f-9206-c2118c408ccen@googlegroups.com>

Hello, constant expressions involve only constant operators, no variables, no primes, no temporal formulas. You can read more about levels of TLA formulas in chapter 16 of "Specifying Systems". You can use that functionality in order to evaluate constant expressions such as { 2*i+1 : i \in 0 .. 5 } What you are really trying to do is check an invariant of a specification. To do that, tell TLC to interpret "Spec" as the specification that you are checking and "Init" as the invariant to check. For example, in the TLA+ Toolbox, create a new model, make sure that Spec appears in the "What is the behavior spec?" section of the Model Overview pane, and add Inv as an invariant in the "What to check?" section of that pane. Hope this helps, 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/9EAB03D6-B561-46D9-A4E9-63C7ACA4449C%40gmail.com. |

**Follow-Ups**:

**References**:

- Prev by Date:
**[tlaplus] "Level error in applying operator $Tuple: The level of argument 2 exceeds the maximum level allowed by the operator"** - Next by Date:
**Re: [tlaplus] "Level error in applying operator $Tuple: The level of argument 2 exceeds the maximum level allowed by the operator"** - Previous by thread:
**[tlaplus] "Level error in applying operator $Tuple: The level of argument 2 exceeds the maximum level allowed by the operator"** - Next by thread:
**Re: [tlaplus] "Level error in applying operator $Tuple: The level of argument 2 exceeds the maximum level allowed by the operator"** - Index(es):