lean4-htt/tests/lean/safeShadowing.lean
Sebastian Ullrich 8a02dfec4f feat: subsume variables under variable
/cc @leodemoura
2021-01-22 14:36:05 +01:00

22 lines
308 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

def f (x x : Nat) :=
match x with
| 0 => x + 1
| Nat.succ _ => x + 2
variable {α : Type}
#check fun (a : α) => a
#check fun {α} (a : α) => a
#check fun (x x : Nat) => x
#print f
set_option pp.safe_shadowing false
#check fun {α} (a : α) => a
#check fun (x x : Nat) => x
#print f