Let j be given.
We prove the intermediate
claim HgjR:
g j ∈ R.
An exact proof term for the current goal is (Hg j HjJ).
We prove the intermediate
claim HSjEq:
Sj = R.
We prove the intermediate
claim HgjSj:
g j ∈ Sj.
rewrite the current goal using HSjEq (from left to right).
An exact proof term for the current goal is HgjR.