Reference. Generalizing determinization from automata to coalgebras
The powerset construction is a standard method for converting a nondeterministic automaton into a deterministic one recognizing the same language. In this paper, we lift the powerset construction from automata to the more general framework of coalgebras with structured state spaces. Coalgebra is an abstract framework for the uniform study of different kinds of dynamical systems. An endofunctor F determines both the type of systems (F-coalgebras) and a notion of behavioural equivalence (~_F) amongst them. Many types of transition systems and their equivalences can be captured by a functor F. For example, for deterministic automata the derived equivalence is language equivalence, while for non-deterministic automata it is ordinary bisimilarity. We give several examples of applications of our generalized determinization construction, including partial Mealy machines, (structured) Moore automata, Rabin probabilistic automata, and, somewhat surprisingly, even pushdown automata. To further witness the generality of the approach we show how to characterize coalgebraically several equivalences which have been object of interest in the concurrency community, such as failure or ready semantics.
Cite
Cited by (2)
Intrinsically Correct Algorithms and Recursive Coalgebras alexandruIntrinsicallyCorrectAlgorithms2025-preprint
Recursive coalgebras provide an elegant categorical tool for modelling recursive algorithms and analysing their termination and correctness. By considering coalgebras over categories of suitably indexed families, the correctness of the corresponding algorithms follows intrinsically just from the type of the computed maps. However, proving recursivity of the underlying coalgebras is non-trivial, and proofs are typically ad hoc. This layer of complexity impedes the formalization of coalgebraically defined recursive algorithms in proof assistants. We introduce a framework for constructing coalgebras which are intrinsically recursive in the sense that the type of the coalgebra guarantees recursivity from the outset. Our approach is based on the novel concept of a well-founded functor on a category of families indexed by a well-founded relation. We show as our main result that every coalgebra for a well-founded functor is recursive, and demonstrate that well-known techniques for proving recursivity and termination such as ranking functions are subsumed by this abstract setup. We present a number of case studies, including Quicksort, the Euclidian algorithm, and CYK parsing. Both the main theoretical result and selected case studies have been formalized in Cubical Agda.
Intrinsically Correct Sorting in Cubical Agda alexandruIntrinsicallyCorrectSorting2025
The paper “Sorting with Bialgebras and Distributive Laws” by Hinze et al. uses the framework of bialgebraic semantics to define sorting algorithms. From distributive laws between functors they construct pairs of sorting algorithms using both folds and unfolds. Pairs of sorting algorithms arising this way include insertion/selection sort and quick/tree sort. We extend this work to define intrinsically correct variants in cubical Agda. Our key idea is to index our data types by multisets, which concisely captures that a sorting algorithm terminates with an ordered permutation of its input list. By lifting bialgebraic semantics to the indexed setting, we obtain the correctness of sorting algorithms purely from the distributive law.
Cites 44 works (1 here)
With notes (1)
Context-Free Languages, Coalgebraically winterCFL
We give a coalgebraic account of context-free languages using the functor D(X) = 2 × XA for deterministic automata over an alphabet A, in three different but equivalent ways: (i) by viewing context-free grammars as D-coalgebras; (ii) by defining a format for behavioural differential equations (w.r.t. D) for which the unique solutions are precisely the context-free languages; and (iii) as the D-coalgebra of generalized regular expressions in which the Kleene star is replaced by a unique fixed point operator. In all cases, semantics is defined by the unique homomorphism into the final coalgebra of all languages, paving the way for coinductive proofs of context-free language equivalence. Furthermore, the three characterizations can serve as the basis for the definition of a general coalgebraic notion of context-freeness, which we see as the ultimate long-term goal of the present study.
External (43)
- Trace Semantics via Determinization (2012)
- Final Semantics for Decorated Traces (2012)
- Generic Trace Logics (2011)
- Generalizing the powerset construction, coalgebraically (2010)
- On Coalgebras over Algebras (2010)
- Modal Logics are Coalgebraic (2009)
- An Algebra for Kripke Polynomial Coalgebras (2009)
- A Coalgebraic Characterization of Behaviours in the Linear Time – Branching Time Spectrum (2009)
- Coalgebraising Subsequential Transducers (2008)
- Tracing Anonymity with Coalgebras (2008)
- Generic trace semantics via coinduction (2007)
- Expressivity of coalgebraic modal logic: The limits and beyond (2007)
- Bisimulation relations for weighted automata (2007)
- Distributive laws for the coinductive solution of recursive equations (2006)
- Algebraic Specification and Coalgebraic Synthesis of Mealy Automata (2006)
- A Coalgebraic Approach to Process Equivalence and a Coinduction Principle for Traces (2004)
- On generalized coinduction and probabilistic specification formats (2004)
- Monads and Effects (2002)
- Monoid-labeled transition systems (2001)
- Universal coalgebra: a theory of systems (2000)
- Coalgebra, Concurrency, and Control (2000)
- Distributivity for endofunctors, pointed and co-pointed endofunctors, monads and comonads (2000)
- A Coalgebraic Foundation for Linear Time Semantics (1999)
- From Set-theoretic Coinduction to Coalgebraic Coinduction: some results, some problems (1999)
- Context-Free Languages and Pushdown Automata (1997)
- Notions of computation and monads (1991)
- Bisimulation through probabilistic testing (1991)
- The linear time - branching time spectrum (1990)
- Equivalences, congruences, and complete axiomatizations for probabilistic processes (1990)
- Specification-oriented semantics for Communicating Processes (1986)
- A Theory of Communicating Sequential Processes (1984)
- Introduction to Automata Theory, Languages, and Computation (1979)
- Communicating Sequential Processes (1978)
- Algebraic Theories (1976)
- Adjoint Lifting Theorems for Categories of Algebras (1975)
- Fuzzy machines in a category (1975)
- Free algebras and automata realization in the language of categories (1974)
- A note on pushdown store automata and regular systems (1967)
- Probabilistic automata (1963)
- On context-free languages and push-down automata (1963)
- Application of pushdown-store machines (1963)
- Context Free Grammars and Pushdown Storage (1962)
- On the definition of a family of automata (1961)