2015-12-01 19:16:37 +00:00
|
|
|
import algebra.ring data.int
|
|
|
|
open algebra
|
|
|
|
|
|
|
|
variables {A : Type} [s : ring A] (a b : A)
|
|
|
|
include s
|
|
|
|
|
2015-12-06 23:01:49 +00:00
|
|
|
set_option blast.strategy "ematch"
|
|
|
|
|
2015-12-01 19:16:37 +00:00
|
|
|
attribute zero_mul [forward]
|
|
|
|
|
|
|
|
example : a = 0 → a * b = 0 :=
|
|
|
|
by blast
|
|
|
|
|
|
|
|
open int
|
|
|
|
|
|
|
|
definition ex1 (a b : int) : a = 0 → a * b = 0 :=
|
|
|
|
by blast
|
|
|
|
|
|
|
|
print ex1
|