Formalisation of a frame stack semantics for a Java-like language

08/16/2018
by   Aleksy Schubert, et al.
0

We present a Coq formalisation of the small-step operational semantics of Jafun, a small Java-like language with classes. This format of semantics makes it possible to naturally specify and prove invariants that should hold at each computation step. In contrast to the Featherweight Java approach the semantics explicitly manipulates frame stack of method calls. Thanks to that one can express properties of computation that depend on execution of particular methods. On the basis of the semantics, we developed a type system that makes it possible to delineate a notion of a compound value and classify certain methods as extensional functions operating on them. In our formalisation we make a mechanised proof that the operational semantics for the untyped version of the semantics agrees with the one for the typed one. We discuss different methods to make such formalisation effort and provide experiments that substantiate it.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
12/21/2021

A Small-Step Operational Semantics for GP 2

The operational semantics of a programming language is said to be small-...
research
08/23/2023

A Frame Stack Semantics for Sequential Core Erlang

We present a small-step, frame stack style, semantics for sequential Cor...
research
05/15/2017

Operational Semantics of Process Monitors

CSPe is a specification language for runtime monitors that can directly ...
research
06/07/2017

Decoding Lua: Formal Semantics for the Developer and the Semanticist

We provide formal semantics for a large subset of the Lua programming la...
research
05/28/2020

Sound Regular Corecursion in coFJ

The aim of the paper is to provide solid foundations for a programming p...
research
02/22/2022

Stateful Structural Operational Semantics

Compositionality of denotational semantics is an important concern in pr...
research
09/11/2023

Latte: Lightweight Aliasing Tracking for Java

Many existing systems track aliasing and uniqueness, each with their own...

Please sign up or login with your details

Forgot password? Click here to reset