Let p be given.
We prove the intermediate
claim HpX:
p ∈ setprod I Y.
An exact proof term for the current goal is (Hx1sub p HpIn1).
Let i be given.
Assume Hiconj.
We prove the intermediate
claim HiI:
i ∈ I.
An
exact proof term for the current goal is
(andEL (i ∈ I) (∃y ∈ Y, p ∈ setprod {i} {y}) Hiconj).
Let y be given.
Assume Hyconj.
We prove the intermediate
claim HyY:
y ∈ Y.
We prove the intermediate
claim Hp0:
p 0 ∈ {i}.
An
exact proof term for the current goal is
(ap0_Sigma {i} (λ_ : set ⇒ {y}) p Hpiy).
We prove the intermediate
claim Hp1sing:
p 1 ∈ {y}.
An
exact proof term for the current goal is
(ap1_Sigma {i} (λ_ : set ⇒ {y}) p Hpiy).
We prove the intermediate
claim Hp0eq:
p 0 = i.
We prove the intermediate
claim Hp1eq:
p 1 = y.
An
exact proof term for the current goal is
(singleton_elem (p 1) y Hp1sing).
We prove the intermediate
claim Heta:
p = (p 0,p 1).
We prove the intermediate
claim HpEq:
p = (i,y).
rewrite the current goal using Heta (from left to right).
rewrite the current goal using Hp0eq (from left to right).
rewrite the current goal using Hp1eq (from left to right).
Use reflexivity.
We prove the intermediate
claim Hpair1:
(i,y) ∈ x1.
We will
prove (i,y) ∈ x1.
rewrite the current goal using HpEq (from right to left) at position 1.
An exact proof term for the current goal is HpIn1.
We prove the intermediate
claim Happ1:
apply_fun x1 i = y.
We prove the intermediate
claim Happ2:
apply_fun x2 i = y.
rewrite the current goal using (Hall i HiI) (from right to left).
An exact proof term for the current goal is Happ1.
We prove the intermediate
claim Hpair2:
(i,apply_fun x2 i) ∈ x2.
We prove the intermediate
claim Hiy2:
(i,y) ∈ x2.
We will
prove (i,y) ∈ x2.
rewrite the current goal using Happ2 (from right to left) at position 1.
An exact proof term for the current goal is Hpair2.
rewrite the current goal using HpEq (from left to right).
An exact proof term for the current goal is Hiy2.
Let p be given.
We prove the intermediate
claim HpX:
p ∈ setprod I Y.
An exact proof term for the current goal is (Hx2sub p HpIn2).
Let i be given.
Assume Hiconj.
We prove the intermediate
claim HiI:
i ∈ I.
An
exact proof term for the current goal is
(andEL (i ∈ I) (∃y ∈ Y, p ∈ setprod {i} {y}) Hiconj).
Let y be given.
Assume Hyconj.
We prove the intermediate
claim Hp0:
p 0 ∈ {i}.
An
exact proof term for the current goal is
(ap0_Sigma {i} (λ_ : set ⇒ {y}) p Hpiy).
We prove the intermediate
claim Hp1sing:
p 1 ∈ {y}.
An
exact proof term for the current goal is
(ap1_Sigma {i} (λ_ : set ⇒ {y}) p Hpiy).
We prove the intermediate
claim Hp0eq:
p 0 = i.
We prove the intermediate
claim Hp1eq:
p 1 = y.
An
exact proof term for the current goal is
(singleton_elem (p 1) y Hp1sing).
We prove the intermediate
claim Heta:
p = (p 0,p 1).
We prove the intermediate
claim HpEq:
p = (i,y).
rewrite the current goal using Heta (from left to right).
rewrite the current goal using Hp0eq (from left to right).
rewrite the current goal using Hp1eq (from left to right).
Use reflexivity.
We prove the intermediate
claim Hpair2:
(i,y) ∈ x2.
We will
prove (i,y) ∈ x2.
rewrite the current goal using HpEq (from right to left) at position 1.
An exact proof term for the current goal is HpIn2.
We prove the intermediate
claim Happ2:
apply_fun x2 i = y.
We prove the intermediate
claim Happ1:
apply_fun x1 i = y.
rewrite the current goal using (Hall i HiI) (from left to right) at position 1.
An exact proof term for the current goal is Happ2.
We prove the intermediate
claim Hpair1:
(i,apply_fun x1 i) ∈ x1.
We prove the intermediate
claim Hiy1:
(i,y) ∈ x1.
We will
prove (i,y) ∈ x1.
rewrite the current goal using Happ1 (from right to left) at position 1.
An exact proof term for the current goal is Hpair1.
rewrite the current goal using HpEq (from left to right).
An exact proof term for the current goal is Hiy1.