Time in Cartesian Frames

This is the twelfth and final post in the Cartesian Frames sequence. Read the first post here.

Up until now, we have (in the examples) mostly considered agents making a single choice, rather than acting repeatedly over time.

The actions, environments, and worlds we’ve considered might be extended over time. For example, imagine a prisoner’s dilemma where “cooperating” requires pushing a button every day for five years.

However, our way of discussing Cartesian frames so far would treat “push the button every day for five years” as an atomic action, a single element .

Now, will begin discussing how to use Cartesian frames to explicitly represent agents passing through time. Let us start with a basic example.

1. Partial Observability

Consider a process where two players, Yosef and Zoe, collaboratively choose a three-digit binary number. Yosef first chooses the first digit, then Zoe chooses the second digit, then Yosef chooses the third digit. The world will be represented by the three-digit number. The Cartesian frame from the perspective of Yosef looks like this:

.

Here, is a Cartesian frame over .

The four possible environments from left to right represent Zoe choosing 0, Zoe choosing 1, Zoe copying the first digit, and Zoe negating the first digit.

The eight possible agents can be broken up into two groups of four. In the top four possible agents, Yosef chooses 0 for the first digit, while in the bottom four, he chooses 1. Within each group, the four possible agents represent Yosef choosing 0 for the third digit, choosing 1 for the third digit, copying the second digit, and negating the second digit.

Consider the three partitions , , and of representing the first, second and third digits respectively. , where , , , , , and .

Clearly, by the definition of observables, is not observable in . But there is still a sense in which this does not tell the whole story. Yosef can observe for the purpose of deciding the third digit, but can’t observe for the purpose of deciding the first digit.

There are actually many ways to express this fact, but I want to draw attention to one specific way to express this partial observability: can observe .

Indeed, we have

.

It may seem counter-intuitive that when you externalize , and thus take some control out of the hands of the agent, you actually end up with more possible agents. This is because the agent now has to specify what the third digit is, not only as a function of the second digit, but also as a function of the first digit. The agent could have specified the third digit as a function of the first digit before, but some of the policies would have been identical to each other.

The four possible environments of specify the first two digits, while the 16 possible agents represent all of the ways to have the third digit be a function of those first two digits. It is clear that is observable in .

This gives us a generic way to define a type of partial observability:

Definition: Given a Cartesian frame over , and partitions and of , we say is observable in after time if is observable in .

2. Partitions as Time

Built into the above definition is the fact that we are thinking of (at least some) partitions of as representing time. This makes a lot of sense when we think of as a set of possible complete world histories. For any given time, this gives a partition where world histories are in the same subset if they agree on the world history up to that point in time.

For example, the above partition was the partition that we got by considering a time after Yosef chooses the first digit, but before Zoe chooses the second digit.

Further, this gives us a sequence of nested partitions, since the partition associated with one time is always a refinement of the partition associated with an earlier time.

Note that this is a multiplicative/​updateless view of time. There is also an additive/​updateful view of time, in which time is a nested sequence of subsets. In the additive view, possible worlds are eliminated as you pass through time. In the multiplicative view, possible worlds are distinguished from each other as you pass through time. We will focus on the multiplicative view, which I consider better-motivated.

3. Nested Subagents

Let be a fixed Cartesian frame over a world . Let be a sequence of nested partitions of , with , , and a refinement of .

This gives a nested sequence of multiplicative superagents , where , which follows from the lemma below.

Lemma: Given a Cartesian frame over , if and are partitions of and is a refinement of , then .

Proof: Let , and let and send each element of to their part in and respectively. Let , where . Similarly, let, where . Let and send each element of to its part in and respectively.

Since is a refinement of , there exists a , such that . Further, we have that is a refinement of , so there exists a such that

It suffices to show there exist three sets , , and , and a function such that and , where and are given by and .

We will take to be and to be . We define to be the set of all right inverses to , . We will let .

First, we show

We define

and

as follows. Let and be the identity on , and let be given by . Finally, let be chosen to satisfy , where is such that , and for , is chosen arbitrarily to be any preimage of under .

We have that is a morphism, because for all and ,

Similarly, is a morphism, because for all and , we have

where is as given in the definition of . Since and are both the identity, we have that and are both homotopic to the identity, so .

Next, we show

We define

and

as follows. Let and be the identity on , and let be given by . To see that is in , we need to verify that is the identity on . Indeed,

which is the identity on . Let be given by , where is chosen such that for all , , and for not in the image of , . We can do this simultaneously for all inputs of the form , since is injective, since it has a left inverse, .

We have that is a morphism, because for all and , we have

where is as in the definition of . Similarly, is a morphism, because for all and , we have

Since and are both the identity, we have that and are both homotopic to the identity, so , completing the proof.

The sequence represents the agent persisting across time, but each subagent does not really represent a single time-slice of the agent. Instead, represents an agent persisting across time starting at the time .

I think that this is actually the more natural notion. However, if we want to think about an agent persisting across times as a sequence of single times-slices of the agent, we could also do that. Since is a multiplicative subagent of , must have a sister in , so we could consider the sequence .

4. Controllables Decrease and Observables Increase Over Time

An interesting fact about these sequences is that controllables decrease and observables increase over time, so for we have and (and and ), which follows directly from the following two lemmas.

Lemma: Given a Cartesian frame over , if and are partitions of and is a refinement of , then .

Proof: Let , and let . We will actually only need to use the fact that , and that both and have nonempty agents. and do in fact have nonempty agent, because, as we have shown, externalizing a partition of always produces nonempty agents.

It suffices to establish that , and the result for follows trivially.

Since , there exist , , , and such that and , where and are given by and . Let , and let . Observe that and are nonempty.

Since is preserved by biextensional equivalence, it suffices to show that . Let . Thus, there exists some , such that for all , . Since is nonempty, we can take an arbitrary , and observe that for all , . Thus, .

Lemma: Given a Cartesian frame over , if and are partitions of and is a refinement of , then .

Proof: Let , and let and send each element of to their part in and respectively. Let , where . Similarly, let, where . Let and send each element of to its part in and respectively.

Since is a refinement of , there exists a , such that . Further, we have that is a refinement of , so there exists a such that

Let Thus, for every pair , there exists a such that . Thus, we can define an such that for all , .

Our goal is to show that . For this, it suffices to show that for any , there exists a such that .

Let be arbitrary. Given an arbitrary , let be any element that satisfies . This is possible because . It does not matter what does on other inputs. Let be such that for all , .

To complete the proof, we need to show that and .

To show that , we need that for all , . Let be arbitrary. Since , by the definition of , it suffices to show that for all , . Further, since , we already have that for all , . Thus, it suffices to show that for all , either or . Indeed, if , then

and similarly, if , then . Thus, we have that for all , , so for our arbitrary , , so .

Let be such that . We want to show that . Indeed,

Symmetrically, if is such that , we have . Thus .

Thus, since and were arbitrary, we have that , completing the proof.

This result allows us to think of time as a sort of ritual in which control of the world is sacrificed in exchange for ability to condition on the world.

5. Directions for Future Work

As I noted at the start of this sequence, Cartesian frames take their motivation from Hutter, attempting to improve on the cybernetic agent model; they take their angle of attack from Pearl, using combinatorics to infer functional structure from relational structure; and they take their structure from game theory, working with base objects that look similar to normal-form games.

Building up from very simple foundations, we have found that Cartesian frames yield elegant notions of agents making choices and observations, of agents acting over time, and of subagent relations. At the same time, Cartesian frames allow us to switch between different levels of description of the world and consider many different ways of factorizing the world into variables.

I suspect that this is the last post I will write on Cartesian frames for a while, but I am excited about the framework, and would really like to get more people working on it.

To help with that, I’ve commented below with various directions for future work: ways that I think the framework could be extended, made better, or applied.

I’ve erred on the side of inclusion in these comments: some may point to dead ends, or may be based on false assumptions.

If you have questions or want to discuss Cartesian frames, I’ll be hosting a fourth and final office hours /​ discussion section this Sunday at 2pm PT on GatherTown.