Let p be given.
We prove the intermediate
claim HpDom:
p ∈ setprod Y Y.
We prove the intermediate
claim Hp0Y:
p 0 ∈ Y.
An
exact proof term for the current goal is
(ap0_Sigma Y (λ_ : set ⇒ Y) p HpDom).
We prove the intermediate
claim Hp1Y:
p 1 ∈ Y.
An
exact proof term for the current goal is
(ap1_Sigma Y (λ_ : set ⇒ Y) p HpDom).
We prove the intermediate
claim Hm:
metric_on Y d.
Apply Hexr to the current goal.
Let r be given.
Assume Hr.
An exact proof term for the current goal is Hr.
We prove the intermediate
claim Hr1:
r ∈ R ∧ Rlt 0 r.
We prove the intermediate
claim HrR:
r ∈ R.
An
exact proof term for the current goal is
(andEL (r ∈ R) (Rlt 0 r) Hr1).
We prove the intermediate
claim HrPos:
Rlt 0 r.
An
exact proof term for the current goal is
(andER (r ∈ R) (Rlt 0 r) Hr1).
We use b to witness the existential quantifier.
Apply andI to the current goal.
We prove the intermediate
claim HUinTy:
U ∈ Ty.
We prove the intermediate
claim HVinTy:
V ∈ Ty.
An
exact proof term for the current goal is
(ReplI Ty (λV0 : set ⇒ rectangle_set U V0) V HVinTy).
Apply andI to the current goal.
rewrite the current goal using HbEq0 (from left to right).
We prove the intermediate
claim HpEta0:
p = (p 0,p 1).
An
exact proof term for the current goal is
(setprod_eta Y Y p HpDom).
rewrite the current goal using HpEta0 (from left to right) at position 1.
We prove the intermediate
claim Hp0In:
p 0 ∈ U.
We prove the intermediate
claim Hp1In:
p 1 ∈ V.
rewrite the current goal using HbEq (from left to right).
An exact proof term for the current goal is Hbsub.
∎