Skip to main content
QUICK REVIEW

[Paper Review] A decorated proof system for exceptions

Jean‐Guillaume Dumas, Dominique Duval|arXiv (Cornell University)|Sep 27, 2013
Logic, programming, and type systemsComputer Science5 references1 citations
TL;DR

This paper presents a decorated proof system for exceptions in object-oriented languages, combining syntactic similarity to effect systems with specialized equations to separate effect-dependent from generic reasoning. It achieves soundness via a duality between global state and exception effects, enabling modular verification through dualized generic proofs and exception-specific rules for control flow encapsulation.

ABSTRACT

In this paper, we first provide a careful description of the denotational semantics of exceptions in an object-oriented setting. Then we define a proof system for exceptions which is sound with respect to this denotational semantics. Our proof system is close to the syntax, as in effect systems, in the sense that the exceptions do not appear explicitly in the type of expressions which may raise them, much like compiler qualifiers or specifiers. But our system also involves different kind of equations, in order to separate the verification of properties that are true only up to effects from the verification of generic properties. Thanks to a duality between the global state effect and the core part of the exception effect, the proofs are in two parts: the first part is generic and can be directly dualized from the proofs on global states, while the second part uses specific rules. These specific rules are related to the encapsulation of the core part into some control for the conditional raising and handling of exceptions.

Motivation & Objective

  • To formally define the denotational semantics of exceptions in an object-oriented context.
  • To design a proof system sound with respect to this semantics, avoiding explicit exception types in expression types.
  • To separate verification of generic properties from those dependent on exceptions using distinct equation types.
  • To exploit a duality between global state and exception effects to reuse generic proof structures.
  • To provide exception-specific rules that encapsulate control flow for raising and handling exceptions.

Proposed method

  • Define a denotational semantics for exceptions in object-oriented programs, capturing their behavior precisely.
  • Construct a proof system that mirrors syntax, akin to effect systems, without embedding exceptions in expression types.
  • Introduce two classes of equations: one for generic properties and one for effect-sensitive properties.
  • Leverage a duality between global state and exception effects to dualize generic proofs from state-based reasoning.
  • Develop specific rules that encapsulate the core exception effect into conditional control flow for exception raising and handling.
  • Ensure soundness by aligning the proof system with the defined denotational semantics.

Experimental results

Research questions

  • RQ1How can exceptions be formally modeled in an object-oriented setting using denotational semantics?
  • RQ2Can a proof system for exceptions be designed to be syntactically close to code while remaining sound?
  • RQ3How can generic reasoning about program behavior be separated from reasoning dependent on exception effects?
  • RQ4What duality exists between global state and exception effects that enables proof reuse?
  • RQ5How can exception control flow—raising and handling—be formally encapsulated in a proof system?

Key findings

  • The proof system is sound with respect to the defined denotational semantics of exceptions in object-oriented programs.
  • The system avoids explicit exception types in expression types, resembling effect systems in syntax.
  • The use of two equation classes enables clear separation between generic and effect-dependent properties.
  • The duality between global state and exception effects allows generic proofs to be directly dualized from state-based proofs.
  • Exception-specific rules successfully encapsulate control flow for raising and handling exceptions within the proof system.
  • The approach supports modular verification by isolating exception-specific reasoning from general program behavior.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.