4 ms·
In your example, you can just add a variable that is incremented at every step and then use it to state your invariant that convergence must happen within 5 ste
by nano_o 3y ago
In your example, you can just add a variable that is incremented at every step and then use it to state your invariant that convergence must happen within 5 steps.
Sometimes you can encode properties that might initially seem hard to state in TLA+ in a similar way. Lamport has a recent paper explaining how to do that for hyperproperties such as information-flow security: http://lamport.azurewebsites.net/pubs/pubs.html?from=https://research.microsoft.com/users/lamport/pubs/pubs.html&type=path#hyper2 http://lamport.azurewebsites.net/pubs/pubs.html?from=https:/...