Skip to main content
QUICK REVIEW

[Paper Review] The Complexity of Interaction (Long Version)

Stéphane Gimenez, Georg Moser|arXiv (Cornell University)|Nov 5, 2015
Logic, programming, and type systemsComputer Science5 references5 citations
TL;DR

This paper presents a compositional, type-based complexity analysis for interaction-net programs, using user-defined sized and scheduled types to statically certify precise time, space, and space–time complexity bounds for both sequential and parallel reductions. By assigning complexity potentials to typed nodes, the method enables accurate, modular analysis without relying on input-focused assumptions, with key results including compositional bounds for sequential and parallel reductions via convolution and summation of complexity functions.

ABSTRACT

In this paper, we analyze the complexity of functional programs written in the interaction-net computation model, an asynchronous, parallel and confluent model that generalizes linear-logic proof nets. Employing user-defined sized and scheduled types, we certify concrete time, space and space-time complexity bounds for both sequential and parallel reductions of interaction-net programs by suitably assigning complexity potentials to typed nodes. The relevance of this approach is illustrated on archetypal programming examples. The provided analysis is precise, compositional and is, in theory, not restricted to particular complexity classes.

Motivation & Objective

  • To address the non-compositional nature of traditional complexity analysis, especially for function composition where output size affects overall complexity.
  • To provide a static, compositional method for analyzing both time and space complexity in interaction-net programs.
  • To extend complexity analysis to parallel reductions, which are often neglected in existing formal methods.
  • To enable precise, modular complexity certification by linking size and timing annotations to typed nodes via complexity potentials.
  • To support the design and optimization of distributed and concurrent systems through predictable space–time complexity guarantees.

Proposed method

  • The method employs user-defined sized types to track size measures of intermediate results in sequential reductions.
  • It introduces complexity potentials assigned to typed nodes, which are used to derive space–time complexity bounds through semantic analysis.
  • For parallel reductions, timing annotations are combined with size annotations to form scheduled types, enabling control over data availability and task scheduling.
  • The approach uses convolution h(t) = max_{u+v=t} f(u) + g(v) to model space–time complexity of sequential juxtapositions.
  • For parallel reductions, space–time complexity is modeled as a simple sum h(t) = f(t) + g(t), enabling compositional analysis.
  • The method is formalized via two main theorems: one for sequential reductions (Theorem 1) and one for parallel reductions (Theorem 2), both grounded in potential-based reasoning.

Experimental results

Research questions

  • RQ1How can complexity analysis of functional programs be made compositional when output size is not known a priori?
  • RQ2What is the precise space–time complexity of sequential interaction-net reductions, and how can it be statically certified?
  • RQ3How can parallel reductions be analyzed with guaranteed time and space bounds using a type system?
  • RQ4Can the same type system support both sequential and parallel complexity analysis with compositional guarantees?
  • RQ5How can complexity potentials be assigned to nodes to ensure accurate, modular bounds for higher-order programs?

Key findings

  • The paper establishes a compositional complexity analysis for sequential interaction-net reductions using sized types and complexity potentials, with space–time complexity modeled via convolution of functions.
  • For parallel reductions, the method achieves compositional complexity bounds through scheduled types, where space–time complexity of juxtapositions is expressed as a simple sum of functions.
  • The approach enables precise certification of time and space complexity bounds without requiring execution or input-specific analysis.
  • The method is general and not restricted to specific complexity classes, supporting both polynomial and exponential bounds.
  • The framework supports higher-order programs, as demonstrated by typing merge sort with a concrete O(n log n) bound on comparison calls.
  • The analysis is applicable to distributed and concurrent systems, with potential for optimizing task scheduling and resource allocation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.