Let x be given.
We will
prove ∃y : set, y ∈ X ∧ (x,y) ∈ {(y,y)|y ∈ X}.
We use x to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HxX.
An
exact proof term for the current goal is
(ReplI X (λy0 : set ⇒ (y0,y0)) x HxX).
∎