Interface automata

Luca de Alfaro, Thomas A. Henzinger

2001 · 1.2K citations · 9 references

Concepts

TL;DR

Conventional type systems define interfaces by values and domains. The paper introduces a lightweight formalism to capture temporal aspects of component interfaces. The authors use an automata-based language that models input assumptions and output guarantees, enabling automatic compatibility checks and refinement through optimistic composition and alternating refinement. They demonstrate that the approach is grounded in game theory, yielding efficient algorithms for compatibility and refinement checks.

Abstract

Conventional type systems specify interfaces in terms of values and domains. We present a light-weight formalism that captures the temporal aspects of software component interfaces. Specifically, we use an automata-based language to capture both input assumptions about the order in which the methods of a component are called, and output guarantees about the order in which the component calls external methods. The formalism supports automatic compatability checks between interface models, and thus constitutes a type system for component interaction. Unlike traditional uses of automata, our formalism is based on an optimistic approach to composition, and on an alternating approach to design refinement. According to the optimistic approach, two components are compatible if there is some environment that can make them work together. According to the alternating approach, one interface refines another if it has weaker input assumptions, and stronger output guarantees. We show that these notions have game-theoretic foundations that lead to efficient algorithms for checking compatibility and refinement.

References

9