This directory contains the main helper scripts for local validation and CI support.
./scripts/update-lib.sh- regenerateCompPoly.leanfrom tracked source files../scripts/check-imports.sh- verify thatCompPoly.leanis up to date../scripts/lint-style.sh- run the Lean style linter and repo-wide Lean-file checks.python3 ./scripts/check-docs-integrity.py- verify theCLAUDE.mdsymlink and local markdown links across the handbook.
Regenerates ../CompPoly.lean by scanning tracked
CompPoly/**/*.lean files. Run this after adding, renaming, or deleting source
files under CompPoly/.
Runs update-lib.sh, compares the result with the committed CompPoly.lean, and
fails if the generated umbrella import file is stale.
Use this when:
- you changed the source tree layout,
- CI reports that imports are out of date,
- you want a quick check before pushing.
Runs the Lean style linter across the repository and then performs a few repo-wide checks such as executable-bit detection and filename collisions.
This is the higher-level wrapper around lint-style.py.
The underlying Python linter for Lean style issues. It checks module docstrings,
line length, forbidden imports or tactics, trailing whitespace, and the local
native_decide policy, while honoring entries in style-exceptions.txt.
Use this directly only when you want to lint a specific subset of files.
Helper used by CI to measure and render build timings for clean builds, warm
rebuilds, and the lake test path. The CI workflow also uploads timing-data
artifacts so PR runs can compare against a previously recorded baseline without
rerunning that baseline in the same job. This supports
../.github/workflows/lean_action_ci.yml.
./scripts/update-lib.sh
./scripts/check-imports.sh
lake build./scripts/lint-style.sh
lake buildpython3 ./scripts/check-docs-integrity.py