test(tests/lean/run): add basic rewriter test

This commit is contained in:
Leonardo de Moura 2015-02-04 15:30:18 -08:00
parent ee079d12f4
commit 0c8eaa38c8

View file

@ -0,0 +1,9 @@
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
print definition test