On the Learnability of Programming Language Semantics

08/07/2017
by   Dan R. Ghica, et al.
0

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.

READ FULL TEXT

page 9

page 10

page 12

research
11/10/2020

Game Semantics: Easy as Pi

Game semantics has proven to be a robust method to give compositional se...
research
01/21/2021

Leafy Automata for Higher-Order Concurrency

Finitary Idealized Concurrent Algol (FICA) is a prototypical programming...
research
07/20/2018

Bridging the Gap Between Programming Languages and Hardware Weak Memory Models

We develop a new intermediate weak memory model, IMM, as a way of modula...
research
10/25/2019

Machine Translation from Natural Language to Code using Long-Short Term Memory

Making computer programming language more understandable and easy for th...
research
03/29/2021

Disentangling Parallelism and Interference in Game Semantics

Game semantics is a denotational semantics presenting compositionally th...
research
12/31/2019

Definitions and Semantic Simulations Based on Object-Oriented Analysis and Modeling

We have proposed going beyond traditional ontologies to use rich semanti...
research
08/10/2019

The far side of the cube

Game-semantic models usually start from the core model of the prototypic...

Please sign up or login with your details

Forgot password? Click here to reset