Witnesses for Fixpoint Games on Lattices
Abstract
We construct witnesses that can be used to derive strategies in fixpoint games and provide proof that the least fixpoint of a function is either above or not below some given bound. We rely on a lattice-theoretical approach, including a Galois connection that connects a lattice representing the “logic universe”, where the witness lives, with another lattice representing the “behaviour universe”, over which the function is defined. In fact we consider two types of games – primal and dual games – and in both cases show how to derive winning strategies in the game from witnesses and construct witnesses from strategies. The two games differ wrt. their rules and the choice of basis of the lattice.
The theory can be instantiated to well-known examples: in particular we compare with the construction of distinguishing formulas in standard bisimilarity and behavioural metrics for probabilistic systems. As a new case study we consider witnesses for certifying lower bounds for the termination probability for Markov chains.
Keywords and phrases:
fixpoint games, lattice theory, witnesses, bisimilarity, Galois connections, Hennessy-Milner theorem, distinguishing formulas, behavioural metricsCategory:
Track B: Automata, Logic, Semantics, and Theory of ProgrammingCopyright and License:
2012 ACM Subject Classification:
Theory of computation Concurrency ; Theory of computation Logic and verificationFunding:
The authors were supported by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – project number 434050016 (SpeQt).Editors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
In concurrency theory, there are many concepts that arise as least or greatest fixpoints of functions, for instance termination probability in Markov chains [1, 21], values for Markov decision processes [5] and simple stochastic games [11], bisimilarity [31, 35] or behavioural metrics [14, 9, 13, 16, 39, 2]. Limiting the discussion to least fixpoints (which can always be done without loss of generality via dualization), such a fixpoint characterization can also provide upper bounds via pre-fixpoints. However here we are instead interested in lower bounds, respectively in showing that upper bounds do not hold. In the case of bisimilarity, the first task is equivalent to certifying that two states are bisimilar, while the second means certifying that they are not. The latter notion is also known as apartness and has recently garnered increased attention [19, 37].
One way to witness non-bisimilarity is via so-called distinguishing formulas [10]. The Hennessy-Milner theorem [22] guarantees that in a finitely-branching transition system two states are bisimilar if and only if they satisfy the same formulas of the Hennessy-Milner logic, a form of modal logic [35]. Hence, if two states are non-bisimilar, there must be a formula distinguishing them. A similar notion of distinguishing formulas has been studied in the quantitative setting of behavioural metrics [29], where such a formula certifies that the distance of two states is above some bound (or a sequence of formulas is constructed that certifies the distance in the limit). Distinguishing formulas can in particular be used for purposes of explainability, e.g. explaining why two states are non-bisimilar as opposed to just stating this fact. Although their existence follows directly from the Hennessy-Milner theorem, their construction in general does not and has to be described separately.
Our aim is to lift the notion of distinguishing formulas – here called witnesses for greater generality – to a lattice-theoretic setting, where we assume a Galois connection connecting the “logic universe” with the “behaviour universe”. (In the case of bisimilarity logical formulas live in the logic universe, while bisimulation relations live in the behaviour universe.)
Apart from (least) fixpoints and logics, there is a third equivalent characterization that relies on games, that also provides us with the concept of (winning) strategies. In particular, we consider fixpoint games over continuous lattices [3] and we will show how to translate witnesses into game strategies and vice versa. In fact, there are two games for least fixpoints, a primal game and a dual game, where the dual game is derived by taking the game for the greatest fixpoint and dualizing the order. In both games the existential player makes the first move, followed by the universal player . In the primal game the witness provides the strategy for the existential player, while in the dual game we obtain the strategy of the universal player, hence both cases have to be treated separately. Both versions also have different requirements: in the primal case we assume continuity of the behaviour function and the lattice under consideration must have a basis consisting of irreducibles. In the dual case the function has to be co-proper.
Our results and constructions assume a continuous (resp. co-continuous) lattice and use the so-called way-below and way-above relations as well as notions from Scott topology [20]. In particular we focus on constructing finitary formulas corresponding to finitary strategies. As applications we will consider bisimilarity as well as behavioural metrics for probabilistic systems. As a new case study we will show how to provide witnesses for certifying lower bounds for the termination probability for Markov chains.
The theory provides a framework and guideline for witnesses and distinguishing formulas, in particular we provide generic algorithms for deriving strategies from witnesses and witness construction. We believe that viewing this construction in a more general framework is valuable, in particular since its usefulness seems to extend beyond behavioural equivalences and metrics.
Setup.
Assume a monotone function (also called behaviour function) on a complete lattice and we are interested in its least fixpoint . Then – due to the Knaster-Tarski theorem [36] – in order to show that a given lattice element is above (), it is sufficient to find that satisfies (where the first inequality states that is a pre-fixpoint), from which we can immediately deduce .
Our interest however lies in certifying the negated statement via a witness, that is (or alternatively where is the way-below order). For the application examples this means to show that two states are not bisimilar or that the behavioural distance of two states is strictly larger than some bound. In this case it helps to consider a fixpoint game [3] where the aim of one player (, defender) is to prove that the inequality holds, while it is the aim of the opponent (, attacker) to show that it does not.
In particular, we want to represent the strategy of the attacker. One way to do this is to look for a witness (also known as distinguishing formula [10, 29]), from which such a strategy can be derived. In lattice-theoretic terms, such witnesses live in another lattice – denoted by – that is related to via a Galois connection , . We assume the existence of a logic function such that the left adjoint of the Galois connection maps its least fixpoint to the least fixpoint of the behaviour function (). Now the aim is to look for that induces a strategy for the fixpoint game for on .
In fact, it turns out that there are two games one can consider on , a primal game and a dual game. Depending on which game is chosen, this influences the notion of witnesses and the translation between witnesses and strategies.
A full version of the paper, which includes all proofs and some additional information can be found at [26].
2 Preliminaries
We recall some basic definitions about lattices, Galois connections, the Hennessy-Milner framework based on Galois connections as introduced in [7], as well as Scott topology [20].
Partial Orders and Lattices.
A complete lattice consists of a set and a partial order defined on such that every subset has a least upper bound and a greatest lower bound . The bottom and top elements of are denoted by , respectively
By Knaster-Tarski [36] every monotone function has a least fixpoint and a greatest fixpoint . The least fixpoint can be obtained by Kleene iteration over the ordinals, i.e., , dually for the greatest fixpoint .
We recall some notions on (co-)continuous lattices from [20].
Let be a lattice. A subset is directed if and every finite subset of has an upper bound in . For we say that is way-below () iff for all directed subsets , the relation implies the existence of with . The lattice is called continuous if for all , . (Note that on a continuous lattice, whenever and for a directed set , there even exists such that [20].)
We also use the dual notions and call a set filtered if and every finite subset of has a lower bound in ; and say that is way-above () iff for all filtered subsets , the relation implies the existence of such that .111Note that in this terminology, “way-above” is not simply the inverse of “way below”. The lattice is called co-continuous if for all , .
For , we write , , and . The set of ordinals will be denoted by .
Example 1.
Let be a set. For the powerset lattice , a set is way-below () if and finite. Since every set arises as the union of finite sets, powerset lattices are continuous. The sets are in the way-above relation () iff and is co-finite (complement wrt. the superset of a finite set). Powerset lattices are co-continuous, since every set is the intersection of co-finite sets.
For the lattice it holds that two elements are in the way-below relation () if both are or . Every real number is the supremum of strictly smaller numbers, hence is a continuous lattice as well. It holds that iff both are or .222Note that can only hold if due to the requirement that every filtered set is non-empty. The lattice is co-continuous, since every number is the infimum of numbers that are strictly larger.
We need the notion of basis, i.e., a subset of the lattice that allows generating each element (either via join or meet). A join basis of a lattice is a subset such that for each element , . A meet basis of is a subset such that for each element , .
When is a continuous lattice and is a join basis of , then it holds – for all – that . The dual holds for a meet basis and the way-above relation.
Example 2.
For a powerset lattice , one choice of join basis is to consider all singletons. A possible meet basis is the set of all co-singletons, i.e., all sets of the form for .
For the lattice a possible join basis consists of .
We also need the following notion of irreducibility. We call an element of a lattice way-below irreducible (or simply irreducible) if whenever for finite, then for some (where is not necessarily directed).
Note that since , can not be an irreducible.
Example 3.
For the powerset lattice , singletons are way-below irreducible. For the lattice , all elements – apart from – are way-below irreducible.
Galois Connections and Adjoint Logic.
We summarize the Galois connection approach from [7] that can be used to give an abstract account of the Hennessy-Milner theorem. Intuitively, the Galois connection relates a “logical universe” and a “behavioural universe”.
Let , be two lattices. A Galois connection from to is a pair of monotone functions , such that for all : and for all : . It is well-known that a left adjoint preserves all suprema while a right adjoint preserves all infima.
We also fix two monotone functions and and by Knaster-Tarski [36] they both have least fixpoints (denoted by , ).
From [7] it follows that preserves least
fixpoints of , () whenever
. This condition
also implies that preserves all stages of the
Kleene iteration over the ordinals, i.e.,
for all .
Example 4 (Bisimilarity & Hennessy-Milner Logic).
As a running example we consider standard bisimilarity [31]. Here we follow [7] (using arbitrary relations instead of only equivalence relations) and work – for simplicity – with unlabelled transition systems, i.e., pairs consisting of a state space and a transition relation . We write and assume finite branching, i.e., is finite for all .
We define lattices , , where is the set of all relations . The Galois connection is:
Intuitively, generates an equivalence on from a set of subsets of and maps a relation to all subsets of that are closed under this relation.
As logic function we consider with , where for a function and , closes under finite intersections and complement and .
In the rest of the paper, we assume that and are both complete lattices, with monotone endofunctions respectively , and a Galois connection as above, such that . Intuitively, this means that the functions and satisfy the natural requirement of being “in step” with each other.
Scott Topology.
We need some concepts from Scott topology, in particular open sets, as well as continuous and proper maps (cf. [20]).
A subset of a complete lattice is called (Scott) open iff , and implies for all directed sets . The collection of all Scott open subsets of is called the Scott topology of and denoted by . A set is called compact if whenever can be covered by open sets (, open), there exists a finite subcover ( where and finite).
In a continuous lattice the sets of the form () provide a basis for the Scott open sets [20]. That is, each Scott open set is the union of such sets.
Furthermore each set of the form (for ) and their finite unions can easily be seen to be compact.
Example 5.
In a powerset lattice , the open sets are the families of finite character, i.e., such that iff for some finite subset of [20].
A function between lattices is called (Scott-)continuous if and only if it is continuous with respect to the Scott topologies (i.e. for all ). Equivalently, is continuous if it preserves suprema of directed sets (i.e. for all directed subsets of ). Note that a continuous function reaches its smallest fixpoint in steps.
A map is proper if the inverse image of a compact set is also compact. It is called proper wrt. if the inverse image of each (for ) is compact.
All these notions have duals that can be obtained by flipping the order and will be denoted by co-open, co-compact, co-continuous and co-proper.
Example 6 (Continuity and Properness).
Consider the bisimilarity map introduced earlier (cf. Example 4). Since the transition system is assumed to be finitely branching, this map is co-continuous wrt. (see also [31]). It is also proper wrt. and a basis consisting of singletons . Wrt. the map is hence continuous and co-proper wrt. a basis of co-singletons.
3 Witnesses
We will now introduce witnesses, analogous to distinguishing formulas in Hennessy-Milner logic that witness the non-bisimilarity or distance between two states (see [35]). A witness guarantees a lower bound for the least fixpoint respectively shows that a given element is not an upper bound.
We will later explain how witnesses can be constructed and how they are related to the winning strategies of the attacker in a game. We distinguish between primal and dual witnesses depending on the type of game for which they are used. In order to clarify the notation, we decorate lattice elements with a dot in the dual case.
Definition 7 (witness).
Let , be two lattices with a Galois connection and monotone functions , . Let .
A primal witness for is an element such that and .
A dual witness for is an element such that and .
Intuitively a witness is a formula of the logic that is strong enough to show that either is a lower bound or is not an upper bound for the least fixpoint of .
Proposition 8.
Assume the setting of Definition 7. Let be continuous with join basis .
Assume that has a join basis consisting only of way-below irreducibles. Given , there exists a primal witness for iff .
Given , there exists a dual witness for iff .
Note that for primal witnesses we have to assume a basis of way-below irreducibles, which is a restriction. Because of the above proposition, we can focus our attention on the chosen (join or meet) basis and will typically assume that the witness is a basis element. The same holds for .
Existence of witnesses is rather easy to prove, however the construction of such witnesses by a recursive process is more challenging and will be treated in the next sections.
Example 9 (Bases & Witnesses).
We continue our running example and instantiate these concepts to the case of unlabelled transition systems and bisimilarity.
For a join basis of we consider singleton sets where .
For (ordered by ) we consider a join basis consisting of all singletons (which are also irreducibles). As a meet basis we use all co-singletons for .
If we reverse the order to , the join basis becomes a meet basis and vice versa and all join basis elements are irreducible. We will now continue working wrt. the inverse inclusion.
It holds that . A primal witness is then a predicate (with ) that is obtained by evaluating a logical formula, for which . And that is exactly the notion of a distinguishing formula.
In the dual case . As in the primal case a witness is a predicate obtained from a logical formula that distinguishes .
We will now define the notion of (co-)degree, which is a ordinal that gives the least number of iterations needed to cover (or reach) a certain element.
Definition 10.
Let . The degree and co-degree of an element (wrt. ) are defined as follows (where we assume that is undefined):
Note that the degree (co-degree) of an element is defined whenever (). It holds that , otherwise the (co-)degree is always a successor ordinal. We will often omit the subscript and simply write or if the function ( or ) is clear from the context.
4 Games
In this section we will assume a monotone function on a complete lattice and study fixpoint games [3] that characterize the least fixpoint of such functions. Our aim is in particular to single out cases where finite strategies are sufficient and eventually connect game strategies with witnesses. In the following we spell out the games for a function , but we will also play the primal way below game for the “other” function .
We first introduce the game as it is presented in [3], in the following also called the primal game. Let be a continuous lattice with a join basis such that . Let be monotone. The game starts with and players and play according to the following rules:
| Position | Player | Moves |
|---|---|---|
| , such that | ||
| such that |
If a player cannot move, the opponent wins. Infinite games are won by .
It holds that iff the player has a winning strategy from [3]. The intuitive reason for requiring the way-below order for the answer of is that – whenever – can ensure that the game positions descend the chain of ordinals and eventually runs out of answering moves.
Furthermore iff has a strategy in the same game with the only modification that wins infinite games.
4.1 Primal Way-Below Game
There is also a “way-below” version of the primal game where the aim of is to show a strict lower bound, i.e. prove that . To our knowledge this version of the game is original.
Definition 11.
Let be a continuous lattice with a join basis such that . Let be monotone. We define a game between players and that play according to the following rules starting with :
| Position | Player | Moves |
|---|---|---|
| , such that | ||
| such that |
If a player cannot move, the opponent wins. Infinite games are won by .
In the context of the primal way-below game, we will also call the player the attacker and the player the defender.
Note that since in parity games memoryless winning strategies are always enough [8], it suffices to consider positional winning strategies. We can also show that under some circumstances formulas are “finitely constructed”, i.e., strategies are finitary.
Proposition 12.
Let . Player has a winning strategy in the game in Definition 11 iff .
Whenever is a continuous function, then has a finitary winning strategy. Finitary means that where is a finite subset of and for each . In particular can win in steps.
Since it is guaranteed that the degrees decrease the game will terminate eventually and wins. Such a finitary winning strategy for (the attacker) is denoted by and assigns a suitable move to . Then plays . is undefined if there is no winning strategy from .
Example 13 (Strategy for the Primal Game).
We spell out the primal game for our running example. The join basis for are the co-singletons (cf. Example 9). Now, when the initial situation is , the game proceeds as follows:
-
(attacker) plays such that (i.e., ).
More concretely plays satisfying: there exists with such that for all with it holds that or vice versa.
-
(defender) chooses (i.e., ) and wins infinite games.
If , a possible winning strategy of (attacker) is to play
if is a winning move in the traditional game (or vice versa). By deriving the strategy from the fixpoint iteration it is always possible to choose such that for all , has a smaller degree than . Then must pick , which is equivalent to making an answering move in the traditional game. Hence we obtain a game that is close to the game in [35] where a defender mimics the moves made by the attacker.
In Section 3 we considered (primal) witnesses as monolithic objects. But in fact, in order to use witnesses to derive strategies, we have to be able to deconstruct them into subformulas. This is exactly what this game does for the logic function (as defined in Example 4). Given with (a basis element, representing to a formula of the logic), is obliged to play a finite with . That is, exhibits the subformulas, from which can be constructed by applying . Then can pick (in the case of powerset lattices and a basis of singletons this amounts to choosing ) and continue the game from there, asking to spell out why is also a logical formula.
If the lattice is not continuous, the game can fail, in particular may be able to win although . It could however be the case that is co-continuous and then we can use the game presented next.
4.2 Dual Game
We adjust the game in [3] for greatest fixpoints to the dual setting by flipping the order and obtain another game characterizing the least fixpoint. This gives us an alternative perspective on games and witness generation.
Definition 14.
We consider the co-continuous lattice with a meet basis such that and a monotone function . The dual game on follows the following rules.
| Position | Player | Moves |
|---|---|---|
| , such that | ||
| such that |
If a player cannot move, the opponent wins. Infinite games are won by .
Here takes the role of the defender, and the role of the attacker. It holds that iff has a winning strategy when starting from .
We show that has a finitary winning strategy that is in some sense independent on the move of . For this we require that is co-proper wrt. to the basis.
Proposition 15.
Assume that is co-continuous and that is co-proper wrt. .
Fix with . Then there exists a finite set such that – for every move of – can always choose some to win the game. In particular and for all . We denote by . Note that can win in steps.
Example 16 (Strategy for the Dual Game).
We consider again our running example, i.e., the case of bisimilarity. We take the function from Example 4 and the lattice . The dual game on corresponds to a coupling game [4]. Given a basis element , produces a “coupling” such that , which means every successor of must be paired with some successor of and vice versa. Then picks one such pair in , claims that it is not bisimilar and the game continues. Note whenever can always precompute a finitary winning strategy whenever we choose as in Example 13 as some state that has no bisimilar partner in (or vice versa).
5 Transforming Witnesses and Winning Strategies
5.1 Auxiliary Functions
Before we start to transform witnesses into winning strategies for the attacker and vice versa, we first define some auxiliary functions.
We can show the existence of the following three functions specified in the table below. For the first two lines we assume a monotone function and a finite set . We will in particular instantiate to and . We write , instead of , . For note that .
function parameters output , , s.t. , , , s.t. , , s.t. and
We assume that is continuous lattice with join basis , additionally in the first line the join basis contains only irreducibles, in the second line is a meet basis and in the third line must additionally be co-continuous.
The first two functions have the task of picking a suitable witness from from a set of joint witnesses. The last auxiliary functions chooses a basis element of that explains why a given inequality does not hold.
5.2 Primal Case: Transforming Strategies along the Galois Connection
We now spell out how to use primal witnesses to obtain winning strategies for in the primal way-below game (on ), see Section 4.1. We furthermore show how such winning strategies can be used to construct primal witnesses. In this subsection we assume that , are both continuous lattices with join bases , . Furthermore must contain only way-below irreducibles.
Proposition 17.
Let be a continuous function, which implies that there is a finitary winning strategy for in the primal way-below game on (cf. Proposition 12).
Given and a primal witness for (), we choose the move of in the primal way-below game on as
Let be an answering move of . Then is a primal witness for and . We continue from and and obtain a winning strategy for in the primal way-below game on (cf. Definition 11) for all that have witnesses.
Now we treat witness construction and assume that there exists a finitary winning strategy for in the primal way-below game on (cf. Definition 11) which assigns to each a set . From such a strategy we construct a witness for a given .
From the construction one can also extract a finitary winning strategy for the witness in the game on .
Theorem 18.
Assume that is continuous, which implies the existence of a finitary winning strategy for in the primal way-below game on (cf. Proposition 12).
Given with , we can compute the witness of inductively as follows:
Then and this is a well-defined inductive definition with base case .
Example 19 (Witness Construction – Primal).
We study the construction of witnesses, also known as distinguishing formulas, in the running example. We are again working on (ordered by ) with a join basis consisting of co-singletons (Example 9, primal case).
Assume that for and let . We can choose some finitary strategy for the primal way-below game on (see e.g. Example 13). Let , i.e., we compute witnesses recursively. We then obtain , where the auxiliary function is defined as follows:
-
If (which holds if , hence and can play ), then define (where is the empty conjunction).
-
Otherwise we know by construction that
Since suffices to distinguish (after applying ), it must be the case that there exists that is not related via to any state in (or vice versa). Hence for and each such there exists a predicate that separates them and we can define
which contains (which has a successor satisfying all predicates) but not (where for each successor there exists a predicate not containing ).
5.3 Primal/Dual Case: Transforming Strategies along the Galois Connection
We now explain how to transform dual witnesses into winning strategies for in the dual game on . In this subsection we assume that is a continuous lattice with join basis and is a co-continuous lattice with meet basis .
Proposition 20.
Assume that is continuous, which implies the existence of a finitary winning strategy for in the primal way-below game on (cf. Proposition 12).
Let and let be a dual witness for (). We let . Given a move by , the player plays
which has a dual witness with . We continue from and and obtain a winning strategy for in the dual game on (see Definition 14).
We will now explain how to construct a witness from a winning strategy for in the dual game on , using the strategy from Proposition 15. From the construction one can also extract a winning strategy for the witness in the game on .
Theorem 21.
Assume that is co-proper wrt. , which implies the existence of a finitary winnning strategy for in the dual game on . (cf. Proposition 15).
Given with , we can compute the witness of inductively as:
Then and this is a well-defined inductive definition with base case .
Example 22 (Witness Construction – Dual).
In the running example, we choose a meet basis (for the order ) for with singletons as in Example 9.
Now fix with and we choose some finitary strategy for the dual game on (see e.g. Example 16). By construction , where and is defined as follows:
-
If (which holds if ), we again set .
-
Otherwise
As in the primal case we determine a state that is not related (via ) to any state in (or vice versa) and define:
6 Case Studies
6.1 Behavioural Metrics
We now consider the case of behavioural metrics, where we measure the distance of two states. Here we focus on probabilistic transition systems. The construction of distinguishing formulas in this setting was presented previously in [29], here we show how a similar construction arises as a special case of our theory. Note that the instantiation of probabilistic transition systems to the Galois connection approach is new, it was not studied in [7].
We consider labelled Markov chains consisting of a finite state space , a probabilistic transition function (where is the set of probability distributions over ) and a labelling function .
Lattices, Functions and Galois Connection.
Behaviour: On the behaviour side we fix the lattice (where denotes the set of distance functions over , i.e., functions of the form ). The way-below and way-above relations , are the pointwise -orders (in addition , ), see Example 1. The behaviour function is characterized as: given it holds that
where is the (price-function based) Kantorovich lifting [40, 2] that transform a distance on into a distance on . In terms of the Galois connection this is defined as . Here where determines the expectation of random variable under probability distribution . The function is obviously monotone (see also [29]).
Hence denotes the behavioural distance of , based on the Kantorovich lifting.
Logic: The lattice on the logic side is (sets of random variables). The way-below relation for powerset lattices is defined in Example 1. The logic function is based on the operators of [29]. We define with
where is defined as if and otherwise. Furthermore is the closure of the set under the operators , (, is the modified subtraction) and for functions .
Galois Connection: The Galois connection is given as follows:
Given , a non-expansive function wrt. must satisfy .
Primal Case.
We now construct witnesses in the primal case. We first observe that is indeed continuous.
Basis: As join basis of (consisting of way-below irreducibles) we consider singleton sets where , while the join basis of contains all distance functions (for , ) that are defined as
Strategy computation (cf. Prop. 12): Let be a basis element that is way-below (i.e., ), for which we determine the strategy of . Let and define as the -th iterate in the Kleene iteration.
Whenever we have and can play .
Otherwise we rely on the coupling characterization of the Kantorovich lifting [40]. Given two probability distributions , a coupling of is a probability distribution with as marginals, i.e., for all : and for all : . We denote the set of couplings of as . Then – for a pseudometric – we can spell out the Kantorovich lifting as
The set of all couplings form a polytope and – as is well-known in linear programming – the infimum above is a minimum and is achieved in one of the (finitely many) vertices of the coupling polytope. We denote the set of vertices by and can replace in the equation above by and by .
Let be the states reachable from with non-zero probability. For each pair determine constants – which may equal – that satisfy the following inequalities for some coupling of the successor sets:
We also have to include inequalities characterizing pseudometrics (reflexivity, symmetry, triangle inequality) so that we obtain a pseudometric, ensuring that the coupling-based definition coincides with the Kantorovich lifting and we obtain a valid strategy.
Then collect all basis elements (for ) as the finitary strategy .
This is reminiscent of the game introduced in [41] where couplings are used as policies explaining the distance.
Auxiliary functions (cf. Sct. 5.1): Let and . We define:
-
, where such that .
Combined this gives us a construction similar to [29]. There the price function is chosen directly while we first determine a strategy. In [29] it has been observed that one can not always construct a formula that witnesses the exact distance between . This problem is avoided here, since we are interested in certifying strict lower bounds.
Dual Case.
Basis: In the dual case we choose a meet basis for that contains all distance functions (for , ) that are defined as
It can be shown that is co-proper wrt. the basis.
Strategy computation (cf. Prop. 12): The computation of the strategy in the dual case works analogously to the primal case. This is due to the fact that iff and the orders , coincide (on elements different from ). Furthermore the requirement that for all moves of with there exists a basis element of the chosen finitary strategy such that can also be ensured via the inequality involving couplings as above.
Auxiliary functions (cf. Sct. 5.1): The auxiliary functions , can also be defined analogously to the primal case. In addition:
-
: with , i.e., there exists with . In this case choose such that and return .
6.2 Termination Probabilities in Markov Chains
In this section, we consider unlabelled Markov chains [21, 1] and witness termination probabilities of states. We fix a Markov chain which has a finite state space , a subset of terminal states (which do not have outgoing transitions) and a probabilistic transition function , where is a set of discrete probability distributions. The termination probability of a state is the probability that a run starting from will eventually terminate in a state in .
Lattices, Functions and Galois Connections
Behaviour: On the behaviour side we use the lattice , with function defined as:
This function is clearly monotone and its least fixpoint assigns to each state its termination probability.
Logic: Witnesses are trees, where a tree is either a terminal node , or, of the form for and where the are trees. Every tree has a root, defined by , for , and . We require that in a tree the children all have different roots. The set of all trees will be denoted as . For a set of trees , we write . The degree of a tree corresponds to its height, where the height of is .
We consider a map , where under-estimates the termination probability from , based on the paths in .
On the logic side we use the lattice (with inclusion order) with functions :
the least fixpoint of which is the set of all trees. Since the trees are finitely branching, it can easily be seen that is continuous, the same holds for .
Galois Connection: The Galois connection is given as follows:
Here, maps a set of trees to a function that provides a lower bound for the termination probability of a node , based on the trees in . On the other hand, maps a function to all trees which induce a lower value for the respective assignment.
We now construct witnesses that certify termination probabilities for the primal and for the dual case.
Primal case
Basis: for the join basis of we take the singletons , where is a tree. For the join basis of we take all functions (for , ) where
Strategy computation (cf. Prop. 12): let . If , plays the empty set. Otherwise we have to solve the following inequalities (where ) in order to obtain values for the successors of :
Then collect all such where as finitary strategy .
Auxiliary functions (cf. Sct. 5.1): Let and . We define:
-
where is a tree such that .
-
: if it must hold that , hence choose . Otherwise choose such that each tree witnesses a maximal termination probability for one of the successors of and all trees have different roots. Then return .
For a concrete example of the computation of the strategy and how to obtain the witness from this strategy, we refer to Example 23 in the appendix.
Dual Case
Basis: For the dual case, a meet basis of is given by the co-singletons , and for , we define the basis elements to be all functions (, ) where
Strategy computation (cf. Prop. 12): is determined analogous to the primal case.
Auxiliary functions (cf. Sct. 5.1): The auxiliary functions , can also be defined analogously to the dual case. In addition:
-
: with , i.e., there exists with . In this case choose such that and return .
7 Conclusion
We have shown how to generate witnesses, generalizing the construction of distinguishing formulas [10, 29] for explaining non-bisimilarity or certifying lower bounds. We concentrated in particular on guarantees for obtaining finitary strategies, which can then be transformed into witnesses. To summarize the results, on the logic side we have both witnesses and strategies proving that a witness is generated by the logic function. Proposition 17 explains how to transform witnesses into a winning strategy of the primal way-below game, while Theorem 18 states the other direction. Analogously for strategies of the dual game, where the connection arises from Proposition 20 and Theorem 21. Existence of finitary strategies in the various games is guaranteed by Propositions 12 and 15.
In order to obtain formal computability results, it would in addition be necessary to make assumptions on the decidability of the order relation, computability of joins and auxiliary functions, etc. [33].
Instantiating this framework to the case of bisimilarity yields a game reminiscent of the bisimulation game in [35] and a witness construction similar to [10]. We also rediscover a known construction for behavioural metrics and study a new example in the context of Markov chains.
Another general framework for bisimilarity and behavioural metrics is coalgebra [30] in which sound and complete logics have been studied [32, 28], giving rise to a Hennessy-Milner theorem. While there is work on the construction of distinguishing formulas in a qualitative coalgebraic setting [25], there is – to the best of our knowledge – no general construction in the quantitative coalgebraic case. Furthermore our framework offers the flexibility of arbitrary lattices.
The current work could be extended in several directions, such as exploring characteristic formulas (a characteristic formula of a given state characterizes all states that are in a preorder relation to the original state [34]) instead of distinguishing formulas or studying the use of the dual game on the logic side.
We also plan to investigate further examples, where witnesses generated from the strategies of the primal and dual game might be completely different. Potential application areas are dataflow analysis and abstract interpretation where least and greatest fixpoints play a major role [12, 27].
Furthermore we are interested in the connection to the codensity game [23]. This game uses predicates in the “behaviour game” and might give rise to games that are simultaneously played on both lattices. In general we believe that the lattice-based approach can be used to classify and categorize various types of behavioural games that have been presented in the literature, such as [35, 41, 17, 15] for concrete types of transition systems and [24, 6, 18, 23] in the coalgebraic setting.
References
- [1] Christel Baier and Joost-Pieter Katoen. Principles of Model Checking. MIT Press, 2008.
- [2] Paolo Baldan, Filippo Bonchi, Henning Kerstan, and Barbara König. Coalgebraic behavioral metrics. Logical Methods in Computer Science, 14(3), 2018. Selected Papers of the 6th Conference on Algebra and Coalgebra in Computer Science (CALCO 2015). doi:10.23638/LMCS-14(3:20)2018.
- [3] Paolo Baldan, Barbara König, Christina Mika-Michalski, and Tommaso Padoan. Fixpoint games on continuous lattices. Proc. ACM Program. Lang., 3(POPL):26:1–26:29, 2019. doi:10.1145/3290339.
- [4] A. Baltag. Truth-as-simulation: Towards a coalgebraic perspective on logic and games. Technical Report SEN-R9923, Centrum voor Wiskunde en Informatica (CWI), November 1999.
- [5] Richard Bellman. A Markovian decision process. Journal of Mathematics and Mechanics, 6(5):679–684, 1957.
- [6] Harsh Beohar, Chase Ford, Barbara König, Stefan Milius, and Lutz Schröder. Graded monads and behavioural equivalence games. In Proc. of LICS ’22. IEEE, 2022.
- [7] Harsh Beohar, Sebastian Gurke, Barbara König, and Karla Messing. Hennessy-Milner Theorems via Galois Connections. In 31st EACSL Annual Conference on Computer Science Logic, CSL 2023, February 13-16, 2023, Warsaw, Poland, volume 252 of LIPIcs, pages 12:1–12:18. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/LIPIcs.CSL.2023.12.
- [8] Julian Bradfield and Igor Walukiewicz. The mu-calculus and model checking. In Edmund M. Clarke, Thomas A. Henzinger, Helmut Veith, and Roderick Bloem, editors, Handbook of Model Checking, pages 871–919. Springer, 2018. doi:10.1007/978-3-319-10575-8_26.
- [9] Valentina Castiglioni, Daniel Gebler, and Simone Tini. Logical characterization of bisimulation metrics. In Proc. of QAPL ’16, 2016. EPTCS 227.
- [10] Rance Cleaveland. On automatically explaining bisimulation inequivalence. In Proc. of CAV ’90, pages 364–372. Springer, 1990. LNCS 531. doi:10.1007/BFB0023750.
- [11] Anne Condon. The complexity of stochastic games. Information and Computation, 96(2):203–224, 1992. doi:10.1016/0890-5401(92)90048-K.
- [12] Patrick Cousot and Radhia Cousot. Abstract interpretation: A unified lattice model for static analysis of programs by construction or approximation of fixpoints. In Proc. of POPL ’77 (Los Angeles, California), pages 238–252. ACM, 1977. doi:10.1145/512950.512973.
- [13] Luca de Alfaro, Marco Faella, and Mariëlle Stoelinga. Linear and branching system metrics. IEEE Transactions on Software Engineering, 35(2):258–273, 2009. doi:10.1109/TSE.2008.106.
- [14] Josée Desharnais, Vineet Gupta, Radha Jagadeesan, and Prakash Panangaden. Metrics for labelled Markov processes. Theoretical Computer Science, 318:323–354, 2004. doi:10.1016/J.TCS.2003.09.013.
- [15] Josée Desharnais, Fran cois Laviolette, and Mathieu Tracol. Approximate analysis of probabilistic processes: Logic, simulation and games. In Proc. of QEST ’08, pages 264–273. IEEE, 2008.
- [16] Uli Fahrenberg, Axel Legay, and Claus Thrane. The quantitative linear-time–branching-time spectrum. In Proc. of FSTTCS ’11, volume 13 of LIPIcs, pages 103–114. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2011. doi:10.4230/LIPIcs.FSTTCS.2011.103.
- [17] Nathanaël Fijalkow, Bartek Klin, and Prakash Panangaden. Expressiveness of Probabilistic Modal Logics, Revisited. In 44th International Colloquium on Automata, Languages, and Programming (ICALP 2017), volume 80 of Leibniz International Proceedings in Informatics (LIPIcs), pages 105:1–105:12. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2017. doi:10.4230/LIPIcs.ICALP.2017.105.
- [18] Jonas Forster, Lutz Schröder, and Paul Wild. Conformance games for graded semantics. In Proc. of LICS ’25, pages 555–567. IEEE, 2025. doi:10.1109/LICS65433.2025.00048.
- [19] Herman Geuvers and Bart Jacobs. Relating apartness and bisimulation. Logical Methods in Computer Science, 17(3):15:1–15:35, 2021. doi:10.46298/LMCS-17(3:15)2021.
- [20] G. Gierz, K.H. Hofmann, K. Keimel, J.D. Lawson, M. Mislove, and D.S. Scott. A Compendium of Continuous Lattices. Springer Berlin Heidelberg, 1980.
- [21] Charles Grinstead and Laurie Snell. Markov chains. In Introduction to Probability, chapter 11, pages 405–470. American Mathematical Society, second edition, 1997.
- [22] Matthew Hennessy and Robin Milner. Algebraic laws for nondeterminism and concurrency. Journal of the ACM, 32:137–161, 1985. doi:10.1145/2455.2460.
- [23] Yuichi Komorida, Shin-ya Katsumata, Nick Hu, Bartek Klin, and Ichiro Hasuo. Codensity games for bisimilarity. In Proc. of LICS ’19, pages 1–13. ACM, 2019. URL: https://dl.acm.org/doi/10.5555/3470152.3470184.
- [24] Barbara König and Christina Mika-Michalski. (Metric) bisimulation games and real-valued modal logics for coalgebras. In Proc. of CONCUR ’18, volume 118 of LIPIcs, pages 37:1–37:17. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018. doi:10.4230/LIPIcs.CONCUR.2018.37.
- [25] Barbara König, Christina Mika-Michalski, and Lutz Schröder. Explaining non-bisimilarity in a coalgebraic approach: Games and distinguishing formulas. In Proc. of CMCS ’20, pages 133–154. Springer, 2020. LNCS 12094. doi:10.1007/978-3-030-57201-3_8.
- [26] Barbara König and Karla Messing. Witnesses for fixpoint games on lattices, 2026. doi:10.48550/arXiv.2603.11908.
- [27] Flemming Nielson, Hanne Riis Nielson, and Chris Hankin. Principles of Program Analysis. Springer-Verlag, 1999.
- [28] Dirk Pattinson. Coalgebraic modal logic: soundness, completeness and decidability of local consequence. Theoretical Computer Science, 309(1):177–193, 2003. doi:10.1016/S0304-3975(03)00201-9.
- [29] Amgad Rady and Franck van Breugel. Explainability of probabilistic bisimilarity distances for labelled markov chains. In Orna Kupferman and Pawel Sobocinski, editors, Proc. of FoSSaCS ’23, pages 285–307. Springer, 2023. LNCS 13992. doi:10.1007/978-3-031-30829-1_14.
- [30] J.J.M.M. Rutten. Universal coalgebra: a theory of systems. Theoretical Computer Science, 249:3–80, 2000. doi:10.1016/S0304-3975(00)00056-6.
- [31] Davide Sangiorgi. Introduction to Bisimulation and Coinduction. Cambridge University Press, 2011.
- [32] Lutz Schröder. Expressivity of coalgebraic modal logic: The limits and beyond. Theoretical Computer Science, 390:230–247, 2008. doi:10.1016/J.TCS.2007.09.023.
- [33] M.B. Smyth. Effectively given domains. Theoretical Computer Science, 5:257–274, 1977. doi:10.1016/0304-3975(77)90045-7.
- [34] Bernhard Steffen. Characteristic formulae. In Proc. of ICALP ’89, pages 723–732. Springer, 1989. LNCS. doi:10.1007/BFB0035794.
- [35] Colin Stirling. Bisimulation, modal logic and model checking games. Logic Journal of the IGPL, 7(1):103–124, 1999. doi:10.1093/JIGPAL/7.1.103.
- [36] Alfred Tarski. A lattice-theoretical fixpoint theorem and its applications. Pacific Journal of Mathematics, 5:285–309, 1955.
- [37] Ruben Turkenburg, Harsh Beohar, Clemens Kupke, and Jurriaan Rot. Proving behavioural apartness. In Barbara König and Henning Urbat, editors, Proc. of CMCS ’20, pages 156–173. Springer, 2024. LNCS 14617. doi:10.1007/978-3-031-66438-0_8.
- [38] Ruben Turkenburg, Harsh Beohar, Franck van Breugel, Clemens Kupke, and Jurriaan Rot. Constructing witnesses for lower bounds on behavioural distances. In Proc. of CSL ’26, volume 363 of LIPIcs, pages 25:1–25:22. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026. doi:10.4230/LIPIcs.CSL.2026.25.
- [39] Franck van Breugel and James Worrell. A behavioural pseudometric for probabilistic transition systems. Theoretical Computer Science, 331:115–142, 2005. doi:10.1016/J.TCS.2004.09.035.
- [40] Cédric Villani. Optimal Transport – Old and New, volume 338 of A Series of Comprehensive Studies in Mathematics. Springer, 2009.
- [41] Emily Vlasman, Anto Nanah Ji, James Worrell, and Franck van Breugel. Explainability is a game for probabilistic bisimilarity distances. In Proc. of CONCUR ’25, volume 348 of LIPIcs, pages 36:1–36:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.CONCUR.2025.36.
Appendix A Example: Termination Probability for Markov Chains
Example 23.
Consider the Markov chain below with states , where is a terminating state, and can transition to both and with probability . The smallest fixpoint of the behaviour function maps and to one, i.e. both states terminate almost surely. We want to witness that the probability for is strictly greater than .
We will denote a function by . Basis elements are tuples or , where .
Hence we start with the basis element and observe that , i.e. is the first index for which holds.
Strategy computation: The computation of the strategies involves solving the following inequalities, and thereby distributes the required probability of to the successors of :
Player can choose any , () that satisfy the first inequality. Setting or is not an option, as then the first inequality is not satisfied. Assume that chooses and . Hence the (finitary) strategy of is to play with . Note that and .
Now, the probability of needs to be distributed to the successors of . Here we assume that chooses values , resulting in the strategy . Finally, for it is sufficient to play the bottom element , i.e., the empty strategy.
Playing the game: Starting with , player plays as determined above. Now has to answer either with or . As detailed above, can win in the latter case with the empty strategy, in the former case plays , winning the game in the next step, since by assumption can not answer with .
Constructing the witness: Now we construct witnesses recursively from the strategy. More concretely, we obtain:
Thus, the termination probability of being greater than is witnessed by the tree , where the subtree witnesses the termination probability of , which is greater than , and the subtree witnesses the termination probability of of at least . In fact, the resulting tree even gives the value .
