Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
@cipher1024 I modified your fix. It would produce memory leaks if the code executed by #eval modifies the stdout. Here is the problem. - Your replaces the handler with some new handler `H` and stores the old handler `O` in a `flet`. - Code is executed and replaces the stdout handler with `H'`. The `H`s RC is decremented and `H'`s RC is incremeneted. So far, so good. - Now, the destructor of your `flet` is executed, and it replaces `H'` with `O`, but `H'` RC is not decremented. |
||
|---|---|---|
| .github | ||
| bin | ||
| doc | ||
| images | ||
| lean4-mode | ||
| nix | ||
| script | ||
| src | ||
| stage0 | ||
| tests | ||
| tmp | ||
| .clang-format | ||
| .codecov.yml | ||
| .gitattributes | ||
| .gitignore | ||
| default.nix | ||
| LICENSE | ||
| README.md | ||
| shell.nix | ||
We are currently developing Lean 4. Lean 3 is still the latest official release. This repository contains work in progress.
Important. Unless you are one of our collaborators
- We strongly suggest you use Lean 3.
- Pull requests are not welcome.
- New issues are not welcome, and will be closed without any feedback.