CSE 210B: Advanced Programming Languages (with AI)

When and where: TuTh 3:20–4:55 PM, Oakes Academic 106

Instructor: Cormac Flanagan

Prerequisite: CSE 210A or equivalent. Some offerings of 210A covered Software Foundations in Rocq; others covered Types and Programming Languages. Either is good background for this course.

Course description

Covers issues in the design, implementation, analysis, and specification of programming languages. Topics include formal semantics (including operational, axiomatic, and denotational semantics), advanced type systems, program analysis (including abstract interpretation and model checking), specification, and verification.

This offering will focus on specification and verification. AI is revolutionizing software engineering: it is now easy to use AI to build large software artifacts, but how can we trust that software? Software verification lets us prove strong theorems about software systems, but it has traditionally been very expensive. Combining AI with verification lets us use AI to write not only software systems but also their correctness proofs. Proof engineering that used to take person-months is becoming cheap. This course explores the state of the art in AI-driven software specification and verification.

Along the way we will explore traditional areas of programming language research (including semantics, type systems and program analysis) by building them. Student projects will take one topic, define it in the Lean proof assistant, and prove its central theorems, using an AI assistant (Claude) to do much of the proof engineering. A semantics becomes a Lean definition, a type system becomes an inductive relation, a program analysis becomes a function with a soundness proof, and “verification” becomes a theorem the machine checks. AI will also generate a slide deck that pairs the paper-style definitions with their Lean code, for presentation to the class.

The course sits where three areas meet. PL: semantics, type systems, program analysis, specification. Lean: definitions as code, machine-checked proofs, a small trusted kernel. AI: writes code, proofs and slides. PL and Lean overlap in mechanized PL theory; PL and AI in AI-generated code and translations; Lean and AI in AI proof engineering. At the center, this course: verified PL artifacts built with AI, where you own the spec.

Two threads

The course alternates between two threads: papers on Tuesdays and projects on Thursdays.

Reading thread. We study research papers (and blog posts, etc.) on AI-driven software verification. This thread is student-led: you choose papers to present from the reading list, or from the full paper pool. The papers lag current tools by a capability generation or more, so we read papers for their questions and methods, and run the tools for answers.

Project thread. Hands-on experimentation with AI for verification, on a series of small-to-larger projects. Start with a small project that might take an hour, and perhaps do a few, to learn some PL theory and how best to use AI. Your input to the AI can be very specific (e.g. hand-written inference rules defining a type system) or looser (e.g. “take the simply typed lambda calculus and …”). Each project produces Lean code (or code in your favorite proof assistant) plus a slide deck, which you can have the AI generate, outlining the development. The deck is how you audit that the definitions and theorem statements are correct. See the project ideas, and the example projects and decks.

Paper sessions

Leading a session

Everyone else

Read the paper before class and post a short review (a three-sentence summary, pros, cons, and questions) as review-<yourname>.md in that class’s folder of the student repo. Here is an example.

Course projects

Teams of 1–2: use AI to build a formally verified artifact, and report on the experience.

Grading

Close to pass/fail: the intent is that everyone who engages does well. By the end of the quarter you will have a portfolio of verified semantics, type systems and analyses, all pushed to GitHub.

Policies

Optional background reading

Where things live