A Machine Verified Distributed Sorting Algorithm

  • Jørgen H. Andersen
  • Ed Harcourt
  • K.V.S. Prasad


We present a verification of a distributed sorting algorithm in ALF,
an implementation of Martin L¨of's type theory. The implementation
is expressed as a program in a prioritized version of CBS, (the Calculus of Broadcasting Systems) which we have implemented in ALF. The specification is expressed in terms of an ALF type which represents the set of all sorted lists and an HML (Hennesey-Milner Logic) formula which expresses that the sorting program will input any number of data until it hears a value triggering the program to begin outputting the data in a sorted fashion. We gain expressive power from the type theory by inheriting the language of data, state expressions, and propositions.
How to Cite
Andersen, J., Harcourt, E., & Prasad, K. (1996). A Machine Verified Distributed Sorting Algorithm. BRICS Report Series, 3(4). https://doi.org/10.7146/brics.v3i4.19967