Given some condition, I want to check that a variables next state holds for some proposition. I have not been able to create something that rodin has accepted.
My exact case is the following invariant. I want to make sure that the variable door
never changes when the lock is on. The variable door
is either Open
or Closed
inv4: PrimaryLock = On ⇒ door :∣ door' = door
If the PrimaryLock
is On
this means that the door state will not change, no matter what event is triggered next.
Is this possible using Event-b or do I need to solve my issue by adding additional variables?