Git
Lake uses Git to fetch Mathlib, and contributors use Git branches and pull requests for review.
Clone · compile · explore
The repository pins its Lean and Mathlib versions, so Elan and Lake can reproduce the same environment used by the formalization website and GitHub Actions.
flowchart LR
Clone["Clone canonical repository"] --> Elan["Install Elan<br/>use pinned lean-toolchain"]
Elan --> Update["lake update"]
Update --> Check["python tools/bandit.py check"]
Check --> Query["Query BanditRLlib declarations"]
Check --> Site["Build and check website"]
Check --> IDE["Run loopback Live Formalization server"]
Lake uses Git to fetch Mathlib, and contributors use Git branches and pull requests for review.
Follow the official Lean installation guide. Elan reads lean-toolchain and selects leanprover/lean4:v4.29.1 automatically.
The ABRL proof gate, site generator, integrity checks, and local preview helpers use Python 3 and only the standard library.
git clone https://github.com/DakeBU/Auto-Bandit-RL-Proof-In-Sleep.git
cd Auto-Bandit-RL-Proof-In-Sleep
lake update
lake update fetches the pinned Mathlib dependency from lakefile.lean. The first run may take several minutes.
python3 tools/bandit.py check
On Windows, py -3 tools/bandit.py check is equivalent when the Python launcher is installed. The gate runs lake build, builds Tests, and scans local Lean files for forbidden placeholders.
Successful result. The command exits with status 0 after both Lean build targets and repository integrity checks pass. A first build may be slow while Lake downloads and compiles pinned dependencies.
python3 website/scripts/build_site.py --lean-verified
python3 website/scripts/check_site.py
python3 -m http.server 8000 --directory website/_site
Open http://localhost:8000/. The static Research IDE is at /ide/; local Lean compilation requires the loopback-only companion server documented on that page.