Let alpha and beta be given.
Let x be given.
Apply binunionE alpha {gamma '|gamma ∈ alpha} x H2 to the current goal.
Apply H1 to the current goal.
An exact proof term for the current goal is H3.
Apply ReplE_impred alpha (λgamma ⇒ gamma ') x H3 to the current goal.
Let gamma be given.
rewrite the current goal using H5 (from left to right).
An
exact proof term for the current goal is
ReplI beta (λgamma ⇒ gamma ') gamma (H1 gamma H4).
∎