Lean Project Setup 🏗️️#
This section describes the steps we took to set up our Lean project. The resulting source code is maintained in our lean4crypto respository at
https://github.com/formalverification/lean4crypto
-
Create the Project.
In a terminal,
-
Verfiy Mathlib Dependency.
The
lakefile.toml
should look something like this: -
Fetch Mathlib.
In your terminal (in the
This might take a few minutes the first time. Then runOTP
directory), enter the following:lake build
to ensure it's working. -
Create Main File.
- The
lake new
command createsOTP.lean
andOTP/Basic.lean
. - We'll start the formalization in
OTP/Basic.lean
(which is imported intoOTP.lean
).
- The