Work in progress standard library for Lean 4. This is a collection of data structures and tactics intended for use by both computer-science applications and mathematics applications of Lean 4.
- Get the newest version of
elan
. If you already have installed a version of Lean, you can runIf the above command fails, or if you need to installelan self update
elan
, runIf this also fails, follow the instructions undercurl https://raw.githubusercontent.com/leanprover/elan/master/elan-init.sh -sSf | sh
Regular install
here. - To build
std4
runlake build
. To build and run all tests, runmake
. - If you added a new file, run the following command to update
Std.lean
:(or usefind Std -name "*.lean" | env LC_ALL=C sort | sed 's/\.lean//;s,/,.,g;s/^/import /' > Std.lean
scripts/updateStd.sh
which contains this command).