Topic outline
 
While the syntax of a programming language is always formally specified, the equally important aspect of definining its meaning is often left to natural language which is ambiguous and leaves questions open. In order to understand the inherent properties of a language (e.g. for constructing a compiler), we should have a deeper understanding. The goal of formal semantics is to reveal the essence of a language beneath its syntactic surface.

This course presents some major methods for defining the meaning of languages and programs and discusses their relationship:

Operational Semantics
A programming language is defined by reduction rules that describe how the initial state of a program is transformed step by step into the terminal state. This view is most useful for understanding the dynamical behavior of a language, e.g., for constructing an interpreter.
Denotational Semantics
A programming language is defined by a valuation function that maps a program into a mathematical object which is considered as its meaning. This view is most useful for understanding the internal logic of a language, e.g., for reasoning about its properties.
Axiomatic Semantics
A programming language is defined by correctness assertions that describe how to draw conclusions about the input/output interface of a program. This view is most useful for understanding the external effects of a language, e.g., for verifying a program.

Students are expected to elaborate small exercises and to present them in class.

Resource Contents
Resource Literature
Forum Announcements

The PDF files listed below require a password which will be handed out in class.
 
5
Axiomatic Semantics
Resource 01 Axiomatic Semantics 1.pdf
Resource 02 Axiomatic Semantics 2.pdf