Manuscript Offprint
arXiv:2609.09056Time-Varying Data as Sheaves: an Invitation to Narratives
Abstract
Modern science and engineering increasingly rely on time-varying data, yet the mathematical tools used to model temporal phenomena are often developed within separate disciplines, obscuring common principles and limiting the transfer of ideas across fields. This chapter presents the theory of narratives, an abstract framework for time-varying objects of any mathematical kind that supports both theoretical investigations and applications. To illustrate this perspective, the chapter develops three vignettes, each illustrating a different research direction. The first addresses a general concern: What information loss can occur when switching between different representations of temporal data? The second concerns structural and algorithmic approaches: How can we systematically decompose time-varying data into simple pieces and obtain invariants describing its structural complexity? The third is an application to control theory: How can we model multi-agent systems with switching communication topologies? More important than any individual vignette, the central message of this invitation is that a suitable abstract perspective can organize and guide research across remarkably diverse mathematical and scientific domains.
Keywords: Time-Varying Data, Temporal Networks, Categories of Narratives, Temporal Data Structures, Persistent and Cumulative Data, Structured Decompositions, Cellular Sheaves, Multi-Agent Systems, Control Theory
MSC Classification: 18A40, 18F20, 18A25, 05C90, 37B55, 93C85
Contents
1 Introduction 3
2 Background on Narratives: How to Model Time-Varying Data using Sheaves 4
2.1 Categories of temporal data ..... 4
2.2 Changing Perspectives on Temporal Data: The Persistence–Accumulation Adjunction ..... 6
2.3 Systematic Temporalization ..... 7
3 Three Vignettes on Time-Varying Data and the Ensuing Research Directions 9
3.1 Vignette 1: Narratives and the Fixed Points of the Persistence–Accumulation Adjunction ..... 9
3.1.1 Narratives encoding persistence and accumulation simultaneously ..... 11
3.1.2 Factorizing the persistence–accumulation adjunction ..... 13
3.1.3 Classifying narratives by rigidity ..... 19
3.2 Vignette 2: Decomposing Time-Varying Data into Simple Pieces: Structured Decompositions of Narratives ..... 22
3.2.1 Structured decompositions ..... 22
3.2.2 Temporalization of spined sd-categories ..... 24
3.2.3 Temporalizing tree-width: examples ..... 29
3.3 Vignette 3: Temporal Cellular Sheaves: Modelling Multi-agent Systems with Switching Topologies ..... 31
3.3.1 Cellular sheaves for multi-agent systems ..... 31
3.3.2 Category of cellular sheaves ..... 33
3.3.3 Temporal cellular sheaves and switching topologies ..... 35
4 Conclusion and future directions 36
The theory of narratives was designed to address five requirements that arise when one seeks a general mathematical language for time-varying data:
(D1) (Categories of Temporal Data) Any theory of temporal data should define not only time-varying data, but also appropriate morphisms thereof.
(D2) (Cumulative and Persistent Perspectives) In contrast to being a mere sequence, temporal data should explicitly record whether it is to be viewed cumulatively or persistently. Furthermore, there should be methods of conversion between these two viewpoints.
(D3) (Systematic “Temporalization”) Any theory of temporal data should come equipped with systematic ways of obtaining temporal analogues of notions relating to static data.
(D4) (Object Agnosticism) Theories of temporal data should be object agnostic and applicable to any kinds of data originating from given underlying dynamics.
(D5) (Sampling) Since temporal data arises from an underlying dynamical system, any theory of temporal data should be interoperable with theories of dynamical systems.
This chapter collects three recent developments in the theory of narratives. Each is presented as a vignette centered on a different question: (1) how much information is preserved when one changes between persistent and cumulative viewpoints, (2) how the structural complexity of time-varying data can be measured, and (3) how narratives can be used to model multi-agent systems whose interaction structure changes through time. Together, these examples illustrate the broader goals of our research program: by studying time-varying data systematically and abstractly, we can use a unified language to describe many different kinds of questions concerning time-varying data.
The first vignette concerns the adjunction between persistent and cumulative narratives. Since this adjunction is not, in general, an equivalence, converting a narrative from one viewpoint to the other and back may lose information. We introduce narratives valued in a cotwisted arrow category, which encode a persistent component, a cumulative component, and a comparison between them. We then use this category to factorize the persistence–accumulation adjunction and to classify narratives according to whether they can be recovered after either of the two possible round trips.
The second vignette concerns decompositions of time-varying data. Complex objects are often studied by expressing them as composites of smaller pieces and recording how these pieces overlap. Such decompositions also give rise to measures of structural complexity. In the temporal setting, the pieces must themselves vary through time: decomposing each snapshot independently does not record how the pieces persist, merge, split, or disappear. Building on recent work [16], we explain how theories of structured decompositions for static objects can be lifted to persistent narratives. The resulting framework yields decompositions whose pieces are time-varying objects and yields temporal analogues of structural invariants such as tree-width.
The third vignette applies narratives to multi-agent systems whose communication topology changes through time. By taking cellular sheaves as the category of values, a narrative can record both the changing interaction graph and the local state spaces, sensing maps, and compatibility constraints carried by its vertices and edges. The resulting model of a switching system contains substantially more information than a sequence of communication graphs. It also provides a setting in which the relationship between an underlying dynamical system and the temporal data sampled from it can be studied using the same categorical language.
2 Background on Narratives: How to Model Time-Varying Data using Sheaves
2.1 Categories of temporal data
We begin by recalling background on narratives: objects introduced in [15] representing time-varying objects valued in any sufficiently nice category. Narratives are (co)sheaves over categories of time intervals—we call these time categories—which model temporal data by recording how temporal information relates across overlapping intervals of time.
The thesis of [15] is that temporal data should be understood not merely as a sequence of observations, but as a structured system of relations connecting observations across time. For example, a time-varying graph may consist of a family of graphs indexed by time together with morphisms describing how vertices and edges persist, merge, or disappear as time evolves. Narratives capture precisely these additional relations across time. Rather than representing time merely as a totally ordered set, the framework uses categories of intervals, which naturally encode the inclusion relations between time periods.
Definition 1 (Time Categories) A time category is any sub-join-semilattice of l or , where l (resp. ) is the category of closed intervals in (resp. N) with inclusions as morphisms.
Remark 1 (Alternative models of time) Although we focus on interval categories in this chapter, the categorical viewpoint naturally accommodates more general notions of time. For instance, one could replace intervals by a finite branching tree to model branching temporal evolutions, such as the history of a Git repository or the multiple futures envisioned in Borges' The Garden of Forking Paths [17]. Developing such generalized notions of time is an interesting direction for future research.
Example 1 (Finite time categories) If is a time category and , then the slice category , consisting of the intervals contained in , is itself a time category, and the canonical inclusion restricts the temporal domain to the interval . In particular, for every , we write . Its objects are the intervals , ordered by inclusion, so models temporal data consisting of snapshots together with every interval determined by them. For example, consists of the six intervals contained in :

Example 2 (Changing temporal resolution) Suppose that is an interval in a time category , and choose a partition . This partition determines a unique functor
The finite time category models the temporal resolution of determined by the chosen snapshots : the objects correspond to the snapshots, while the objects correspond to the intervals from to .
To speak of sheaves, one must first have a site, that is, a category equipped with a coverage, where, intuitively, a coverage amounts to a systematic way of defining what it means for an object to be “covered” by opens. As shown in [15], time categories become sites when equipped with the Johnstone coverage [18]. Under this coverage, a cover of an interval is generated by a partition into two closed intervals . This reflects the idea that information about a time interval can be reconstructed from information on adjacent subintervals.
Narratives
As we alluded to earlier, narratives—our model for temporal data—consist of sheaves or cosheaves over time categories (viewed as sites, as above). The choice between sheaves and cosheaves is a modelling decision: should the model track data that persists over time (sheaves) or data that accumulates over time (cosheaves)?
Definition 2 (T-sheaves and T-cosheaves) Let be a time category equipped with the Johnstone coverage. If has pullbacks, a -valued sheaf on is a presheaf such that
Dually, if D has pushouts, a D-valued cosheaf on T is a copresheaf such that for any interval and cover ,
Definition 3 (Narratives) Let T be a time category and D a category with pullbacks (resp. pushouts). The category of persistent D-narratives, denoted Pe(T,D) (resp. cumulative D-narratives, denoted Cu(T,D)) consists of D-valued sheaves (resp. cosheaves) on T.
A persistent narrative models information that must remain valid throughout a time interval. The sheaf condition ensures that such information over a larger interval can be reconstructed from data that persist across overlapping sub-intervals. In contrast, a cumulative narrative models information that accumulates over time, with the cosheaf condition expressing that data associated with a longer interval arises from aggregating the data of its sub-intervals. In both cases, a narrative encodes not only observations made at individual moments in time but also the relations describing how these observations evolve and interact across time intervals.
Remark 2 Since persistent narratives are sheaves, their categories can carry an internal intuitionistic logic. In particular, when the target category is Set, or more generally a presheaf category ([C,Set]), categories of discrete persistent narratives form Grothendieck topoi. In [4], this structure is used to define temporal truth values and a propositional language for reasoning about properties that hold at specific times or throughout intervals. The resulting logic is applied to public health models, where it can express temporal properties of individuals and conditions and support reasoning about possible routes of disease transmission in time-varying contact networks.
2.2 Changing Perspectives on Temporal Data: The Persistence-Accumulation Adjunction
Cumulative and persistent narratives are related by the following adjunction [15], which describes how one may change perspective between persistent and cumulative descriptions of temporal data.
Theorem 2.1 (Adjunction between cumulative and persistent narratives [15]) Let D be a category with limits and colimits and T a time category. There exist functors and forming an adjunction:
The functor sends a persistent narrative to its canonical cumulative counterpart . For each interval , its value is defined by
Thus, accumulates the persistent data assigned by to the subintervals of . An inclusion induces a morphism
by the universal property of the corresponding colimits. Thus, records how accumulated data over a smaller time window contribute to the accumulated data over a larger one. Dually, the functor sends a cumulative narrative to its canonical persistent counterpart. For each interval , its value is defined by
Thus, extracts the data compatible across the subintervals of . An inclusion induces a morphism
by the universal property of the corresponding limits. The adjunction is equipped with a unit and counit
For a persistent narrative , the component compares the prescribed persistent data with the persistent narrative reconstructed after passing through its cumulative completion. Dually, for a cumulative narrative , the component compares the cumulative narrative reconstructed from its persistent completion with the original cumulative data.
The functors and do not, in general, form an equivalence of categories. Consequently, passing from one perspective to the other and back need not recover the original temporal structure. Instead, the adjunction replaces the original data by the canonical objects determined by the corresponding colimit and limit constructions. The unit and counit therefore measure the extent to which the persistent and cumulative descriptions agree with these canonical reconstructions. A natural problem is therefore to characterize those temporal structures for which no information is lost. Equivalently, one may ask when the unit or counit of the adjunction is an isomorphism, or, more generally, which narratives are fixed points of the persistence–accumulation adjunction. The first research direction developed in Section 3.1 is devoted to these questions.
2.3 Systematic Temporalization
We now explain how [15] addresses Desideratum (D3), namely the requirement that a theory of temporal data provide systematic procedures for producing temporal analogues of familiar static notions. The guiding observation is that the static theories we care about (graphs, groups, spaces, etc.) are far more mature than their temporal counterparts, and that many static properties are most naturally expressed categorically: either as membership in a subcategory, or as the existence of morphisms from a class of “test objects” (paths, cliques, colorings, and so on). Once phrased categorically, these notions admit canonical lifts to narrative categories.
Changing data types functorially.
A first ingredient is that narratives are functorial in the data category. If C and D are categories of static data and is a data-conversion functor, then postcomposition transports C-valued narratives to D-valued narratives whenever preserves the universal constructions that define the (co)sheaf conditions. Concretely, if is continuous, then for any time category the assignment defines a functor , and dually if preserves colimits then sends cumulative C-narratives to cumulative D-narratives. There is also a contravariant form: if takes limits to colimits (resp. colimits to limits), then composition with switches perspectives, producing a functor from persistent to cumulative narratives (resp. cumulative to persistent). In this way, standard static constructions can be “temporalized” and transported across data types in a principled, functorial manner.
Lifting static properties by change of base.
The second ingredient is a systematic way to lift classes of static objects to classes of narratives. Suppose a static property is presented by a subcategory inclusion (one should think of as the full subcategory of objects of satisfying the property). If is continuous, then the induced functor identifies those persistent C-narratives whose values lie in in a way compatible with the sheaf condition; dually, if preserves colimits, it specifies the corresponding class of cumulative narratives. This reproduces, in the temporal setting, the common pattern from static combinatorics and algebra: properties become subcategories, and temporal analogues become subcategories of narrative categories.
Temporal analogues at a chosen resolution.
While change of base yields a clean lift, it can be too strict in applications: one may only care that a property appears at a particular temporal granularity. The framework in [15] accounts for this by introducing a functorial method for changing temporal resolution. Given a sub-join-semilattice inclusion , precomposition defines a restriction functor sending -narratives to -narratives (persistent-to-persistent and cumulative-to-cumulative). By combining restriction with change of base, one obtains a general notion of a narrative satisfying a static property only on the intervals in : rather than requiring the property at all intervals, one imposes it after restricting to , and defines the resulting class of narratives by a pullback that expresses compatibility between “restriction to ” and “landing in ”. This produces a family of temporal analogues parametrized by resolution, reflecting the empirical reality that certain phenomena are only visible after aggregating over sufficiently large time windows.
Example 3 (Temporal resolution) Recall from Example 2 that a partition determines a functor . Consequently, every D-valued narrative restricts along to the narrative
The resulting narrative is the restriction of to the temporal resolution induced by the chosen partition.
Graph-theoretic case studies: paths, cliques, and dualities.
To demonstrate the machinery recovers familiar temporal notions while adding conceptual clarity, [15] develops graph-theoretic case studies. Path-like behavior is obtained by lifting the subcategory of paths in Graph to a corresponding class of graph narratives; temporal paths in a graph narrative can then be expressed as subobjects of that narrative, recovering the static viewpoint in which many decision problems are homomorphism problems. Temporal cliques are treated similarly: by lifting the subcategory of complete graphs and combining it with a resolution restriction (e.g., requiring completeness only over intervals of length at least ), one recovers standard definitions of temporal -cliques from the temporal-graph literature, but now characterized by morphisms of narratives. This categorical reformulation also exposes dualities: just as cliques and colorings are related by categorical duality in the static setting, temporal analogues inherit corresponding dual notions, and these dualities depend on whether one works cumulatively or persistently.
A key conceptual payoff is that these temporalizations are not ad hoc: they arise from a small number of functorial principles (change of base, change of resolution, and categorical characterizations by morphisms). Moreover, the interaction with the persistent–cumulative adjunction highlights genuine temporal subtleties: for instance, properties defined by stability under pushouts may behave differently from those defined by stability under pullbacks, and changing perspective can therefore change which temporal analogues exist or are well behaved.
3 Three Vignettes on Time-Varying Data and the Ensuing Research Directions
3.1 Vignette 1: Narratives and the Fixed Points of the Persistence–Accumulation Adjunction
The functor sends a persistent narrative to its cumulative counterpart by forming pushouts that encode data accumulated over a given time window. Applying then returns to the persistent viewpoint by computing pullbacks, producing . In general, this pushout–pullback round trip does not recover the original persistent sheaf. More conceptually, because and form an adjunction rather than an equivalence, the composite need not act as the identity on persistent narratives. Equivalently, the unit may fail to be an isomorphism. Thus, passing between these viewpoints may approximate the original temporal structure by its associated limit and colimit constructions. Figure 1 illustrates this phenomenon by exhibiting a persistent narrative for which the unit is not an isomorphism.
The significance of Figure 1 is not merely that the unit fails to be invertible, but why it fails. The span defining the persistent narrative is prescribed data and therefore need not satisfy any universal property. By contrast, the span is built by taking the pullback of the cospan . The unit

(a)

(b)

(c)
Fig. 1: An example showing that the adjunction is not an equivalence. (a) Let be the time category . Consider the persistent narrative Set shown in the figure. Its value at the interval is . (b) Applying yields a cumulative narrative with , which in this case is the singleton . (c) Applying produces a persistent narrative with . Since , the component is not an isomorphism. Hence .
is the canonical comparison between the prescribed persistent data and its canonical approximation via the pushout–pullback round trip.
This observation leads to a natural characterization of the fixed points of the adjunction in the direction . By a fixed point we mean a persistent narrative for which the unit is an isomorphism. Equivalently, as illustrated by the diagram below, this requires the span to coincide with the pullback of its pushout .

This characterization immediately yields a broad class of fixed points whenever the ambient category D is adhesive. Recall that in an adhesive category, pushouts along monomorphisms are Van Kampen [19], and hence are stable under pullback. Consequently, if the span consists of monomorphisms, then the associated pushout square is also a pullback. Therefore, F is a fixed point of the adjunction in the direction .
The discussion above concerns the unit of the adjunction and the recovery of persistent data. Dually, one may study the count and the recovery of cumulative data. Figure 1 already shows that these two behaviors need not agree: panel (b) is recovered after the pullback-pushout round trip, whereas panel (a) is not recovered after the pushout–pullback round trip. This asymmetry motivates the introduction of narratives, which encode persistent and cumulative descriptions simultaneously together with the comparison between them.
3.1.1 Narratives encoding persistence and accumulation simultaneously
Definition 4 (Cotwisted Arrow Category) Let D be a small category. The cotwisted arrow category of D, denoted , is defined as follows.
• Objects are morphisms in D.
• Morphisms from to are pairs of morphisms in D such that the following diagram commutes:
Thus, a morphism in encodes a factorization of through . The notation is mnemonic for the defining commutative square: the superscript reminds the reader that the domain morphism points to the right, whereas the subscript indicates that the codomain morphism points to the left.
• Composition is defined componentwise:
Lemma 3.1 If D has pullbacks and pushouts, then the cotwisted arrow category has pullbacks.
Proof Consider two morphisms in with common codomain,
satisfying . They are depicted in the following diagram.
Form in D the pullback of the span , namely , and the pushout of the cospan , namely . Since and , we obtain
Hence, by the universal property of the pushout, there exists a unique morphism satisfying . Consequently, and are morphisms in whose composites with and coincide.
To verify the universal property, let , , be morphisms in whose composites with and agree. Then and . By the universal property of the pullback, there exists a unique morphism such that , .
Similarly, by the universal property of the pushout, there exists a unique morphism such that , . Moreover,
so is a morphism in . Its uniqueness follows from the uniqueness of and . Therefore, , together with the morphisms and , is the pullback of and in .
We can now define T-sheaves on as follows.
Proposition 3.2 (T-sheaves on ) Let T be any time category equipped with the Johnstone coverage. Suppose that D has limits and colimits (and therefore has limits). Then a -valued sheaf is a presheaf such that: for any interval and any cover of this interval, is the pullback .
Proof Since the Johnstone coverage is generated by binary covers, the sheaf condition requires precisely the existence of the corresponding pullbacks in . By Lemma 3.1, has these pullbacks whenever D has pullbacks and pushouts. The result therefore follows directly from the definition of a sheaf.
Definition 5 We denote by the category of -valued sheaves on T and we call it the category of -narratives with T-time.
A narrative assigns to every interval a morphism in D. The objects form its persistent component, the objects form its cumulative component, and the morphisms compare these two descriptions. Figure 2 illustrates this structure on the category , whose objects are the intervals contained in .
Remark 3 The comparison morphisms need not be isomorphisms, even when . Thus the persistent and cumulative descriptions of the same interval generally contain different kinds of information. For example, in Set or Graph, one may interpret as an attribute map assigning to each element or vertex of a color, label, weight, community, role, or other feature in . In this case, represents the collection of objects and represents the collection of possible attributes, with recording the assignment of attributes to objects. The sheaf structure then encodes how both the objects and their attributes relate across overlapping intervals of time: restrictions on the persistent side track how objects change through time, while restrictions on the cumulative side track the compatibility and evolution of their attributes. The sheaf condition ensures that local descriptions on overlapping intervals can be uniquely assembled into a coherent global account of both the objects and their attributes.
We have constructed the category , whose objects simultaneously encode both the persistent and cumulative descriptions of a temporal object together with the comparison between them. As illustrated in Figure 2, the persistent and cumulative components may each arise either from prescribed data (see Remark 3) or from their respective universal constructions. These independent possibilities will later give rise to the classification of narratives by rigidity (Section 3.1.3).

Fig. 2: A D-narrative on the category , whose objects are the intervals contained in . The upper diagram is its persistent component, the lower diagram is its cumulative component, and the dashed morphisms compare the two. In the case shown, the persistent data , is prescribed data, while is determined by a pullback. On the cumulative side, , and are determined by pushouts.
3.1.2 Factorizing the persistence–accumulation adjunction
Having constructed the category of narratives, we now show that it naturally sits between persistent and cumulative narratives by factorizing the persistence–accumulation adjunction.
Theorem 3.3 The adjunction factorizes through the category via the functors and . That is, both the outer and inner triangles in the following diagram commute:

Equivalently,
Moreover,
The forgetful functors recover the persistent and cumulative components of a narrative by forgetting one side of the comparison morphism:
Conversely, the functors
canonically complete persistent and cumulative narratives into -valued narratives by adjoining their cumulative and persistent counterparts, respectively.
We now construct each of these four functors. Once these constructions are in place, the proof of Theorem 3.3 will follow by verifying that the four triangles commute by construction.
The forgetful functors
We first construct the functors
These arise from the canonical domain and codomain projections of the cotwisted arrow category,
where dom sends an arrow to its domain , while cod sends it to its codomain . On a morphism in , they are given by
Thus dom is covariant, whereas cod is naturally viewed as taking values in .
Proposition 3.4 Composition with dom and cod defines functors
given on objects by
Proof Let be a narrative. For each interval , write
We define on objects by and by . Given a morphism , if , we put and . Since composition in is defined componentwise, both assignments preserve identities and composition. Furthermore, because is a sheaf valued in , applying to each pullback diagram recovers the sheaf condition defining persistent narratives, while applying recovers the corresponding pushout condition defining cumulative narratives. Thus, and . Finally, a morphism of narratives is a natural transformation in , and composing it componentwise with or yields natural transformations between the corresponding persistent or cumulative narratives. Therefore, and define functors.
The cumulative completion
Having constructed the forgetful functors, we now turn to the opposite direction. Our next goal is to show that every persistent narrative admits a canonical cumulative completion into a -valued narrative.
Proposition 3.5 (Cumulative completion of a persistent narrative) There is a functor
that sends a persistent narrative to the narrative
defined as follows. Given an interval , maps it to the object
of , where is the canonical cocone map into the colimit defining . Given an inclusion , maps it to the morphism in
which satisfies the cotwisted commutativity condition:
. Equivalently,
Proof For each interval , the object is defined by the colimit in Equation (1), and
is the corresponding canonical cocone map. If , then is induced by the functoriality of . Moreover, induces a restriction of the canonical cocone defining to a cocone on the diagram defining . By the universal property of the colimit , there is a unique morphism
such that
Hence,
is a morphism in . Functionality of follows immediately from the functoriality of , of , and from the uniqueness of the induced maps between the corresponding colimits.
It remains to show that is a sheaf. Let , and consider the cover . We must show that is the following pullback in .
This square is well defined in . Indeed, is a persistent sheaf, so is the pullback of , whereas is a cumulative narrative, so is the pushout of . Let be an arbitrary object of , together with compatible morphisms and , as in the following diagram.
Equivalently, the following diagram in D commutes.

Since the upper square is a pullback, there is a unique morphism such that and . Likewise, since the lower square is a pushout, there is a unique morphism such that and . Moreover, the commutativity of the outer diagrams implies that , so is a morphism in . Since and are uniquely determined by the pullback and pushout universal properties, respectively, is the unique morphism making the required diagrams commute. Therefore, satisfies the universal property of the pullback in , and hence, is a sheaf.
The persistent completion.
Dually, every cumulative narrative admits a canonical persistent completion into a -valued narrative.
Proposition 3.6 (Persistent completion of a cumulative narrative) There is a functor
that assigns to each cumulative narrative the -valued narrative defined as follows.
- On objects , the sheaf assigns the morphism
viewed as an object in the cotwisted arrow category . The morphism is the limit cone morphism from to the object .
• On morphisms in T, the sheaf assigns the morphism in
which satisfies the cotwisted commutativity condition
. Explicitly,
Proof The construction is the categorical dual of Proposition 3.5. For each interval , the object is defined by the limit in Equation (2), with canonical cone morphism . Given an inclusion , the universal property of the limit induces a unique morphism satisfying . Hence is a morphism in , and these assignments define the functor .
To verify the sheaf axiom, let be a cover of . Given an arbitrary object of together with compatible morphisms to and , since is a cumulative narrative, is the pushout of , while is a persistent narrative, so is the pullback of . The universal properties of the pushout and the pullback yield unique morphisms and , which satisfy the cotwisted compatibility condition and therefore determine the unique morphism in . The verification of this compatibility is exactly dual to that in Proposition 3.5, and is therefore omitted.
Proof of Theorem 3.3 The functors involved are well defined by Proposition 3.4, Proposition 3.5, and Proposition 3.6. It remains to verify the identities
For , we have and, for every inclusion , . Hence,
so and .
Similarly, for , we have and, for every inclusion , . Hence,
so and .
3.1.3 Classifying narratives by rigidity
Since is valued in the cotwisted arrow category, it canonically determines, for every interval , a comparison morphism
where
Applying the completion functors to the persistent and cumulative components of X produces the narratives
By construction of the functors and , the structure morphism of at an interval is the component
of the unit of the adjunction, while the structure morphism of is the component
of the count. These assemble into natural transformations
and
which we call the canonical comparison morphisms associated to the narrative X. These comparison morphisms measure how closely the persistent and cumulative descriptions encoded by a narrative agree with the canonical ones determined by the persistence–accumulation adjunction. This observation motivates the following rigidity classification of narratives.
Definition 6 (Left rigid narrative) A narrative is called left rigid if the comparison morphism
is an isomorphism.
Equivalently, the persistent component of X is completely recovered after passing to its canonical cumulative completion and back.
Example 4 (Spans of monomorphisms in adhesive categories) Assume that the ambient category D is adhesive, and let be a narrative whose persistent component
consists of monomorphisms. Since pushouts along monomorphisms are Van Kampen [19], the associated pushout square is also a pullback. Hence, , and therefore, is left rigid.
This class of examples is particularly relevant in double-pushout graph rewriting, where rewriting rules are represented by spans of monomorphisms in adhesive categories [19, 20]. Consequently, for this broad class of graph transformations, the passage from persistent to cumulative descriptions and back preserves the original persistent description.
Remark 4 It is worth emphasizing that the converse need not hold. Although adhesive categories guarantee that spans of monomorphisms are preserved by the pushout–pullback composite, they do not in general imply that cospans are preserved by the pullback–pushout composite. Thus, even in adhesive categories, left rigidity does not automatically imply right rigidity.
Definition 7 (Right rigid narrative) A narrative is called right rigid if the comparison morphism
is an isomorphism.
Equivalently, the cumulative component of X is completely recovered after passing to its canonical persistent completion and back.
Example 5 (A right rigid narrative) Consider the narrative X given by:

Applying to the cumulative component computes the pullback . Applying to the persistent narrative computes its pushout, which is again the singleton . Therefore, the count is an isomorphism. Hence, is right rigid. Moreover, is not left rigid. Indeed, has apex , while has apex . Hence the unit is not an isomorphism.
Definition 8 (Rigid and loose narratives) A narrative is called
• rigid if it is both left rigid and right rigid;
• loose if it is neither left rigid nor right rigid.
Example 6 (Rigid narratives) The simplest examples of rigid narratives are the constant ones. Let . The constant narrative is the -valued sheaf defined by for every interval , with every restriction morphism equal to . Since both the persistent and cumulative components are constant, one has
Hence X is rigid. More generally, the same conclusion holds whenever the morphisms of the narrative are isomorphisms. Indeed, replacing the identities above by arbitrary isomorphisms does not change either the pullback or pushout constructions up to canonical isomorphism, so both comparison morphisms remain isomorphisms. Consider, for instance:

The persistent component is already the pullback of the cospan \{a\} \xrightarrow{c_l} \{*}\xleftarrow{c_r} \{b\}, while the pushout of this pullback is again the singleton \{*}.
Example 7 (Loose narratives) Loose narratives already appear in very simple categories. Consider the poset category , whose objects are natural numbers and in which there exists a unique morphism precisely when . In this category, pullbacks are given by meets , while pushouts are given by joins .
Consider the narrative

Its domain is the span , and applying the completion functors yields and , which is not isomorphic to . Thus, is not left rigid. Likewise, its codomain is the cospan , and applying the completion functors gives and , which is not isomorphic to . Hence, is not right rigid, and therefore it is loose.
The central question explored in this vignette is when persistent and cumulative descriptions determine one another exactly. Investigating the fixed points of the persistence–accumulation adjunction naturally leads to the category of narratives, which simultaneously records both descriptions together with the comparison between them. This approach provides a specialized framework for systematically investigating the conditions—relating to data category and temporal data assignments—under which information is preserved as one transitions between persistent and cumulative representations.
3.2 Vignette 2: Decomposing Time-Varying Data into Simple Pieces: Structured Decompositions of Narratives
Complex data, whether static or time-varying, is often easier to understand and analyze when it is represented as a composite of smaller or simpler pieces. Thus, in this section, we ask: how does one decompose complicated time-varying data into simpler pieces in a systematic way? A decomposition serves two roles: (1) it divides an object into component pieces, and (2) it records how these pieces overlap, so that the original object may be reconstructed by gluing them together. Thinking about this with a more topological slant, there is a sense in which this section is about seeking simple coverings of a temporal object by small, time-varying pieces, analogous to open sets, whose evolution and mutual compatibility are themselves tracked through time.
Our goal is to obtain an invariant of the structural complexity of a time-varying object by measuring the complexity of the pieces in its decompositions and their overlaps. These pieces must themselves form time-varying objects, with structure maps recording how they persist, merge, split, or disappear. It is not enough to decompose each snapshot independently: the pieces of the decomposition must also capture the evolution of the global structure. We seek a method that reuses theories of decomposition for static data instead of defining a new notion for each temporal setting. This section is based on the recent paper by Bumpus and Nickel [16] whose main result provides such a method by lifting theories of decompositions from static objects to persistent narratives.
3.2.1 Structured decompositions
In this section, we use narratives to construct a temporalized theory of structured decompositions, which were introduced in [21] and provide a category theoretical generalization of tree-decompositions. The goal of our approach is to split time-varying data systematically into smaller components, providing a formal framework for dealing with temporal systems. This is an instance of the broader principle of compositionality, which states that the meaning or behaviour of a complex system is completely determined by the meanings or behaviours of its constituent parts and the rules governing their connections.
Breaking complicated data into simpler pieces has already proved useful in many areas of mathematics and computer science, particularly in graph theory, logic, algorithms, and complexity theory. Prominent examples include Robertson and Seymour's graph structure theorem [22] and Courcelle's theorem [23].
Here, a graph means a diagram from the category to the category Set of sets. Thus, a graph in this sense is the same as a quiver in representation theory and as a copresheaf on in category theory. In particular, our graphs are directed and are allowed to possess loops and multiple edges. Given a graph , we denote the set of its vertices by and the set of its edges by . We write Grph for the wide subcategory of the functor category whose objects are the graphs. Its morphisms are simply natural transformations between graphs, also called graph morphisms.
Tree-decompositions.
Originally introduced by Halin in 1976 [24], the notion of a tree-decomposition (see Definition 9) was rediscovered in 1984 by Robertson and Seymour [25] and has since played an essential role in structural and extremal graph theory, as well as in various other areas of mathematics and computer science. For instance, tree-decompositions have proved to be a convenient tool in matrix decomposition [26], query optimization [27], and dynamic programming [28]. They are also frequently used to solve constraint satisfaction problems [29] and in junction tree algorithms for probabilistic inference [30]. Robertson and Seymour themselves used tree-decompositions as a crucial component of their celebrated graph structure theorem [22], which establishes a profound connection between graph minor theory and the theory of topological embeddings. Its significance is further illustrated by applications to the disjoint paths problem [31], Sachs' linkless embedding conjecture [32], and Courcelle's theorem [23].
Moreover, tree-decompositions have proved very useful for investigating compositional structures. They serve as an efficient topological tool for tackling algorithmic graph problems and have been used to improve the efficiency of dynamic programming. For example, with the aid of tree-decompositions, several algorithmic problems that are NP-hard on arbitrary graphs may be solved efficiently by dynamic programming on graphs of bounded tree-width. A concrete example is the problem of finding a maximum independent set in graphs of bounded tree-width.
To acknowledge the benefit of structured decompositions (see Definition 12) we make the notion of ordinary tree-decompositions precise.
Definition 9 A tree-decomposition of a graph is a pair consisting of a tree and a family of vertex sets indexed by the vertices of and satisfying the following two conditions:
(T1) where denotes the subgraph of induced by .
(T2) For each vertex of , the induced subgraph is connected.
We call the decomposition tree or the model of the decomposition. The subsets are called the bags, and the induced subgraphs are the corresponding parts.
Intuitively, a tree-decomposition reveals the global structure of a graph whenever that structure is tree-like. An example of a tree-decomposition is shown in Figure 3.

Fig. 3: A tree-decomposition of a graph (on the left-hand side) and its decomposition tree (on the right-hand side).
Tree-width.
Tree-decompositions also provide a convenient tool for constructively computing the tree-width of a graph, as explained below. Originally introduced by Bertelè and Brioschi, the notion of tree-width has become indispensable in mathematics and computer science. For instance, [33] provides a revealing overview of major applications of tree-width and more general notions of graph width that have been developed from the classical tree-width parameter to capture a broader range of contexts.
The tree-width of a graph measures the extent to which the structure of resembles that of a tree. Indeed, the tree-like structure of the graph is reflected in the parts of its decomposition: the smaller these parts are, the more tree-like is.
Definition 10 The width of a tree-decomposition is the maximum order of its bags minus one, . The tree-width of a graph is the minimum width of its tree-decompositions,
where the minimum is taken over all tree-decompositions of .
The reason for the “minus one” in the definition of the width of a tree-decomposition is to ensure that the tree-width of any tree is one, as expected from a reasonable measure of structural tree-likeness.
Category theoretical generalization.
To provide a general category-theoretical framework for tree-decompositions and extend their scope of application, the notion of structured decompositions and, more specifically, spined structured decomposition categories (or simply spined sd-categories) was introduced in [21]. These provide a unified axiomatic setting for studying tree-width and its generalizations. The framework recovers several notions of graph width, including ordinary tree-width, complemented tree-width, tree independence number, hypergraph tree-width, and layered tree-width. Thus, spined sd-categories capture the classical notion of tree-width together with many of its variants. We define them explicitly in Definition 12.
3.2.2 Temporalization of spined sd-categories
Need for temporalization.
Structured decompositions are concerned only with static graphs, meaning graphs in the traditional sense, consisting merely of a set of vertices together with a set of edges connecting them. When applying the existing concepts and results to time-varying data, however, this conventional notion of a graph is no longer sufficient. Many systems of interest evolve over time, and traditional graph-theoretical techniques ignore this temporal dimension. To capture such evolution, a variety of notions of temporal graphs have been introduced. These differ in how they represent temporal information and the evolution of the underlying graph. For an overview of the diversity of existing approaches, we refer to [34–39].
Motivated by the increasing use of temporal graphs to model time-dependent data, we develop a notion of spined sd-categories for time-varying graphs and, more generally, time-varying structures. This is the main objective of the remainder of this section, which is based on [16].
Combining spined sd-categories and narratives
To temporalize spined sd-categories, we reinterpret the theory of structured decompositions developed in [21] within the framework of persistent and cumulative narratives developed in [15]. This yields a time-dependent generalization of spined sd-categories.
Structured decompositions
Definition 11 Let be a graph. Its barycentric subdivision is the category obtained from by replacing each vertex with an object and each edge , with endpoints and , by an object together with morphisms and , that is, a span .
Example 8 The barycentric subdivision of the triangle depicted on the left is the category visualized on the right.


Definition 12 Let be a graph, and let be a category. A -structured decomposition in is a functor of shape with the property that for every morphism in , its image under is a monomorphism in .
Relevance of structured decompositions and schematic visualizations
We illustrate the breadth of structured decompositions by discussing four examples from different mathematical domains, accompanied by schematic visualizations.
(1) Tree-decompositions. As already mentioned, the development of structured decompositions was originally inspired by tree-decompositions in graph theory, making them perhaps the most prominent example. These combinatorial objects can be described as tree-shaped structured decompositions with values in the category Graph of graphs, that is, functors of the form for some tree . Replacing with an arbitrary graph leads to the more general notion of a graph-decomposition, studied, for example, in [40, 41].
The notion of graph-decompositions moreover gives rise to a wide variety of combinatorial width parameters measuring the structural resemblance of a graph to a given graph model, such as a tree, a path, or a cycle. Examples include the classical tree-width together with many of its variants, as discussed in [21, Chapter 3].

Fig. 4: The cycle , the category and a -shaped structured decomposition of graphs.
Figure 4 shows a structured decomposition in the category Grph of graphs shaped by the cycle of length five, together with the cycle itself and its barycentric subdivision . The functor sends each object of corresponding to a vertex of the graph to a complete graph.
(2) Hybrid dynamical systems. In his thesis [42], Ames establishes a category-theoretical framework for the study of hybrid dynamical systems, that is, dynamical systems with both continuous and discrete components. The thesis introduces the notion of a hybrid object in a category C, defined as a functor from a so-called D-category to C, which may be viewed as a special case of a structured decomposition.
To illustrate this concept, consider a structured decomposition in the category Man of topological manifolds and continuous maps, shaped by the path of length three, as shown in Figure 5. We observe that the map , from the topological unit circle to the torus (the closed orientable surface of genus one), is homotopic to a constant map. Likewise, the map , where denotes the closed orientable surface of genus two, is homotopic to the composite .
(3) Graphs of groups. The fundamental objects of Bass–Serre theory, namely graphs of groups, are precisely structured decompositions valued in the category of groups and group homomorphisms [43–45]. Restricting to structured decompositions shaped by trees recovers the setting of Bass–Serre theory, in which such decompositions correspond to well-behaved group actions on trees.
As an example, we consider the fundamental groups of the manifolds in the image of the functor from the previous example, thereby obtaining a -shaped structured decomposition in the category Grp of groups, shown in Figure 6. More precisely, this is the composition of the previous structured decomposition in Man with the fundamental group functor . In the upper part of the figure, we illustrate closed curves in , , and generating the corresponding fundamental groups, while the lower part visualizes the resulting structured decomposition of fundamental groups.

Fig. 5: The path , the category and a -shaped structured decomposition of manifolds.

Fig. 6: A -shaped structured decomposition of groups (lower part), obtained by computing the fundamental groups of the manifolds in Figure 5 with the chosen generators (upper part).
As expected, the homotopic maps induce the same group homomorphism , namely the trivial homomorphism. Likewise, the homotopic maps induce the same homomorphism , namely .
(4) Cellular sheaves. Cellular sheaves encode local-to-global interactions in systems built from graphs, simplicial complexes, and cell complexes [46]. Later in this chapter, we use them to model multi-agent systems with time-varying communication topologies, illustrating an application of narratives to control theory developed in [47]. From the perspective developed here, cellular sheaves arise naturally as the dual notion to structured decompositions: they are structured co-decompositions valued in the category Vect of real vector spaces and linear maps. We nevertheless retain the terminology of cellular sheaf theory in order to align with the existing literature on control theory and multi-agent systems.
Spined sd-categories
Definition 13 Let D be a category, and let be a class of graphs including the trivial graph with exactly one vertex and no edge. The pair is said to be a structured decomposition category, or simply, an sd-category, iff every structured decomposition in with admits a colimit. We call the index class of .
Definition 14 A spine on a category is a family of increasing subcategories
with the following additional properties:
- The union is closed under isomorphic objects in , and for any , is closed under isomorphic objects as a subcategory of .
• For every object , there exists an object for some integer together with a monomorphism in .
• Given an integer and objects of and of along with a monomorphism in , then is already contained in .
A spined sd-category is a triple where is an sd-category and is a spine on .
Combining persistent narratives and spined sd-categories
We begin with the persistent perspective; the cumulative perspective and the relation between the two are discussed in Section 4. Let T be a finite discrete time category, let be a sub-join-semilattice, and let denote the inclusion functor. Furthermore, let be a spined sd-category satisfying the following additional condition.
(T1) The category D and its subcategories admit all pullbacks, the inclusion functors preserve pullbacks, and each is full in D.
In particular, post-composition with provides a well-defined functor
which we call the covariant change-of-base functor. Similarly, we have a change-of-temporal-resolution functor defined by pre-composition with the opposite of :
The same holds when replacing the category T by S and D by , for .
For each , we consider the following pullback square of categories and functors:
We define to be the image of the pullback category under , so this is the subcategory
Lemma 3.7 For every integer , is the full subcategory of whose objects are those persistent narratives whose value at any time interval in is contained in .
Theorem 3.8 Let again be a finite discrete time category, let be the inclusion of a sub-join-semilattice , and let be a spined sd-category satisfying (T1). Furthermore, suppose that the following conditions hold.
(T2) The category is cocomplete, that is, it admits all small colimits.
(T3) The inclusion functor admits a left adjoint whose restriction to is the identity functor.
Then the pair is an sd-category.
Since is both a left adjoint and a retraction of the inclusion functor, it can be regarded as a sheafification functor. In Example 9, where is the category Graph of graphs, is induced by the usual sheafification functor for set-valued presheaves.
By adding one final axiom, we arrive at the notion of a temporalized spined sd-category.
Theorem 3.9 As before, let be a finite discrete time category, and let be the inclusion of a sub-join-semilattice . Let be a spined sd-category that satisfies the axioms (T1), (T2) and (T3) as well as
(T4) The category admits pushout squares along monomorphisms and these are also pullback squares. Moreover, monomorphisms are stable under pushouts.
Then the subcategories with define a spine on , thereby exhibiting the sd-category of Theorem 3.8 as a spined sd-category .
Theorem 3.9 allows measures of complexity to be lifted from the static to the time-varying setting. A complete proof is given in [16].
3.2.3 Temporalizing tree-width: examples
In ordinary graph theory, the notion of tree-width is typically defined by means of tree-decompositions, as explained in Paragraph 3.2.1. The category-theoretical framework of spined sd-categories [21] extends this concept to arbitrary structured decompositions. More precisely, given a spined sd-category , each object of is assigned a -size [21, Definition 2.5.4]. We restrict attention to spined sd-categories in which the subcategories are full, in which case the definition simplifies as follows.
Definition 15 The -size of an object is the minimum non-negative integer for which there exists an object together with a monomorphism in . The resulting map , is called the size function of .
The size function allows the notions of tree-width for tree-decompositions and graphs to be extended to width notions for structured decompositions and objects of arbitrary spined sd-categories, respectively.
Definition 16 The width of a structured decomposition with is the maximum -size of its bags minus one:
Now, the -width of an object of is defined as the minimum -widths of all structured decompositions with whose colimit is isomorphic to :
Section 3 of [21] shows that many classical graph width parameters are recovered as instances of this general notion by choosing appropriate spined sd-categories. This justifies spined sd-categories as a unified framework for generalized tree-widths.
To justify the temporalization of spined sd-categories and the resulting notions of time-varying structured decompositions and -width, we consider three classical graph width parameters. For each, we exhibit a spined sd-category whose temporalization via Theorem 3.9 yields a natural time-varying analogue of the corresponding width notion. Specifically, we consider ordinary tree-width (Definition 10), complemented tree-width, and the tree independence number.
Example 9 (Ordinary tree-width). Proposition 3.1.1 in [21] shows that the category Grph together with the class of all trees and the full subcategories containing the complete graphs of order at least is a spined sd-category whose associated notion of width is the ordinary tree-width of a graph. To apply our temporalization method of Theorem 3.9, we need to replace Grph by the category of reflexive graphs, meaning those graphs with precisely one loop at each vertex.
Proposition 3.10 For any finite discrete time category and any sub-join-semilattice , induces a temporalized spined sd-category , whose size function takes any persistent narrative to the maximum order among the graphs with ,
The -size of a structured decomposition for any tree can be shown to be
where is obtained from by evaluation at . Since is the ordinary tree-width of a graph, we thus recover maximum tree-width, which is a well-known generalization of tree-width for temporal graphs.
Example 10 (Complemented tree-width). The complemented tree-width of a graph is the ordinary tree-width of its complement , the graph with the same vertex set as and with an edge between two vertices if and only if these vertices are non-adjacent in . Let be the category whose objects are the undirected graphs and whose morphisms from to are graph morphisms of complements . By [21, Proposition 3.3.4], is a spined sd-category where is the full subcategory of whose objects are all edgeless graphs of order at most . Its associated width notion is complemented tree-width.
Proposition 3.11 For any sub-join-semilattice of a finite discrete time category , induces a time-varying spined sd-category . Its width notion is given by the maximum complemented tree-width over .
Modifying the spine on appropriately will give rise to the tree independence number of a graph, discussed in the next example.
Example 11 (Tree independence number). The independence number of a graph is the maximum number of pairwise non-adjacent vertices. The tree independence number of a tree decomposition is the maximum independence number of its bags minus one, and the tree independence number of a graph is the minimum one among all its tree decompositions. For any , let denote the full subcategory of whose objects are the graphs of independence number . Then by [21, Proposition 3.4.5], they define a spine on making the triple to a spined sd-category, whose width notion is the tree independence number.
Proposition 3.12 Given and as usual, the above spined sd-category induces a temporalization . Its size function is given by the maximum independence number of graphs, so its associated width notion recovers the maximum tree independence number over .
3.3 Vignette 3: Temporal Cellular Sheaves: Modelling Multi-agent Systems with Switching Topologies
This vignette outlines an ongoing research program developing category-theoretic and sheaf-theoretic methods for control, with current applications to control barrier functions and multi-agent systems [47, 48]. Building on these ideas, we focus here on multi-agent systems with switching communication topologies [47]. Such systems arise in applications ranging from robotic swarms and autonomous vehicles to sensor networks and distributed optimization, where the communication graph changes over time due to mobility, communication failures, or environmental constraints [5, 6, 49, 50].
A common approach represents the communication topology by a graph whose vertices correspond to agents and whose edges represent communication links [5, 49]. This graph captures the connectivity of the network and provides the underlying structure for many distributed control algorithms. The communication graph, however, captures only who communicates with whom. The dynamics of the agents, the information they exchange, the sensing mechanisms, and the transformations performed along communication links must be modeled separately. Because these additional structures are usually introduced in an application-specific manner, it is difficult to develop a unified mathematical framework encompassing heterogeneous multi-agent systems.
3.3.1 Cellular sheaves for multi-agent systems
Cellular sheaves offer a mathematical model for the additional structures required in heterogeneous multi-agent systems [51, 52]. They assign (potentially different) vector spaces to agents and communication links, together with linear maps describing how information is measured, communicated, or transformed locally. This construction naturally accommodates heterogeneous state spaces, sensing mechanisms, communication protocols, and local information-processing rules. In this way, the communication graph specifies who communicates with whom, while the cellular sheaf specifies what information is associated with each agent and communication link, and how that information is transformed.
Categorically, a cellular sheaf is simply a functor
where denotes the incidence category of the communication (directed) graph . Its objects are the faces of (vertices and edges), and its morphisms are precisely the incidence relations: for every edge , there are morphisms and . Figure 7 illustrates this construction.

Fig. 7: From left to right: the directed communication graph , whose vertices represent agents and whose edges and represent directed communication links; its incidence category , whose objects are the faces of , namely its vertices and edges, and whose morphisms record the incidence relations; and the diagram determined by the cellular sheaf . In this example, assigns the vector space to every object of , equivalently to every face of , together with linear maps associated with the incidence morphisms. These maps encode the local sensing, communication, and information-processing relations of the network.
Remark 5 (Cellular sheaves as structured co-decompositions) Notice that cellular sheaves are instances of the structured co-decompositions considered in Section 3.2 since the incidence category of a graph is isomorphic to . Thus, a cellular sheaf is equivalently a contravariant functor from , and hence a -shaped structured co-decomposition of vector spaces. Equivalently, after taking opposites, it may be regarded as a functor . When the cellular sheaf maps are epimorphisms in Vect, they become monomorphisms in , so that is a structured decomposition in the sense used earlier in this chapter. To match the terminology of control theory, multi-agent systems, and the cellular-sheaf literature, we refer to these objects as cellular sheaves throughout this section.
The functorial viewpoint is essential because it guarantees that the local models assigned to agents and communication links are compatible with the communication topology. Rather than specifying local state spaces, sensing maps, and communication rules independently, functionality requires them to respect the incidence relations of the graph. Consequently, the resulting cellular sheaf represents a globally consistent information-processing architecture for the multi-agent system.
3.3.2 Category of cellular sheaves
To model systems whose communication topology changes over time, we must also specify how one cellular sheaf transforms into another. This requires a suitable notion of morphism between cellular sheaves, capturing both the evolution of the underlying communication graph and the induced transformation of the associated local state data. This leads naturally to the category of cellular sheaves.
Definition 17 (Category of cellular sheaves) The category CellSh is defined as follows.
-
Its objects are cellular sheaves , where is a finite directed graph.
-
A morphism consists of a functor and a natural transformation , as shown below.

We first examine the functor appearing in a morphism . Recall that the objects of are the agents and communication links of , while its nonidentity morphisms encode incidences between them. Thus, specifies how the communication topology is represented inside, or transformed into, the communication topology . Because is functorial, it preserves incidence relations: whenever an agent is incident to a communication link in , its image must be incident to the image of that link in .
The following examples illustrate increasingly sophisticated ways in which a functor between incidence categories may arise in applications, beginning with subsystem inclusions, progressing to a coarse-graining of agents into teams, and culminating in switching communication topologies.
Example 12 (A subsystem of a system) Let be a subgraph of . The inclusions of vertices and edges determine a functor that sends every agent and communication link of to the corresponding cell of . Functionality follows because incidences in remain incidences in .
Example 13 (Aggregation of agents into teams) Hierarchical control often requires reasoning simultaneously at different levels of abstraction [53–55]. At the lower level, individual agents communicate through a detailed network, while at the higher level, groups of agents are treated as teams interacting through a coarser communication topology. A functor between the corresponding incidence categories relates these two descriptions.
Consider the path graph , representing four communicating agents. Suppose that agents 1 and 2 form team , while agents 3 and 4 form team . The team-level communication graph therefore consists of two vertices, and , connected by a single edge . The aggregation is described by a functor
defined by
and

The color coding displays the aggregation. The objects 1, 2, and 12 share the color of team , while 3, 4, and 34 share the color of team . Accordingly, the intra-team links 12 and 34 are mapped to the team objects and , respectively. Their incidence morphisms are therefore mapped to the corresponding identity morphisms, shown as loops in the team-level category. This expresses that communication within each team is black-boxed in the coarse description.
By contrast, the link 23 and its incidence morphisms share the color of the edge and its incidence morphisms. Thus, the communication between the two teams remains visible as a nontrivial edge at the team level.
Example 14 (Switching topologies) Consider a multi-agent system whose communication topology changes over time. Let and denote the communication graphs at two time instants . Both may be viewed as communication subgraphs of a larger graph describing every communication link that appears during the entire time horizon. The corresponding inclusion functors
admit a pullback
whose apex identifies precisely the agents and communication links common to both topologies. The resulting span therefore represents the communication subsystem that persists across the transition from to .
The second component of a morphism of cellular sheaves is given by a natural transformation . For every incidence morphism in , naturality requires the commutativity of
Thus, performing the local computation prescribed by and then communicating the resulting information via to yields the same result as first communicating the local data from to and then perform the corresponding local computation in . In this sense, a morphism makes the local information-processing rules of the two systems compatible with the information processing protocol within each system.
Example 15 (Persistent information across a topology change) Consider the switching-topology setting of Example 14. We use this situation to illustrate the form of morphisms in the category of cellular sheaves. Let

where , , and are cellular sheaves on the communication topologies , , and , respectively. Since the communication topologies and the functors and have already been specified, defining morphisms of cellular sheaves amounts to specifying natural transformations
together with these functors, define the morphisms of cellular sheaves
The natural transformations and assign compatible linear maps to every persistent agent and communication link. Consequently, the communication subsystem that survives the topology change is accompanied by a coherent identification of the local state spaces, sensing maps, and communication constraints at both time instants.
3.3.3 Temporal cellular sheaves and switching topologies
To model multi-agent systems with switching communication topologies as temporal narratives, we need the category of cellular sheaves to have the required structure. The following lemma, proved in [47], establishes precisely this fact.
Lemma 3.13 The category CellSh admits pullbacks and pushouts.
Consequently, all the constructions developed in Section 3.1 apply with .
Definition 18 (Temporal cellular sheaf) A temporal cellular sheaf is a CellSh-valued narrative, that is, a sheaf
Thus, each interval is assigned a morphism of cellular sheaves , where and model the persistent and cumulative aspects of the multi-agent system over the interval , respectively, while relates the two descriptions. The sheaf condition reconstructs the persistent component by pullbacks and the cumulative component by pushouts, so that both the communication topology and the associated sensing and interaction maps evolve coherently through time.
The principal advantage of temporal cellular sheaves is that they model not only the communication topology at each time instant but also the structural relationships between communication topologies across time intervals. Thus, instead of viewing a switching multi-agent system as a sequence of independent communication graphs, the narrative records how information persists and accumulates as the communication architecture evolves.
Within this framework, distributed coordination problems such as consensus, formation control, and target tracking can be formulated categorically. The dynamics of the agents evolve on the vector spaces assigned by the cellular sheaves, while the temporal narrative specifies how these local dynamical models are related as the communication topology changes.
Current work investigates the stability theory of temporal cellular sheaves, building on recent sheaf-theoretic approaches to distributed control together with classical Lyapunov methods for switching systems. The objective is to characterize how changes in the communication topology interact with the evolution of distributed state variables, and to establish sufficient conditions under which target-tracking errors remain bounded and converge despite topology switches. This research program is currently being developed in [47].
4 Conclusion and future directions
One of the strengths of the narrative framework is that it is largely independent of the nature of the objects evolving through time. Once an appropriate target category has been identified, the same theory immediately yields a coherent framework for modeling temporal phenomena across a wide range of applications. The three research directions presented in this chapter illustrate this flexibility from complementary perspectives: the first investigates the categorical structure of the persistence–accumulation adjunction through the category of narratives and its induced factorization of the adjunction, the second explores temporal analogues of structured decompositions, and the third instantiated the framework in the category of cellular sheaves to model multi-agent systems with switching communication topologies.
Towards a characterization of the fixed points of the adjunction
The factorization of the persistence–accumulation adjunction through the category of narratives introduces a setting in which persistence and accumulation are no longer viewed as separate constructions, but as two complementary descriptions of the same temporal object. The resulting rigidity classification measures the extent to which these descriptions determine one another. Rigid narratives coincide with the canonical completions induced by the adjunction in both directions. Left-rigid narratives preserve their persistent description under the persistence–accumulation round trip, right-rigid narratives preserve their cumulative description, while loose narratives lose information in both directions.
The rigidity classification also opens several directions for future research. A first natural question is to determine which rigidity classes arise in a given ambient category and how they reflect its structural properties. More generally, one may seek intrinsic categorical characterizations of left, right, and rigid narratives, as well as investigate how rigidity behaves under products, limits, colimits, functorial changes of the ambient category, and other categorical constructions. Beyond their intrinsic categorical interest, these questions contribute to a broader understanding of information-preserving changes of perspective, including those arising in data science.
Structured decompositions of cumulative narratives
By virtue of the tight relation between persistent and cumulative narratives, as revealed in Section 2.2, it is desirable to temporalize structured decompositions and width also from the cumulative point of view. More specifically, under dual assumptions of Theorem 3.8, we may form a pullback square
We define to be the image category of the functor . If we dualize the assumptions of Theorem 3.9, do we again obtain a spined sd-category of the form ? How does the proof change?
A second direction is to investigate the relationship between the persistent and cumulative temporalizations of spined sd-categories. As exposed in Theorem 2.1, given any time category T and a category D that is both complete and cocomplete, then there exists a pair of adjoint functors
It would be interesting to investigate the following questions, assuming the setting of Theorem 3.9 together with the dual assumptions:
• Are the above adjoint functors sd-functors in the sense of [21, Definition 2.7.1]?
• Are they even width-preserving in the sense of [21, Definition 2.7.8]?
• If not, can this be guaranteed by modifying the assumptions appropriately?
It would be desirable to have an adjoint pair of width-preserving sd-functors between the persistent and cumulative temporalized spined sd-categories. This would not only reveal a fundamental relation between the persistent and cumulative perspectives but also allow a convenient transfer between concepts and results for persistent narratives to cumulative ones and vice versa.
Temporal cellular sheaves: modelling multi-agent systems with switching topology
Temporal cellular sheaves demonstrate how the narrative framework applies naturally to heterogeneous multi-agent systems with switching communication topologies. Choosing cellular sheaves as the target category allows the framework to encode not only the evolution of the communication architecture but also the heterogeneous sensing, communication, and information-processing structures associated with it. This establishes a categorical foundation for studying distributed control problems on time-varying communication networks.
A natural next step is to endow temporal cellular sheaves with dynamical systems evolving on the vector spaces assigned to their cells. This raises the problem of understanding how the dynamics interact with topology changes and with the persistent and cumulative structures encoded by the narrative. Of particular interest is the development of a stability theory for the sheaf-theoretic description of switching communication networks, leading to conditions under which distributed coordination objectives—such as consensus, formation maintenance, or target tracking—remain stable despite changes in the communication topology. This research program is currently under development in [47].
Declarations
Funding
Benjamin Merlin Bumpus was supported by the São Paulo Research Foundation (FAPESP), grant 2025/16921-5.
Conflict of interest
The authors declare that they have no competing interests.
Data availability
No datasets were generated or analyzed during the current study.
Materials availability
Not applicable.
Code availability
Not applicable.
Author contributions
The authors' contributions are described according to the CRediT (Contributor Roles Taxonomy) as follows. Conceptualization: W.L., B.B. Methodology: W.L., B.B. Formal analysis: W.L., B.B., J.N., J.G. Investigation: W.L., B.B., J.N., J.G. Resources: All authors. Writing—original draft: W.L., B.B., J.N. Writing-review and editing: All authors. Supervision: W.L., B.B., J.F., W.D. Project administration: W.L., B.B. Funding acquisition: W.L., B.B., J.N., J.G., J.F., W.D.
References
[1] Miritello, G.: Temporal Patterns of Communication in Social Networks. Springer Theses. Springer, Cham, Switzerland (2013). https://doi.org/10.1007/978-3-319-00110-4
[2] Choi, B., Bergés, M., Bou-Zeid, E., Pozzi, M.: Short-term probabilistic forecasting of meso-scale near-surface urban temperature fields. Environmental Modelling & Software 145, 105189 (2021) https://doi.org/10.1016/j.envsoft.2021.105189
[3] Meliker, J.R., Sloan, C.D.: Spatio-temporal epidemiology: Principles and opportunities. Spatial and Spatio-temporal Epidemiology 2(1), 1–9 (2011) https://doi.org/10.1016/j.sste.2010.10.001
[4] Niu, N., Osgood, N.D., Szelko, J.S., Srinivasan, P.V.: Temporal sheaf theory for reconciling temporal complexity within public health modelling. In: Proceedings of the Ninth International Conference on Applied Category Theory (2026). Accepted for publication. https://actconf2026.github.io/papers/ACT_2026_paper_51.pdf
[5] Mesbahi, M., Egerstedt, M.: Graph Theoretic Methods in Multiagent Networks. Princeton Series in Applied Mathematics. Princeton University Press, Princeton, NJ (2010)
[6] Olfati-Saber, R., Fax, J.A., Murray, R.M.: Consensus and cooperation in networked multi-agent systems. Proceedings of the IEEE 95(1), 215–233 (2007) https://doi.org/10.1109/JPROC.2006.887293
[7] Teich, M., Leal, W., Jost, J.: Diachronic data analysis supports and refines conceptual metaphor theory. PLOS Complex Systems 2(8), 0000058 (2025) https://doi.org/10.1371/journal.pcsy.0000058 . Article e0000058
[8] Laubichler, M.D., Maienschein, J., Renn, J.: Computational perspectives in the history of science: To the memory of peter damerow. Isis 104(1), 119–130 (2013) https://doi.org/10.1086/669891
[9] Llanos, E.J., Leal, W., Luu, D.H., Jost, J., Stadler, P.F., Restrepo, G.: Exploration of the chemical space and its three historical regimes. Proceedings of the National Academy of Sciences 116(26), 12660–12665 (2019) https://doi.org/10.1073/pnas.1816039116
[10] Atluri, G., Karpatne, A., Kumar, V.: Spatio-temporal data mining: A survey of problems and methods. ACM Computing Surveys 51(4), 83–18341 (2018) https://doi.org/10.1145/3161602
[11] Laxman, S., Sastry, P.S.: A survey of temporal data mining. Sadhana 31(2), 173–198 (2006) https://doi.org/10.1007/BF02719780
[12] Habereder, I., Kneib, T., Echizen, I., Spinde, T.: A Systematic Review of Spatio-Temporal Statistical Models: Theory, Structure, and Applications (2025). https://arxiv.org/abs/2511.00422
[13] Roddick, J.F., Spiliopoulou, M.: A survey of temporal knowledge discovery paradigms and methods. IEEE Transactions on Knowledge and Data Engineering 14(4), 750–767 (2002) https://doi.org/10.1109/TKDE.2002.1019212
[14] Roddick, J.F., Patrick, J.D.: Temporal semantics in information systems—a survey. Information Systems 17(3), 249–267 (1992) https://doi.org/10.1016/0306-4379(92)90016-G
[15] Bumpus, B.M., Leal, W., Fairbanks, J., Karvonen, M., Simard, F.: Towards a unified theory of time-varying data. Applied Categorical Structures 34(3), 23 (2026) https://doi.org/10.1007/s10485-026-09860-4
[16] Bumpus, B.M., Nickel, J.K.: Decomposing time-varying data into simple pieces: structured decompositions of narratives (2026). https://doi.org/10.48550/arXiv.2607.10442
[17] Borges, J.L.: El Jardín de Senderos Que Se Bifurcan. Editorial Sur, Buenos Aires (1941)
[18] Johnstone, P.: A note on discrete Conduché fibrations. Theory and Applications of Categories 5(1), 1–11 (1999)
[19] Lack, S., Sobocinski, P.: Adhesive categories. In: Walukiewicz, I. (ed.) Foundations of Software Science and Computation Structures, pp. 273–288. Springer, Berlin, Heidelberg (2004). https://doi.org/10.1007/978-3-540-24727-2_20
[20] Ehrig, H., Ehrig, K., Prange, U., Taentzer, G.: Fundamentals of Algebraic Graph Transformation. Monographs in Theoretical Computer Science. An EATCS Series. Springer, Berlin, Heidelberg (2006). https://doi.org/10.1007/3-540-31188-2
[21] Bumpus, B.M., Kocsis, Z.A., Master, J.E., Minichiello, E.: Structured Decompositions: Structural and Algorithmic Compositionality (2025). https://arxiv.org/abs/2207.06091v7
[22] Robertson, N., Seymour, P.D.: Graph minors. xvii. taming a vortex. Journal of Combinatorial Theory, Series B 77(1), 162–210 (1999)
[23] Courcelle, B.: The monadic second-order logic of graphs. i. recognizable sets of finite graphs. Information and Computation 85(1), 12–75 (1990)
[24] Halin, R.: S-functions for graphs. Journal of Geometry 8, 171–186 (1976)
[25] Robertson, N., Seymour, P.D.: Graph minors. iii. planar tree-width. Journal of Combinatorial Theory, Series B 36(1), 49–64 (1984)
[26] Liu, J.W.H.: A tree model for sparse symmetric indefinite matrix factorization. SIAM Journal on Matrix Analysis and Applications 9(1), 26–39 (1988)
[27] Yannakakis, M.: Algorithms for acyclic database schemes. In: Proceedings of the Seventh International Conference on Very Large Data Bases (VLDB '81), pp. 82–94. IEEE
Computer Society, Cannes, France (1981)
[28] Arnborg, S., Proskruowski, A.: Linear time algorithms for NP-hard problems restricted to partial k-trees. Discrete Applied Mathematics 23(1), 11–24 (1989)
[29] Dechter, R., Pearl, J.: Tree clustering for constraint networks. Artificial Intelligence 38(3), 353–366 (1989)
[30] Lauritzen, S.L., Spiegelhalter, D.J.: Local computations with probabilities on graphical structures and their application to expert systems. Journal of the Royal Statistical Society: Series B (Methodological) 50(2), 157–194 (1988)
[31] Robertson, N., Seymour, P.D.: Graph minors. xiii. the disjoint path problem. Journal of Combinatorial Theory, Series B 63(1), 65–110 (1995)
[32] Robertson, N., Seymour, P., Thomas, R.: Sachs' linkless embedding conjecture. Journal of Combinatorial Theory, Series B 64(2), 185–227 (1995)
[33] Fujita, T.: A brief overview of applications of tree-width and other graph width parameters. Applied Mathematics on Science and Engineering 2(1), 1–20 (2025)
[34] Harary, F., Gupta, G.: Dynamic graph models. Mathematical and Computer Modelling 25(7), 79–87 (1997)
[35] Kempe, D., Kleinberg, J., Kumar, A.: Connectivity and inference problems for temporal networks. Journal of Computer and System Sciences 64(4), 820–842 (2002)
[36] Casteigts, A., Flocchini, P., Quattrociocchi, W., Santoro, N.: Time-varying graphs and dynamic networks. In: Frey, H., Li, X., Ruehrup, S. (eds.) Ad-hoc, Mobile, and Wireless Networks, pp. 346–359. Springer, Berlin, Heidelberg (2011)
[37] Holme, P., Saramäki, J.: Temporal networks. Physics Reports 519(3), 97–125 (2012)
[38] Holme, P.: Modern temporal network theory: a colloquium. The European Physical Journal B 88(234) (2015)
[39] Michail, O.: An introduction to temporal graphs: An algorithmic perspective. Internet Mathematics 12 (2015)
[40] Carmesin, J., Jacobs, R.W., Knappe, P., Kurkofka, J.: Canonical graph decompositions and local separations: From infinite coverings to a finite combinatorial theory (2025). https://arxiv.org/abs/2501.16170v1
[41] Diestel, R., Jacobs, R.W., Knappe, P., Kurkofka, J.: Canonical graph decompositions via coverings (2025). https://arxiv.org/abs/2207.04855v8
[42] Ames, A.D.: A categorical theory of hybrid systems. PhD thesis, University of California, Berkeley (2006). https://www2.eecs.berkeley.edu/Pubs/TechRpts/2006/EECS-2006-165.pdf
[43] Serre, J.-P.: Arbres, amalgames, . Astérisque, Société Mathématique de France, Paris (46) (1977). Rédigé avec la collaboration de Hyman Bass
[44] Serre, J.-P.: Trees. Springer Monographs in Mathematics. Springer, Berlin, Heidelberg (2003)
[45] Bass, H.: Covering theory for graphs of groups. Journal of Pure and Applied Algebra (89), 3–47 (1993)
[46] Hu, C.-S.: Cellular Sheaves on Higher-Dimensional Structures (2025). https://arxiv.org/abs/2505.23993v3
[47] Copeland, A., Leal, W., Fallin, B., Bumpus, B.M., Fairbanks, J., Dixon, W.E.: A Temporal Cellular Sheaf Framework for Multi-Agent Systems with Switching Topologies. Work in progress (2026)
[48] Currier, K., Leal, W., Fallin, B., Fairbanks, J., Dixon, W.E.: From local to global: Sheaf-theoretic control barrier functions on manifolds. In: Proceedings of the IEEE 65th Conference on Decision and Control (CDC). IEEE, Honolulu (2026)
[49] Bullo, F., Cortés, J., Martínez, S.: Distributed Control of Robotic Networks. Princeton Series in Applied Mathematics. Princeton University Press, Princeton, NJ, USA (2009)
[50] Moreau, L.: Stability of multiagent systems with time-dependent communication links. IEEE Transactions on Automatic Control 50(2), 169–182 (2005) https://doi.org/10.1109/TAC.2004.841888
[51] Hanks, T., Nino, C.F., Barcelo, J.B., Copeland, A., Dixon, W., Fairbanks, J.: Heterogeneous Multi-Agent Multi-Target Tracking using Cellular Sheaves (2025). https://arxiv.org/abs/2512.24886
[52] Hanks, T., Riess, H., Cohen, S., Gross, T., Hale, M., Fairbanks, J.: Distributed multi-agent coordination over cellular sheaves. In: 2025 IEEE 64th Conference on Decision and Control (CDC), pp. 3057–3064 (2025). https://doi.org/10.1109/CDC57313.2025.11312066
[53] Scattolini, R.: Architectures for distributed and hierarchical model predictive control – a review. Journal of Process Control 19(5), 723–731 (2009) https://doi.org/10.1016/j.jprocont.2009.02.003
[54] Bai, H., George, J., Chakrabortty, A.: Hierarchical control of multi-agent systems using online reinforcement learning. In: Proceedings of the 2020 American Control Conference (ACC), pp. 340–345. IEEE, Denver, CO, USA (2020). https://doi.org/10.23919/ACC45564.2020.9147797
[55] Zegers, F.M., Phillips, S., Dixon, W.E.: Consensus over clustered networks with asynchronous inter-cluster communication. In: 2021 American Control Conference (ACC), pp. 4249–4254 (2021). https://doi.org/10.23919/ACC50511.2021.9482931