arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.20944cs.PL
收藏

应用于操作语义的大步和小步Horn子句推导

Big-step and small-step Horn clause derivations applied to operational semantics

Roskilde University(罗斯基勒大学);IMDEA Software Institute(IMDEA软件研究所);Universidad Politécnica de Madrid (UPM)(马德里理工大学);Spanish Council for Scientific Research (CSIC)(西班牙国家研究委员会)

John P. Gallagher, Manuel Hermenegildo, José Morales, Pedro Lopez-Garcia, Louis Rustenholz

AI总结:

本文证明Horn子句的大步推导与两种小步推导等价,并通过特化解释器将任意Horn子句集转换为等价子句集,实现编程语言大步语义到小步语义的转换。

摘要:

大步和小步推导的概念在编程语言的操作语义中很常见。这些概念适用于更一般的Horn子句推导。我们证明了Horn子句的大步推导与两种小步推导版本的等价性。通过特化这些推导策略的解释器,任何Horn子句集都可以转换为一个可证明等价的子句集,该子句集继承了给定(大步或小步)Horn子句解释器的行为。作为这种转换的一个特例,任何编程语言的大步语义(直接表示为Horn子句)都可以转换为等价的小步语义。报告了多种编程语言的实验。

英文摘要:

The concepts of big-step and small-step derivations are familiar from the operational semantics of programming languages. These concepts are applicable in the more general setting of Horn clause derivations. We prove equivalence between big-step derivations and two versions of small-step derivations for Horn clauses. By specialising interpreters for these derivation strategies, any set of Horn clauses can be transformed into a provably equivalent set of clauses that inherits the behaviour of a given (big- or small-step) Horn clause interpreter. As a special case of this transformation, big-step semantics for any programming language, expressed directly as Horn clauses, can be transformed into equivalent small-step semantics. Experiments with a variety of programming languages are reported.

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

↑