We are currently updating the Lean community website to describe working with Lean 4, but most of the information you will find here today still describes Lean 3.
Pull requests updating this page for Lean 4 are very welcome. There is a link at the bottom of this page.
Please visit the leanprover zulip and ask for whatever help you need during this transitional period!
The website for Lean 3 has been archived. If you need to link to Lean 3 specific resources please link there.
File not found #
Are you setting up your first Lean project, and seeing this error message? The problem might be:
- Did you open a bare file in VS Code? Try opening the root folder of your Lean package instead. See "Creating a Lean project".
- Is the Lean package configured correctly? Does a
leanpkg.pathfile exist in the directory and contain valid locations? If not, try runningleanproject get-mathlib-cacheif your project depends on mathlib, orleanpkg configureotherwise.