mirror of
https://github.com/hanzoai/bot-formal-models.git
synced 2026-10-30 18:46:45 +00:00
28 lines
859 B
Plaintext
28 lines
859 B
Plaintext
------------------------------ MODULE ElevatedGating_BadOr ------------------------------
|
|
EXTENDS Naturals
|
|
|
|
(******************************************************************************
|
|
* Negative test: WRONG elevated gating where either global OR agent gate suffices.
|
|
******************************************************************************)
|
|
|
|
CONSTANTS
|
|
GlobalElevatedEnabled,
|
|
AgentElevatedEnabled
|
|
|
|
ASSUME
|
|
/\ GlobalElevatedEnabled \in BOOLEAN
|
|
/\ AgentElevatedEnabled \in BOOLEAN
|
|
|
|
\* BUG: OR instead of AND
|
|
ElevatedAllowed == GlobalElevatedEnabled \/ AgentElevatedEnabled
|
|
|
|
Inv_ElevatedRequiresBoth ==
|
|
(~GlobalElevatedEnabled \/ ~AgentElevatedEnabled) => ~ElevatedAllowed
|
|
|
|
VARIABLE dummy
|
|
Init == dummy = 0
|
|
Next == dummy' = dummy
|
|
Spec == Init /\ [][Next]_<<dummy>>
|
|
|
|
=============================================================================
|