English

On a Dependently Typed Encoding of Matching Logic

Logic in Computer Science 2025-09-17 v1

Abstract

Matching logic is a general formal framework for reasoning about a wide range of theories, with particular emphasis on programming language semantics. Notably, the intermediate language of the K semantics framework is an extension of matching μ\mu-logic, a sorted, polyadic variant of the logic. Metatheoretic reasoning requires the logic to be expressed within a foundational theory; opting for a dependently typed one enables well-sortedness in the object theory to correspond directly to well-typedness in the host theory. In this paper, we present the first dependently typed definition of matching μ\mu-logic, ensuring well-sortedness via sorted contexts encoded in type indices. As a result, ill-sorted syntax elements are unrepresentable, and the semantics of well-sorted elements are guaranteed to lie within the domain of their associated sort.

Keywords

Cite

@article{arxiv.2509.13018,
  title  = {On a Dependently Typed Encoding of Matching Logic},
  author = {Ádám Kurucz and Péter Bereczky and Dániel Horpácsi},
  journal= {arXiv preprint arXiv:2509.13018},
  year   = {2025}
}

Comments

In Proceedings FROM 2025, arXiv:2509.11877

R2 v1 2026-07-01T05:39:13.020Z