Let c be given.
We prove the intermediate
claim Hexb:
∃b0 ∈ Bx, c = b0 ∩ A.
An
exact proof term for the current goal is
(ReplE Bx (λb0 : set ⇒ b0 ∩ A) c HcC).
Apply Hexb to the current goal.
Let b0 be given.
Assume Hb0pair.
We prove the intermediate
claim Hb0Bx:
b0 ∈ Bx.
An
exact proof term for the current goal is
(andEL (b0 ∈ Bx) (c = b0 ∩ A) Hb0pair).
We prove the intermediate
claim Hceq:
c = b0 ∩ A.
An
exact proof term for the current goal is
(andER (b0 ∈ Bx) (c = b0 ∩ A) Hb0pair).
Let x0 be given.
Let r0 be given.
rewrite the current goal using Hceq (from left to right).
rewrite the current goal using Hb0eq (from left to right).
rewrite the current goal using HgenDef (from left to right).
Apply (SepI (𝒫 A) (λU0 : set ⇒ ∀y ∈ U0, ∃bA ∈ BA, y ∈ bA ∧ bA ⊆ U0) (open_ball X d x0 r0 ∩ A)) to the current goal.
Apply PowerI to the current goal.
Let y be given.
We prove the intermediate
claim HyBallX:
y ∈ open_ball X d x0 r0.
We prove the intermediate
claim HyA:
y ∈ A.
We prove the intermediate
claim HyX:
y ∈ X.
An exact proof term for the current goal is (HA y HyA).
Apply Hexs to the current goal.
Let s be given.
Assume Hs.
We prove the intermediate
claim Hs12:
s ∈ R ∧ Rlt 0 s.
We prove the intermediate
claim HsR:
s ∈ R.
An
exact proof term for the current goal is
(andEL (s ∈ R) (Rlt 0 s) Hs12).
We prove the intermediate
claim Hspos:
Rlt 0 s.
An
exact proof term for the current goal is
(andER (s ∈ R) (Rlt 0 s) Hs12).
We use
(open_ball A dA y s) to
witness the existential quantifier.
Apply andI to the current goal.
An
exact proof term for the current goal is
(ReplSepI R (λr1 : set ⇒ Rlt 0 r1) (λr1 : set ⇒ open_ball A dA y r1) s HsR Hspos).
Apply andI to the current goal.
Let z be given.
We prove the intermediate
claim HzA:
z ∈ A.
An
exact proof term for the current goal is
(open_ballE1 A dA y s z Hz).
We prove the intermediate
claim HzX:
z ∈ X.
An exact proof term for the current goal is (HA z HzA).
We prove the intermediate
claim HzltA:
Rlt (apply_fun dA (y,z)) s.
An
exact proof term for the current goal is
(open_ballE2 A dA y s z Hz).
We prove the intermediate
claim HzltX:
Rlt (apply_fun d (y,z)) s.
An exact proof term for the current goal is HzltA.
We prove the intermediate
claim HzBallY:
z ∈ open_ball X d y s.
An
exact proof term for the current goal is
(open_ballI X d y s z HzX HzltX).
We prove the intermediate
claim HzBall0:
z ∈ open_ball X d x0 r0.
An exact proof term for the current goal is (HsSub z HzBallY).