Let X, S, U and x be given.
Apply Hexb to the current goal.
Let b be given.
Assume Hbtrip.
We prove the intermediate
claim Hxb:
x ∈ b.
We prove the intermediate
claim HbSubU:
b ⊆ U.
Apply HexF to the current goal.
Let F be given.
Assume HFpack.
We use F to witness the existential quantifier.
We prove the intermediate
claim HbNe:
b ≠ Empty.
rewrite the current goal using HbEq (from right to left) at position 1.
An exact proof term for the current goal is Hxb.
Let y be given.
We prove the intermediate
claim Hyb:
y ∈ b.
rewrite the current goal using HbEq (from left to right) at position 1.
An exact proof term for the current goal is Hy.
An exact proof term for the current goal is (HbSubU y Hyb).
∎