1 TLA+ Models with Proofs

We give a list of examples of PlusCal algorithms translated with the functionality and proven partially correct using the TLAPM tool. The algorithms are developed by refinement from a contract in the Rodin tool; the algorithm is derived from an Event-B model equipped with its invariant, which is used for verification with TLA+ and PllusCal. The archives can be found at this link.

1.1 Computing the sum of elements of a vector.

1.2 Incrementing a positive value

1.3 Maximum of two integer values