A constructive denotational semantics for Kahn networks in Coq - Inria - Institut national de recherche en sciences et technologies du numérique Access content directly
Book Sections Year : 2009

A constructive denotational semantics for Kahn networks in Coq


Semantics of programming languages and interactive environments for the development of proofs and programs are two important aspects of Gilles Kahn's scientific contributions. In his paper ``The semantics of a simple language for parallel programming'', he proposed an interpretation of (deterministic) parallel programs (now called Kahn networks) as stream transformers based on the theory of complete partial orders (cpos). A restriction of this language to synchronous programs is the basis of the data-flow Lustre language which is used for the development of critical embedded systems. We present a formalization of this seminal paper in the Coq proof assistant. For that purpose, we developed a general library for cpos. Our cpos are defined with an explicit function computing the least upper bound (lub) of an increasing sequence of elements. This is different from what Kahn developed for the standard Coq library where only the existence of lubs (for arbitrary directed sets) is required, giving no way to explicitly compute a fixpoint. We define a cpo structure for the type of possibly infinite streams. It is then possible to define formally what is a Kahn network and what is its semantics, achieving the goal of having the concept closed under composition and recursion. The library is illustrated with an example taken from the original paper as well as the Sieve of Eratosthenes, an example of a dynamic network.
Fichier principal
Vignette du fichier
postprint.pdf (212.56 Ko) Télécharger le fichier
Origin : Files produced by the author(s)

Dates and versions

inria-00431806 , version 1 (13-11-2009)


  • HAL Id : inria-00431806 , version 1


Christine Paulin-Mohring. A constructive denotational semantics for Kahn networks in Coq. Yves Bertot and Gérard Huet and Jean-Jacques Lévy and Gordon Plotkin. From Semantics to Computer Science, Cambridge University Press, pp.383-413, 2009, 9780521518253. ⟨inria-00431806⟩
263 View
350 Download


Gmail Facebook X LinkedIn More