R7N Lens Flash

Download

Download Lens Flash 9.0.0

Most people install it with one line in a terminal. It downloads the release below, checks its SHA-256, installs it, and puts flash on your PATH:

curl -fsSL https://r7n.solutions/install.sh | sh

You can read the installer before you run it. When it finishes, open a new terminal and run flash start; Get started → walks you through it.

The release

For Linux on x86_64. This is the file the installer uses.

lens-flash-9.0.0-linux-x86_64.tar.gz

SHA-256
eb8377b5832d2bb0174ad3e2e720df501b0dbf4e304272699572e788037b2f4f

The release, smaller

The same release packed with zstd, for those who have it.

lens-flash-9.0.0-linux-x86_64.tar.zst

SHA-256
070333795230eb5b0443603b04b72b4c930dad2f4947c26e27fe40b96866c23c

The source download for 9.0.0 is not posted here yet.

Installing by hand

If you would rather not pipe a script into your shell, put the release and its .sha256 in one directory and run these three commands there:

check, unpack, install
sha256sum -c lens-flash-9.0.0-linux-x86_64.tar.gz.sha256
tar -xzf lens-flash-9.0.0-linux-x86_64.tar.gz
lens-flash-9.0.0-linux-x86_64/install.sh

With the .tar.zst, check it the same way and unpack it with tar --zstd -xf instead.

The installer puts flash in ~/.local/share/lens-flash and links it from ~/.local/bin/flash. Releases sit side by side, so installing a new one never cuts off one that is running. Then open a new terminal and run:

flash start

In a Lean project you have already built, flash init sets flash up there instead. At any time, flash doctor checks the installation and says how to fix anything that is wrong.

Uninstalling

  1. In each project where you used it, run flash down. It stops the project’s Lean workers and its background searches.
  2. Remove flash, its store and its state:
    rm -rf ~/.local/share/lens-flash ~/.local/state/lens-flash ~/.local/bin/flash

    Remove ~/.config/lens-flash too (your settings for every project, if you made any with flash config set --user).

  3. Delete the line ending in # lens-flash from ~/.profile and ~/.bashrc (and from ~/.zshrc, if you have one). The installer added it to put flash on your PATH.

Lean (~/.elan) and your projects are left as they are.

What you need

  • Linux on x86_64. On Windows, use WSL.
  • A terminal, and an internet connection for the first setup.
  • About 12 GB free: Lean takes 3 GB, Mathlib’s files 7 GB, and flash’s own store 1 to 2.5 GB as you work. flash start installs Lean and Mathlib if you do not have them.
  • The first setup takes 15 to 20 minutes on a fast connection; up to an hour on a slow one (most of it is downloading).
  • Lean 4.33.0, 4.33.1, 4.34.0, 4.34.1, 4.35.0-rc3 or 4.35.0 in your project. New projects from flash start use 4.35.0.

Licence

Lens Flash, and everything in its downloads, is under the Apache License 2.0. It works with Lean 4 and Mathlib, which are under the same licence; neither is included.