Before this commit, if we declared an equational lemma using 'def', then it would not be correctly added to the simp/hinst lemma set. The new test exposes the problem.
16 lines
348 B
Text
16 lines
348 B
Text
universe variables u
|
||
|
||
def ex {α : Type u} [comm_semiring α] (a : α) : 0 + a = a :=
|
||
zero_add a
|
||
|
||
local attribute [-simp] zero_add add_zero
|
||
attribute [simp] ex
|
||
|
||
example (a b : nat) : 0 + 0 + a = a :=
|
||
by simp
|
||
|
||
local attribute [-ematch] zero_add add_zero
|
||
attribute [ematch] ex
|
||
|
||
example (a b : nat) : 0 + 0 + a = a :=
|
||
by using_smt $ smt_tactic.eblast
|