Skip to main content

Lessons

The lessons teach the Semantifyr Language on one running example, a junction of two traffic lights, later with a crosswalk. You build the models yourself in Live, and each step of a lesson opens in Live from its page. Read them in order.

  1. Modeling and Verification: model the junction directly, write its requirements as verification cases, and find and fix a flaw that the obvious guard leaves.
  2. Semantic Libraries: write the lights as data on a library that says once how a statechart runs, and reuse it for a crosswalk.
  3. Semantic Variants: move into the library how the parts of a system step, change that rule as statechart languages differ on it, and see the same junction break its requirements.
  4. Extending the Library: give the library time, so that a light says as data that it stays green for at least three steps, and grow it further with nested states and events.