lean4-htt/tests/lean/run/rewriter1.lean
2016-06-10 18:29:41 -07:00

11 lines
212 B
Text

exit
import data.nat
open algebra
theorem test {A : Type} [s : comm_ring A] (a b c : A) : a + b + c = a + c + b :=
begin
rewrite [add.assoc, {b + _}add.comm, -add.assoc]
end
reveal test
print definition test