Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
Find a file
Leonardo de Moura 3193acecfa fix: flush the CoreM and MetaM caches at modifyEnv
This fix may impact performance. Note that we don't need to flush the
cache if we are "adding" stuff to the environment. We only need to
flush the caches if the change is not monotonic. BTW, most of the
changes are monotonic. I think this is why we did not hit this bug before.

We may also move all these caches to an environment extension. It is
an easy way to make sure we preserve the cache when extending the
environment.

I tried a few benchmarks and did not notice a significant difference.

cc @kha @gebner

fixes #1051
2022-03-17 16:02:30 -07:00
.github chore: CI: adjust nightly release time 2022-03-07 15:39:58 +01:00
.vscode doc: fix some syntax and link in the docs, and more 2021-10-10 11:36:43 +02:00
doc doc: replace quickstart leanpkg info with info about lake 2022-03-11 16:31:58 -08:00
images
nix chore: prefer LEAN_SRC_PATH 2022-03-14 17:24:25 +01:00
script fix: Windows: do not use standard sysroot 2022-01-30 17:43:14 +01:00
src fix: flush the CoreM and MetaM caches at modifyEnv 2022-03-17 16:02:30 -07:00
stage0 chore: update stage0 2022-03-15 17:43:52 -07:00
tests fix: flush the CoreM and MetaM caches at modifyEnv 2022-03-17 16:02:30 -07:00
.gitattributes chore: fix changelog path... 2022-02-09 09:42:17 +01:00
.gitignore fix: UTF-8 file path support for lean on Windows 2021-09-22 12:21:52 +02:00
.gitmodules chore: add ignore = untracked 2021-10-18 14:39:43 -07:00
CMakeLists.txt fix: forward USE_GMP to stage 0 2021-12-02 15:52:48 +01:00
CONTRIBUTING.md doc: fix a few links 2021-11-09 09:55:11 +01:00
default.nix doc: setup 2021-01-03 13:21:58 +01:00
flake.lock chore: Nix: update Nix 2022-03-09 10:29:25 +01:00
flake.nix chore: move out lean4-mode 2022-01-24 21:23:53 +01:00
LICENSE chore: remove LICENSE header that confused GitHub 2021-11-18 09:42:35 +01:00
LICENSES chore: add GMP license for now 2021-11-18 09:42:35 +01:00
README.md chore: add link to quickstart to README 2022-03-11 16:35:07 -08:00
RELEASES.md feat: generalize inferred namespace notation to functions 2022-03-16 23:40:05 +01:00
shell.nix chore: CI: put llvm-symbolizer in PATH for asan/lsan backtraces 2022-01-10 18:35:22 +01:00

This is the repository for Lean 4, which is currently being released as milestone releases towards a first stable release. Lean 3 is still the latest stable release.

About

Installation

See Setting Up Lean.

Contributing

Please read our Contribution Guidelines first.

Building from Source

See Building Lean.