Proof of Imperative Programs in Type Theory

  • Authors:
  • Jean-Christophe Filliâtre

  • Affiliations:
  • -

  • Venue:
  • TYPES '98 Selected papers from the International Workshop on Types for Proofs and Programs
  • Year:
  • 1998

Quantified Score

Hi-index 0.01

Visualization

Abstract

We present a new approach to certifying functional programs with imperative aspects, in the context of Type Theory. The key is a functional translation of imperative programs, based on a combination of the type and effect discipline and monads. Then an incomplete proof of the specification is built in the Type Theory, whose gaps would correspond to proof obligations. On sequential imperative programs, we get the same proof obligations as those given by Floyd-Hoare logic. Compared to the latter, our approach also includes functional constructions in a straight-forward way. This work has been implemented in the Coq Proof Assistant and applied on non-trivial examples.