lean2/tests/lean/rw_at_failure.lean

7 lines
161 B
Text

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