Let X, d, x and y be given.
We prove the intermediate
claim HxyIn:
(x,y) ∈ setprod X X.
We prove the intermediate
claim HdR:
apply_fun d (x,y) ∈ R.
An exact proof term for the current goal is (Hfun (x,y) HxyIn).
We prove the intermediate
claim HdS:
SNo (apply_fun d (x,y)).
Apply FalseE to the current goal.
An
exact proof term for the current goal is
((metric_on_nonneg X d x y Hm Hx Hy) Hbad).
Apply FalseE to the current goal.
We prove the intermediate
claim Hxy:
x = y.
An
exact proof term for the current goal is
(metric_on_zero_eq X d x y Hm Hx Hy Heq0).
An exact proof term for the current goal is (Hneq Hxy).
∎