On contract satisfaction in a higher-order world

Abstract

Behavioral software contracts have become a popular mechanism for specifying and ensuring logical claims about a program's flow of values. While contracts for first-order functions come with a natural interpretation and are well understood, the various incarnations of higher-order contracts adopt, implicitly or explicitly, different views concerning the meaning of contract satisfaction. In this article, we define various notions of contract satisfaction in terms of observational equivalence and compare them with each other and notions in the literature. Specifically, we introduce a small model language with higher-order contracts and use it to formalize different notions of contract satisfaction. Each of them demands that the contract parties satisfy certain observational equivalences.

Document Details

Document Type
Pub Defense Publication
Publication Date
Nov 01, 2011
Source ID
10.1145/2039346.2039348

Entities

People

  • Christos Dimoulas
  • Matthias Felleisen

Organizations

  • Air Force Office of Scientific Research
  • Northeastern University

Tags

Readers

  • Computational Linguistics
  • Government Contracting/Procurement.
  • Theoretical Analysis.