Masterclass:

Introduction to Type Theory (and proof systems)