{"id":13992939,"url":"https://github.com/fpvandoorn/LeanCourse23","last_synced_at":"2025-07-22T16:33:06.065Z","repository":{"id":200594657,"uuid":"702147323","full_name":"fpvandoorn/LeanCourse23","owner":"fpvandoorn","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-12T10:33:18.000Z","size":447,"stargazers_count":24,"open_issues_count":0,"forks_count":21,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-08-10T14:12:01.305Z","etag":null,"topics":["lean4"],"latest_commit_sha":null,"homepage":"","language":"Lean","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fpvandoorn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-10-08T16:26:20.000Z","updated_at":"2024-08-04T17:12:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"947589f0-a57f-43ad-a9da-1208dbf727c1","html_url":"https://github.com/fpvandoorn/LeanCourse23","commit_stats":null,"previous_names":["fpvandoorn/leancourse23"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpvandoorn%2FLeanCourse23","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpvandoorn%2FLeanCourse23/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpvandoorn%2FLeanCourse23/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fpvandoorn%2FLeanCourse23/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fpvandoorn","download_url":"https://codeload.github.com/fpvandoorn/LeanCourse23/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227143244,"owners_count":17737127,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lean4"],"created_at":"2024-08-09T14:02:10.964Z","updated_at":"2024-11-29T14:30:35.352Z","avatar_url":"https://github.com/fpvandoorn.png","language":"Lean","funding_links":[],"categories":["Lean"],"sub_categories":[],"readme":"\u003e [!WARNING]\n\u003e This is the repository for the course of 23/24. Click [here](https://github.com/fpvandoorn/LeanCourse24) for the course of 24/25.\n\n# Bonn Lean Course WiSe 23/24\n\n## In this repository\n\nYou will find the Lean files in the `LeanCourse` directory:\n* The `Lectures` folder contains all lectures\n* The `Assignments` folder contains the assignments that you have to hand in via eCampus\n* The `MIL` folder contains the exercises from the book Mathematics in Lean (so that you don't have to separately clone the `mathematics_in_lean` repository). You can find the textbook online here:\n[Mathematics in Lean](https://leanprover-community.github.io/mathematics_in_lean/)\n(or as a\n[pdf document](https://leanprover-community.github.io/mathematics_in_lean/mathematics_in_lean.pdf)).\n\n## Installation\n\nYou can either install it on a university computer or on your own laptop.\n\n* To install it on your own laptop, follow these [instructions](https://leanprover-community.github.io/get_started.html). Then follow the steps under `Get the course repository`.\n\n* To install Lean on a university computer, make sure to use the `fmath` local user, and ask the teacher for the password. Then run `install_lean` in a terminal and follow the steps under `Get the course repository`.\n\n### Get the course repository\n\nNote: To get this repository, you will need to download Lean's mathematical library, which takes about 5 GB of storage space.\n\n* Open a terminal (I recommend `git bash` on Windows, which was installed as part of git in the first step).\n\n* Use `cd` to navigate to a directory where you would like to create the `LeanCourse23` folder.\n\n* Run `git clone https://github.com/fpvandoorn/LeanCourse23.git`.\n\n* Run `cd LeanCourse23`\n\n* Run `lake exe cache get!`\n  * On Windows, if you get an error that starts with `curl: (35) schannel: next InitializeSecurityContext failed` it is probably your antivirus program that doesn't like that we're downloading many files. The easiest solution is to temporarily disable your antivirus program.\n\n* Launch VS Code, either through your application menu or by typing\n  `code .` (note the dot!). (MacOS users need to take a one-off\n  [extra step](https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line)\n   to be able to launch VS Code from the command line.)\n\n* If you launched VS Code from a menu, on the main screen, or in the File menu,\n  click \"Open folder\" (just \"Open\" on a Mac), and choose the folder\n  `LeanCourse23` (*not* one of its subfolders).\n\n* Test that everything is working by opening `LeanCourse/Test.lean`.\n  It is normal if it takes 10-40 seconds for Lean to start up.\n\n* More files will be added to this repository during the tutorial. The first exercises are in `LeanCourse/MIL/C02_Basics/S01_Calculating.lean`.\n\n### Get new exercises\n\nIf you have already followed the steps above, and want to get the latest exercises, open a terminal in your local copy of this repository (e.g. `cd LeanCourse23`) and then run `git pull`. This gives you the new exercises.\n\n**Update Nov 7**: I updated the version of mathlib used in this project. This time, after running `git pull` do the following:\n* Close VSCode (if you have it open)\n* In your terminal, in the `LeanCourse23` folder, run `lake exe cache get!` (or `~/.elan/bin/lake exe cache get!` if `lake` cannot be found).\n* Wait until the command finishes with downloading and decompressing. If you get an error, run it again.\n* Now you can reopen VSCode and Lean should work again.\n\n## Temporary ways to use Lean\n\nYou can temporarily use Codespaces or Gitpod if you have trouble installing Lean locally.\n\n### Using Codespaces\n\nYou can temporarily play with Lean using Github codespaces. This requires a Github account, and you can only use it for a limited amount of time each month. If you are signed in to Github, click here:\n\n\u003ca href='https://codespaces.new/fpvandoorn/LeanCourse23' target=\"_blank\" rel=\"noreferrer noopener\"\u003e\u003cimg src='https://github.com/codespaces/badge.svg' alt='Open in GitHub Codespaces' style='max-width: 100%;'\u003e\u003c/a\u003e\n\n* Make sure the Machine type is `4-core`, and then press `Create codespace`\n* After 1-2 minutes you see a VSCode window in your browser. However, it is still busily downloading mathlib in the background, so give it another few minutes (5 to be safe) and then open a `.lean` file to start.\n\n### Using Gitpod\n\nGitpod is an alternative to codespaces that is slightly inconvenient, since it requires you to verify your phone number.\n\nClick this button to get started:\n\n[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/fpvandoorn/LeanCourse23)\n\nThis creates a virtual machine in the cloud,\nand installs Lean and Mathlib.\nIt then presents you with a VS Code window, running in a virtual\ncopy of the repository.\nYou can update the repository by opening a terminal in the browser\nand typing `git pull` followed by `lake exe cache get!` as above.\n\nGitpod gives you 50 free hours every month.\nWhen you are done working, choose `Stop workspace` from the menu on the left.\nThe workspace should also stop automatically\n30 minutes after the last interaction or 3 minutes after closing the tab.\n\nTo restart a previous workspace, go to [https://gitpod.io/workspaces/](https://gitpod.io/workspaces/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffpvandoorn%2FLeanCourse23","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffpvandoorn%2FLeanCourse23","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffpvandoorn%2FLeanCourse23/lists"}