Abstract 1 Introduction 2 Preliminaries 3 Witnesses 4 Games 5 Transforming Witnesses and Winning Strategies 6 Case Studies 7 Conclusion References Appendix A Example: Termination Probability for Markov Chains

Witnesses for Fixpoint Games on Lattices

Barbara König ORCID Universität Duisburg-Essen, Germany    Karla Messing ORCID Universität Duisburg-Essen, Germany
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 metrics
Category:
Track B: Automata, Logic, Semantics, and Theory of Programming
Copyright and License:
[Uncaptioned image] © Barbara König and Karla Messing; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation Concurrency
; Theory of computation Logic and verification
Related Version:
Full Version: https://arxiv.org/abs/2603.11908 [26]
Funding:
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 Puppis

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 b𝔹 is above μ𝖻𝖾𝗁 (μ𝖻𝖾𝗁b), it is sufficient to find p𝔹 that satisfies 𝖻𝖾𝗁(p)pb (where the first inequality states that p is a pre-fixpoint), from which we can immediately deduce μ𝖻𝖾𝗁b.

Our interest however lies in certifying the negated statement via a witness, that is μ𝖻𝖾𝗁b (or alternatively bμ𝖻𝖾𝗁 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 μ𝖻𝖾𝗁b 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 Y𝕃 has a least upper bound Y and a greatest lower bound Y. The bottom and top elements of 𝕃 are denoted by , respectively

By Knaster-Tarski [36] every monotone function f:𝕃𝕃 has a least fixpoint μf and a greatest fixpoint νf. The least fixpoint can be obtained by Kleene iteration over the ordinals, i.e., μf=i𝖮𝗋𝖽fi(), dually for the greatest fixpoint νf.

We recall some notions on (co-)continuous lattices from [20].

Let (𝕃,) be a lattice. A subset D𝕃 is directed if D and every finite subset of D has an upper bound in D. For ,𝕃 we say that is way-below () iff for all directed subsets D𝕃, the relation D implies the existence of dD with d. The lattice 𝕃 is called continuous if for all 𝕃, ={𝕃}. (Note that on a continuous lattice, whenever and D for a directed set D, there even exists dD such that d [20].)

We also use the dual notions and call a set F filtered if F and every finite subset of F has a lower bound in F; and say that is way-above () iff for all filtered subsets F𝕃, the relation F implies the existence of fF such that f.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 X be a set. For the powerset lattice (𝒫(X),), a set SX is way-below SX (SS) if SS and S finite. Since every set arises as the union of finite sets, powerset lattices are continuous. The sets S,S are in the way-above relation (SS) iff SS and S is co-finite (complement wrt. the superset X of a finite set). Powerset lattices are co-continuous, since every set is the intersection of co-finite sets.

For the lattice ([0,1],) it holds that two elements r,s[0,1] are in the way-below relation (rs) if both are 0 or r<s. Every real number is the supremum of strictly smaller numbers, hence [0,1] is a continuous lattice as well. It holds that rs iff both are 1 or r<s.222Note that 1F can only hold if F={1} due to the requirement that every filtered set is non-empty. The lattice [0,1] 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 J𝕃𝕃 such that for each element 𝕃, ={bJ𝕃b}. A meet basis of 𝕃 is a subset M𝕃𝕃 such that for each element 𝕃, ={mM𝕃m}.

When 𝕃 is a continuous lattice and J𝕃 is a join basis of 𝕃, then it holds – for all 𝕃 – that =b,bJ𝕃b. The dual holds for a meet basis and the way-above relation.

Example 2.

For a powerset lattice (𝒫(X),), 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 {x}¯=X\{x} for xX.

For the lattice ([0,1],) a possible join basis consists of (0,1].

We also need the following notion of irreducibility. We call an element b𝕃 of a lattice 𝕃 way-below irreducible (or simply irreducible) if whenever bF for F𝕃 finite, then bf for some fF (where F is not necessarily directed).

Note that since =, can not be an irreducible.

Example 3.

For the powerset lattice (𝒫(X),), singletons are way-below irreducible. For the lattice ([0,1],), all elements – apart from 0 – 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 d𝔹: α(γ(d))d. 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., α(𝗅𝗈𝗀i())=𝖻𝖾𝗁i() for all i𝖮𝗋𝖽.

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 (X,) consisting of a state space X and a transition relation X×X. We write 𝑠𝑢𝑐𝑐(x)={xXxx} and assume finite branching, i.e., 𝑠𝑢𝑐𝑐(x) is finite for all xX.

We define lattices 𝕃=(𝒫(𝒫(X)),), 𝔹=(𝑅𝑒𝑙(X),), where 𝑅𝑒𝑙(X) is the set of all relations RX×X. The Galois connection is:

α(𝒮) = {(x1,x2)X×XS𝒮:(x1Sx2S)}
γ(R) = {SX(x1,x2)R:(x1Sx2S)}.

Intuitively, α generates an equivalence on X from a set of subsets of X and γ maps a relation to all subsets of X that are closed under this relation.

As logic function we consider 𝗅𝗈𝗀:𝒫(𝒫(X))𝒫(𝒫(X)) with 𝗅𝗈𝗀(𝒮)=[𝖼𝗅f,¬(𝒮)], where f[A]={f(a)aA} for a function f:XY and AX, 𝖼𝗅f,¬ closes 𝒮 under finite intersections and complement and (S)={xXxS:xx}.

The corresponding behaviour function 𝖻𝖾𝗁:𝑅𝑒𝑙(X)𝑅𝑒𝑙(X) is the standard (monotone) bisimilarity map: given R𝑅𝑒𝑙(X) it holds that x1𝖻𝖾𝗁(R)x2 iff

y1𝑠𝑢𝑐𝑐(x1)y2𝑠𝑢𝑐𝑐(x2):y1𝑅y2y2𝑠𝑢𝑐𝑐(x2)y1𝑠𝑢𝑐𝑐(x1):y1𝑅y2.

From [7] it follows that α𝗅𝗈𝗀=𝖻𝖾𝗁α. In particular this means that (x1,x2)α(μ𝗅𝗈𝗀) iff x1,x2 are bisimilar (denoted by x1x2), which is exactly the statement of the Hennessy-Milner theorem [22].

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 O𝕃 of a complete lattice (𝕃,) is called (Scott) open iff O=O, and DO implies DO for all directed sets D𝕃. The collection of all Scott open subsets of 𝕃 is called the Scott topology of 𝕃 and denoted by σ(𝕃). A set C𝕃 is called compact if whenever C can be covered by open sets (CiIOi, Oi open), there exists a finite subcover (CiJOi where JI and J 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 𝒫(X), the open sets are the families of finite character, i.e., O𝒫(X) such that SO iff FO for some finite subset F of S [20].

A function f:𝕊𝕋 between lattices is called (Scott-)continuous if and only if it is continuous with respect to the Scott topologies (i.e. f1(U)σ(𝕊) for all Uσ(𝕋)). Equivalently, f is continuous if it preserves suprema of directed sets (i.e. f(D)=f(D) for all directed subsets D of 𝕊). Note that a continuous function reaches its smallest fixpoint in ω steps.

A map f:𝕊𝕋 is proper if the inverse image of a compact set is also compact. It is called proper wrt. B𝕋 if the inverse image of each (for B) 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 {(x1,x2)}X×X. 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 b𝔹.

A primal witness for b is an element a𝕃 such that aμ𝗅𝗈𝗀 and bα(a).

A dual witness for b˙ is an element a𝕃 such that aμ𝗅𝗈𝗀 and α(a)b˙.

Intuitively a witness is a formula of the logic that is strong enough to show that either b is a lower bound or b˙ is not an upper bound for the least fixpoint of 𝖻𝖾𝗁.

Proposition 8.

Assume the setting of Definition 7. Let 𝕃 be continuous with join basis J𝕃.

Assume that 𝔹 has a join basis J𝔹 consisting only of way-below irreducibles. Given bJ𝔹, there exists a primal witness aJ𝕃 for b iff bμ𝖻𝖾𝗁.

Given b˙𝔹, there exists a dual witness aJ𝕃 for b˙ iff μ𝖻𝖾𝗁b˙.

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 a𝕃 is a basis element. The same holds for b𝔹.

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 𝕃=𝒫(𝒫(X)) we consider singleton sets {Y} where YX.

For 𝔹=𝒫(X×X) (ordered by ) we consider a join basis consisting of all singletons {(x1,x2)}X×X (which are also irreducibles). As a meet basis we use all co-singletons {(x1,x2)}¯:=(X×X)\{(x1,x2)} for x1,x2X.

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 {(x1,x2)}¯μ𝖻𝖾𝗁μ𝖻𝖾𝗁{(x1,x2)}¯(x1,x2)μ𝖻𝖾𝗁x1≁x2. A primal witness is then a predicate a={X}μ𝗅𝗈𝗀 (with XX) that is obtained by evaluating a logical formula, for which {(x1,x2)}¯α({Y})α({Y}){(x1,x2)}¯¬(x1α({Y})x2)(x1Yx2Y). And that is exactly the notion of a distinguishing formula.

In the dual case μ𝖻𝖾𝗁{(x1,x2)}μ𝖻𝖾𝗁{(x1,x2)}(x1,x2)μ𝖻𝖾𝗁x1≁x2. As in the primal case a witness is a predicate obtained from a logical formula that distinguishes x1,x2.

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 a𝕃 (wrt. 𝗅𝗈𝗀) are defined as follows (where we assume that min is undefined):

𝖽𝖾𝗀𝗅𝗈𝗀(a)=min{i𝖮𝗋𝖽a𝗅𝗈𝗀i()}𝖼𝖽𝖾𝗀𝗅𝗈𝗀(a)=min{i𝖮𝗋𝖽𝗅𝗈𝗀i()a}

Note that the degree (co-degree) of an element a is defined whenever aμ𝗅𝗈𝗀 (μ𝗅𝗈𝗀a). It holds that 𝖽𝖾𝗀()=0, 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 J𝔹 such that J𝔹. Let 𝖻𝖾𝗁:𝔹𝔹 be monotone. The game starts with bJ𝔹 and players and play according to the following rules:

Position Player Moves
bJ𝔹 d𝔹, such that b𝖻𝖾𝗁(d)
d𝔹 bJ𝔹 such that bd

If a player cannot move, the opponent wins. Infinite games are won by .

It holds that bμ𝖻𝖾𝗁 iff the player has a winning strategy from b [3]. The intuitive reason for requiring the way-below order for the answer of is that – whenever bμ𝖻𝖾𝗁 can ensure that the game positions descend the chain of ordinals and eventually runs out of answering moves.

Furthermore bν𝖻𝖾𝗁 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 bμ𝖻𝖾𝗁. To our knowledge this version of the game is original.

Definition 11.

Let 𝔹 be a continuous lattice with a join basis J𝔹 such that J𝔹. Let 𝖻𝖾𝗁:𝔹𝔹 be monotone. We define a game between players and that play according to the following rules starting with bJ𝔹:

Position Player Moves
bJ𝔹 d𝔹, such that b𝖻𝖾𝗁(d)
d𝔹 bJ𝔹 such that bd

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 bJ𝔹. Player has a winning strategy in the game in Definition 11 iff bμ𝖻𝖾𝗁.

Whenever 𝖻𝖾𝗁 is a continuous function, then has a finitary winning strategy. Finitary means that d=F where F is a finite subset of J𝔹 and 𝖽𝖾𝗀(b)<𝖽𝖾𝗀(b) for each bF. In particular can win in 𝖽𝖾𝗀(b) 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 Sp,𝖻𝖾𝗁 and assigns a suitable move FJ𝔹 to bJ𝔹. Then plays Sp,𝖻𝖾𝗁(b). Sp,𝖻𝖾𝗁(b) is undefined if there is no winning strategy from b.

Example 13 (Strategy for the Primal Game).

We spell out the primal game for our running example. The join basis for (𝒫(X×X),) are the co-singletons (cf. Example 9). Now, when the initial situation is {(x1,x2)}¯, the game proceeds as follows:

  • (attacker) plays RX×X such that 𝖻𝖾𝗁(R){(x1,x2)}¯ (i.e., (x1,x2)𝖻𝖾𝗁(R)).

    More concretely plays R satisfying: there exists y1X with x1y1 such that for all y2X with x2y2 it holds that (y1,y2)R or vice versa.

  • (defender) chooses R{(y1,y2)}¯ (i.e., (y1,y2)R) and wins infinite games.

If x1≁x2, a possible winning strategy of (attacker) is to play

Sp,𝖻𝖾𝗁({(x1,x2)}¯)={y1}×𝑠𝑢𝑐𝑐(x2)¯=y𝑠𝑢𝑐𝑐(x2){(y1,y)}¯

if x1ay1 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 y1 such that for all y𝑠𝑢𝑐𝑐(x2), {(y1,y)}¯ has a smaller degree than {(x1,x2)}¯. Then must pick (y1,y), 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 aJ𝕃 with aμ𝗅𝗈𝗀 (a basis element, representing to a formula of the logic), is obliged to play a finite AJ𝕃 with a𝗅𝗈𝗀(A). That is, exhibits the subformulas, from which a can be constructed by applying 𝗅𝗈𝗀. Then can pick aA (in the case of powerset lattices and a basis of singletons this amounts to choosing aA) and continue the game from there, asking to spell out why a is also a logical formula.

If the lattice 𝔹 is not continuous, the game can fail, in particular may be able to win although b≪̸μ𝖻𝖾𝗁. 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 M𝔹 such that M𝔹 and a monotone function 𝖻𝖾𝗁:𝔹𝔹. The dual game on 𝖻𝖾𝗁:𝔹𝔹 follows the following rules.

Position Player Moves
b˙M𝔹 d˙𝔹, such that 𝖻𝖾𝗁(d˙)b˙
d˙𝔹 b˙M𝔹 such that d˙b˙

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 μ𝖻𝖾𝗁b˙ iff has a winning strategy when starting from b˙.

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. M𝔹.

Fix b˙M𝔹 with μ𝖻𝖾𝗁b˙. Then there exists a finite set FM𝔹 such that – for every move d˙ of can always choose some b˙F to win the game. In particular b˙d˙ and 𝖼𝖽𝖾𝗀(b˙)<𝖼𝖽𝖾𝗀(b˙) for all b˙F. We denote F by Sd,𝖻𝖾𝗁(b˙). Note that can win in 𝖼𝖽𝖾𝗀(b˙) 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 (𝒫(X×X),). The dual game on 𝖻𝖾𝗁 corresponds to a coupling game [4]. Given a basis element b˙={(x1,x2)}, produces a “coupling” RX×X such that (x1,x2)𝖻𝖾𝗁(R), which means every successor of x1 must be paired with some successor of x2 and vice versa. Then picks one such pair in R, claims that it is not bisimilar and the game continues. Note whenever x1≁x2 can always precompute a finitary winning strategy Sd,𝖻𝖾𝗁(b˙)={{(y1,y)}y𝑠𝑢𝑐𝑐(x2)} whenever we choose y1 as in Example 13 as some state that has no bisimilar partner in 𝑠𝑢𝑐𝑐(x2) (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 f:𝕃𝕃 and a finite set AJ𝕃. We will in particular instantiate to f=𝗂𝖽 and f=𝗅𝗈𝗀. We write Wp, Wd instead of Wp,𝗂𝖽, Wd,𝗂𝖽. For f=𝗅𝗈𝗀 note that α(𝗅𝗈𝗀(A)))=𝖻𝖾𝗁(α(A))=𝖻𝖾𝗁(α[A]).

function parameters output Wp,f bJ𝔹, A𝑓𝑖𝑛J𝕃, bα(f(A)) Wp,f(b,A)=aJ𝕃 s.t. af(A), bα(a) Wd,f b˙M𝔹, A𝑓𝑖𝑛J𝕃, α(f(A))b˙ Wd,f(b,A)=aJ𝕃 s.t. af(A), α(a)b˙ Z e˙,d˙𝔹, e˙d˙ Z(e˙,d˙)=b˙M𝔹 s.t. b˙d˙ and e˙b˙

We assume that 𝕃 is continuous lattice with join basis J𝕃, additionally in the first line the join basis J𝔹 contains only irreducibles, in the second line M𝔹 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 J𝕃, J𝔹. Furthermore J𝕃 must contain only way-below irreducibles.

Proposition 17.

Let 𝗅𝗈𝗀 be a continuous function, which implies that there is a finitary winning strategy Sp,𝗅𝗈𝗀 for in the primal way-below game on 𝗅𝗈𝗀:𝕃𝕃 (cf. Proposition 12).

Given bJ𝔹 and a primal witness a for b (bα(a)), we choose the move of in the primal way-below game on 𝖻𝖾𝗁:𝔹𝔹 as

d=α(Sp,𝗅𝗈𝗀(a)).

Let bd be an answering move of . Then a=Wp(b,Sp,𝗅𝗈𝗀(a)) is a primal witness for b and 𝖽𝖾𝗀(a)<𝖽𝖾𝗀(a). We continue from b and a and obtain a winning strategy for in the primal way-below game on 𝖻𝖾𝗁:𝔹𝔹 (cf. Definition 11) for all bJ𝔹 that have witnesses.

Now we treat witness construction and assume that there exists a finitary winning strategy Sp,𝖻𝖾𝗁 for in the primal way-below game on 𝖻𝖾𝗁 (cf. Definition 11) which assigns to each bJ𝔹 a set Sp,𝖻𝖾𝗁(b)J𝔹. From such a strategy we construct a witness 𝑤𝑖𝑡(b) for a given bμ𝖻𝖾𝗁.

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 Sp,𝖻𝖾𝗁 for in the primal way-below game on 𝖻𝖾𝗁:𝔹𝔹 (cf. Proposition 12).

Given bJ𝔹 with bμ𝖻𝖾𝗁, we can compute the witness of b inductively as follows:

𝑤𝑖𝑡(b)=Wp,𝗅𝗈𝗀(b,𝑤𝑖𝑡[Sp,𝖻𝖾𝗁(b)]).

Then 𝖽𝖾𝗀(𝑤𝑖𝑡(b))𝖽𝖾𝗀(b) and this is a well-defined inductive definition with base case Sp,𝖻𝖾𝗁(b)=.

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 𝔹=𝑅𝑒𝑙(X) (ordered by ) with a join basis consisting of co-singletons (Example 9, primal case).

Assume that x1≁x2 for x1,x2X and let b={(x1,x2)}¯. We can choose some finitary strategy Sp,𝖻𝖾𝗁 for the primal way-below game on 𝖻𝖾𝗁 (see e.g. Example 13). Let A=𝑤𝑖𝑡[Sp,𝖻𝖾𝗁(b)], i.e., we compute witnesses recursively. We then obtain 𝑤𝑖𝑡(b)=Wp,𝗅𝗈𝗀(b,A), where the auxiliary function Wp,𝗅𝗈𝗀 is defined as follows:

  • If A= (which holds if 𝖽𝖾𝗀(b)=1, hence Sp,𝖻𝖾𝗁(b)= and can play ==X×X), then define Wp,𝗅𝗈𝗀(b,A)=𝑡𝑟𝑢𝑒𝗅𝗈𝗀() (where 𝑡𝑟𝑢𝑒 is the empty conjunction).

  • Otherwise we know by construction that

    α(𝗅𝗈𝗀(A))=𝖻𝖾𝗁(α(A))b 𝖻𝖾𝗁(α(A)){(x1,x2)}¯
    (x1,x2)𝖻𝖾𝗁(α(A))

    Since α(A) suffices to distinguish x1,x2 (after applying 𝖻𝖾𝗁), it must be the case that there exists y1𝑠𝑢𝑐𝑐(x1) that is not related via α(A) to any state in y2𝑠𝑢𝑐𝑐(x2) (or vice versa). Hence for y1 and each such y2 there exists a predicate PA that separates them and we can define

    Wp,𝗅𝗈𝗀(b,A)=(PA,y1PPPA,y1P¬P),

    which contains x1 (which has a successor y1 satisfying all predicates) but not x2 (where for each successor y2 there exists a predicate not containing y2).

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 J𝕃 and 𝔹 is a co-continuous lattice with meet basis M𝔹.

Proposition 20.

Assume that 𝗅𝗈𝗀 is continuous, which implies the existence of a finitary winning strategy Sp,𝗅𝗈𝗀 for in the primal way-below game on 𝗅𝗈𝗀:𝕃𝕃 (cf. Proposition 12).

Let b˙M𝔹 and let a be a dual witness for b˙ (α(a)b˙). We let A=Sp,𝗅𝗈𝗀(a). Given a move d˙𝔹 by , the player plays

b˙=Z(α(A),d˙),

which has a dual witness a=Wd(b˙,A) with 𝖽𝖾𝗀(a)<𝖽𝖾𝗀(a). We continue from b˙ and a 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. M𝔹, which implies the existence of a finitary winnning strategy Sd,𝖻𝖾𝗁 for in the dual game on 𝖻𝖾𝗁:𝔹𝔹. (cf. Proposition 15).

Given b˙M𝔹 with μ𝖻𝖾𝗁b˙, we can compute the witness of b˙ inductively as:

𝑤𝑖𝑡(b˙)=Wd,𝗅𝗈𝗀(b˙,𝑤𝑖𝑡[Sd,𝖻𝖾𝗁(b˙)]).

Then 𝖽𝖾𝗀(𝑤𝑖𝑡(b˙))𝖽𝖾𝗀(b˙) and this is a well-defined inductive definition with base case Sd,𝖻𝖾𝗁(b˙)=.

Example 22 (Witness Construction – Dual).

In the running example, we choose a meet basis (for the order ) for 𝑅𝑒𝑙(X) with singletons as in Example 9.

Now fix b˙={(x1,x2)} with x1≁x2 and we choose some finitary strategy Sd,𝖻𝖾𝗁 for the dual game on 𝖻𝖾𝗁 (see e.g. Example 16). By construction 𝑤𝑖𝑡(b˙)=Wd,𝗅𝗈𝗀(b˙,A), where A=𝑤𝑖𝑡[Sd,𝖻𝖾𝗁(b˙)] and Wd,𝗅𝗈𝗀 is defined as follows:

  • If A= (which holds if 𝖼𝖽𝖾𝗀(b˙)=1), we again set Wd,𝗅𝗈𝗀(b˙,A)=𝑡𝑟𝑢𝑒.

  • Otherwise

    α(𝗅𝗈𝗀(A))=𝖻𝖾𝗁(α(A))b˙𝖻𝖾𝗁(α(A)){(x1,x2)}(x1,x2)𝖻𝖾𝗁(α(A))

    As in the primal case we determine a state y1𝑠𝑢𝑐𝑐(x1) that is not related (via α(A)) to any state in 𝑠𝑢𝑐𝑐(x2) (or vice versa) and define:

    Wd,𝗅𝗈𝗀(b˙,A)=(PA,y1PPPA,y1P¬P).

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 (X,δ,) consisting of a finite state space X, a probabilistic transition function δ:X𝒟(X) (where 𝒟(X) is the set of probability distributions over X) and a labelling function :XΛ.

Lattices, Functions and Galois Connection.

Behaviour: On the behaviour side we fix the lattice 𝔹=(𝐷𝑖𝑠𝑡(X),) (where 𝐷𝑖𝑠𝑡(X) denotes the set of distance functions over X, i.e., functions of the form d:X×X[0,1]). The way-below and way-above relations , are the pointwise <-orders (in addition 00, 11), see Example 1. The behaviour function 𝖻𝖾𝗁 is characterized as: given d𝐷𝑖𝑠𝑡(X) it holds that

𝖻𝖾𝗁(d)(x1,x2) = {𝒦(d)(δ(x1),δ(x2))if (x1)=(x2)1otherwise

where 𝒦 is the (price-function based) Kantorovich lifting [40, 2] that transform a distance on X into a distance on 𝒟(X). In terms of the Galois connection this is defined as 𝒦=αγ. Here f(x)=𝔼δ(x)[f] where 𝔼p[f]=xXf(x)p(x) determines the expectation of random variable f under probability distribution p. The function 𝖻𝖾𝗁 is obviously monotone (see also [29]).

Hence μ𝖻𝖾𝗁(x1,x2) denotes the behavioural distance of x1,x2, based on the Kantorovich lifting.

Logic: The lattice on the logic side is 𝕃=(𝒫([0,1]X),) (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 𝗅𝗈𝗀:𝒫([0,1]X)𝒫([0,1]X) with

𝗅𝗈𝗀()={[a]aΛ}{ff𝑐𝑙()}

where [a]:X[0,1] is defined as [a](x)=1 if (x)=a and 0 otherwise. Furthermore 𝑐𝑙() is the closure of the set [0,1]X under the operators 1f, fq (q[0,1], is the modified subtraction) and max(f,g) for functions f,g:X[0,1].

Galois Connection: The Galois connection is given as follows:

α()=(x1,x2)supf|f(x1)f(x2)|γ(d)={f:X[0,1]f non-expansive wrt. d}

Given d𝐷𝑖𝑠𝑡(X), a non-expansive function f:X[0,1] wrt. d must satisfy |f(x1)f(x2)|d(x1,x2).

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 {f} where f:X[0,1], while the join basis of 𝔹 contains all distance functions dx1,x2c (for x1x2, c>0) that are defined as

dx1,x2c(y1,y2)={cif (x1,x2)=(y1,y2)0otherwise

Strategy computation (cf. Prop. 12): Let b=dx1,x2c be a basis element that is way-below μ𝖻𝖾𝗁 (i.e., c<μ𝖻𝖾𝗁(x1,x2)), for which we determine the strategy of . Let k=𝖽𝖾𝗀(b) and define dk=𝖻𝖾𝗁k(0) as the k-th iterate in the Kleene iteration.

Whenever k=1 we have (x1)(x2) and can play .

Otherwise we rely on the coupling characterization of the Kantorovich lifting [40]. Given two probability distributions p,q𝒟(X), a coupling of p,q is a probability distribution C𝒟(X×X) with p,q as marginals, i.e., for all x1X: x2XC(x1,x2)=p(x1) and for all x2X: x1XC(x1,x2)=q(x2). We denote the set of couplings of p,q as Γ(p,q). Then – for a pseudometric d – we can spell out the Kantorovich lifting as

𝒦(d)(x1,x2) = inf{y1,y2XC(y1,y2)d(y1,y2)CΓ(δ(x1),δ(x2))}
= inf{𝔼C[d]CΓ(δ(x1),δ(x2))}.

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 ΓV(δ(x1),δ(x2)) and can replace Γ(δ(x1),δ(x2)) in the equation above by ΓV(δ(x1),δ(x2)) and inf by min.

Let 𝑠𝑢𝑐𝑐(xi) be the states reachable from xi with non-zero probability. For each pair y1𝑠𝑢𝑐𝑐(x1),y2𝑠𝑢𝑐𝑐(x2) determine constants cy1,y2[0,1] – which may equal 0 – that satisfy the following inequalities for some coupling C of the successor sets:

y1,y2C(y1,y2)cy1,y2>cdk1(y1,y2)>cy1,y2 or cy1,y2=0.

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 dy1,y2cy1,y2 (for cy1,y20) as the finitary strategy Sp,𝖻𝖾𝗁(dx1,x2c).

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 b=dx1,x2c and A[0,1]X. We define:

  • Wp(b,A)=f, where fA such that |f(x1)f(x2)|>c.

  • Wp,𝗅𝗈𝗀(b,A): if (x1)(x2) choose [a]𝗅𝗈𝗀(A). Otherwise, since

    c<𝖻𝖾𝗁(α[A])(x1,x2)=𝒦(α[A])(x1,x2)=αγ(α[A])(x1,x2)

    there exists a price function f that is non-expansive wrt. α[A] and |f(x1)f(x2)|>c. Now approximate f from A by using the logical operators and apply (for more details see [39, 24, 29]) to obtain a logical formula in 𝗅𝗈𝗀(A) that witnesses that the distance of x1,x2 is at least c.

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 x1,x2. 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 𝐷𝑖𝑠𝑡(X) that contains all distance functions d˙x1,x2c (for x1x2, c<1) that are defined as

d˙x1,x2c(y1,y2)={cif (x1,x2)=(y1,y2)1otherwise

It can be shown that 𝖻𝖾𝗁 is co-proper wrt. the basis.

Strategy computation (cf. Prop. 12): The computation of the strategy Sd,𝖻𝖾𝗁(d˙x1,x2c) in the dual case works analogously to the primal case. This is due to the fact that dx1,x2cμ𝖻𝖾𝗁 iff μ𝖻𝖾𝗁d˙x1,x2c and the orders , coincide (on elements different from 0,1). Furthermore the requirement that for all moves d of with 𝖻𝖾𝗁(d)b there exists a basis element b˙ of the chosen finitary strategy such that db˙ can also be ensured via the inequality involving couplings as above.

Auxiliary functions (cf. Sct. 5.1): The auxiliary functions Wd, Wd,𝗅𝗈𝗀 can also be defined analogously to the primal case. In addition:

  • Z(e˙,d˙): e˙,d˙𝐷𝑖𝑠𝑡(X) with e˙d˙, i.e., there exists x1,x2X with e˙(x1,x2)>d˙(x1,x2). In this case choose c such that e˙(x1,x2)>c>d˙(x1,x2) and return d˙x1,x2c.

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 (X,T,δ) which has a finite state space X, a subset of terminal states TX (which do not have outgoing transitions) and a probabilistic transition function δ:X\T𝒟(X), where 𝒟(X) is a set of discrete probability distributions. The termination probability of a state xX is the probability that a run starting from x will eventually terminate in a state in T.

Lattices, Functions and Galois Connections

Behaviour: On the behaviour side we use the lattice 𝔹=[0,1]X, with function 𝖻𝖾𝗁:𝔹𝔹 defined as:

𝖻𝖾𝗁(f)(x)={1if xTyXδ(x)(y)f(y)otherwise.

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 tT, or, of the form x𝑇𝑟1,,𝑇𝑟k for xXT and where the 𝑇𝑟i are trees. Every tree has a root, defined by 𝑟𝑜𝑜𝑡(t)=t, for tT, and 𝑟𝑜𝑜𝑡(x𝑇𝑟1,,𝑇𝑟k)=x. We require that in a tree x𝑇𝑟1,,𝑇𝑟k the children 𝑇𝑟1,,𝑇𝑟k all have different roots. The set of all trees will be denoted as 𝑇𝑟𝑒𝑒𝑠. For a set of trees 𝒯𝑇𝑟𝑒𝑒𝑠, we write 𝒯x={𝑇𝑟𝒯𝑟𝑜𝑜𝑡(𝑇𝑟)=x}. The degree of a tree corresponds to its height, where the height of tT is 1.

We consider a map 𝑝𝑡:𝑇𝑟𝑒𝑒𝑠[0,1], where 𝑝𝑡(𝑇𝑟) under-estimates the termination probability from 𝑟𝑜𝑜𝑡(𝑇𝑟), based on the paths in 𝑇𝑟.

𝑝𝑡(𝑇𝑟)={1if 𝑇𝑟=tTi=1kδ(x)(𝑟𝑜𝑜𝑡(𝑇𝑟i))pt(𝑇𝑟i)if 𝑇𝑟=x𝑇𝑟1,,𝑇𝑟k

On the logic side we use the lattice 𝕃=𝒫(𝑇𝑟𝑒𝑒𝑠) (with inclusion order) with functions 𝗅𝗈𝗀:𝕃𝕃:

𝗅𝗈𝗀(𝒯)={x𝑇𝑟1,,𝑇𝑟kxX\T,𝑇𝑟i𝒯,𝑟𝑜𝑜𝑡(𝑇𝑟i)𝑟𝑜𝑜𝑡(𝑇𝑟j) for ij}{tT},

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:

α(𝒯)=λx.sup𝑇𝑟𝒯x𝑝𝑡(𝑇𝑟)γ(f)={𝑇𝑟Trees𝑝𝑡(𝑇𝑟)f(𝑟𝑜𝑜𝑡(𝑇𝑟))}.

Here, α maps a set of trees 𝒯 to a function that provides a lower bound for the termination probability of a node x, based on the trees in 𝒯x. 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 fxc (for xX, c>0) where

fxc(y)={c if x=y0otherwise

Strategy computation (cf. Prop. 12): let k=𝖽𝖾𝗀(fxc). If k=1, plays the empty set. Otherwise we have to solve the following inequalities (where dk=𝖻𝖾𝗁k(0)) in order to obtain values ci[0,1] for the successors x1,,xn of x:

i=1nδ(x)(xi)ci>cdk1(xi)>ci or ci=0

Then collect all such fxici where ci0 as finitary strategy Sp,𝖻𝖾𝗁(fxc).

Auxiliary functions (cf. Sct. 5.1): Let b=fxc and A𝑇𝑟𝑒𝑒𝑠. We define:

  • Wp(b,A)=𝑇𝑟 where 𝑇𝑟A is a tree such that 𝑝𝑡(𝑇𝑟)>c.

  • Wp,𝗅𝗈𝗀(b,A): if A= it must hold that xT, hence choose x. Otherwise choose {𝑇𝑟1,,𝑇𝑟n}A such that each tree 𝑇𝑟i witnesses a maximal termination probability for one of the successors of x and all trees have different roots. Then return x𝑇𝑟1,,𝑇𝑟n.

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 f˙xc (xX, c<1) where

f˙xc(y)={cif x=y1otherwise

Strategy computation (cf. Prop. 12): Sd,𝖻𝖾𝗁(f˙xc) is determined analogous to the primal case.

Auxiliary functions (cf. Sct. 5.1): The auxiliary functions Wd, Wd,𝗅𝗈𝗀 can also be defined analogously to the dual case. In addition:

  • Z(e˙,d˙): e˙,d˙[0,1]X with e˙d˙, i.e., there exists xX with e˙(x)>d˙(x). In this case choose c such that e˙(x)>c>d˙(x) and return b˙=f˙xc.

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 Sp,𝗅𝗈𝗀 proving that a witness is generated by the logic function. Proposition 17 explains how to transform witnesses into a winning strategy Sp,𝖻𝖾𝗁 of the primal way-below game, while Theorem 18 states the other direction. Analogously for strategies Sd,𝖻𝖾𝗁 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.

In addition we will further investigate the connection to apartness [19] in particular to [38]. In the latter paper proof systems are used to obtain witnesses for lower bounds with the connection to games mentioned as future work.

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 x,y, where y is a terminating state, and x can transition to both x and y with probability 1/2. The smallest fixpoint of the behaviour function μ𝖻𝖾𝗁 maps x and y to one, i.e. both states terminate almost surely. We want to witness that the probability for x is strictly greater than 1/2.

We will denote a function f:xa,yb by (a,b). Basis elements are tuples fxa=(a,0) or fyb=(0,b), where a,b>0.

Hence we start with the basis element fx1/2 and observe that 𝖽𝖾𝗀(fx1/2)=3, i.e. i=3 is the first index for which behi((0,0))(x)>1/2 holds.

Strategy computation: The computation of the strategies involves solving the following inequalities, and thereby distributes the required probability of 1/2 to the successors of x:

δ(x)(x)c1+δ(x)(y)c2=1/2c1+1/2c2>1/2
𝖻𝖾𝗁2((0,0))(x)=1/2>c1
𝖻𝖾𝗁2((0,0))(y)=1>c2

Player can choose any c1=1/2ε, c2=1δ (ε,δ>0) that satisfy the first inequality. Setting c1=0 or c2=0 is not an option, as then the first inequality is not satisfied. Assume that chooses c1=1/4 and c2=7/8. Hence the (finitary) strategy of is to play d=F with F={fx1/4,fy7/8}. Note that 𝖽𝖾𝗀(fx1/4)=2 and 𝖽𝖾𝗀(fy7/8)=1.

Now, the probability of c1=1/4 needs to be distributed to the successors of x. Here we assume that chooses values 0,7/8, resulting in the strategy F={fy7/8}. Finally, for fy7/8 it is sufficient to play the bottom element (0,0), i.e., the empty strategy.

Playing the game: Starting with fx1/2μ𝖻𝖾𝗁, player plays F=(1/4,7/8) as determined above. Now has to answer either with (1/4ε,0) or (0,7/8δ). As detailed above, can win in the latter case with the empty strategy, in the former case plays F=(0,7/8), winning the game in the next step, since by assumption can not answer with =(0,0).

Constructing the witness: Now we construct witnesses recursively from the strategy. More concretely, we obtain:

𝑤𝑖𝑡(fy7/8) =Wp,𝗅𝗈𝗀(fy7/8,)=y,(base case)
𝑤𝑖𝑡(fx1/4) =Wp,𝗅𝗈𝗀(fx1/4,𝑤𝑖𝑡[{fy7/8}])=Wp,𝗅𝗈𝗀(fx1/4,{y})=xy
𝑤𝑖𝑡(fx1/2) =Wp,𝗅𝗈𝗀(fx1/2,𝑤𝑖𝑡[{fx1/4,fy7/8}])=Wp,𝗅𝗈𝗀(fx1/2,{xy,y})=x(xy),y

Thus, the termination probability of x being greater than 1/2 is witnessed by the tree x(xy),y, where the subtree y witnesses the termination probability of y, which is greater than 7/8, and the subtree xy witnesses the termination probability of x of at least 1/4. In fact, the resulting tree even gives the value 3/4.