Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
Find a file
Leonardo de Moura f73eb1246a feat: add pp.safe_shadowing
When `pp.safe_shadowing` is set to true, we still use the
suggested name if the "body" does not contain a free variable with the
suggested name. This is the approach used in Lean 3, and I think it
improved the result in all affected tests.
The implementation was simple. The only nasty case was `delabAppMatch`.

The main motivation for this feature was hovering information such as
```lean
f : {α_1 : Type} → α_1 → α_1
```
when hovering over the `f` at
```lean
def g (α : Type) (a : α) :=
  f a
```
With `safe_shadowing`, we get the nicer
```lean
f : {α : Type} → α → α
```

cc @Kha
2021-01-15 18:53:25 -08:00
.github chore: CI: don't schedule nightlies on forks 2021-01-14 15:04:45 +01:00
doc chore: script to copy .produced.out ~> .expected.out 2021-01-15 16:27:59 +01:00
images chore(CMakeLists.txt): move Lean logo to make sure we can test leanemacs without installing Lean 2015-01-31 17:38:49 -08:00
lean4-mode feat: lean4-mode: allow setting lean4-rootdir after initialization 2021-01-13 16:39:00 +01:00
nix fix: Nix: I still forget how to handle argument quoting in bash 2021-01-13 16:39:00 +01:00
script chore: nightly releases 2021-01-04 13:46:20 +01:00
src feat: add pp.safe_shadowing 2021-01-15 18:53:25 -08:00
stage0 chore: update stage0 2021-01-15 13:33:25 -08:00
tests feat: add pp.safe_shadowing 2021-01-15 18:53:25 -08:00
tmp chore: remove tactic framework dependency 2020-11-10 14:32:58 -08:00
.gitattributes chore: restore marking stage0/ as binary files, which we lost at some point 2020-08-14 11:12:13 +02:00
.gitignore chore: ignore result files from nix build 2020-11-24 19:16:27 +01:00
CMakeLists.txt chore: use standard release build for stage 0 2020-10-12 10:34:48 +02:00
CONTRIBUTING.md doc: contribution guidelines & README update 2021-01-12 14:38:36 -08:00
default.nix doc: setup 2021-01-03 13:21:58 +01:00
flake.lock chore: update mdBook to mitigate CVE-2020-26297 2021-01-04 22:11:42 +01:00
flake.nix feat: Nix: integrate vscode-lean4 2021-01-03 19:58:46 +01:00
LICENSE
README.md doc: contribution guidelines & README update 2021-01-12 14:38:36 -08:00
shell.nix fix: CI: Linux release job 2020-11-24 19:16:27 +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.