WP semantics and behavioral subtyping

  • Authors:
  • Yijing Liu;Zongyan Qiu;Quan Long

  • Affiliations:
  • LMAM and Department of Informatics, School of Mathematical Sciences, Peking University;LMAM and Department of Informatics, School of Mathematical Sciences, Peking University;LMAM and Department of Informatics, School of Mathematical Sciences, Peking University

  • Venue:
  • ICTAC'11 Proceedings of the 8th international conference on Theoretical aspects of computing
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

For the object oriented (OO) world, developing formal semantics for theoretical study and practical use is still an important topic despite of a decade's efforts. In this paper, for a sufficiently large subset of sequential Java with a pure reference semantics model, we define a Weakest Precondition (WP) semantics, and prove its soundness and completeness. Based on thisWP semantics, we study specifications of methods and the refinement relationship between specifications, and we propose new definitions for object invariants and behavioral subtyping notation for general OO programs.