lean4-htt/old_tests/tests/lean/1467.lean
2018-04-10 12:56:55 -07:00

43 lines
794 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.

constants f g h :
axiom H_f_g : ∀ n, f (g n) = n
example (m : ) : h m = h m :=
begin
let n : := g m,
have H : f n = m := begin rw H_f_g end,
subst H, -- Error here
end
set_option pp.instantiate_mvars false
example (m : ) : h m = h m :=
begin
let n : , -- add metavar
exact g m,
have H : f n = m := begin rw H_f_g end,
subst H, -- Error here
end
example (m : ) : h m = h m :=
begin
let n : := g m,
have H : f n = m := begin rw H_f_g end,
subst m, -- Error here
end
set_option pp.instantiate_mvars false
example (m : ) : h m = h m :=
begin
let n : , -- add metavar
exact g m,
have H : f n = m := begin rw H_f_g end,
subst m, -- Error here
end
example (m p: ) : h m = h m :=
begin
let a : := g p,
let n : := g a,
clear p -- Error here
end