Let X, Tx, Y and U be given.
We prove the intermediate
claim HYsub:
Y ⊆ X.
We prove the intermediate
claim Hexists:
∃V ∈ Tx, U = V ∩ Y.
Apply Hexists to the current goal.
Let V be given.
Assume HVandEq.
Apply HVandEq to the current goal.
We prove the intermediate
claim HVY:
V ∩ Y ∈ Tx.
We prove the intermediate
claim HUinTx:
U ∈ Tx.
rewrite the current goal using HUeq (from left to right).
An exact proof term for the current goal is HVY.
An exact proof term for the current goal is HUinTx.
∎