arXiv:2608.28391cs.LOAug 2026

Manuscript Offprint

arXiv:2608.28391

Adaptive Strategies for GR(1) Games

S. Krishna, Kaushik Mallik, Abhilasha Sharma Suman

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

S. KRISHNA, IIT Bombay, India

KAUSHIK MALLIK, IMDEA Software Institute, Spain

ABHILASHA SHARMA SUMAN, IIT Bombay, India

We consider two-player GR(1) games on graphs, where the system player Eve must satisfy the specification

□◊A1∧⋯∧□◊Am  ⟹  □◊G1∧⋯∧□◊Gn\Box\Diamond A_{1}\wedge\cdots\wedge\Box\Diamond A_{m}\implies\Box\Diamond G_{1}\wedge\cdots\wedge\Box\Diamond G_{n}

against every strategy of the environment player Adam. Here A1,…,AmA_1, \ldots, A_m are assumptions on the environment, G1,…,GnG_1, \ldots, G_n are guarantees the system must provide, and □◊S\Box \Diamond S denotes “always eventually SS” in linear temporal logic. Traditional approaches compute static strategies that satisfy the specification against all possible adversarial moves. Such strategies are overly conservative: they may “cheat” by actively violating assumptions to trivially satisfy the implication, or abandon all guarantees the moment any assumption is violated. Existing methods to prevent such behaviors incur a doubly exponential blowup in time and strategy complexity.

We introduce an adaptive framework in which Adam is treated as a non-adversarial agent with unknown objectives that may violate some assumptions. Eve gives Adam the opportunity to fulfill all assumptions, but continuously monitors which assumptions Adam actually meets and adapts her strategy at runtime to maximize the number of satisfied guarantees. Central to our approach is a novel algorithm for monitoring liveness properties of the form □⋄S\Box \diamond S. Under a suitable model of non-adversarial behavior, this monitoring algorithm enables Eve to maintain real-time likelihood estimates of which assumptions will be fulfilled. Building on these estimates, we develop a probabilistic adaptation procedure: Eve pre-computes a family of strategies, each optimal for a different subset of assumptions, and deploys a probability distribution over them that is dynamically adjusted based on the monitors' outputs. We prove that when some assumptions are violated, Eve's randomized adaptive strategy converges asymptotically to the deterministic strategy that fulfills the maximum number of guarantees. The convergence proof relies on a detailed analysis of the time-varying probabilities governing the adaptive strategy. Using a prototype implementation, we demonstrate that our approach scales better than state-of-the-art methods—completing where the baseline times out—while correctly adapting to the assumptions actually satisfied by the environment.

CCS Concepts: • Theory of computation → Automata over infinite objects; • Software and its engineering → Formal software verification.

Additional Key Words and Phrases: Graph games, GR(1) synthesis, adaptive strategies, liveness monitoring.

1 Introduction

Graph games are a core algorithmic problem in formal methods with a wide range of applications, including automated synthesis of reactive hardware, software, and cyber-physical systems. In the turn-based variety, two players, called Eve and Adam, take turns moving a token along the edges of a given graph. Eve wins if the resulting path fulfills a given temporal specification, typically expressed in linear temporal logic (LTL) or as an ω\omega-automaton. The goal is to compute a winning strategy for Eve that guarantees victory against every strategy of Adam. In applications such as reactive program synthesis, Eve represents the program, Adam represents the environment, the game graph captures all possible interactions between them, and every winning strategy of Eve corresponds to a provably correct implementation that satisfies the given requirements under all possible environment behaviors.

Authors' Contact Information: S. Krishna, IIT Bombay, Mumbai, India, krishnas@cse.iitb.ac.in; Kaushik Mallik, IMDEA Software Institute, Madrid, Spain, kaushik.mallik@imdea.org; Abhilasha Sharma Suman, IIT Bombay, Mumbai, India, 23b1011@iitb.ac.in.

We consider games with generalized reactivity (1) specifications [10], better known as GR(1), where Eve’s specification is drawn from the following fragment of LTL:

□◊A1∧…∧□◊Am  ⟹  □◊G1∧…∧□◊Gn,(1)\Box\Diamond A_{1}\land\ldots\land\Box\Diamond A_{m}\implies\Box\Diamond G_{1}\land\ldots\land\Box\Diamond G_{n}, \tag{1}

where A1,…,AmA_1, \ldots, A_m are subsets of vertices known as the assumptions, G1,…,GnG_1, \ldots, G_n are subsets of vertices known as the guarantees, and “ □◊S\Box \Diamond S” for a given set SS of vertices represents the temporal property “always eventually SS is visited.” Typically, the assumptions specify some restrictions on Adam’s moves, and the GR(1) specification requires Eve to fulfill the guarantees when the assumptions are met. We describe GR(1) games using our first running example.

Example I: Vacuum cleaning robot. Consider the interaction between a vacuum cleaning robot and its environment, where the robot must visit all rooms in the apartment infinitely often, provided all doors open infinitely often. This can be modeled as a GR(1) game between the robot and the set of doors, taking the roles of Eve and Adam respectively, where each vertex of the game graph represents the current location of the robot and the status of all doors, the edges represent how these configurations can change, each assumption AiA_i is the set of vertices where the i-th door is open, and each guarantee GiG_i is the set of vertices where the robot is in the i-th room.

We identify three major limitations of the standard setting of GR(1) games.

Firstly, the usual approach is to model Adam as an adversary, which is a natural artifact of the problem statement: find a strategy of Eve that is winning against every possible strategy of Adam. This is prohibitively conservative in most use cases. For instance, in Example I, an adversarial Adam would open a door when the robot is far away and close it as soon as the robot tries to pass through. This would make it impossible for Eve to win, though due to unrealistic reasons.

Secondly, in the standard setting, if even a small subset of assumptions is violated by Adam, the implication in Eqn. (1) becomes true, and Eve wins automatically without fulfilling any guarantees. In practice, we would like Eve to fulfill as many guarantees as possible, when some of the assumptions are unmet. For instance, in Example I, we would like the robot to visit as many rooms as possible even when some doors remain permanently closed. While this issue was considered by Bloem et al. [7] with the help of robust strategies for Eve, Adam was still modeled in the adversarial fashion, and thereby could be overly conservative. For Example I, Adam could open a subset of doors and use the aforementioned adversarial strategy to prevent Eve from fulfilling any guarantees.

Finally, in the standard setting, Eve can “cheat” and win the game by violating some of the assumptions herself, which is usually undesirable. For instance, the robot in Example I might just stand forever next to a particular door blocking it to ever be opened, thereby violating the assumptions and winning the GR(1) game. This issue alone was resolved in the environmentally friendly GR(1) synthesis framework [25] or more generally in the obliging games framework [13]. These works formalized graceful strategies of Eve that ensure Adam always has a strategy to fulfill all assumptions from any history. However, these works neither accommodate non-adversarial environments, nor support robust solutions in the face of partial violations of the assumptions. The naïve combination of the robust strategies with the obliging games framework turns out to have doubly exponential time and strategy complexity in the number of assumptions and guarantees, which is prohibitive in practical applications.

We present a framework that combines static reactive synthesis with dynamic adaptation. A static phase precomputes a library of optimal strategies, one for each possible subset of assumptions that Adam might fulfill; a dynamic phase monitors the environment at runtime and adaptively mixes these strategies based on observed behavior. This two-phase design rests on a key insight: in many applications—such as multi-agent systems—other players do not behave as pure adversaries; the adversarial assumption is merely an abstraction for unknown behavior. Although computing a single robust strategy that supports every possible environment is intractable, maintaining a library of strategies and selecting among them online is feasible. Indeed, our strategy-library construction enjoys exponentially smaller time and strategy complexity compared to the naïve baseline (combining gracefulness with robustness) described above.

Let us go into more details. As the first step, we propose a clean, almost axiomatic definition of non-adversarial behavior by Adam, which assumes: (A) the subset AinfA_{\text{inf}} of assumptions that Adam will fulfill infinitely often does not depend on Eve's strategy, as long as Eve uses graceful strategies (allowing Adam to fulfill all assumptions); and (B) for every fixed strategy of Eve and every assumption A∈AinfA \in A_{\text{inf}}, the time between successive visits to A is bounded. In Example I, this means the set AinfA_{\text{inf}} of doors that open infinitely often does not depend on the robot's movement, as long as the robot uses graceful strategies and does not block any doors. Moreover, for every fixed strategy of the robot, the doors in AinfA_{\text{inf}} open within bounded intervals. These restrictions rule out the adversarial behavior described earlier: Adam cannot strategically time door openings based on the robot's position.

Adaptive strategies for Eve comprise several components spread across offline and online phases; see Figure 1. In the offline design phase, we create a static strategy library StrLib for Eve, which, for every subset A∗A^* of assumptions A, stores a graceful strategy πE∗=StrLib(A∗)\pi_E^* = StrLib(A^*) of Eve that fulfills as many guarantees as possible when only A∗A^* is fulfilled. For Example I, for every subset of doors, StrLib would store one graceful strategy that visits every room accessible through those particular doors infinitely often. If Eve knew which assumptions (a non-adversarial) Adam will fulfill, i.e., the identity of AinfA_{\text{inf}}, she could simply deploy the corresponding optimal strategy StrLib( AinfA_{\text{inf}}) from the library.

Figure

Fig. 1. Adaptive strategy pipeline. Left: Static design synthesizes StrLib(B) for each B ⊆ A. Right: At runtime, monitors estimate the likelihood of satisfaction of each individual assumption, which are aggregated into the likelihood of satisfaction of subsets of assumptions, which is finally turned into a probability value pBp_B for each B ⊆ A; a sampled πE∗\pi_E^* then observes the history to produce the next vertex vt+1v_{t+1}.

In the online deployment phase, the identity of AinfA_{\text{inf}} is learned from past observations, and the statically computed optimal strategies are accordingly mixed using a time-varying probability distribution. Assumption learning is facilitated by a novel monitoring algorithm for liveness (Büchi) properties of the form “□◇S,” where S is a set of states. It is well-known that liveness properties like these are not monitorable [14], because given any history of observations, there would be some continuations fulfilling the property and some violating it, making it impossible to ever reach a conclusive verdict. Our monitor emits a quantitative verdict in (0, 1) indicating the likelihood that □◇S is satisfied. The hitting time of S is the time between successive visits to S. Under the assumption of a constant (unknown) bound on the hitting time, 1^{1} as time goes to ∞, the monitor’s

1^{1}A constant bound on the hitting time does not mean that S needs to be visited after a fixed (constant) interval. Rather, it means that there is a constant k such that every two successive visits to S are at most k time steps apart.

verdict converges to 1 when the trace satisfies □◇S, and to 0 otherwise. 2^{2} This is why we call our monitor asymptotic; it is of independent interest from a runtime verification perspective.

We use one asymptotic monitor MiM_i for each assumption □⋄Ai\Box \diamond A_i in A={A1,…,Am}\mathbf{A} = \{A_1, \ldots, A_m\}. These monitors output the likelihood of the fulfillment of each assumption separately, and these individual likelihood estimates get combined to form an aggregated verdict wA∗w_A^* about how likely it is that a given nonempty set A∗\mathbf{A}^* of assumptions is actually the set Ainf\mathbf{A}_{\text{inf}} of infinitely visited assumptions. We also track the likelihood w0w_0 that Ainf=∅\mathbf{A}_{\text{inf}} = \emptyset, but for that we need to use a separate monitor M∪\mathcal{M}_\cup for □⋄∪i∈[1;m]Ai\Box \diamond \cup_{i \in [1; m]} A_i. Next, these likelihood estimates for sets of assumptions are turned into a probability distribution over the subsets of A\mathbf{A}, where the relative strengths of the estimates are proportional to the relative probability values. For Example I, for every given (empty or nonempty) subset of doors, we would obtain a probability that those are the only doors that will open infinitely often. As the verdicts of the monitors evolve after each step, so does this probability distribution.

The obtained probability distribution then gives rise to a probabilistic adaptive strategy for Eve: at each step, Eve samples a strategy from the library according to the current distribution, and uses the sampled strategy to decide the next action. For every arbitrary strategy of Adam, the adaptive strategy of Eve gives rise to a Markov chain whose states represent the history of vertices and the edge probabilities represent the sampling probability distribution over the static strategies. We prove that, under the assumption that Adam is non-adversarial and as time goes to infinity, the Markov chain almost surely concentrates on the component where the static strategy StrLib( AinfA_{inf}) corresponding to the set AinfA_{inf} is always sampled with probability 1.

The elegance of our adaptive strategy is in its simplicity: both the monitor and the probabilistic strategy are surprisingly simple to implement. Yet, the convergence proof is highly nontrivial. Part of the difficulty stems from a circular dependency between the monitor's verdicts and the strategy output: the output of the adaptive strategy influences the path taken on the game graph, which affects the frequency of the assumptions visited along the path, which in turn changes the output of the monitor. We break this circularity by establishing a lower bound on the probability of selecting any given static strategy for a given number of steps in a row, regardless of the history of vertices seen so far. This result is at the heart of our technical proofs of convergence.

We implemented our algorithm in a prototype tool called Grace, written in C++. As baseline, we implement the straightforward combination of robust strategies [7] with obliging games [13]. On a suite of benchmarks drawn from the literature, Grace outperforms the baseline as soon as the number of assumptions and guarantees grows, consistent with the exponential savings predicted by our complexity analysis. Moreover, while the adaptive strategy requires exponential time in theory to identify the true set AinfA_{inf} of fulfilled assumptions, in practice it converges within a few hundred time steps across all benchmarks.

We now introduce a second motivating example, which is slightly more technical than Example I, but will be used throughout the paper to precisely illustrate different concepts.

Example II: Repeated matching pennies. In this game, Eve and Adam each have a penny, Eve's heads and tails are called hEh_{E} and tEt_{E}, and the same for Adam are called hAh_{A} and tAt_{A}, respectively; throughout the paper, E will indicate Eve and A will indicate Adam. In each round of the game, first Eve picks a side of her penny, which Adam observes, and then either picks a side of his own penny, or withdraws from that round, which is represented as the action ⊥\perp. There is no restriction on how the players pick their sides—they may do so deterministically or randomly. The outcome of a round is a match if Adam decides to play and both players choose the same side; otherwise, it is not a match. This finishes one round, and the game repeats indefinitely. Eve wins if she can

2^{2}In Appendix D, we show that the claim holds for a significantly more general case, namely hitting times bounded by any sub-exponential function. However, for the main technical development, the constant hitting time assumption suffices.

guarantee infinitely many matches, under the assumption that Adam picks both sides of his coin infinitely often. The game graph is depicted in Figure 2, and Eve’s GR(1) specification is given as:

□⋄HA∧□⋄TA  ⟹  □⋄{hEhA}∧□⋄{tEtA},(2)\Box\diamond H_{\mathrm{A}}\wedge\Box\diamond T_{\mathrm{A}}\implies\Box\diamond\left\{h_{\mathrm{E}}h_{\mathrm{A}}\right\}\wedge\Box\diamond\left\{t_{\mathrm{E}}t_{\mathrm{A}}\right\}, \tag{2}

where the assumptions HA:={hEhA,tEhA}H_A := \{h_E h_A, t_E h_A\} and TA:={hEtA,tEtA}T_A := \{h_E t_A, t_E t_A\} represent the states where Adam has picked hAh_A and tAt_A, respectively, and guarantees hEhAh_E h_A and tEtAt_E t_A represent matches.

It is worthwhile to note that every strategy of Eve in this game is graceful, since she cannot prevent Adam from fulfilling the assumptions; this will allow us to focus on the core idea of strategy adaptation. Furthermore, the game is winning for Eve, and every winning strategy of Eve must eventually always use the following strategy: keep picking hEh_E until Adam picks hAh_A, then switch to tEt_E and keep picking tEt_E until Adam picks tAt_A, then switch back to hEh_E and keep picking hEh_E until Adam picks hAh_A, and so on; let

Figure

Fig. 2. Game graph for repeated matching pennies. Circular vertices are controlled by Eve; square vertices by Adam.

ΠE(1)\Pi_{\mathrm{E}}^{(1)} be the set of all Eve strategies that use this tactic. Clearly, if Adam eventually stops picking one of the two sides, Eve wins due to the violation of at least one of the assumptions. On the other hand, if Adam picks both sides always eventually, Eve will fulfill both guarantees (hE,hA)(h_{\mathrm{E}}, h_{\mathrm{A}}) and (tE,tA)(t_{\mathrm{E}}, t_{\mathrm{A}}). In other words, regardless of Adam's actions, the GR(1) specification will be fulfilled. It can be shown that strategies of Eve that do not use this tactic will lose the GR(1) game, and therefore are not optimal. To see this, take any strategy of Eve that always eventually switches from tEt_{\mathrm{E}} to hEh_{\mathrm{E}} before Adam produces a tAt_{\mathrm{A}}, and then switches back before Adam produces hAh_{\mathrm{A}}; let ΠE(2)\Pi_{\mathrm{E}}^{(2)} be the set of strategies of Eve implementing this tactic, and note that ΠE(2)\Pi_{\mathrm{E}}^{(2)} is the complement of ΠE(1)\Pi_{\mathrm{E}}^{(1)}. When Eve uses a strategy in ΠE(2)\Pi_{\mathrm{E}}^{(2)}, Adam can punish Eve as follows: Adam selects tAt_{\mathrm{A}} as soon as Eve switches from tEt_{\mathrm{E}} to hEh_{\mathrm{E}}, selects hAh_{\mathrm{A}} as soon as Eve switches from hEh_{\mathrm{E}} to tEt_{\mathrm{E}}, and selects ⊥\perp if no change happened in the last two moves of Eve. Since policies in ΠE(2)\Pi_{\mathrm{E}}^{(2)} will always eventually make the switch regardless of Adam's moves, the assumptions will be fulfilled but the guarantees will be violated, spoiling the GR(1) specification.

A non-adversarial Adam must have decided a partition AinfA_{\text{inf}} and AfinA_{\text{fin}} of the set A of all assumptions—regardless of Eve’s actions, and must make sure that against every fixed strategy of Eve, each assumption A∈AinfA \in A_{\text{inf}} is visited within a bounded delay from the previous visit. For instance, a valid non-adversarial strategy of Adam eventually always alternates between ⊥\perp and tAt_A; let ΠA(1)\Pi_A^{(1)} denote strategies of Adam fulfilling this pattern. Here, Ainf={TA}A_{\text{inf}} = \{T_A\} and Afin={HA}A_{\text{fin}} = \{H_A\}, and TA∈AinfT_A \in A_{\text{inf}} is visited within every two steps—regardless of what Eve picks. On the other hand, the set of strategies of Adam that eventually always picks the opposite of Eve’s choices—call it ΠA(2)\Pi_A^{(2)}—does not meet our non-adversarial criterion: AinfA_{\text{inf}} and AfinA_{\text{fin}} will depend on Eve’s strategies, namely Ainf={HA,TA}A_{\text{inf}} = \{H_A, T_A\} and Afin=∅A_{\text{fin}} = \emptyset when Eve uses a strategy from ΠE(2)\Pi_E^{(2)}, and either Ainf={TA}A_{\text{inf}} = \{T_A\} and Afin={HA}A_{\text{fin}} = \{H_A\} or Ainf={HA}A_{\text{inf}} = \{H_A\} and Afin={TA}A_{\text{fin}} = \{T_A\} if Eve uses a strategy from ΠE(1)\Pi_E^{(1)}. Furthermore, if Eve uses a strategy πE∈ΠE(2)\pi_E \in \Pi_E^{(2)} such that the ii-th switch—either from hEh_E to tEt_E or from tEt_E to hEh_E—happens at time 2i2^i, then Adam’s response strategy will fulfill the assumptions after increasing amounts of delay, which is not permitted according to our bounded delay criterion of non-adversarial strategies of Adam.

Assuming Adam uses only non-adversarial strategies, our goal is to obtain a strategy of Eve that learns which assumptions Adam will fulfill via runtime monitoring, and accordingly adapts her strategy to maximize the number of guarantees. For example, if Adam uses a non-adversarial strategy πA∗\pi_A^* fulfilling only TAT_A but violating HAH_A, i.e., Ainf={TA}\mathbf{A}_{\text{inf}} = \{T_A\} and Afin={HA}\mathbf{A}_{\text{fin}} = \{H_A\}, then Eve must learn Ainf\mathbf{A}_{\text{inf}} and Afin\mathbf{A}_{\text{fin}}, and adapt her strategy so that she only picks tEt_E in the long run. (Note that, even if Adam fulfills TAT_A, he need not constantly pick tAt_A as he can also choose ⊥\perp occasionally.)

Contributions. The highlights of our contributions are as follows:

  • A formal definition of non-adversarial environment behavior, and a formalization of the problem of computing the optimal graceful strategies of Eve (Section 3.3).

  • A novel asymptotic liveness monitor for □◇S properties whose verdict converges to the true satisfaction value under mild hitting time assumptions (Section 5.1).

  • An adaptive strategy framework combining offline computation of a graceful strategy library (Section 4) with online probabilistic mixing guided by monitor outputs (Section 5.2).

  • A convergence proof showing that our adaptive strategy asymptotically concentrates on the optimal deterministic strategy (Theorem 5.3).

  • A prototype implementation Grace showing exponential speedups over the baseline and fast convergence in practice (Section 6).