lean2/tests/lean/rw_at_failure.lean
2015-06-28 12:05:00 -07:00

7 lines
153 B
Text

import data.nat
open nat
example (a b : nat) : a = b → 0 + a = 0 + b :=
begin
rewrite zero_add at {2} -- Should fail since nothing is rewritten
end