ArticleslgStudy

science

Compositional game theory

Compositional game theory is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Compositional game theory rather than just read about it. In short: Compositional game theory is a branch of game theory and computer science, which aims to present large complex games as a composition of simple small games. Motivation A major theme in computer science is the ability to construct simple building-blocks (e.g. functions or procedures in a programming language), and compose them into larger structures (e.g. more complex functions or programs).

Key takeaways

  • Compositional game theory belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Compositional game theory to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Compositional game theory from memory before moving on to harder problems.

Reference excerpt

Compositional game theory is a branch of game theory and computer science, which aims to present large complex games as a composition of simple small games.

Motivation A major theme in computer science is the ability to construct simple building-blocks (e.g. functions or procedures in a programming language), and compose them into larger structures (e.g. more complex functions or programs). This principle is also called modularity. In contrast, in classic game theory, even complex games are treated as single, monolithic objects. This makes the analysis of games hard to scale. Compositional game theory (CGT) aims to apply the modularity principle to game theory. The main motivation is to make it easier to analyze large games using software tools.

Higher-order game A higher-order simultaneous game is a generalization of a Simultaneous game in which players are defined by selection functions rather than by utility functions. Formally, a higher-order simultaneous game for n players contains the following elements:

A set R of outcomes. For each player i, a set Xi of choices (possible actions). We define Σ as the Cartesian product of all Xi, and call it the set of strategy profiles. An outcome function, from Σ to R. This function determines, for each combination of actions of the players, what the outcome will be. For each player i, there is a selection function denoted di. The selection function takes as input a context, which is a function from Xi to R; and returns a set of best-responses, which is a subset of Xi. The term "higher-order" comes from the latter element. The best-response correspondence of each player is a higher-order function, as is input is itself a function. Every strategy-profile s1 in Σ, defines for each player i a function from Xi to R: the function maps each possible action xi in Xi to the outcome that would result if all players except i play as in s1, whereas player i switches his action to xi. In other words, s1 defines the context in which player i operates. Given two strategy-tuples s1 and s2 in Σ, we say that s2 is a best-response to s1 if, for each player i, s2,i is contained in the output of di on the context generated by s1. The best-response relation is a binary relation contained in Σ x Σ, denoted by B. In a standard game, instead of the selection function, there is a utility function ui for each player i. A utility function takes as input an outcome from R, and returns a real number. Such a game can be represented as a higher-order game as follows. For each player i, the selection function returns the set of actions from Xi that maximize the utility of agent i, given the context.

Open games The main object of study in CGT is the open game. An open game has the following elements:

A set X of observations; A set Y of outcomes; A set Σ of strategy profiles. A play function P, which is a function from Σ x X to Y; A coplay function C, which is a function from Σ x X x R to S; A best-response function B, which is a function from X x (Y -> R) to a relation in Σ x Σ. It is an abstraction of a higher-order game. Open games can be decomposed in two ways:

In sequence - yielding a sequential game; In parallel - yielding a simultaneous game.

See also Bayesian open games.

External links Open game engine - Haskell code for constructing and analyzing open games. Institute for Categorical Cybernetics - The research institute responsible for the creation of the Open Game Engine and further research on Compositional Game Theory and its applications to Cybernetics

References

Worked examples

Example 1 — a first encounter with Compositional game theory

Start with the simplest possible case. Write down what Compositional game theory claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Compositional game theory before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Compositional game theory ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Compositional game theory

In research
Compositional game theory appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Compositional game theory in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Compositional game theory is common in secondary-school and first-year university syllabi. It links to neighbouring topics Category theory, Game theory, so understanding it makes those chapters shorter.
In everyday life
Look for Compositional game theory outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Compositional game theory” →

How to study Compositional game theory in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Compositional game theory means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Compositional game theory out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Compositional game theory in simple terms?

Compositional game theory is a branch of game theory and computer science, which aims to present large complex games as a composition of simple small games. Motivation A major theme in computer science is the ability to construct simple building-blocks (e.g. functions or procedures in a programming…

Why does Compositional game theory matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Compositional game theory?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Compositional game theory.

Tags

  • Category theory
  • Game theory

Keep exploring