Table of Contents
Fetching ...

A Beluga Formalization of the Harmony Lemma in the $π$-Calculus

Gabriele Cecilia, Alberto Momigliano

TL;DR

This work formalizes the Harmony Lemma for a π-calculus fragment using Beluga, providing a machine-checked bridge between reduction semantics and labeled transition semantics. By leveraging higher-order abstract syntax, telescope encoding, and lexicographic induction, the authors mechanize both directions of the Harmony equivalence and related equivalences between late and early LTS encodings. The Beluga formalization eliminates boilerplate name-management, showing that much of the intuitive, pen-and-paper reasoning carries over neatly to a machine-checked setting. The results contribute to CC Bench and demonstrate Beluga’s suitability for formalizing concurrent calculi with intricate binding and scope-extrusion features. The work also demonstrates the potential for scalable, mechanized proofs in extensions of the π-calculus and related formal calculi.

Abstract

The "Harmony Lemma", as formulated by Sangiorgi & Walker, establishes the equivalence between the labelled transition semantics and the reduction semantics in the $π$-calculus. Despite being a widely known and accepted result for the standard $π$-calculus, this assertion has never been rigorously proven, formally or informally. Hence, its validity may not be immediately apparent when considering extensions of the $π$-calculus. Contributing to the second challenge of the Concurrent Calculi Formalization Benchmark -- a set of challenges tackling the main issues related to the mechanization of concurrent systems -- we present a formalization of this result for the fragment of the $π$-calculus examined in the Benchmark. Our formalization is implemented in Beluga and draws inspiration from the HOAS formalization of the LTS semantics popularized by Honsell et al. In passing, we introduce a couple of useful encoding techniques for handling telescopes and lexicographic induction.

A Beluga Formalization of the Harmony Lemma in the $π$-Calculus

TL;DR

This work formalizes the Harmony Lemma for a π-calculus fragment using Beluga, providing a machine-checked bridge between reduction semantics and labeled transition semantics. By leveraging higher-order abstract syntax, telescope encoding, and lexicographic induction, the authors mechanize both directions of the Harmony equivalence and related equivalences between late and early LTS encodings. The Beluga formalization eliminates boilerplate name-management, showing that much of the intuitive, pen-and-paper reasoning carries over neatly to a machine-checked setting. The results contribute to CC Bench and demonstrate Beluga’s suitability for formalizing concurrent calculi with intricate binding and scope-extrusion features. The work also demonstrates the potential for scalable, mechanized proofs in extensions of the π-calculus and related formal calculi.

Abstract

The "Harmony Lemma", as formulated by Sangiorgi & Walker, establishes the equivalence between the labelled transition semantics and the reduction semantics in the -calculus. Despite being a widely known and accepted result for the standard -calculus, this assertion has never been rigorously proven, formally or informally. Hence, its validity may not be immediately apparent when considering extensions of the -calculus. Contributing to the second challenge of the Concurrent Calculi Formalization Benchmark -- a set of challenges tackling the main issues related to the mechanization of concurrent systems -- we present a formalization of this result for the fragment of the -calculus examined in the Benchmark. Our formalization is implemented in Beluga and draws inspiration from the HOAS formalization of the LTS semantics popularized by Honsell et al. In passing, we introduce a couple of useful encoding techniques for handling telescopes and lexicographic induction.
Paper Structure (17 sections, 16 theorems, 4 equations, 8 figures)

This paper contains 17 sections, 16 theorems, 4 equations, 8 figures.

Key Result

Lemma S1

$Q \{x/x\} = Q$.

Figures (8)

  • Figure 1: Congruence and reduction rules.
  • Figure 2: Transition rules.
  • Figure 3: Encoding of names and processes.
  • Figure 4: Encoding of congruence and reduction.
  • Figure 5: Encoding of actions and transition.
  • ...and 3 more figures

Theorems & Definitions (16)

  • Lemma S1
  • Lemma S2
  • Lemma S3
  • Lemma 1.1
  • Lemma 1.2
  • Lemma 1.3
  • Theorem 1
  • Corollary 1.1
  • Lemma 2.1
  • Lemma 2.2
  • ...and 6 more