Created
December 16, 2020 10:13
-
-
Save sadraskol/e42a7e62550694fc90f46083e205b255 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-------------------------- MODULE FirstSpecification -------------------------- | |
EXTENDS Naturals | |
VARIABLE reservations | |
Coaches == { "A", "B" } | |
SeatNumbers == 1..10 | |
Seats == Coaches \X SeatNumbers | |
---- | |
Reserve == reservations' = reservations \union {{<<"A", 1>>}} | |
---- | |
Init == reservations = {} | |
Next == Reserve | |
============================================================================= |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment