Skip to content
Playground(another site)

bynk.transition.duplicate_name

Error An agent declares two transitions with the same name.

Transitions are named so that a violation can say which step rule was broken. Two with the same name in one agent would make that report ambiguous. Rename one, or merge the two predicates if they are one claim. The same rule for states is bynk.invariant.duplicate_name.

Example

transition grows: new.count >= old.count
transition grows: new.count < 100 // ✗ `grows` is already declared
transition capped: new.count < 100 // ✓ a distinct name

In the Book

See also