[Paper Review] Monoidal computer II: Normal complexity by string diagrams
This paper introduces normal complexity measures in a categorical framework using string diagrams to formalize computation and complexity in a machine-independent way. It shows that time and space complexity are normal measures—where complexity evaluation is no more costly than program execution—enabling practical runtime use in hypothesis testing and algorithmic learning.
In Monoidal Computer I, we introduced a categorical model of computation where the formal reasoning about computability was supported by the simple and popular diagrammatic language of string diagrams. In the present paper, we refine and extend that model of computation to support a formal complexity theory as well. This formalization brings to the foreground the concept of normal complexity measures, which allow decompositions akin to Kleene's normal form. Such measures turn out to be just those where evaluating the complexity of a program does not require substantially more resources than evaluating the program itself. The usual time and space complexity are thus normal measures, whereas the average and the randomized complexity measures are not. While the measures that are not normal provide important design time information about algorithms, and for theoretical analyses, normal measures can also be used at run time, as practical tools of computation, e.g. to set the bounds for hypothesis testing, inductive inference and algorithmic learning.
Motivation & Objective
- To develop a machine-independent complexity theory using categorical and diagrammatic methods.
- To formalize complexity measures that are as computationally lightweight as the programs they measure.
- To identify and characterize 'normal' complexity measures that support Kleene-style normal forms.
- To bridge the gap between theoretical complexity and practical computation by enabling runtime use of complexity bounds.
- To provide a foundation for high-level reasoning about computability, complexity, and cryptography using category theory.
Proposed method
- Uses string diagrams to represent execution traces and program transformations in a monoidal category.
- Introduces graded monoidal computers where objects are labeled by complexity grades (e.g., time or space steps).
- Defines normalization via internalized trace evaluators and universal evaluators in the category.
- Characterizes normal complexity measures as Blum measures satisfying a categorical normalization condition.
- Employs internal predicates and halting functions in C♮ to represent decision procedures for complexity evaluation.
- Establishes that normal measures admit a Kleene-like normal form, reducing complexity to a single search operation.
Experimental results
Research questions
- RQ1What characterizes complexity measures that are as efficient to compute as the programs they measure?
- RQ2How can complexity theory be formalized in a machine-independent, high-level framework using category theory?
- RQ3Which complexity measures allow for a categorical version of Kleene’s normal form theorem?
- RQ4Can complexity bounds be used effectively at runtime for tasks like hypothesis testing and inductive inference?
- RQ5What is the categorical structure underlying time and space complexity in a unified framework?
Key findings
- Normal complexity measures are those where evaluating complexity is no more costly than evaluating the program itself, satisfying a categorical normalization condition.
- Time and space complexity are shown to be normal measures, while average and randomized complexity are not.
- The framework supports a categorical version of Kleene’s normal form, reducing computation to a single search over encoded execution traces.
- String diagrams provide a natural and compositional language for expressing and reasoning about complexity in monoidal categories.
- The internalization of grading and trace evaluation allows for a uniform treatment of complexity across different computational models.
- Normal measures can be used at runtime for practical tasks such as setting bounds in inductive inference and algorithmic learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.