Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
We can now write ```lean syntax "case!" ident ":" term "with" term "," term : term macro_rules | `(case! $h : $c with $t, $e) => `(let $h := $c; cond $h $t $e) ``` Before the series of commits to change `let` syntax, the quasiquotation `(let $h := $c; cond $h $t $e) produced the weird error message "`;` expected" at ":=". The problem was that $h was matching the now deleted "nonterminal" ```lean def letIdDecl := parser! try (letIdLhs >> " := ") >> termParser ``` This was not a bug, but a side-effect on how the `let` syntax was declared. cc @kha |
||
|---|---|---|
| .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.