Essentials of Programming Languages (Summer 2025)
General Information
- Lecturer: Prof. Dr. Peter Thiemann
- Assistants: Hannes Saffrich
- Lecture: Wednesday, 14:15-15:45, SR 00 006, G.-Köhler-Allee 051
- Tutorials: Friday, 12:15-13:45, online via Zoom, Meeting ID: 612 1758 5445, Password: eopl-2025
- Lecture live stream: Zoom, Meeting-ID: 636 7754 2064, Password: D68F45Zta
Lectures & Tutorials
Date | Type | Topic | Material | Recordings |
---|---|---|---|---|
2025-04-23 We | Lecture | Overview | Material | Recording |
2025-04-25 Fr | Tutorial | Overview | Recording | |
2025-04-30 We | Lecture | Induction | Material | Recording |
2025-05-02 Fr | Tutorial | Naturals & Induction | Solutions 1, Solutions 2 | Recording |
2025-05-07 We | Lecture | Relations | Material | Recording |
2025-05-09 Fr | Tutorial | Relations | ||
2025-05-14 We | Lecture | Equality | ||
2025-05-16 Fr | Tutorial | Equality | ||
2025-05-21 We | Lecture | Isomorphism & Connectives | ||
2025-05-23 Fr | Tutorial | Isomorphism & Connectives |
Communication
For communication outside of the lecture, we provide an discord-like chat. The chat requires you to log in with your RZ-Account (same credentials as for Ilias).
Contents
This course conveys the mathematical and logical concepts underlying programming languages using the language Agda. Agda is a functional language with an advanced type system that enables the encoding of many program properties in its types. Agda’s type checker verifies proofs of these properties, so that one could also say this course is about verified programming.
The first part of the course covers the logical background needed to study the theory of programming languages to the extent that we can give formal guarantees about the execution of a program. The content of this part should be familiar from an introductory logic class, but it is presented in an entirely different way. The central idea conveyed is that every program (in a language with a reasonable type system) is really a proof about the meaning of the program. Conversely, it means that every proof can be viewed as a program, so that proving becomes programming a function with a certain type. For example, inductive proofs are expressed by terminating recursive functions. This correspondence is called the Curry-Howard correspondence. It is one of the most powerful discoveries in logics and programming and it is one of the core ideas behind Agda.
The second part of the course puts this toolbox to work. We use Agda’s features to model the syntax and the semantics of (simple) programming languages. We model type systems and connect them to the semantics through type soundness theorems. We learn about different ways of modeling syntax and semantics and their pros and cons. We study type inference as a means to find a best possible (principal) typing for a given program, if such a typing exists.
Literature & Approach
The course mainly follows the online book Programming Language Foundations in Agda (PLFA) by Philipp Wadler, Wen Kokke, and Jeremy Siek:
On Wednesdays we discuss (part of) a chapter from the PLFA book. We ask you to prepare for this by reading the chapter in advance. We will try to cover questions interactively. On Fridays we discuss the exercises of the corresponding chapters (contained in the book), and answer general questions related to Agda, Theorem Proving and Programming Language Theory. Occasionally we may also show you cool stuff not covered in the book. Recordings of the lecture and tutorials will be available so that asychronous participation is possible. If you do not wish to appear in the recordings, feel free to use an alias in the Zoom meetings, turn camera and microphone off, and use the Zoom chat for anonymous participation. The PLFA book is freely available in source code, so that everything can be tried hands on. It is amenable to self study, but the pragmatics of using Agda are much easier to deal with in an interactive supportive environment such as we are trying to provide.
Exercises
The chapters of the PLFA book contain the exercises for this course. We expect you to do the exercises of a chapter after that chapter was covered in the lecture. The solutions to the exercises of a chapter are discussed in the next tutorial after the lecture that covers the chapter. Additionally, the solutions will be made available on this website in the Lectures & Tutorials section.
While the exercises are voluntary and there is no submission, we highly recommend to thoroughly work through the exercises, as the exam will be virtually impossible without practical experience in using Agda.
Exam
tba.
Links
- Programming Language Foundations in Agda (Book)
- Official Agda Documentation
- Emacs Agda-Mode Documentation
- Agda Standard Library
- VirtualBox Image with Agda and Emacs
- Discord-like chat for questions about the lecture, exercises, and related topics. Login via RZ-Account, i.e. same as for Ilias.
- A list of all unicode symbols that can be typed in agda-mode via LaTeX commands. You probably need to download this file, because the browser uses the wrong character encoding, which causes the unicode characters to look scrambled.