arXiv:2609.03472math.CTSep 2026

Manuscript Offprint

arXiv:2609.03472

Override and Update in Restriction Categories

Jean-Simon Pacaud Lemay, Chad Nester

Abstract

We study the override and update operators on partial functions from the perspective of restriction categories. We propose a definition of override restriction categories, in which both of the operators in question exist. We prove a number of results concerning these operators and their relationship to the structure of the ambient restriction category, as well as relating them to the existing literature on the override and update operators. We provide various examples of override restriction categories and in particular show that every classical restriction category is an override restriction category.

2012 ACM Subject Classification Theory of computation → Categorical semantics; Theory of computation → Logic

Keywords and phrases Override; Update; Restriction Categories

Funding Jean-Simon Pacaud Lemay: This material is based upon work supported by the AFOSR under award number FA9550-24-1-0008.

Chad Nester: Chad Nester was supported by Estonian Research Council grant PRG2764.

1 Introduction

There are not very many sensible ways to combine arbitrary partial functions with the same domain and codomain. One way is to take their meet by viewing the partial functions in question as sets of input-output pairs and taking the intersection of these sets. We might guess that the join is defined similarly, by taking the union of associated sets of input-output pairs, but in general this does not yield a partial function. The obstacle is that the union of these sets need not correspond to a function, since a given element of the domain need not be mapped to the same element of the codomain by both of the functions in question.

One way to resolve this difficulty is to consider a sort of biased join operation, in which conflicts of this sort are resolved by doing what, say, the left argument does. This allows us to again obtain a partial function. The resulting binary operation on partial functions is referred to as the override operator [1], or sometimes the (left-)preferential union operator. Explicitly, if f,g:A→Bf, g : A \to B are partial functions then we define a partial function f▹g:A→Bf \triangleright g : A \to B as doing ff where ff is defined and doing gg where ff is undefined. There is another closely related binary operator referred to as the update operator [1] that sends partial functions f,g:A→Bf, g : A \to B to the partial function f⋄g:A→Bf \diamond g : A \to B, pronounced “ff update gg”, defined by doing gg when both gg and ff are defined, while doing ff when gg is undefined and ff is defined.

It is helpful to depict these operations as patterned Venn diagrams (see Figure 1). A given partial function is represented by a region of space, corresponding to its domain of definition, which is filled with an associated “pattern” or “colour” indicating the action of the partial function in question. Then the region of f▹gf \triangleright g is the union of the regions of ff and gg, with the pattern of ff dominating the pattern of gg. Similarly, the region of f⋄gf \diamond g is the region of ff, but with the pattern of gg dominating the pattern of ff.

It is algebraically natural to consider the override and update operations together. In particular, Jackson and Stokes have given a complete algebraic axiomatisation of the behaviour of override and update in semigroup theory [11], building on earlier works of Berendsen et al. [1] and Cvetko-Vah et al. [7]. The override and update operators have many applications

Override and Update in Restriction Categories

Figure

Figure 1 Patterned Venn diagrams explaining the override and update operators.

and are commonly encountered in formal methods for program correctness [8]. For example, the override operator appears in the formal specification languages Z [16] and VDM [12], while the update operator appears in the denotational semantics of assignments [1].

In this paper, we study override and update from the perspective of the theory of restriction categories [3]. Restriction categories, which we review in Sec 2, are abstract categories of partial maps, and provide a natural setting in which to study operations on partial functions.

In Sec 3, we introduce the notion of an override operator for restriction categories, and call a restriction category equipped with an override operator an override restriction category (Def 8). We provide a list of various basic identities that hold for the override operator (Lem 14) and also show that every override restriction category has binary joins (Thm 15) in the restriction category sense (Def 2).

In Sec 4 we define the induced update operator (Def 19) of an override restriction category, where we define the update operator using the override operator and the restriction operator. We then show that every homset of an override restriction category satisfies the axioms for override and update given by Jackson and Stokes [11] (Thm 25). This helps justify that we have the appropriate definitions for these operators for restriction categories.

In Sec 5 we take the approach of instead starting by defining the notion of an update operator independently in a restriction category with binary joins. We call a restriction with binary joins and an update operator, an update restriction category (Def 31). We then explain how to define an override operator using the update operator and the join (Prop 32). From this, we are then able to show that in fact, update restriction categories are precisely the same as override restriction categories (Thm 34). We will also discuss how the behaviour of the override and update operators affect the ambient restriction category.

We provide various examples of override restriction categories including sets and partial functions (Ex 9 & 20), rings and non-unital ring morphisms (Ex 11 & 22), and any upper-bounded distributive lattice (Ex 12 & 23). In Sec 6, we show that every classical restriction category [4] is an override restriction category (Thm 43). Furthermore, we provide an example of a restriction category that has more than one override operator (Ex 13), which was found using the help of Mace4 [14].

There are a number of promising directions for future work. For example, a further operator on partial functions, also strongly related to the override operator, is the restricted union f∨g=(f▹g)∧(g▹f)f \vee g = (f \triangleright g) \wedge (g \triangleright f) where ∧\wedge indicates the meet of the partial functions in question [17]. Restriction categories with meets are relatively well-studied [10, 13, 15], and we imagine that studying the restricted union operator in override restriction categories with meets would be a natural extension of the work presented here.

Conventions: We assume that the reader is familiar with the basics of category theory. For an arbitrary category X\mathbb{X}, we will denote objects using capital letters A,B,CA, B, C etc., homsets will be denoted as X(A,B)\mathbb{X}(A, B) and maps will be denoted by lowercase letters f,g,h,etc.∈X(A,B)f, g, h, etc. \in \mathbb{X}(A, B).

Arbitrary maps will be denoted using an arrow f:A→Bf: A \to B, identity maps as 1A:A→A1_A: A \to A, and for composition we will use diagrammatic notation, that is, the composition of f:A→Bf: A \to B followed by g:B→Cg: B \to C is denoted as fg:A→Cfg: A \to C. Throughout the paper, we will encounter various binary operations, such as ▹,⋄,∨\triangleright, \diamond, \vee, etc. Composition is assumed to have a higher precedence than everything else, for example fg▹hk=(fg)▹(hk)fg \triangleright hk = (fg) \triangleright (hk).