Skip to content

ImperialCollegeLondon/formalising-mathematics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IMPORTANT

This is Lean 3 code; Lean 3 is now end-of-life. A Lean 4 version of this course is available here

Formalising Mathematics

Repository for the Jan-Mar 2021 EPSRC TCC course on formalising mathematics, delivered to mathematicians at Imperial, Oxford, Bristol, Bath and Warwick.

What is this?

In this course, we're going to be turning maths theorems into levels of a computer game called Lean. We'll start off with proving basic stuff like composite of injective functions is injective. We'll move on to harder mathematics as the course goes on. The course comprises 8 workshops. You don't have to do all the questions in each workshop.

What mathematics is covered?

I took the slightly unconventional approach of blogging about each workshop rather than writing a formal document. Here are links to the eight workshop blog posts (plus an introductory post which explains my motivations for teaching the course):

  1. Introduction
  2. Logic, sets, functions, relations
  3. Groups and subgroups
  4. Sequences and limits
  5. Topology
  6. Filters
  7. Limits
  8. Quotients
  9. Group cohomology

Prerequisites?

You should know some mathematics. For example if you're a second year undergraduate you should easily be able to be able to solve the levels from first few weeks.

You should also get Lean 3 and the community tools installed on your computer. This is unfortunately not as simple as it could be. Here are the instructions . It's recommended that you follow them to the letter.

How to play?

Assuming you have Lean and the user tools installed, first install the repository by firing up a command line, navigating to the directory you want to install this project in, and then typing

leanproject get ImperialCollegeLondon/formalising-mathematics

code formalising-mathematics

and then open up some of the files in src/week1 and you're up and running. Look at the README.md file in src/week1 for more instructions. Fill in the sorrys. Try a couple of levels of the natural number game if you're not sure what's going on.

Important note: if you just use git clone or some "download zip file" option on github then it won't work; you will not have access to Lean's maths library if you try this way (so imports won't work etc).

I failed/couldn't be bothered to install Lean

Well, you can always play along using the community web editor. Here are the four worlds for week 1. You might have to wait for a minute or so until "Lean is busy..." becomes "Lean is ready!". Also, feel free to ask for assistance on the Lean Zulip chat (login required, real names preferred, be nice).

logic

sets

functions

relations

About

Lean 3 material for Kevin Buzzard's 2021 TCC courrse on formalising mathematics. Lean 4 version available here: https://github.com/ImperialCollegeLondon/formalising-mathematics-2024

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages