Hostname: page-component-78c5997874-dh8gc Total loading time: 0 Render date: 2024-11-03T00:13:38.556Z Has data issue: false hasContentIssue false

A categorical model for higher order imperative programming

Published online by Cambridge University Press:  01 August 1998

DAVID A. NAUMANN
Affiliation:
Department of Computer Science, Stevens Institute of Technology, Castle Point on the Hudson, Hoboken, NJ07030 U.S.A.

Abstract

The order-enriched category of monotonic predicate transformers over posets is a model of the refinement calculus of higher order imperative programs and pre-post specifications. This category is shown to be equivalent to the category of spans over ideal relations, and ideal relations are shown to be spans over monotonic functions between posets. To do this we use a skew span construction because the standard categorical span constructions are inapplicable. Axioms are given for products and coproducts of underlying posets as well as the homset as a coexponent, using inequations (for various kinds of lax adjunctions) and conditional equations (for adjunctions in subcategories) that are shown to uniquely determine the structures. The model is described in elementary terms using power allegories, an axiomatic calculus of relations, which makes the proofs accessible to non-specialists and shows that the results generalize to other base categories.

Type
Research Article
Copyright
1998 Cambridge University Press

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)