Manuscript Offprint
arXiv:2611.01837Computons for Control-Driven Boolean Circuits
Damian Arellanes
Lancaster University
Abstract. Boolean circuits abstract away from physical implementation details to capture the logical structure and computational behaviour of digital components. Despite their long history of study, their compositional foundations have received comparatively little attention. Building on the theoretical foundations of computons introduced in previous work, we develop a concrete and operationally defined model of computation for control-driven Boolean circuits. We introduce colimit-based operators for composing circuits into sequential, parallel, branching and iterative structures, supported by concrete operational semantics grounded in particular abstract computing devices. The framework refines the semantics of composition, establishes the algebraic properties of its operators and introduces atomic circuits to support more expressive computation units. We demonstrate the applicability of the proposed framework through examples from propositional logic, biomedicine and electronics, and establish an operational equivalence with respect to classical Boolean circuits through a systematic transformation that accommodates gates of arbitrary arity. By this equivalence, we show that control-driven Boolean circuits are at least as powerful as their classical counterpart. That is, they are capable of non-uniformly computing any Boolean function over inputs of arbitrary length. Implementations in Idris and Java demonstrate the practical realisability of the framework.
Keywords: Boolean circuits, algebraic composition, categorical semantics, explicit control flow, non-uniform computation, models of high-level computation.
1. Introduction
Boolean circuits are a fundamental model of computation in which computational problems, including the recognition of formal languages, are represented by collections of circuits indexed by
Address for correspondence: D.Arellanes, Infolab21, Lancaster University, Bailrigg, Lancaster LA1 4WA input length. Such collections constitute a non-uniform model of computation, as each circuit may be designed independently for inputs of a given size [14]. The construction of arbitrary Boolean functions relies on a functionally complete set of logical connectives, with common examples including , and the singleton basis [40].
Despite their computational power, classical Boolean circuit families offer limited support for a systematic algebraic treatment of compositional construction. In particular, although non-uniform circuit families can encode arbitrary language membership decisions through input-length-specific circuit descriptions, this expressive capability does not, in itself, provide a principled framework for constructing circuits from smaller ones using well-defined composition operators with appropriate closure properties. Here, composition refers to the construction of complex computing structures from simpler ones while abstracting away their internal details [23]. A compositional account would therefore provide a foundation for modular construction and reasoning, enabling circuits to be treated as reusable, self-similar computational units across distinct application domains [24].
One important application of compositionality is that of compositional verification, which establishes properties of a composite by reasoning about constituents and demonstrating that relevant properties are preserved under composition. Thus, a property can be established for a composite circuit when it holds for the constituents and remains invariant under the composition operations used to construct [15]. A formal account of circuit composition can consequently support not only modular circuit construction but also the development of systematic techniques for formal analysis.
Motivated by the observation that every computing device exhibits implicit or explicit control flow, irrespective of how they exchange data [5, 2], this work develops a formal framework for compositional Boolean circuits in which control and data flow are represented explicitly. The proposed framework employs colimit-based composition operators to combine circuits by control flow. Four classes of elementary operators are introduced to capture sequential composition, parallel composition, branching and iteration, operators that respectively support the ordered execution of computing devices, their parallel combination, alternative computational paths and repeated execution. For sequencing, paralleling and branching, we study algebraic properties concerning identity, commutativity and associativity. We further demonstrate that the proposed model retains the computational power of classical Boolean circuits, i.e., every Boolean function can be computed within this framework. We refer to the resulting model as (families of) control-driven Boolean circuits.
The remainder of this paper is organised as follows. Sections 2, 3 and 4 introduce the notion of the class of circuits we propose, develop colimit-based operators used to construct them compositionally and establish their operational semantics, respectively. Section 5 examines their computability in relation to their classical counterpart. Section 6 describes a number of examples of control-driven circuits in the domains of propositional logic, biomedicine and electronics. Section 7 discusses the most relevant related approaches and situates the proposed framework within the existing literature. Finally, Section 8 summarises the main contributions and identifies future research directions.
Definition 2.1. A computon is a diagram in the category of finite sets and total functions, which has the following shape:

such that:
-
,
-
with ,
-
and are surjective,
-
, and
-
there are ports and with .
Notation 1. Given a computation unit and a port , we use and to denote and , correspondingly.
Particularly, the first condition in Definition 2.1 indicates that computons always have ports. The second one says that the 0-type is always present, which represents control signals. The last condition states that there always are 0-typed ports and with no incoming and outgoing flows, respectively, serving to indicate the control inputs and control outputs of a computon. Outflows and inflows are attached to computation units via the functions and , whereas and define the source and target ports of inflows and outflows. Computation units always have 0-typed ports attached to them due to the surjectivity conditions on and . The function simply establishes a relationship between inflows and outflows, and the equation constitutes an encapsulation principle for input-output relations. That is, although a device can be encapsulated by different units , the execution of within will take inputs from the ports in and place outputs in ports from for .
Definition 2.1 was initially proposed in [5] and later extended in [3] and [4]. In this paper, we build upon it to propose a particular class of computons referred to as control-driven Boolean circuits (or circuits for short) whose definition is given below. Graphical examples are presented in Section 6.
Definition 2.2. Let be the set-theoretic interpretation of the unit type extended with the empty value and be the set-theoretic interpretation of the Boolean type extended with the empty Boolean value . A control-driven Boolean circuit is a computation where and such that:
• each is an -ary function for echoing control signals, given by:
• each is an (extended) -ary NAND function, given by:
• and each is an -ary function for discarding Boolean values, defined as .
Remark 2.3. It is easy to see that functions and are idempotent in the sense that repeating an input does not change the result. This observation becomes important when describing operational semantics in Section 4.
In Section 4, we will see that the colours 0 and 1 are mapped to the types 1 and which represent extended control signals and extended Boolean values, respectively. We say they are extended because they support value absence to handle errors. Thus, a circuit is able to receive (empty) signals and (empty) truth values on their input interface in order to attempt triggering a number of devices (to disregard control signals and produce new ones), devices (to compute -ary NAND functions) and devices (to disregard Boolean values). The result of computation is stored in a so-called output interface.
Definition 2.4. The interface of a circuit is a tuple ) where and .
When there is a sequence of flows taking every import (and every port with an outgoing inflow) to some outport , we say that the circuit satisfies the connectivity property. This notion is jointly formalised in Definitions 2.5 and 2.6.
Definition 2.5. The bipartite graph of a circuit has and as the sets of nodes and edges, respectively. The source and target functions are given as follows:
Definition 2.6. If is the bipartite graph of a circuit , we say that is connected if, for each , there is a finite path in of length , satisfying and .
A circuit that is not connected, has no flows, no computation units and all ports in , is called trivial; whereas a connected circuit with exactly one computation unit is called atomic. These structures are described in Definitions 2.7, 2.8 and 2.9.
Definition 2.7. A circuit is trivial if its set-valued diagram has the following shape:

Definition 2.8. A unit circuit is a trivial circuit with .
Definition 2.9. An atomic circuit is a circuit with .
3. Colimit-Based Composition Operators
In this section, we present operators for composing control-driven circuits, whose behaviour is characterised as finite colimit constructions. Before describing colimits, we present the notion of a circuit morphism which intuitively is an embedding of a circuit into a (potentially) more complex one, with the restriction that new computation units can only be attached at the interface, as captured by the restriction presented at the bottom of Definition 3.1, which results in Lemma 3.2. When a morphism identifies all the imports of a circuit, we call it in-marker, as formalised in Definition 3.3.
Definition 3.1. A circuit morphism consists of functions and , which make the following diagrams commute:
Given and , we also have that satisfies .
Lemma 3.2. ([5])
If is a computon morphism, then and .
Definition 3.3. The in-marker of a circuit is a circuit monomorphism where is a trivial circuit and .
To combine simpler circuits into more complex ones, we use colimit operations in the category of circuits built upon pushouts and coproduct constructions.
Definition 3.4. (Coproduct)
The coproduct of and , written , is given as follows:

with the functions of computed in the canonical manner via the canonical coproduct monomorphisms and .
Definition 3.5. (Pushout)
The pushout of a span of circuit morphisms, written , is given as follows:

with the functions of computed in the canonical manner via the pushout-induced circuit morphisms and .
Although the category of circuits has all coproducts [5], Theorem 3.7 says that such a category is not co-complete since pushouts can only be computed for spans that satisfy Definition 3.6.
Definition 3.6. (Pushable Span)
A span of circuit morphisms is pushable if and .
Theorem 3.7. ([5])
The pushout of a span of circuit morphisms exists if and only if the span is pushable.
Using coproducts and computable pushouts, we define colimit-based operators for composing circuits into (partial or total) sequential, (synchronous or asynchronous) parallel, branching or iterative composites.
3.1. Sequential Composition
Control-driven circuits are composed sequentially through so-called sequentiable spans whose morphisms identify some or all the outports of one circuit with some or all the imports of another. Partial identification is given by partial sequentiable spans, whereas full identification by total sequentiable spans. This is formalised in Definition 3.8.
Definition 3.8. (Sequentiable Span)
We say that a span is sequentiable when is a trivial circuit and the legs and are monomorphisms that satisfy and . If and , the span is total sequential; otherwise, it is partial sequential.
Naturally, Definition 3.9 and Lemma 3.10 collectively state that the pushout of a span that satisfies Definition 3.8 yields a sequential circuit with pushout-induced monomorphisms. Such pushouts can always be computed in the category of circuits as per Theorem 3.11 and, interestingly, any two circuits can always be composed sequentially by Theorem 3.12. Examples for the construction of partial and total sequential circuits are described in Section 6.
Definition 3.9. (Sequential Circuit)
The pushout of a sequentiable span is a total sequential circuit if is total. Otherwise, it is a partial sequential circuit .
Lemma 3.10. If is the cospan induced by the pushout of a sequentiable span , then and are circuit monomorphisms.
Proof:
We prove only for , since the proof of the other is analogous. For this, first note that the - and -components of are always injective because Definition 3.1 says they are inclusion functions. For the -component, -elements are never identified with -elements by the fact that is a trivial computon with no flows at all, i.e., . Thus, by Definition 3.5, has an equivalence class for each -element, i.e., the -component of is injective. The same reasoning holds for the - and -components of considering .
Now, assume for contradiction that the -component of is not injective so there are ports with . As , we have two possible scenarios:
-
There is no with . In this case, and form individual equivalence classes in for satisfying the reflexivity of the equivalence relation for . Thus, contradicting our assumption .
-
There is some where . In this case, the commutativity property of pushouts entails that there are such that and . Clearly contradicting that is injective (see Definition 3.8).
As all its components are injective functions, we conclude that is a computon monomorphism, as required.
Theorem 3.11. A sequentiable span of circuit morphisms is pushable.
Proof:
The proof follows directly from the facts and from Definition 3.8.
Theorem 3.12. For any pair of circuits and , there always is a sequentiable span .
Proof:
Definition 2.1 states that every computon has at least one import and at least one outport. So, for any two computons and , we can always form a sequentiable span where is a trivial computon with and . As the pushability conditions from Definition 3.6 follow trivially, the pushout of exists which, by Definition 3.9, must be either or .
The interface of a sequential circuit is obtained from the interfaces of the composed objects, as captured by Lemmas 3.13 and 3.14. The operations for constructing total and partial sequential circuits are called total sequencing and partial sequencing, respectively, which by Theorems 3.15 and 3.17 are not commutative despite of satisfying identity. Theorem 3.16 states that only total sequencing exhibits associativity.
Lemma 3.13. Assuming is the cospan induced by the pushout of a sequentiable span , we have and .
Proof:
We just show since the proof of is analogous. For this, assume for contrapositive so there is some with . As according to Definition 3.5, we have three possible cases:
-
There exclusively is some with so, by the commutativity squares of , . As as per Definition 2.4, .
-
There exclusively is some with . In this case, the proof is analogous to 1.
-
There are and for which . This case never holds since the apex of is a trivial computon with no flows at all.
Proving that 3 does not hold and that for 1 and 2 entail , as required.
Lemma 3.14. Assuming is the cospan induced by the pushout of a total sequentiable span , we have and .
Proof:
We only prove since the proof of the other is completely analogous. For this, let . Using Lemma 3.2 and the fact that is given by (see Definition 3.5), we have three cases:
-
is exclusively identified with -ports so .
-
is exclusively identified with -ports. Here, let with . As satisfies (by Definition 3.9), . Clearly, a contradiction to the fact that is not identified with any -port.
-
there exist and where . As , directly.
Disproving 2 and proving for 1 and 3 imply . Simply using Lemma 3.13 we conclude .
Theorem 3.15. ([3])
The unit circuit is the left- and right-identity for total and partial sequencing.
Theorem 3.16. Total sequencing is associative up to isomorphism, but partial sequencing is not.
Proof:
Disproving the associativity of partial sequencing can be done via the counterexample presented in [5]. Here, we just prove that total sequencing is associative up to isomorphism. For this, assume that and are total sequential computons with and . So, we have the following commutative diagram:
where the cospans and are induced by the pushouts of and , respectively. Composing computon morphisms horizontally and vertically, we obtain the following commutative diagrams:
To show that every -port is mapped to an import of , consider the following chain of equivalences: (because by the fact that the pushout of is a total sequential computon) is an import of (as per Lemma 3.14).
With Lemma 3.10 and the fact that the pushout of is total sequential, we have that and are monomorphisms so is also a monomorphism. Having , because the pushout of is total sequential, Definition 3.8 says that must be sequentiable. Here, is the apex computon whilst and are the left and right operands, respectively. Using Definition 3.9, we establish that the pushout of is . A similar reasoning allows us to deduce that is the pushout of the span . Hence:
□
Theorem 3.17. Total and partial sequencing are not commutative.
Proof:
Disproving the commutativity of both total and partial sequencing can be done through the counterexamples presented in [5].
3.2. Parallel Composition
Control-driven circuits can be composed into coproduct-based structures, called p-sync circuits, to enable simultaneous execution. Such structures can always be formed in the category of circuits as per Theorem 3.19. Examples are shown in Section 6.
Definition 3.18. (Async)
A p-async circuit is given by the coproduct of and .
Theorem 3.19. A p-async circuit always exists in a category of circuits for any pair of circuits.
Proof:
It is trivial to verify that coproduct can always be computed in the category of control-driven circuits because such a colimit construction is computed componentwise in the category of finite sets (which has all coproducts). A full proof is analogous to that from [5].
Theorem 3.20 says that the operation for forming a p-async, called asynchronous parallelising, does not satisfy the identity law because this would require the existence of a circuit with no ports; thus, violating Definition 2.1. Such an operation is associative and commutative by Theorem 3.21.
Theorem 3.20. ([3])
Asynchronous parallelising has no identity.
Theorem 3.21. Asynchronous parallelising is associative and commutative up to isomorphism.
Proof:
The proof follows directly from the well-known fact that coproduct in the category of finite sets is both associative and commutative up to isomorphism. □
Apart from asynchronous structures, composites can also be formed to synchronise the execution of multiple circuits. This is achieved through the use of so-called glue circuits for joining and forking control signals. Examples are shown in Section 6.
Definition 3.22. A glue is an atomic circuit with for all .
A glance at the examples from Section 6 reveals that a synchronous circuit, referred to as p-sync, is constructed by performing a sequencing operation of a fork glue with a p-sync, before sequencing the resulting composite with a join glue. The order of these two operations is irrelevant, yielding different ways of constructing the same p-sync composite.
3.3. Branching Composition
Branching composition is the process of constructing a control-driven circuit that is able to decide whether to execute one circuit or another in a non-deterministic manner. This process, characterised as the colimit of a span of in-markers, is formalised in Definition 3.23. An example is presented in Section 6.
Definition 3.23. An branching circuit is the pushout of the span .
Given that the apex of an in-marker injectively covers all the inports of , the identity for branching composition corresponds to a trivial circuit that is isomorphic to the -apex (see Theorem 3.24). Theorem 3.25 independently states that branching is both associative and commutative.
Theorem 3.24. ([3])
Given a circuit , there is a circuit and a span of in-markers where .
Theorem 3.25. Branching is commutative and commutative up to isomorphism.
Proof:
Associativity and commutativity follow from the well-establish fact that pushout in the category of finite sets and total functions satisfies those properties up to isomorphism. The proof that the pushout of in-markers can be computed in a category of computons is analogous to the proof presented in [5].
3.4. Iterative Composition
Although classical Boolean circuits do not provide support for iteration, control-driven circuits offer operators for constructing iterative composites that decide cycle termination non-deterministically. The first operator performs the decision before executing the circuit being iterated over (as in while constructs), whereas the other makes the decision after executing the circuit (as in do-while constructs). Accordingly, these operators define head- and tail-iterative composites.
Particularly, the operation to form a head-iterative circuit is called head iteration and is characterised as the colimit of a so-called h-diagram which, apart from the circuit being iterated over, requires three more objects to specify the entry and exit to the iterative structure and what to do after executing . These additional objects are needed due to the interface restrictions imposed by Definition 3.1. The formalisation is given below.
Definition 3.26. An h-diagram has the following shape in the category of circuits:
with and being connected. A head-iterative circuit is the colimit of , computed as .
Like, head-iteration, tail-iteration requires additional objects for composition. As the difference fundamentally lies in the position where cycle termination is decided, a different colimit operation is required on a so-called t-diagram. The corresponding formalisation is given in Definition 3.27 and an example is presented in Section 6.
Definition 3.27. A t-diagram has the following shape in the category of circuits:
with , , and being connected. A tail-iterative circuit is the colimit of , computed as .
Evidently, head- and tail-iteration are unary operations built from coproduct and pushout constructions. Accordingly, we do not study identity, associativity or commutativity properties. These operators are just described for the completeness of our theory.
4. Operational Semantics
In Section 3, we presented colimit-based composition semantics for circuit construction. We now describe a particular transition system for the execution of arbitrary circuits.
The general idea is to visualise ports as constructs that hold information which is consumed and produced by either the external world or by computing devices within units. The execution of a circuit starts by placing values on all the ports in . As control ports are always required in , as per Definition 2.1, control signals are always present within circuits to drive execution. Although data values are optional, they are required to simulate Boolean functions where truth data is transformed (see Section 2). In any case, control and data independently flow. In fact, there are functors to orthogonally extract the control and data flow graphs of any arbitrary circuit [5].
Since ports store data or control signals, the state of a circuit is a function that maps each port to a specific value from a fixed type system. Definition 2.2 mentions that circuits rely on a system that contains the types and to represent control signals and Boolean values, respectively, with options to express value absence. Accordingly, Definition 4.1 states that there is a typing function for circuits for mapping colours to types as follows: and . With this, Definition 4.2 formalises the concept of a (discrete-time) circuit state, having in mind that and are set-theoretic interpretations of and (see Definition 2.2).
Definition 4.1. The typing function for a circuit is a function defined as:
Definition 4.2. The state of a circuit at time is a function where, for all , . Particularly, is called initial when:
-
,
-
for all , if and if , and
-
for all , if and if .
In a given state , devices are executed only if the unit they belong to is enabled. As per Definition 4.3, a unit is enabled under if every port attached to it has values of the corresponding type; otherwise, the unit is idle under . When all its units are idle, a circuit reaches termination, as described in Definition 4.4.
Definition 4.3. The computation unit of a circuit is enabled under a state if for every with and for every with . Otherwise, is idle under .
Definition 4.4. The state of a circuit is final if every is idle under .
For the execution of branching circuits, we handle the case when multiple units are enabled. We do this by establishing a partition of enabled units that share ports: . With this, we simply invoke the axiom of choice to non-deterministically choose a representative unit from each partition. The resulting collection is called the set of ready units, and it is formalised in Definition 4.5.
Definition 4.5. If is the partition induced by the equivalence relation on the set of enabled units under and is the random function on , the set of computation units that are ready under is .
After building a set , each computing device of each -unit is evaluated according to Definition 4.6 by taking input values from the ports connected to the inflows in and producing a result in the port . Values of ports not attached to ready units simply remain untouched and they are passed onto the next state. To indicate value consumption from the ports used by triggered devices, an empty value of the corresponding type is placed. Collectively, this defines a state transition, which is formalised in Definition 4.7.
Definition 4.6. Let be an outflow of a circuit . The result of evaluating a computing device under is denoted and is given by where with for and . The value is well-typed if and only if .
Definition 4.7. If is the state of a circuit at time , the next state is given as follows for all :
5. On the Equivalence Between Control-Driven Boolean Circuits and Classical NAND Circuits
In this section, we study the relationship between our proposal and classical NAND circuits. Although there are multiple functionally complete sets, we decide to use since NAND is invariant under input permutation by the commutative and associative properties. Using such a set also simplifies the treatment of computing devices so that only one logical operator is required. Having a functionally complete set means that we can construct any fundamental logic gate to perform a Boolean function on an input of fixed length, just as supported by classical NAND circuits.
Definition 5.1. A classical NAND circuit is an acyclic digraph where and are non-empty finite sets of vertices and edges, respectively. Each vertex exclusively corresponds to:
(i) an input variable if and ,
(ii) an output variable if and , or
(iii) a NAND gate if and .
Each edge expresses information that flows from an input variable to a gate, between gates or from a gate to an output variable.
Notation 2. If , we use and to denote and , noticing that is a singleton by the equality .
Remark 5.2. Notice in Definition 5.1 that never holds so there are no vertices with no incoming and no outgoing edges. Also, observe that there are no NAND circuits with variables only, i.e., gates are always present.
Lemma 5.3. If is a classical NAND circuit, for every satisfying , there is a finite path of length where and for .
Proof:
Let be an arbitrary vertex with so there is some edge . If , the lemma follows directly; otherwise, we apply the same argument repeatedly to produce a sequence of edges. This process must terminate after finitely many steps with some , given that is finite and acyclic.
To transform a classical NAND circuit into its corresponding control-driven version, we use an enriched graph structure which provides useful information for the transformation process. This structure, referred to as annotated NAND circuit, is formalised below.
Definition 5.4. An annotated NAND circuit is a 7-tuple where:
• is a function for ,
• is a function for , and
• is a function where .
A glance at Definition 5.4 reveals that contains all the gates of a given NAND circuit, and that each is an edge that runs from a gate to a gate/output while each goes from a gate/input to a gate . The functions and just extract the gate from the edge they operate on. These functions are well-defined because edges cannot have multiple source or target nodes. Lemma 5.5 indicates that is surjective in addition. The function simply chooses the unique outgoing edge of the target gate of an -edge, while respecting tagging, which by Lemma 5.6 is well-defined and surjective. By convention, tagging is realised through the natural numbers 0 and 1.
Lemma 5.5. The functions and of an annotated NAND circuit are surjective.
Proof:
Given a gate , we use the fact from Definition 5.4 to deduce that there is an edge . As this means , there must also be some with . Simply applying , we obtain , as required. The proof of surjectivity for is completely analogous.
Lemma 5.6. The function of an annotated NAND circuit is surjective.
Proof:
To show that is well-defined, assume for contradiction that there are where for some so that by the definition of . If which contradicts the fact from Definition 5.1. Since cannot hold under , we have that is a well-defined function.
To prove surjectivity, let and use Definition 5.4 to deduce that there is some edge , given that is a gate. As must be an input or a gate, and hence for . Using the definition of , we obtain for some . Since is a gate with , must hold, i.e., .
The state of an annotated NAND circuit C is a function that maps each edge to some B-value. Unlike control-driven circuits, the execution of C is persistent in the sense that truth values are retained once produced by gates [9]. This notion is formalised in Definition 5.7.
Definition 5.7. The state of an annotated NAND circuit is a function for . When , we say that is the initial state of which satisfies for all and for all . A state transition is defined as follows for and :
Definition 5.8. We say that a gate fires at if for the unique and for all .
The procedure to transform an annotated NAND circuit into its corresponding control-driven counterpart is given in Definition 5.9.
Definition 5.9. Given an annotated NAND circuit , we construct its corresponding control-driven circuit as follows:
• ,
• ,
• ,
• ,
• , and
• .
If , , and are the corresponding isomorphisms, and is the obvious inclusion function for , we define the functions , , , , , and as follows:
The initial state of is given as follows for every :
And subsequent states are given according to the transition function from Definition 4.7.
Remark 5.10. Although the inverses of the isomorphisms presented in Definition 5.9 yield a singleton set because they are injective, in this paper we treat them as producing individual elements.
Remark 5.11. Notice in Definition 5.9 that:
for and .
The transformation procedure from Definition 5.9 defines a one-to-one mapping between gates and computation units, and produces two ports for every classical edge: one for representing control and another for expressing Boolean values. Accordingly, if , we have exactly ports in and exactly two ports in (see Theorem 5.12). More precisely, the ports in and correspond to the edges in and , respectively, as formalised in Theorem 5.13. Accordingly, if a unit is enabled at time , then it is also ready at that time (see Lemma 5.16). Evaluating produces the following at : (i) a control signal and (ii) the result of applying a -ary NAND function on the -edge values. The values from (i) and (ii) are assigned to the unique control port and the unique Boolean port in , respectively.
This assignment is formalised in Corollaries 5.14 and 5.15 which, by Theorem 5.17, preserves the correct type.
Theorem 5.12. If , the computation unit has exactly one control port in and exactly one Boolean port in .
Proof:
Since by Definition 5.1, there is only one edge for some . Consequently, so there are unique ports by the injectivity of . Applying the functions and from Definitions 5.9 and 4.1 allows us to obtain and directly.
Theorem 5.13. If with and , for the unique and for each .
Proof:
By Definition 5.9, we know there is a port for each and . As , Definition 5.4 says so there is a unique inflow (recall is injective because it is an isomorphism). Considering that is an inclusion, we apply and from Definition 5.9 to obtain:
So, by Notation 1. A similar reasoning can be used to show that the claim holds for the unique .
Corollary 5.14. If and .
Proof:
By Theorem 5.13, we know there is a unique outflow where . Consequently, as per Definition 5.9. Since is evident from Definition 5.4, we have .
Using Theorem 5.13, we deduce the existence of inflows with . Applying from Definition 5.9, we obtain for .
Notice that, even though -devices belong to the set D, they are never used in the corresponding control-driven circuit. The purpose of these devices is merely to enable more expressive computations, i.e., they are not needed for simulating classical circuits.
Assuming , Definition 4.5 says . Having from Remark 5.11, we simply use Definitions 2.2 and 4.6 to obtain:
Considering that and follow from Theorem 5.13, we apply Definition 4.7 to obtain:
□
Corollary 5.15. If and :
for and .
Proof:
The proof is analogous to that of Corollary 5.14.
□
Lemma 5.16. If is a computation unit of that is enabled under , then .
Proof:
Assume that there are distinct units with so there are distinct inflows with . Using from Definition 5.9, while considering that is an inclusion, we obtain:
But is injective because it is an isomorphism so , which implies that only holds when . That is, if , for all with . Using Definition 4.5 and assuming is enabled under , we use the reflexivity property of equivalence relations deduce that the singleton set is in the partition induced by . Hence, by the same definition, .
Theorem 5.17. If in , then for every and in .
Proof:
We prove by induction on discrete time with the observation that, for an edge , we have and by Definition 5.9. As Definition 4.1 states and , it suffices to show and for .
Base case. When , we immediately have and as per Definitions 5.7 and 5.9.
Inductive step. Assume for inductive hypothesis that the claim holds for every . So, we prove it also holds for by considering the three cases from Definition 4.7 with :
- If for some outflow that satisfies , we have:
-
If , we simply use the inductive hypothesis to derive .
-
If , we use again the inductive hypothesis to obtain .
The transformation procedure described in Definition 5.9 produces a valid control-driven circuit, which satisfies the constraints imposed by Definition 2.2, namely surjectivity on , , , and , as well as the satisfaction of the equation and the existence of control ports at the interface. These restrictions follow from Lemmas 5.18, 5.19, 5.20, 5.21 and 5.22. Thus, for every classical NAND circuit, Theorems 5.23 and 5.24 state that there is a corresponding (connected) control-driven circuit. Theorem 5.25 and Corollary 5.26 entail that such a corresponding circuit is able to simulate the same Boolean function as their classical counterpart.
Lemma 5.18. The functions and of a control-driven circuit are surjective.
Proof:
To show is onto, let us pick some by leveraging the fact derived from (see Remark 5.2 and Definition 5.9). Since is surjective because it is an isomorphism, there must be some gate where . With the surjectivity of , stated in Lemma 5.5, we deduce the existence of where and . Given that is also an isomorphism, there must be some with . That is, . Proving the surjectivity of follows analogously.
Lemma 5.19. The functions and of a control-driven circuit are surjective.
Proof:
We just prove for since the onto property of can be showed in a similar manner. For this, pick some by leveraging the fact derived from (see Remark 5.2 and Definition 5.9). As is surjective by Lemma 5.18, there must be some where . By the totality of , we have that the port exists. Applying from Definition 5.9 allows us to deduce in addition.
Now, considering , we have two possibilities: or . Picking the former while considering allow us to derive:
Applying from Definition 5.9 with the observation yields:
By the above, holds clearly and, consequently, . That is, is surjective, as required.
Lemma 5.20. The function of a control-driven circuit is surjective.
Proof:
Definition 5.9 states that . So, the proposition holds by Lemma 5.6 and by the surjectivity of the isomorphisms and .
Lemma 5.21. Given a control-driven circuit , the equation holds.
Proof:
We first prove as follows: . Then:
by Definition 5.9
(1)
by the identity law
(2)
by
(3)
by Definition 5.9
(4)
□
Lemma 5.22. If is a control-driven circuit, there are ports and where .
Proof:
We just show that there is some port with since the other proof is symmetric. To do this, we observe that gates always exist as per Remark 5.2 and that they always have fan-in as per Definition 5.1. So, there always is some edge running from an input to a gate . Consequently, so that . Supposing for contradiction the existence of some with , we have because is an inclusion, i.e., . By the definition of , we have , clearly a contradiction to the fact imposed by Definition 5.1. Hence, . By Definition 5.9, we conclude , as required.
Theorem 5.23. For every annotated NAND circuit, there is an equivalent control-driven circuit.
Proof:
Definition 5.9 says that, given an annotated NAND circuit , there is a corresponding control-driven circuit . Considering that the set of -nodes is never empty (as per Definition 5.1), we have that the set of ports of is not empty either. By Definition 5.9, in addition. The rest of the conditions imposed by Definition 2.1 follow from Lemmas 5.18, 5.19, 5.20, 5.21 and 5.22. That is, is a well-formed circuit.
Theorem 5.24. If is an annotated NAND circuit, then is connected.
Proof:
Let so that for . Since , we use Lemma 5.3 to deduce the existence of a non-empty finite path where . Supposing for contradiction for , there must be some with . As is injective because it is an isomorphism, we have so that (considering that is an inclusion). By the definition of , this means that must be a gate with ; thus, contradicting the fact from Lemma 5.3.
Theorem 5.25. If is a gate that fires at during the execution of an annotated Boolean circuit , then and in .
Proof:
As the graph structure of is acyclic, we observe that there is a topological ordering of gates. So, we prove by induction on gate depth, i.e., the maximum number of gates on a path from an input variable to a given gate.
Base case. By Definition 5.1, we know that a gate at depth 0 is necessarily connected from input variables , i.e., there is an edge for . Using Theorem 5.13, we know . Since by Definition 5.7, we have and as per Definition 5.9. That is, is enabled under and, consequently, as per Lemma 5.16.
Since and Theorem 5.13 entails for the unique edge , we use Corollary 5.14 to deduce and Corollary 5.15 to obtain .
Considering that Definition 5.8 states that fires at time 1 only if and , we use Definition 5.7 to deduce . That is, , as required.
Inductive step. Assuming that the claim holds for gates at depth , we now prove it also holds for a gate at depth by using Definition 5.1 to observe that can only be connected from gates. Considering and , we know satisfies with . Thus, if fires at , we use the inductive hypothesis to establish and . Since as per Theorem 5.13, we have by Lemma 5.16. Using Corollaries 5.14 and 5.15, we deduce:
Now, if fires at time , Definition 5.8 states and . Simply using Definition 5.7, we deduce . That is, , as required.
Corollary 5.26. Every Boolean function that is computable by a classical Boolean circuit is also computable by .
Proof:
We know that the output of is the value resulting from the activation of the gate which has the highest depth within [9]. Since by Theorem 5.25, we conclude that the claim is true.
Corollary 5.26 clearly implies that control-driven circuits are at least as powerful as their classical counterpart in terms of what can be computed. Also, they are more expressive since they provide operators for branching and iterative computation, which are control flow constructs that cannot be explicitly represented within classical circuits. Classical circuits only support gate sequencing and gate parallelising.
Although individual control-driven circuits are more expressive, they are not sufficient to simulate Boolean functions of arbitrary length. To address this, we require an extension to support non-uniform computation, as described by Theorem 5.27.
Theorem 5.27. For any Boolean function, there is a family of control-driven Boolean circuits able to compute it.
Proof:
Given a Boolean function , we know that we can always define a family of classical NAND circuits where, for all and all , computes . Since Definition 5.4 does not alter structure but just adds extra information, there also is a family where each is the corresponding annotated circuit of . By Theorem 5.23 and Corollary 5.26, there consequently is a family where each computes .
6. Applications
In this section, we present concrete examples of control-driven Boolean circuits, with the aim of demonstrating the applicability of our proposal. As a starting point, Figure 1 shows the equivalent circuits for the NOT, AND and OR functions. In Definition 4.6, it is stated that the operator is chosen from a family when there is exactly one Boolean input. As corresponds to NOT (see Definition 2.2), computation units reducing to that operation are annotated with the symbol. To further enhance readability, units with Boolean inputs are labelled with , effectively denoting a -ary NAND function.

Figure 1: Elementary logical connectives as control-driven Boolean circuits.
In Figure 1, it is clear that AND and OR take the form of composites, whereas NOT is just an atomic circuit consisting of a single computation unit with exactly one Boolean invar and one Boolean outvar. More precisely, AND is formed by composing a 2-ary NAND circuit and a NOT primitive into a total sequential circuit. The OR composite is formed in two stages: First, two NOT primitives are put in parallel and then a total sequential composite is formed out of it together with a 2-ary NAND function.
The elementary functions presented in Figure 1 can serve as building blocks to form even more complex circuits. For example, Figure 2 displays a branching composite for a context-sensitive stochastic Boolean network [27], which captures the oscillatory dynamics of a p53-Mdm2 regulatory pathway that is subject to molecular and genetic noise. The purpose of this circuit is to determine the next state of a gene by randomly selecting one out of four alternative sub-circuits.

Figure 2: A branching circuit that captures the computational behaviour of the context-sensitive stochastic Boolean network presented in [27]. For increased readability, computation units are annotated to make evident the behaviour they perform. Here, the symbols , , , and denote NOT, NAND, Boolean eater, fork and join functions. All of them are well-defined as per Definition 2.2.
For the first alternative, we first compose a parallel composite for the simultaneous activation of a NOT function and a “Boolean eater”. In Section 2, we mentioned that a Boolean eater is a computing device with any number of Boolean invars and a single control outvar. This class of circuits is useful to wrap interfaces.
After composing our parallel composite, we form a partial sequential circuit by taking a “fork” as the left operand and the parallel structure as the right one. The result is then composed with a “join” primitive into a partial sequential composite that captures the whole behaviour of the first alternative branch.
The second and third alternatives are total sequential circuits for the invocation of a NOT primitive and an OR composite, in that order. The only difference is in the way they process Boolean information (cf. the leftmost NOT functions and the inner parallel composites). Finally, at the bottom-level, we have a composite which is similar to the first alternative. The only difference is that, rather than just computing NOT, the inner parallel composite activates a total sequential circuit of two NOT primitives, effectively passing information unchanged. In other words, the last branch defines a buffer to “echo” a p53 Boolean value.
It might not seem entirely obvious that the process of choosing one alternative or another is entirely governed by control flow. To elucidate this, observe that the initial state of our branching composite injects Boolean values into the p53 and variables as well as a control signal into the only control invar. As control flow arrows run from the control invar to the forks and to the leftmost NOT functions, all these units will be enabled initially (see Definition 4.3), but only one of them will be chosen for evaluation (as per Definition 4.5). In other words, the initial state triggers only one alternative composite in the next execution step.
Due to the modularity property of the proposed model, our branching composite can be used as a component to form even more complex circuits. To explain the modularity property in a more concrete manner, let us construct an iterative circuit to define the toggle action of a clocked set-reset flip-flop. First, let us reuse the buffer we use in the last alternative of our branching circuit, which we depict in Figure 3a for convenience.
(a) Internal details of a buffer.

(b) Buffer as a black box.

Figure 3: A buffer is a total sequential circuit of two NOT primitives. Here, we demonstrate the modularity property of control-driven circuits. A similar black-boxing process can be done with any of the composites displayed in Figures 1 and 2.
This time we reuse this structure to build the partial sequential composite displayed in Figure 4a. As 4a will be the entry point to our iterative computation, its purpose is to trigger three buffers in parallel for echoing the values of three variables, namely (reset), (current state) and (set).
These three values are intended to be consumed by the composite of Figure 4b, which captures the behaviour of our main cyclic computation. Like 4a, this building block is constructed from
The first alternative branch demonstrates the expressivity of our model to define computation units that do not receive or produce any Boolean values, but just fork or join control signals. Here, the unique computation units of the fork and join circuits are annotated with F and J, respectively. These units are formed out of computing devices.
existing structures; in this case, the AND and OR composites from Figure 1. Operationally, 4b realises the following equation to determine the next flip-flop state:
Fully realising Equation 5 requires the negation of , before applying AND on the result and the current state . In other words, a partial sequential circuit needs to be formed to compute NOT and AND, in that order (see Figure 4b).

(a) A composite to be used as the entry to our iterative computation. This is formed by first composing three buffers in parallel and then using a fork and the result as left and right operands for a partial sequential circuit. The resulting sequential circuit and a join primitive are then used as left and right operands to form an even more complex partial sequential structure.

(b) A composite to be used as the main iterative computation, which is formed by first composing NOT and AND into a partial sequential circuit and then using the result and OR as left and right operands, respectively, for a more complex partial sequential circuit.

(c) A composite to be used for the calculation of the next state, which simply is a partial sequential circuit for the execution of two NOT primitives.
Figure 4: Composite building blocks for the tail-iterative circuit depicted in Figure 5. Internal structures are shown on the left and the corresponding modular black boxes are displayed on the right.
As OR cannot be applied before finding , the newly created composite needs to be invoked before passing its result to the OR circuit which, in addition, receives an S-value from the external world. In effect, this constitutes another partial sequential circuit, which we fully depict in Figure 4b.
The result of 4b, , is intended to be passed on to another circuit to determine the set and reset values for the next iteration. As we aim to implement a cyclic toggle action, we define and , and simply echo to the next iteration. Accordingly, we construct the partial sequential circuit of Figure 4c, which behaves almost like a buffer, with the difference that is sent to the external world immediately after computing it.
All the building blocks from Figure 4 and an eater primitive are used as operands for the colimit operation described in Definition 3.27, effectively forming the tail-iterative circuit from Figure 5 which captures the behaviour of our cyclic toggle action. A glance at Definition 3.27 reveals that tail-iterative composites can only be created from sound circuits. By simply following the flows from invars to outvars in each building block, one can easily verify soundness.

Figure 5: A tail-iterative circuit to compute the toggle action of a clocked SR flip-flop. Like any other iterative composite, this one is not built from sequencing, parallelising or branching. Instead, a self-contained colimit operation based on pushout and coproduct constructions is used at once, as described in Definition 3.27. For this reason, we only show the building blocks and the top-level composite. Relative to the notation used in Definition 3.27, the building blocks Entry, Next, E and Action correspond to the symbols and , respectively.
Table 1 shows the characteristic table of our iterative circuit, where it is clear that, having as the initial state, will make our circuit toggle from the second iteration by triggering a set operation. If we rather start with and , the composite will also toggle from the second iteration. But this time, from a reset operation. Starting with an invalid state will always trigger reset in the second step. Once a set or a reset state is reached, the iterative circuit toggles until termination. Termination occurs randomly at any iteration, effectively simulating the moment clock signals are stopped being produced.
| 0 | 0 | 0 | 1 | 0 | 0 | Hold |
| 0 | 0 | 1 | 0 | 1 | 1 | |
| 0 | 1 | 0 | 1 | 0 | 0 | Reset |
| 0 | 1 | 1 | 1 | 0 | 0 | |
| 1 | 0 | 0 | 0 | 1 | 1 | Set |
| 1 | 0 | 1 | 0 | 1 | 1 | |
| 1 | 1 | 0 | 0 | 1 | 1 | Invalid |
| 1 | 1 | 1 | 0 | 1 | 1 |
Table 1: Characteristic table of the tail-iterative circuit from Figure 5.
Although our tail-iterative circuit checks for termination immediately after executing 4b, it is possible to define a head-iterative composite instead. To accomplish this, we can use the same building blocks as operands. But this time, on the operator described in Definition 3.26.
7. Related Work
In [5], we introduced the theoretical foundations of the computon model, which the present work builds upon. Here, we develop a concrete instantiation of computons for simulating Boolean functions of arbitrary input length, moving beyond the abstract formulation of computation units towards an operationally defined model based on abstract computing devices. Unlike the original treatment [5], we specify the behaviour of units in terms of particular data types and provide explicit, implementable execution semantics. Particularly, Definition 2.2 characterises units as constructs that encapsulate families of devices for echoing control signals (), discarding Boolean data () and performing NAND operations (). Their operational semantics are described in Section 4).
In [4], only a family of -devices is considered so that a particular -ary device is implicitly chosen depending on the number of input Boolean ports. We address this limitation by introducing the set and function pipeline . We also introduce the concept of atomic circuits to generalise the notion of so-called primitive circuits; thereby, allowing more expressive computation units, e.g., now it is possible to replicate values within a single unit. Regarding compositionality, we revise the semantics of parallel and branching composition, eliminating the need for separate operators for synchronous parallelising and closed branching, the latter of which can now be defined from out branching and sequencing operators. Although our definition of branching is equivalent to the one introduced in [3], we now provide explicit proofs to show that the associativity and commutativity properties are satisfied. Furthermore, unlike [4], we provide concrete examples of control-driven circuits in the domains of propositional logic, biomedicine and electronics, demonstrating the applicability of the proposal across distinct real-world scenarios. We also develop a more comprehensive transformation procedure from classical to control-driven circuits, which establishes equivalence in terms of operational semantics and accommodates -ary gates beyond binary ones (Section 5). In fact, the formulation of such circuits is now implementable, given that concrete computing devices, with input-output relationships, have been introduced. The model has been implemented in both Idris [6] and Java [7]. The Java implementation is currently the most stable and is capable of simulating arbitrary Boolean circuits.
Although classical Boolean circuits provide a well-established model of computation, their compositionality capabilities are limited to sequencing and paralleling [40]. In this representation, control flow is not explicitly distinguished from data flow, making the order of execution difficult to identify independently of the circuit itself. A conventional mechanism for introducing branching is the multiplexer, or its dual, the demultiplexer, which selects between inputs or directs outputs according to a designated select line [28, 10]. Other extensions introduce specialised components to capture stochastic or probabilistic behaviour. Examples include noisy gates [33, 30], random flip-flops [37] and stochastic multiplexers [12, 41]. Such constructions can represent probability distributions over computational outcomes and support the simulation of probabilistic Turing machines or random Boolean functions. Probabilistic logic has also been investigated as a means of modelling non-determinism within Boolean circuits [29, 13, 20]. These approaches, however, typically rely on specialised circuit constructs rather than providing a general algebraic account of control flow.
Iteration presents a further challenge for the conventional circuit model. One approach is to introduce feedback by allowing gate outputs to be routed to the inputs of earlier gates, thereby obtaining cyclic Boolean circuits [34]. When memory components (e.g., D-type flip-flops or latches) are incorporated, circuit outputs can depend on both present and past inputs. In these systems, feedback supports the storage and updating of internal states [36, 31]. Beyond these hardware-oriented approaches, categorical methods have been developed to provide a compositional account of cyclic circuits. In particular, circuits can be represented as morphisms in freely generated symmetric traced monoidal categories [25, 21, 22, 16, 35]. Their graphical syntax, given by string diagrams [32], interprets trace as feedback from outputs to inputs. This representation yields an intuitive diagrammatic language for expressing circuit structure and reasoning about the associated equational theory [23]. Nevertheless, the availability of a formal account of feedback does not, by itself, provide explicit compositional operators for every form of control flow, particularly branching and partial sequential composition.
Equational theories offer a principled means of specifying the laws governing the construction and manipulation of algebraic structures. In the context of Boolean circuits, composition originates in Boolean algebra and permits logic gates with compatible interfaces to be combined into larger computational units. When the output of one gate feeds into another gate, the resulting composition defines total sequencing [29]. The abstraction principle [38] further supports modularity by allowing a composite to be treated as a single unit, without requiring access to its internal details. Although these principles underpin hierarchical circuit design, a comprehensive algebraic framework must account not only for sequential and parallel composition but also for branching, partial sequencing and iteration.
Several approaches have sought to formalise compositional circuit construction through algebra. Lafont [26], for example, develops an algebra generated by circuit gates, with operations corresponding to ordinary function composition and parallel composition over disjoint maps. While this framework captures total sequencing and paralleling, it does not provide algebraic constructions for branching, partial sequencing or iteration. Subsequent work on categorical and diagrammatic circuit semantics [21, 22] takes a step towards a more general account, but relies on equations motivated by diagrammatic intuition rather than a fully developed formal treatment. More recently, [23] constructs freely generated symmetric traced monoidal categories from circuit signatures, enabling arbitrary circuits to be assembled through morphism composition, tensor products and traces. These operations provide a unified treatment of total sequencing, parallelising and feedback-induced iteration, but do not explicitly support branching or partial sequencing.
The absence of partial sequencing in such frameworks is closely related to the way symmetric monoidal categories represent computational structure. In particular, their conventional string-diagram syntax does not inherently distinguish control signals from data signals through separate classes of wires [11]. Thus, limiting the direct representation of control-dependent execution for independent composition. An extension proposed in [39] enriches monoidal categories over Eilenberg–Moore algebras to associate probabilities with wires; thereby, representing probabilistic branching. However, this enrichment does not resolve the lack of explicit support for partial sequencing. Higher-dimensional automata offer an alternative framework capable of representing partial sequencing [18, 19]. In these models, however, partial sequential execution is captured implicitly through state-transition activation rather than through dedicated composition operators. Since control and data flow are not independently represented, modular reasoning about these two dimensions remains limited.
The hierarchical organisation of circuits also resembles categorical approaches in cybernetics, where complex systems are assembled from smaller components. For example, [17] employs general colimits to construct complex systems hierarchically, following a bottom-up approach to component integration. Although this supports structural system composition, it does not provide explicit control flow constructs for governing concrete causal and informational interactions. The approach in [1] addresses aspects of this limitation by supporting the dynamic formation of spaces of total sequential composites. In that setting, sequential composition emerges implicitly from the dynamics of self-organising spaces rather than being defined through explicit colimit constructions.
The approach developed in this paper differs from the current literature in the sense it treats control flow as a first-class compositional structure rather than encoding it through specialised gates or relying exclusively on the implicit dynamics of circuit execution. Sequential composition, parallelising, branching and iteration are expressed through algebraic operators that support the hierarchical construction of circuits from simpler ones. The resulting framework supports compositional (and hence modular) reasoning in the presence of feedback, while allowing deterministic and non-deterministic computations to coexist within a common framework. Crucially, the explicit distinction between control flow and data flow enables these aspects to be specified and analysed independently, providing a unified algebraic basis for Boolean circuits.
8. Conclusion
This paper introduces control-driven Boolean circuits as a non-uniform model of high-level computation in which Boolean functions are realised through composites that exhibit explicit control and data flow. The central contribution is a collection of colimit-based operators for constructing circuits through partial sequencing, total sequencing, asynchronous parallelising, (non-deterministic) branching and iteration. Section 2 establishes some algebraic properties of these operators, showing that all but parallelising satisfy the identity law, whereas commutativity is established for parallelising and branching only. Prallelising, branching and total sequencing sat-isfy the associativity property in addition. Together, these results provide an algebraic basis for constructing and reasoning about Boolean circuits.
Section 4 develops the operational semantics of our proposal by which control flow determines the order in which abstract computing devices are evaluated. From a high-level viewpoint, each unit acts as a passive encapsulation construct that coordinates control signals with Boolean data and can be evaluated only when its input data is available. Evaluation entails triggering all the devices within a unit on the available inputs, before producing further Boolean values and control signals. Although the model provides an explicit account of execution, a general theory relating algebraic composition to operational semantics remains to be developed. Future work will investigate how colimit-based compositionality can be used to establish guarantees about execution, including studying the conditions under which termination can be ensured. Although deadlock freedom has already been considered in [5], termination warrants further formal investigation, since the absence of deadlocks alone does not necessarily exclude non-termination.
In Section 5, we establish that classical Boolean circuits can be represented within the proposed framework by means of the construction given in the proof of Theorem 5.23 together with the behaviour equivalence presented in Theorem 5.25. Although these results demonstrate that our proposal can express the same computations as classical Boolean circuits, the hierarchical construction of resulting composites is not immediately apparent. A systematic account of how composites can be decomposed into their constituent operations is therefore an important direction for future research. We envisage introducing dedicated decomposition operators to identify the operations required to construct a given composite and, where possible, to determine minimal decompositions.
Unfortunately, the transformation procedure from Theorem 5.23 introduces a number of control variables that can exceed the number of edges of the original classical circuit. This overhead motivates the development of alternative transformations with the aim of reducing the size of resulting control-driven circuits while preserving their computational behaviour. For the present work, the main aim is to establish expressive adequacy rather than translation efficiency. Specifically, Theorem 5.27 establishes that the model can represent arbitrary Boolean functions through suitable circuit families, thereby demonstrating that its expressive power is at least that of classical families of Boolean circuits. This result should be understood in the non-uniform sense, i.e., we establish representability for each input length, without providing a uniform or efficient procedure for constructing the corresponding circuit family.
Although the use of the functionally complete set provides a simplified representation of computing devices, other functionally complete bases could be adopted without changing the underlying expressive-power argument, provided that the corresponding device semantics are defined appropriately. Beyond establishing computational power, we showed that the framework makes control flow explicit; thus, contrasting classical circuits in which control is implicitly encoded within the network of logic gates. Control-driven circuits define control flow through dedicated composition operators. This distinction can support modular reasoning about the order in which (encapsulated) computing devices are activated, without requiring internal circuit inspection.
To the best of our knowledge, our framework provides a unified algebraic treatment of total and partial sequencing, parallelising, non-deterministic branching and iteration within a single model of Boolean circuits. Its distinguishing feature is not merely the availability of these individual operators, but their integration into a formally specified compositional framework grounded in finite colimit colimit constructions. Although this integration offers a basis for hierarchical circuit construction and algebraic reasoning across different forms of composition, a more complete characterisation of the model remains open. In particular, identifying the classes of Boolean functions and computational behaviour that can be represented through iteration are important topics for further study.
The current treatment of branching also leaves open questions concerning the representation of input-dependent decision-making and probabilistic computation. Although branching provides a structural mechanism for representing alternative computational paths, the ability to select paths according to external inputs requires an explicit account of how data values could constrain control transitions. We therefore plan to extend the semantics of computation units with pre- and post-conditions, enabling branching decisions that depend on user-defined conditions. Such an extension would support a more direct representation of conditional computation while preserving the separation of control and data flow. Although implementations are currently available [6, 7, 8], a complementary practical direction is the development of a visual programming environment for constructing and exploring control-driven circuits through their compositional structure. The Java implementation provides a first step by allowing the automatic generation of circuit diagrams [7].
Finally, extending the model with probabilistic choice would provide a principled way to represent randomised computation. Such an extension would require an explicit probabilistic semantics for selecting computational paths, rather than relying on non-deterministic branching alone. It could then support the representation and study of probabilistic Boolean computations and, subject to appropriate encoding and simulation results, the simulation of probabilistic Turing machines. Together, these developments would extend the framework towards a more general compositional account of deterministic, non-deterministic and probabilistic behaviour.
References
[1] Arellanes, D.: Composition Machines: Programming Self-organising Software Models for the Emergence of Sequential Program Spaces, 18th International Symposium on Theoretical Aspects of Software Engineering (TASE), Springer, 2024.
[2] Arellanes, D.: Models of High-Level Computation, Front. Comput. Sci., 7, 2025, 1–7.
[3] Arellanes, D.: Colimit-Based Composition of High-Level Computing Devices, 21st International Symposium on Logical and Semantic Frameworks with Applications (LSFA), EPTCS, 2026.
[4] Arellanes, D.: Compositional Control-Driven Boolean Circuits, 22nd International Conference on Relational and Algebraic Methods in Computer Science (RAMICS), Springer, 2026.
[5] Arellanes, D.: Compositional Separation of Control Flow and Data Flow, Journal of Logical and Algebraic Methods in Programming, 2026.
[6] Arellanes, D.: The Computation Model (Idris Implementation), 2026.
[7] Arellanes, D.: The Computation Model (Java Implementation), 2026.
[8] Arellanes, D.: The Computation Model (Tutorial), 2026.
[9] Arora, S., Barak, B.: Computational Complexity: A Modern Approach, Cambridge University Press, Cambridge, 2009.
[10] Asadi, F.: Multiplexer and De-multiplexer, in: Digital Circuits Laboratory Manual, Synthesis Lectures on Electrical Engineering, Springer, Cham, 2024, 81–104.
[11] Bonchi, F., Gadducci, F., Kissinger, A., Sobocinski, P., Zanasi, F.: String diagram rewrite theory II: Rewriting with symmetric monoidal structure, Mathematical Structures in Computer Science, 32(4), 2022, 511–541.
[12] Brown, B., Card, H.: Stochastic neural computation. I. Computational elements, IEEE Transactions on Computers, 50(9), 2001, 891–905.
[13] Chakrapani, L. N. B., Palem, K. V.: A Probabilistic Boolean Logic and its Meaning, Technical Report TR08-05, Rice University, Department of Computer Science, Houston, Texas, USA, 2008.
[14] Clote, P., Kranakis, E.: Boolean Functions and Computation Models, Texts in Theoretical Computer Science. An EATCS Series, 1st edition, Springer, Berlin, Heidelberg, 2002.
[15] Dardik, I., Porter, A., Kang, E.: Recomposition: A New Technique for Efficient Compositional Verification, 24th Conference on Formal Methods in Computer-Aided Design (FMCAD), 2024.
[16] Di Lavore, E., Gianola, A., Román, M., Sabadini, N., Sobociński, P.: A Canonical Algebra of Open Transition Systems, 17th International Conference on Formal Aspects of Component Software (FACS) (G. Salain, A. Wijs, Eds.), Springer, Cham, 2021.
[17] Ehresmann, A. C., Vanbremeersch, J. P.: Memory Evolutive Systems; Hierarchy, Emergence, Cognition, vol. 4, 1st edition, Elsevier, 2007.
[18] Fahrenberg, U., Johansen, C., Struth, G., Ziemianski, K.: Languages of higher-dimensional automata, Mathematical Structures in Computer Science, 31(5), 2021.
[19] Fahrenberg, U., Johansen, C., Struth, G., Ziemianski, K.: A Kleene Theorem for Higher-Dimensional Automata, 33rd International Conference on Concurrency Theory (CONCUR 2022), 2022.
[20] Flaminio, T., Gilio, A., Godo, L., Sanfilippo, G.: On conditional probabilities and their canonical extensions to Boolean algebras of compound conditionals, International Journal of Approximate Reasoning, 159, 2023, 1–31.
[21] Ghica, D. R., Jung, A.: Categorical semantics of digital circuits, 16th Conference on Formal Methods in Computer-Aided Design (FMCAD), 2016.
[22] Ghica, D. R., Jung, A., Lopez, A.: Diagrammatic Semantics for Digital Circuits, 26th EACSL Annual Conference on Computer Science Logic (CSL) (V. Goranko, M. Dam, Eds.), 82, Schloss Dagstuhl – Leibniz-Zentrum für Informatik, Dagstuhl, Germany, 2017.
[23] Ghica, D. R., Kaye, G., Sprunger, D.: A Complete Theory of Sequential Digital Circuits: Denotational, Operational and Algebraic Semantics, 2025.
[24] Giannakopoulou, D., Namjoshi, K. S., Päsäreanu, C. S.: Compositional Reasoning, in: Handbook of Model Checking (E. M. Clarke, T. A. Henzinger, H. Veith, R. Bloem, Eds.), Springer, Cham, 2018, 345–383.
[25] Katis, P., Sabadini, N., Walters, R. F. C.: Feedback, trace and fixed-point semantics, RAIRO - Theoretical Informatics and Applications, 36(2), 2002, 181–194.
[26] Lafont, Y.: Towards an algebraic theory of Boolean circuits, Journal of Pure and Applied Algebra, 184(2), 2003, 257–310.
[27] Liang, J., Han, J.: Stochastic Boolean networks: An efficient approach to modeling gene regulatory networks, BMC Systems Biology, 6(1), 2012, 1–20.
[28] Lozhkin, S. A., Khzmalyan, D. E.: The Complexity of the Standard Multiplexer Function in a Class of Switching Circuits, Comput Math Model, 32(4), 2021, 478–489.
[29] Mansinghka, V., Jonas, E., Tenenbaum, J.: Stochastic Digital Circuits for Probabilistic Inference, Technical Report MIT-CSAIL-TR-2008-069, Massachusetts Institute of Technology, Cambridge, MA, USA, 2008.
[30] Mozeika, A., Saad, D.: On Reliable Computation by Noisy Random Boolean Formulas, IEEE Transactions on Information Theory, 61(1), 2015, 637–644.
[31] Nishimura, S.: Classification of Sequential Circuits as Causal Functions, Journal of Physics: Conference Series, 2613(1), 2023, 012016.
[32] Piedeleu, R., Zanasi, F.: An Introduction to String Diagrams for Computer Scientists, Elements in Applied Category Theory, 1st edition, Cambridge University Press, 2025.
[33] Pippenger, N.: On networks of noisy gates, 26th Annual Symposium on Foundations of Computer Science (SFCS), 1985.
[34] Riedel, M. D., Bruck, J.: Cyclic Boolean circuits, Discrete Applied Mathematics, 160(13), 2012, 1877–1900.
[35] Sprunger, D., Katsumata, S.-y.: Differentiable causal computations via delayed trace (extended version), Mathematical Structures in Computer Science, 35, 2025, 1–35.
[36] Steinbach, B., Posthoff, C.: Sequential Circuits, in: Logic Functions and Equations: Fundamentals and Applications using the XBOOLEAN-Monitor (B. Steinbach, C. Posthoff, Eds.), Springer, Cham, 2022, 741–794.
[37] Stipčević, M.: Quantum random flip-flop and its applications in random frequency synthesis and true random number generation, Review of Scientific Instruments, 87(3), 2016, 1–18.
[38] Turner, D. A.: A New Implementation Technique for Applicative Languages, Software - Practice and Experience, 9(1), 1979, 31–49.
[39] Villoria, A., Basold, H., Laarman, A.: Enriching Diagrams with Algebraic Operations, 28th International Conference on Foundations of Software Science and Computation Structures (FoSSaCS 2024), Springer, 2025.
[40] Wegener, I.: The complexity of Boolean functions, 1st edition, John Wiley & Sons, 1987.
[41] Zhu, P., Han, J.: Stochastic Multiple-Valued Gene Networks, IEEE Transactions on Biomedical Circuits and Systems, 8(1), 2014, 42–53.