diff --git a/formal/checklist.vdmsl b/formal/checklist.vdmsl index 042519e..d90a505 100644 --- a/formal/checklist.vdmsl +++ b/formal/checklist.vdmsl @@ -5,6 +5,8 @@ definitions values types + String = seq of char; + -- Aircraft -- Switches @@ -24,21 +26,39 @@ types states : seq of int inv k == k.position <= len k.states; - Throttle = int - inv t == t >= -100 and t <= 100; + Lever = nat + inv t == t <= 100; + Throttle :: + thrust: Lever + reverser: Lever + inv t == + if t.thrust > 0 then + t.reverser = 0 + else + t.reverser >= 0; - String = seq of char; + --@doc The type that the action of the button is + ItemType = | |