English

Bialgebraic Reasoning on Higher-Order Program Equivalence

Logic in Computer Science 2024-05-17 v2 Programming Languages

Abstract

Logical relations constitute a key method for reasoning about contextual equivalence of programs in higher-order languages. They are usually developed on a per-case basis, with a new theory required for each variation of the language or of the desired notion of equivalence. In the present paper we introduce a general construction of (step-indexed) logical relations at the level of Higher-Order Mathematical Operational Semantics, a highly parametric categorical framework for modeling the operational semantics of higher-order languages. Our main result asserts that for languages whose weak operational model forms a lax bialgebra, the logical relation is automatically sound for contextual equivalence. Our abstract theory is shown to instantiate to combinatory logics and λ\lambda-calculi with recursive types, and to different flavours of contextual equivalence.

Keywords

Cite

@article{arxiv.2402.00625,
  title  = {Bialgebraic Reasoning on Higher-Order Program Equivalence},
  author = {Sergey Goncharov and Stefan Milius and Stelios Tsampas and Henning Urbat},
  journal= {arXiv preprint arXiv:2402.00625},
  year   = {2024}
}
R2 v1 2026-06-28T14:34:34.644Z