arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.23760cs.LO
收藏

匹配逻辑中的合一——再探讨

Unification in Matching Logic -- Revisited

Ádám Kurucz, Péter Bereczky, Dániel Horpácsi

AI总结:

本文针对匹配逻辑中多结构模式需多次匹配的问题,在应用型匹配逻辑变体中推广合一问题,并在Coq中实现了经可靠性证明的合一机械化解决方案。

摘要:

匹配逻辑是一种利用模式匹配语义对程序进行规约与推理的逻辑框架。模式由若干结构组件和约束构成:结构组件需进行句法匹配,约束则需得到满足。存在多个结构模式会带来实际问题,因为这需要执行多次匹配操作。合一可轻松解决该问题,目前已有一种合一代算法在带类的多元匹配逻辑变体中被定义并证明正确。本文在该语言的应用型变体中重新探讨了这一主题,同时推广了合一问题,并在Coq中机械化实现了一个经证明可靠的解决方案。

英文摘要:

Matching logic is a logical framework for specifying and reasoning about programs using pattern matching semantics. A pattern is made up of a number of structural components and constraints. Structural components are syntactically matched, while constraints need to be satisfied. Having multiple structural patterns poses a practical problem as it requires multiple matching operations. This is easily remedied by unification, for which an algorithm has already been defined and proven correct in a sorted, polyadic variant of matching logic. This paper revisits the subject in the applicative variant of the language while generalising the unification problem and mechanizing a proven-sound solution in Coq.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑