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

19 lines
374 B
Text

theorem ex1 : False :=
by {
assumption -- should not use the auxiliary declaration `ex1 : False`
}
variable (x y : Nat) in
theorem ex2 : x = y :=
by {
subst x; -- should not use the auxiliary declaration `ex2 : x = y`
exact rfl
}
set_option pp.auxDecls true in
theorem ex1 : False :=
by {
assumption -- should not use the auxiliary declaration `ex1 : False`
}