2025-12-09: Jan de Muijnck-Hughes (MSP/StrathCyber)

Fri, 5 Dec 2025 17:58:41 +0000

Jan de Muijnck-Hughes (MSP/StrathCyber)

An Introduction to Design-by-Contract with Dafny

Abstract

Dafny is a multi-paradigm language with deep integration of design-by-contract style verification: Hoare Triples. What makes Dafny interesting from a language design perspective is that, although, there is a clear separation between a specification and the code it reasons about, specifications are nonetheless made from code. For this 101, I am going to introduce everyone to Dafny and show how one can write and reason about simple imperative and object-oriented programs and their behaviour.

What excites me about Dafny is its potential to act as a bridging language that guides students, who are ostensibly rooted in imperative programming, through to the world of verification without having to introduce them to the world of dependently-typed functional programming. I hope you will be excited about Dafny too.

2025-12-09 14:00:00 UTC
LT1414a