Let X, d, B and x be given.
We prove the intermediate
claim Hcov:
covers X B.
An
exact proof term for the current goal is
(andER (∀b0 : set, b0 ∈ B → b0 ∈ Tx) (covers X B) HBcov).
We prove the intermediate
claim Hexb:
∃b : set, b ∈ B ∧ x ∈ b.
An exact proof term for the current goal is (Hcov x HxX).
Apply Hexb to the current goal.
Let b be given.
We prove the intermediate
claim HbB:
b ∈ B.
An
exact proof term for the current goal is
(andEL (b ∈ B) (x ∈ b) Hxb).
We prove the intermediate
claim Hxinb:
x ∈ b.
An
exact proof term for the current goal is
(andER (b ∈ B) (x ∈ b) Hxb).
An exact proof term for the current goal is (HBballs b HbB).
Apply Hexcr to the current goal.
Let c be given.
Assume Hcpack.
We prove the intermediate
claim HcX:
c ∈ X.
Apply Hexr to the current goal.
Let r be given.
Assume Hrpack.
We prove the intermediate
claim HrR:
r ∈ R.
We prove the intermediate
claim Hrpos:
Rlt 0 r.
We prove the intermediate
claim Hbeq:
b = open_ball X d c r.
We prove the intermediate
claim HxinBall:
x ∈ open_ball X d c r.
rewrite the current goal using Hbeq (from right to left).
An exact proof term for the current goal is Hxinb.
Apply HexN to the current goal.
Let N be given.
Assume HNpair.
We prove the intermediate
claim HNomega:
N ∈ ω.
We use b to witness the existential quantifier.
Apply andI to the current goal.
Apply andI to the current goal.
An exact proof term for the current goal is HbB.
An exact proof term for the current goal is Hxinb.
We use N to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is HNomega.
rewrite the current goal using Hbeq (from left to right).
An exact proof term for the current goal is Hsub.
∎