On a Dependently Typed Encoding of Matching Logic
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 -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 -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.
Authors
- Péter Bereczky (ORCID: https://orcid.org/0000-0003-3183-0712)
- Agi Kurucz (ORCID: https://orcid.org/0000-0002-6233-6277)
- Dániel Horpácsi (ORCID: https://orcid.org/0000-0003-0261-0091)
Institutions
- Eötvös Loránd University (HU)
Publication Details
- Journal
- Electronic Proceedings in Theoretical Computer Science
- Published
- 2025-09-15
- DOI
- https://doi.org/10.4204/eptcs.427.1
- Primary Topic
- DNA and Biological Computing
- Type
- article
- Field-Weighted Citation Impact
- 0.00