[Paper Review] Compositionality and String Diagrams for Game Theory
This paper introduces string diagrams as a compositional, graphical language for modeling and constructing games in economics, leveraging category theory to enable modular, hierarchical, and scalable game design. It demonstrates how parallel and sequential composition, along with boxing for abstraction, allow for intuitive, formal reasoning about strategic interactions, with direct translation to functional programming for verification and scalability.
We introduce string diagrams as a formal mathematical, graphical language to represent, compose, program and reason about games. The language is well established in quantum physics, quantum computing and quantum linguistic with the semantics given by category theory. We apply this language to the game theoretical setting and show examples how to use it for some economic games where we highlight the compositional nature of our higher-order game theory.
Motivation & Objective
- To address the lack of compositionality in traditional game theory, which hinders scalability in large economic systems.
- To introduce string diagrams—originally from quantum theory and computer science—as a new formalism for representing and composing games.
- To enable economists to model complex games using intuitive graphical syntax while retaining rigorous categorical semantics.
- To bridge the gap between abstract game-theoretic models and scalable, computer-assisted implementation via direct translation to functional programming.
- To demonstrate that graphical compositionality supports modular reasoning, reuse, and verification in economic modeling.
Proposed method
- Using string diagrams to represent games as networks of processes, where strings denote state spaces and nodes denote transformations or decisions.
- Applying categorical semantics to ensure that diagrammatic operations (composition, tensor, boxing) correspond to well-defined game-theoretic operations.
- Employing parallel and sequential composition to build complex games from simpler components, preserving strategic structure.
- Using boxing to encapsulate subgames as reusable, abstract modules with defined inputs and outputs.
- Translating string diagrams directly into Haskell code to enable automated verification, equilibrium checking, and type safety.
- Leveraging coherence theorems to ensure that topological deformations of diagrams preserve semantic meaning, abstracting away complex mathematical details.
Experimental results
Research questions
- RQ1How can game theory be made compositional to support the construction of large-scale economic models?
- RQ2Can string diagrams provide a graphical, intuitive, and formally sound language for representing strategic games and their compositions?
- RQ3To what extent can hierarchical game structures be modeled and reused through boxing in string diagrams?
- RQ4How does the categorical foundation of string diagrams ensure correctness and invariance under diagrammatic manipulation?
- RQ5Can string diagrams be directly compiled into functional programming code to enable automated reasoning and verification in economic modeling?
Key findings
- String diagrams provide a compositional framework for game theory, enabling the construction of complex games through parallel and sequential composition of simpler components.
- The graphical language supports hierarchical abstraction via boxing, allowing subgames to be treated as modular, reusable units with well-defined interfaces.
- The underlying categorical semantics guarantees that topological deformations of diagrams preserve their meaning, ensuring formal correctness without tracking low-level mathematical details.
- The framework enables direct translation of string diagrams into Haskell code, facilitating automated verification, equilibrium checking, and integration with software engineering best practices.
- The approach offers a scalable alternative to traditional game-theoretic representations, particularly beneficial for large, complex systems such as energy grids or multi-layered market structures.
- The method demonstrates that graphical formalisms can simplify reasoning in economics while maintaining mathematical rigor, offering a new layer of abstraction for modeling strategic interactions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.