Skip to main content

Verifying Gamma Models

In Live​

Open Live, pick one of its Gamma examples in the toolbar or write your own model, and press Verify all.

On Your Machine​

semantifyr-gamma verify model.gamma

In VS Code, see Try in VS Code. To install either, see Install.

Writing a Verification Case​

A verification case names its component and holds its property: AG states that every reachable state satisfies a condition, and EF that some run reaches one.

verification case BarrierDownWhileTrainInCrossing of LevelCrossing {
AG ((not state trackA.Main.InCrossing and not state trackB.Main.InCrossing) or state barrier.Main.Down)
}

To read a model and its cases step by step, see Lesson: A Level Crossing.