Let x be given.
Assume HxX.
Apply Hex to the current goal.
Let U be given.
We prove the intermediate
claim HUin:
U ∈ UFam.
An
exact proof term for the current goal is
(andEL (U ∈ UFam) (U = X) HUinpair).
We prove the intermediate
claim HUeq:
U = X.
An
exact proof term for the current goal is
(andER (U ∈ UFam) (U = X) HUinpair).
We prove the intermediate
claim HxU:
x ∈ U.
rewrite the current goal using HUeq (from left to right).
An exact proof term for the current goal is HxX.
Apply UnionI UFam x U HxU HUin to the current goal.