rewrite the current goal using
If_i_1 (i = n) j (f i) H2 (from left to right).
rewrite the current goal using
If_i_0 (k = n) j (f k) H3 (from left to right).
Apply H1 to the current goal.
We use k to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is Lk H3.
Use symmetry.
An exact proof term for the current goal is H4.