lean4-htt/tests
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
..
bench feat: ensure no unassigned metavariables in the declaration header when type is explicitly provided 2021-01-11 16:40:14 -08:00
compiler feat: add Float.ofInt 2021-01-15 15:45:28 +01:00
elabissues chore: avoid Has prefix in type classes 2020-10-27 18:29:19 -07:00
ir
lean feat: add pp.safe_shadowing 2021-01-15 18:53:25 -08:00
leanpkg feat: basic port of leanpkg 2020-12-29 14:42:48 -08:00
playground chore: cleanup 2020-12-13 15:51:34 -08:00
plugin feat: run linters in the new frontend 2020-10-23 14:04:28 -07:00
simpperf feat: add simp benchmark 2020-12-31 15:46:56 -08:00
.gitignore
common.sh test: ignore \r when diffing 2020-09-15 09:32:00 -07:00