Skip to main content
QUICK REVIEW

[Paper Review] Normal Form Bisimulations By Value

Beniamino Accattoli, Adrienne Lancelot|arXiv (Cornell University)|Mar 14, 2023
Logic, programming, and type systemsComputer Science5 citations
TL;DR

This paper introduces net bisimilarity, a new call-by-value normal form bisimilarity that addresses key limitations of Lassen's enf bisimilarity by validating commutation of independent let-expressions and identification of meaningless terms (Ω-terms), while remaining closer to Sangiorgi's call-by-name normal form bisimilarity in spirit. It is based on a formalism for open terms in call-by-value and is shown to be incomparable with enf bisimilarity, as it does not validate Moggi's monadic laws or η-expansion.

ABSTRACT

Normal form bisimilarities are a natural form of program equivalence resting on open terms, first introduced by Sangiorgi in call-by-name. The literature contains a normal form bisimilarity for Plotkin's call-by-value $λ$-calculus, Lassen's \emph{enf bisimilarity}, which validates all of Moggi's monadic laws and can be extended to validate $η$. It does not validate, however, other relevant principles, such as the identification of meaningless terms -- validated instead by Sangiorgi's bisimilarity -- or the commutation of $\letexp$s. These shortcomings are due to issues with open terms of Plotkin's calculus. We introduce a new call-by-value normal form bisimilarity, deemed \emph{net bisimilarity}, closer in spirit to Sangiorgi's and satisfying the additional principles. We develop it on top of an existing formalism designed for dealing with open terms in call-by-value. It turns out that enf and net bisimilarities are \emph{incomparable}, as net bisimilarity does not validate Moggi's laws nor $η$. Moreover, there is no easy way to merge them. To better understand the situation, we provide an analysis of the rich range of possible call-by-value normal form bisimilarities, relating them to Ehrhard's relational model.

Motivation & Objective

  • To address the incompleteness of existing call-by-value normal form bisimilarities, particularly enf bisimilarity, which fails to validate key program equivalence principles.
  • To develop a new bisimilarity that validates the commutation of independent let-expressions and identification of meaningless terms (Ω-terms), which are validated in Sangiorgi's call-by-name normal form bisimilarity.
  • To provide a formalism for handling open terms in call-by-value that supports a richer class of normal form bisimilarities.
  • To analyze the landscape of possible call-by-value normal form bisimilarities and relate them to Ehrhard's relational model.

Proposed method

  • Proposes net bisimilarity as a new normal form bisimilarity for the call-by-value lambda calculus, based on a formalism designed for open terms.
  • Uses a type system with multi-types to characterize terms and their behavior, enabling precise control over reduction and substitution.
  • Employs a proof technique based on induction on type derivations and structural decomposition of terms to establish the bisimilarity relation.
  • Introduces a novel treatment of explicit substitutions and variable binding to handle open terms correctly in the call-by-value setting.
  • Establishes a connection between net bisimilarity and Ehrhard's relational model to provide semantic grounding.
  • Demonstrates incomparability with enf bisimilarity by showing that net bisimilarity does not validate Moggi's monadic laws or η-expansion, while enf bisimilarity does not validate commutation or Ω-terms identification.

Experimental results

Research questions

  • RQ1Can a call-by-value normal form bisimilarity be constructed that validates the commutation of independent let-expressions?
  • RQ2Can such a bisimilarity identify meaningless terms (Ω-terms) as equivalent, as in Sangiorgi's call-by-name normal form bisimilarity?
  • RQ3Is there a way to reconcile the strengths of enf bisimilarity (validating Moggi's laws and η) with the strengths of a new bisimilarity (validating commutation and Ω-terms)?
  • RQ4What is the relationship between different normal form bisimilarities in call-by-value and how do they relate to Ehrhard's relational model?
  • RQ5Why do existing call-by-value normal form bisimilarities fail to validate certain intuitive program equivalences, and how can this be addressed?

Key findings

  • Net bisimilarity validates the commutation of independent let-expressions, a principle not validated by enf bisimilarity.
  • Net bisimilarity identifies all Ω-terms (meaningless terms) as equivalent, addressing a key limitation of enf bisimilarity.
  • Net bisimilarity is incomparable with enf bisimilarity: it does not validate Moggi's monadic laws or η-expansion, while enf bisimilarity does not validate commutation or Ω-terms identification.
  • The proposed formalism for open terms in call-by-value enables a richer class of normal form bisimilarities, including net bisimilarity.
  • A type system with multi-types is used to characterize net bisimilarity, and it is shown that η-expansion is validated for variables in this system.
  • The analysis reveals that merging enf and net bisimilarities is not straightforward, as they validate different, incompatible sets of principles.

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.