Temporal Logic and Model Checking

Temporal logics distinguish properties of executions from properties of branching choices. A Büchi product turns violations of an LTL formula into accepting cycles.

Source
Anbloq
Language
English
Created
Updated
Chapters
3
Reading time
2 min
In this article3 chapters
  1. Properties of a path and of a tree
  2. Counterexamples as accepting cycles
  3. Alternating fixed points give parity conditions

Properties of a path and of a tree

A linear-time request–response requirement can be written as

\[ \mathrm G(\mathrm{request}\to\mathrm F\,\mathrm{grant}). \]

On one execution each request must eventually have a grant. A request followed by an infinite loop with no grant is a counterexample. In CTL*, explicit path quantifiers can also assert that from every reachable state there exists a path to a good state. A system with an exit from a loop may satisfy that condition even though an execution stays in the loop forever. The distinction matters in protocols whose scheduler is nondeterministic.

Read safety and liveness as different kinds of trace claims. A finite safety example can start with state-space exploration before adding acceptance conditions for infinite runs.

Counterexamples as accepting cycles

Translate the negation of the LTL formula into a Büchi automaton over state-label sequences. Take the synchronous product with the transition system. A violating execution now corresponds to an infinite run that visits accepting product states infinitely often. In a finite graph such a run exists exactly when an initial state can reach a strongly connected component containing an accepting state and a cycle through it. The search supplies a finite prefix and a repeating cycle. A singleton component needs a self-loop to supply the cycle. Fairness restrictions must also be included in the acceptance test if they constrain the desired executions.

Alternating fixed points give parity conditions

The modal μ-calculus expresses reachability with a least fixed point and indefinite persistence with a greatest one. Nesting them can require an alternation of priorities. A parity game implements model checking as a choice of successors on syntactic and system states, with the recurring priorities determining the winner. This connects semantic fixed points to abstract interpretation, protocol promises to distributed consensus, and state-space verification to hardware verification.[1][2]

References

  1. Christel Baier and Joost-Pieter Katoen, Principles of Model Checking ↩
  2. Dexter Kozen, Results on the Propositional μ-Calculus ↩