lean2/tests/lean/run/rewriter17.lean
2015-02-06 15:22:34 -08:00

9 lines
150 B
Text

open nat
definition foo [irreducible] (x : nat) := x + 1
example (a b : nat) (H : foo a = b) : a + 1 = b :=
begin
rewrite ↓foo a,
exact H
end