This is needed for implementing no_confusion for HoTT. We can't use heterogeneous equality in HoTT.
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>