Home
Scholarly Works
Categorical foundations for structured...
Journal article

Categorical foundations for structured specifications in Z

Abstract

In this paper we present a formalization of the Z$${\mathsf{Z}}$$ notation and its structuring mechanisms. One of the main features of our formal framework, based on category theory and the theory of institutions, is that it enables us to provide an abstract view of Z$${\mathsf{Z}}$$ and its related concepts. We show that the main structuring mechanisms of Z$${\mathsf{Z}}$$ are captured smoothly by categorical constructions. In particular, we provide a straightforward and clear semantics for promotion, a powerful structuring technique that is often not presented as part of the schema calculus. Here we show that promotion is already an operation over schemas (and more generally over specifications), that allows one to promote schemas that operate on a local notion of state to operate on a subsuming global state, and in particular can be used to conveniently define large specifications from collections of simpler ones. Moreover, our proposed formalization facilitates the combination of Z$${\mathsf{Z}}$$ with other notations in order to produce heterogeneous specifications, i.e., specifications that are obtained by using various different mathematical formalisms. Thus, our abstract and precise formulation of Z$${\mathsf{Z}}$$ is useful for relating this notation with other formal languages used by the formal methods community. We illustrate this by means of a known combination of formal languages, namely the combination of Z$${\mathsf{Z}}$$ with CSP$${\mathsf{CSP}}$$.

Authors

Castro PF; Aguirre N; Pombo CL; Maibaum TSE

Journal

Formal Aspects of Computing, Vol. 27, No. 5-6, pp. 831–865

Publisher

Association for Computing Machinery (ACM)

Publication Date

November 1, 2015

DOI

10.1007/s00165-015-0336-0

ISSN

0934-5043

Contact the Experts team