test(tests/lean/run): add basic rewriter test
This commit is contained in:
parent
ee079d12f4
commit
0c8eaa38c8
1 changed files with 9 additions and 0 deletions
9
tests/lean/run/rewriter1.lean
Normal file
9
tests/lean/run/rewriter1.lean
Normal 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
|
Loading…
Reference in a new issue