Let X, d, x and y be given.
Apply Hm to the current goal.
Assume Hcore Htri.
Apply Hcore to the current goal.
Assume Hcore2 Hposdef.
An exact proof term for the current goal is Hposdef.
We prove the intermediate
claim Himp:
apply_fun d (x,y) = 0 → x = y.
An exact proof term for the current goal is (Himp H0).
∎