Work

Fibrational Theory of Behaviors and Observations: Bisimulation, Logic, and Games from Modalities

Year: 2023
Type: dissertation
Abstract: Mathematical modeling of computer systems is of fundamental importance in software verification. Some of such mathematical models focus on the possible states and transitions of the target system. Such "state-and-transition" models are unified, using the language of category theory, into the concept called coalgebra. It generalizes models in automata theory and process theory. One way to view coalgebra theory is that it is "a theory of observable behaviors": Notions like bisimulation relation and simulation preorder are defined in such a way that they are invariant under coalgebra morphisms, which morally means that they depend only on "observable" information. These are generalized to fibrational coinduction, which is parametrized in fibrations and functor liftings. It gives rise to a wide range of examples, including quantitative ones like behavioral metrics. However, it lacks explicit modeling of "observation." Bisimulation relation and behavioral distance are known to be tightly connected to games and modal logic through "observations" on the system, but in this fibrational framework, such connections are not understood well. This thesis proposes a new framework in which observations are modeled as certain morphisms. The main point is to adopt codensity lifting, a known method to define functor lifting to use in fibrational coinduction. The resulting object generalizes bisimulation relation and simulation preorder, and we call it codensity bisimilarity. The definition of codensity lifting involves a set of morphisms, which represents the set of "observations." This feature makes it possible to connect codensity bisimilarity to games and modal logic. After introducing our framework, we show two main results. The first is a game characterizing codensity bisimilarity, which we call the codensity bisimilarity game or just the codensity game. Just like the conventional bisimilarity game, the codensity game is played by two players named Duplicator and Spoiler, and it may last indefinitely long, in which case Duplicator wins. The difference between the conventional game and our game is the players' moves. Spoiler's moves are "observations," i.e., arrows from the state space object. Duplicator's moves are predicates themselves: for example, in the codensity game for bisimilarity relation, Duplicator chooses an equivalence relation as a move each time. We show that the codensity game characterizes the codensity bisimilarity in general: both the statement and the proof are independent of the specific property of the behavior functor and the fibration. For some better-behaved fibrations, we construct another game called the trimmed codensity bisimilarity game. In this game, the set of Duplicator's moves is smaller: for example, in the game for bisimilarity relation, Duplicator's moves are restricted to pairs of states instead of equivalence relations on the state space. We instantiate the underlying fibrations of codensity games so that they can characterize bisimilarity relation and behavioral distance. We also consider the fibration of topologies and devise a new concept called bisimulation topology with a game characterization. The second main result concerns the adequacy and expressivity of modal logic for codensity bisimilarity. We define fibrational logical equivalence, a generalization of logical equivalence and logical distance, and show some adequacy and expressivity results. We adopt coalgebraic modal logic and fix a predicate on the "truth value" object, which we call an expressivity situation. We define two concepts from this: the fibrational logical equivalence and the codensity bisimilarity. The fibrational logical equivalence is a generalization of logical equivalence and is defined through modal logic. The codensity bisimilarity is defined through the codensity lifting, using part of the expressivity situation as the parameter of codensity lifting. We define adequacy and expressivity as the comparison between the fibrational logical equivalence and the codensity bisimilarity. Here adequacy turns out to be implied automatically. On the other hand, to prove expressivity, we need to investigate "observation" arrows in more depth. By abstracting from existing approximation arguments, we introduce approximating families and use the notion to formulate our expressivity result. We instantiate this to recover a few known expressivity results for bisimulation relations and behavioral distances. We also define a new kind of codensity bisimilarity called bisimulation uniformity. We use a known Stone-Weierstrass-type theorem for uniform spaces to derive an expressive modal logic for bisimulation uniformity. Along with these main results, we show another technical result about codensity lifting itself. It concerns a technical condition called fiberedness, and we prove a sufficient condition for a codensity lifting to be fibered. To formulate and prove the result, we define the notion of a c-injective object. The result has a consequence also for codensity bisimilarities: it implies the reflection of the codensity bisimilarity by coalgebra morphisms. We identify c-injective objects in some cases, for example, complete lattices in the fibration of preorders and continuous lattices in the fibration of topologies. We also prove the fiberedness of several codensity lifting and, thus, the reflection of the corresponding codensity bisimilarities.
Language: English
Subfield: Software
Open Access status: green
OpenAlex ID: W7145314661
Cites: 62
Cited by:
Related to: 9