Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
Find a file
Leonardo de Moura 6625656940 refactor: remove support for fun {a : A} => ...
The semantics was weird. It seems Agda is also having problems with
it. Here is an example that demonstrates how weird the semantics is:

```lean
check (fun {β α} (a : α) (b : β) => (b, a) : {α : Type} → {β : Type} → (a : α) → (b : β) → β × α)

-- Same example using `def`
def f : {α : Type} → {β : Type} → α → β → β × α :=
fun {β : Type} {α : Type} (a : α) (b : β) => (b, a)
```

Both commands were being accepted before this commit. Note that it
flips `β` and `α`.

Here is an example that did not work before this commit and would
confuse users.

```lean
check
  let id := fun {α} (a : α) => a;
  id [id 1]
```

users would have to write

```lean
check
  let id {α} (a : α) := a;
  id [id 1]
```

@Kha The Delaborator.lean test broke and I "fixed" by removing the
`{}` from it, and copying `produced` over `expected`. Please make sure
it still makes sense.
2020-03-26 10:40:16 -07:00
.github chore: bump Actions 2020-03-13 10:40:45 +01:00
bin chore: remove leanpkg script 2020-03-11 14:53:24 +01:00
doc doc: building Lean using Nix in WSL does work reasonably well 2020-03-25 14:24:49 +01:00
images
lean4-mode doc: update lean4-mode readme 2020-03-26 11:24:01 +01:00
nix chore: fix nix-build by disabling ccache for now 2020-01-25 15:26:59 +01:00
script chore: extended CI checks 2019-12-07 21:51:59 +01:00
src refactor: remove support for fun {a : A} => ... 2020-03-26 10:40:16 -07:00
stage0 chore: update stage0 2020-03-23 15:57:32 -07:00
tests refactor: remove support for fun {a : A} => ... 2020-03-26 10:40:16 -07:00
tmp chore: minor 2020-03-19 17:01:59 -07:00
.clang-format
.codecov.yml fix(.codecov.yml): do not fail github ci if coverage drops by 0.01% 2017-06-25 10:35:02 +02:00
.gitattributes chore(.gitattributes): use union merge strategy for doc/changes.md 2017-12-11 12:49:10 +01:00
.gitignore chore: update .gitignores 2019-11-29 11:18:26 +01:00
default.nix chore: add CCACHE option, on by default if available 2019-11-21 13:11:02 -08:00
LICENSE
README.md chore(README): update 2019-04-24 11:40:46 -07:00
shell.nix feat: run Emacs with lean4-mode directly from nix-shell 2020-03-25 12:47:00 +01:00

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.