I am in the middle of a proof, where I generated two cases by
destruct (eq_id_dec Y X)
(eq_id_dec
is similar in nature to eq_nat_dec
).
This gives two cases with added assumptions e: Y = X
for equality and n: Y <> X
for unequality, respectively.
In the first case, I can easily use rewrite e
or rewrite <- e
.
But how can I efficiently make use of the unequality in the second case? Consider, e.g. a goal such as
(if eq_id_dec X Y then AAA else BBB) = BBB
?
I tried unfold eq_id_dec
and some rewrite
S but got stuck.