Let pq be given.
An
exact proof term for the current goal is
(setprod_Subq A A X X HA HA).
We prove the intermediate
claim HpqXX:
pq ∈ setprod X X.
An exact proof term for the current goal is (Hsub pq Hpq).
An exact proof term for the current goal is (Hfun pq HpqXX).
Let x and y be given.
We prove the intermediate
claim HxX:
x ∈ X.
An exact proof term for the current goal is (HA x HxA).
We prove the intermediate
claim HyX:
y ∈ X.
An exact proof term for the current goal is (HA y HyA).
We prove the intermediate
claim Hxy:
(x,y) ∈ setprod A A.
We prove the intermediate
claim Hyx:
(y,x) ∈ setprod A A.
Let x and y be given.
We prove the intermediate
claim HxX:
x ∈ X.
An exact proof term for the current goal is (HA x HxA).
We prove the intermediate
claim HyX:
y ∈ X.
An exact proof term for the current goal is (HA y HyA).
We prove the intermediate
claim Hxy:
(x,y) ∈ setprod A A.
Apply andI to the current goal.
rewrite the current goal using Happly (from right to left).
An exact proof term for the current goal is Hlt.
An
exact proof term for the current goal is
(metric_on_nonneg X d x y Hm HxX HyX HltD).
We prove the intermediate
claim H0D:
apply_fun d (x,y) = 0.
rewrite the current goal using Happly (from right to left) at position 1.
An exact proof term for the current goal is H0.
An
exact proof term for the current goal is
(metric_on_zero_eq X d x y Hm HxX HyX H0D).
Let x, y and z be given.
We prove the intermediate
claim HxX:
x ∈ X.
An exact proof term for the current goal is (HA x HxA).
We prove the intermediate
claim HyX:
y ∈ X.
An exact proof term for the current goal is (HA y HyA).
We prove the intermediate
claim HzX:
z ∈ X.
An exact proof term for the current goal is (HA z HzA).
We prove the intermediate
claim Hxy:
(x,y) ∈ setprod A A.
We prove the intermediate
claim Hyz:
(y,z) ∈ setprod A A.
We prove the intermediate
claim Hxz:
(x,z) ∈ setprod A A.
rewrite the current goal using HxyAp (from right to left).
rewrite the current goal using HyzAp (from right to left).
rewrite the current goal using HxzAp (from right to left).
An exact proof term for the current goal is Hbad.
An
exact proof term for the current goal is
(metric_on_triangle X d x y z Hm HxX HyX HzX HbadD).
∎