Let X and Y be given.
Set f to be the term λx ⇒ x of type set → set.
We will
prove ∃f : set → set, inj X Y f.
We use f to witness the existential quantifier.
Apply injI to the current goal.
An exact proof term for the current goal is H1.
Let x be given.
Let x' be given.
An exact proof term for the current goal is H2.
∎