Assume H.
Apply H to the current goal.
Let i be given.
Assume H.
Apply H to the current goal.
Assume H2: {n} = {i}.
Apply In_irref i to the current goal.
rewrite the current goal using Sing_inj n i H2 (from right to left) at position 2.
An exact proof term for the current goal is Hi.
∎