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

论程序设计语言语义的可学习性

On the Learnability of Programming Language Semantics

Dan R. Ghica, Khulood Alyahya

摘要:

游戏语义学是程序设计语言的一种强有力的语义分析方法。它为各种各样的程序设计语言提供了数学上精确的模型(“完全抽象”)。游戏语义模型是一个术语和它的句法上下文之间所有可能的相互作用的组合特征。由于这种相互作用可以具体地表示为序列集,因此可以问它们是否可以从示例中学习。具体地说,我们正在使用长短期记忆神经网络(LSTM),这是一种在学习自动翻译和文本合成的自然语言方面被证明是有效的技术,来学习理想化Algol(IA)的顺序和并发版本的游戏语义模型,这些模型在算法上很复杂,但可以简洁地描述。我们将测量学习模型的准确性,作为项的度和所涉及的自由变量的数量的函数。最后,我们将展示如何使用学习的模型来执行并发和顺序的理想化Algol之间的潜在语义分析。

英文摘要:

Game semantics is a powerful method of semantic analysis for programming languages. It gives mathematically accurate models ("fully abstract") for a wide variety of programming languages. Game semantic models are combinatorial characterisations of all possible interactions between a term and its syntactic context. Because such interactions can be concretely represented as sets of sequences, it is possible to ask whether they can be learned from examples. Concretely, we are using long short-term memory neural nets (LSTM), a technique which proved effective in learning natural languages for automatic translation and text synthesis, to learn game-semantic models of sequential and concurrent versions of Idealised Algol (IA), which are algorithmically complex yet can be concisely described. We will measure how accurate the learned models are as a function of the degree of the term and the number of free variables involved. Finally, we will show how to use the learned model to perform latent semantic analysis between concurrent and sequential Idealised Algol.

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

↑