lean4-htt/tests/lean/run/nat_sub_ematch.lean
Leonardo de Moura f7edf601c8 fix(library/init/data/nat/lemmas): avoid bad patterns in nat sub ematch lemmas
The attribute [ematch_lhs] instructs Lean to use the left-hand-side of
the conclusion as a pattern.
2017-01-22 19:48:01 -08:00

13 lines
273 B
Text

set_option trace.smt.ematch true
example (a b c d : nat) (f : nat → nat) : f d = a + b → f d - a + c = c + b :=
begin [smt]
intros,
eblast
end
example (a b c d : nat) (f : nat → nat) : f d = a + b → f d - (a + c) = b - c :=
begin [smt]
intros,
eblast
end