lean4-htt/tests/lean/1467.lean
2017-03-17 19:54:35 -07:00

43 lines
856 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
definev n : := g m,
assertv H : f n = m := begin dsimp, rw H_f_g end,
subst H, -- Error here
end
set_option pp.instantiate_mvars false
example (m : ) : h m = h m :=
begin
define n : , -- add metavar
exact g m,
assertv H : f n = m := begin dsimp, rw H_f_g end,
subst H, -- Error here
end
example (m : ) : h m = h m :=
begin
definev n : := g m,
assertv H : f n = m := begin dsimp, rw H_f_g end,
subst m, -- Error here
end
set_option pp.instantiate_mvars false
example (m : ) : h m = h m :=
begin
define n : , -- add metavar
exact g m,
assertv H : f n = m := begin dsimp, rw H_f_g end,
subst m, -- Error here
end
example (m p: ) : h m = h m :=
begin
definev a : := g p,
definev n : := g a,
clear p -- Error here
end