Let b be given.
We will
prove ∃u : set, u ∈ U ∧ b ⊆ u.
Apply Hwit to the current goal.
Let x be given.
Assume Hxpack.
Apply Hxpack to the current goal.
Apply Hexu to the current goal.
Let u be given.
Assume Hupack.
We prove the intermediate
claim HuUx:
u ∈ U ∧ x ∈ u.
We prove the intermediate
claim HuU:
u ∈ U.
An
exact proof term for the current goal is
(andEL (u ∈ U) (x ∈ u) HuUx).
Apply Hexr to the current goal.
Let r be given.
Assume Hrpack.
We prove the intermediate
claim Hsub:
open_ball X d x r ⊆ u.
We prove the intermediate
claim Hbeq:
b = open_ball X d x r.
We use u to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HuU.
rewrite the current goal using Hbeq (from left to right).
An exact proof term for the current goal is Hsub.
∎