Closed heidihoward closed 3 years ago
This comes up again in PT: https://github.com/Apress/practical-tla-plus/blob/1afed6f8c95bf921adc948d23d4260d9cd300724/PT/PT.tla#L21
TLA+ operators can be recursive or higher-order, but not both. This matters because PT!ReduceSet
is higher-order, so needs to use a function in its implementation to get recursion.
Clarified errata.
The sentence "Functions ... have no restrictions on recursion" implied to me that operations could not be recursive. However, they can be and here is what
SumUpTo(n)
might look like as a recursive operator: