Let X and x be given.
We prove the intermediate
claim H1:
(x,x) ∈ {(y,y)|y ∈ X}.
An
exact proof term for the current goal is
(ReplI X (λy ⇒ (y,y)) x Hx).
We prove the intermediate
claim H2:
(x,Eps_i (λz ⇒ (x,z) ∈ {(y,y)|y ∈ X})) ∈ {(y,y)|y ∈ X}.
An
exact proof term for the current goal is
(Eps_i_ax (λz ⇒ (x,z) ∈ {(y,y)|y ∈ X}) x H1).
Let y be given.
We prove the intermediate
claim Hx_eq:
x = y.
rewrite the current goal using
(tuple_2_0_eq y y) (from right to left).
rewrite the current goal using Heq (from left to right).
Use reflexivity.
We prove the intermediate
claim Hz_eq:
Eps_i (λz ⇒ (x,z) ∈ {(y,y)|y ∈ X}) = y.
rewrite the current goal using
(tuple_2_1_eq y y) (from right to left).
rewrite the current goal using Heq (from left to right).
Use reflexivity.
rewrite the current goal using Hz_eq (from left to right).
rewrite the current goal using Hx_eq (from right to left).
Use reflexivity.
∎